joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1a17e
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x203a4]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x1a251
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x28]
push 0x22480
push 0x200
lea eax, [ebp - 0xc]
push eax
push ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00018efc
push dword [0x203a4]
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [0x1d5b8]
mov dword [esi + 8], eax
cmp eax, edi
jne 0x1a1ee
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
push dword [esi + 8]
lea eax, [ebp - 0x14]
push 0x800
push edi
push edi
push edi
push edi
push 0x60
push 1
push 4
push 0x80
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x10000
lea eax, [ebp - 4]
push eax
call dword [0x1d5b4]
pop esi
pop ebx
test eax, eax
jl 0x1a245
push 0xd
push 1
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov byte [ebp + 0xb], 1
call dword [0x1d5a0]
push dword [ebp - 4]
call dword [0x1d610]
lea eax, [ebp - 0x2c]
push eax
call dword [0x1d5e0]
jmp 0x1a256
mov eax, 0xc000000e
pop edi
leave
ret 4
Function at 0x1ab9c
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 4
pop esi
push 0x1ce3a
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 8], esi
call dword [0x1d614]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x22ac8
push edi
call fcn.00011648
push 0x22458
call fcn.0001a17e
xor eax, eax
mov esi, 0x400
mov word [ebp - 0x10], ax
mov eax, esi
push esi
mov word [ebp - 0xe], ax
call fcn.00015ab0
xor ebx, ebx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1acff
movzx ecx, word [ebp - 0xe]
push ecx
push ebx
push eax
call fcn.0001b954
add esp, 0xc
push edi
lea eax, [ebp - 0x10]
push eax
call dword [0x1d510]
test eax, eax
jl 0x1ac76
push str.Enum
lea eax, [ebp - 0x10]
push eax
call dword [0x1d514]
test eax, eax
jl 0x1ac76
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [0x1d4e8]
test eax, eax
jl 0x1ac76
push dword [ebp - 4]
call dword [0x1d50c]
push dword [ebp - 4]
call dword [0x1d610]
xor eax, eax
push esi
mov word [ebp - 0x10], ax
push ebx
push dword [ebp - 0xc]
mov eax, esi
mov word [ebp - 0xe], ax
call fcn.0001b954
add esp, 0xc
push edi
lea eax, [ebp - 0x10]
push eax
call dword [0x1d510]
test eax, eax
jl 0x1acf7
push str.Security
lea eax, [ebp - 0x10]
push eax
call dword [0x1d514]
test eax, eax
jl 0x1acf7
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [0x1d4e8]
test eax, eax
jl 0x1acf7
push dword [ebp - 4]
call dword [0x1d50c]
push dword [ebp - 4]
call dword [0x1d610]
push dword [ebp - 0xc]
call fcn.00015aca
lea eax, [ebp - 0x30]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [0x1d4e8]
pop edi
pop esi
pop ebx
test eax, eax
jl 0x1ad4e
push dword [ebp - 4]
call dword [0x1d50c]
push dword [ebp - 4]
call dword [0x1d4d8]
push dword [ebp - 4]
call dword [0x1d610]
leave
ret
Function at 0x1ad56
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
call fcn.0001a0c2
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.0001847e
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x1aefc
push edi
call fcn.00018974
test eax, eax
jl 0x1aefc
cmp byte [0x203b8], bl
je 0x1ad9d
push 1
call fcn.000185d8
push eax
call fcn.00018bd2
push esi
push 0x70
call fcn.00015ab0
mov esi, eax
cmp esi, ebx
je 0x1ae57
push 0x70
push ebx
push esi
call fcn.0001b954
mov dword [esi], 0x70
mov dword [esi + 4], 0x1a2fe
mov dword [esi + 8], 0x1a370
mov dword [esi + 0xc], 0x1a3e2
mov dword [esi + 0x10], 0x1a454
mov dword [esi + 0x14], 0x1a4be
mov dword [esi + 0x18], 0x1a528
mov dword [esi + 0x1c], 0x1a59e
mov dword [esi + 0x20], 0x1a60e
mov dword [esi + 0x24], 0x1a678
mov dword [esi + 0x28], 0x1a6e2
mov dword [esi + 0x34], 0x19dec
mov dword [esi + 0x38], 0x1a758
mov dword [esi + 0x40], 0x1a7c2
mov dword [esi + 0x44], 0x1a832
mov dword [esi + 0x48], 0x1a896
mov dword [esi + 0x4c], 0x1a906
mov dword [esi + 0x50], 0x1a96c
mov dword [esi + 0x54], 0x1a9e4
mov dword [esi + 0x58], 0x1aa5c
mov dword [esi + 0x5c], 0x1aac0
mov dword [esi + 0x60], 0x1ab26
add esp, 0xc
mov dword [edi + 0x28], esi
mov eax, dword [ebp - 4]
push 0x203a4
push ebx
push ebx
push dword [eax + 0x2c]
push ebx
push 0xc
push edi
call dword [0x1d500]
test eax, eax
jl 0x1aefb
mov eax, dword [0x203a4]
mov esi, dword [eax + 0x28]
lea eax, [esi + 4]
push eax
push dword [ebp - 4]
mov dword [esi], edi
mov dword [esi + 8], ebx
mov dword [eax], ebx
push dword [0x203a4]
call dword [0x1d5e4]
push dword [0x203a4]
test eax, eax
jge 0x1aeb0
call dword [0x1d4f0]
mov dword [0x203a4], ebx
jmp 0x1aefb
call dword [0x1d5b8]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x1aefb
call fcn.00018de6
cmp byte [0x203b8], bl
je 0x1aef1
push 0x22680
push 0x22458
call fcn.000186e4
test eax, eax
jl 0x1aee4
call fcn.0001ab9c
jmp 0x1aef1
push 4
call fcn.000185d8
mov byte [0x203b8], bl
call fcn.000197cc
call fcn.00019c18
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x1b06c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push edi
xor edi, edi
cmp byte [0x203b8], 0
mov dword [ebp - 8], edi
jne 0x1b142
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x20], 0x22ac8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [0x1d4e0]
cmp dword [ebp - 8], edi
je 0x1b142
push ebx
push esi
mov esi, dword [fcn.000134c6]
xor ebx, ebx
push 0x1d36a
lea eax, [ebp - 0x10]
inc ebx
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
mov edi, dword [0x1d4dc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1ce3a
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1d360
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [0x1d610]
pop esi
pop ebx
pop edi
leave
ret

Function at 0x232be
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00023285
pop ebp
jmp fcn.00012d34
Function at 0x409904
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4099d7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4099f0
push ebx
push 0x4099fc
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040336c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409984
mov al, 0x62
call fcn.004095a8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004098d8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x40998d
call fcn.004098d8
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099de
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x409a70
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b24
jmp 0x409b19
cmp dword [esi + 0x10], 0x1000
jne 0x409b05
test byte [esi + 0x15], 1
jne 0x409b05
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409ac4
cmp eax, 2
je 0x409ac4
cmp eax, 0x10
je 0x409ac4
cmp eax, 0x20
jne 0x409ad9
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409ad9
mov bl, 1
xor ebp, ebp
jmp 0x409aea
mov eax, dword [esi]
add eax, ebp
call fcn.00409a68
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409add
test bl, bl
je 0x409b05
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409b24
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a9c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x874058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008741a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x87407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87406a
add dl, dl
jne 0x874089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8740dc
xor eax, eax
add dl, dl
jne 0x874096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87417d
add dl, dl
jne 0x8740a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8740b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8740bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8740c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8740d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x874075
mov eax, 1
add dl, dl
jne 0x8740ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8740f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8740e1
sub eax, ebx
mov ebx, 1
jne 0x874128
mov ecx, 1
add dl, dl
jne 0x87410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x874119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x874105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x874075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x87413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x87414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x874136
cmp eax, 0x7d00
jae 0x87416d
cmp eax, 0x500
jb 0x874168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x874075
cmp eax, 0x7f
ja 0x874170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x874075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x87419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x874075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x40464f9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..tls
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x65f268a3
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4019a7
Capabilities:
Parse pe header

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

Function at 0x4065f9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406644
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406816
test al, al
jne 0x40663e
sub edx, 2
cmp edx, edi
jne 0x406624
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406666
lea eax, [edi + 2]
cmp edx, eax
je 0x406666
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406545
add esp, 0x10
jmp 0x406760
push esi
lea ecx, [ebp - 0x255]
call fcn.00406816
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4066a9
push dword [ebp - 0x25c]
jmp 0x406656
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4066e6
cmp word [ebp - 0x226], 0
je 0x406707
cmp word [ebp - 0x226], ax
jne 0x4066e6
cmp word [ebp - 0x224], 0
je 0x406707
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406545
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406753
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4066c0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40673b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406760
push 0x406375
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004093c0
add esp, 0x10
jmp 0x406730
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401177
leave
ret

Function at 0x408293
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffbc
push 0x40ffb4
push str.FlsAlloc
push 0x1f
call fcn.004081ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4082c7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e11c]
call esi
jmp 0x4082cd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x408311
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffcc
push 0x40ffc4
push str.FlsGetValue
push 0x21
call fcn.004081ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408348
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e11c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408350
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffd4
push 0x40ffcc
push str.FlsSetValue
push 0x22
call fcn.004081ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40838a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e11c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x402f0c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403364
Capabilities:
Query or enumerate registry value

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

Function at 0x404114
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459048], 0
je 0x404175
cmp word [0x45921c], 0xd7b2
jne 0x40413d
cmp dword [0x459224], 0
jbe 0x40413d
mov eax, 0x459218
call dword [0x459234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x457070
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 0x40419c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x457034], 0
jne 0x404191
push 0
push 0x457068
push 0x457070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406200
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 0x406266
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.00404508
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f28
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406250
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40626d
lea eax, [ebp - 0x10]
call fcn.00404298
ret

Function at 0x40b3b0
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 0x40b3e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404388
jmp 0x40b3f2
mov eax, ebx
mov edx, esi
call fcn.004042ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bab4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b91c
mov eax, dword [0x4586e4]
cmp byte [eax], 0
je 0x40bb30
mov eax, dword [0x458478]
call fcn.00402d78
call fcn.00402bc4
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.00408ba0
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 0x40bb78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb66
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x458418]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x459664]
call fcn.0040566c
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 0x40c3d4
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 0x40c4aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404330
lea eax, [ebp - 8]
call fcn.004047a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404758
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c494
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c48d
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.00404758
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c477
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c4bc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c477
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 0x40c494
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4b1
lea eax, [ebp - 8]
call fcn.00404298
ret

Function at 0x40ca84
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 0x40cae8
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.00404508
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004086a0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caef
lea eax, [ebp - 0xc]
call fcn.00404298
ret