joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006fe0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.140024f40
sub rsp, rax
mov rax, qword [0x14005fa00]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1400201a0
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14000705d
lea rcx, [rsp + 0x70]
call fcn.1400375c4
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140024f10
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140024f10
add rsp, 0x10088
ret

Function at 0x140007140
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14005fa00]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x140046018]
call fcn.140006fe0
xor edi, edi
mov qword [0x140061138], rax
lea rdx, [0x140046018]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.1400201a0
lea rdx, [0x140046020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.140006fe0
mov cl, 1
mov qword [0x140061140], rax
call fcn.140021440
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1400201a0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.140021440
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rax, qword [sym.imp.python310.dll__Py_path_config]
mov dword [rax + 0x30], 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140024f10
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400076e0
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005fa00]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.1400147b0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1400201a0
lea rcx, [rsp + 0x20]
test r14, r14
je 0x1400077a3
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python310.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x140007791
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1400077c3
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1400077c3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x1400077c3
mov rcx, rbp
call fcn.140006b30
sub qword [rdi], 1
jne 0x1400077d3
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1400077e3
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140024f10
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140020250
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x140020314
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x140020270
not eax
ret
Function at 0x140025940
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002598a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002598a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002598a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002598a
cmp dword [rcx + 0x84], 0xe
jbe 0x14002598a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002598c
xor al, al
add rsp, 0x28
ret

Function at 0x14002ad78
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002abe3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002abe3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002abe3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002abe3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002abe3
cmp dword [rcx + 0x84], 0xe
jbe 0x14002abe3
cmp dword [rcx + 0xf8], 0
je 0x14002abe3
mov ecx, ebx
call fcn.14002ac94
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14002aa70
nop
cmp dword [rbp + 0x20], 0
je 0x14002ac31
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002ac3c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002ab74
Function at 0x14003c830
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003c8b7
mov rsi, rbx
cmp word [rax], bp
je 0x14003c876
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003c860
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003c85c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400376b0
mov rdi, rax
test rax, rax
je 0x14003c8a4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140042bb0
mov rbp, rdi
xor ecx, ecx
call fcn.1400385e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004042c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140040442
mov al, 1
jmp 0x1400404a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140040453
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400404a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003cfd4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400404a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400404a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400404a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400404a2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140042990
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400429b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400429b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140071f87
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1400792e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x20]
lea rcx, [0x1401a6172]
call fcn.14007411a
cmp qword [rbp + 0x220], 0
je 0x140079318
cmp qword [rbp + 0x228], 0
jne 0x14007931f
xor eax, eax
jmp 0x140079463
mov rax, qword [rbp + 0x220]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0xc4], 0
jmp 0x1400793cd
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
cmp dword [rbp + 0xc4], eax
jae 0x140079461
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov rdx, qword [rbp + 0x228]
mov rcx, qword [rbp + 0xe8]
call fcn.140074601
test eax, eax
jne 0x14007945c
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x88]
movzx eax, word [rcx + rax*2]
mov word [rbp + 0x104], ax
movzx eax, word [rbp + 0x104]
mov rcx, qword [rbp + 0xa8]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x124], eax
mov eax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
jmp 0x140079463
jmp 0x1400793bf
xor eax, eax
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x140072612
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400a2140
mov rax, rcx
neg rcx
test rax, 7
je 0x1400a215d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400a21b8
test al, 7
jne 0x1400a2150
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 0x1400a2171
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400a21e2
test dh, dh
je 0x1400a21dc
shr rdx, 0x10
test dl, dl
je 0x1400a21d6
test dh, dh
je 0x1400a21d0
shr rdx, 0x10
test dl, dl
je 0x1400a21ca
test dh, dh
je 0x1400a21c4
shr edx, 0x10
test dl, dl
je 0x1400a21be
test dh, dh
jne 0x1400a2171
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 0x140072950
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140095900
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140095280
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14009593f
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 [0x1401a7020]
jmp 0x140095949
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140072a9a
Capabilities:
Query environment variable

Disassembly:
jmp 0x14012c8a0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14012c6d0
lea rcx, [rsp + 0x40]
call fcn.14012c850
movzx eax, al
test eax, eax
jne 0x14012c8e8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14012c700
mov rax, qword [rsp + 0x70]
jmp 0x14012cab9
lea rcx, [rsp + 0x40]
call fcn.14012c820
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14012c7c0
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.14012c820
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.1400734c7
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14012c98e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14012c700
mov rax, qword [rsp + 0x80]
jmp 0x14012cab9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140072856
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140072725
lea rcx, [rsp + 0x48]
call fcn.1400723f6
movzx eax, al
test eax, eax
jne 0x14012c9f5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140071780
lea rcx, [rsp + 0x40]
call fcn.14012c700
mov rax, qword [rsp + 0x88]
jmp 0x14012cab9
lea rcx, [rsp + 0x48]
call fcn.140072d51
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14012c820
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.1400734c7
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14012ca8b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140071780
lea rcx, [rsp + 0x40]
call fcn.14012c700
mov rax, qword [rsp + 0xa0]
jmp 0x14012cab9
lea rcx, [rsp + 0x48]
call fcn.140072702
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140071780
lea rcx, [rsp + 0x40]
call fcn.14012c700
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140072aa9
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140095830
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140095200
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140095871
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 [0x1401a7020]
jmp 0x140095877
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140072b26
Capabilities:
Get geographical location

Disassembly:
jmp 0x140118ab0
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.1401179e0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140118b17
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 [0x1401a7030]
jmp 0x140118b39
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400723a1
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 0x140072b3a
Capabilities:
Terminate process

Disassembly:
jmp 0x14007bf40
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 0x140072d01
Capabilities:
Print debug messages

Disassembly:
jmp 0x140144a70
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140194040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140144a96
jmp 0x140144b13
mov rcx, qword [rbp + 0x30]
call fcn.140072612
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140144aaf
jmp 0x140144b13
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140144acc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400718c5
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.140071ca3
test eax, eax
jne 0x140144b13
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400727e8
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140073189
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007d290
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007d2b0
xor al, al
jmp 0x14007d331
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007d2c3
xor al, al
jmp 0x14007d331
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 0x14007d2ed
xor al, al
jmp 0x14007d331
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007d301
xor al, al
jmp 0x14007d331
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007d313
xor al, al
jmp 0x14007d331
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007d32f
xor al, al
jmp 0x14007d331
mov al, 1
add rsp, 0x38
ret
Function at 0x14007364d
Capabilities:
Terminate process

Disassembly:
jmp 0x140113530
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 0x14011355e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140073d82
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 0x140073ba7
Capabilities:
Delete service
Stop service

Disassembly:
jmp 0x140077e30
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140194040]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1401a60a8]
call fcn.14007411a
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 0x140077eaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____OpenSCManager_failed._Error_code:_0x_x._n
call fcn.1400711fe
xor eax, eax
jmp 0x140077f8f
mov r8d, 0xf01ff
mov rax, qword [rbp + 0x160]
mov rdx, qword [rax]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140077ef9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____OpenService_failed._Error_code:_0x_x._n
call fcn.1400711fe
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140077f8f
lea r8, [rbp + 0x48]
mov edx, 1
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140077f3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____ControlService_failed._Error_code:_0x_x._n
call fcn.1400711fe
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 0x140077f8f
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140077f76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____DeleteService_failed._Error_code:_0x_x._n
call fcn.1400711fe
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 0x140077f8f
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
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1401600d0]
call fcn.14007385a
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400727e8
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140073de1
Capabilities:
Print debug messages

Disassembly:
jmp 0x140124ba0
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 0x140073e86
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140095970
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400952c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400959b9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a7020]
jmp 0x1400959c8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140073f21
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401478e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140072284
lea rcx, [rsp + 0x48]
call fcn.140072284
call fcn.140072a4f
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14007208b
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14014794f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14007254a
lea rcx, [rsp + 0x78]
call fcn.14007254a
mov eax, dword [rsp + 0x24]
jmp 0x1401479e0
call fcn.140072a4f
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14007208b
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140147996
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14007254a
lea rcx, [rsp + 0x78]
call fcn.14007254a
mov eax, dword [rsp + 0x2c]
jmp 0x1401479e0
lea rcx, [rsp + 0x48]
call fcn.1400721fd
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400721fd
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14007254a
lea rcx, [rsp + 0x78]
call fcn.14007254a
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret