joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4340e8
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 0x434104
cmp dword [esi + 4], 0
je 0x434131
test byte [ebx + 0x55], 1
jne 0x434123
mov eax, ebx
call fcn.00432c88
test eax, eax
jne 0x434123
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x434241
mov edx, esi
mov eax, ebx
call fcn.00433c0c
jmp 0x434241
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 0x43423a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00435f58
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.00430964
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004340e8
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.00435f58
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434241
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 0x43a810
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x452210]
cmp byte [eax + 0xc], 0
je 0x43a97d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a976
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x453b64], 0
jne 0x43a864
push 0x43a984
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43a98c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b64], eax
cmp dword [0x451b0c], 0
jne 0x43a95f
push 0x43a99c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x451b0c], eax
cmp dword [0x451b0c], 0
je 0x43a95f
push 0x43a9a8
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b68], eax
push 0x43a9b8
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b6c], eax
push 0x43a9cc
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b70], eax
push 0x43a9e4
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b74], eax
push 0x43a9fc
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b78], eax
push 0x43aa10
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b7c], eax
push 0x43aa28
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b80], eax
push 0x43aa40
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b84], eax
push 0x43aa5c
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b88], eax
push 0x43aa68
mov eax, dword [0x451b0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x453b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a97d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Function at 0x445f6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445fbc]
test si, 4
je 0x445f80
or bl, 1
test si, 8
je 0x445f8a
or bl, 4
test si, 1
je 0x445f94
or bl, 8
test si, 2
je 0x445f9e
or bl, 0x10
test si, 0x10
je 0x445fa8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445fb7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x445fc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445ff8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445fd9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445fe8
or bl, 4
test esi, 0x20000000
je 0x445ff3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c6a0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c6b2
add esp, 0xfffffff0
call fcn.00403474
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190ec
mov eax, dword [0x451ee4]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ca44
mov eax, dword [0x451ef0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ca50
mov eax, ebx
call fcn.0044ca5c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4113e4]
call fcn.00403120
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4113e4]
call fcn.00403120
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4113e4]
call fcn.00403120
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4113e4]
call fcn.00403120
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4113e4]
call fcn.00403120
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, 0x448e78
push eax
push 0
push 0
mov eax, dword [0x452030]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ab38]
call fcn.0041c2ac
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ab38]
call fcn.0041c2ac
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ab38]
call fcn.0041c2ac
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044ce7c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cd58
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cd58
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cd58
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c7ef
call fcn.004034cc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44cb3c
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 0x44cce7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ccc8
mov dl, 1
mov eax, dword [0x411800]
call fcn.00403120
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ea0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ccb7
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.0043ab70
test al, al
je 0x44ccaa
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, 0x44ccf8
lea eax, [ebp - 0x254]
call fcn.0040890c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ccaa
xor eax, eax
push ebp
push 0x44cca3
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 0x44cd30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44cc8c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404110
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 0x44cc8c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404110
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ccaa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44cbad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004152dc
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 0x44ccee
lea eax, [ebp - 0x260]
call fcn.00403ea0
ret

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

Disassembly:
push ecx
mov eax, dword [0x453bb0]
cmp byte [eax + 0xa5], 0
jne 0x44d68d
cmp dword [0x453bc8], 0
jne 0x44d64e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d5d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x453bc8], eax
cmp dword [0x453bc4], 0
jne 0x44d669
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x453bc4], eax
cmp dword [0x453bcc], 0
jne 0x44d68d
push esp
push 0
push 0
push 0x44d57c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x453bcc], eax
pop edx
ret
Function at 0x44d784
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44d79b
add esp, 0xfffffff0
call fcn.00403474
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004190ec
mov eax, dword [0x45201c]
cmp word [eax + 2], 0
jne 0x44d7c3
mov eax, dword [0x45201c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ee5c
mov eax, dword [0x4520c8]
cmp word [eax + 2], 0
jne 0x44d7dd
mov eax, dword [0x4520c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f054
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4113e4]
call fcn.00403120
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4113e4]
call fcn.00403120
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 [0x41b618]
call fcn.004229d8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44d964
mov eax, dword [0x451f44]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422da8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f5f4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x451f44]
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.0040bfd4
test eax, eax
je 0x44d8d2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408300
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bffc
test eax, eax
je 0x44d8e6
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.00404110
mov eax, dword [0x451e3c]
cmp byte [eax], 0
jne 0x44d91a
mov eax, ebx
call fcn.0044da8c
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.0044f7d0
mov eax, ebx
call fcn.00450194
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d95a
call fcn.004034cc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44dd0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x453bb0]
cmp dword [eax + 0x30], 0
je 0x44ddb6
cmp dword [ebx + 0x94], 0
jne 0x44ddb0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44dc9c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44ddb0
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 0x44dd76
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44ddb0
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.0041374c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44dd85
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e918
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 0x44e94d
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.00403f90
jmp 0x44e95a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ef4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44f9ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44f9ed
mov eax, esi
call fcn.00436230
test al, al
je 0x44f9ed
mov eax, dword [ebx + 0x84]
call fcn.00435f58
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44f9ed
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435f58
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x40625c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406281
mov eax, dword [0x40a880]
cmp eax, 0xffffffff
je 0x406278
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a880], 0xffffffff
jmp 0x4062f4
cmp dword [0x440a20], ebx
je 0x4062f4
cmp byte [0x440620], bl
je 0x4062c0
cmp dword [0x40a880], 0xffffffff
jne 0x4062c9
push 4
push 0x40000000
push 0x440620
call fcn.00405c10
cmp eax, 0xffffffff
mov dword [0x40a880], eax
je 0x4062f4
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a880], 0xffffffff
je 0x4062f4
push esi
mov esi, 0x444a40
push 0x40aac8
push esi
call fcn.00405f5e
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f51
push eax
push esi
push dword [0x40a880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064a6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44021c], esi
push edi
jne 0x4064e0
mov ecx, 0x440218
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064bc
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440618
jl 0x4064b7
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406515
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440218]
xor eax, esi
inc ecx
dec edx
jne 0x4064f8
pop edi
pop esi
not eax
ret 0xc

Function at 0x402450
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x402475
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0x4030a8
sub ecx, 0x4030a4
sar ecx, 2
push ecx
push 0x4030a4
call fcn.00402560
add esp, 8
mov edx, 0x4030a0
sub edx, 0x40309c
sar edx, 2
push edx
push 0x40309c
call fcn.00402560
add esp, 8
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x4024cf
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x54], ecx
jmp 0x4024d6
mov dword [ebp - 0x54], 0xa
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x40368c]
push ecx
mov edx, dword [0x403688]
push edx
call fcn.004025a0
add esp, 8
mov eax, dword [0x403688]
push eax
call fcn.00402420
add esp, 4
mov ecx, 0x4030b0
sub ecx, 0x4030ac
sar ecx, 2
push ecx
push 0x4030ac
call fcn.00402560
add esp, 8
mov edx, 0x4030b8
sub edx, 0x4030b4
sar edx, 2
push edx
push 0x4030b4
call fcn.00402560
add esp, 8
call fcn.004025d0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402ea4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046c8
test esi, esi
jne 0x402edb
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.004047b8
jmp 0x402efc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d40
mov dword [esp], eax
test esi, esi
je 0x402efc
cmp dword [ebx], 0
je 0x402efc
dec esi
jmp 0x402ee3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4031f4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4ec008], 0x8088405
inc edx
mov dword [ebx + 0x4ec008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036e8
Capabilities:
Query or enumerate registry value

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

Function at 0x4044a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f304c], 0
je 0x404501
cmp word [0x4f3220], 0xd7b2
jne 0x4044c9
cmp dword [0x4f3228], 0
jbe 0x4044c9
mov eax, 0x4f321c
call dword [0x4f3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ec070
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 0x404528
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ec034], 0
jne 0x40451d
push 0
push 0x4ec068
push 0x4ec070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40467c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ae0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4f304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404644
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406788
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4067ee
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404938
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040327c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4067d8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067f5
lea eax, [ebp - 0x10]
call fcn.004046c8
ret

Function at 0x409830
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x409854
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404b88
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409868
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.00404b88
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40988a
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ce10
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 0x40ce49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047b8
jmp 0x40ce52
mov eax, ebx
mov edx, esi
call fcn.0040471c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ce5c
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 0x40ce7d
mov al, byte [esp]
jmp 0x40ce7f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret