joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ff401
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4ff444
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ff442
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004ff2bc
jmp 0x4ff479
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004ff9a0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ff479
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004ff2bc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4ff452
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8

Function at 0x5003bd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x500409
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x500402
mov eax, dword [ebp + 8]
push eax
push 0x5b3c6c
call fcn.00463405
add esp, 8
xor eax, eax
jmp 0x500475
mov eax, 1
jmp 0x500475
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x500462
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x500462
cmp dword [ebp - 8], 0
jne 0x500462
mov eax, 1
jmp 0x500475
mov edx, dword [ebp + 8]
push edx
push str.Warning:_registration_database_update_failed_for_key__s._n
call fcn.00463405
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x501835
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, 0x5bc920
call fcn.00501980
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 8]
test ecx, ecx
jne 0x50191e
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x501876
push 0x2f
push str.ccdata.cpp
call fcn.004e5110
test eax, eax
je 0x501876
int3
xor eax, eax
test eax, eax
jne 0x50185c
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5018e1
push 5
mov ecx, dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5018e1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0049b502
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.004e1690
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
call fcn.004e16da
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
mov word [edx + 8], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.004931fd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ax, word [edx + 8]
mov word [ecx], ax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx]
xor eax, eax
cmp edx, 0xffff
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
movsx eax, byte [esi]
test eax, eax
jne 0x405b54
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.00405930
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00406070
pop ecx
mov ebx, eax
test eax, eax
jne 0x405b87
push 1
call fcn.00405610
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.00405930
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x4601e4], eax
mov dword [0x4601e0], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405bc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x405bf8
or eax, 0xffffffff
inc eax
cmp byte [ebx + eax], 0
jne 0x405be1
inc eax
mov esi, eax
movsx eax, byte [ebx]
cmp eax, 0x3d
je 0x405bf6
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x405bde
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00406070
pop ecx
mov edi, eax
mov dword [0x4602ec], eax
test eax, eax
jne 0x405c1b
push 1
call fcn.00405610
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x405c42
or eax, 0xffffffff
inc eax
cmp byte [ebx + eax], 0
jne 0x405c23
inc eax
mov esi, eax
movsx eax, byte [ebx]
cmp eax, 0x3d
je 0x405c40
push ebx
push edi
call fcn.004068f0
pop ecx
pop ecx
add edi, esi
add ebx, esi
movsx eax, byte [ebx]
test eax, eax
jne 0x405c20
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406624
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 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
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 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 0x4067d1
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2bf2f27
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x44202e17
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x51d3ae
Capabilities:
Parse pe header

Disassembly:
jmp 0x54d853
lea esp, [esp + 4]
jmp fcn.0054d8a9

Function at 0x51d3d5
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x54d85a
lea esp, [esp + 4]
jmp fcn.0054d9e4

Function at 0x520100
Capabilities:
Encrypt data using aes

Disassembly:
jmp 0x520138
jmp 0x52011c
lea esp, [esp + 4]
jmp 0x5200e3
jmp 0x520154
jmp 0x520170
push ebx
jmp 0x52018c
jmp 0x5201a8
push ebp
jmp 0x5201c4
jmp 0x5201e0
push esi
jmp 0x5201fc
jmp 0x552e5d
push edi
movzx edx, byte [eax]
shl edx, 8
movzx esi, byte [eax + 1]
jmp 0x552ea7
xor edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 3]
shl edx, 8
jmp 0x55300c
xor ecx, edi
and edx, ebp
xor ecx, edx
xor ecx, dword [ebx]
lea edi, [eax + 0x10]
xor ecx, dword [eax]
add ebx, 4
mov dword [edi], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x1c], edx
cmp ebx, 0x52b2a8
jne 0x552fb1
push 0xa
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret
xor edx, eax
mov dword [ecx + 0x1c], edx
call fcn.0053fe43
mov eax, edi
mov edx, dword [eax + 0xc]
mov ecx, edx
shr ecx, 8
mov edi, edx
and ecx, esi
mov ecx, dword [ecx*4 + 0x529a80]
shr edi, 0x10
and edi, esi
mov edi, dword [edi*4 + 0x529a80]
and ecx, 0xff0000
and edi, 0xff000000
xor ecx, edi
mov edi, edx
and edx, esi
mov edx, dword [edx*4 + 0x529a80]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x529a80]
jmp 0x552f1c
xor edx, esi
movzx esi, byte [eax + 5]
mov dword [ecx], edx
movzx edx, byte [eax + 4]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 6]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 7]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 9]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 8]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xa]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xb]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xd]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0xc]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl edx, 8
xor edx, esi
shl edx, 8
xor edx, eax
mov dword [ecx + 0xc], edx
mov eax, edx
shr eax, 0x10
mov esi, 0xff
and eax, esi
mov eax, dword [eax*4 + 0x529a80]
xor eax, 0x1000000
mov edi, edx
shr edi, 8
and edi, esi
mov edi, dword [edi*4 + 0x529a80]
and edi, 0xff0000
mov ebx, dword [ecx + 4]
and eax, 0xff000000
xor eax, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi*4 + 0x529a80]
xor eax, edi
mov edi, edx
and edi, esi
mov edi, dword [edi*4 + 0x529a80]
mov ebp, 0xff00
and edi, ebp
xor eax, edi
xor eax, dword [ecx]
lea edi, [ecx + 0x10]
xor ebx, eax
mov dword [edi], eax
mov eax, dword [ecx + 8]
xor eax, ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], eax
jmp 0x552fa7
Function at 0x5410de
Capabilities:
Enumerate pe sections

Disassembly:
call fcn.0051d3ae
jmp 0x51d3d0
Function at 0x54283d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0052332e
jmp 0x5234cc

Function at 0x549a41
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
jmp 0x549a7b
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xbc]
jmp 0x549b2a
mov eax, dword [esi + 0xc0]
cmp eax, ebx
jmp 0x549c57
xor ebx, ebx
push edi
cmp eax, ebx
je 0x549b08
call fcn.0053857e
je 0x549b08
mov eax, dword [esi + 0xb0]
cmp eax, ebx
je 0x549b08
cmp dword [eax], ebx
jne 0x549b08
mov eax, dword [esi + 0xb8]
cmp eax, ebx
jmp 0x549b8d
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x549c39
jne 0x549c0e
test eax, 0x22d7b022
test edi, ecx
inc ebp
aad 0xbc
dec edi
xchg byte [ebx], cl
dec edx
invalid
je 0x549b69
cmp dword [eax], ebx
jne 0x549b69
push eax
call fcn.00540790
push dword [esi + 0xbc]
call fcn.0051e48a
pop ecx
pop ecx
jmp 0x549b69
call fcn.0051e445
pop ecx
pop ecx
jmp 0x549c39
cmp dword [eax], ebx
jne 0x549c39
push eax
call fcn.00540767
push dword [esi + 0xbc]
jmp 0x549beb
push dword [esi + 0xb0]
call 0x54076f
push dword [esi + 0xbc]
call fcn.00540795
pop ecx
pop ecx
jmp 0x549b08
je 0x549c7c
cmp dword [eax], ebx
jne 0x549c7c
mov eax, dword [esi + 0xc4]
jmp 0x549e91
arpl word [esi], ax
cmc
pop edx
xor byte [edi + 0x8a95a3f], ch
xor byte [ebx - 0x73], ah
mov esi, 0xd4
lea edi, [esi + 0xd4]
mov eax, dword [edi]
call fcn.005385ab
je 0x549cd6
jne 0x549cb7
mov al, 0x26
inc ecx
mov al, 0x19
test byte [ecx], bl
mov eax, ebp
sbb ebp, dword [esi - 0x385fcd52]
xor bl, byte [ebx - 0x731a8a16]
jg 0x549c6f
std
pop edi
pop esi
pop ebx
leave
ret
cmp dword [eax + 0xb4], ebx
jmp 0x549cfa
lea edi, [esi + 0x50]
mov dword [ebp + 8], 6
jmp 0x549d15
jne 0x549cd6
push eax
call fcn.0051e2b0
push dword [edi]
call fcn.005407f4
pop ecx
pop ecx
jmp 0x549cd6
call fcn.0053858d
push es
dec edi
je 0x549e2c
add byte [ebx + 0xfc33b07], cl
test byte [eax], al
add dword [eax], eax
add byte [ebp + 0x77], dh
mov eax, dword [edi]
cmp eax, ebx
je 0x549e2c
jne 0x549da5
mov dword [ecx - 0x2f], 0x1caf43b0
lahf
punpckhdq mm3, qword [ecx - 0x40d05cb2]
fisubr dword [ecx]
aad 0xc
call 0x8bef0a11
xchg al, dl
add byte [eax], al
add byte [ebx], ch
invalid
mov eax, dword [esi + 0xd0]
sub eax, edi
push eax
call fcn.005407a0
push dword [esi + 0xc0]
call fcn.005407ee
add esp, 0x10
jmp 0x549c7c
jne 0x549d15
je 0x549df7
stosd dword es:[edi], eax
cmp ebx, dword [esi - 0x53]
or al, 0x24
lodsb al, byte [esi]
and al, byte [ebp - 0x4c]
jg 0x549d9b
xchg esi, eax
add al, 0x63
sahf
jo 0x549d21
mov ebp, 0x10c783d5
add edi, 0x10
dec dword [ebp + 8]
jmp 0x549d67
push 0xd15e709b
inc ecx
and bl, dl
and eax, 0xf183941
test dword [edi], edi
add byte [eax], al
cmp dword [eax], ebx
jne 0x549e2c
push eax
call fcn.005407ff
pop ecx
jmp 0x549e2c
push esi
call 0x54083a
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [edi - 4], ebx
je 0x549d84
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x549d84
cmp dword [eax], ebx
jne 0x549d84
push eax
call fcn.00540870
pop ecx
jmp 0x549d84
sub eax, 0xfe
push eax
call 0x5407c0
mov eax, dword [esi + 0xcc]
mov edi, 0x80
sub eax, edi
push eax
call 0x54079a
jmp 0x549d45
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x46de5e86
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xc833642
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x406bc0
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.00409d34
test esi, esi
jne 0x406bf6
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.00409ebc
jmp 0x406c14
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406b04
mov edi, eax
test esi, esi
je 0x406c14
cmp dword [ebx], 0
je 0x406c14
dec esi
jmp 0x406bfd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408e78
mov byte [esp], al
cmp byte [esp], 0
jne 0x408c1e
test edi, edi
je 0x408c1e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408b5e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408b39
cmp edi, 0xffffffff
je 0x408af9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408af9
mov byte [esp], 0
jmp 0x408c1e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408b39
test ebx, ebx
jne 0x408b2b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408b2b
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408c1e
lea eax, [esp + 0xc]
call fcn.00408774
dec ebp
test ebp, ebp
jg 0x408ade
cmp edi, 0xffffffff
je 0x408b5e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b5c
mov byte [esp], 0
jmp 0x408c1e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408aa2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408b5e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408c8c
mov edx, eax
mov ebx, dword [0x6f68fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408bc2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408bc0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408bc2
xor edi, edi
cmp byte [esp], 0
je 0x408be8
mov ebx, dword [esi]
test bl, 1
jne 0x408bfe
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408bc8
mov byte [esp + 1], 1
jmp 0x408bfe
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408be8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408b75
cmp byte [esp], 0
je 0x408c1e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4099c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6f605c], 0
je 0x409a2b
cmp word [0x6f6348], 0xd7b2
jne 0x4099ed
cmp dword [0x6f6350], 0
jbe 0x4099ed
mov eax, 0x6f6344
call dword [0x6f6360]
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, 0x409a58
call fcn.0040a58c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6da032], 0
jne 0x409a47
push 0
push 0x6da9ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409bf4
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 [0x6da034], 0
je 0x409c1f
mov edx, edi
mov eax, esi
call dword [0x6da034]
mov ebx, eax
jmp 0x409c30
mov eax, 8
call fcn.00406840
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x6f605d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409bbc
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 0x409c60
mov eax, ebx
call fcn.0040685c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c65c
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 0x40c7c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409d34
cmp si, word [0x6daa08]
jb 0x40c6f4
cmp si, word [0x6dac08]
ja 0x40c6f4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c6f4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6daa08]
jae 0x40c6ce
mov edi, ebx
dec edi
jmp 0x40c6ef
cmp si, word [ebx*8 + 0x6daa08]
jbe 0x40c6de
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c6ef
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6daa0c]
call fcn.0040c57c
jmp 0x40c6f4
cmp edi, dword [ebp - 8]
jae 0x40c6b8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c7a3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c7a3
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.0040a944
push dword [ebp - 0x160]
push 0x40c7dc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a944
push dword [ebp - 0x164]
push 0x40c7ec
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a944
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ab7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7c8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d94
ret