joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010d6c0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x40]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1401e1010]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xb4], 8
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14010d736
xor al, al
jmp 0x14010d848
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.140114d30
mov byte [rsp + 0x88], 8
mov byte [rsp + 0x89], 2
mov dword [rsp + 0x8c], 0x6601
mov dword [rsp + 0x90], 8
lea rdx, [rsp + 0x94]
mov rcx, qword [rsp + 0x100]
call fcn.14010d4d0
mov edx, 8
lea rcx, [rsp + 0x94]
call fcn.1401118c0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14010d7db
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14010d848
mov r8d, 8
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call fcn.140114680
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_connect
call fcn.140184540
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14002d8e0
add rsp, 0xe0
pop rdi
ret

Function at 0x14010fd40
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, Ordinal_26
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14010fd96
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x14010fdb0
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret
Function at 0x140111a90
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140111aff
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x30
pop rdi
ret

Function at 0x140111b10
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret

Function at 0x14011b550
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14011b030
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14011b58f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14018c828]
jmp 0x14011b599
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140168f70
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x14016b090
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14016b0bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140140490
mov eax, 0xffffffff
jmp 0x14016b0be
xor eax, eax
add rsp, 0x28
ret
Function at 0x180002d00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
mov ecx, dword [0x180031630]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x180032280], ecx
jle 0x180002f15
lea rcx, [0x180032280]
call fcn.18000ece8
cmp dword [0x180032280], 0xffffffff
jne 0x180002f15
movsd xmm0, qword [0x18002b860]
movsd qword [rsp + 0x20], xmm0
mov eax, dword [0x18002b868]
mov dword [rsp + 0x28], eax
xor r9d, r9d
cmp byte [0x18002b86b], r9b
je 0x180002ec1
mov ecx, r9d
cmp dword [0x180030408], 2
jl 0x180002e85
movdqa xmm5, xmmword [0x18002bb70]
movdqa xmm2, xmmword [0x18002bb10]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18002bb30]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18002bb50]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18002bb60]
movd xmm0, dword [0x18002b860]
xorps xmm2, xmm0
andnps xmm2, xmmword [0x18002bb80]
movd dword [rsp + 0x20], xmm2
movdqa xmm3, xmmword [0x18002bb20]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18002bb30]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18002bb50]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18002bb60]
movd xmm0, dword [rsp + 0x24]
xorps xmm2, xmm0
andnps xmm2, xmmword [0x18002bb80]
movd dword [rsp + 0x24], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x32
xor al, byte [r8]
not al
mov byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xc
jl 0x180002e90
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r9
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], r9b
jne 0x180002ee0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180009700
lea rcx, [rsp + 0x30]
call fcn.180008300
mov qword [0x180032288], rax
lea rcx, [0x180032280]
call fcn.18000ec7c
mov rax, qword [0x180032288]
add rsp, 0x58
ret
Function at 0x180004c80
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180004d17
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180004d17
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x238651e9
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180004d12
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x180004cf0
cmp r8d, 0x2e86c9
je 0x180004d1c
test r9d, r9d
jne 0x180004cd0
mov rax, qword [rax]
jmp 0x180004ca0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
add rax, r10
call rax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov rbx, rsi
nop
mov r9, qword [rbx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov r11d, dword [rax + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x180004dc4
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x180004dc4
mov edi, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
mov edx, 0xa35510ff
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x180004dbf
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x180004da0
cmp edx, 0x76f51c0f
je 0x180004dfa
test r8d, r8d
jne 0x180004d80
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rsi
je 0x180004dda
cmp qword [rax + 0x30], 0
jne 0x180004d50
xor eax, eax
lea rdx, [0x180001960]
mov ecx, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180004ddc

Function at 0x18000d860
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18000d8ba
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18000d8ba
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18000d8ba
xor eax, eax
jmp 0x18000d901
mov dword [rsp], 1
jmp 0x18000d8cb
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x18000d8fc
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18000d8fa
xor eax, eax
jmp 0x18000d901
jmp 0x18000d8c3
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x18001a7bc
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xdeac
cmp ecx, eax
ja 0x18001a814
je 0x18001a80b
mov eax, 0xc433
cmp ecx, eax
ja 0x18001a7ef
je 0x18001a80b
mov eax, ecx
sub eax, 0x2a
je 0x18001a80b
sub eax, 0xc402
je 0x18001a80b
sub eax, 1
je 0x18001a80b
sub eax, 1
je 0x18001a80b
cmp eax, 3
jmp 0x18001a809
mov eax, ecx
sub eax, 0xc435
je 0x18001a80b
sub eax, 0x1263
je 0x18001a847
sub eax, 0x812
je 0x18001a80b
cmp eax, 1
jne 0x18001a80d
xor edx, edx
call 0x1801740bb
ror byte [rbx - 0x2152d23f], cl
add byte [rax], al
mov eax, ecx
sub eax, 0xdead
je 0x18001a80b
sub eax, 1
je 0x18001a80b
sub eax, 1
je 0x18001a80b
sub eax, 1
je 0x18001a80b
sub eax, 1
je 0x18001a80b
sub eax, 1
je 0x18001a80b
sub eax, 1
je 0x18001a80b
sub eax, 0x1f35
je 0x18001a80b
cmp eax, 1
jne 0x18001a80d
and edx, 8
jmp 0x18001a80d

Function at 0x18001f6a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18001f6c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001f6c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400766cb
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14010ce40
mov rax, rcx
neg rcx
test rax, 7
je 0x14010ce5d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14010ceb8
test al, 7
jne 0x14010ce50
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14010ce71
mov rdx, qword [rax - 8]
test dl, dl
je 0x14010cee2
test dh, dh
je 0x14010cedc
shr rdx, 0x10
test dl, dl
je 0x14010ced6
test dh, dh
je 0x14010ced0
shr rdx, 0x10
test dl, dl
je 0x14010ceca
test dh, dh
je 0x14010cec4
shr edx, 0x10
test dl, dl
je 0x14010cebe
test dh, dh
jne 0x14010ce71
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140076a3b
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140097110
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140096a90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009714f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b4020]
jmp 0x140097159
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140076a81
Capabilities:
Create service
Query service status
Start service

Disassembly:
jmp 0x14007c2f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x70]
lea rdi, [rsp + 0x70]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1401a1040]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1401b30f3]
call fcn.1400782e1
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14007c35e
mov eax, 1
jmp 0x14007c505
mov r8d, 0xf01ff
mov rdx, qword [section..data]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14007c41e
lea rcx, str.Service_already_exists._n
call fcn.140076824
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14007c3c0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14007c505
cmp dword [rbp + 0x4c], 1
jne 0x14007c403
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14007c3f7
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14007c505
lea rcx, str.Starting_service..._n
call fcn.140076824
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14007c505
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rbp + 0x160]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [section..data]
mov rdx, qword [section..data]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14007c4a9
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14007c505
lea rcx, str.Service_created_successfully._n
call fcn.140076824
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14007c4e3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14007c505
lea rcx, str.Starting_service..._n
call fcn.140076824
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x70]
lea rdx, [0x14016d000]
call fcn.1400779f9
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400768ba
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140076b94
Capabilities:
Query environment variable

Disassembly:
jmp 0x14012eb60
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14012e990
lea rcx, [rsp + 0x40]
call fcn.14012eb10
movzx eax, al
test eax, eax
jne 0x14012eba8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14012e9c0
mov rax, qword [rsp + 0x70]
jmp 0x14012ed79
lea rcx, [rsp + 0x40]
call fcn.14012eae0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14012ea80
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14012eae0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140077657
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14012ec4e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14012e9c0
mov rax, qword [rsp + 0x80]
jmp 0x14012ed79
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14007692d
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400767e8
lea rcx, [rsp + 0x48]
call fcn.140076482
movzx eax, al
test eax, eax
jne 0x14012ecb5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400757cb
lea rcx, [rsp + 0x40]
call fcn.14012e9c0
mov rax, qword [rsp + 0x88]
jmp 0x14012ed79
lea rcx, [rsp + 0x48]
call fcn.140076e78
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14012eae0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140077657
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14012ed4b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400757cb
lea rcx, [rsp + 0x40]
call fcn.14012e9c0
mov rax, qword [rsp + 0xa0]
jmp 0x14012ed79
lea rcx, [rsp + 0x48]
call fcn.1400767c0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400757cb
lea rcx, [rsp + 0x40]
call fcn.14012e9c0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140076ba3
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140097040
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140096a10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140097081
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b4020]
jmp 0x140097087
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140076c2a
Capabilities:
Get geographical location

Disassembly:
jmp 0x140119e80
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140118db0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140119ee7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401b4030]
jmp 0x140119f09
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140076423
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140076c3e
Capabilities:
Terminate process

Disassembly:
jmp 0x14007df00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140076e1e
Capabilities:
Print debug messages

Disassembly:
jmp 0x14014f200
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401a1040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14014f226
jmp 0x14014f2a3
mov rcx, qword [rbp + 0x30]
call fcn.1400766cb
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14014f23f
jmp 0x14014f2a3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14014f25c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140075924
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140075d07
test eax, eax
jne 0x14014f2a3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400768ba
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400772dd
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007f250
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007f270
xor al, al
jmp 0x14007f2f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007f283
xor al, al
jmp 0x14007f2f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007f2ad
xor al, al
jmp 0x14007f2f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007f2c1
xor al, al
jmp 0x14007f2f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007f2d3
xor al, al
jmp 0x14007f2f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007f2ef
xor al, al
jmp 0x14007f2f1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400777e7
Capabilities:
Terminate process

Disassembly:
jmp 0x14010d830
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14010d85e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140077f26
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140077f8a
Capabilities:
Print debug messages

Disassembly:
jmp 0x140126de0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret