joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f62
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
call 0x415f62
add byte [ebx], bh
push eax
inc ecx
dec edi
cmp dl, byte [eax + 0x49]
dec ebp
dec esp
add esp, 4
xor edx, 0x4526
sub edx, 0x1e02
xor edx, 0x591a
pop edx
mov edx, dword [ebp - 0xcd8]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcd8]
invalid
invalid

Function at 0x415f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add cl, byte [ecx - 0xcd773]
jmp dword [esi - 0x75]

Function at 0x415ff7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
sub ebx, 0x1723e
pop ebx
movzx ecx, word [ebp - 0x40]
test ecx, ecx
jne 0x41601e
movzx edx, word [ebp - 0x224]
movzx eax, word [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x1684], edx
jmp 0x416078
movzx ecx, word [ebp - 0x224]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
je 0x415f46
movzx eax, word [ebp - 0x224]
xor eax, 0x20
movzx ecx, word [ebp - 0x40]
cmp eax, ecx
je 0x415f46
movzx edx, word [ebp - 0x224]
movzx eax, word [ebp - 0x40]
cmp edx, eax
jge 0x416062
mov dword [ebp - 0x1680], 0xffffffff
jmp 0x41606c
mov dword [ebp - 0x1680], 1
mov ecx, dword [ebp - 0x1680]
mov dword [ebp - 0x1684], ecx
cmp dword [ebp - 0x1684], 0
jne 0x4160c1
push eax
push esi
add esp, 4
jmp 0x41608c
pop eax
push ecx
push edx
add esp, 4
xor ecx, 0x43d4
or ecx, 0x11a4a
pop ecx
push edx
sub edx, 0x2164
add edx, 0x1582a
or edx, 0x134e6
pop edx
mov edx, dword [ebp - 0x51c]
mov dword [ebp - 0x2fc], edx
jmp 0x416129
push ecx
or ecx, 0x10007
or ecx, 0x13db
pop ecx
push esi
push edi
add esp, 4
or esi, 0x141e6
pop esi
push ebx
push ecx
add esp, 4
sub ebx, 0x138e5
sub ebx, 0x106
or ebx, 0xb10c
pop ebx
mov eax, dword [ebp - 0x51c]
mov ecx, dword [eax]
mov dword [ebp - 0x51c], ecx
mov edx, dword [ebp - 0x51c]
cmp edx, dword [ebp - 0xce0]
je 0x41611f
invalid

Function at 0x4346b0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi + 0x38], 0
jne 0x4346da
lea eax, [esp]
push eax
push 0
push esi
push 0x4348c0
push 0
push 0
mov dword [esp + 0x18], 0
call fcn.004e5813
add esp, 0x18
mov dword [esi + 0x38], eax
push edi
lea edi, [esi + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esi + 0x64]
push edx
call fcn.004105d0
mov eax, dword [esp + 0x10]
push edi
mov dword [esi + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x58]
push ecx
mov dword [esi + 0x80], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop ecx
ret 8
Function at 0x437ed0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.004e8fe0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x437f3a
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x437f23
cmp eax, 4
jne 0x437f3a
cmp dword [esp + 8], 0x5a
jb 0x437f3a
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004e3edb
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.004e3edb
add esp, 0x118
ret
Function at 0x43a2c0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esi + 0x60], 0
mov eax, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x3ec
push eax
je 0x43a33b
call ebx
mov edi, eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xffffffdf
cmp eax, ecx
je 0x43a2f7
push ecx
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push 0
push 0xcc
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 4]
push 0x8b7
push ecx
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov edx, dword [esi + 4]
push 0x3ed
push edx
call ebx
push 0
push eax
call edi
pop edi
pop ebx
ret
call ebx
mov edi, eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x20
cmp eax, ecx
je 0x43a35b
push ecx
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push 0x2a
push 0xcc
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 4]
push 0x8b7
push ecx
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call edi
mov edx, dword [esi + 4]
push 0x3ed
push edx
call ebx
push 5
push eax
call edi
pop edi
pop ebx
ret
Function at 0x460ff0
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0046f270
test eax, eax
jne 0x46101a
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
push 2
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop edi
ret

Function at 0x461020
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
xor eax, eax
cmp dword [ebx + 0x11c], 2
push esi
setne al
push edi
lea ecx, [ebx + 0xd8]
inc eax
mov edi, eax
push edi
call fcn.004c43b0
call fcn.00492130
mov esi, eax
call fcn.00494010
mov edi, ebx
call fcn.00472140
mov ecx, dword [ebx + 0x5370]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x461076
mov edx, dword [ebx + 0x5370]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x48f2a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x501b48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x4c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
call fcn.004048c0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x4c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.004048c0
add eax, 0x10
mov dword [esi], eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x48], 1
call fcn.0048f7e0
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov edi, eax
mov byte [esp + 0x44], 3
call fcn.0048f880
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
add ebp, 0x24
push ebp
mov byte [esp + 0x4c], 4
call fcn.00426600
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f384
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f3a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f3c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f3ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f416
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret 8
Function at 0x4b9b10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x501864
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esp + 0x18], edi
mov dword [esi], vtable.CBalloonCtrl.0
mov dword [esi + 0x24], edi
mov byte [esp + 0x18], 1
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov byte [esp + 0x18], 3
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
lea ebx, [esi + 0x30]
call eax
add eax, 0x10
mov dword [ebx], eax
push 0x5123b4
push 0x20
push edi
push edi
push edi
push 0x86
push edi
push edi
push edi
push 0x190
push edi
push edi
push edi
push 0xc
mov byte [esp + 0x50], 4
call dword [sym.imp.GDI32.dll_CreateFontW]
push 0xe
mov dword [esi + 0x2c], eax
push 0x5192b8
mov eax, ebx
call fcn.00401560
mov dword [esi + 0x34], 0x8b
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401c66
pop dword [ebp - 0x10]
mov eax, 0x401c66
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xfa0b47a6
add dword [ebp - 0x20], 0x5446fda5
mov dword [ebp - 0x1c], 0xfba33094
sub dword [ebp - 0x1c], 0xc96fe44f
mov dword [ebp - 0x18], 0x3ad37508
add dword [ebp - 0x18], 0x1178cf26
mov dword [ebp - 0x14], 0xa9ee8390
sub dword [ebp - 0x14], 0xa9ee8390
lea eax, [ebp - 0x20]
push eax
mov eax, 0x8323216f
add eax, 0x7d1d0ee5
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x2dbdd0cc
add dword [ebp - 0x20], 0x46b4988a
mov dword [ebp - 0x1c], 0x1aeae2dd
sub dword [ebp - 0x1c], 0xd97e8168
mov dword [ebp - 0x18], 0x219f0d84
sub dword [ebp - 0x18], 0xbe2fa118
mov dword [ebp - 0x14], 0x6e28642
sub dword [ebp - 0x14], 0x6e28642
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x9c48758c
sub eax, 0x9c084560
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3643a
push 0
call eax
mov ecx, 0x1a2e4e45
sub ecx, 0x1a2e0723
xor edi, edi
add edi, eax
mov edx, 0x407000
add edx, dword [ebp - 0x10]
mov esi, 0x94d65f4a
sub esi, 0xa66177b2
mov ebx, dword [edx]
sub dword [ebp - 8], edi
xor ebx, esi
sub dword [ebp - 0xc], edx
mov dword [edi], ebx
add edi, 0x8129d54e
sub edi, 0x8129d54a
add edx, 0x7712d9ce
sub edx, 0x7712d9ca
loop 0x401d7f
add eax, 0x9acf1d62
add eax, 0x6531f1f9
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8e306ba2
sub ecx, 0x8df06ba2
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x235164ed
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x2196043f
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10013126
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1002ba70
call fcn.1002a480
lea edi, [ecx + 0x164]
xor ebx, ebx
push 0x100064ac
mov ecx, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
call fcn.10016bf4
test eax, eax
je 0x1001326c
push 0x100064c0
lea ecx, [ebp - 0x10]
call fcn.10016bf4
push 0x10006530
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10016bf4
push 0x100062f4
lea ecx, [ebp - 0x10]
call fcn.10016bf4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.10016bf4
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x10]
call fcn.10020bd7
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x1001325e
cmp dword [ebp - 0x14], ebx
je 0x1001325e
push 0x100062d0
mov ecx, edi
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x1c], ebx
call fcn.10016bf4
test eax, eax
jne 0x10013216
mov eax, 0x100054b6
mov esi, ebx
mov dword [ebp - 0x18], eax
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x10013202
mov eax, dword [ebp - 0x18]
add eax, 0x3fc
inc esi
mov dword [ebp - 0x18], eax
cmp eax, 0x100064a6
jl 0x100131dd
jmp 0x10013216
imul esi, esi, 0x3fc
add esi, 0x100052b8
push esi
mov ecx, edi
call fcn.10016bf4
mov ecx, edi
call fcn.10020bd7
mov ecx, edi
test eax, eax
je 0x1001324b
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
call fcn.10020bd7
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10013255
cmp dword [ebp - 0x1c], eax
setne al
mov dword [ebp - 0x20], eax
jmp 0x10013255
push 0x100064ac
call fcn.10016bf4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1002161e
mov ebx, dword [ebp - 0x20]
push dword [ebp + 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
call fcn.1002a558
ret 8
Function at 0x10013779
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x58
mov eax, 0x1002bb11
call fcn.1002a4e9
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
or dword [edi + 4], 0xffffffff
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [edi], 0x1000641c
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
call dword [sym.imp.kernel32.dll_GetVersion]
cmp eax, 0x80000000
sbb esi, esi
mov ecx, ebx
neg esi
call fcn.10020bd7
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.mfc100.dll_Ordinal_306]
push 0
push 0x80
neg esi
push 3
sbb esi, esi
push 0
and esi, 4
or esi, 1
push esi
push SysReAllocString
push dword [eax]
call dword [sym.imp.kernel32.dll_CreateFileA]
lea ecx, [ebp - 0x64]
mov dword [edi + 4], eax
call dword [sym.imp.mfc100.dll_Ordinal_901]
cmp dword [edi + 4], 0xffffffff
jne 0x100138e4
and dword [ebp - 0x58], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push 0
mov esi, eax
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.10016bf4
movzx eax, ax
push eax
push esi
push 0
push 0x1300
call dword [sym.imp.kernel32.dll_FormatMessageA]
push 1
mov esi, 0x1802
push esi
lea ecx, [ebp - 0x5c]
call fcn.10016bf4
and dword [ebp - 4], 0
call fcn.10016bf4
movzx eax, ax
push eax
push dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
push esi
call fcn.10016bf4
push 0x40
lea ecx, [ebp - 0x5c]
call fcn.10020bd7
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10016bf4
add esp, 0xc
mov ecx, ebx
call fcn.10020bd7
push eax
lea ecx, [ebp - 0x54]
call dword [sym.imp.mfc100.dll_Ordinal_306]
push 0x10006430
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_1483]
push dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
call dword [sym.imp.mfc100.dll_Ordinal_1483]
mov esi, dword [ebp - 0x54]
call fcn.10016bf4
movzx eax, ax
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxExA]
push dword [ebp - 0x58]
call dword [sym.imp.kernel32.dll_LocalFree]
and dword [ebp - 0x58], 0
mov ecx, edi
call fcn.100139d5
lea ecx, [ebp - 0x54]
call dword [sym.imp.mfc100.dll_Ordinal_901]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1002161e
jmp 0x10013930
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [edi + 8], eax
test eax, eax
je 0x10013929
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
test eax, eax
je 0x10013929
push ebx
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetFileSize]
push eax
push dword [edi + 0xc]
call fcn.10016bf4
mov dword [edi + 0x10], eax
test eax, eax
jne 0x10013930
mov ecx, edi
call fcn.100139d5
mov eax, edi
call fcn.1002a56c
ret 8
Function at 0x10018e95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x1002bda3
call fcn.1002a51f
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x10019069
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.10016bf4
add esp, 0xc
test eax, eax
js 0x10019063
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x10018f31
push esi
call fcn.100158b3
pop ecx
test al, al
je 0x10018f31
mov eax, esi
call fcn.1002a74c
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10018f3d
push esi
lea ecx, [ebp - 0x428]
call fcn.10016bf4
push 3
push esi
push edi
push eax
call fcn.10016bf4
test eax, eax
je 0x10019063
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x10018f71
call fcn.10015ac7
mov esi, eax
jmp 0x10019048
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10018f94
call fcn.10015ac7
jmp 0x1001903f
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x10018f8a
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x420], esi
cmp eax, esi
jae 0x10018fc4
mov esi, 0x8007000e
jmp 0x10019041
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10016bf4
mov dword [ebp - 4], 1
jmp 0x10019003
cmp dword [ebp - 0x418], 0
je 0x10018fbd
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp - 0x418]
call fcn.10016bf4
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.10016bf4
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10019083
lea ecx, [ebp - 0x418]
call fcn.1001914a
jmp 0x10019083
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1001907e
lea ecx, [ebp - 0x418]
call fcn.1001914a
mov esi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.1000cc87
mov eax, esi
lea esp, [ebp - 0x444]
call fcn.1002a578
ret 0x10
Function at 0x100296b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10009414]
jne fcn.1002a5f5
ret

Function at 0x1002a5f5
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10033700], eax
mov dword [0x100336fc], ecx
mov dword [0x100336f8], edx
mov dword [0x100336f4], ebx
mov dword [0x100336f0], esi
mov dword [0x100336ec], edi
mov word [0x10033718], ss
mov word [0x1003370c], cs
mov word [0x100336e8], ds
mov word [0x100336e4], es
mov word [0x100336e0], fs
mov word [0x100336dc], gs
pushfd
pop dword [0x10033710]
mov eax, dword [ebp]
mov dword [0x10033704], eax
mov eax, dword [ebp + 4]
mov dword [0x10033708], eax
lea eax, [ebp + 8]
mov dword [0x10033714], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10033650], 0x10001
mov eax, dword [0x10033708]
mov dword [0x10033604], eax
mov dword [0x100335f8], 0xc0000409
mov dword [0x100335fc], 1
mov eax, dword [0x10009414]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10032a5c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10033648], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10009608
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10033648], 0
jne 0x1002a6e1
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x401140
Capabilities:
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x407008]
test eax, eax
je 0x401290
lea edx, [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
call sub.user32.dll_wvsprintfW
mov edx, dword [section..data]
sub esp, 0xc
mov esi, eax
test edx, edx
jne 0x401248
mov ebx, dword [0x407004]
mov dword [ebp - 0x1c], 0
mov dword [section..data], 0
test ebx, ebx
je 0x401308
mov edi, dword [0x407008]
call sub.kernel32.dll_GetConsoleOutputCP
lea edx, [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0x405036
mov dword [esp + 0x14], 0xffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.kernel32.dll_WideCharToMultiByte
mov esi, dword [0x407004]
sub esp, 0x20
mov ebx, eax
mov dword [esp], 0xfffffff5
call sub.kernel32.dll_GetStdHandle
lea edx, [ebp - 0x20]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.kernel32.dll_WriteFile
sub esp, 0x14
mov eax, dword [section..bss]
test eax, eax
jne 0x401238
test byte [0x404004], 8
jne 0x401358
mov dword [section..bss], 1
mov ebx, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xfffffff5
mov ebx, dword [0x407008]
call sub.kernel32.dll_GetStdHandle
lea edx, [ebp - 0x20]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.kernel32.dll_WriteConsoleW
sub esp, 0x14
test eax, eax
je 0x40117f
jmp 0x401218
mov dword [esp + 8], 0x1fffe
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov dword [0x407008], eax
sub esp, 0xc
test eax, eax
jne 0x401156
xor ebx, ebx
test byte [0x404004], 1
je 0x40123b
mov dword [esp + 0xc], str.Out_of_memory___could_not_allocate_2_x_64_KB_buffers_n
mov dword [esp + 8], 0x4050e4
mov dword [esp + 4], 0x404004
mov dword [esp], 0
call fcn.004010b0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov dword [0x407004], eax
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x40119e
test byte [0x404004], 1
jne 0x401390
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [section..data]
mov dword [esp + 0xc], str.Writing_to_console____d__n
mov dword [esp + 8], 0x4050e4
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404004
mov dword [esp], 3
call fcn.004010b0
jmp 0x40122e
mov dword [esp + 0xc], str.Out_of_memory___could_not_allocate_2_x_64_KB_buffers_n
xor ebx, ebx
mov dword [esp + 8], 0x4050e4
mov dword [esp + 4], 0x404004
mov dword [esp], 0
call fcn.004010b0
jmp 0x401349