joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030bb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4030db
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4030ed
mov dword [ebp - 0xc], 0x41aa00
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403102
mov ecx, dword [0x434f38]
add ecx, eax
push ecx
call fcn.004032ec
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032d6
test eax, eax
je 0x4032c4
test byte [ebp + 0x17], 0x80
je 0x40326f
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
call ebx
and dword [0x40d364], 0
and dword [0x40d360], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40e9e8
mov dword [0x40ce48], 8
mov dword [0x4169f0], eax
mov dword [0x4169ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4169e8], 0x4169e8
mov dword [ebp + 8], eax
jle 0x4032cc
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40317b
mov esi, dword [ebp + 0x14]
mov edi, 0x416a00
push esi
push edi
call fcn.004032d6
test eax, eax
je 0x4032c4
sub dword [ebp + 0x14], esi
mov dword [0x40ce38], edi
mov dword [0x40ce3c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce38
mov dword [0x40ce40], edi
mov dword [0x40ce44], eax
call fcn.00401434
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403267
mov esi, dword [0x40ce40]
sub esi, edi
call ebx
test byte [0x434f94], 1
mov edi, eax
je 0x403222
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4031e9
cmp dword [ebp + 0x14], 0
jne 0x403222
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.kernel32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00401434
mov dword [ebp - 0x10], edi
test esi, esi
je 0x40325b
cmp dword [ebp + 0x10], 0
jne 0x403241
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00401434
test eax, eax
je 0x40326b
add dword [ebp - 4], esi
jmp 0x40324f
mov eax, dword [0x40ce40]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x40319e
jmp 0x4032cc
cmp dword [ebp + 0x14], 0
jg 0x40316e
jmp 0x4032cc
push 0xfffffffffffffffc
jmp 0x4032c6
push 0xfffffffffffffffe
jmp 0x4032c6
test edi, edi
jne 0x4032b1
cmp dword [ebp + 0x14], edi
jle 0x4032cc
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403285
mov esi, ebx
mov edi, 0x416a00
push esi
push edi
call fcn.004032d6
test eax, eax
je 0x4032c4
push esi
push edi
push dword [ebp + 0xc]
call fcn.00401434
test eax, eax
je 0x40326b
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40327b
jmp 0x4032cc
cmp dword [ebp + 0x14], esi
jge 0x4032b9
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032d6
test eax, eax
jne 0x4032c9
push 0xfffffffffffffffd
pop eax
jmp 0x4032cf
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405712
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405763
xor eax, eax
jmp 0x40578a
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40578a
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40575f
call esi
pop esi
leave
ret 4

Function at 0x4057c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430250], 0x44
push eax
xor eax, eax
push 0x430250
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x405803
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40588d
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c94
mov edi, eax
cmp edi, 0xffffffff
je 0x4058ce
test byte [esp + 0x10], 1
push esi
je 0x4058b0
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x4058b6
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x4058bf
xor eax, eax
inc eax
jmp 0x4058d0
test byte [esp + 0x10], 4
jne 0x4058ce
push edi
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4058d5
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ba0
test bl, 8
mov dword [ebp - 8], eax
je 0x405914
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f68], eax
jmp 0x405a91
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40592e
test eax, eax
je 0x405a3f
test bl, 2
je 0x405a3f
mov esi, 0x42f250
push edi
push esi
call fcn.004060e4
cmp dword [ebp + 8], 0
je 0x40594d
push str..
push esi
call sub.kernel32.dll_lstrcatW
jmp 0x405953
push edi
call fcn.00405ae4
cmp word [edi], 0
jne 0x405963
cmp word [0x42f250], 0x5c
jne 0x40596e
push 0x40a014
push edi
call sub.kernel32.dll_lstrcatW
push edi
call sub.kernel32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a34
cmp word [ebp - 0x22c], 0x2e
jne 0x4059b8
cmp word [ebp - 0x22a], 0
je 0x405a17
cmp word [ebp - 0x22a], 0x2e
jne 0x4059b8
cmp word [ebp - 0x228], 0
je 0x405a17
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004060e4
test byte [ebp - 0x258], 0x10
je 0x4059e3
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405a17
push dword [ebp + 0xc]
push edi
call fcn.00401434
jmp 0x405a17
push dword [ebp - 4]
push edi
call fcn.0040588d
test eax, eax
jne 0x405a0f
cmp dword [ebp - 4], eax
je 0x405a07
push edi
push 0xfffffffffffffff1
call fcn.00401434
push 0
push edi
call fcn.00405f85
jmp 0x405a17
inc dword [0x434f68]
jmp 0x405a17
push edi
push 0xfffffffffffffff2
call fcn.00401434
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x405990
push esi
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a3f
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a91
cmp dword [ebp - 8], esi
jne 0x405a53
inc dword [0x434f68]
jmp 0x405a91
push edi
call fcn.00406427
test eax, eax
je 0x405a91
push edi
call fcn.00405a98
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040588d
test eax, eax
jne 0x405a89
cmp dword [ebp - 4], esi
je 0x405a4b
push edi
push 0xfffffffffffffff1
call fcn.00401434
push esi
push edi
call fcn.00405f85
jmp 0x405a91
push edi
push 0xffffffffffffffe5
call fcn.00401434
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc

Function at 0x405ce8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a550]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a554]
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
jne 0x405d38
test edi, edi
jne 0x405cf5
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405d32
Function at 0x405e13
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x4308e8
push 0x40a574
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.kernel32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405e61
push 1
push 0
push esi
call fcn.00405cb9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
mov esi, 0x4310e8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
push esi
push ebx
push str._ls_ls_r_n
push 0x4304e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434ef0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00401434
push 4
push 0xc0000000
push esi
call fcn.00405cb9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f80
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f79
push edi
push esi
push ebp
call fcn.00401434
test eax, eax
je 0x405f79
push str._Rename__r_n
push esi
call fcn.00401434
test eax, eax
jne 0x405f17
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405f4c
add eax, 0xa
push 0x40a558
push eax
call fcn.00401434
mov ebp, eax
test ebp, ebp
je 0x405f48
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405f39
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405f33
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405f4e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4304e8
push eax
call fcn.00405c74
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00401434
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405f85
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x405fa8
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405e13
pop ecx
pop ecx
inc dword [0x434f70]
ret 8
Function at 0x40656f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4065a6
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 0x406580
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40657b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065d7
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 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4065b9
pop edi
not eax
pop esi
ret 0xc
Function at 0x402ad0
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.004042ac
test esi, esi
jne 0x402b06
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.0040439c
jmp 0x402b24
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e4
mov edi, eax
test esi, esi
je 0x402b24
cmp dword [ebx], 0
je 0x402b24
dec esi
jmp 0x402b0d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x631008], 0x8088405
inc edx
mov dword [ebx + 0x631008], edx
fld qword [ebx + 0x631068]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x40330c
Capabilities:
Query or enumerate registry value

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

Function at 0x40408c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65304c], 0
je 0x4040ed
cmp word [0x653220], 0xd7b2
jne 0x4040b5
cmp dword [0x653228], 0
jbe 0x4040b5
mov eax, 0x65321c
call dword [0x653238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x631078
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 0x404114
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x631034], 0
jne 0x404109
push 0
push 0x631070
push 0x631078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404260
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.004027a8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x65304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404228
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406680
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 0x4066e6
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.0040451c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066d0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066ed
lea eax, [ebp - 0x10]
call fcn.004042ac
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040476c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409529
test al, 0x10
jne 0x40952d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c638
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 0x40c671
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040439c
jmp 0x40c67a
mov eax, ebx
mov edx, esi
call fcn.00404300
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40ce78
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ccf0
mov eax, dword [0x651eec]
cmp byte [eax], 0
je 0x40cef4
mov eax, dword [0x651c70]
call fcn.00402c8c
call fcn.00402910
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409958
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cf3c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf2a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x651c04]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x653668]
call fcn.00405b7c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d7e4
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 0x40d8ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404344
lea eax, [ebp - 8]
call fcn.004047bc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040476c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d8a4
mov eax, ebx
call fcn.004027a8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d89d
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.0040476c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d887
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d8cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d887
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 0x40d8a4
mov eax, dword [ebp - 0x10]
call fcn.004027c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8c1
lea eax, [ebp - 8]
call fcn.004042ac
ret

Function at 0x40de74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ded8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040451c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040913c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dedf
lea eax, [ebp - 0xc]
call fcn.004042ac
ret

Function at 0x421d04
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00421b30
dec esi
jne 0x421d26
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x422e68
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x65388c
cmp dword [edi], 0
jne 0x422ee4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x653888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x631548
mov ecx, 2
call fcn.004029a4
mov edx, 0x422e40
lea eax, [esi + 5]
call fcn.00422e60
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422e60
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x422eb9
mov dword [0x653888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x424560
Capabilities:
Encode data using xor

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

Function at 0x426bdc
Capabilities:
Get system information on windows

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