joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2188
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x427fc1
cmp byte [edi + 0x49], bl
je 0x427fc1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x427fb5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x427f15
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x427f2d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x427f56
dec eax
je 0x427f5a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x427fb0
jmp 0x427fbc
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x427f6a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x427f93
cmp ebx, 0x10
jae 0x427f79
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0046b4b1
add esp, 0x10
cmp esi, eax
jne 0x427fad
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x427fb9
test esi, esi
jne 0x427f21
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00401938
jmp 0x427f1b
lea ecx, [ebp - 0x2c]
call fcn.00401672
xor al, al
jmp 0x427fc3
lea ecx, [ebp - 0x2c]
call fcn.00401672
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
Function at 0x429e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2530
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4e5a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0x20219
push esi
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.00401bef
test eax, eax
je 0x429ea9
push 0x20119
push esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401bef
test eax, eax
je 0x429ea9
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x429e95
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push ecx
push edi
lea edx, [ebp - 0x14]
push edx
push edi
push eax
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x429f26
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x429ed5
cmp eax, 2
jne 0x429f26
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
shr eax, 1
push edx
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.004022b6
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401857
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
test eax, eax
je 0x429f57
xor edx, edx
mov word [ebx], dx
jmp 0x429f79
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
cmp ebx, edi
je 0x429f43
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebx], ax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x429f61
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.004024be
cmp esi, edi
je 0x429f86
push esi
call fcn.00468992
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x429f94
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ded0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x9c], str.sysid
mov dword [ebp - 0x98], str.appid
mov dword [ebp - 0x94], str.clid
mov dword [ebp - 0x90], 0x4c26bc
mov dword [ebp - 0x8c], str.osver
mov dword [ebp - 0x88], str.ostype
mov dword [ebp - 0x84], 0x4c26e4
mov dword [ebp - 0x80], str.pver
mov dword [ebp - 0x7c], str.itype
mov dword [ebp - 0x78], str.ptype
mov dword [ebp - 0x74], str.itime
mov dword [ebp - 0x70], str.sitime
mov dword [ebp - 0x6c], str.oldptype
mov dword [ebp - 0x68], str.oldpver
mov dword [ebp - 0x64], str.kisid
mov dword [ebp - 0x60], str.kapid
mov dword [ebp - 0x5c], str.country
mov dword [ebp - 0x58], str.home
mov dword [ebp - 0x54], str.slid
mov dword [ebp - 0x50], 0x4c3810
call fcn.0043c230
add esp, 4
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
je 0x42e02e
push 1
push 0x4c2680
lea ecx, [ebp - 0x2c]
call fcn.00401a0a
push 0xe
push 0x4c342c
lea ecx, [ebp - 0x2c]
call fcn.00401a0a
sub esp, 0x20
mov eax, esp
mov dword [ebp - 0xa0], esp
mov dword [eax], esi
lea ecx, [eax + 4]
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x2c]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.004015a5
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.004028fb
add esp, 0x2c
cmp dword [ebp - 0x34], 8
jb 0x42e02e
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00468992
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x42e040
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00468992
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
Function at 0x430b60
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push str._s_failed_w_err_0x_08lx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00401f28
mov eax, dword [edi + 4]
add esp, 0x14
push eax
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x430bf6
mov ecx, dword [edi + 4]
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x20c]
push esi
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00469ca2
mov esp, ebp
pop ebp
ret 8
Function at 0x4317a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
push 1
push eax
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x431806
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0046bbed
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
push esi
push 0x10024
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x43182b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x4318f3
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
test eax, eax
je 0x4318c7
push str.Stopping__s.
call fcn.0046bbed
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x431895
lea esp, [esp]
cmp dword [ebp - 0x1c], 3
jne 0x431895
push 0x4c3f4c
call fcn.0046bbed
add esp, 4
push 0x3e8
call edi
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x431870
cmp dword [ebp - 0x1c], 1
jne 0x4318b1
mov eax, dword [ebp - 0x24]
push eax
push str._n_s_is_stopped._n
call fcn.0046bbed
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
jmp 0x4318d1
mov ecx, dword [ebp - 0x24]
push ecx
push str._n_s_failed_to_stop._n
call fcn.0046bbed
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
jmp 0x4318d1
push str._n_s_is_already_stopped._n
call fcn.0046bbed
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4318ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteService_failed_w_err_0x_08lx_n
jmp 0x4318f3
push ebx
push str._s_is_removed._n
call fcn.0046bbed
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x43190b
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
Function at 0x431980
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
push 1
push eax
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x4319e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0046bbed
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
push esi
push 0x24
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x431a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x431a9b
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
test eax, eax
je 0x431a96
push str.Stopping__s.
call fcn.0046bbed
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x431a6a
cmp dword [ebp - 0x1c], 3
jne 0x431a6a
push 0x4c3f4c
call fcn.0046bbed
add esp, 4
push 0x3e8
call edi
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x431a45
cmp dword [ebp - 0x1c], 1
jne 0x431a83
mov eax, dword [ebp - 0x28]
push eax
push str._n_s_is_stopped._n
call fcn.0046bbed
mov edi, dword [ebp - 0x24]
jmp 0x431aa0
mov ecx, dword [ebp - 0x28]
push ecx
push str._n_s_failed_to_stop._n
call fcn.0046bbed
mov edi, dword [ebp - 0x24]
jmp 0x431aa0
push str._n_s_is_already_stopped._n
call fcn.0046bbed
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x431ab3
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
Function at 0x431b20
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push edi
push 1
push eax
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x431b86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0046bbed
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
push esi
push 0x14
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x431ba8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
jmp 0x431c39
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push ebx
test eax, eax
je 0x431c34
push 0x4c3f50
call fcn.0046bbed
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x431c08
cmp dword [ebp - 0x1c], 2
jne 0x431c08
push 0x4c3f4c
call fcn.0046bbed
add esp, 4
push 0x3e8
call edi
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
jne 0x431be3
cmp dword [ebp - 0x1c], 4
jne 0x431c21
mov edx, dword [ebp - 0x28]
push edx
push str._n_s_is_started._n
call fcn.0046bbed
mov edi, dword [ebp - 0x24]
jmp 0x431c3e
mov eax, dword [ebp - 0x28]
push eax
push str._n_s_failed_to_start._n
call fcn.0046bbed
mov edi, dword [ebp - 0x24]
jmp 0x431c3e
push str._n_s_is_already_started._n
call fcn.0046bbed
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x431c51
push esi
call edi
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
Function at 0x431cc0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
push 1
push eax
push eax
xor bl, bl
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x431d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0046bbed
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
push 0x14
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x431d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
call fcn.0046bbed
add esp, 8
cmp dword [ebp + 0xc], 1
jmp 0x431d67
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x431d6a
mov ecx, dword [ebp + 0xc]
not ecx
test dword [ebp - 0x1c], ecx
sete bl
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
test edi, edi
je 0x431d7a
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00469ca2
mov esp, ebp
pop ebp
ret
Function at 0x43c300
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x64
mov dword [ebp - 0x28], str.SeDebugPrivilege
mov dword [ebp - 0x24], str.SeIncreaseQuotaPrivilege
mov dword [ebp - 0x20], str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x1c], str.SeImpersonatePrivilege
mov dword [ebp - 0x18], str.SeCreateGlobalPrivilege
mov dword [ebp - 0x14], str.SeSystemProfilePrivilege
mov dword [ebp - 0x10], str.SeRestorePrivilege
mov dword [ebp - 0xc], str.SeChangeNotifyPrivilege
call fcn.0046ca71
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x43c3e7
push ebx
push esi
push edi
mov dword [eax], 8
lea edi, [ebp - 0x28]
lea esi, [eax + 4]
mov ebx, 8
mov eax, dword [edi]
push esi
push eax
push 0
mov dword [esi + 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x43c39d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 4]
push ecx
push str.lookup_failed_in_LookupPrivilegeValue_with_error
push edi
mov dword [ebp - 4], eax
call fcn.00440290
mov ecx, eax
call fcn.0043bdd0
add esi, 0xc
add edi, 4
dec ebx
jne 0x43c367
mov esi, dword [ebp - 8]
mov edx, dword [ebp + 8]
push ebx
push ebx
push 0x64
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x43c3db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push str.AdjustTokenPrivileges_failed
call fcn.00440290
mov ecx, eax
call fcn.0043b4c0
push esi
call fcn.00469ce4
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43c3f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push str.CreateProcessAsUser
call fcn.00440290
mov ecx, eax
call fcn.00402ce8
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004693e0
mov esi, dword [ebp + 8]
xor eax, eax
xor ecx, ecx
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x4c], str.winsta0default
mov word [ebp - 0x24], cx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jb 0x43c448
mov eax, dword [esi]
jmp 0x43c44a
mov eax, esi
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x54]
push ecx
push 0
push edx
push 0x430
push 0
push 0
push 0
push eax
mov eax, dword [ebp + 0xc]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne bl
test bl, bl
je 0x43c4a0
cmp dword [esi + 0x14], 8
jb 0x43c486
mov ecx, dword [esi]
mov dword [ebp + 8], ecx
jmp 0x43c489
mov dword [ebp + 8], esi
lea edx, [ebp + 8]
push edx
push str.Launched
call fcn.00440290
mov ecx, eax
call fcn.00402252
jmp 0x43c4be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push str.CreateProcessAsUser_failed
call fcn.00440290
mov ecx, eax
call fcn.0043b680
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x43c4ce
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x43c4d8
push eax
call esi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c6c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043c4e0

Function at 0x43fe80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b55d7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e5a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x43fece
mov dword [ebx], 0x4c3614
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.00401311
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00401f9b
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x43ff1a
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00401a41
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00402789
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x4e7c90]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x442330
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5b18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
or ebx, 0xffffffff
cmp dword [esi + 0xc], ebx
je 0x44242b
lea eax, [esi + 0x58]
push eax
push str.SettingsServer::Close__server_id
call fcn.00440290
mov ecx, eax
call fcn.00441180
cmp byte [esi + 0x1c], 0
mov byte [esi + 0x1d], 1
jne 0x4423c9
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x442396
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0044c180
mov dword [ebp - 4], 0
cmp dword [ebp - 0x3c], ebx
jne 0x4423bc
push str.Fake_client_not_connected
call fcn.00440290
mov ecx, eax
call fcn.00401ae1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0044bd70
jmp 0x44240a
test edi, edi
je 0x44240a
cmp dword [0x4e7e2c], 0
je 0x4423f0
push str.Canceling_IO_on_server
call fcn.00440290
mov ecx, eax
call fcn.0043b840
push edi
call dword [0x4e7e2c]
jmp 0x44240a
push str.Terminating_IO_thread_on_server
call fcn.00440290
mov ecx, eax
call fcn.0043a510
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret 4