joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439d18
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 + 0x240], 0
je 0x439d34
cmp dword [esi + 4], 0
je 0x439d61
test byte [ebx + 0x55], 1
jne 0x439d53
mov eax, ebx
call fcn.0043816c
test eax, eax
jne 0x439d53
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x439e71
mov edx, esi
mov eax, ebx
call fcn.00439720
jmp 0x439e71
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 0x439e6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043bd70
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.00435614
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00439d18
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.0043bd70
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439e71
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 0x440e54
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45abc0]
cmp byte [eax + 0xc], 0
je 0x440fc1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x440fba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45e544], 0
jne 0x440ea8
push 0x440fc8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x440fd0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e544], eax
cmp dword [0x45a574], 0
jne 0x440fa3
push 0x440fe0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45a574], eax
cmp dword [0x45a574], 0
je 0x440fa3
push 0x440fec
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e548], eax
push 0x440ffc
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e54c], eax
push 0x441010
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e550], eax
push 0x441028
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e554], eax
push 0x441040
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e558], eax
push 0x441054
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e55c], eax
push 0x44106c
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e560], eax
push 0x441084
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e564], eax
push 0x4410a0
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e568], eax
push 0x4410ac
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45e56c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440fc1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446608
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44665c]
test si, 4
je 0x44661d
or bl, 1
test si, 8
je 0x446627
or bl, 4
test si, 1
je 0x446631
or bl, 8
test si, 2
je 0x44663b
or bl, 0x10
test si, 0x10
je 0x446645
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446654
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x446660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44669c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44667a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446689
or bl, 4
test esi, 0x20000000
je 0x446694
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44dd50
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44dd62
add esp, 0xfffffff0
call fcn.00403cb8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a05c
mov eax, dword [0x45a89c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e0f4
mov eax, dword [0x45a8a8]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e100
mov eax, ebx
call fcn.0044e10c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411e58]
call fcn.0040397c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411e58]
call fcn.0040397c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411e58]
call fcn.0040397c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411e58]
call fcn.0040397c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411e58]
call fcn.0040397c
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, 0x449ba4
push eax
push 0
push 0
mov eax, dword [0x45a9ec]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41db50]
call fcn.0041f070
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41db50]
call fcn.0041f070
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41db50]
call fcn.0041f070
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e53c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e40c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e40c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e40c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44de9f
call fcn.00403d10
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e1f0
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 0x44e39b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e37c
mov dl, 1
mov eax, dword [0x41227c]
call fcn.0040397c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047c0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e36b
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.004411b0
test al, al
je 0x44e35e
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, 0x44e3ac
lea eax, [ebp - 0x254]
call fcn.00409304
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e35e
xor eax, eax
push ebp
push 0x44e357
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 0x44e3e4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e340
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a30
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 0x44e340
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e35e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e261
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415f5c
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 0x44e3a2
lea eax, [ebp - 0x260]
call fcn.004047c0
ret

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

Disassembly:
push ecx
mov eax, dword [0x45e57c]
cmp byte [eax + 0xad], 0
jne 0x44ed85
cmp dword [0x45e594], 0
jne 0x44ed46
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ecd0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45e594], eax
cmp dword [0x45e590], 0
jne 0x44ed61
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45e590], eax
cmp dword [0x45e598], 0
jne 0x44ed85
push esp
push 0
push 0
push 0x44ec74
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45e598], eax
pop edx
ret
Function at 0x44ef58
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ef6f
add esp, 0xfffffff0
call fcn.00403cb8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a05c
mov eax, dword [0x45a9d4]
cmp word [eax + 2], 0
jne 0x44ef97
mov eax, dword [0x45a9d4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450a08
mov eax, dword [0x45aa78]
cmp word [eax + 2], 0
jne 0x44efb1
mov eax, dword [0x45aa78]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450c14
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e58]
call fcn.0040397c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e58]
call fcn.0040397c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411e58]
call fcn.0040397c
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e32c]
call fcn.00424174
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x44f168
mov eax, dword [0x45a900]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424548
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4512d4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45a900]
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.0040ca14
test eax, eax
je 0x44f0b8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408cbc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ca48
test eax, eax
je 0x44f0cc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a30
mov byte [ebx + 0xd4], 0
push ebx
push 0x450568
call fcn.0041b1d8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45a80c]
cmp byte [eax], 0
jne 0x44f11d
mov eax, ebx
call fcn.0044f2ac
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004514b0
mov eax, ebx
call fcn.00452010
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f15d
call fcn.00403d10
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f52c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45e57c]
cmp dword [eax + 0x30], 0
je 0x44f5d6
cmp dword [ebx + 0x94], 0
jne 0x44f5d0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f4bc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f5d0
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 0x44f596
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f5d0
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.00414204
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f5a5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4502f0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x450325
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.004048b0
jmp 0x450332
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404814
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451694
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451702
mov eax, esi
call fcn.0043c06c
test al, al
je 0x451702
mov eax, dword [ebx + 0x84]
call fcn.0043bd70
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451702
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4516f6
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043bd70
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004342b4
jmp 0x451702
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004514d0
pop esi
pop ebx
ret
Function at 0x916910
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x484000]
push edi
or ebp, 0xffffffff
jmp 0x916932
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x916939
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x916928
mov eax, 1
add ebx, ebx
jne 0x91694b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x91695c
jne 0x91697b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x91697b
dec eax
add ebx, ebx
jne 0x916968
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x916940
add ebx, ebx
jne 0x916977
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9169cd
xor ecx, ecx
sub eax, 3
jb 0x916993
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x916a02
sar eax, 1
mov ebp, eax
jmp 0x91699e
add ebx, ebx
jne 0x91699e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x91696c
inc ecx
add ebx, ebx
jne 0x9169ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x91696c
add ebx, ebx
jne 0x9169b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9169ae
jne 0x9169ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9169ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9169ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9169de
jmp 0x91692e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9169ec
add edi, ecx
jmp 0x91692e
pop esi
mov edi, esi
mov ecx, 0x3f55
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x916a0a
cmp byte [edi], 0x14
jne 0x916a0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x916a0f
lea edi, [esi + 0x513000]
mov eax, dword [edi]
or eax, eax
je 0x916a7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5170dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x517190]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x916a3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x517194]
or eax, eax
je 0x916a78
mov dword [ebx], eax
add ebx, 4
jmp 0x916a59
call dword [esi + 0x5171a4]
mov ebp, dword [esi + 0x517198]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x916ab2
sub esp, 0xffffff80
jmp 0x492f5c
Function at 0x402a8c
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.00404530
test esi, esi
jne 0x402ac2
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.00404620
jmp 0x402ae0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402940
mov edi, eax
test esi, esi
je 0x402ae0
cmp dword [ebx], 0
je 0x402ae0
dec esi
jmp 0x402ac9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403610
Capabilities:
Query or enumerate registry value

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

Function at 0x4043b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56a04c], 0
je 0x404415
cmp word [0x56a220], 0xd7b2
jne 0x4043dd
cmp dword [0x56a228], 0
jbe 0x4043dd
mov eax, 0x56a21c
call dword [0x56a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4cc09c
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 0x40443c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4cc034], 0
jne 0x404431
push 0
push 0x4cc094
push 0x4cc09c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4065d4
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 0x40663a
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.004047a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f40
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406624
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406641
lea eax, [ebp - 0x10]
call fcn.00404530
ret

Function at 0x40bef8
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 0x40bf31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404620
jmp 0x40bf3a
mov eax, ebx
mov edx, esi
call fcn.00404584
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cf4c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d022
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045c8
lea eax, [ebp - 8]
call fcn.00404a40
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d00c
mov eax, ebx
call fcn.00402704
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d005
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004049f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cfef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d034
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cfef
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d00c
mov eax, dword [ebp - 0x10]
call fcn.00402724
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d029
lea eax, [ebp - 8]
call fcn.00404530
ret