joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455ee0
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 0x45608b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45606c
mov dl, 1
mov eax, dword [0x415698]
call fcn.00403288
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040408c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45605b
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.00443eec
test al, al
je 0x45604e
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, 0x45609c
lea eax, [ebp - 0x254]
call fcn.004092a8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45604e
xor eax, eax
push ebp
push 0x456047
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 0x4560d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x456030
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042fc
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 0x456030
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45604e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455f51
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004191d0
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 0x456092
lea eax, [ebp - 0x260]
call fcn.0040408c
ret

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

Disassembly:
push ecx
mov eax, dword [0x45fbe4]
cmp byte [eax + 0xa5], 0
jne 0x456a31
cmp dword [0x45fbfc], 0
jne 0x4569f2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45697c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fbfc], eax
cmp dword [0x45fbf8], 0
jne 0x456a0d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fbf8], eax
cmp dword [0x45fc00], 0
jne 0x456a31
push esp
push 0
push 0
push 0x456920
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45fc00], eax
pop edx
ret
Function at 0x456b28
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456b3f
add esp, 0xfffffff0
call fcn.004035dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d57c
mov eax, dword [0x45e11c]
cmp word [eax + 2], 0
jne 0x456b67
mov eax, dword [0x45e11c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458290
mov eax, dword [0x45e1d0]
cmp word [eax + 2], 0
jne 0x456b81
mov eax, dword [0x45e1d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458488
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41527c]
call fcn.00403288
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41527c]
call fcn.00403288
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 [0x41fab8]
call fcn.00426e30
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456d08
mov eax, dword [0x45e030]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427200
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x458a38
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e030]
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.0040cb84
test eax, eax
je 0x456c76
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cbac
test eax, eax
je 0x456c8a
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.004042fc
mov eax, dword [0x45df00]
cmp byte [eax], 0
jne 0x456cbe
mov eax, ebx
call fcn.00456e30
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.00458c14
mov eax, ebx
call fcn.004595d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456cfe
call fcn.00403634
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4570b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fbe4]
cmp dword [eax + 0x30], 0
je 0x45715a
cmp dword [ebx + 0x94], 0
jne 0x457154
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457040
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457154
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 0x45711a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457154
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.00417640
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457129
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457cbc
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 0x457cf1
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.0040417c
jmp 0x457cfe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040e0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458df0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458e31
mov eax, esi
call fcn.0043f518
test al, al
je 0x458e31
mov eax, dword [ebx + 0x84]
call fcn.0043f214
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458e31
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f214
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45acec
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebx
add esp, 0xffffffe0
mov dword [0x45fc70], 0x94
push 0x45fc70
call sub.kernel32.dll_GetVersionExA
cmp dword [0x45fc74], 5
je 0x45ad14
xor eax, eax
jmp 0x45adf6
mov eax, dword [0x45fc78]
sub eax, 1
jb 0x45ad22
je 0x45ad29
jmp 0x45ad30
mov ebx, 0x30000
jmp 0x45ad37
mov ebx, 0x39000
jmp 0x45ad37
xor eax, eax
jmp 0x45adf6
push 0x45adfc
lea eax, [esp + 4]
push eax
call dword [0x45dec4]
mov dword [esp + 8], 0x18
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, esp
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
push 6
push 0x45ded4
call dword [0x45dec8]
cmp eax, 0xc0000022
jne 0x45adc2
lea eax, [esp + 8]
push eax
push 0x60000
push 0x45ded4
call dword [0x45dec8]
mov eax, dword [0x45ded4]
call fcn.0045abe0
mov eax, dword [0x45ded4]
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [esp + 8]
push eax
push 6
push 0x45ded4
call dword [0x45dec8]
test eax, eax
jge 0x45adca
xor eax, eax
jmp 0x45adf6
push 0x1000
push ebx
push 0
push 6
mov eax, dword [0x45ded4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x45ded0], eax
cmp dword [0x45ded0], 0
jne 0x45adf1
xor eax, eax
jmp 0x45adf6
mov eax, dword [0x45ded4]
add esp, 0x20
pop ebx
ret

Function at 0x45ae2c
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, edx
mov edx, esi
shr edx, 0x16
shl edx, 2
add edx, eax
mov ebx, dword [edx]
test bl, 1
jne 0x45ae46
xor eax, eax
pop esi
pop ebx
ret
mov eax, ebx
and eax, 0x80
test eax, eax
je 0x45ae63
and ebx, 0xffc00000
and esi, 0x3fffff
add ebx, esi
mov esi, ebx
jmp 0x45aeaf
push 0x1000
and ebx, 0xfffff000
push ebx
push 0
push 4
mov eax, dword [0x45ded4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov eax, esi
and eax, 0x3ff000
shr eax, 0xc
shl eax, 2
add eax, ebx
mov eax, dword [eax]
test al, 1
jne 0x45ae9a
xor eax, eax
pop esi
pop ebx
ret
and eax, 0xfffff000
and esi, 0xfff
add eax, esi
mov esi, eax
push ebx
call sub.kernel32.dll_UnmapViewOfFile
mov eax, esi
pop esi
pop ebx
ret

Function at 0x45aeb4
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, eax
mov edx, ebx
mov eax, dword [0x45ded0]
call fcn.0045ae2c
mov ebx, eax
push 0x1000
mov eax, ebx
and eax, 0xfffff000
push eax
push 0
push 6
mov eax, dword [0x45ded4]
push eax
call sub.kernel32.dll_MapViewOfFile
test eax, eax
jne 0x45aee9
xor eax, eax
pop ebx
ret
and ebx, 0xfff
shr ebx, 2
mov edx, ebx
shl edx, 2
add edx, eax
mov ebx, dword [edx]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
pop ebx
ret
Function at 0x45b9b8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov edi, edx
xor eax, eax
push ebp
push 0x45ba60
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea ebx, [esi + 0x41]
lea eax, [ebp - 8]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00402bb0
mov edx, 0x45ba70
lea eax, [ebp - 0xc]
mov cl, 2
call fcn.00402b80
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.004042f0
mov eax, dword [ebp - 4]
call fcn.0040454c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp ax, 3
je 0x45ba28
cmp ax, 4
jne 0x45ba3c
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404274
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00404354
inc esi
cmp esi, 0x1a
jne 0x45b9db
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ba67
lea eax, [ebp - 0x10]
call fcn.0040408c
lea eax, [ebp - 4]
call fcn.0040408c
ret
Function at 0x45c794
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffad4
xor ecx, ecx
mov dword [ebp - 0x52c], ecx
mov dword [ebp - 0x528], ecx
mov dword [ebp - 0x524], ecx
mov dword [ebp - 0x520], ecx
mov dword [ebp - 0x51c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040453c
xor eax, eax
push ebp
push 0x45c914
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x411], 0
lea eax, [ebp - 0x410]
push eax
push 0x3fe
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
jne 0x45c822
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x51c]
call fcn.0040b4dc
mov ecx, dword [ebp - 0x51c]
mov dl, 1
mov eax, dword [0x407464]
call fcn.0040bce4
call fcn.00403a44
lea ecx, [eax + 1]
lea edx, [ebp - 0x411]
lea eax, [ebp - 0xc]
call fcn.0040417c
lea edx, [ebp - 0x520]
mov eax, dword [ebp - 0xc]
call fcn.00407fa4
mov edx, dword [ebp - 0x520]
lea eax, [ebp - 0xc]
call fcn.00404124
push 0x104
lea eax, [ebp - 0x516]
push eax
mov eax, dword [ebp - 8]
call fcn.0040454c
push eax
call sub.kernel32.dll_GetShortPathNameA
test eax, eax
jne 0x45c894
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x524]
call fcn.0040b4dc
mov ecx, dword [ebp - 0x524]
mov dl, 1
mov eax, dword [0x407464]
call fcn.0040bce4
call fcn.00403a44
lea edx, [ebp - 0x516]
lea ecx, [ebp - 0x10]
xchg ecx, eax
call fcn.0040417c
lea edx, [ebp - 0x528]
mov eax, dword [ebp - 0x10]
call fcn.00407fa4
mov edx, dword [ebp - 0x528]
lea eax, [ebp - 0x10]
call fcn.00404124
push ebp
lea edx, [ebp - 0x52c]
mov eax, dword [ebp - 0x10]
call fcn.0040c9cc
mov eax, dword [ebp - 0x52c]
call fcn.0045c498
pop ecx
mov byte [0x45fd08], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c91b
lea eax, [ebp - 0x52c]
mov edx, 5
call fcn.004040b0
lea eax, [ebp - 0x10]
call fcn.0040408c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004040b0
ret

Function at 0x45c920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45c9c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040408c
mov eax, 0x104
call fcn.00408e4c
mov esi, eax
lea eax, [ebp - 4]
push eax
xor eax, eax
mov al, bl
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x45c9a5
push esi
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea edx, [ebp - 8]
mov eax, esi
call fcn.00408e38
mov eax, dword [ebp - 8]
mov edx, edi
call fcn.004081f4
mov eax, dword [edi]
call fcn.0040434c
test eax, eax
jle 0x45c9a5
mov edx, dword [edi]
cmp byte [edx + eax - 1], 0x5c
je 0x45c9a5
mov eax, edi
mov edx, 0x45c9d8
call fcn.00404354
mov eax, esi
call fcn.00408e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c9c9
lea eax, [ebp - 8]
call fcn.0040408c
ret
Function at 0x192f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0192f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x192f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x192f06a
add dl, dl
jne 0x192f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x192f0dc
xor eax, eax
add dl, dl
jne 0x192f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x192f17d
add dl, dl
jne 0x192f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x192f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x192f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x192f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x192f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x192f075
mov eax, 1
add dl, dl
jne 0x192f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x192f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x192f0e1
sub eax, ebx
mov ebx, 1
jne 0x192f128
mov ecx, 1
add dl, dl
jne 0x192f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x192f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x192f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x192f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x192f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x192f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x192f136
cmp eax, 0x7d00
jae 0x192f16d
cmp eax, 0x500
jb 0x192f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x192f075
cmp eax, 0x7f
ja 0x192f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x192f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x192f19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x192f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x59087920
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x27a37b2a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404608
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406b10
test esi, esi
jne 0x404640
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406c4c
jmp 0x40465e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040454c
mov edi, eax
test esi, esi
je 0x40465e
cmp dword [ebx], 0
je 0x40465e
dec esi
jmp 0x404647
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x405f10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x571054], 0
je 0x405f71
cmp word [0x571330], 0xd7b2
jne 0x405f39
cmp dword [0x571338], 0
jbe 0x405f39
mov eax, 0x57132c
call dword [0x571348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x405f9c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x568034], 0
jne 0x405f8d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40611c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x568038], 0
je 0x406142
mov edx, esi
mov eax, ebx
call dword [0x568038]
jmp 0x406151
mov eax, 8
call fcn.0040425c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x571055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4060e4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x4075c4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407606
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407626
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406d20
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408aac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408c13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406b10
cmp si, word [0x5687d4]
jb 0x408b46
cmp si, word [0x5689d4]
ja 0x408b46
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408b46
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5687d4]
jae 0x408b20
mov edi, ebx
dec edi
jmp 0x408b41
cmp si, word [ebx*8 + 0x5687d4]
jbe 0x408b30
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408b41
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5687d8]
call fcn.004089bc
jmp 0x408b46
cmp edi, dword [ebp - 0xc]
jae 0x408b0a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408bf5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408bf5
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d20
push dword [ebp - 0x164]
push 0x408c30
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406d20
push dword [ebp - 0x168]
push 0x408c40
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406d20
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004070d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c1a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406b08
ret