joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52cde0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5dea3b
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x334], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x34c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x35c]
mov eax, dword [esp + 0x360]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, 0xf
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp eax, ebx
mov dword [esp + 0x354], ebx
mov byte [esp + 0x140], bl
je 0x52cf92
lea eax, [esp + 0x140]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x52cf92
mov cx, word [0x603990]
mov dl, byte [0x603992]
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
xor edi, edi
lea ebp, [esp + 0x140]
jmp 0x52cea0
mov al, byte [ebp]
push 0x104
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x20], al
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x52cf51
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
jmp 0x52ced0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x52ced0
sub eax, edx
mov esi, eax
cmp esi, 0x104
jae 0x52cf4d
mov ecx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.005bfdcd
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
inc edi
je 0x52cf4d
mov edx, dword [esp + 0x18]
add edx, esi
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24c]
push 0x603988
push ecx
call fcn.005bd49b
lea eax, [esp + 0x254]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x52cf30
sub eax, edx
push eax
lea edx, [esp + 0x248]
push edx
lea ecx, [esp + 0x28]
call fcn.00408ea0
mov esi, dword [esp + 0x1c]
mov al, byte [ebp]
add ebp, 1
test al, al
jne 0x52cf51
cmp edi, ebx
jne 0x52cf68
cmp byte [ebp], bl
jne 0x52cea0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00407630
cmp dword [esp + 0x38], 0x10
jb 0x52cfbe
mov edx, dword [esp + 0x24]
push edx
jmp 0x52cfb6
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00407630
cmp dword [esp + 0x38], 0x10
jb 0x52cfbe
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005a1b1d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x344
ret
Function at 0x52fee0
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, ecx
je 0x52ffc6
cmp byte [eax], 0
je 0x52ffc6
cmp dword [esi + 0xc], 0
jne 0x52ff04
call fcn.0052f830
mov eax, dword [esi + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ebx, [esi + 4]
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], 1
lea ecx, [ecx]
cmp ebx, ebx
mov esi, dword [ebx + 4]
je 0x52ff2c
call fcn.005bdf65
cmp edi, esi
je 0x52ffba
cmp edi, dword [ebx + 4]
jne 0x52ff3e
call fcn.005bdf65
mov esi, dword [edi + 8]
cmp dword [esi + 0x1c], 0x10
jb 0x52ff4c
mov eax, dword [esi + 8]
jmp 0x52ff4f
lea eax, [esi + 8]
mov ecx, dword [esp + 0x18]
push ecx
push eax
call fcn.005be4ae
add esp, 8
test eax, eax
je 0x52ff81
cmp dword [esi + 0x38], 0x10
jb 0x52ff6c
mov eax, dword [esi + 0x24]
jmp 0x52ff6f
lea eax, [esi + 0x24]
mov edx, dword [esp + 0x18]
push edx
push eax
call fcn.005be4ae
add esp, 8
test eax, eax
jne 0x52ffa9
mov eax, dword [esi]
push eax
push 0
push 1
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x52ffa2
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x52ffa2
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [ebx + 4]
jne 0x52ffb3
call fcn.005bdf65
mov edi, dword [edi]
jmp 0x52ff20
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x52ffd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5df0a6
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov esi, dword [esp + 0xfc]
xor eax, eax
mov dword [esi], eax
lea ecx, [esp + 0x14]
xor ebx, ebx
mov dword [esi + 4], eax
call fcn.0052d7b0
lea ecx, [esp + 0x14]
mov dword [esp + 0xf4], ebx
call fcn.0052f830
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
lea ebp, [ebx + 0xf]
lea ecx, [ecx]
cmp edi, dword [esp + 0x1c]
je 0x530125
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov edx, dword [edi + 8]
mov eax, dword [edx]
lea ecx, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfc], 1
call fcn.0052f640
test eax, eax
je 0x530103
cmp dword [esi + 4], ebx
jne 0x5300e6
cmp dword [esi], ebx
je 0x5300f6
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x530103
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 4], edx
mov dword [esi], ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf4], bl
call fcn.00415560
cmp edi, dword [esp + 0x1c]
jne 0x53011e
call fcn.005bdf65
mov edi, dword [edi]
jmp 0x530040
cmp dword [esi + 4], ebx
jne 0x530150
cmp dword [esi], ebx
jne 0x530150
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], vtable.BaseLib::TPointerContainer_class_std::list_struct_BaseLib::_tag_process_info___class_std::allocator_struct_BaseLib::_tag_process_info____.0
call fcn.004157b0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0041f670
xor eax, eax
jmp 0x5301a3
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x18], vtable.BaseLib::TPointerContainer_class_std::list_struct_BaseLib::_tag_process_info___class_std::allocator_struct_BaseLib::_tag_process_info____.0
call fcn.004157b0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x20], ebx
je 0x530195
mov esi, dword [eax]
push eax
call fcn.005a1b1d
mov ecx, dword [esp + 0x20]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x530180
push ecx
call fcn.005a1b1d
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.005bd2d7
add esp, 0xe4
ret
Function at 0x531be0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5df2ab
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x66d4f4]
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.00536c30
lea ecx, [esi + 0x3c]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call fcn.00521f80
lea ecx, [esi + 0x68]
mov dword [esp + 0x18], edi
call fcn.00521f80
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 0x531c70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5df2ab
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x66d4f4]
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.00536c30
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.00521f80
lea ecx, [esi + 0x68]
mov dword [esp + 0x18], edi
call fcn.00521f80
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 0x531ec0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5df321
mov eax, dword fs:[0]
push eax
mov eax, 0x10c0
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x10bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
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 0x5320d4
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x531f30
cmp dword [eax], 0
jne 0x532103
mov edi, 0x1000
cmp esi, edi
jae 0x531f3b
mov edi, esi
mov ecx, dword [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0xd8]
push edi
push edx
call fcn.005be7ff
add esp, 0x10
cmp dword [esp + 0x10ec], 0
je 0x531f73
lea eax, [esp + 0xd0]
push edi
push eax
call fcn.00514140
add esp, 8
jmp 0x532082
cmp dword [ebx + 0x9c], 0
je 0x532082
push 1
push 2
lea ecx, [esp + 0x58]
call fcn.0040a750
mov ecx, dword [ebx + 0x9c]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x10e0], 0
call fcn.00419990
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x54]
call fcn.00408c00
mov esi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x10e0], 1
call fcn.00408c00
cmp dword [eax + 0x18], 0x10
mov esi, dword [esi + 0x14]
mov byte [esp + 0x10dc], 2
jb 0x531fe4
mov eax, dword [eax + 4]
jmp 0x531fe7
add eax, 4
push edi
lea ecx, [esp + 0xd4]
push ecx
push esi
push eax
call fcn.00537370
add esp, 0x10
cmp dword [esp + 0x4c], 0x10
jb 0x53200e
mov edx, dword [esp + 0x38]
push edx
call fcn.005a1b1d
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 0x532038
mov eax, dword [esp + 0x1c]
push eax
call fcn.005a1b1d
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.00409510
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xa0], vtable.std::ios_base.0
call fcn.005d9cc4
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 0x532103
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 0x5320cc
push 1
call fcn.0050f450
add esp, 4
test esi, esi
ja 0x531f1d
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.005bd2d7
add esp, 0x10cc
ret 0xc
xor eax, eax
jmp 0x5320d9
Function at 0x533700
Capabilities:
Manipulate safe mode programs

Disassembly:
push 0xffffffffffffffff
push 0x5df588
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
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 0x533760
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x533760
push 0x32
sub eax, edx
push str.SYSTEMCurrentControlSetControlSafeBootMinimal_
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.00408ea0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x533782
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004078e0
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x5337a7
lea eax, [esp + 0x14]
push 1
push edi
push ebp
push 1
push 0x63a990
push eax
push reloc.WS2_32.dll_bind
call fcn.00508170
add esp, 0x1c
test eax, eax
jne 0x5337df
cmp dword [esp + 0x28], 0x10
jb 0x5337d8
mov eax, dword [esp + 0x14]
push eax
call fcn.005a1b1d
add esp, 4
xor eax, eax
jmp 0x533869
push 0x32
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
lea ecx, [esp + 0x18]
call fcn.00408ea0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5337f4
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004078e0
mov eax, dword [esp + 0x14]
mov esi, 0x10
cmp dword [esp + 0x28], esi
jae 0x53381d
lea eax, [esp + 0x14]
push 1
push edi
push ebp
push 1
push 0x63a990
push eax
push reloc.WS2_32.dll_bind
call fcn.00508170
add esp, 0x1c
test eax, eax
jne 0x533851
cmp dword [esp + 0x28], esi
jb 0x5337d8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005a1b1d
add esp, 4
xor eax, eax
jmp 0x533869
cmp dword [esp + 0x28], esi
jb 0x533864
mov edx, dword [esp + 0x14]
push edx
call fcn.005a1b1d
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.005bd2d7
add esp, 0x2c
ret 8
Function at 0x533890
Capabilities:
Manipulate safe mode programs

Disassembly:
push 0xffffffffffffffff
push 0x5df5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x66d4f4]
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.00408ea0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5338f5
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.004078e0
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x53391a
lea eax, [esp + 0xc]
push 1
push eax
push reloc.WS2_32.dll_bind
call fcn.00507680
add esp, 0xc
push 0x32
push str.SYSTEMCurrentControlSetControlSafeBootNetwork_
lea ecx, [esp + 0x10]
call fcn.00408ea0
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x533940
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.004078e0
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x533965
lea eax, [esp + 0xc]
push 1
push eax
push reloc.WS2_32.dll_bind
call fcn.00507680
add esp, 0xc
cmp dword [esp + 0x20], 0x10
jb 0x533989
mov eax, dword [esp + 0xc]
push eax
call fcn.005a1b1d
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.005bd2d7
add esp, 0x2c
ret 4
Function at 0x534300
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x5df701
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push esi
push edi
mov eax, dword [0x66d4f4]
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 0x53435e
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
jmp 0x534458
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 0x534387
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or eax, 0xffffffff
jmp 0x534458
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x53444a
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.0040a750
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.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x30]
call fcn.00408c00
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0xb4], 2
jb 0x5343ec
mov eax, dword [eax + 4]
jmp 0x5343ef
add eax, 4
push eax
push str.BaseLib::CNTServiceManager::Delete
push 0x23e
push str..commonNTServiceManager.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x28], 0x10
jb 0x534424
mov eax, dword [esp + 0x14]
push eax
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 0
call fcn.00409510
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.005d9cc4
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 0x5344b0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x5df738
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x66d4f4]
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 0x534580
lea eax, [esp + 0x10]
push eax
call fcn.00515ac0
push str.fileprotectdll.dll
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x64], ebx
call fcn.004041b0
mov edi, 0x10
add esp, 0x10
cmp dword [esp + 0x28], edi
mov dword [esp + 0x54], 0xffffffff
jb 0x534530
mov edx, dword [esp + 0x14]
push edx
call fcn.005a1b1d
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 0x53454e
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [esp + 0x44], edi
mov dword [esi], eax
jb 0x53456a
mov eax, dword [esp + 0x30]
push eax
call fcn.005a1b1d
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 0x5345f1
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 0x5345f5
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x5345f7
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.005bd2d7
add esp, 0x48
ret

Function at 0x534b20
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 0x534b5b
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 0x534b5d
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 0x534ee0
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 0x534f61
push str.FLAG
push 0x605228
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x534f5a
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x534f59
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, 0x605220
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x534f30
sub ecx, edi
push ecx
push 0x605220
push eax
call fcn.005c1e85
add esp, 0xc
test eax, eax
pop edi
jne 0x534f52
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 0x534f70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5df836
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x66d4f4]
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.00531c70
mov ecx, edi
mov dword [esp + 0x18], 0
mov dword [esi], vtable.BaseLib::CNetStream.0
call fcn.00522150
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esi + 0xd8]
mov byte [esp + 0x20], 1
call fcn.00523670
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14