joyce8/EMBER2024-capa huggingface dataset:
Function at 0x70a5e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov dword [ebp - 0x20], 0x1652f
mov dword [ebp - 0x48], 0x134b6
mov dword [ebp - 0x1c], 0x12587
mov dword [ebp - 0x30], 0x12603
mov dword [ebp - 0x6c], 0x269f
mov dword [ebp - 0x28], 0x1e22
mov dword [ebp - 0x2c], 0x776
mov dword [ebp - 0x7c], 0xbb15
mov dword [ebp - 0x3c], 0x1090f
mov dword [ebp - 0x34], 0x5ffc
mov dword [ebp - 0xc4], 0x183b8
mov dword [ebp - 0x54], 0xcfd
mov dword [ebp - 0x38], 0x178d7
mov dword [ebp - 0xc], 0x270a
mov dword [ebp - 0x14], 0x14ec7
mov dword [ebp - 4], 0x4faa
mov dword [ebp - 0x18], 0x9298
mov dword [ebp - 0x24], 0x1105e
mov dword [ebp - 0xf0], 0x13b9d
mov dword [ebp - 0x60], 0x174ff
mov dword [ebp - 0x4c], 0x5182
mov dword [ebp - 0x58], 0x4269
mov dword [ebp - 0x50], 0x17b5d
mov dword [ebp - 0x10], 0x17051
mov dword [ebp - 8], 0x109fe
mov eax, dword [ebp - 0xc]
add eax, 0xc445
push eax
mov ecx, dword [ebp - 8]
sub ecx, 0xb347
push ecx
mov edx, dword [0xc7cf74]
add edx, 0x2036
push edx
mov eax, dword [ebp - 0x54]
add eax, 0x3d37
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x98ca
push ecx
mov edx, dword [ebp - 0x6c]
add edx, 0x143f0
push edx
call fcn.0040b2d0
add esp, 0x18
mov dword [ebp - 0x40], 0
jmp 0x70a6f5
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, 0x5181
cmp dword [ebp - 0x40], ecx
jge 0x70a753
mov edx, dword [ebp - 8]
cmp edx, dword [0xc7c9a0]
jge 0x70a717
mov dword [ebp - 0x64], 1
jmp 0x70a71e
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x34]
jge 0x70a72f
mov dword [ebp - 0x68], 1
jmp 0x70a736
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x7c]
imul ecx, dword [0xc7cb88]
and ecx, dword [ebp - 0x64]
or ecx, dword [ebp - 0x68]
je 0x70a751
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
jmp 0x70a6ec
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x717dc4
Capabilities:
Parse pe header

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

Function at 0x724474
Capabilities:
Parse pe header

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

Function at 0x7440f9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00743fcd
Function at 0x744bf4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0xcf6d00]
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 0x744c3f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00745094
test al, al
jne 0x744c39
sub edx, 2
cmp edx, edi
jne 0x744c1f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x744c61
lea eax, [edi + 2]
cmp edx, eax
je 0x744c61
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.007448bb
add esp, 0x10
jmp 0x744d5b
push esi
lea ecx, [ebp - 0x255]
call fcn.00745094
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 0x744ca4
push dword [ebp - 0x25c]
jmp 0x744c51
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 0x744ce1
cmp word [ebp - 0x226], 0
je 0x744d02
cmp word [ebp - 0x226], ax
jne 0x744ce1
cmp word [ebp - 0x224], 0
je 0x744d02
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.007448bb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x744d4e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x744cbb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x744d36
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x744d5b
push 0x74430b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0074fe80
add esp, 0x10
jmp 0x744d2b
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.00718339
leave
ret
Function at 0x7465db
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 0x746678
push ebx
push esi
call fcn.00746597
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.007464d4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x746625
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x746677
push edi
push eax
call fcn.00748dde
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x746645
call fcn.007442b9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x746676
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.007464d4
add esp, 0x20
test eax, eax
jne 0x746664
push edi
call fcn.007442b9
jmp 0x74666c
push ebx
call fcn.007442b9
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 0x74667b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x74668c
pop esi
ret
push ebx
push edi
push esi
call fcn.00746597
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00748dde
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x7466b4
push ebx
push esi
push edi
call fcn.00720ee0
add esp, 0xc
push 0
call fcn.007442b9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x746fa3
Capabilities:
Set environment variable

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

Function at 0x74b0f6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00743613
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x74b165
cmp esi, dword [ebp - 4]
je 0x74b160
cmp dword [ebp + 0xc], 0
je 0x74b160
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x74b13d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0074ac48
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x74b167
xor eax, eax
inc eax
jmp 0x74b167
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x74b1cc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xcf6d00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00743613
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00743613
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x74b243
cmp word [ecx], dx
je 0x74b243
mov eax, dword [0xc18f14]
push edi
dec eax
push eax
push 0xc18e00
call fcn.0074b16b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x74b2b6
cmp word [eax], dx
je 0x74b2b6
mov eax, dword [edi]
test eax, eax
je 0x74b267
cmp word [eax], dx
je 0x74b267
lea eax, [ebp - 0x10]
push eax
call fcn.0074ab4e
jmp 0x74b270
lea eax, [ebp - 0x10]
push eax
call fcn.0074abe9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x74b2e0
mov eax, dword [0xc18dfc]
push dword [ebp - 0x14]
dec eax
push eax
push 0xc18af0
call fcn.0074b16b
add esp, 0xc
test al, al
je 0x74b2e0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x74b2ab
cmp word [eax], di
je 0x74b2ab
lea eax, [ebp - 0x10]
push eax
call fcn.0074ab4e
pop ecx
jmp 0x74b2e2
lea eax, [ebp - 0x10]
push eax
call fcn.0074abe9
jmp 0x74b2a8
mov eax, dword [edi]
test eax, eax
je 0x74b2cd
cmp word [eax], dx
je 0x74b2cd
lea eax, [ebp - 0x10]
push eax
call fcn.0074aae5
pop ecx
jmp 0x74b2e0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x74b3ab
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0074aff0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x74b3ab
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x74b3ab
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x74b3ab
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x74b338
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0074c0bc
test ebx, ebx
je 0x74b3a6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0074c0bc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x74b3ab
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x74b3ab
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00751343
add esp, 0x10
xor eax, eax
inc eax
jmp 0x74b3ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00718339
leave
ret
Function at 0x74bd2b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc1a13c
push 0xc1a134
push str.FlsAlloc
push 0x1f
call fcn.0074b9f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x74bd5f
push dword [ebp + 8]
mov ecx, esi
call dword [0x76131c]
call esi
jmp 0x74bd65
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x74bda9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc1a14c
push 0xc1a144
push 0xc1762c
push 0x21
call fcn.0074b9f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x74bde0
push dword [ebp + 8]
mov ecx, esi
call dword [0x76131c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x74bde8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xc1a154
push 0xc1a14c
push 0xc17640
push 0x22
call fcn.0074b9f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x74be22
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x76131c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x7584ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xcf8670]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x7584eb
cmp byte [ebx], 0xa
jne 0x7584eb
or byte [edi + eax + 0x28], 4
jmp 0x7584f0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x7585ef
mov dl, byte [eax]
cmp dl, 0x1a
je 0x7585d2
inc eax
cmp dl, 0xd
je 0x75851c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x758542
cmp eax, ecx
jae 0x758550
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x758504
jmp 0x7585ef
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x7585cd
cmp dword [ebp - 0x10], 0
je 0x7585cd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xcf8670]
test byte [eax + edi + 0x28], 0x48
je 0x7585a7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x758592
mov byte [esi], dl
jmp 0x7585a3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xcf8670]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x7585ef
cmp byte [ebp - 1], 0xa
jne 0x7585b6
cmp esi, ebx
jne 0x7585b6
mov byte [esi], 0xa
jmp 0x7585ee
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.007582fd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x7585ef
mov byte [esi], 0xd
jmp 0x7585ee
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xcf8670]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x7585ec
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x7585ef
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x7585f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xcf8670]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x75863e
cmp word [ebx], dx
jne 0x75863e
or byte [eax + edi + 0x28], 4
jmp 0x758643
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x7587a6
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x758786
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x758684
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x7586ba
cmp eax, edx
jae 0x7586c8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x75865f
jmp 0x7587a6
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x758781
cmp dword [ebp - 0x18], 0
je 0x758781
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xcf8670]
test byte [eax + edi + 0x28], 0x48
je 0x758757
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x75871b
mov word [esi], cx
jmp 0x758752
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xcf8670]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xcf8670]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xcf8670]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x7587a6
pop eax
cmp word [ebp - 4], ax
jne 0x758767
cmp esi, ebx
jne 0x758767
mov word [esi], ax
jmp 0x7587a3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.007582fd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x7587a6
push 0xd
pop eax
jmp 0x758762
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xcf8670]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x7587a0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x7587a6
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x75d270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x75d29d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x75d29d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402f94
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4033f8
Capabilities:
Query or enumerate registry value

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

Function at 0x404194
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49904c], 0
je 0x4041f5
cmp word [0x499220], 0xd7b2
jne 0x4041bd
cmp dword [0x499228], 0
jbe 0x4041bd
mov eax, 0x49921c
call dword [0x499238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x496070
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 0x40421c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x496034], 0
jne 0x404211
push 0
push 0x496068
push 0x496070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ae8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404318
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4063e4
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 0x40644a
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.0040460c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fb0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406434
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406451
lea eax, [ebp - 0x10]
call fcn.0040439c
ret

Function at 0x40bc90
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 0x40bcc9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040448c
jmp 0x40bcd2
mov eax, ebx
mov edx, esi
call fcn.004043f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cd08
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 0x40cdde
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404434
lea eax, [ebp - 8]
call fcn.004048ac
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040485c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cdc8
mov eax, ebx
call fcn.00402ae8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cdc1
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.0040485c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cdab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cdf0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cdab
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 0x40cdc8
mov eax, dword [ebp - 0x10]
call fcn.00402b18
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cde5
lea eax, [ebp - 8]
call fcn.0040439c
ret