joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50f350
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x754f90
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x81f390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x852e7c]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x50f3a5
mov eax, dword [ecx + 8]
add ecx, 8
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
mov dword [0x852e7c], 0
push dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.006ff7cf
mov eax, 0x50f3a5
ret

Function at 0x50f410
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [0x852e48]
test eax, eax
jne 0x50f473
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x50f467
shr eax, 0xa
mov ecx, eax
sub ecx, 3
je 0x50f43f
dec ecx
je 0x50f453
dec ecx
jne 0x50f444
mov eax, 1
movzx eax, ax
shl eax, 0xa
or eax, 4
mov dword [0x852e48], eax
ret
mov eax, 2
movzx eax, ax
shl eax, 0xa
or eax, 4
mov dword [0x852e48], eax
ret
mov eax, ecx
or eax, 0x800
mov dword [0x852e48], eax
ret

Function at 0x5108a0
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x75513b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x438], eax
push esi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00528240
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [esp + 0x28], xmm0
push 0x402
mov word [esp + 0x2c], ax
lea eax, [esp + 0x40]
push 0
push eax
call fcn.006f87a0
mov ecx, dword [esi]
add esp, 0xc
mov eax, dword [ecx]
cmp eax, dword [0x78b6cc]
sete al
test al, al
je 0x510922
mov eax, dword [0x78b6cc]
mov dword [esp + 0x2c], eax
jmp 0x510941
movzx eax, byte [ecx]
mov byte [esp + 0x2c], al
movzx eax, byte [ecx + 1]
mov byte [esp + 0x2d], al
movzx eax, byte [ecx + 2]
mov byte [esp + 0x2e], al
movzx eax, byte [ecx + 3]
mov byte [esp + 0x2f], al
push 0
push 0
push 0
push 0x402
lea eax, [esp + 0x4c]
push eax
push 0x10
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x5109ef
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], vtable.wbs::StringBase_char_.0
mov eax, dword [esi]
mov dword [esp + 0x44c], 0
mov eax, dword [eax + 0x2c]
cmp eax, 4
je 0x5109a1
cmp eax, 5
je 0x5109a1
xor dl, dl
jmp 0x5109a3
mov dl, 1
xor eax, eax
cmp dl, 1
push ecx
setne al
mov ecx, esp
lea eax, [eax*4 + 4]
mov dword [ecx], eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.005102a0
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
add ecx, 0x10
call fcn.004f59b0
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0xc], vtable.wbs::StringBase_char_.0
jb 0x5109fe
push dword [esp + 0x10]
call fcn.006f75a9
add esp, 4
jmp 0x5109fe
mov ecx, dword [esi]
lea eax, [esp + 0x3c]
push eax
add ecx, 0x10
call fcn.004f5a60
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x448
ret
Function at 0x510b50
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x75517b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00528240
push 0x100
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jns 0x510bab
xor al, al
jmp 0x510c4f
cmp byte [esp + 0x28], 0
mov byte [esp + 0x127], 0
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
jne 0x510bd3
xor ecx, ecx
jmp 0x510be9
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510be0
sub ecx, edx
push ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00409620
mov dword [esp + 0xc], vtable.wbs::StringBase_char_.0
mov eax, dword [esi]
add eax, 0x14
mov dword [esp + 0x134], 0
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x510c1f
mov eax, dword [eax]
mov byte [eax], 0
mov ecx, esi
push 1
lea eax, [esp + 0x10]
push eax
call fcn.00510d80
cmp dword [esp + 0x24], 0x10
mov bl, al
mov dword [esp + 0xc], vtable.wbs::StringBase_char_.0
jb 0x510c4d
push dword [esp + 0x10]
call fcn.006f75a9
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x12c
ret

Function at 0x510d80
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x28
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov edi, dword [esp + 0x34]
mov esi, ecx
call fcn.00528240
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
xorps xmm0, xmm0
mov dword [esp + 0xc], 0
movdqu xmmword [esp + 0x10], xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x20], xmm0
mov dword [esp + 8], 0
jb 0x510dcd
mov eax, dword [eax]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x510e2d
mov ecx, dword [esp + 8]
mov eax, ecx
test ecx, ecx
je 0x510e1e
mov edi, edi
cmp dword [eax + 4], 2
jne 0x510dff
mov edx, dword [eax + 0x18]
cmp byte [edx + 4], 0x7f
jne 0x510e08
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x510df0
jmp 0x510e1e
mov ecx, dword [esi]
mov eax, dword [edx + 4]
push edi
mov dword [ecx], eax
mov ecx, dword [esi]
add ecx, 0x10
call fcn.004f59b0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esp + 8], 0
mov ecx, dword [esi]
cmp dword [ecx + 0x24], 0
jne 0x510e55
push edi
add ecx, 0x10
call fcn.004f59b0
mov eax, dword [esi]
mov byte [eax], 0x7f
mov eax, dword [esi]
mov byte [eax + 1], 0
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 1
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax + 0x2c], 5
xor ecx, esp
mov al, 1
call fcn.006f7ca4
add esp, 0x28
ret 8
Function at 0x513900
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
push dword [esp + 0xc]
call fcn.00513940
mov ecx, dword [esi + 0x18]
cmp ecx, 0xffffffff
je 0x513936
push 0
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x513931
xor al, al
pop esi
ret 8
mov dword [esi + 0x14], eax
mov al, 1
pop esi
ret 8
Function at 0x514700
Capabilities:
Get token privileges

Disassembly:
push 0xffffffffffffffff
push 0x7559b8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x62], 0
je 0x514741
mov al, 1
jmp 0x5148fc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x514768
xor al, al
jmp 0x5148fc
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 3
push dword [esp + 0x34]
mov dword [esp + 0x34], 0
call edi
push dword [esp + 0x20]
call fcn.006f2a95
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x20]
mov dword [esp + 0x6c], 0
push eax
push dword [esp + 0x24]
push esi
push 3
push dword [esp + 0x34]
call edi
test eax, eax
jne 0x5147be
xor bl, bl
jmp 0x5148f1
xor ebp, ebp
mov byte [esp + 0x18], 0
mov byte [esp + 0x14], 0
cmp dword [esi], ebp
jbe 0x5148ed
lea edi, [esi + 4]
jmp 0x5147e0
cmp dword [ebx + 0xa4], 0x10
mov dword [esp + 0x28], 0x32
jb 0x5147f9
mov eax, dword [ebx + 0x90]
jmp 0x5147ff
lea eax, [ebx + 0x90]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameA]
lea eax, [esp + 0x2c]
mov ecx, str.SeLoadDriverPrivilege
lea ebx, [ebx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x514840
test dl, dl
je 0x51483c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x514840
add ecx, 2
add eax, 2
test dl, dl
jne 0x514820
xor eax, eax
jmp 0x514845
sbb eax, eax
or eax, 1
mov ecx, dword [esp + 0x14]
test eax, eax
movzx ecx, cl
mov eax, 1
cmove ecx, eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ecx
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameA]
lea ecx, [esp + 0x2c]
mov eax, str.SeLoadDriverPrivilege
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x514896
test dl, dl
je 0x514892
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x514896
add eax, 2
add ecx, 2
test dl, dl
jne 0x514876
xor eax, eax
jmp 0x51489b
sbb eax, eax
or eax, 1
mov ecx, dword [esp + 0x18]
test eax, eax
movzx ecx, cl
mov eax, 1
cmove ecx, eax
inc ebp
add edi, 0xc
mov dword [esp + 0x18], ecx
cmp ebp, dword [esi]
jb 0x5147e0
mov ebx, dword [esp + 0x14]
test bl, bl
jne 0x5148f1
test cl, cl
je 0x5148f1
push str._nYou_have_no_right_to_start_kernel_driver_on_the_remote_n
mov bl, al
call fcn.00702f31
push str.computer__but_you_have_local_right___we_will_try_it_n
call fcn.00702f31
push str.nevertheless__n_n
call fcn.00702f31
add esp, 0xc
jmp 0x5148f1
mov ebx, dword [esp + 0x14]
push esi
call fcn.006f75a9
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x5c
ret 4
Function at 0x514e20
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x755a70
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x81f390]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x34], esi
test eax, eax
jne 0x514f6e
mov dword [ebp - 4], eax
call fcn.00515a50
mov ecx, esi
call fcn.005157d0
test al, al
jne 0x514ea5
mov dword [esi + 0x64], 1
mov eax, dword [esi + 0x11c]
test eax, eax
jne 0x514eee
cmp dword [esi + 0x84], eax
je 0x514ee5
lea ecx, [esi + 0x70]
call fcn.00505080
test al, al
je 0x514ee5
mov dword [esi + 0x64], 2
jmp 0x514f6b
push 4
push 1
mov ecx, esi
call fcn.005165e0
cmp eax, 0x45c
jne 0x514ec1
push 0
push eax
mov ecx, esi
call fcn.00516420
cmp dword [esi + 0x11c], 0
jne 0x514e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x514e7b
push 0
push 0x45e
mov ecx, esi
call fcn.00516420
mov dword [esi + 0x64], 1
jmp 0x514f6b
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
push ecx
push eax
movdqu xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x514f1e
push eax
push 0x45e
mov ecx, esi
call fcn.00516420
mov eax, dword [ebp - 0x2c]
dec eax
cmp eax, 6
ja case.0x514f27.1
jmp dword [eax*4 + 0x514fb4]
mov dword [esi + 0x64], 5
jmp 0x514f6b
mov dword [esi + 0x64], 4
jmp 0x514f6b
mov dword [esi + 0x64], 6
jmp 0x514f6b
mov dword [esi + 0x64], 7
jmp 0x514f6b
mov dword [esi + 0x64], 8
jmp 0x514f6b
mov dword [esi + 0x64], 9
jmp 0x514f6b
mov dword [esi + 0x64], 3
mov eax, dword [esi + 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006f7ca4
mov esp, ebp
pop ebp
ret
Function at 0x514fd0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x755ad1
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x60]
mov dword [esp + 0x58], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.00515a50
lea eax, [edi + 0x70]
push eax
lea ecx, [esp + 0x34]
call fcn.00503e70
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x5c], 1
push eax
lea ecx, [esp + 0x38]
call fcn.00504a30
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 2
call fcn.00503f80
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.0061b700
cmp dword [esp + 0x44], 0
jne 0x515097
push 0x784b78
lea ecx, [esp + 0x18]
call fcn.00503eb0
lea eax, [esp + 0x14]
mov byte [esp + 0x58], 3
push eax
lea ecx, [esp + 0x34]
call fcn.00503f80
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.0061b700
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
mov dword [esi], vtable.wbs::StringBase_char_.0
cmp dword [edi + 0xd8], 0
lea ecx, [edi + 0xc8]
mov dword [esp + 0xc], 1
jne 0x5150cc
lea ecx, [edi + 0xac]
cmp dword [ecx + 0x14], 0x10
jb 0x5150d4
mov ecx, dword [ecx]
cmp dword [esp + 0x48], 0x10
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
push ecx
mov ecx, dword [edi + 0x68]
and ecx, 8
or ecx, 0x6c180
shr ecx, 3
push ecx
push esi
call fcn.0046fd00
add esp, 0x10
mov byte [esp + 0x58], 0
lea ecx, [esp + 0x30]
call fcn.0061b700
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x50
ret 4
Function at 0x5157d0
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x755bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push 8
xor bl, bl
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0x500
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x51586c
call esi
cmp eax, 0x3f0
jne 0x515891
lea eax, [esp + 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x515891
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 2
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x515898
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x51594b
call esi
cmp eax, 0x7a
jne 0x515887
push dword [esp + 0x20]
call fcn.006f2a95
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], 0
push eax
push dword [esp + 0x24]
push esi
push 2
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x515936
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x515936
xor bl, bl
xor edi, edi
mov byte [esp + 0x17], bl
cmp dword [esi], edi
jbe 0x51592c
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [esi + 4]
lea ecx, [ecx]
push dword [esp + 0x24]
push dword [ebx]
call ebp
test eax, eax
jne 0x51592a
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x515910
mov bl, byte [esp + 0x17]
jmp 0x51592c
mov bl, 1
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.006f75a9
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x2c
ret
Function at 0x515970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x755c28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push dword [esp + 0x40]
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0
movdqu xmmword [esi], xmm0
push eax
add ecx, 4
movdqu xmmword [esi + 0x10], xmm0
call fcn.00404fa0
cmp dword [eax + 0x14], 0x10
mov dword [esp + 0x30], 0
jb 0x5159d0
mov eax, dword [eax]
test eax, eax
mov dword [esi + 0x18], 0xf
mov edx, 0x77e880
mov dword [esi + 0x14], 0
cmovne edx, eax
mov byte [esi + 4], 0
cmp byte [edx], 0
jne 0x5159f5
xor ecx, ecx
jmp 0x515a0b
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x38], eax
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x515a00
sub ecx, dword [esp + 0x38]
push ecx
push edx
lea ecx, [esi + 4]
call fcn.00409620
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.wbs::StringOld.0
mov dword [esi + 0x1c], 0
jb 0x515a35
push dword [esp + 0xc]
call fcn.006f75a9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 8

Function at 0x515a50
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x755c68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x60], 0
jne 0x515b8f
push 1
push 1
call fcn.005165e0
cmp dword [edi + 0x11c], 0
je 0x515b8b
push 0x1000
mov dword [esp + 0x34], 0
call fcn.006f2a95
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
lea eax, [esp + 0x30]
mov dword [esp + 0x40], 0
push eax
push 0x1000
push esi
push dword [edi + 0x11c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x515b82
and dword [edi + 0x68], 0xfffffff7
test byte [esi], 1
je 0x515af2
or dword [edi + 0x68], 8
test byte [edi + 0x68], 0x20
jne 0x515b64
push dword [esi + 0xc]
lea ecx, [esp + 0x18]
call fcn.00503eb0
lea eax, [esp + 0x14]
mov byte [esp + 0x40], 1
push eax
lea ecx, [edi + 0x70]
call fcn.00503f80
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0
call fcn.0061b700
cmp dword [edi + 0x84], 0
jne 0x515b5d
lea eax, [edi + 0xa8]
push eax
lea ecx, [esp + 0x18]
call fcn.00503e70
lea eax, [esp + 0x14]
mov byte [esp + 0x40], 2
push eax
lea ecx, [edi + 0x70]
call fcn.00503f80
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0
call fcn.0061b700
mov ecx, edi
call fcn.005160f0
test byte [edi + 0x68], 0x40
jne 0x515b82
mov eax, dword [esi + 0x20]
test eax, eax
je 0x515b82
cmp byte [eax], 0
je 0x515b82
push eax
lea ecx, [edi + 0xc4]
call fcn.004f5a60
push esi
call fcn.006f75a9
add esp, 4
mov byte [edi + 0x60], 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x34
ret
Function at 0x516760
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x755de9
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, dword [esp + 0x74]
mov ecx, edi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0xc], 0
call fcn.00503f10
cmp dword [edi + 0x18], 0x10
mov dword [esp + 0x6c], 0
mov dword [esp + 0xc], 1
mov dword [edi + 0x14], 0
jb 0x5167d1
mov eax, dword [edi + 4]
jmp 0x5167d4
lea eax, [edi + 4]
cmp byte [esp + 0x78], 0
mov byte [eax], 0
je 0x516844
push 2
push 0x78a768
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00409620
mov dword [esp + 0x2c], vtable.wbs::StringBase_char_.0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x38]
mov dword [esp + 0x74], 1
push eax
lea ecx, [edi + 4]
call fcn.004094b0
cmp dword [esp + 0x44], 0x10
mov byte [esp + 0x6c], 0
mov dword [esp + 0x2c], vtable.wbs::StringBase_char_.0
jb 0x516844
push dword [esp + 0x30]
call fcn.006f75a9
add esp, 4
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x10
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp byte [esp + 0x50], 0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jne 0x51687c
xor ecx, ecx
jmp 0x51688c
lea ecx, [esp + 0x50]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x516883
sub ecx, edx
push ecx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.00409620
mov dword [esp + 0x10], vtable.wbs::StringBase_char_.0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x74], 2
push eax
lea ecx, [edi + 4]
call fcn.004094b0
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x10], vtable.wbs::StringBase_char_.0
jb 0x5168d7
push dword [esp + 0x14]
call fcn.006f75a9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x64
ret
Function at 0x516900
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x755e4d
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x14c]
mov ecx, esi
mov dword [esp + 0x144], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], 0
call fcn.00503f10
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0x144], 0
mov dword [esp + 0xc], 1
mov dword [esi + 0x14], 0
jb 0x516983
mov eax, dword [esi + 4]
jmp 0x516986
lea eax, [esi + 4]
mov byte [eax], 0
lea eax, [esp + 0x30]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esp + 0x30], 0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jne 0x5169b9
xor ecx, ecx
jmp 0x5169c9
lea ecx, [esp + 0x30]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5169c0
sub ecx, edx
push ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00409620
mov dword [esp + 0x10], vtable.wbs::StringBase_char_.0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x14c], 1
push eax
lea ecx, [esi + 4]
call fcn.004094b0
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x10], vtable.wbs::StringBase_char_.0
jb 0x516a17
push dword [esp + 0x14]
call fcn.006f75a9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x13c
ret

Function at 0x516a40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x755e4d
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x14c]
mov ecx, esi
mov dword [esp + 0x144], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], 0
call fcn.00503f10
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0x144], 0
mov dword [esp + 0xc], 1
mov dword [esi + 0x14], 0
jb 0x516ac3
mov eax, dword [esi + 4]
jmp 0x516ac6
lea eax, [esi + 4]
mov byte [eax], 0
lea eax, [esp + 0x30]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esp + 0x30], 0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jne 0x516af9
xor ecx, ecx
jmp 0x516b09
lea ecx, [esp + 0x30]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x516b00
sub ecx, edx
push ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00409620
mov dword [esp + 0x10], vtable.wbs::StringBase_char_.0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x14c], 1
push eax
lea ecx, [esi + 4]
call fcn.004094b0
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x10], vtable.wbs::StringBase_char_.0
jb 0x516b57
push dword [esp + 0x14]
call fcn.006f75a9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x13c
ret