joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c6e8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43c704
cmp dword [esi + 4], 0
je 0x43c731
test byte [ebx + 0x55], 1
jne 0x43c723
mov eax, ebx
call fcn.0043b288
test eax, eax
jne 0x43c723
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43c841
mov edx, esi
mov eax, ebx
call fcn.0043c20c
jmp 0x43c841
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43c83a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e558
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00438e10
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043c6e8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e558
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c841
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442ed0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x465ae4]
cmp byte [eax + 0xc], 0
je 0x44303d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443036
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x466b70], 0
jne 0x442f24
push 0x443044
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44304c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b70], eax
cmp dword [0x464c50], 0
jne 0x44301f
push 0x44305c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x464c50], eax
cmp dword [0x464c50], 0
je 0x44301f
push 0x443068
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b74], eax
push 0x443078
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b78], eax
push 0x44308c
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b7c], eax
push 0x4430a4
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b80], eax
push 0x4430bc
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b84], eax
push 0x4430d0
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b88], eax
push 0x4430e8
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b8c], eax
push 0x443100
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b90], eax
push 0x44311c
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b94], eax
push 0x443128
mov eax, dword [0x464c50]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b98], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44303d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446ee4
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.00403ea4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x446f33
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.00404114
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e678
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e6c8]
test si, 4
je 0x44e68c
or bl, 1
test si, 8
je 0x44e696
or bl, 4
test si, 1
je 0x44e6a0
or bl, 8
test si, 2
je 0x44e6aa
or bl, 0x10
test si, 0x10
je 0x44e6b4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e6c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44e6cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e704]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e6e5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e6f4
or bl, 4
test esi, 0x20000000
je 0x44e6ff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454dac
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x454dbe
add esp, 0xfffffff0
call fcn.004033f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a2b4
mov eax, dword [0x465650]
mov dword [eax + 4], ebx
mov dword [eax], 0x455150
mov eax, dword [0x465660]
mov dword [eax + 4], ebx
mov dword [eax], 0x45515c
mov eax, ebx
call fcn.00455168
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4116f0]
call fcn.004030b8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4116f0]
call fcn.004030b8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4116f0]
call fcn.004030b8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4116f0]
call fcn.004030b8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4116f0]
call fcn.004030b8
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, 0x451584
push eax
push 0
push 0
mov eax, dword [0x465848]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41bce8]
call fcn.0041d12c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41bce8]
call fcn.0041d12c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41bce8]
call fcn.0041d12c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455588
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455464
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455464
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455464
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454efb
call fcn.0040344c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455248
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 0x4553f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4553d4
mov dl, 1
mov eax, dword [0x411c98]
call fcn.004030b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ea4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4553c3
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.00443230
test al, al
je 0x4553b6
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, 0x455404
lea eax, [ebp - 0x254]
call fcn.004089f4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4553b6
xor eax, eax
push ebp
push 0x4553af
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 0x45543c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455398
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404114
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 0x455398
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4553b6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4552b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415f9c
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 0x4553fa
lea eax, [ebp - 0x260]
call fcn.00403ea4
ret

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

Disassembly:
push ecx
mov eax, dword [0x466bbc]
cmp byte [eax + 0xa5], 0
jne 0x455d99
cmp dword [0x466bd4], 0
jne 0x455d5a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455ce4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466bd4], eax
cmp dword [0x466bd0], 0
jne 0x455d75
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466bd0], eax
cmp dword [0x466bd8], 0
jne 0x455d99
push esp
push 0
push 0
push 0x455c88
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x466bd8], eax
pop edx
ret
Function at 0x455e90
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455ea7
add esp, 0xfffffff0
call fcn.004033f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a2b4
mov eax, dword [0x465828]
cmp word [eax + 2], 0
jne 0x455ecf
mov eax, dword [0x465828]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457580
mov eax, dword [0x465928]
cmp word [eax + 2], 0
jne 0x455ee9
mov eax, dword [0x465928]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457778
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4116f0]
call fcn.004030b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4116f0]
call fcn.004030b8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c498]
call fcn.0042220c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456070
mov eax, dword [0x4656e8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004225dc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457d18
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4656e8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c0e8
test eax, eax
je 0x455fde
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004083d4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c110
test eax, eax
je 0x455ff2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404114
mov eax, dword [0x46553c]
cmp byte [eax], 0
jne 0x456026
mov eax, ebx
call fcn.00456198
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00457ef4
mov eax, ebx
call fcn.004588b8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456066
call fcn.0040344c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456418
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466bbc]
cmp dword [eax + 0x30], 0
je 0x4564c2
cmp dword [ebx + 0x94], 0
jne 0x4564bc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4563a8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4564bc
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 0x456482
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4564bc
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.00413c64
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456491
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457024
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 0x457059
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.00403f94
jmp 0x457066
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ef8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4580d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458111
mov eax, esi
call fcn.0043e85c
test al, al
je 0x458111
mov eax, dword [ebx + 0x84]
call fcn.0043e558
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458111
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e558
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x462ccc
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.00403ea4
test ebx, ebx
je 0x462d6d
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x462d08
mov eax, ebx
call fcn.00404364
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x462d79
mov eax, esi
mov edx, ebx
call fcn.00403ef8
jmp 0x462d79
mov eax, ebx
call fcn.00404364
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x462d79
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x462d88
call fcn.00408a74
jmp 0x462d79
mov eax, esi
mov edx, 0x462d9c
call fcn.00403ef8
add esp, 0x20
pop edi
pop esi
pop ebx
ret
Function at 0x462de0
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00403ea4
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
jne 0x462e1d
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404114
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x402a24
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404678
test esi, esi
jne 0x402a5a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404768
jmp 0x402a78
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402938
mov edi, eax
test esi, esi
je 0x402a78
cmp dword [ebx], 0
je 0x402a78
dec esi
jmp 0x402a61
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403784
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40381c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037fc
xor eax, eax
push ebp
push 0x4037f5
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 0x403838
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 0x4037fc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49c048], 0
je 0x40455d
cmp word [0x49c21c], 0xd7b2
jne 0x404525
cmp dword [0x49c224], 0
jbe 0x404525
mov eax, 0x49c218
call dword [0x49c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x499074
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 0x404584
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49901c], 0
jne 0x404579
push 0
push 0x499094
push 0x499074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409068
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b28
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409081
test al, 0x10
jne 0x409085
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409170
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404b28
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409192
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40bba8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bbe1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404768
jmp 0x40bbea
mov eax, ebx
mov edx, esi
call fcn.004046cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bbf4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bc15
mov al, byte [esp]
jmp 0x40bc17
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c29c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c114
mov eax, dword [0x49b0b4]
cmp byte [eax], 0
je 0x40c304
mov eax, dword [0x49aeb0]
call fcn.00402e48
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004094f8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c34c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c33a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49ae60]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49c714]
call fcn.00405e08
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d140
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d1a4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004048e0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1ab
lea eax, [ebp - 0xc]
call fcn.00404678
ret
Function at 0x41f518
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49ca20
cmp dword [edi], 0
jne 0x41f594
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49ca1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49951c
mov ecx, 2
call fcn.004028f8
mov edx, 0x41f4f0
lea eax, [esi + 5]
call fcn.0041f510
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f510
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41f569
mov dword [0x49ca1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x420b00
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420b06
ret

Function at 0x4230b4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x423105
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4230ec
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4230dc
jmp 0x423105
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4230ed
pop ebx
mov esp, ebp
pop ebp
ret