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

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0047e360
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 0x478049
lea ecx, [esp + 0x10]
push ecx
push str..htm
push accept
mov ecx, esi
call fcn.00412ab0
test eax, eax
jne 0x478049
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 accept
mov ecx, esi
call fcn.00412ab0
test eax, eax
jne 0x478049
lea edx, [esp + 0x10]
push 0x637524
push edx
call fcn.00490fc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x47801a
lea eax, [esp + 0x10]
push 0x637520
push eax
call fcn.00490fc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x47801a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x47801d
mov byte [esi], 0
push 0x636ce8
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 0x47e2a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b05b8
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 0x47e350
mov eax, dword [0x639c34]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004a0c3e
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004a0c8d
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004a0bea
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47e337
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x47e337
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.004a085a
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x481450
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b0a40
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 0x4815f7
mov ecx, dword [0x639c34]
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 0x48154c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00480170
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004a0947
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004a085a
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x636ce8
call fcn.004a08c8
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00480530
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004a0947
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004a085a
lea ecx, [esp + 0xc]
call fcn.004a0d22
mov ecx, dword [esp + 0xc]
push 0x637724
push ecx
call fcn.0048fde4
add esp, 8
test eax, eax
je 0x481574
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4814ad
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004a085a
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004a085a
jmp 0x4815fb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004811f0
test eax, eax
push 0
je 0x4815df
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0047f890
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4815c5
cmp eax, 0x64
jg 0x4815b3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x481550
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x481550
cmp eax, 0x64
jge 0x48154c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x481550
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0047f890
mov esi, eax
jmp 0x481550
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x481605
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 0x4894b0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x489553
test eax, eax
jbe 0x489553
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x489553
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4894fe
xor esi, esi
jmp 0x489504
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48952f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00475e90
add esi, eax
push esi
mov ebx, esi
call fcn.00475e90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x489510
pop ebp
test edi, edi
pop edi
jne 0x489553
test ebx, ebx
je 0x489553
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00490720
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x489695
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4897ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4897ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a2298
mov esi, eax
test esi, esi
je 0x4897ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4897ad
mov ecx, esi
call fcn.00489600
cmp edi, eax
jge 0x4897ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x489733
mov dword [esp + 0x34], 1
jmp 0x48978e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4897ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00488bf0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4a2c3b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a2c73
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.004a0cb5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a0c8d
jmp 0x4a2c7f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a432d
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 0x4a436f
call fcn.004aa326
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a436f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a4366
xor eax, eax
jmp 0x4a4377
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a437d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4aa856
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 0x4aa884
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aa8a2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aa7bc
jmp 0x4aa8a2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa8a2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aa7bc
test edi, edi
mov eax, edi
jne 0x4aa88c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408db0
Capabilities:
Create directory

Disassembly:
push esi
push ebx
push eax
mov eax, 0x2010
call fcn.0040fcd0
sub esp, eax
mov eax, dword [esp + eax]
mov esi, eax
mov eax, dword [0x42a0a0]
test eax, eax
je 0x408e68
xor ebx, ebx
test eax, eax
jg 0x408deb
jmp 0x408e10
add ebx, 1
cmp dword [0x42a0a0], ebx
jle 0x408e10
mov eax, dword [ebx*4 + 0x4290a0]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x408de0
mov eax, 1
add esp, 0x2014
pop ebx
pop esi
ret
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 2
jne 0x408e24
cmp word [esi + 2], 0x3a
je 0x408e02
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x408eb0
mov ebx, dword [0x42a0a0]
cmp ebx, 0x3ff
jg 0x408e02
mov dword [esp], esi
call sub.msvcrt.dll__wcsdup
add dword [0x42a0a0], 1
mov dword [ebx*4 + 0x4290a0], eax
jmp 0x408e02
mov ecx, 0x1000
mov edx, str._HOME_
lea eax, [esp + 0x10]
call fcn.004086e0
test al, al
je 0x408ec8
lea eax, [esp + 0x10]
mov ebx, dword [0x42a0a0]
mov dword [esp], eax
call sub.msvcrt.dll__wcsdup
mov dword [ebx*4 + 0x4290a0], eax
mov eax, dword [0x42a0a0]
add eax, 1
mov dword [0x42a0a0], eax
jmp 0x408dd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408e3c
xor eax, eax
jmp 0x408e07
mov eax, str._HOME_
call fcn.00408d80
lea esi, [esi]
lea esi, [esi]

Function at 0x409060
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41c044]
test eax, eax
je 0x409099
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x4090b0
mov eax, dword [0x41c044]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp byte [0x427080], 0
jne 0x4090d0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41c044]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
jmp 0x409088
mov edx, 0x414
lea edi, [esp + 0x12]
mov dword [esp + 0x12], 0
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [esp + 0x16], 3
mov ebx, 0x14
mov dword [esp + 0x1a], 0x4270a0
mov dword [esp + 0x1e], 0x41714e
mov word [esp + 0x22], dx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41714e
mov dword [esp], edi
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
jmp 0x4091a3
test al, 0x10
je 0x4090a2
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x414
sub esp, 4
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 3
mov dword [esp + 0x1a], 0x4270a0
mov dword [esp + 0x1e], 0x41714e
mov word [esp + 0x22], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41714e
mov dword [esp], edi
call esi
sub esp, 4
sub ebx, 1
je 0x4090a2
mov dword [esp], 0x4270a0
call ebp
sub esp, 4
cmp eax, 0xffffffff
jne 0x409138
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e820
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
Set environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1000
mov edx, str._TEMP_onefile__PID___TIME_
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, 0x4270a0
call fcn.004086e0
test al, al
je 0x40ea70
mov dword [esp + 4], 1
mov dword [esp], 0x4091c0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
sub esp, 8
test eax, eax
je 0x40ea84
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x1b
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 4
lea ecx, [eax + 3]
cmp byte [eax + 1], 0x41
mov dword [0x427060], eax
movzx edx, byte [eax]
movzx ebx, byte [eax + 2]
mov dword [0x427084], ecx
jne 0x40ea7a
cmp dl, 0x4b
jne 0x40ea7a
cmp bl, 0x59
jne 0x40ea7a
mov dword [esp], 0x20000
mov dword [0x427074], 0
call sub.msvcrt.dll_malloc
mov dword [0x427068], eax
test eax, eax
je 0x40ea62
mov dword [esp], 0x27420
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x40ea58
mov dword [eax + 0x736c], 0
mov dword [eax + 0x7370], 0
mov dword [eax + 0x7374], 0
mov dword [eax + 0x7380], 0
mov dword [eax + 0x738c], 0
mov dword [eax + 0x7388], 0
mov dword [eax + 0x72b8], 0
mov dword [eax + 0x7394], 0
mov dword [eax + 0x7398], 0
mov dword [eax + 0x73a0], 0
mov dword [eax + 0x73a4], 0
mov dword [eax + 0x73b4], 0
mov dword [eax + 0x739c], 0
mov dword [eax + 0x73c4], 0
mov dword [eax + 0x73c8], 0
mov dword [eax + 0x73d4], 0
mov dword [eax + 0x2741c], 0
xor eax, eax
cpuid
xor ecx, ecx
cmp eax, 6
jbe 0x40e9e9
mov eax, 7
cpuid
shr ebx, 8
and ebx, 1
mov ecx, ebx
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x7384], ecx
mov dword [esi + 0x735c], 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x73ac], 0x8000001
mov dword [esi + 0x73d8], 0
mov dword [esi + 0x7360], 0
mov dword [esi + 0x7364], 1
mov dword [0x427064], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebp
mov byte [0x427080], 1
mov dword [esp + 0x40], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040ded0
mov dword [0x427064], 0
mov eax, str.Error__couldnt_allocate_memory.
call fcn.00408d50
lea esi, [esi]
mov eax, str._TEMP_onefile__PID___TIME_
call fcn.00408d80
mov eax, str.Error__couldnt_find_attached_data_header.
call fcn.00408d50
mov eax, str.Error__failed_to_register_signal_handler.
call fcn.00408d50
nop
nop
push ebp
mov ebp, esp
sub esp, 8
jmp 0x40eaae
mov eax, dword [0x416008]
mov eax, dword [eax]
call eax
mov eax, dword [0x416008]
add eax, 4
mov dword [0x416008], eax
mov eax, dword [0x416008]
mov eax, dword [eax]
test eax, eax
jne 0x40ea98
nop
nop
leave
ret
Function at 0x40ed20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.004151ac
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.004151ac
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x40f8f4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40f913
mov eax, 0
jmp 0x40f957
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40f936
mov eax, 0
jmp 0x40f957
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40f952
mov eax, 0
jmp 0x40f957
mov eax, 1
leave
ret

Function at 0x40f959
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40f9b8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40f9b0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40f9b0
mov eax, dword [ebp - 4]
jmp 0x40f9cc
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40f98d
mov eax, 0
leave
ret
Function at 0x411c90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x45834b
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 + 0x44]
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x411d13
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x585bf4
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x411d13
push 0x585bf4
lea ecx, [esp + 0xc]
call fcn.00456b4c
push 0x585c00
lea ecx, [esp + 0xc]
call fcn.00456b4c
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 0x411d4f
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call sub.MFC42.DLL_CString::CString
jmp 0x411e15
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test byte [esp + 0x50], 0x10
je 0x411dd2
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
lea edx, [esp + 0x7c]
push 0x585bfc
push edx
call ebx
add esp, 8
test eax, eax
je 0x411dd2
lea eax, [esp + 0x7c]
push 0x585bf8
push eax
call ebx
add esp, 8
test eax, eax
je 0x411dd2
mov eax, dword [ebp + 0x20]
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], 0x23
call edi
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411d5e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0x20]
push esi
push 2
push 0x1102
push edx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call sub.MFC42.DLL_CString::CString
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 0x412610
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 0x412672
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 0x412680
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4583cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 0x48]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4127ba
mov eax, dword [edi + 0x4c]
lea esi, [edi + 0x4c]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4126e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x412831
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00456bee
push esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push eax
push 0x585c34
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41280f
lea ecx, [esp + 0x14]
push ecx
push str..htm
push accept
mov ecx, edi
call fcn.00412610
test eax, eax
jne 0x41280f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
push accept
mov ecx, edi
call fcn.00412610
test eax, eax
jne 0x41280f
lea edx, [esp + 0x14]
push 0x585c10
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4127ee
lea eax, [esp + 0x14]
push 0x585c0c
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4127ee
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4127f1
lea ecx, [edi + 0x50]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4126fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x412831
mov byte [esi], 0
push 0x585c08
push esi
call ebx
mov edx, dword [esp + 0x10]
push edx
push esi
call ebx
lea eax, [esp + 0x14]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor ecx, ecx
cmp esi, 0x20
setg cl
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x224], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4