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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x5f4cb1], 0
jne 0x408930
mov eax, str.__threadStrMap
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401ee9
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4088c6
push ebx
call fcn.00526a1c
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x5f4cb1], eax
cmp dword [0x5f4cb1], 0
jne 0x408930
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
nop
nop
cmp dword [ebp - 8], esp
je 0x408904
push 0xc6
push 0x4017abf
push 6
call fcn.00526a28
add esp, 0xc
mov dword [0x5f4cb1], eax
push dword [0x5f4cb1]
mov eax, str.__threadStrMap
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040239f
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408930
push ebx
call fcn.00526a1c
add esp, 4
mov dword [ebp - 8], esp
push dword [0x5f4cb1]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
nop
cmp dword [ebp - 8], esp
je 0x40895f
push 0x138
push 0x4017abf
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4089a6
call fcn.0040216e
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [0x5f4cb1]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
nop
cmp dword [ebp - 8], esp
je 0x4089a6
push 0x1b6
push 0x4017abf
push 6
call fcn.00526a28
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x4089ae
mov esp, ebp
pop ebp
ret

Function at 0x408d42
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x5f4cb5], 0
jne 0x408ded
mov eax, str.__threadStrMap
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00408e6f
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408d83
push ebx
call fcn.00526a1c
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x5f4cb5], eax
cmp dword [0x5f4cb5], 0
jne 0x408ded
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
nop
nop
cmp dword [ebp - 8], esp
je 0x408dc1
push 0xc6
push 0x4017b23
push 6
call fcn.00526a28
add esp, 0xc
mov dword [0x5f4cb5], eax
push dword [0x5f4cb5]
mov eax, str.__threadStrMap
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004092b5
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408ded
push ebx
call fcn.00526a1c
add esp, 4
mov dword [ebp - 8], esp
push dword [0x5f4cb5]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
nop
cmp dword [ebp - 8], esp
je 0x408e1c
push 0x138
push 0x4017b23
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408e63
call fcn.004090f4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push dword [0x5f4cb5]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
nop
cmp dword [ebp - 8], esp
je 0x408e63
push 0x1b6
push 0x4017b23
push 6
call fcn.00526a28
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x408e6b
mov esp, ebp
pop ebp
ret
Function at 0x408e9d
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
cmp dword [0x5f4cb9], 0
jne 0x4090d4
push 0x80000301
push 0
push 0x40
push 1
mov ebx, 0x184
call fcn.00528420
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x408eef
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 8], esp
je 0x408f1c
push 0xb8
push 0x4017b27
push 6
call fcn.00526a28
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.005280e0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push str.__processStrMap_
mov ecx, 2
call fcn.00401b06
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x408f61
push ebx
call fcn.00526a1c
add esp, 4
mov dword [ebp - 0x18], esp
push 0x40
push dword [ebp - 4]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x408f95
push 0xb8
push 0x4017b27
push 6
call fcn.00526a28
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x408fa5
push ebx
call fcn.00526a1c
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x408fb8
mov eax, 0x54d2f5
push eax
push 1
mov ebx, 0x164
call fcn.00528460
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
fld qword [ebp - 0x14]
call fcn.0040105b
mov dword [0x5f4cb9], eax
cmp dword [0x5f4cb9], 0
jne 0x4090d4
call fcn.004090f4
mov dword [0x5f4cb9], eax
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 8], esp
je 0x40901e
push 0x1c1
push 0x4017b27
push 6
call fcn.00526a28
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.005280e0
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push str.__processStrMap_
mov ecx, 2
call fcn.00401b06
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x409063
push ebx
call fcn.00526a1c
add esp, 4
push 0x80000301
push 0
push dword [0x5f4cb9]
push 1
mov ebx, 0x168
call fcn.005280e0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4090b4
push 0x1d6
push 0x4017b27
push 6
call fcn.00526a28
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4090c4
push ebx
call fcn.00526a1c
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4090d4
push ebx
call fcn.00526a1c
add esp, 4
mov eax, dword [0x5f4cb9]
jmp 0x4090de
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4090ef
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x409ff3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x54d23b
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 8], esp
je 0x40a031
push 0x36
push 0x4017a51
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push str.NtQueryInformationThread
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a065
push 0x36
push 0x4017a51
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40a15f
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop
nop
cmp dword [ebp - 8], esp
je 0x40a09b
push 0x94
push 0x4017a51
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 9
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a0e4
push 0x94
push 0x4017a51
push 6
call fcn.00526a28
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x40a15f
mov dword [ebp - 8], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
cmp dword [ebp - 8], esp
je 0x40a11c
push 0x132
push 0x4017a51
push 6
call fcn.00526a28
add esp, 0xc
push eax
call fcn.0040a193
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x14], eax
jne 0x40a15f
mov dword [ebp - 8], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 8], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x40ab30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
call fcn.004099b4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x40ac5c
mov eax, 0x54d782
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004042fc
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ab76
push ebx
call fcn.00526a1c
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [0x5f4cad]
push 1
mov ebx, 0x9dc
call fcn.005288e0
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
push 1
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00404318
lea eax, [ebp - 4]
push eax
call fcn.004043b0
call fcn.00409f60
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x40ac78
push 0
call fcn.00409ff3
mov dword [ebp - 8], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4163de
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x416428
push 0x12
push 0x4017386
push 6
call fcn.00526a28
add esp, 0xc
jmp 0x41642d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41a28f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x208
push 1
mov ebx, 0x1bc
call fcn.00527ce0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41a2d4
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a2ed
add eax, 8
push eax
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop
nop
cmp dword [ebp - 8], esp
je 0x41a319
push 0x48
push 0x40168e6
push 6
call fcn.00526a28
add esp, 0xc
test eax, eax
je 0x41a3ef
lea eax, [ebp - 4]
push eax
call fcn.00401722
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41a359
push 0xe4
push 0x40168e6
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x54d46b]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x54d233]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.0040105b
push 0x80000301
push 0
push eax
push VariantClear
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41a39d
mov eax, 0x54d221
push eax
push 2
mov ebx, 0x1a0
call fcn.0052bda0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41a3c7
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a3e5
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00526a16
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41a3f9
mov eax, 0x54d229
jmp 0x41a3f9
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41a40a
push ebx
call fcn.00526a1c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x41af64
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 1
push 0x54d2f5
push 0x54d2f5
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x41afb4
push 0x24
push 0x40122c4
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1f
mov eax, 0
setg al
jmp 0x41afc8
mov esp, ebp
pop ebp
ret 4
Function at 0x41ec79
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push dword [0x5f4cf5]
call fcn.0041ed03
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
nop
cmp dword [ebp - 4], esp
je 0x41ecbb
push 0x5d
push 0x40110eb
push 6
call fcn.00526a28
add esp, 0xc
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
test eax, eax
je 0x41ecd9
mov eax, 0
jmp 0x41ecdc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push 1
push dword [ebp - 8]
push dword [ebp + 8]
push dword [0x5f4cf9]
call fcn.0041ed3e
push dword [0x5f4cf5]
call fcn.0041f6cd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48b4bf
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x48b4f7
push 0x12
push 0x40168f0
push 6
call fcn.00526a28
add esp, 0xc
jmp 0x48b4fc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48c479
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.005288e0
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp + 0x1c]
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x48c4e9
push 0x3d
push 0x40168ef
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x48c527
mov dword [ebp - 8], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 8], esp
je 0x48c522
push 0x9d
push 0x40168ef
push 6
call fcn.00526a28
add esp, 0xc
jmp 0x48c52f
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
jmp 0x48c537
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x497f1f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x40
push 0x1000
push 0x1000
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 8], esp
je 0x497f6c
push 0x19
push 0x4017384
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp]
mov eax, dword [eax + 8]
mov ecx, eax
mov ebx, dword [ebp + 8]
dec ebx
imul ebx, ebx, 4
mov eax, dword [eax]
mov eax, dword [eax]
add eax, ebx
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
mov word [eax], 0xb85b
mov dword [eax + 2], ebx
mov byte [eax + 6], 0x68
mov dword [eax + 7], ecx
mov word [eax + 0xb], 0xff53
mov byte [eax + 0xd], 0xe0
mov eax, dword [ebp - 4]
jmp 0x497faa
mov esp, ebp
pop ebp
ret 4

Function at 0x4e0f81
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 4], esp
je 0x4e0fc5
push 0x12
push 0x4017b84
push 6
call fcn.00526a28
add esp, 0xc
jmp 0x4e0fca
mov esp, ebp
pop ebp
ret 4
Function at 0x51b6e4
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
cmp dword [ebp - 4], esp
je 0x51b71e
push 0x24
push 0x4017387
push 6
call fcn.00526a28
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x51b732
mov esp, ebp
pop ebp
ret 4

Function at 0x527ba0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5f5580]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x108], ecx
lea eax, [ecx - 1]
cmp eax, 0xa
ja 0x527bcd
mov edx, dword [ecx*4 + 0x5f5324]
lea eax, [ebp - 0x108]
mov eax, dword [eax - 4]
test eax, eax
je 0x527c0b
push esi
mov esi, 0xc483
cmp si, word [eax]
pop esi
jne 0x527c0b
cmp byte [eax + 2], 0xc
jl 0x527c0b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push edx
push ecx
push 0x544594
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x527c22
push edx
push ecx
lea eax, [ebp - 0x104]
push str.program_internal_error_number_is__d.__r_n_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x5f5ed0]
test eax, eax
je 0x527c5b
cmp dword [0x5f5ee4], 0
jne 0x527c5b
lea ecx, [ebp - 0x104]
mov dword [0x5f5ee4], 1
push ecx
push dword [ebp - 0x108]
call eax
mov dword [0x5f5ee4], 0
test eax, eax
jne 0x527c71
push 0x10
push 0x5445fc
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.005277f0
cmp dword [0x5f5ec8], 0
jne 0x527c87
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0
mov ebp, dword [0x5f5ecc]
mov esp, dword [0x5f5ec8]
sub esp, 4
ret

Function at 0x528f70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x400
call fcn.0052eb02
mov ebx, dword [ebp + 0xc]
add esp, 4
mov edi, eax
push ebx
push 0x400
push edi
push dword [ebp + 0x30]
push dword [ebp + 0x24]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, eax
cmp ecx, 0x3ff
jl 0x528fe2
nop dword [eax + eax]
push edi
lea esi, [ecx + 0x400]
call fcn.0052eb0b
push esi
call fcn.0052eb02
add esp, 8
mov edi, eax
push ebx
push esi
push edi
push dword [ebp + 0x30]
push dword [ebp + 0x24]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, eax
lea eax, [esi - 1]
cmp ecx, eax
jge 0x528fb0
push edi
xor esi, esi
call dword [0x5f5558]
add esp, 4
test eax, eax
je 0x528ffe
push eax
push edi
call fcn.0052d1e0
add esp, 8
mov esi, eax
push edi
call fcn.0052eb0b
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x52bd00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
je 0x52bd8f
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 1
mov dword [ebp - 8], 1
cmp ebx, esi
jle 0x52bd7f
push edi
lea edi, [ebp + 0x18]
mov eax, dword [edi]
lea edx, [ebp - 0xc]
push 0
push edx
push dword [eax + 4]
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x52bd77
inc esi
add edi, 0xc
cmp esi, ebx
jl 0x52bd41
pop edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
pop edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x52bf10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.0052e4c0
mov esi, dword [ebp + 0x18]
mov edi, eax
push esi
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [0x5f5558]
add esp, 8
test edi, edi
je 0x52c039
test eax, eax
je 0x52c039
inc eax
push eax
call fcn.0052eb02
mov edx, eax
mov dword [ebp - 0x10], eax
add esp, 4
sub edx, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], cl
test cl, cl
jne 0x52bf56
push 0x5c
push eax
call fcn.0052fdb0
mov edi, eax
add esp, 8
test edi, edi
je 0x52bf77
mov byte [edi], bl
inc edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x52c02a
push 0x400
mov dword [ebp - 4], 0x400
mov dword [ebp - 8], 1
call fcn.0052eb02
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x52bff8
cmp eax, 0xea
jne 0x52c018
push esi
call fcn.0052eb0b
push dword [ebp - 4]
call fcn.0052eb02
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52bfc5
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x52c005
cmp eax, 2
jne 0x52c018
push esi
call dword [0x5f5558]
push eax
push esi
call fcn.0052d1e0
add esp, 0xc
mov ebx, eax
push esi
call fcn.0052eb0b
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.0052eb0b
add esp, 4
test ebx, ebx
jne 0x52c05e
cmp dword [ebp + 0x2c], 0
je 0x52c05e
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x52c05e
push esi
call dword [0x5f5558]
push eax
push esi
call fcn.0052d1e0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52c2e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x52c34c
push esi
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 8]
push ecx
call fcn.00527a10
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
lea ecx, [edi + 8]
mov dword [edi], 1
push ecx
push ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52c5e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x52c62d
push esi
call fcn.0052e710
add esp, 4
test eax, eax
je 0x52c62d
mov eax, dword [esi]
or ecx, 0xffffffff
cmp eax, 1
je 0x52c619
cmp eax, 3
je 0x52c619
cmp eax, 2
jne 0x52c628
mov ecx, dword [esi + 4]
call fcn.0052e740
mov ecx, eax
pop esi
pop ebp
ret
lea eax, [ebp + 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, ecx
pop esi
pop ebp
ret
or eax, 0xffffffff
pop esi
pop ebp
ret