joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404527
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x41b5d6
call fcn.0041a900
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x404555
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x4046b9
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x404583
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x404583
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4046b9
cmp dword [esi + 0x4c], 0
je 0x4046b7
mov ecx, esi
call fcn.004041a7
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x4045b9
push dword [esi + 0x4c]
push eax
call fcn.004035bb
pop ecx
test al, al
mov eax, dword [ebp + 8]
pop ecx
jne 0x4046b9
jmp 0x4046b7
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.00404293
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4045f0
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call fcn.004030d8
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x4046af
cmp eax, 1
jg 0x404693
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x404639
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x38]
sub edi, edx
je 0x404666
cmp eax, 0x10
jae 0x404648
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.0040d2c9
add esp, 0x10
cmp edi, eax
jne 0x4046af
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x404669
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x3c], edx
jne 0x4046ac
test edi, edi
jne 0x4045e4
cmp dword [ebp - 0x18], 0x20
jae 0x4046af
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040423a
jmp 0x4045de
cmp eax, 3
jne 0x4046af
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004035bb
pop ecx
pop ecx
test al, al
je 0x4046af
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00401930
mov eax, ebx
call fcn.0041a8bb
ret 4

Function at 0x40775a
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x41f50c
push 0x41f504
push str.FlsAlloc
push 0
call fcn.004076da
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40778c
push dword [ebp + 8]
mov ecx, esi
call fcn.004030d8
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x4077ce
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x41f51c
push 0x41f514
push str.FlsGetValue
push 2
call fcn.004076da
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4077ff
mov ecx, esi
call fcn.004030d8
call esi
jmp 0x407805
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x407808
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x41f524
push 0x41f51c
push str.FlsSetValue
push 3
call fcn.004076da
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x40783c
mov ecx, esi
call fcn.004030d8
call esi
jmp 0x407842
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x410d9e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00410a5e

Function at 0x414e68
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414ce7
Function at 0x10001300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019a3c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10024080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.10007b7e
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1000137f
push 4
call fcn.10007b7e
add esp, 4
test eax, eax
je 0x10001356
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x10001358
xor eax, eax
mov dword [ebp - 0x18], eax
lea edi, [esi + 4]
mov byte [ebp - 4], 1
push edi
push 0
push eax
push 0x100012a0
push 0
push 0
call fcn.1000b6f8
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x10001397
jmp 0x10001381
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.1000782b
int3

Function at 0x10005df0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0
mov esi, ecx
call fcn.10006c80
mov eax, dword [ebp + 8]
mov dword [esi + 0x94], eax
lea eax, [ebp - 0x24]
push eax
mov dword [esi + 0x90], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 4]
cmp ecx, dword [ebp - 8]
mov dword [eax], 0
cmovb ecx, dword [ebp - 8]
xor eax, 0xb37cc16a
push 0x78
mov dword [esi + 8], eax
lea eax, [esi + 0x18]
push 0
push eax
mov dword [esi + 0x98], ecx
mov dword [esi + 0x9c], 0x10
mov dword [esi + 0xa0], 0x20
mov dword [esi + 0xa4], 0
mov dword [esi + 0xc], esi
mov dword [esi + 0x14], 0
call fcn.10009920
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f8f2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f931
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f931
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f931
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f931
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f931
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100115f2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ea84
push 0x1001ea7c
push str.FlsAlloc
push 0x1f
call fcn.100114ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011626
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a17c]
call esi
jmp 0x1001162c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011670
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ea94
push 0x1001ea8c
push str.FlsGetValue
push 0x21
call fcn.100114ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100116a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001a17c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100116af
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001ea9c
push 0x1001ea94
push str.FlsSetValue
push 0x22
call fcn.100114ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100116e9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001a17c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100152fa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10015397
push ebx
push esi
call fcn.100152c3
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10013a07
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015344
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015396
push edi
push eax
call fcn.100118de
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015364
call fcn.1001137b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015395
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10013a07
add esp, 0x20
test eax, eax
jne 0x10015383
push edi
call fcn.1001137b
jmp 0x1001538b
push ebx
call fcn.1001137b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100197d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100197fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100197fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4209c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x4209e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4209e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4209d8
mov eax, 1
add ebx, ebx
jne 0x4209fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4209f0
jne 0x420a0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4209f0
xor ecx, ecx
sub eax, 3
jb 0x420a20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x420a92
mov ebp, eax
add ebx, ebx
jne 0x420a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420a38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x420a5c
inc ecx
add ebx, ebx
jne 0x420a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x420a3d
jne 0x420a59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420a3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x420a7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x420a6d
jmp 0x4209de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x420a7c
add edi, ecx
jmp 0x4209de
pop esi
mov edi, esi
mov ecx, 0x810
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x420a9a
cmp byte [edi], 0xd
jne 0x420a9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x420a9f
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x420b17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2193c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x219f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x420acc
mov ecx, edi
jns 0x420afb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x219f4]
or eax, eax
je 0x420b11
mov dword [ebx], eax
add ebx, 4
jmp 0x420ae9
call dword [esi + 0x219f8]
popal
jmp section.UPX0
Function at 0x10002e30
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1fc
mov eax, dword [0x10026008]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 8]
push esi
push edi
push eax
push 0x202
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10002ef4
cmp dword [esi + 0x14], 0x10
jb 0x10002e74
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10002ef4
mov eax, dword [eax + 0xc]
push 0x60
push 0
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [edi], eax
lea eax, [esp + 0x1a8]
push eax
call fcn.1000a8f0
add esp, 0xc
push dword [edi]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x1a4]
push 0x100238d8
push eax
call fcn.100089f0
lea eax, [esp + 0x1ac]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002ec4
sub eax, edx
mov ecx, ebx
push eax
lea eax, [esp + 0x1a4]
push eax
call fcn.10001b20
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.10009192
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x204]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10009192
mov esp, ebp
pop ebp
ret
Function at 0x100046e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x103b35e4], 1
jne 0x100047ed
cmp byte [0x103b35e5], 0
jne 0x100047ed
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x103b35f8
call edi
mov ecx, dword [0x103b35f8]
sub ecx, dword [0x103b35f0]
mov edx, dword [0x103b35fc]
sbb edx, dword [0x103b35f4]
call fcn.1001dc10
mov edx, dword [0x103b35ec]
mov ecx, dword [0x103b35e8]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x10024070]
movss dword [ebp - 4], xmm0
call fcn.1001dc10
movss xmm1, dword [ebp - 4]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x103b35e0]
subss xmm0, xmm1
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x100047ec
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
comiss xmm0, dword [0x10026778]
jbe 0x10004784
push 1
call esi
push 0x103b35f8
call edi
mov ecx, dword [0x103b35f8]
sub ecx, dword [0x103b35f0]
mov edx, dword [0x103b35fc]
sbb edx, dword [0x103b35f4]
call fcn.1001dc10
mov edx, dword [0x103b35ec]
mov ecx, dword [0x103b35e8]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x10024070]
movss dword [ebp - 4], xmm0
call fcn.1001dc10
movss xmm1, dword [ebp - 4]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x103b35e0]
subss xmm0, xmm1
xorps xmm1, xmm1
comiss xmm0, xmm1
ja 0x10004777
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100059a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
mov ecx, dword ds:[0x6a084c]
mov al, byte ds:[ecx + 0x264]
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0x13
jne 0x100059d4
push 0
push 0
push 0
push 0x10005940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret
Function at 0x10008b90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10026008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dl, byte [ebp + 0x10]
mov eax, str.True
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test dl, dl
mov ecx, str.False
push edi
mov edi, dword [ebp + 8]
cmove eax, ecx
push eax
lea eax, [ebp - 0x204]
push 0x100238d8
push eax
call fcn.10008ce0
add esp, 0xc
cmp dword [ebx + 0x14], 0x10
jb 0x10008bdd
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x10008be5
mov esi, dword [esi]
cmp dword [edi + 0x14], 0x10
jb 0x10008bed
mov edi, dword [edi]
push ebx
push 0xff
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
mov ecx, str.True
lea eax, [ebp - 0x104]
pop ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008c37
test dl, dl
je 0x10008c33
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008c37
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008c17
xor eax, eax
jmp 0x10008c3c
sbb eax, eax
or eax, 1
test eax, eax
je 0x10008cbf
mov ecx, str.true
lea eax, [ebp - 0x104]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008c70
test dl, dl
je 0x10008c6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008c70
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008c50
xor eax, eax
jmp 0x10008c75
sbb eax, eax
or eax, 1
test eax, eax
je 0x10008cbf
mov ecx, str.TRUE
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008ca4
test dl, dl
je 0x10008ca0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008ca4
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008c84
xor eax, eax
jmp 0x10008ca9
sbb eax, eax
or eax, 1
test eax, eax
je 0x10008cbf
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009192
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.10009192
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10009120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
inc eax
push eax
call fcn.10009672
mov ecx, dword [esi + 0xc]
add esp, 4
xor edx, edx
mov dword [esi + 8], eax
test ecx, ecx
jle 0x10009174
nop dword [eax]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
movzx eax, byte [eax + edx*4]
mov byte [edx + ecx], al
mov ecx, dword [esi + 8]
movzx eax, byte [esi + 0x14]
xor byte [ecx + edx], al
mov eax, dword [esi + 0x14]
inc eax
and eax, 0x800000ff
jns 0x10009169
dec eax
or eax, 0xffffff00
inc eax
mov dword [esi + 0x14], eax
inc edx
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x10009140
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0
push dword [esi + 4]
call fcn.1000966d
mov eax, dword [esi + 8]
add esp, 4
mov dword [esi + 4], 0
pop esi
ret
Function at 0x402fa8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403430
Capabilities:
Query or enumerate registry value

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

Function at 0x4041cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47304c], 0
je 0x40422d
cmp word [0x473220], 0xd7b2
jne 0x4041f5
cmp dword [0x473228], 0
jbe 0x4041f5
mov eax, 0x47321c
call dword [0x473238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e070
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 0x404254
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e034], 0
jne 0x404249
push 0
push 0x46e068
push 0x46e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406498
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 0x4064fe
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.004045c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fc4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064e8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406505
lea eax, [ebp - 0x10]
call fcn.00404350
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404810
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40910d
test al, 0x10
jne 0x409111
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bd58
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 0x40bd91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404440
jmp 0x40bd9a
mov eax, ebx
mov edx, esi
call fcn.004043a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c45c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c2c4
mov eax, dword [0x472014]
cmp byte [eax], 0
je 0x40c4d8
mov eax, dword [0x471dac]
call fcn.00402dd8
call fcn.00402c24
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.00409514
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 0x40c520
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c50e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x471d48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x473668]
call fcn.004058e8
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 0x40cdd0
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 0x40cea6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043e8
lea eax, [ebp - 8]
call fcn.00404860
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404810
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ce90
mov eax, ebx
call fcn.00402a98
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ce89
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.00404810
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ce73
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ceb8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ce73
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 0x40ce90
mov eax, dword [ebp - 0x10]
call fcn.00402ac8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cead
lea eax, [ebp - 8]
call fcn.00404350
ret

Function at 0x40d4fc
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 0x40d560
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.004045c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408d54
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d567
lea eax, [ebp - 0xc]
call fcn.00404350
ret