joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465dc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0046c240
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x465eb9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.00465ed0
test eax, eax
jne 0x465eb9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.00465ed0
test eax, eax
jne 0x465eb9
lea edx, [esp + 0x10]
push 0x4cdc00
push edx
call fcn.00479590
mov esi, eax
add esp, 8
test esi, esi
jne 0x465e8a
lea eax, [esp + 0x10]
push 0x4cdbfc
push eax
call fcn.00479590
mov esi, eax
add esp, 8
test esi, esi
jne 0x465e8a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x465e8d
mov byte [esi], 0
push 0x4cd3c4
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x465ed0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x465f32
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x46c180
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4977b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x46c230
mov eax, dword [0x4ce63c]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00488c48
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00488c97
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00488bf4
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x46c217
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x46c217
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00488864
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x46f330
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x497c40
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x46f4d7
mov ecx, dword [0x4ce63c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x46f42c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0046e050
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00488951
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00488864
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4cd3c4
call fcn.004888d2
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0046e410
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00488951
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00488864
lea ecx, [esp + 0xc]
call fcn.00488d2c
mov ecx, dword [esp + 0xc]
push 0x4cde04
push ecx
call fcn.00478554
add esp, 8
test eax, eax
je 0x46f454
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x46f38d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00488864
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00488864
jmp 0x46f4db
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0046f0d0
test eax, eax
push 0
je 0x46f4bf
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0046d770
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x46f4a5
cmp eax, 0x64
jg 0x46f493
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x46f430
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x46f430
cmp eax, 0x64
jge 0x46f42c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x46f430
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0046d770
mov esi, eax
jmp 0x46f430
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x46f4e5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x48ac45
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48ac7d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00488cbf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00488c97
jmp 0x48ac89
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48c33a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48c37c
call fcn.004920c3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48c37c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48c373
xor eax, eax
jmp 0x48c384
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048c38a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4925f3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x492621
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49263f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492559
jmp 0x49263f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49263f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492559
test edi, edi
mov eax, edi
jne 0x492629
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4a6119
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x4a6139
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x4a6126
ret

Function at 0x4f908d
Capabilities:
Packed with generic packer

Disassembly:
pushal
lea esp, [esp + 0x24]
jle 0x514159
pushfd
rol dl, cl
lea edx, [esi + 8]
sub esp, 0xfffffffc
jmp 0x520a5f
not bp
neg bp
sub eax, eax
not bp
pushal
pushfd
pushal
mov ebp, dword [esp + 0x44]
push 0x67e80679
push dword [esp]
push dword [esp + 0x50]
ret 0x58

Function at 0x4ff3c2
Capabilities:
Packed with generic packer

Disassembly:
lea esp, [esp + 0x44]
je 0x52a950
pushfd
push ecx
pushfd
pushfd
lea esp, [esp + 0x10]
jmp 0x532c3e
pushal
jmp 0x515afe
test cl, 0xcb
bt dx, bx
bt ax, ax
cmp byte [ecx], al
jmp 0x4edc30
shr eax, 8
jmp 0x4f245c
jmp 0x4d1a33

Function at 0x50ad76
Capabilities:
Packed with generic packer

Disassembly:
sar eax, 0xa1
invalid
mov dword [esp + 0x1c], 0
pushal
push ebp
mov byte [esp], cl
mov dword [esp + 0x3c], edx
push dword [esp]
call 0x53efe0
cmp dword [edi - 0x1a], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ch, 0xd6
out 0x62, eax
adc eax, 0xb2fab728
jo 0x502ea9
nop
shl ecx, 0xa1
stosd dword es:[edi], eax
xchg edi, eax
test dword [ebx - 0x5777f05], esi
popal
aas
mov cl, 0x3d
je 0x502ebd
xlatb
adc ax, 0x7fd0
ror byte [ecx], cl
push 0x96bf27ea
jmp 0xd2469363
jmp 0x502ece

Function at 0x50f556
Capabilities:
Packed with generic packer

Disassembly:
pushfd
pushal
mov ebx, dword [ebx + 0x7e67f]
pushfd
jmp 0x506473
call fcn.004d0700
mov byte [esi - 0xb], al
popal
test al, 0xb5
cmp al, 0x2b
cli
add eax, 0xcd522ba8
insb byte es:[edi], dx
aam 0xe8
adc al, 0xb4
adc ecx, ebp
dec edx
test dword [esi + 0x58], edi
sbb al, 0x57
insd dword es:[edi], dx
test byte [edi + 0x49c87610], bl
test al, 0xfb
iretd
mov ebx, 0x4011f1
lea esp, [esp + 0x20]
jl 0x4d33e0
pushal
mov word [esp], 0xb698
pushfd
mov ebx, dword [ebx + 0x7e67f]
jmp 0x539ef0

Function at 0x51fa1c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esi + 0x38], eax
lea edx, [esi - 0x5575a38b]
xchg dx, ax
movzx ax, bl
mov eax, dword [ecx]
mov dx, word [esp + 8]
lea edx, [ebp*4 - 0x4b27886f]
setbe dh
pushfd
mov edx, dword [eax + 0xc]
call fcn.0051f357

Function at 0x51fa45
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor ebx, ebx
cmc
stc
add edx, eax
bt si, 5
jmp 0x53e544
test edi, edi
mov byte [esp], dl
pushal
lea esp, [esp + 0x24]
je 0x4d005f
rcl dx, cl
rdtsc
das
aad 0x83
movzx edx, word [edi]
bts ax, cx
movzx eax, word [edi + 2]
jmp 0x4cd634
Function at 0x401fb0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x407e13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
push ebx
push ebp
push esi
push edi
mov ebx, ecx
lea esi, [ebx + 0x14c]
xor edi, edi
push 0x40b180
mov ecx, esi
mov dword [esp + 0x420], edi
mov dword [ebx + 0x144], edi
call fcn.00407502
mov eax, dword [esp + 0x424]
push 0x40a080
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
cmp ebp, edi
jne 0x40202d
lea ecx, [esp + 0x424]
mov dword [esp + 0x41c], 0xffffffff
call fcn.004073e8
or eax, 0xffffffff
jmp 0x4021ac
push 2
push 0xfffffc00
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x20]
push ebp
rep stosd dword es:[edi], eax
push 0x400
lea ecx, [esp + 0x28]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
test eax, eax
push ebp
jne 0x40208b
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x424]
mov dword [esp + 0x41c], 0xffffffff
call fcn.004073e8
or eax, 0xffffffff
jmp 0x4021ac
call dword [sym.imp.MSVCRT.dll_fclose]
push 0xd
lea edx, [esp + 0x1c]
push str._FileVersion
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x10
test eax, eax
je 0x4020cb
lea ecx, [esp + 0x424]
mov dword [esp + 0x41c], 0xffffffff
call fcn.004073e8
mov eax, 0xfffffffe
jmp 0x4021ac
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [esp + 0x14]
push str._Description
push eax
call edi
add esp, 8
test eax, eax
je 0x402129
add eax, 0xd
mov ecx, esi
push eax
call fcn.00407502
push 0x40a05c
mov ecx, esi
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov byte [esp + 0x420], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x41c], 0
call fcn.004073e8
lea edx, [esp + 0x14]
push str._SectorsPerTrack
push edx
call edi
add esp, 8
test eax, eax
je 0x40214f
add eax, 0x11
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x144], eax
mov esi, dword [esi]
mov eax, 0x40b180
mov dl, byte [esi]
mov bl, byte [eax]
mov cl, dl
cmp dl, bl
jne 0x40217e
test cl, cl
je 0x40217a
mov dl, byte [esi + 1]
mov bl, byte [eax + 1]
mov cl, dl
cmp dl, bl
jne 0x40217e
add esi, 2
add eax, 2
test cl, cl
jne 0x402156
xor eax, eax
jmp 0x402183
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov dword [esp + 0x41c], 0xffffffff
lea ecx, [esp + 0x424]
jne 0x4021a5
call fcn.004073e8
mov eax, 0xfffffffc
jmp 0x4021ac
call fcn.004073e8
xor eax, eax
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x410
ret 4
Function at 0x402398
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407e78
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
call fcn.00402480
test eax, eax
je 0x4023b6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [eax]
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
lea ecx, [esp + 4]
mov dword [0x40b184], eax
call fcn.004073e8
mov eax, dword [0x40b184]
test eax, eax
jne 0x4023fc
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
push 4
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea edx, [esi + 4]
push 1
push edx
lea ecx, [esp + 0x14]
mov edi, eax
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x20], 0
call dword [eax + 0x18]
push edi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, esi
call fcn.00402350
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x402580
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407ed0
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [eax]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.004073e8
test edi, edi
je 0x4026ac
push 4
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x40269e
add esi, 4
push 1
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov esi, dword [ebp]
mov dword [esp + 0x64], 0
test esi, esi
je 0x40266b
push ebx
lea ecx, [esp + 0x20]
call fcn.0040743c
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 1
call sub.MFC42.DLL_CWnd::Attach
mov edx, dword [esp + 0x40]
push edx
call dword [0x40b094]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ebx, eax
mov eax, dword [esp + 0x40]
push eax
call dword [0x40b088]
test eax, eax
je 0x402649
push 9
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [ebx + 0x20]
push ecx
call dword [0x40b090]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CWnd::Detach
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 0
call fcn.0040756e
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00402350
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x5c
ret
Function at 0x403530
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x4035b1
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x3c]
push ecx
lea edi, [esi + 0x40]
push edx
push eax
push edi
call fcn.00404a40
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [edi]
cmp eax, 0xfffffffa
jne 0x403609
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.004049c0
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0xffffffffffffffff
push 0x10
push 4
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [esi + 4]
push 0
push 2
push 0x8002
mov eax, dword [edx + 0x20]
push eax
call dword [0x40b0a4]
pop edi
or eax, 0xffffffff
pop esi
ret 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 8]
push 0
push ecx
mov ecx, dword [esi + 0x34]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403609
mov edx, dword [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x34]
push eax
call edi
push 0xffffffffffffffff
push 0x10
push 4
call sub.MFC42.DLL_AfxMessageBox
mov ecx, dword [esi + 4]
push 0
push 2
push 0x8002
mov edx, dword [ecx + 0x20]
push edx
call dword [0x40b0a4]
pop edi
or eax, 0xffffffff
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x4038a0
Capabilities:
Terminate process

Disassembly:
call fcn.00404c50
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
mov eax, dword [esp + 8]
add ecx, 0x40
push eax
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_acm.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__21_March_2000._n_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push 3
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
Function at 0x404a40
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ecx, ecx
push esi
cmp ebp, ecx
push edi
je 0x404a51
mov dword [ebp], ecx
mov esi, dword [esp + 0x18]
cmp esi, ecx
je 0x404bfc
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x13c4], ecx
cmp eax, ecx
je 0x404bfc
mov edi, dword [esp + 0x20]
cmp edi, ecx
jl 0x404bfc
mov dl, byte [esi + 0x1390]
test dl, dl
je 0x404aa3
cmp ebp, ecx
je 0x404a90
mov dword [ebp], 0xffffffff
mov dword [esi + 0x13c4], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
cmp edi, ecx
jne 0x404abd
cmp ebp, ecx
je 0x404aae
mov dword [ebp], ecx
mov dword [esi + 0x13c4], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esi + 0x13a8], edi
mov dword [esi + 0x13a4], eax
mov eax, dword [esi]
test byte [eax + 0xc], 0x20
jne 0x404b8c
mov ecx, dword [esi + 0x1398]
test ecx, ecx
jne 0x404b23
push eax
call fcn.00404c20
add esp, 4
test al, al
jne 0x404b23
mov eax, dword [esi]
lea edi, [esi + 4]
push eax
push 0x1388
push 1
push edi
call ebx
mov ecx, dword [esi]
add esp, 0x10
test byte [ecx + 0xc], 0x20
jne 0x404b8c
mov dword [esi + 0x1394], edi
mov edi, dword [esp + 0x20]
mov dword [esi + 0x138c], eax
mov dword [esi + 0x1398], eax
lea edx, [esi + 0x1394]
push edx
call fcn.00403a30
test eax, eax
jne 0x404b65
mov eax, dword [esi]
push eax
call fcn.00404c20
add esp, 4
test al, al
je 0x404b56
mov eax, dword [esi + 0x1398]
test eax, eax
jne 0x404b56
mov eax, dword [esi + 0x13a8]
test eax, eax
ja 0x404bc0
mov eax, dword [esi + 0x13a8]
test eax, eax
je 0x404bde
jmp 0x404acf
cmp eax, 4
jne 0x404baa
test ebp, ebp
je 0x404b71
mov dword [ebp], eax
mov ecx, dword [esi + 0x13a8]
mov eax, edi
mov dword [esi + 0x13c4], 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 0x10
test ebp, ebp
je 0x404b97
mov dword [ebp], 0xfffffffa
mov dword [esi + 0x13c4], 0xfffffffa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
test ebp, ebp
je 0x404bb1
mov dword [ebp], eax
mov dword [esi + 0x13c4], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
test ebp, ebp
je 0x404bcb
mov dword [ebp], 0xfffffff9
mov dword [esi + 0x13c4], 0xfffffff9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
test ebp, ebp
je 0x404be9
mov dword [ebp], 0
mov eax, edi
mov dword [esi + 0x13c4], 0
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp ebp, ecx
je 0x404c07
mov dword [ebp], 0xfffffffe
cmp esi, ecx
je 0x404c15
mov dword [esi + 0x13c4], 0xfffffffe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x406f50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46621b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045b008
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406fd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00458f57
mov eax, dword [eax]
push 0x5cb1c0
push eax
call fcn.0044be54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045b293
test bl, bl
je 0x406fd2
push 0x5cb1c0
lea ecx, [esp + 0xc]
call fcn.0045b623
push 0x5ced28
lea ecx, [esp + 0xc]
call fcn.0045b623
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40700e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045b293
jmp 0x4070d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407092
lea edx, [esp + 0x7c]
push 0x5ced24
push edx
call fcn.0044be54
add esp, 8
test eax, eax
je 0x407092
lea eax, [esp + 0x7c]
push 0x5ced20
push eax
call fcn.0044be54
add esp, 8
test eax, eax
je 0x407092
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407022
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045b293
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4078d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407932
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc