joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a1a4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x465a50]
cmp byte [eax + 0xc], 0
je 0x43a311
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a30a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x466b64], 0
jne 0x43a1f8
push 0x43a318
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43a320
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b64], eax
cmp dword [0x464b08], 0
jne 0x43a2f3
push 0x43a330
call sub.kernel32.dll_LoadLibraryA
mov dword [0x464b08], eax
cmp dword [0x464b08], 0
je 0x43a2f3
push 0x43a33c
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b68], eax
push 0x43a34c
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b6c], eax
push 0x43a360
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b70], eax
push 0x43a378
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b74], eax
push 0x43a390
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b78], eax
push 0x43a3a4
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b7c], eax
push 0x43a3bc
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b80], eax
push 0x43a3d4
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b84], eax
push 0x43a3f0
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b88], eax
push 0x43a3fc
mov eax, dword [0x464b08]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a311
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43e19c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040421c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43e1eb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445994
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4459e4]
test si, 4
je 0x4459a8
or bl, 1
test si, 8
je 0x4459b2
or bl, 4
test si, 1
je 0x4459bc
or bl, 8
test si, 2
je 0x4459c6
or bl, 0x10
test si, 0x10
je 0x4459d0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4459df
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4459e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445a20]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445a01
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445a10
or bl, 4
test esi, 0x20000000
je 0x445a1b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c0e4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c0f6
add esp, 0xfffffff0
call fcn.004037c8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419754
mov eax, dword [0x465718]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c488
mov eax, dword [0x465724]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c494
mov eax, ebx
call fcn.0044c4a0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411a4c]
call fcn.00403460
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411a4c]
call fcn.00403460
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411a4c]
call fcn.00403460
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411a4c]
call fcn.00403460
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411a4c]
call fcn.00403460
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4488b8
push eax
push 0
push 0
mov eax, dword [0x465868]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b1b0]
call fcn.0041c948
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b1b0]
call fcn.0041c948
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b1b0]
call fcn.0041c948
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044c8f0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c7b8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c7b8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c7b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c233
call fcn.00403820
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44c59c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c747
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c728
mov dl, 1
mov eax, dword [0x411e68]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040421c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44c717
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043a504
test al, al
je 0x44c70a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44c758
lea eax, [ebp - 0x254]
call fcn.00408e28
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44c70a
xor eax, eax
push ebp
push 0x44c703
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44c790
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44c6ec
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44c6ec
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c70a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c60d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415944
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c74e
lea eax, [ebp - 0x260]
call fcn.0040421c
ret

Function at 0x44d090
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x466bb0]
cmp byte [eax + 0xa5], 0
jne 0x44d101
cmp dword [0x466bc8], 0
jne 0x44d0c2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d04c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466bc8], eax
cmp dword [0x466bc4], 0
jne 0x44d0dd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466bc4], eax
cmp dword [0x466bcc], 0
jne 0x44d101
push esp
push 0
push 0
push 0x44cff0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x466bcc], eax
pop edx
ret
Function at 0x44d794
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466bb0]
cmp dword [eax + 0x30], 0
je 0x44d83e
cmp dword [ebx + 0x94], 0
jne 0x44d838
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44d724
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44d838
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44d7fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44d838
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413db4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44d80d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e39c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44e3d1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040430c
jmp 0x44e3de
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404270
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44f4f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44f531
mov eax, esi
call fcn.00435bc4
test al, al
je 0x44f531
mov eax, dword [ebx + 0x84]
call fcn.00435964
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44f531
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435964
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x452c1c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x452c4a
mov eax, ebx
call fcn.004536d0
cmp dword [ebx + 0x40], 0
je 0x452c43
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x452cbb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x452cad
cmp dword [ebx + 8], 0
je 0x452c6c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x452c7e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x452cad
cmp dword [ebx + 8], 0
je 0x452c5f
cmp eax, 3
je 0x452c91
dec eax
jne 0x452c5f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x452c5f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x452c5f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x452cd9
cmp dword [ebx + 0x14], 0xcc
je 0x452cd9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00452ce4
pop ebx
ret
Function at 0x4027e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x5f4
xor eax, eax
push ebx
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov ecx, 0x11
lea edi, [esp + 0x24]
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x44
mov word [esp + 0x58], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x10]
push 0xb7
push ecx
lea edx, [esp + 0x2c]
push 0xd2
push edx
push 0xf1
push 0
push 0xfe
push 0
mov eax, dword [esp + 0x638]
push 7
push 3
mov ecx, dword [esp + 0x638]
push 0xb5
push 0
push 0xe6
push 0
push 0x83
push 0
push 0xf
push eax
push 0x78
push ecx
push 0x92
call fcn.004026e0
mov esi, dword [0x4f5918]
mov ebx, 0x10002
mov ecx, 0xb2
xor eax, eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x68]
push edx
push eax
call esi
push 0x37
push 0
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x18]
push 0x1c
push 4
lea ecx, [esp + 0x1c]
push 0x96
push ecx
add edx, 8
push 0x23
push edx
push 0x23
push eax
push 0x26
call fcn.00402730
lea ecx, [esp + 0x68]
mov dword [esp + 0x334], ebx
mov edx, dword [esp + 0x14]
push ecx
push edx
call esi
push 0xef
mov ecx, 0xdf
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push 0x1c
call fcn.00402620
push 0x36
push 3
mov ebx, dword [esp + 0x610]
mov eax, dword [esp + 0x18]
push 0xe6
push 0x2fff
mov esi, dword [ebx + 0x3c]
push 0xf2
add esi, ebx
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x34]
push ecx
push 0xda
push edx
push 0x37
push eax
push 0x7c
call fcn.00402650
lea ecx, [esp + 0x20]
push 0xe5
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x54]
push ecx
push 0x69
push edx
mov edx, dword [esp + 0x20]
push 0x59
push ebx
push 0x44
push eax
push 0xa6
mov ecx, 0xee
call fcn.00402630
xor eax, eax
mov ax, word [esi + 0x14]
lea ecx, [eax + esi + 0x18]
mov al, byte [esi + 6]
cmp al, 1
jl 0x4029ce
push ebp
movsx ebp, al
lea edx, [ebp + ebp*4]
lea edi, [ecx + edx*8 - 0x14]
mov ecx, dword [edi - 4]
mov edx, dword [edi]
lea eax, [esp + 0x24]
push 0xc6
push eax
mov eax, dword [edi - 8]
push 0x45
push ecx
add edx, ebx
push 0x49
push edx
mov edx, dword [esp + 0x28]
add eax, edx
mov edx, dword [esp + 0x2c]
push 0x52
push eax
push 0x8b
mov ecx, 0xee
call fcn.00402630
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
add edx, ecx
push edx
push eax
call fcn.00402680
sub edi, 0x28
dec ebp
jne 0x402979
pop ebp
mov eax, dword [esp + 0x3d8]
lea ecx, [esp + 0x20]
push 0xe
push ecx
push 0x92
push 4
lea edx, [esp + 0x1c]
push 0x4a
push edx
mov edx, dword [esp + 0x28]
add eax, 8
push 0xe
push eax
push 0x27
mov ecx, 0x27
call fcn.00402630
mov ecx, dword [esi + 0x28]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x334]
push 0x11
push edx
push 0x2c
add ecx, ebx
push eax
push 0x18
mov dword [esp + 0x3f8], ecx
call fcn.004027a0
pop edi
pop esi
pop ebx
add esp, 0x5f4
ret 0x1c
Function at 0x404305
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4f5428
cmp edx, dword [eax]
je 0x404327
add eax, 8
inc ecx
cmp eax, 0x4f54b8
jl 0x404318
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4f5428]
jne 0x404455
mov eax, dword [0x4f5b00]
cmp eax, 1
je 0x40442f
test eax, eax
jne 0x404358
cmp dword [0x4f5378], 1
je 0x40442f
cmp edx, 0xfc
je 0x404455
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40438f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004048b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404a20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4043d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404a20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406380
push edi
call fcn.004035c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004048b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004048c0
lea eax, [ebp - 0xa0]
push 0x406360
push eax
call fcn.004048c0
push dword [esi + 0x4f542c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004048c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040561e
add esp, 0x2c
pop edi
jmp 0x404455
lea eax, [ebp + 8]
lea esi, [esi + 0x4f542c]
push 0
push eax
push dword [esi]
call fcn.00404a20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call fcn.004011c6
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call fcn.004011de
push eax
call fcn.004011d8
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call fcn.0040121a
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call fcn.00401220
push eax
push dword [ebp - 0x10c]
call fcn.00401214
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call fcn.004011e4
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call fcn.004011de
push eax
call fcn.004011d8
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call fcn.004011d2
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call fcn.004011c6
push dword [ebp - 0x108]
call fcn.004011cc
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x409495
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00409645
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x409593
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x409536
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x409579
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40954d
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x409568
test al, 0x40
je 0x40955f
mov ecx, dword [edi + 0x20]
jmp 0x409566
test al, 0x80
je 0x409579
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x409579
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x409505
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40a03e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040a1ee
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40a13c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40a0df
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40a122
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40a0f6
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40a111
test al, 0x40
je 0x40a108
mov ecx, dword [edi + 0x20]
jmp 0x40a10f
test al, 0x80
je 0x40a122
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40a122
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40a0ae
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x415b20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4784bb
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.0046c8ba
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415ba2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046a6da
mov eax, dword [eax]
push 0x4921d4
push eax
call fcn.0045ca84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046cb45
test bl, bl
je 0x415ba2
push 0x4921d4
lea ecx, [esp + 0xc]
call fcn.0046ced5
push 0x495d4c
lea ecx, [esp + 0xc]
call fcn.0046ced5
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 0x415bde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046cb45
jmp 0x415ca9
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 0x415c62
lea edx, [esp + 0x7c]
push 0x495d48
push edx
call fcn.0045ca84
add esp, 8
test eax, eax
je 0x415c62
lea eax, [esp + 0x7c]
push 0x495d44
push eax
call fcn.0045ca84
add esp, 8
test eax, eax
je 0x415c62
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 0x415bf2
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.0046cb45
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 0x4164a0
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 0x416502
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