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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4b3a40]
cmp byte [eax + 0xc], 0
je 0x44fb91
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44fb8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b4b38], 0
jne 0x44fa78
push 0x44fb98
call sub.kernel32.dll_GetModuleHandleA_3
mov ebx, eax
push 0x44fba0
push ebx
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b38], eax
cmp dword [0x4b1cac], 0
jne 0x44fb73
push 0x44fbb0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4b1cac], eax
cmp dword [0x4b1cac], 0
je 0x44fb73
push 0x44fbbc
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b3c], eax
push 0x44fbcc
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b40], eax
push 0x44fbe0
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b44], eax
push 0x44fbf8
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b48], eax
push 0x44fc10
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b4c], eax
push 0x44fc24
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b50], eax
push 0x44fc3c
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b54], eax
push 0x44fc54
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b58], eax
push 0x44fc70
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b5c], eax
push 0x44fc7c
mov eax, dword [0x4b1cac]
push eax
call sub.kernel32.dll_GetProcAddress_2
mov dword [0x4b4b60], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fb91
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x453b48
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.00404408
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x453b97
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.00404688
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45c720
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45c770]
test si, 4
je 0x45c734
or bl, 1
test si, 8
je 0x45c73e
or bl, 4
test si, 1
je 0x45c748
or bl, 8
test si, 2
je 0x45c752
or bl, 0x10
test si, 0x10
je 0x45c75c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c76b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45c774
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45c7ac]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c78d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45c79c
or bl, 4
test esi, 0x20000000
je 0x45c7a7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x463288
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46329a
add esp, 0xfffffff0
call fcn.00403930
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422fd4
mov eax, dword [0x4b3424]
mov dword [eax + 4], ebx
mov dword [eax], 0x46362c
mov eax, dword [0x4b3434]
mov dword [eax + 4], ebx
mov dword [eax], 0x463638
mov eax, ebx
call fcn.00463644
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4177dc]
call fcn.00403588
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4177dc]
call fcn.00403588
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4177dc]
call fcn.00403588
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4177dc]
call fcn.00403588
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4177dc]
call fcn.00403588
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, 0x45fa5c
push eax
push 0
push 0
mov eax, dword [0x4b36b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x424acc]
call fcn.00426304
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x424acc]
call fcn.00426304
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x424acc]
call fcn.00426304
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00463a94
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46395c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46395c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46395c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4633d7
call fcn.00403988
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x463740
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 0x4638eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4638cc
mov dl, 1
mov eax, dword [0x417e40]
call fcn.00403588
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404408
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4638bb
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.0044fd84
test al, al
je 0x4638ae
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, 0x4638fc
lea eax, [ebp - 0x254]
call fcn.00409a74
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4638ae
xor eax, eax
push ebp
push 0x4638a7
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 0x463934
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x463890
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404688
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 0x463890
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404688
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4638ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4637b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c908
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 0x4638f2
lea eax, [ebp - 0x260]
call fcn.00404408
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b4b84]
cmp byte [eax + 0xa5], 0
jne 0x4642a5
cmp dword [0x4b4b9c], 0
jne 0x464266
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4641f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b4b9c], eax
cmp dword [0x4b4b98], 0
jne 0x464281
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b4b98], eax
cmp dword [0x4b4ba0], 0
jne 0x4642a5
push esp
push 0
push 0
push 0x464194
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b4ba0], eax
pop edx
ret
Function at 0x464964
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b4b84]
cmp dword [eax + 0x30], 0
je 0x464a0e
cmp dword [ebx + 0x94], 0
jne 0x464a08
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4648f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x464a08
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 0x4649ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x464a08
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.0041a148
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4649dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46556c
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 0x4655a1
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.004044f8
jmp 0x4655ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040445c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4666c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x466701
mov eax, esi
call fcn.0044b2b8
test al, al
je 0x466701
mov eax, dword [ebx + 0x84]
call fcn.0044afb4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x466701
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044afb4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x469ed8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x469f06
mov eax, ebx
call fcn.0046a98c
cmp dword [ebx + 0x40], 0
je 0x469eff
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x469f77
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x469f69
cmp dword [ebx + 8], 0
je 0x469f28
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 0x469f3a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x469f69
cmp dword [ebx + 8], 0
je 0x469f1b
cmp eax, 3
je 0x469f4d
dec eax
jne 0x469f1b
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 0x469f1b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x469f1b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x469f95
cmp dword [ebx + 0x14], 0xcc
je 0x469f95
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.00469fa0
pop ebx
ret
Function at 0x47acbc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0047a920
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004048d8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x47ad1a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b36c0]
mov dl, 1
mov eax, dword [0x47a818]
call fcn.0040ca18
call fcn.00403d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47ad24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004048d8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47ad7c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b3a4c]
mov dl, 1
mov eax, dword [0x47a818]
call fcn.0040ca18
call fcn.00403d98
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0047a950
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x48ae68
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
pop edi
pop esi
pop ebx
ret

Function at 0x48afe4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x34]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp eax, 0xffffffff
je 0x48b021
add dword [ebx + 0x38], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x48b2b4
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.00404408
test ebx, ebx
je 0x48b35f
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x48b2f4
mov eax, ebx
call fcn.004048d8
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x48b36b
mov eax, esi
mov edx, ebx
call fcn.0040445c
jmp 0x48b36b
mov eax, ebx
call fcn.004048d8
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp], eax
cmp dword [esp], 0
je 0x48b36b
mov ebx, dword [esp]
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 8], eax
mov byte [esp + 0xc], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
lea edx, [esp + 8]
mov ecx, 3
mov eax, 0x48b37c
call fcn.00409b0c
jmp 0x48b36b
mov eax, esi
mov edx, 0x48b390
call fcn.0040445c
add esp, 0x24
pop edi
pop esi
pop ebx
ret

Function at 0x48bc14
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416d5c]
call fcn.00404dd4
xor eax, eax
push ebp
push 0x48bd58
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b29e8], 0
jne 0x48bc67
mov ecx, dword [0x4b32ac]
mov dl, 1
mov eax, dword [0x407ac8]
call fcn.0040c9dc
call fcn.00403d98
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402fbc
mov eax, ebx
call fcn.00404c80
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x48bd68
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405fa4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c90
test eax, eax
jle 0x48bcff
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x48bcf8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004046a0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404688
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004089ac
test eax, eax
jne 0x48bcf8
mov ebx, 0x15
jmp 0x48bd04
mov ebx, 0x10
jmp 0x48bd04
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4b29e8]
call fcn.0048ba8c
mov eax, dword [ebp - 8]
call fcn.0048ba8c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bd5f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040442c
lea eax, [ebp - 0x10]
mov edx, dword [0x416d5c]
call fcn.00404ea4
ret
Function at 0x4956e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4956e8
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x495884
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 8]
mov edx, 0x49589c
mov eax, esi
call fcn.0049346c
mov edx, dword [ebp - 8]
lea eax, [ebx + 0xc]
call fcn.0040445c
lea ecx, [ebp - 0xc]
mov edx, 0x4958b0
mov eax, esi
call fcn.0049346c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0x28]
call fcn.0040445c
lea ecx, [ebp - 0x10]
mov edx, 0x4958c8
mov eax, esi
call fcn.0049346c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x10]
call fcn.0040445c
lea ecx, [ebp - 0x14]
mov edx, 0x4958e4
mov eax, esi
call fcn.0049346c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x14]
call fcn.0040445c
lea ecx, [ebp - 0x18]
mov edx, 0x495900
mov eax, esi
call fcn.0049346c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x24]
call fcn.0040445c
lea ecx, [ebp - 0x20]
mov edx, 0x495918
mov eax, esi
call fcn.0049346c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00408a1c
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
call fcn.00408e10
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x24]
mov edx, 0x495930
mov eax, esi
call fcn.0049346c
mov eax, dword [ebp - 0x24]
call fcn.0049255c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x28]
mov edx, 0x495940
mov eax, esi
call fcn.0049346c
mov eax, dword [ebp - 0x28]
call fcn.0049255c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 4]
mov edx, 0x495958
mov eax, esi
call fcn.0049346c
mov eax, dword [ebp - 4]
call fcn.00492110
test al, al
je 0x49583b
mov eax, dword [ebp - 4]
call fcn.00408dd4
mov edi, eax
test edi, edi
jl 0x495831
call fcn.0040ab1c
mov dword [ebp - 0x2c], edi
fild dword [ebp - 0x2c]
fdiv dword [0x495960]
faddp st(1)
fstp qword [ebx + 0x38]
wait
jmp 0x495847
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
jmp 0x495847
mov eax, dword [ebp - 4]
call fcn.0049255c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x49596c
mov eax, esi
call fcn.0049346c
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x48]
call fcn.0040445c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49588b
lea eax, [ebp - 0x30]
call fcn.00404408
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.0040442c
ret

Function at 0x4a2370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a23ca
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a2360
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00491010
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00490c10
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a23d1
lea eax, [ebp - 4]
call fcn.00404408
ret
Function at 0x40352c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x403585
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.004033c8
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004033c8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x40356f
inc ebx
jmp 0x403558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40358c
lea eax, [ebp - 8]
call fcn.004054fc
ret

Function at 0x403594
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004054fc
test esi, esi
jne 0x4035cb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004055ec
jmp 0x4035ec
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004033c8
mov dword [esp], eax
test esi, esi
je 0x4035ec
cmp dword [ebx], 0
je 0x4035ec
dec esi
jmp 0x4035d3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4043dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x467020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404474
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404454
xor eax, eax
push ebp
push 0x40444d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404490
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404454
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x467020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x467020], ax
mov esp, ebp
pop ebp
ret

Function at 0x405358
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46904c], 0
je 0x4053b9
cmp word [0x469220], 0xd7b2
jne 0x405381
cmp dword [0x469228], 0
jbe 0x405381
mov eax, 0x46921c
call dword [0x469238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46775c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4053e0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46702c], 0
jne 0x4053d5
push 0
push 0x467754
push 0x46775c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret