joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bf600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4bf620
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x61cb38
push esi
mov dword [ebp - 8], ebx
call fcn.005e8a07
add esp, 8
test eax, eax
je 0x4bf66c
test ebx, ebx
je 0x4bf65c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4bf695
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bf695
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4bf740
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf6b1
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x69a514]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4bf736
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4bf736
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf6e2
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bf700
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4bf710
mov eax, dword [ebp - 8]
test eax, eax
je 0x4bf72d
push 8
push 0
push ebx
call eax
jmp 0x4bf734
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x69a518]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4c2b30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4c2b63
push 0x2e
push edi
call fcn.005d6c00
add esp, 8
test eax, eax
je 0x4c2b61
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4c4e70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x69a514]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c4e9d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4c4ee4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4c4eea
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c4f4b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4c4f10
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4c4f77
mov eax, dword [esi + 4]
push 1
push 0x61d306
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x61d307
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4c4f50
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f6a20
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.005cabd0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.004d13d0
mov ebx, eax
push ebx
push esi
call fcn.004d12b0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4f6aa9
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4f6a83
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004d1320
push esi
call fcn.004d1470
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4f6aa9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.004d13d0
mov ebx, eax
push ebx
push esi
call fcn.004d12b0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4f6b18
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4f6afe
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004d1320
push esi
call fcn.004d1470
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4f6aa1
push esi
call fcn.004d1470
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x51d1e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x51d207
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x51d1f6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x5c1190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606c33
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x69def4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x6a46bc
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x6a46bc
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x6099b4
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.005c4d90
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5c79e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x6a61a0], ecx
inc eax
cmp eax, 0x100
jb 0x5c79e2
cmp eax, 0x800
jae 0x5c7ab3
nop
mov edx, dword [eax*4 + 0x6a5da0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6a61a0]
mov dword [eax*4 + 0x6a61a0], edx
inc eax
cmp eax, 0x800
jb 0x5c7a90
mov dword [0x6a46c8], 0x5c8850
call fcn.005c8680
mov ecx, dword [0x6a46c8]
test eax, eax
mov edx, 0x5c88f0
cmove ecx, edx
mov dword [0x6a46c8], ecx
ret
Function at 0x5c8bd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x5c8bf0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x5c8c22
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x5c8c1f
inc esi
cmp esi, edx
jb 0x5c8c10
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x5c8d4c
cmp ecx, 3
jbe 0x5c8c62
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x5c8ca0
cmp cl, 0xff
je 0x5c8ca0
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x5c8c04
dec ecx
shl eax, cl
and eax, 7
je 0x5c8c3a
movzx ecx, byte [eax + 0x67e080]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x67e078], 0
mov cl, byte [edx + 4]
je 0x5c8c8a
test cl, cl
je 0x5c8c8a
cmp cl, 0xff
jne 0x5c8c3a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x5c8c04
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x5c8cce
lea edx, [edi + ebx]
add edx, esi
jmp 0x5c8cd4
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x5c8d12
movzx edi, byte [eax + 0x67e080]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x5c8cfe
cmp cl, 0xff
jne 0x5c8d12
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x5c8cc1
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x5c8c04
pop edi
pop esi
cmp ecx, 3
jbe 0x5c8d61
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5cc538
Capabilities:
Set registry value

Disassembly:
push 0x238
mov eax, 0x60701e
call fcn.005cbb9f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.005d4b40
push str.GoodZipService
lea eax, [ebp - 0x218]
push 0x609c18
push eax
call fcn.0040fd80
add esp, 0x18
lea ecx, [ebp - 0x244]
call fcn.00407a20
and dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.00407a90
test eax, eax
lea eax, [ebp - 0x21c]
push eax
je 0x5cc5ce
push 0xf013f
push 0
push str.SoftWare
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5cc653
xor edi, edi
lea eax, [ebp - 0x220]
push edi
push eax
push edi
push 0xf013f
jmp 0x5cc5f5
push 0xf003f
push 0
push str.SoftWare
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5cc653
xor edi, edi
lea eax, [ebp - 0x220]
push edi
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x5cc61d
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5cc653
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x220]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x21c]
call esi
lea ecx, [ebp - 0x244]
call fcn.00407a70
call fcn.005cbb5a
ret 0xc

Function at 0x5cc666
Capabilities:
Set registry value

Disassembly:
push 0x2c
mov eax, 0x60704e
call fcn.005cbb6b
lea ecx, [ebp - 0x38]
call fcn.00407a20
xor esi, esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], esi
call fcn.00407a90
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x5cc699
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5cc709
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x609b1c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x5cc6d6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5cc709
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x38]
call fcn.00407a70
call fcn.005cbb45
ret 8
Function at 0x5cc719
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x23c
mov eax, 0x607074
call fcn.005cbb9f
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.005d4b40
push str.GoodZipService
lea eax, [ebp - 0x218]
push 0x609c18
push eax
call fcn.0040fd80
add esp, 0x18
lea ecx, [ebp - 0x248]
call fcn.00407a20
and dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00407a90
test eax, eax
lea eax, [ebp - 0x21c]
push eax
je 0x5cc7ad
push 0x20119
push 0
push str.SoftWare
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call ebx
test eax, eax
jne 0x5cc82e
lea eax, [ebp - 0x220]
push eax
push 0x20119
jmp 0x5cc7d2
push 0x20019
push 0
push str.SoftWare
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call ebx
test eax, eax
jne 0x5cc82e
lea eax, [ebp - 0x220]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call ebx
test eax, eax
je 0x5cc7f5
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5cc82e
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x104
push eax
push edi
push 0
push 0
push esi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x220]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x21c]
call esi
lea ecx, [ebp - 0x248]
call fcn.00407a70
call fcn.005cbb5a
ret 0xc

Function at 0x5cc841
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
mov edi, 0xf003f
mov dword [ebp - 8], esi
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5cc8c3
push esi
lea eax, [ebp - 4]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x609b1c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x5cc8c3
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
push eax
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x5cc8b8
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], 0
je 0x5cc8c3
push dword [ebp - 8]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5ccb96
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x69def4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov ebx, ecx
mov dword [ebp - 0xc30], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc2c], eax
mov eax, dword [ebp + 0x18]
push 0x200
mov dword [ebp - 0xc34], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.005d4b40
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.005d4b40
push 0x208
lea eax, [ebp - 0x60c]
push 0
push eax
call fcn.005d4b40
push 0x208
lea eax, [ebp - 0xa1c]
push 0
push eax
call fcn.005d4b40
push 0x208
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.005d4b40
push 0x208
lea eax, [ebp - 0xc24]
push 0
push eax
call fcn.005d4b40
add esp, 0x48
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5ccc58
cmp byte [ebp + 0x1c], al
jne 0x5ccd1c
lea eax, [ebp - 0x60c]
push edi
push eax
call fcn.005ee140
push dword [ebp - 0xc2c]
lea eax, [ebp - 0x204]
push eax
call fcn.005ee140
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.005ee140
push dword [ebp - 0xc30]
lea eax, [ebp - 0x404]
push eax
call fcn.005ee140
push dword [ebp - 0xc34]
lea eax, [ebp - 0xc24]
push eax
call fcn.005ee140
push 0
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xa1c]
push str.__s___d
push eax
call fcn.0040fd80
add esp, 0x38
mov byte [ebp - 0xc25], 0
lea eax, [ebp - 0xc25]
mov ecx, ebx
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x814]
push str.99DBFBB4_9D93_4F50_94F7_74A39CBBEE52
push 0x6097e8
push eax
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.005d1893
cmp byte [ebp - 0xc25], 0
je 0x5ccd1c
mov byte [esi], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cabbc
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x5cd978
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
call fcn.005ce2c5
test eax, eax
jne 0x5cd991
push 3
pop eax
jmp 0x5cda4c
mov ecx, esi
call fcn.005ce2c9
test eax, eax
je 0x5cd9a3
xor eax, eax
jmp 0x5cda4c
push edi
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x5cd9c1
push 4
pop eax
jmp 0x5cda4b
cmp dword [esi + 0x14], 8
jb 0x5cd9cb
mov edx, dword [esi]
jmp 0x5cd9cd
mov edx, esi
lea eax, [esi + 0x30]
cmp dword [eax + 0x14], 8
jb 0x5cd9d8
mov eax, dword [eax]
push ebx
lea ebx, [esi + 0x18]
cmp dword [ebx + 0x14], 8
jb 0x5cd9ec
mov ecx, dword [ebx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
jmp 0x5cd9ef
mov dword [ebp - 8], ebx
push edi
push edi
push edi
push edi
push edi
push edx
push 1
push dword [esi + 0x48]
push 1
push 0xf01ff
push eax
push dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x5cda37
cmp dword [ebx + 0x14], 8
jb 0x5cda1b
mov ebx, dword [ebx]
push 0xf01ff
push ebx
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x5cda3a
push 5
pop edi
jmp 0x5cda41
mov ebx, dword [ebp - 4]
mov dword [esi + 0x54], 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5cdb64
Capabilities:
Check if file exists

Disassembly:
push 0x4a0
mov eax, 0x60789f
call fcn.005cbb9f
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x5cdcdf
lea ecx, [ebp - 0x47c]
call fcn.005cd88b
lea ecx, [ebp - 0x47d]
mov dword [ebp - 4], ebx
call fcn.00422480
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x5cdbaa
mov eax, dword [esi]
jmp 0x5cdbac
mov eax, esi
push eax
lea ecx, [ebp - 0x47d]
call fcn.005cc8cb
test al, al
je 0x5cdcc9
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.005d4b40
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x5cdbdf
mov eax, dword [esi]
jmp 0x5cdbe1
mov eax, esi
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
mov ecx, edi
call fcn.005ce1f2
cmp dword [esi + 0x14], 8
jb 0x5cdbfd
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x47c]
call fcn.005ce45b
test eax, eax
jne 0x5cdcc9
push str.system32
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov esi, eax
test esi, esi
je 0x5cdcc9
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.005d4b40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x4ac]
call fcn.00407a20
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00407cc0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5cdcad
sub esp, 0x18
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.00405d50
call fcn.00427300
add esp, 0x18
push dword [ebp - 0x484]
lea ecx, [ebp - 0x4ac]
call fcn.00407cf0
lea ecx, [ebp - 0x4ac]
call fcn.00407a70
lea ecx, [ebp - 0x47d]
call fcn.00443f10
lea ecx, [ebp - 0x47c]
call fcn.005cd8e9
call fcn.005cbb5a
ret 4
Function at 0x5ce1f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x69def4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push esi
mov esi, dword [ebp + 8]
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
xor edi, edi
call fcn.005ee140
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.005ee0cf
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5ce2b0
lea eax, [ebp + 0x10]
push eax
push ebx
push edi
push edi
push str.ImagePath
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5ce2a4
push 4
push 0x67e8cc
push ebx
call fcn.005ee20b
add esp, 0xc
test eax, eax
jne 0x5ce2a1
lea ecx, [ebx + 8]
movzx eax, word [ecx]
mov word [ebx], ax
test ax, ax
je 0x5ce2a1
lea ecx, [ecx + 2]
mov ax, word [ecx]
mov word [ecx - 8], ax
cmp word [ecx], di
jne 0x5ce292
xor edi, edi
inc edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005cabbc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5ce2d1
Capabilities:
Start service

Disassembly:
push edi
mov edi, ecx
call fcn.005ce2c9
test eax, eax
jne 0x5ce2e0
inc eax
pop edi
ret
mov ecx, edi
call fcn.005ce2cd
test eax, eax
je 0x5ce2ef
xor eax, eax
pop edi
ret
push ebx
push esi
push 2
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x5ce307
push 4
jmp 0x5ce34e
lea eax, [edi + 0x18]
cmp dword [eax + 0x14], 8
jb 0x5ce312
mov eax, dword [eax]
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x5ce331
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 7
jmp 0x5ce34e
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
test eax, eax
jne 0x5ce351
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [edi + 0x4c]
call esi
push 6
pop eax
jmp 0x5ce360
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [edi + 0x58], 1
xor eax, eax
pop esi
pop ebx
pop edi
ret