joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ea30
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5d293b
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov esi, dword [esp + 0x434]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push reloc.WS2_32.dll_bind
mov dword [esp + 0x440], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x51eb54
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push str.MHz
push ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x10], 4
jne 0x51eb4c
cmp eax, ebx
jne 0x51eb4c
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push 0x5f3f68
push edx
call fcn.004c7620
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x51eb00
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00409790
cmp ebp, ebx
je 0x51eb23
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.005b1988
add esp, 0x420
ret 4
push ebx
push 0x62b600
jmp 0x51eb11
push ebx
push 0x62b600
mov ecx, esi
call fcn.00409790
jmp 0x51eb23

Function at 0x51eb70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x204
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
mov esi, dword [esp + 0x20c]
mov dword [esp + 8], 0x1f4
mov dword [esp + 0xc], 1
call fcn.004ff5a0
neg eax
sbb eax, eax
and eax, 0xd0126
lea ecx, [esp + 4]
push ecx
add eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51ec0f
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51ec0f
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x51ebf7
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00409790
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x204]
pop esi
xor ecx, esp
call fcn.005b1988
add esp, 0x204
ret 4
Function at 0x51f5a0
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d29fb
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov edi, dword [esp + 0x158]
xor eax, eax
push 0x9c
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x5c]
push ebx
push eax
call fcn.005b5540
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, ebx
je 0x51f78b
push str.GetNativeSystemInfo
push 0x5f4994
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x51f65b
lea edx, [esp + 0x14]
push edx
call eax
jmp 0x51f666
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x68], 2
jne 0x51f792
cmp dword [esp + 0x5c], 4
jbe 0x51f792
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x154], ebx
call fcn.0051ed40
mov edx, dword [esp + 0x44]
add esp, 4
cmp dword [esp + 0x54], 0x10
jae 0x51f6af
lea edx, [esp + 0x40]
mov esi, 0x100
mov eax, edi
sub edx, edi
jmp 0x51f6c0
lea ecx, [esi + 0x7ffffefe]
test ecx, ecx
je 0x51f6dd
mov cl, byte [edx + eax]
cmp cl, bl
je 0x51f6dd
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x51f6c0
jmp 0x51f6e1
cmp esi, ebx
jne 0x51f6e4
sub eax, 1
mov byte [eax], bl
lea eax, [esp + 0x6c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x51f6f0
sub eax, edx
je 0x51f71d
push 0x5f42a4
push 0x100
push edi
call fcn.0051d280
lea edx, [esp + 0x6c]
push edx
push 0x100
push edi
call fcn.0051d280
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
call fcn.004ff3b0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
jbe 0x51f748
push eax
push str.__build__d_
push 0x50
lea ecx, [esp + 0x100]
push ecx
jmp 0x51f75c
mov edx, dword [esp + 0x64]
push edx
push str.__build__d_
push 0x50
lea eax, [esp + 0x100]
push eax
call fcn.0051d320
add esp, 0x10
lea ecx, [esp + 0xf4]
push ecx
push 0x100
push edi
call fcn.0051d280
cmp dword [esp + 0x54], 0x10
jb 0x51f78b
mov edx, dword [esp + 0x40]
push edx
call fcn.00595eb8
add esp, 4
mov eax, 1
jmp 0x51f794
xor eax, eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.005b1988
add esp, 0x144
ret
Function at 0x521c60
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x5d2f96
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
call fcn.004ff4a0
test eax, eax
jne 0x521cc5
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xf4]
shr ecx, 0x14
mov dword [edx], ecx
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
call fcn.0041aef0
mov eax, dword [eax + 0x15c]
test eax, eax
jne 0x521db7
push 1
push 2
lea ecx, [esp + 0x6c]
call fcn.0040b040
lea eax, [esp + 0x64]
push 0x5f6fd0
push eax
mov dword [esp + 0xf4], 0
call fcn.00409b60
add esp, 8
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x68]
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xec], 1
jb 0x521d23
mov eax, dword [eax + 4]
jmp 0x521d26
add eax, 4
push eax
push str.BaseLib::CBaseInfo::GetPhyMemerySize
push 0x8e5
push str..ywSMPpubBaseInfo.cpp
push 0
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x1c], 0x10
jb 0x521d58
mov edx, dword [esp + 8]
push edx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
mov dword [esp + 0xec], 0xffffffff
call fcn.00409e00
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0x40
call eax
test eax, eax
mov edx, dword [esp + 0xf4]
jne 0x521deb
mov dword [edx], eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [edx], eax
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xec
ret 4
Function at 0x526500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5d35bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push 0x3c
lea ecx, [esi + 0x28]
mov dword [esi], vtable.BaseLib::CClientSession.0
mov dword [esi + 0x24], eax
call fcn.0052b120
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call fcn.0050a090
lea ecx, [esi + 0x68]
mov dword [esp + 0x18], edi
call fcn.0050a090
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x526590
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5d35bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push 0x3c
lea ecx, [esi + 0x28]
mov dword [esi], vtable.BaseLib::CClientSession.0
mov dword [esi + 0x24], eax
call fcn.0052b120
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
call fcn.0050a090
lea ecx, [esi + 0x68]
mov dword [esp + 0x18], edi
call fcn.0050a090
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x5267e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d3631
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.005b6f10
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x10bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10d4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x10e8]
mov eax, dword [esp + 0x10e4]
xor ebp, ebp
test esi, esi
mov ebx, ecx
mov dword [esp + 0x14], eax
jbe 0x5269f4
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x526850
cmp dword [eax], 0
jne 0x526a23
mov edi, 0x1000
cmp esi, edi
jae 0x52685b
mov edi, esi
mov ecx, dword [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0xd8]
push edi
push edx
call fcn.005b2836
add esp, 0x10
cmp dword [esp + 0x10ec], 0
je 0x526893
lea eax, [esp + 0xd0]
push edi
push eax
call fcn.0051ade0
add esp, 8
jmp 0x5269a2
cmp dword [ebx + 0x9c], 0
je 0x5269a2
push 1
push 2
lea ecx, [esp + 0x58]
call fcn.0040b040
mov ecx, dword [ebx + 0x9c]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x10e0], 0
call fcn.004024e0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x54]
call fcn.004094f0
mov esi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x10e0], 1
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov esi, dword [esi + 0x14]
mov byte [esp + 0x10dc], 2
jb 0x526904
mov eax, dword [eax + 4]
jmp 0x526907
add eax, 4
push edi
lea ecx, [esp + 0xd4]
push ecx
push esi
push eax
call fcn.00531cf0
add esp, 0x10
cmp dword [esp + 0x4c], 0x10
jb 0x52692e
mov edx, dword [esp + 0x38]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x30], 0x10
mov esi, 0xf
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
jb 0x526958
mov eax, dword [esp + 0x1c]
push eax
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x9c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x10dc], 0xffffffff
call fcn.00409e00
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xa0], vtable.std::ios_base.0
call fcn.005cdcde
mov esi, dword [esp + 0x10ec]
add esp, 4
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
push edi
lea eax, [esp + 0xd4]
push eax
mov ecx, ebx
call edx
test eax, eax
jle 0x526a23
add ebp, 1
mov eax, 0x66666667
imul ebp
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub esi, edi
add eax, eax
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x10e8], esi
jne 0x5269ec
push 1
call fcn.00507ad0
add esp, 4
test esi, esi
ja 0x52683d
mov eax, 1
mov ecx, dword [esp + 0x10d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10bc]
xor ecx, esp
call fcn.005b1988
add esp, 0x10cc
ret 0xc
xor eax, eax
jmp 0x5269f9
Function at 0x528020
Capabilities:
Manipulate safe mode programs

Disassembly:
push 0xffffffffffffffff
push 0x5d3898
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov eax, ebp
mov dword [esp + 0x38], 0
lea edx, [eax + 1]
jmp 0x528080
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x528080
push 0x32
sub eax, edx
push str.SYSTEMCurrentControlSetControlSafeBootMinimal_
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00409790
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5280a2
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004080f0
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x5280c7
lea eax, [esp + 0x14]
push 1
push edi
push ebp
push 1
push 0x62b600
push eax
push reloc.WS2_32.dll_bind
call fcn.005007f0
add esp, 0x1c
test eax, eax
jne 0x5280ff
cmp dword [esp + 0x28], 0x10
jb 0x5280f8
mov eax, dword [esp + 0x14]
push eax
call fcn.00595eb8
add esp, 4
xor eax, eax
jmp 0x528189
push 0x32
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
lea ecx, [esp + 0x18]
call fcn.00409790
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x528114
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004080f0
mov eax, dword [esp + 0x14]
mov esi, 0x10
cmp dword [esp + 0x28], esi
jae 0x52813d
lea eax, [esp + 0x14]
push 1
push edi
push ebp
push 1
push 0x62b600
push eax
push reloc.WS2_32.dll_bind
call fcn.005007f0
add esp, 0x1c
test eax, eax
jne 0x528171
cmp dword [esp + 0x28], esi
jb 0x5280f8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00595eb8
add esp, 4
xor eax, eax
jmp 0x528189
cmp dword [esp + 0x28], esi
jb 0x528184
mov edx, dword [esp + 0x14]
push edx
call fcn.00595eb8
add esp, 4
mov eax, 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.005b1988
add esp, 0x2c
ret 8
Function at 0x5281b0
Capabilities:
Manipulate safe mode programs

Disassembly:
push 0xffffffffffffffff
push 0x5d38c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
push 0x32
push str.SYSTEMCurrentControlSetControlSafeBootMinimal_
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
call fcn.00409790
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x528215
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.004080f0
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x52823a
lea eax, [esp + 0xc]
push 1
push eax
push reloc.WS2_32.dll_bind
call fcn.005000b0
add esp, 0xc
push 0x32
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
lea ecx, [esp + 0x10]
call fcn.00409790
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x528260
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.004080f0
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x528285
lea eax, [esp + 0xc]
push 1
push eax
push reloc.WS2_32.dll_bind
call fcn.005000b0
add esp, 0xc
cmp dword [esp + 0x20], 0x10
jb 0x5282a9
mov eax, dword [esp + 0xc]
push eax
call fcn.00595eb8
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005b1988
add esp, 0x2c
ret 4
Function at 0x528c20
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x5d3a11
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
mov dword [esp + 0xb4], 0
jne 0x528c7e
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
jmp 0x528d78
mov eax, dword [esp + 0xbc]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x528ca7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
jmp 0x528d78
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x528d6a
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.0040b040
mov byte [esp + 0xb4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
push str.DeleteService_Fail:
push ecx
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x30]
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xb4], 2
jb 0x528d0c
mov eax, dword [eax + 4]
jmp 0x528d0f
add eax, 4
push eax
push str.BaseLib::CNTServiceManager::Delete
push 0x23e
push str..commonNTServiceManager.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x28], 0x10
jb 0x528d44
mov eax, dword [esp + 0x14]
push eax
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 0
call fcn.00409e00
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor eax, eax
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xac
ret 4
Function at 0x528dd0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x5d3a48
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x528ea0
lea eax, [esp + 0x10]
push eax
call fcn.00514b80
push str.fileprotectdll.dll
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x64], ebx
call fcn.00404a60
mov edi, 0x10
add esp, 0x10
cmp dword [esp + 0x28], edi
mov dword [esp + 0x54], 0xffffffff
jb 0x528e50
mov edx, dword [esp + 0x14]
push edx
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jae 0x528e6e
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [esp + 0x44], edi
mov dword [esi], eax
jb 0x528e8a
mov eax, dword [esp + 0x30]
push eax
call fcn.00595eb8
add esp, 4
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
je 0x528f11
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FpOpen
push eax
call edi
mov ecx, dword [esi]
push str.FpSetProtectFile
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.FpSetProtectFileA
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.FpSetWhiteProcess
push eax
call edi
mov ecx, dword [esi]
push str.FpSetWhiteProcessA
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.FpReset
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push str.FpStartProtectLog
push eax
call edi
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x528f15
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x528f17
call esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005b1988
add esp, 0x48
ret

Function at 0x529440
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push eax
push 0
push 1
mov bl, 1
mov dword [esp + 0x14], 4
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x52947b
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x52947d
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ecx
ret 4
Function at 0x529800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push 2
xor ebp, ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
je 0x529881
push str.FLAG
push 0x5f8090
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x52987a
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x529879
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, 0x5f8088
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x529850
sub ecx, edi
push ecx
push 0x5f8088
push eax
call fcn.005b6c36
add esp, 0xc
test eax, eax
pop edi
jne 0x529872
lea ebp, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x529890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5d3b46
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea edi, [esi + 0xa0]
push edi
mov ecx, esi
call fcn.00526590
mov ecx, edi
mov dword [esp + 0x18], 0
mov dword [esi], vtable.BaseLib::CNetStream.0
call fcn.0050a230
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esi + 0xac]
mov byte [esp + 0x20], 1
call fcn.0050b6e0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14