joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437210
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4472d0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x29]
call fcn.00423690
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x437399
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push dword [esi + 0x10]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00432e30
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00427900
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.00427930
test al, al
jne 0x4372ba
mov byte [ebp - 4], al
cmp dword [ebp - 0x14], 8
jb 0x4372b1
push dword [ebp - 0x28]
call ebx
add esp, 4
mov dword [ebp - 0x30], 0
jmp 0x437315
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xffffffff
call fcn.00423830
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0x3c]
push eax
push 0x436590
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x4372ff
push dword [ebp - 0x28]
call ebx
add esp, 4
mov dword [ebp - 0x30], edi
test edi, edi
je 0x437312
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.004379f0
mov edi, dword [ebp - 0x34]
cmp byte [esi + 0xd], 0
jne 0x437357
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x43733c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x437357
mov edi, edi
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x437330
jmp 0x437357
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x437355
cmp esi, dword [eax + 8]
jne 0x437355
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x437345
mov esi, eax
cmp esi, dword [edi]
jne 0x437276
mov esi, dword [ebp - 0x48]
cmp esi, dword [ebp - 0x44]
je 0x43737f
mov edx, dword [ebp + 8]
push ecx
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00436bc0
add esp, 0x10
test esi, esi
je 0x437399
lea ecx, [ebp - 0x29]
call fcn.00423690
lea ecx, [ebp - 0x29]
call fcn.00423690
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004423d0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43a890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x43a8b3
mov eax, dword [edi]
jmp 0x43a8b5
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x43a8bd
mov ecx, dword [esi]
push 1
push 0
push eax
push ecx
push str.shell_filename____s___param____s___runas___d__show___d
push 0x92
push str.common::shell
call fcn.00421fb0
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x28
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x43a91f
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [edi + 0x14], 8
jb 0x43a927
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x43a92f
mov esi, dword [esi]
push 5
push 0
push edi
push esi
push 0x453c08
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
cmp eax, 0x20
jg 0x43a977
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
push 0x9f
push str.common::shell
call fcn.00421fb0
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004423d0
mov esp, ebp
pop ebp
ret
Function at 0x43a990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447988
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x43a9cb
mov eax, dword [esi]
jmp 0x43a9cd
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x43a9d5
mov ecx, dword [edi]
push eax
push ecx
push str.createProcess_filename____s___param____s_
push 0xaa
push str.common::create
call fcn.00421fb0
push edi
mov edx, 0x44a8e8
lea ecx, [ebp - 0x40]
call fcn.0040ca90
push 0x44a8e8
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406720
add esp, 0x1c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x43aa2a
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [esi + 0x10], eax
je 0x43aa77
push esi
mov edx, 0x44a824
lea ecx, [ebp - 0x58]
call fcn.0040ca90
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.004048c0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
jb 0x43aa77
push dword [ebp - 0x58]
call edi
add esp, 4
push 0x40
lea eax, [ebp - 0xac]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x44
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xac], 0
xor eax, eax
mov dword [ebp - 0xa8], 0
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x80], eax
push ecx
push 0
push 0
push 0x10
push 0
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x84], 1
movdqu xmmword [ebp - 0x68], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x43ab1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createProcess_failed____lastError___d
push 0xbd
push str.common::create
call fcn.00421fb0
add esp, 0x10
xor esi, esi
jmp 0x43ab29
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0x14], 8
jb 0x43ab37
push dword [ebp - 0x28]
call edi
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004423d0
mov esp, ebp
pop ebp
ret
Function at 0x43ac80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x264], 0
push 0x256
push eax
mov word [ebp - 0x25c], ax
mov esi, edx
lea eax, [ebp - 0x25a]
mov edi, ecx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x43ad10
lea eax, [ebp - 0x268]
push eax
push 4
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x43ad09
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x260]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x25c], ax
jne 0x43ad30
xor ecx, ecx
jmp 0x43ad4f
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ad40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.004043b0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004423d0
mov esp, ebp
pop ebp
ret
Function at 0x43c320
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447b86
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x238], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x21c]
push eax
call fcn.00405640
push 0x44ccc8
lea edx, [ebp - 0x234]
mov dword [ebp - 4], 1
mov ecx, 0x469298
call fcn.00439c90
add esp, 4
cmp dword [ebp - 0x220], 8
jb 0x43c3f1
push dword [ebp - 0x234]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0x469298
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004423d0
mov esp, ebp
pop ebp
ret 4

Function at 0x43c4c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447beb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x220], 0x4692b4
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [0x4692c8], 7
mov dword [0x4692c4], 0
mov word [0x4692b4], ax
mov dword [ebp - 4], eax
mov ecx, 0x4692b4
lea eax, [ebp - 0x21c]
push eax
call fcn.00405640
mov eax, 0x4692b4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004423d0
mov esp, ebp
pop ebp
ret 4
Function at 0x43cf90
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447e07
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x250], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x21c]
push eax
call fcn.00405640
push str.lddownloader_
lea edx, [ebp - 0x234]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.00439c90
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0043ca90
cmp dword [ebp - 0x238], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x43d074
push dword [ebp - 0x24c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], 7
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
jb 0x43d0a5
push dword [ebp - 0x234]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x234]
call fcn.00405640
sub esp, 0x18
mov dword [ebp - 4], 4
mov ecx, esp
lea edx, [ebp - 0x234]
push str.lddownloaderlddownloader.log
call fcn.00439c90
add esp, 4
mov ecx, edi
call fcn.0043cb30
add esp, 0x18
cmp dword [ebp - 0x220], 8
jb 0x43d118
push dword [ebp - 0x234]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004423d0
mov esp, ebp
pop ebp
ret 4
Function at 0x43f7f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x302c
call fcn.00442f40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x300c], 0
lea eax, [ebp - 0x302c]
mov esi, edx
push eax
mov edi, ecx
movdqu xmmword [ebp - 0x302c], xmm0
movdqu xmmword [ebp - 0x301c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3018]
mov dword [edi], eax
mov dword [esi], eax
mov eax, dword [0x469334]
test al, 1
jne 0x43f873
push str.GetLogicalProcessorInformation
or eax, 1
push str.kernel32.dll
mov dword [0x469334], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x469338], esi
jmp 0x43f879
mov esi, dword [0x469338]
test esi, esi
je 0x43f8e7
push 0x3000
lea eax, [ebp - 0x3004]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x3008], 0x3000
lea eax, [ebp - 0x3008]
push eax
lea eax, [ebp - 0x3004]
push eax
call esi
test eax, eax
je 0x43f8e7
mov eax, 0xaaaaaaab
xor esi, esi
mul dword [ebp - 0x3008]
shr edx, 4
test edx, edx
je 0x43f8e7
lea ecx, [ebp - 0x3000]
jmp 0x43f8d0
mov eax, dword [ecx]
sub eax, 0
je 0x43f8da
dec eax
jmp 0x43f8db
inc esi
add ecx, 0x18
dec edx
jne 0x43f8d0
test esi, esi
je 0x43f8e7
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004423d0
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x406699
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4066bd
xor eax, eax
test eax, eax
je 0x4066d0
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4066d0
xor ecx, ecx
jmp 0x4066d3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x406833
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40680d
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406808
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406864
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x406846
pop edi
not eax
pop esi
ret 0xc

Function at 0x414de3
Capabilities:
Encode data using xor

Disassembly:
xor dword [ebx], esi
add eax, 0x6cc05a4e
add ebx, 4
add edx, edx
cmp ebx, edi
jne fcn.00414de3
mov eax, edx
ret
Function at 0x40490c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004073f8
test esi, esi
jne 0x404942
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.00407580
jmp 0x404960
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047f0
mov edi, eax
test esi, esi
je 0x404960
cmp dword [ebx], 0
je 0x404960
dec esi
jmp 0x404949
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x406174
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040656c
mov byte [esp], al
cmp byte [esp], 0
jne 0x406300
test edi, edi
je 0x406300
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406237
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x406212
cmp edi, 0xffffffff
je 0x4061d3
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4061d3
mov byte [esp], 0
jmp 0x406300
mov ebx, dword [esi]
cmp ebx, 1
jg 0x406212
test ebx, ebx
jne 0x406208
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402770
test eax, eax
jne 0x406208
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406300
call 0x406690
dec ebp
test ebp, ebp
jg 0x4061b8
cmp edi, 0xffffffff
je 0x406237
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406235
mov byte [esp], 0
jmp 0x406300
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x406182
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x406237
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00406370
mov edx, eax
mov ebx, dword [0x54b8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40629e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40629c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40629e
xor edi, edi
cmp byte [esp], 0
je 0x4062c7
mov ebx, dword [esi]
test bl, 1
jne 0x4062e0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4062a4
mov byte [esp + 1], 1
jmp 0x4062e0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402770
cmp ebx, eax
jne 0x4062c7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x406251
cmp byte [esp], 0
je 0x406300
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407090
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54b058], 0
je 0x4070f7
cmp word [0x54b344], 0xd7b2
jne 0x4070b9
cmp dword [0x54b34c], 0
jbe 0x4070b9
mov eax, 0x54b340
call dword [0x54b35c]
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
mov eax, 0x407124
call fcn.00407cd4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x546032], 0
jne 0x407113
push 0
push 0x5469ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4072b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x546034], 0
je 0x4072df
mov edx, edi
mov eax, esi
call dword [0x546034]
mov ebx, eax
jmp 0x4072f0
mov eax, 8
call fcn.0040452c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x54b059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40727c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x407325
mov edx, 8
mov eax, ebx
call fcn.00404548
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409880
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4099e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004073f8
cmp si, word [0x546a08]
jb 0x409918
cmp si, word [0x546c08]
ja 0x409918
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409918
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x546a08]
jae 0x4098f2
mov edi, ebx
dec edi
jmp 0x409913
cmp si, word [ebx*8 + 0x546a08]
jbe 0x409902
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409913
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x546a0c]
call fcn.00409790
jmp 0x409918
cmp edi, dword [ebp - 8]
jae 0x4098dc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4099c7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4099c7
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408048
push dword [ebp - 0x160]
push 0x409a00
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00408048
push dword [ebp - 0x164]
push 0x409a10
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00408048
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00408280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099ec
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407458
ret
Function at 0x409b98
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409c9b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x54db88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x54dba0]
jne 0x409be4
mov eax, esi
mov edx, 0x54dba2
mov ecx, 0x55
call fcn.00408048
push 0x54db88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409c85
push 0x54db88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004073f8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409c53
cmp byte [0x54db84], 0
je 0x409c18
mov edx, esi
mov eax, ebx
call fcn.00409a7c
jmp 0x409c53
mov edx, esi
mov eax, ebx
call fcn.00409880
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409c53
cmp dword [esi], 0
je 0x409c3c
mov eax, esi
mov edx, 0x409cb4
call fcn.004081a0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409880
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004081a0
push 0x54db88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x54dba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407fb4
push eax
push 0x54dba2
call sub.kernel32.dll_lstrcpynW
push 0x54db88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ca2
lea eax, [ebp - 4]
call fcn.004073f8
ret