joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0290
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4f0299
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f0458
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebx, eax
mov byte [ebp - 5], 0
test ebx, ebx
je 0x4f0426
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.00421a28
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004115e4
mov eax, dword [ebp - 0xc]
mov edx, 0x4f046c
call fcn.0040584c
jne 0x4f033c
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, 0x4f0488
mov eax, ebx
call fcn.0042170c
mov eax, dword [ebp - 0x14]
mov edx, 0x4f049c
call fcn.0040584c
je 0x4f0413
mov eax, dword [edi + 0x10]
mov edx, ebx
call fcn.00417d3c
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004f0290
jmp 0x4f0413
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00421a28
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004115e4
mov eax, dword [ebp - 0x18]
mov edx, 0x4f04a4
call fcn.0040584c
jne 0x4f036f
mov eax, dword [edi + 0x10]
mov edx, ebx
call fcn.00417d3c
jmp 0x4f0413
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00421a28
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004115e4
mov eax, dword [ebp - 0x20]
mov edx, 0x4f04c0
call fcn.0040584c
jne 0x4f03da
xor ecx, ecx
mov edx, 0x4f04e0
mov eax, ebx
call fcn.00423230
test eax, eax
setg al
mov byte [edi + 0x14], al
xor ecx, ecx
mov edx, 0x4f0488
mov eax, ebx
call fcn.00423230
test eax, eax
jle 0x4f03d1
mov ecx, 0x64
mov edx, 0x4f04f8
mov eax, ebx
call fcn.00423230
mov dword [edi + 0x18], eax
jmp 0x4f0413
mov dword [edi + 0x18], 0x64
jmp 0x4f0413
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00421a28
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004115e4
mov eax, dword [ebp - 0x28]
mov edx, 0x4f0514
call fcn.0040584c
jne 0x4f0413
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004f07c8
mov byte [ebp - 5], 1
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ebx, eax
test ebx, ebx
jne 0x4f02d0
cmp byte [ebp - 5], 0
jne 0x4f043d
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004f07c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f045f
lea eax, [ebp - 0x2c]
mov edx, 9
call fcn.00405548
ret
Function at 0x4f4bec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x4f4bff
add esp, 0xfffffff0
call fcn.004041f4
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
test esi, esi
jne 0x4f4c1e
mov ecx, 0x22f
mov edx, 0x4f4d54
mov eax, 0x4f4da0
call fcn.00404ccc
xor edx, edx
mov eax, ebx
call fcn.004eb6e4
mov dword [ebx + 0x70], 0xffc00000
mov dword [ebx + 0x74], 0x41dfffff
mov dl, 1
mov eax, dword [0x4105dc]
call fcn.00410e38
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x20], esi
movzx eax, byte [ebp + 8]
mov byte [ebx + 0x24], al
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebx + 0x28], eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x4f1bc8]
call fcn.004f1ff0
mov edi, eax
mov dword [ebx + 0x2c], edi
movzx eax, byte [edi + 0x11]
mov byte [ebx + 0x78], al
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x28]
call fcn.004f2fb4
xor esi, esi
mov eax, dword [0x516b2c]
cmp dword [eax], 0
je 0x4f4c99
mov esi, dword [0x516b2c]
mov esi, dword [esi]
call esi
mov esi, eax
test esi, esi
je 0x4f4cad
mov eax, esi
mov edx, dword [eax]
call dword [edx + 4]
test al, al
je 0x4f4cad
mov dword [ebx + 0x30], esi
jmp 0x4f4cb4
mov eax, esi
call fcn.00403f90
mov eax, dword [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x18]
push eax
mov ecx, dword [ebx + 0x28]
mov dl, 1
mov eax, dword [0x4f2e0c]
call fcn.004f36e4
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x4f2cd0]
call fcn.00403f60
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4177e0]
call fcn.00403f60
mov dword [ebx + 0x40], eax
mov esi, dword [ebx + 0x2c]
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x4f4d1d
push edi
movzx eax, byte [esi + 0x11]
push eax
movzx eax, byte [esi + 0x13]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4f3b44]
call fcn.004f4180
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x44]
xor edx, edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
push 0
push 0
xor edx, edx
mov eax, ebx
call fcn.004f5624
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4f4d41
call fcn.0040424c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x503a8c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x503b2b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.004035c8
mov dword [ebp - 0x4c], 0x44
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00503a5c
test al, al
je 0x503adc
mov dword [ebp - 0x20], 1
lea eax, [ebp - 4]
mov edx, edi
call fcn.00405594
push esi
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040dc4c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503b32
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405548
ret

Function at 0x503b3c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffbc
mov ebx, ecx
mov esi, edx
mov edi, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x44
call fcn.004035c8
mov dword [esp], 0x44
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00503a5c
test al, al
je 0x503b74
mov dword [esp + 0x2c], 1
push esi
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.004051e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x44
pop edi
pop esi
pop ebx
ret

Function at 0x5044a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
lea eax, [ebp - 4]
call fcn.00405adc
lea eax, [ebp - 8]
call fcn.00405adc
lea eax, [ebp + 0x10]
call fcn.00405adc
lea eax, [ebp + 0xc]
call fcn.00405adc
xor eax, eax
push ebp
push 0x50458d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x504516
mov eax, dword [0x516c78]
mov eax, dword [eax]
mov cl, 0xec
mov edx, esi
call dword [eax + 0x54]
test al, 8
setne bl
test bl, bl
je 0x504516
push 0x13
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00405718
push eax
mov eax, dword [ebp + 0x10]
call fcn.00405718
push eax
mov eax, dword [ebp - 8]
call fcn.00405718
push eax
mov eax, dword [ebp - 4]
call fcn.00405718
push eax
push esi
call sub.shell32.dll_ShellExecuteW
mov edi, eax
cmp edi, 0x20
ja 0x504565
test esi, esi
je 0x504565
test bl, bl
je 0x504565
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call sub.user32.dll_SetWindowPos
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504594
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405548
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00405548
ret
Function at 0x4565d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, ecx
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x58290c
cmp byte [ecx + 0x20], 0
je 0x45664a
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [ebp - 0x2c], esi
lea ecx, [esi + 8]
push edi
call fcn.004b3580
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ebx, [ebp - 0x28]
cmp byte [ebp - 0x11], 0
mov eax, edi
jns 0x45661f
mov eax, dword [ebp - 0x1c]
push eax
call esi
test eax, eax
je 0x45663f
mov ecx, edi
push ebx
call fcn.004b3580
mov ecx, edi
push ebx
call fcn.0046d000
mov ecx, ebx
call fcn.004b3560
jmp 0x456614
lea ecx, [ebp - 0x1c]
call fcn.004b3560
mov esi, dword [ebp - 0x2c]
lea ecx, [esi + 0x14]
call fcn.004b3560
lea ecx, [esi + 8]
call fcn.004b3560
mov eax, dword [esi + 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5a5e98]
bt edx, ecx
jae 0x45667c
push eax
call fcn.004b5750
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed092
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x457cd0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x20], ecx
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x1c]
mov ecx, edi
push dword [ebp + 8]
call fcn.0051d070
movzx ecx, byte [edi + 0xb]
mov eax, dword [edi]
test cl, cl
jns 0x457d04
mov edx, dword [ebp - 0x18]
mov edi, eax
jmp 0x457d09
mov edx, ecx
and edx, 0x7f
mov dword [ebp - 0x28], eax
add edx, edx
mov esi, edx
cmp edx, 4
jb 0x457d3b
imul eax, dword [edi], 0x5bd1e995
mov ebx, eax
shr ebx, 0x18
xor ebx, eax
imul eax, ebx, 0x5bd1e995
imul esi, esi, 0x5bd1e995
xor esi, eax
add edi, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x457d15
cmp edx, 2
jne 0x457d4b
movzx eax, word [edi]
xor eax, esi
imul esi, eax, 0x5bd1e995
test cl, cl
jns 0x457d5a
push dword [ebp - 0x28]
call fcn.004eca8e
add esp, 4
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax + 8]
xor ecx, ecx
test ebx, ebx
je 0x457e30
mov eax, esi
shr eax, 0xd
xor eax, esi
imul eax, eax, 0x5bd1e995
mov edi, eax
shr edi, 0xf
xor edi, eax
mov edx, ebx
shr edx, 1
and edx, 0x55555555
mov eax, ebx
sub eax, edx
mov edx, 0x33333333
mov esi, eax
and esi, edx
shr eax, 2
and eax, edx
add eax, esi
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
mov dword [ebp - 0x24], ebx
ja 0x457dc2
dec ebx
and ebx, edi
jmp 0x457dd3
mov eax, ebx
mov ebx, edi
cmp edi, eax
jb 0x457dd3
mov eax, edi
xor edx, edx
div dword [ebp - 0x24]
mov ebx, edx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x457e30
mov esi, dword [eax]
test esi, esi
je 0x457e30
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
cmp edi, eax
jne 0x457e08
push dword [ebp + 8]
push dword [esi + 8]
call fcn.0050985a
add esp, 8
test eax, eax
jne 0x457e24
jmp 0x457e2e
cmp dword [ebp - 0x28], 1
ja 0x457e13
and eax, dword [ebp - 0x20]
jmp 0x457e20
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jb 0x457e20
xor edx, edx
div ecx
mov eax, edx
cmp eax, ebx
jne 0x457e2a
mov esi, dword [esi]
test esi, esi
jne 0x457ded
xor ecx, ecx
jmp 0x457e30
mov ecx, esi
mov esi, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed092
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x47b410
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
pop ebp
jmp fcn.0047b1a0

Function at 0x47b420
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x470
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [esp + 0x468], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x420]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea eax, [esp + 0x218]
push 0x196
push str....._base_files_file_util_win.cc
push 0x58dffd
push eax
call fcn.004b4450
add esp, 0x10
mov ecx, esi
lea esi, [esp + 0x218]
push 0
push esi
call fcn.004be2f0
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push esi
call fcn.004f0310
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x47b4b0
mov eax, dword [ebx]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004bc260
add esp, 0xc
push esi
call fcn.004ab010
add esp, 4
lea esi, [esp + 0x10]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push esi
call fcn.004f0310
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x47b4ec
mov eax, dword [edi]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004bc260
add esp, 0xc
push esi
call fcn.004ab010
add esp, 4
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x47b50f
mov eax, dword [ebx]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x47b519
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x58df90]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x47b58e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047bf60
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb], 0
jns 0x47b554
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
cmp byte [ebx + 0xb], 0
jns 0x47b55f
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test esi, esi
je 0x47b590
test eax, eax
jne 0x47b590
cmp dword [esp + 0xc], 0xfffffffc
jne 0x47b584
call fcn.0053e100
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor ebx, ebx
jmp 0x47b590
mov bl, 1
lea ecx, [esp + 0x420]
call fcn.004be370
mov ecx, dword [esp + 0x468]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47b5c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1c9
push str....._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.004b4450
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004be2f0
cmp byte [edi + 0xb], 0
jns 0x47b621
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.004be370
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1f1
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.004b4450
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004be2f0
cmp byte [edi + 0xb], 0
jns 0x47b6b1
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.004be370
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47b6f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.004f0310
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x47b778
push ebx
call fcn.00508f54
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.004b3430
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.0046e2e0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0046d000
mov ecx, ebx
call fcn.004b3560
mov ecx, edi
call fcn.004b3560
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402d14
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403208
Capabilities:
Query or enumerate registry value

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

Function at 0x403fac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c204c], 0
je 0x40400d
cmp word [0x4c2220], 0xd7b2
jne 0x403fd5
cmp dword [0x4c2228], 0
jbe 0x403fd5
mov eax, 0x4c221c
call dword [0x4c2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4be070
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 0x404034
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4be034], 0
jne 0x404029
push 0
push 0x4be068
push 0x4be070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4062c0
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 0x406326
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.00404398
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406310
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40632d
lea eax, [ebp - 0x10]
call fcn.00404128
ret

Function at 0x40be74
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 0x40bead
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404218
jmp 0x40beb6
mov eax, ebx
mov edx, esi
call fcn.0040417c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c568
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c3e0
mov eax, dword [0x4c0e20]
cmp byte [eax], 0
je 0x40c5e4
mov eax, dword [0x4c0a7c]
call fcn.00402b44
call fcn.0040298c
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.00409054
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 0x40c62c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c61a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c09e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c2668]
call fcn.004057d4
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 0x40ceec
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 0x40cfc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004041c0
lea eax, [ebp - 8]
call fcn.00404638
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004045e8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cfac
mov eax, ebx
call fcn.00402824
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cfa5
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.004045e8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf8f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cfd4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf8f
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 0x40cfac
mov eax, dword [ebp - 0x10]
call fcn.00402844
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfc9
lea eax, [ebp - 8]
call fcn.00404128
ret

Function at 0x40d578
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 0x40d5dc
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.00404398
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ab4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d5e3
lea eax, [ebp - 0xc]
call fcn.00404128
ret

Function at 0x426850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c2888
cmp dword [edi], 0
jne 0x4268cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c2884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4be5d4
mov ecx, 2
call fcn.00402a20
mov edx, 0x426828
lea eax, [esi + 5]
call fcn.00426848
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426848
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 0x4268a1
mov dword [0x4c2884], 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 0x427d78
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 0x427d7e
ret