joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029bd
Capabilities:
Create thread

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x1007290], edi
jne 0x10029d6
call fcn.01002690
cmp eax, edi
jl 0x1002a8a
push ebx
push ebp
push esi
push edi
push 1
mov ebx, 0x8ba
push ebx
push 2
mov ebp, 0x1007014
push ebp
call fcn.010028c2
mov esi, eax
cmp esi, edi
jl 0x1002a5d
push edi
push edi
push edi
push 2
push 0x1007018
call fcn.010028c2
mov esi, eax
cmp esi, edi
jl 0x1002a5d
push 1
push edi
push ebx
push 1
push 0x10074a0
call fcn.010028c2
mov esi, eax
cmp esi, edi
jl 0x1002a5d
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x10]
push eax
push edi
push edi
push 0x10025e4
push edi
push edi
call esi
cmp eax, edi
mov dword [0x10074a4], eax
je 0x1002a58
lea eax, [esp + 0x10]
push eax
push edi
push edi
push 0x1002fce
push edi
push edi
call esi
cmp eax, edi
mov dword [0x1007488], eax
jne 0x1002a7b
mov esi, 0x80004005
push ebp
call fcn.01002998
push 0x1007018
call fcn.01002998
push 0x10074a0
call fcn.01002998
mov eax, esi
jmp 0x1002a87
mov dword [0x100728c], 1
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret

Function at 0x1003260
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10013f4
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], 0x50
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10032a8
xor eax, eax
jmp 0x1003357
push esi
push edi
mov eax, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100333d
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10032aa
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x10013ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100331a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10032aa
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.010031ea
mov edi, dword [ebp + 8]
push 4
pop ecx
lea esi, [ebp - 0x2c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x100330f
mov dword [ebp - 0x18], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
pop edi
pop esi
je 0x1003357
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
pop ebx
leave
ret 0x10
Function at 0x1003886
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1007028]
je 0x10038a6
inc eax
cmp eax, 0x12
jb 0x1003897
shl eax, 3
cmp edx, dword [eax + 0x1007028]
mov dword [ebp + 8], eax
jne 0x1003a44
mov ecx, dword [0x10072a0]
cmp ecx, 1
je 0x1003a19
test ecx, ecx
jne 0x10038d8
cmp dword [0x1007020], 1
je 0x1003a19
cmp edx, 0xfc
je 0x1003a44
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1003913
push 5
pop ecx
mov esi, 0x10017a4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003922
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100395a
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100393a
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10017a0
push ebx
call fcn.01004420
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100395f
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100702c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003976
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.010042e0
mov edx, esp
push 6
pop ecx
mov esi, 0x1001784
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039a2
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10039ae
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10039c7
mov eax, dword [ebp + 8]
mov esi, 0x1001780
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100702c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039e2
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10039ee
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001758
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100431d
add esp, 0xc
jmp 0x1003a44
mov ecx, dword [eax + 0x100702c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003a24
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100431d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100740c], ebx
push esi
push edi
jne 0x100439d
push 0x1001820
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10043d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001814
push edi
call esi
test eax, eax
mov dword [0x100740c], eax
je 0x10043d8
push 0x1001804
push edi
call esi
push 0x10017f0
push edi
mov dword [0x1007410], eax
call esi
cmp dword [0x10072b0], 2
mov dword [0x1007414], eax
jne 0x100439d
push 0x10017d4
push edi
call esi
test eax, eax
mov dword [0x100741c], eax
je 0x100439d
push 0x10017bc
push edi
call esi
mov dword [0x1007418], eax
mov eax, dword [0x1007418]
test eax, eax
je 0x10043e2
call eax
test eax, eax
je 0x10043c9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100741c]
test eax, eax
je 0x10043c9
test byte [ebp - 8], 1
jne 0x10043e2
cmp dword [0x10072bc], 4
jb 0x10043dc
or byte [ebp + 0x12], 0x20
jmp 0x1004401
xor eax, eax
jmp 0x1004411
or byte [ebp + 0x12], 4
jmp 0x1004401
mov eax, dword [0x1007410]
test eax, eax
je 0x1004401
call eax
mov ebx, eax
test ebx, ebx
je 0x1004401
mov eax, dword [0x1007414]
test eax, eax
je 0x1004401
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100740c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005ee4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.010042e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005f79
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10072b0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1005f79
cmp eax, 1
je 0x1005f91
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005f79
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1005f4e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1005f75
xor eax, eax
inc eax
jmp 0x1005fad
cmp esi, ebx
jae 0x1005f7d
xor eax, eax
jmp 0x1005fad
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10072b0]
jmp 0x1005f93
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x100385e0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
test eax, eax
jne 0x10002198
xor al, al
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10010f62
add esp, 0x108
ret 4
mov cl, byte [eax]
cmp cl, 0x2f
je 0x100021a4
cmp cl, 0x5c
jne 0x100021a5
inc eax
push eax
push 0x1003c440
push 0x1002bd00
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.1001153f
add esp, 0x14
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x104]
cmp eax, 0xffffffff
setne al
xor ecx, esp
call fcn.10010f62
add esp, 0x108
ret 4

Function at 0x10002460
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10023b28
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100385e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
push edi
mov eax, dword [0x100385e0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov esi, ecx
test edi, edi
je 0x10002556
test ebp, ebp
je 0x10002556
push 0x1003bb00
push 4
push ebp
push edi
push str.Stats
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x100024d4
fld dword [ebp]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push ecx
fstp dword [esp]
push edi
mov ecx, esi
call edx
mov eax, edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100024f0
sub eax, edx
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x1c]
call fcn.10003e90
fnstcw word [esp + 0x12]
mov dword [esp + 0x44], 0
fld dword [ebp]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov esi, dword [esp + 0x14]
fldcw word [esp + 0x12]
call fcn.10002970
mov dword [eax], esi
cmp dword [esp + 0x30], 0x10
jb 0x10002552
mov eax, dword [esp + 0x1c]
push eax
call fcn.10010f71
add esp, 4
mov al, 1
jmp 0x10002558
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10010f62
add esp, 0x38
ret 8
Function at 0x10002650
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10023b28
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100385e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
push edi
mov eax, dword [0x100385e0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov esi, ecx
cmp eax, dword [0x1003953c]
jne 0x10002754
mov ecx, dword [esp + 0x50]
cmp ecx, dword [0x10039540]
jne 0x10002754
push 0x1003bb00
push 4
push ebp
push edi
push str.Stats
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x100026d4
fld dword [ebp]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push ecx
fstp dword [esp]
push edi
mov ecx, esi
call eax
mov eax, edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100026f0
sub eax, edx
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x1c]
call fcn.10003e90
fnstcw word [esp + 0x12]
mov dword [esp + 0x44], 0
fld dword [ebp]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov esi, dword [esp + 0x14]
fldcw word [esp + 0x12]
call fcn.10002970
mov dword [eax], esi
cmp dword [esp + 0x30], 0x10
jb 0x10002759
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10010f71
add esp, 4
jmp 0x10002759
fldz
fstp dword [ebp]
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10010f62
add esp, 0x38
ret 0x10
Function at 0x10002780
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10023af8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100385e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100385e0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
cmp eax, dword [0x1003953c]
jne 0x100028ae
mov ecx, dword [esp + 0x54]
cmp ecx, dword [0x10039540]
jne 0x100028ae
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
push 0x1003be98
push 1
push ebp
push edi
push str.State
call esi
xor ebx, ebx
test eax, eax
je 0x10002813
push 0x1003be98
push 4
lea edx, [esp + 0x24]
push edx
push edi
push str.Time
call esi
test eax, eax
setne al
cmp al, bl
jne 0x10002859
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
push 0x1003be98
push 1
lea eax, [esp + 0x1c]
push eax
push edi
push str.State
mov byte [ebp], bl
mov byte [esp + 0x28], bl
call esi
test eax, eax
je 0x10002859
lea ecx, [esp + 0x18]
push ecx
call fcn.100114f1
add esp, 4
push 0x1003be98
push 4
lea edx, [esp + 0x20]
push edx
push edi
push str.Time
call esi
mov eax, edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002870
sub eax, edx
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x20]
call fcn.10003e90
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], ebx
call fcn.10002a90
mov cl, byte [ebp]
mov byte [eax], cl
cmp dword [esp + 0x34], 0x10
jb 0x100028b2
mov edx, dword [esp + 0x20]
push edx
call fcn.10010f71
add esp, 4
jmp 0x100028b2
mov byte [ebp], 0
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10010f62
add esp, 0x38
ret 0x10
Function at 0x10003f90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10023d38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100385e0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x100385e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov esi, ecx
test edi, edi
je 0x10004064
test ebp, ebp
je 0x10004064
push 0x1003bb00
push 4
push ebp
push edi
push str.Stats
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x10004001
mov ecx, dword [ebp]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
push edi
mov ecx, esi
call edx
mov eax, edi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
lea edx, [eax + 1]
jmp 0x10004020
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004020
sub eax, edx
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.10003e90
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.10002970
mov ecx, dword [ebp]
mov dword [eax], ecx
cmp dword [esp + 0x24], 0x10
jb 0x10004060
mov edx, dword [esp + 0x10]
push edx
call fcn.10010f71
add esp, 4
mov al, 1
jmp 0x10004066
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10010f62
add esp, 0x2c
ret 8

Function at 0x10004250
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10023d38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100385e0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x100385e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov esi, ecx
cmp eax, dword [0x1003953c]
jne 0x10004332
mov ecx, dword [esp + 0x44]
cmp ecx, dword [0x10039540]
jne 0x10004332
push 0x1003bb00
push 4
push ebp
push edi
push str.Stats
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x100042d1
mov eax, dword [ebp]
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
push edi
mov ecx, esi
call edx
mov eax, edi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
lea edx, [eax + 1]
jmp 0x100042f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100042f0
sub eax, edx
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.10003e90
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.10002970
mov ecx, dword [ebp]
mov dword [eax], ecx
cmp dword [esp + 0x24], 0x10
jb 0x10004339
mov edx, dword [esp + 0x10]
push edx
call fcn.10010f71
add esp, 4
jmp 0x10004339
mov dword [ebp], 0
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10010f62
add esp, 0x2c
ret 0x10
Function at 0x10004360
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10023d08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100385e0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100385e0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x18], eax
cmp ecx, dword [0x1003953c]
jne 0x10004494
mov edx, dword [esp + 0x50]
cmp edx, dword [0x10039540]
jne 0x10004494
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
push 0x1003be98
push 1
push ebp
push edi
push str.State
call esi
xor ebx, ebx
test eax, eax
je 0x100043fb
mov eax, dword [esp + 0x18]
push 0x1003be98
push 4
push eax
push edi
push str.Time
call esi
test eax, eax
setne al
cmp al, bl
jne 0x10004441
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
push 0x1003be98
push 1
lea ecx, [esp + 0x1c]
push ecx
push edi
push str.State
mov byte [ebp], bl
mov byte [esp + 0x28], bl
call esi
test eax, eax
je 0x10004441
lea edx, [esp + 0x18]
push edx
call fcn.100114f1
add esp, 4
push 0x1003be98
push 4
lea eax, [esp + 0x20]
push eax
push edi
push str.Time
call esi
mov eax, edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10004456
sub eax, edx
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x1c]
call fcn.10003e90
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], ebx
call fcn.10002a90
mov cl, byte [ebp]
mov byte [eax], cl
cmp dword [esp + 0x30], 0x10
jb 0x10004498
mov edx, dword [esp + 0x1c]
push edx
call fcn.10010f71
add esp, 4
jmp 0x10004498
mov byte [ebp], 0
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10010f62
add esp, 0x34
ret 0x14
Function at 0x10004610
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x10023d38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100385e0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x100385e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
push 0x1003bb00
push 4
push ebp
push edi
push str.Stats
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x1000466f
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push 0
push edi
mov ecx, esi
call edx
mov eax, edi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004690
sub eax, edx
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.10003e90
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.10002970
mov ecx, dword [ebp]
mov dword [eax], ecx
cmp dword [esp + 0x24], 0x10
jb 0x100046d0
mov edx, dword [esp + 0x10]
push edx
call fcn.10010f71
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10010f62
add esp, 0x2c
ret 8

Function at 0x10004ac0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0xc]
push eax
push 0x40
push 5
push esi
call edi
mov ecx, dword [0x100394d0]
mov dword [esi], ecx
mov ecx, dword [esp + 0xc]
mov dl, byte [0x100394d4]
lea eax, [esp + 0xc]
push eax
push ecx
push 5
push esi
mov byte [esi + 4], dl
call edi
pop edi
mov byte [0x1003b800], 1
pop esi
ret
Function at 0x100050a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0xffffffffffffffff
push 0x10023a3f
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100385e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor esi, esi
push 0x24
mov dword [esp + 0x20], 0x1003c550
mov dword [0x1003c558], esi
call fcn.10011108
add esp, 4
cmp eax, esi
je 0x100052b1
mov dword [0x1003c554], eax
mov dword [eax], eax
mov eax, dword [0x1003c554]
mov dword [eax + 4], eax
mov eax, dword [0x1003c554]
mov dword [eax + 8], eax
mov eax, dword [0x1003c554]
mov bl, 1
mov byte [eax + 0x20], bl
mov ecx, dword [0x1003c554]
mov byte [ecx + 0x21], bl
mov dword [esp + 0x40], esi
push 0x14
mov dword [0x1003c568], esi
call fcn.10011108
add esp, 4
cmp eax, esi
je 0x10005288
mov dword [0x1003c564], eax
mov dword [eax], eax
mov eax, dword [0x1003c564]
mov dword [eax + 4], eax
mov eax, dword [0x1003c564]
mov dword [eax + 8], eax
mov edx, dword [0x1003c564]
mov byte [edx + 0x10], bl
mov eax, dword [0x1003c564]
mov byte [eax + 0x11], bl
mov byte [esp + 0x40], bl
push 0x24
mov dword [0x1003c578], esi
call fcn.10011108
add esp, 4
cmp eax, esi
je 0x1000525f
mov dword [0x1003c574], eax
mov dword [eax], eax
mov eax, dword [0x1003c574]
mov dword [eax + 4], eax
mov eax, dword [0x1003c574]
mov dword [eax + 8], eax
mov ecx, dword [0x1003c574]
mov byte [ecx + 0x20], bl
mov edx, dword [0x1003c574]
mov byte [edx + 0x21], bl
mov dword [0x1003c584], 0x19
mov byte [0x1003c588], bl
mov dword [0x1003c58c], 0x10028910
push 0x40
push 0x1000
push 0x1000
mov byte [esp + 0x4c], 3
push esi
mov byte [0x1003c590], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1003c580], eax
cmp eax, esi
jne 0x10005202
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], str.Unable_to_allocate_trampoline_memory_
call fcn.10011004
push 0x1002ecc0
lea ecx, [esp + 0x30]
push ecx
call fcn.1001267f
mov edi, eax
add eax, 0x1000
mov dword [esp + 0x10], edi
cmp edi, eax
jae 0x10005247
lea edx, [esp + 0x10]
push edx
mov esi, 0x1003c560
call fcn.10006d90
push eax
lea esi, [esp + 0x18]
mov eax, 0x1003c560
call fcn.100066f0
add edi, dword [0x1003c584]
mov eax, dword [0x1003c580]
add eax, 0x1000
mov dword [esp + 0x10], edi
cmp edi, eax
jb 0x10005211
mov eax, 0x1003c550
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], esi
call fcn.10011004
push 0x1002eca8
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call fcn.1001267f
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], esi
call fcn.10011004
push 0x1002eca8
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], vtable.std::bad_alloc.0
call fcn.1001267f
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], esi
call fcn.10011004
push 0x1002eca8
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call fcn.1001267f
int3