joyce8/EMBER2024-capa huggingface dataset:
Function at 0x578997
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0057406a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0057406a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x578a0e
cmp word [ecx], dx
je 0x578a0e
mov eax, dword [0x6c4644]
push edi
dec eax
push eax
push 0x6c4530
call fcn.00578b87
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x578a81
cmp word [eax], dx
je 0x578a81
mov eax, dword [edi]
test eax, eax
je 0x578a32
cmp word [eax], dx
je 0x578a32
lea eax, [ebp - 0x10]
push eax
call fcn.00578be8
jmp 0x578a3b
lea eax, [ebp - 0x10]
push eax
call fcn.00578ee3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x578aab
mov eax, dword [0x6c452c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x6c4220
call fcn.00578b87
add esp, 0xc
test al, al
je 0x578aab
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x578a76
cmp word [eax], di
je 0x578a76
lea eax, [ebp - 0x10]
push eax
call fcn.00578be8
pop ecx
jmp 0x578aad
lea eax, [ebp - 0x10]
push eax
call fcn.00578ee3
jmp 0x578a73
mov eax, dword [edi]
test eax, eax
je 0x578a98
cmp word [eax], dx
je 0x578a98
lea eax, [ebp - 0x10]
push eax
call fcn.00579025
pop ecx
jmp 0x578aab
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x578b76
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00579117
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x578b76
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x578b76
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x578b76
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x578b03
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00574b2c
test ebx, ebx
je 0x578b71
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00574b2c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x578b76
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x578b76
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00563137
add esp, 0x10
xor eax, eax
inc eax
jmp 0x578b78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00550b46
leave
ret
Function at 0x57921d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0057406a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x57928c
cmp esi, dword [ebp - 4]
je 0x579287
cmp dword [ebp + 0xc], 0
je 0x579287
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x579264
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005792e6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x57928e
xor eax, eax
inc eax
jmp 0x57928e
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x579635
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x579680
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005797ab
test al, al
jne 0x57967a
sub edx, 2
cmp edx, edi
jne 0x579660
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5796a2
lea eax, [edi + 2]
cmp edx, eax
je 0x5796a2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00579581
add esp, 0x10
jmp 0x57979c
push esi
lea ecx, [ebp - 0x255]
call fcn.005797ab
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5796e5
push dword [ebp - 0x25c]
jmp 0x579692
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x579722
cmp word [ebp - 0x226], 0
je 0x579743
cmp word [ebp - 0x226], ax
jne 0x579722
cmp word [ebp - 0x224], 0
je 0x579743
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00579581
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x57978f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5796fc
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x579777
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x57979c
push 0x5797d0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00569a80
add esp, 0x10
jmp 0x57976c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00550b46
leave
ret
Function at 0x57aa06
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x57aaa3
push ebx
push esi
call fcn.0057aaf4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0057a90a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x57aa50
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x57aaa2
push edi
push eax
call fcn.00495660
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x57aa70
call fcn.00495590
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x57aaa1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0057a90a
add esp, 0x20
test eax, eax
jne 0x57aa8f
push edi
call fcn.00495590
jmp 0x57aa97
push ebx
call fcn.00495590
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x57aaa6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57aab7
pop esi
ret
push ebx
push edi
push esi
call fcn.0057aaf4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00495660
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x57aadf
push ebx
push esi
push edi
call fcn.00553570
add esp, 0xc
push 0
call fcn.00495590
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x57ab36
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057ada1

Function at 0x57cb21
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x57cb64
call fcn.005612b7
mov dword [eax], 0xf
call fcn.005612a4
mov dword [eax], 0xd
call fcn.00562df0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550b46
leave
ret
test eax, eax
jne 0x57cb6b
inc eax
jmp 0x57cb58
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x57cb56
xor eax, eax
cmp ecx, 1
setne al
jmp 0x57cb58
Function at 0x58dfc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x110
mov esi, esp
mov dword [esi + 0xf0], ebp
mov edi, ecx
lea eax, [esi + 0xfc]
mov dword [eax - 8], esp
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 8], 0x751238
mov dword [eax + 4], 0x551b30
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [esi + 0x20], edi
pcmpeqd xmm0, xmm0
lea ebx, [esi + 0x30]
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
mov ecx, dword [edi]
push dword [edi + 8]
push ebx
call fcn.0058d5d0
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x58e02f
mov eax, dword [esi + 0x34]
test eax, eax
je 0x58e08d
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0xd0]
mov edx, ecx
shr edx, 3
movzx eax, byte [eax + edx]
and cl, 7
shl eax, cl
test al, al
jns 0x58e0b2
mov ecx, dword [edi + 4]
mov dword [esi + 0x108], 0
push ebx
call fcn.0058ca10
mov ebx, eax
mov dword [esi + 0x108], 0xffffffff
lea ecx, [esi + 0x30]
call fcn.00508510
mov eax, dword [esi + 0xfc]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [edi + 4]
mov dword [esi + 0x108], 0
push ebx
push 8
call fcn.0058ca80
jmp 0x58e063
xor ebx, ebx
mov dword [esi + 0x108], 0xffffffff
jmp 0x58e065
xor eax, eax
lea edx, [esi + 0x18]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [esi + 0xc], edi
mov ecx, dword [edi + 4]
mov dword [esi + 0x108], eax
push edx
push ebx
call fcn.0058c790
test al, al
je 0x58e0a4
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x3c]
jne 0x58e289
mov dword [esi + 0x108], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x108], 2
mov ecx, dword [esi + 0xc]
call fcn.0058df50
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x24]
lea eax, [esi + 0x18]
push eax
call fcn.0058e380
mov ecx, dword [esi + 0x14]
push dword [esi + 0x28]
push dword [esi + 0x24]
mov eax, dword [esi + 0xc]
push dword [eax + 8]
call fcn.0058d840
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x108], 0
lea edx, [esi + 0x30]
push edx
push eax
call fcn.0058ca80
mov ebx, eax
mov dword [esi + 0x108], 0xffffffff
jmp 0x58e0a6
mov dword [esi + 0x108], 0xffffffff
int3
Function at 0x592590
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, edi
push eax
call fcn.004f1b80
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x48]
movdqu xmmword [ebx + 0x1c], xmm0
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
push edi
push ebx
call fcn.0059c930
add esp, 8
cmp byte [ebx + 0x28], 1
je 0x592612
movsx eax, byte [ebp - 0x11]
test eax, eax
cmovs eax, dword [ebp - 0x18]
cmovs edi, dword [ebp - 0x1c]
test eax, eax
js 0x59264d
sete cl
test edi, edi
setne dl
or dl, cl
je 0x59264d
push eax
push edi
push esi
call fcn.005ce630
add esp, 0xc
jmp 0x59261a
mov ecx, esi
push ebx
call fcn.00492ba0
cmp byte [ebp - 0x20], 1
jne 0x592628
lea ecx, [ebp - 0x48]
call fcn.00492d90
cmp byte [ebp - 0x11], 0
jns 0x592639
push dword [ebp - 0x1c]
call fcn.0054fc10
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2

Function at 0x59a520
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 8], eax
xor ecx, ecx
lea eax, [ebp - 0x10]
mov dword [eax], ecx
mov word [eax + 4], 0x500
lea edx, [ebp - 0x14]
mov dword [edx], ecx
sub esp, 0x2c
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movaps xmm0, xmmword [0x6d78a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x59a5b5
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ecx], 0
push ecx
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x59a5dc
cmp dword [ebp - 0x18], 0
setne byte [esi]
xor eax, eax
inc eax
mov dword [esi + 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 0x14
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
cmovne eax, ecx
mov dword [esi], eax
mov dword [esi + 4], 2
jmp 0x59a5a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
cmovne eax, ecx
mov dword [esi], eax
mov eax, 2
jmp 0x59a597
Function at 0x59cf70
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea edi, [ebp - 0x3c]
mov dword [edi + 0x24], eax
mov dword [edi + 0x20], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
mov ecx, edi
push 0x200
push 0x6d1df2
push SysReAllocString
call fcn.005c6e40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
jmp 0x59cfec
lea ecx, [ebp - 0x3c]
call fcn.004f9690
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x48]
call fcn.0054fc10
add esp, 4
mov ecx, edi
call fcn.00483820
mov ecx, edi
call fcn.00483800
test al, al
je 0x59cfc0
xor eax, eax
dec eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
cmp byte [ebp - 0x29], 0
lea eax, [ebp - 0x34]
jns 0x59d00f
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
push eax
call fcn.004f1b80
mov esi, dword [ebp + 8]
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x59d02b
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
test eax, eax
js 0x59d09b
sete dl
test esi, esi
setne dh
or dh, dl
je 0x59d09b
movsx edx, byte [ebp - 0x3d]
test edx, edx
cmovs edx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
cmovns ebx, ecx
test edx, edx
js 0x59d09b
sete cl
test ebx, ebx
setne ch
or ch, cl
je 0x59d09b
push 0
push eax
push esi
push edx
push ebx
call fcn.004fa4b0
add esp, 0x14
test al, al
je 0x59d08c
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x4c]
call dword [0x74e248]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x48]
push edx
push eax
call ecx
add esp, 8
cmp byte [ebp - 0x3d], 0
jns 0x59cfe5
jmp 0x59cfda
ud2
Function at 0x59d4d0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
push 3
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea esi, [ebp - 0x14]
mov dword [esi], ebx
mov ecx, esi
push eax
call fcn.005a0070
mov eax, dword [esi]
test eax, eax
jne 0x59d51c
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 8]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x59d529
mov ecx, dword [edi]
push 0x10000
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea esi, [ebp - 0x18]
mov dword [esi], 0
mov ecx, esi
push eax
call fcn.005a0070
mov eax, dword [esi]
mov bl, 1
test eax, eax
je 0x59d568
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x59d568
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
sete bl
lea esi, [ebp - 0xb8]
mov ecx, esi
push 0x6d1cec
call fcn.004f1b80
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0059a480
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x59d5a9
push dword [ebp - 0xb8]
mov byte [ebp - 0xb9], al
call fcn.0054fc10
mov al, byte [ebp - 0xb9]
add esp, 4
test al, al
jne 0x59d5e0
xor ebx, ebx
cmp dword [ebp - 0x18], 0
je 0x59d5c3
call fcn.005080f0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x14], 0
je 0x59d505
call fcn.005080f0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x59d505
push 0x26
push 0x6d791c
call fcn.00507a00
add esp, 8
test eax, eax
jle 0x59d5af
lea ecx, [ebp - 0xb8]
push 0xffffffffffffffff
push 0x4a1
push 0x6d791c
call fcn.004904a0
lea eax, [ebp - 0xb0]
push 0xd
push 0x6d7d44
push eax
call fcn.004e58e0
add esp, 0xc
mov esi, 2
mov ecx, 0x6ce2bb
push esi
push ecx
push eax
call fcn.004e58e0
add esp, 0xc
push edi
push eax
call fcn.0048e940
add esp, 8
push esi
mov ecx, 0x6ce2bb
push ecx
push eax
call fcn.004e58e0
add esp, 0xc
movzx edx, bl
mov ecx, eax
push edx
call fcn.00410b80
lea ecx, [ebp - 0xb8]
call fcn.00490980
jmp 0x59d5af
Function at 0x5a6c70
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28
mov esi, dword [ebp + 8]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xorps xmm0, xmm0
lea edi, [ebp - 0x2c]
movups xmmword [edi + 0x10], xmm0
movups xmmword [edi], xmm0
lea eax, [ebp - 0x30]
mov dword [eax], 0x10
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xorps xmm0, xmm0
movsd qword [esi], xmm0
mov dword [esi + 8], 0
test eax, eax
je 0x5a6cc2
push esi
push dword [ebp - 0x30]
push edi
call fcn.0048e8b0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebp
ret

Function at 0x5aa930
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x5aa9a9
mov edi, ecx
lea esi, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov bl, 1
test eax, eax
jne 0x5aa97e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 1
call fcn.005079c0
add esp, 4
test al, al
jne 0x5aa9ad
cmp ebx, 0x430
sete bl
cmp dword [esi], 0
je 0x5aa990
call fcn.005080f0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor ebx, ebx
jmp 0x5aa990
call fcn.005ccb70
lea ecx, [ebp - 0xb4]
push eax
push 1
push 0x264
push 0x6d933e
call fcn.005ccd20
lea eax, [ebp - 0xac]
push 0x15
push 0x6d9596
push eax
call fcn.004e58e0
add esp, 0xc
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc0]
mov ecx, edi
mov edi, eax
push eax
call fcn.005aa660
mov eax, edi
cmp byte [edi + 0xb], 0
jns 0x5aaa04
mov eax, dword [ebp - 0xc0]
push eax
push dword [ebp - 0xc4]
call fcn.005cb9b0
add esp, 8
cmp byte [ebp - 0xb5], 0
jns 0x5aaa2a
push dword [ebp - 0xc0]
call fcn.0054fc10
add esp, 4
lea ecx, [ebp - 0xb4]
call fcn.005ccd80
jmp 0x5aa975
Function at 0x5ab1d0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov dword [ebp - 0xc4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x754040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movsx edx, byte [eax + 0x33]
test edx, edx
js 0x5ab1fd
lea ecx, [eax + 0x28]
jmp 0x5ab203
mov edx, dword [eax + 0x2c]
mov ecx, dword [eax + 0x28]
test edx, edx
cmove ecx, edx
mov edi, dword [eax + 0x1c]
xor edx, edx
cmp edi, dword [eax + 0x20]
cmove edi, edx
movsx esi, byte [eax + 0x1b]
test esi, esi
js 0x5ab220
lea ebx, [eax + 0x10]
jmp 0x5ab226
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
test esi, esi
cmove ebx, esi
push ecx
push edx
push edx
push edi
push edx
push edx
push ebx
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
mov eax, dword [ebp - 0xc4]
push dword [eax + 0x98]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov edi, eax
test eax, eax
jne 0x5ab261
push 1
call fcn.005079c0
add esp, 4
test al, al
jne 0x5ab27f
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005ccb70
lea ecx, [ebp - 0xb4]
push eax
push 1
push 0x1a6
push 0x6d933e
call fcn.005ccd20
lea eax, [ebp - 0xac]
push 0x20
push 0x6d9510
push eax
call fcn.004e58e0
add esp, 0xc
mov ebx, eax
lea esi, [ebp - 0xc0]
mov ecx, dword [ebp - 0xc4]
push esi
call fcn.005aa660
cmp byte [esi + 0xb], 0
jns 0x5ab2d2
mov esi, dword [ebp - 0xc0]
push esi
push ebx
call fcn.005cb9b0
add esp, 8
cmp byte [ebp - 0xb5], 0
jns 0x5ab2f3
push dword [ebp - 0xc0]
call fcn.0054fc10
add esp, 4
lea ecx, [ebp - 0xb4]
call fcn.005ccd80
jmp 0x5ab261
Function at 0x5ab6a0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd0
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x754040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0xffffffff
mov ebx, dword [eax + 0x1c]
xor ecx, ecx
cmp ebx, dword [eax + 0x20]
cmove ebx, ecx
cmp byte [eax + 0x1b], 0
js 0x5ab6dd
lea ecx, [eax + 0x10]
jmp 0x5ab6e0
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xd0], ecx
cmp byte [eax + 0x33], 0
js 0x5ab6f1
lea ecx, [eax + 0x28]
jmp 0x5ab6f4
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0xcc], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xdc], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 0xd4], eax
lea edi, [ebp - 0xb8]
mov ecx, dword [ebp - 0xc8]
push edi
call fcn.005aa660
cmp byte [edi + 0xb], 0
jns 0x5ab733
mov edi, dword [ebp - 0xb8]
xor esi, esi
push esi
push esi
push ebx
push esi
push esi
push dword [ebp - 0xd0]
push dword [ebp - 0xd8]
push dword [ebp - 0xd4]
push dword [ebp - 0xdc]
push 0x10003
push dword [ebp - 0xcc]
push edi
mov eax, dword [ebp - 0xc8]
push dword [eax + 0x94]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea ecx, [ebp - 0x14]
mov dword [ecx], esi
push eax
call fcn.005a0070
cmp byte [ebp - 0xad], 0
jns 0x5ab792
push dword [ebp - 0xb8]
call fcn.0054fc10
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
jne 0x5ab7d9
push 1
call fcn.005079c0
add esp, 4
test al, al
jne 0x5ab7fb
cmp dword [ebp - 0x14], 0
je 0x5ab7bb
call fcn.005080f0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
add esp, 0xd0
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov esi, dword [ebp - 0xc8]
add esi, 0x98
mov dword [ebp - 0x14], 0
call fcn.005080f0
mov ecx, esi
push ebx
call fcn.005a0070
jmp 0x5ab7a7
call fcn.005ccb70
lea ecx, [ebp - 0xb8]
push eax
push 1
push 0x255
push 0x6d933e
call fcn.005ccd20
lea eax, [ebp - 0xb0]
push 0x19
push 0x6d957c
push eax
call fcn.004e58e0
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0xc4]
mov ecx, dword [ebp - 0xc8]
push esi
call fcn.005aa660
cmp byte [esi + 0xb], 0
jns 0x5ab84e
mov esi, dword [ebp - 0xc4]
push esi
push edi
call fcn.005cb9b0
add esp, 8
cmp byte [ebp - 0xb9], 0
jns 0x5ab86f
push dword [ebp - 0xc4]
call fcn.0054fc10
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.005ccd80
jmp 0x5ab7a7