joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41ea7c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add edx, edx
inc edx
test edx, edx
js 0x41ea98
mov ecx, dword [eax + edx*4]
dec edx
push ecx
jns 0x41ea91
mov dword [ebp + 0x10], esp
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea ebx, [ecx + 1]
mov eax, ebx
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ebx, ebx
jle 0x41ead2
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp ebx, 1
jle 0x41eaf9
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp ebx, 2
jle 0x41eb20
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
cmp ebx, 3
jle 0x41eb47
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [esi + 0x20]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 8], eax
mov word [ebp - 2], 0
mov word [ebp - 2], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call fcn.0041eb87

Function at 0x41ec1c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 8], 0
je 0x41ec8d
cmp dword [ebp + 0x10], 0
jne 0x41ec32
cmp dword [ebp + 0xc], 0
je 0x41ec8d
cmp dword [ebp + 0x14], 0
je 0x41ec8d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x33
call fcn.0041ec4d
pop ecx
pop ecx
pop ebp
ret

Function at 0x41ec94
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor ecx, ecx
cmp dword [ebp + 8], 0
je 0x41ed18
cmp dword [ebp + 0x10], 0
jne 0x41ecac
cmp dword [ebp + 0xc], 0
je 0x41ed18
cmp dword [ebp + 0x14], 0
je 0x41ed18
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x33
call 0x41eccb
add dword [esp], 5
retf
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x41ed20
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x33
call fcn.0041ed3b
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x43c9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x43dd6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x45b73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x45b73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x45a538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43dd72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x403830
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x34], 0
je 0x403853
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
call fcn.0054a020
add esp, 0xc
pop esi
ret 0xc
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
jbe 0x403931
push ebp
mov ebp, dword [esp + 0x14]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push edi
lea esp, [esp]
cmp dword [esi + 8], 0
jne 0x4038ac
mov eax, dword [esi + 0x30]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x20]
push edx
push 0x10000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403936
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403952
mov edx, dword [esi + 0x30]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
cmp dword [esi + 0x38], 0
je 0x4038e4
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 8]
cmp edi, eax
jbe 0x4038be
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x14]
push edi
push eax
push ecx
call fcn.00549cb0
add dword [esi + 4], edi
add dword [esi + 0x14], edi
sub dword [esi + 8], edi
add esp, 0xc
sub dword [esi + 0x18], edi
jne 0x403870
pop edi
pop ebp
pop ebx
pop esi
ret 0xc
lea edx, [esi + 4]
push edx
call fcn.0052aab0
test eax, eax
je 0x4038f6
cmp eax, 4
jne 0x403972
cmp dword [esi + 0x18], 0
je 0x40392f
cmp eax, 4
jne 0x403870
push eax
push str.BZ2_bzDecompress__:__d:_Unexpected_EOF_in_decompression_stream._n
call fcn.0048f080
add esp, 8
lea eax, [esi + 4]
push eax
call fcn.0052aba0
push ebx
push 0
push ebp
mov dword [esi + 0x34], 1
call fcn.0054a020
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile__:__d:_Failed_to_read._n
call fcn.0048f080
add esp, 8
cmp dword [esi + 0x38], 0
jne 0x40391c
jmp 0x403913
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile__:__d:_Failed_to_read._n
call fcn.0048f080
add esp, 8
cmp dword [esi + 0x38], 0
jne 0x40391c
lea ecx, [esi + 4]
push ecx
jmp 0x403917
push eax
push str.BZ2_bzDecompress__:__d:_Failed_to_decompress._n
call fcn.0048f080
add esp, 8
lea edx, [esi + 4]
push edx
jmp 0x403917
Function at 0x404170
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x404243
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push ebp
push esi
push 0x20
push str.Everything_Client
push edi
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4041bd
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebp
push 0x10000
push str.Everything_Client
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40420b
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4041fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1050]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
je 0x404238
call esi
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
pop edi
add esp, 0x1c
ret

Function at 0x404270
Capabilities:
Start service

Disassembly:
push ebx
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x404314
push ebp
push esi
push 0x10
push str.Everything_Client
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4042eb
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4042e1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x420
je 0x4042e0
call edi
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1048]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
pop edi
push esi
call ebp
push ebx
call ebp
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
push ebx
call ebp
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
pop ebx
ret
Function at 0x404340
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4043f3
push ebp
push esi
push 0x20
push str.Everything_Client
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4043c7
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4043ba
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x426
je 0x4043b9
call ebx
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x104c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
pop ebx
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x103c]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
push edi
call ebp
pop esi
pop ebp
pop edi
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
pop edi
add esp, 0x1c
ret
Function at 0x404420
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x438
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x434], eax
push edi
call fcn.00404170
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x404565
push ebx
push esi
lea eax, [esp + 0xc]
push eax
call fcn.00523650
lea ecx, [esp + 0x11c]
push ecx
call fcn.00523650
lea edx, [esp + 0x22c]
push edx
call fcn.00523650
push 0
lea eax, [esp + 0x10]
push eax
call fcn.004ad650
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x120]
push str.__s___client_svc
push edx
call fcn.00524440
mov eax, dword [esp + 0x130]
add esp, 0xc
push eax
lea ecx, [esp + 0x230]
push ecx
call fcn.005277c0
mov edx, dword [esp + 0x234]
push 0
push 0
push 0
push 0
push 0
push edx
push 0
push 2
push 0x10
push 2
push str.Everything_Client
push str.Everything_Client
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4044f2
call fcn.00404270
push esi
call ebx
jmp 0x404526
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
jne 0x404508
call fcn.00404270
jmp 0x404526
call esi
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1040]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
push edi
call ebx
lea eax, [esp + 0x22c]
push eax
call fcn.00527550
lea ecx, [esp + 0x11c]
push ecx
call fcn.00527550
lea edx, [esp + 0xc]
push edx
call fcn.00527550
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.00549930
add esp, 0x438
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x58eeec]
mov ecx, dword [eax + 0x1044]
mov edx, dword [eax]
push ecx
push edx
push 0x10
push 0
call fcn.004aa1b0
mov ecx, dword [esp + 0x44c]
add esp, 0x14
pop edi
xor ecx, esp
call fcn.00549930
add esp, 0x438
ret

Function at 0x404930
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x230
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov esi, dword [esp + 0x238]
lea eax, [esp + 0x10]
push eax
call fcn.00523650
lea ecx, [esp + 0x120]
push ecx
call fcn.00523650
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00523fd0
push esi
call fcn.005240c0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 4]
lea eax, [esp + 0x120]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
call fcn.00404600
test eax, eax
je 0x4049b4
mov eax, dword [esp + 4]
push eax
call fcn.005220a0
push eax
push esi
call fcn.00523f80
lea ecx, [esp + 0x120]
push ecx
call fcn.00527550
lea edx, [esp + 0x10]
push edx
call fcn.00527550
mov ecx, dword [esp + 0x230]
pop esi
xor ecx, esp
call fcn.00549930
add esp, 0x230
ret 4
Function at 0x48e470
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x48e485
mov dword [esp + 4], eax
jmp fcn.004a6420
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx]
push eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [ecx + 0x2d8]
push eax
push edx
call fcn.004b9880
ret 0x14

Function at 0x48e500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x48e515
mov dword [esp + 4], eax
jmp fcn.004b5d00
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx]
push eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [ecx + 0x2d8]
push eax
push edx
call fcn.004b98d0
ret 0x14
Function at 0x48f0c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x114
mov eax, dword [0x597fb8]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
call fcn.00523650
lea ecx, [esp]
push ecx
call fcn.00525420
push str.Everything_n
call fcn.0048f080
mov edx, dword [esp + 0xc]
push edx
push str.Version__s_n
call fcn.0048f080
add esp, 0xc
cmp byte [0x5991a0], 0
mov eax, 0x558b98
jne 0x48f115
mov eax, 0x551656
mov ecx, dword [0x5991a8]
mov edx, dword [0x5991a4]
push ecx
push edx
push eax
push str.Windows_s__d._d_n
call fcn.0048f080
mov eax, dword [0x5991ac]
push eax
push str.Processors__d_n
call fcn.0048f080
add esp, 0x18
call fcn.004aefd0
push eax
push str.IsAdmin__d_n
call fcn.0048f080
movsx ecx, byte [0x599014]
push ecx
push str.AppData__d_n
call fcn.0048f080
add esp, 0x10
call fcn.004fcd50
push eax
push str.Service__d_n
call fcn.0048f080
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.cmdline__S_n
call fcn.0048f080
add esp, 8
lea edx, [esp]
push edx
call fcn.00527550
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00549930
add esp, 0x114
ret

Function at 0x48f230
Capabilities:
Access the windows event log
Terminate process

Disassembly:
sub esp, 0x328
push esi
mov esi, dword [esp + 0x330]
push edi
mov edi, dword [esp + 0x33c]
lea eax, [esp + 0xc]
push eax
call fcn.00523650
lea ecx, [esp + 0x11c]
push ecx
call fcn.00523650
mov eax, dword [esp + 0x340]
lea edx, [esp + 0x344]
push edx
push eax
lea ecx, [esp + 0x124]
push ecx
call fcn.00524400
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x338]
push edx
push edi
push eax
push esi
lea ecx, [esp + 0x1c]
push str._s__d_:__s__:_Fatal_error:__s
push ecx
call fcn.00524440
add esp, 0x18
lea edx, [esp + 0x11c]
push edx
call fcn.00527550
mov eax, dword [esp + 0x14]
push eax
push 0x55775c
call fcn.0048f080
add esp, 8
cmp dword [0x5992d0], 0
je 0x48f32b
lea ecx, [esp + 0x11c]
push ecx
call fcn.00523650
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x120]
push eax
call fcn.005277c0
push 0x558bb4
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x48f31c
push 0
lea ecx, [esp + 0x128]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea edx, [esp + 0x11c]
push edx
call fcn.00527550
jmp 0x48f375
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
push ecx
push 0x48ecb0
call fcn.004b00a0
mov esi, eax
test esi, esi
je 0x48f357
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48f375
mov edx, dword [esp + 0x14]
mov eax, dword [0x58eeec]
mov ecx, dword [eax]
push edx
push 0x554938
push ecx
push 0x10
push 0
call fcn.004aa1b0
add esp, 0x14
lea edx, [esp + 0xc]
push edx
call fcn.00527550
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x492750
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edi
jmp 0x492760
cmp dword [esi + 0x174], 0
jne 0x49277c
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4927ce
mov eax, dword [eax + 4]
mov dword [esi + 0x174], eax
mov ecx, dword [esi + 0x16c]
mov eax, dword [esi + 0x174]
mov edx, dword [ecx + 4]
push 0
push eax
sub edx, eax
lea eax, [edx + ecx + 8]
mov ecx, dword [esi + 8]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x4927e8
test eax, eax
je 0x4927e3
sub dword [esi + 0x174], eax
jne 0x492760
mov edx, dword [esi + 0x16c]
mov edi, dword [edx]
mov eax, edx
push eax
call fcn.004a4810
test edi, edi
mov dword [esi + 0x16c], edi
jne 0x492760
mov dword [esi + 0x170], edi
jmp 0x492760
cmp dword [esi + 0xc0], 0
je 0x4927f5
mov ecx, dword [esi + 8]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
pop edi
xor eax, eax
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4927e3
pop edi
mov eax, 1
pop ebx
ret