joyce8/EMBER2024-capa huggingface dataset:
Function at 0x27dd12d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [str.kernel32LoadLibrGetProcALocalAll_not_found_]
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rsp + 0x28], 0x6c6c642e
mov byte [rsp + 0x2c], 0
call fcn.27dd12860
mov byte [rsp + 0x2c], 0
mov rbx, rax
mov rax, qword [0x27ddd20a8]
mov dword [rsp + 0x28], 0x41797261
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x3c]
mov r12d, dword [rbx + rax + 0x88]
test r12d, r12d
je 0x27dd12f50
lea r13, [rbx + r12]
mov esi, dword [r13 + 0x20]
mov ebp, dword [r13 + 0x18]
add rsi, rbx
test ebp, ebp
je 0x27dd12f6a
mov r15, rsi
xor r14d, r14d
jmp 0x27dd12e01
add r14, 1
add r15, 4
cmp rbp, r14
je 0x27dd12f80
mov ecx, dword [r15]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x27dd12df0
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x27ddf7030], rax
mov rax, qword [0x27ddd20b0]
mov edx, 0x7373
mov byte [rsp + 0x2e], 0
xor r14d, r14d
mov dword [rsp + 0x28], 0x65726464
mov word [rsp + 0x2c], dx
mov qword [rsp + 0x20], rax
jmp 0x27dd12e71
add r14, 1
add rsi, 4
cmp rbp, r14
je 0x27dd12f78
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x27dd12e60
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x27ddf7038], rax
mov rax, qword [0x27ddd20b8]
add r12, rbx
xor ebp, ebp
mov byte [rsp + 0x2a], 0
mov qword [rsp + 0x20], rax
mov eax, 0x636f
mov word [rsp + 0x28], ax
mov esi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rsi, rbx
test r13d, r13d
jne 0x27dd12eed
jmp 0x27dd12f66
add rbp, 1
add rsi, 4
cmp rbp, r13
je 0x27dd12f66
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x27dd12ee0
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + rbp*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov ecx, 0x4098
mov qword [0x27ddf7028], rax
call fcn.27dd12cd0
test rax, rax
mov qword [0x27ddf7020], rax
setne al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [0x27ddf7030], 0
mov qword [0x27ddf7038], 0
xor eax, eax
jmp 0x27dd12f1a
mov qword [0x27ddf7030], 0
nop dword [rax]
xor eax, eax
jmp 0x27dd12e9c
mov qword [0x27ddf7030], 0
jmp 0x27dd12e34
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x27dd12d60
Function at 0x27dd12f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [str.kernel32LoadLibrGetProcALocalAll_not_found_]
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rsp + 0x28], 0x6c6c642e
mov byte [rsp + 0x2c], 0
call fcn.27dd12860
mov byte [rsp + 0x2c], 0
mov rbx, rax
mov rax, qword [0x27ddd20a8]
mov dword [rsp + 0x28], 0x41797261
mov qword [rsp + 0x20], rax
movsxd rax, dword [rbx + 0x3c]
mov r12d, dword [rbx + rax + 0x88]
test r12d, r12d
je 0x27dd12f50
lea r13, [rbx + r12]
mov esi, dword [r13 + 0x20]
mov ebp, dword [r13 + 0x18]
add rsi, rbx
test ebp, ebp
je 0x27dd12f6a
mov r15, rsi
xor r14d, r14d
jmp 0x27dd12e01
add r14, 1
add r15, 4
cmp rbp, r14
je 0x27dd12f80
mov ecx, dword [r15]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x27dd12df0
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x27ddf7030], rax
mov rax, qword [0x27ddd20b0]
mov edx, 0x7373
mov byte [rsp + 0x2e], 0
xor r14d, r14d
mov dword [rsp + 0x28], 0x65726464
mov word [rsp + 0x2c], dx
mov qword [rsp + 0x20], rax
jmp 0x27dd12e71
add r14, 1
add rsi, 4
cmp rbp, r14
je 0x27dd12f78
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x27dd12e60
mov edx, dword [r13 + 0x24]
lea rcx, [rbx + r14*2]
mov eax, dword [r13 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov qword [0x27ddf7038], rax
mov rax, qword [0x27ddd20b8]
add r12, rbx
xor ebp, ebp
mov byte [rsp + 0x2a], 0
mov qword [rsp + 0x20], rax
mov eax, 0x636f
mov word [rsp + 0x28], ax
mov esi, dword [r12 + 0x20]
mov r13d, dword [r12 + 0x18]
add rsi, rbx
test r13d, r13d
jne 0x27dd12eed
jmp 0x27dd12f66
add rbp, 1
add rsi, 4
cmp rbp, r13
je 0x27dd12f66
mov ecx, dword [rsi]
mov rdx, rdi
add rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x27dd12ee0
mov edx, dword [r12 + 0x24]
lea rcx, [rbx + rbp*2]
mov eax, dword [r12 + 0x1c]
movzx edx, word [rcx + rdx]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
mov ecx, 0x4098
mov qword [0x27ddf7028], rax
call fcn.27dd12cd0
test rax, rax
mov qword [0x27ddf7020], rax
setne al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov qword [0x27ddf7030], 0
mov qword [0x27ddf7038], 0
xor eax, eax
jmp 0x27dd12f1a
mov qword [0x27ddf7030], 0
nop dword [rax]
xor eax, eax
jmp 0x27dd12e9c
mov qword [0x27ddf7030], 0
jmp 0x27dd12e34
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x27dd12d60
Function at 0x27dd16040
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x27dd16124
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
mov r10d, 8
movzx r9d, byte [rax + 0x1e]
lea r11, [0x27ddd2380]
movzx r8d, byte [rax + 0x1d]
lea rbx, [0x27ddd2260]
movzx edx, byte [rax + 0x1c]
jmp 0x27dd160e9
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
shr edx, 3
movzx r8d, byte [r11 + r8]
xor cl, byte [rbx + rdx]
movzx r9d, byte [r11 + r9]
mov edx, ecx
xor dl, byte [rax]
add r10d, 1
add rax, 4
xor r8b, byte [rax - 3]
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x27dd16120
mov ecx, r10d
and ecx, 7
je 0x27dd16090
cmp ecx, 4
jne 0x27dd160be
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x27dd160be
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x27dd16067
Function at 0x27dd20fb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
cmp r8, 3
mov r9, rdx
not eax
jbe 0x27dd21080
lea rdx, [r8 - 4]
lea r10, [0x27ddd2ca0]
shr rdx, 2
lea rcx, [r9 + rdx*4 + 4]
nop dword [rax]
mov edx, eax
xor al, byte [r9]
add r9, 4
shr edx, 8
movzx eax, al
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 3]
shr eax, 8
movzx edx, dl
xor eax, dword [r10 + rdx*4]
mov edx, eax
xor al, byte [r9 - 2]
shr edx, 8
movzx eax, al
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 1]
shr eax, 8
movzx edx, dl
xor eax, dword [r10 + rdx*4]
cmp r9, rcx
jne 0x27dd20fd8
and r8d, 3
test r8, r8
je 0x27dd21074
lea rdx, [0x27ddd2ca0]
mov r9d, eax
xor al, byte [rcx]
shr r9d, 8
movzx eax, al
xor r9d, dword [rdx + rax*4]
cmp r8, 1
mov eax, r9d
je 0x27dd21074
xor al, byte [rcx + 1]
shr r9d, 8
movzx eax, al
xor r9d, dword [rdx + rax*4]
cmp r8, 2
mov eax, r9d
je 0x27dd21074
xor al, byte [rcx + 2]
mov r8d, r9d
shr r8d, 8
movzx eax, al
xor r8d, dword [rdx + rax*4]
mov eax, r8d
not eax
ret
mov rcx, rdx
jmp 0x27dd21024
Function at 0x27dd37e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movzx esi, byte [rcx + 0x40]
test sil, sil
mov rbx, rcx
je 0x27dd37e30
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x48]
mov r8d, 0xa
movzx edx, word [rcx + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov rdi, rax
je 0x27dd37ed8
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbp, rax
je 0x27dd37ed8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov r13, rax
je 0x27dd37ed8
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
movsxd r12, eax
mov qword [rbx + 0x38], rdx
lea rcx, [r12 + 1]
call sub.msvcrt.dll_malloc
test rax, rax
mov rdi, rax
je 0x27dd37ebb
mov r8, r12
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov qword [rbx + 0x30], rdi
mov byte [rbx + 0x40], sil
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor edi, edi
jmp 0x27dd37ebb

Function at 0x27dd44f10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.27dd4f290
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.27dd4f290
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x27dd44f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x27ddf70c4]
test esi, esi
mov rbx, rcx
jle 0x27dd450b0
mov rax, qword [0x27ddf70c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x27dd44fcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x27dd45055
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x27dd44fb0
mov rcx, rbx
call fcn.27dd457e0
test rax, rax
mov rdi, rax
je 0x27dd450d2
mov rax, qword [0x27ddf70c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.27dd45920
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x27ddf70c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x27dd450b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x27dd4504e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x27dd45060
add dword [0x27ddf70c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x27ddf70c8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x27dd4504e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.27dd44f10
nop dword [rax]
xor esi, esi
jmp 0x27dd44fd8
mov rax, qword [0x27ddf70c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.27dd44f10
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.27dd44f10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x27dd45450
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x27ddf7100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x27ddf70e0]
test rbx, rbx
je 0x27dd454ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x27dd454a3
test rsi, rsi
je 0x27dd454a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x27dd45488
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x27dd457e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x27ddd91e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x27dd45800
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x27dd45808
ret
cmp word [r8 + 0x18], 0x20b
jne 0x27dd45800
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x27dd4585d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x27dd45854
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x27dd45800
add rax, 0x28
cmp rax, r9
jne 0x27dd45840
xor eax, eax
ret

Function at 0x27dd45860
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x27ddd91e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x27dd4587f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x27dd45888
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x27dd4587f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x27dd45920
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x27ddd91e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x27dd4593f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x27dd45948
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x27ddccf60
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x27ddd1120]
jmp 0x27dd46650
Function at 0x14003b9b2
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rcx
push rbp
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14003b9bf
sub rsp, 0x28
call fcn.1400928f0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400929c0
add rsp, 0x10
lea rax, [rsp + 0x30]
push 0xf003f
push 0
push 0
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_OpenSCManagerW
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14003ba70
push 0xf01ff
push qword [rsp + 0x30]
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_OpenServiceW
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14003ba5b
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
call sub.ADVAPI32.dll_QueryServiceStatus
push qword [rsp + 0x58]
pop rcx
call sub.ADVAPI32.dll_CloseServiceHandle
push qword [rsp + 0x50]
pop rcx
call sub.ADVAPI32.dll_CloseServiceHandle
lea rbp, [rsp + 0x30]
movsxd rax, dword [rbp + 4]
jmp 0x14003ba73
xor rax, rax
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140092990
add rsp, 0x28
pop rax
add rsp, 0x60
pop rbp
ret
Function at 0x14003ba8d
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14003baa0
sub rsp, 0x28
call fcn.1400928f0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400929c0
add rsp, 0x10
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.1400929c0
add rsp, 0x10
push qword [rsp + 0x28]
pop rcx
call fcn.14003c4ec
push qword [rsp + 0x30]
movabs rcx, 0x140103be4
pop rdx
call fcn.140092760
or rax, rax
je 0x14003bbd1
cmp dword [0x14031a030], 0
je 0x14003bbaf
movabs rax, str.Advapi32.dll
push rax
push 0xffffffffffffffff
pop rcx
pop rdx
call fcn.1400656d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14003bbad
movabs rax, str.RegDeleteKeyExA
push rax
push qword [rsp + 0x40]
pop rcx
pop rdx
call fcn.140065758
mov qword [rsp + 0x40], rax
sub rsp, 8
push 0
movsxd r15, dword [0x14031a038]
or r15, 0xf003f
mov rax, r15
push rax
mov rax, qword [0x140319f5c]
mov rax, rax
push rax
push qword [0x140319f84]
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140066d84
add rsp, 0x30
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.1400655bc
jmp 0x14003bbcc
mov rax, qword [0x140319f5c]
mov rax, rax
push rax
push qword [0x140319f84]
pop rcx
pop rdx
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rsp + 0x48], rax
jmp 0x14003bc96
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push qword [0x140319f84]
push qword [rsp + 0x40]
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_RegConnectRegistryW
movsxd rax, eax
mov qword [rsp + 0x50], rax
cmp dword [0x14031a030], 0
je 0x14003bc7b
movabs rax, str.Advapi32.dll
push rax
push 0xffffffffffffffff
pop rcx
pop rdx
call fcn.1400656d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14003bc79
push 0
movsxd r15, dword [0x14031a038]
or r15, 0xf003f
mov rax, r15
push rax
mov rax, qword [0x140319f5c]
mov rax, rax
push rax
push qword [rsp + 0x70]
movabs rax, str.RegDeleteKeyExA
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140066288
add rsp, 0x30
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.1400655bc
jmp 0x14003bc96
mov rax, qword [0x140319f5c]
mov rax, rax
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rsp + 0x48], rax
mov r15, qword [rsp + 0x48]
and r15, r15
jne 0x14003bca9
mov rax, 1
jmp 0x14003bcac
xor rax, rax
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140092990
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140092990
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret
Function at 0x140041f24
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.DLL_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140314d00]
call sub.KERNEL32.DLL_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.DLL_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140042eac
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rbp, rax
test rax, rax
je 0x140042f72
lea rcx, [0x14031c9e0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x14031a658]
jmp 0x140042f36
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x140042f33
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x14031a658]
mov rdx, rsi
call fcn.14009236c
jmp 0x140042f36
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140042f03
mov rdx, qword [0x140314b48]
lea rcx, [0x14031a658]
mov rdi, rdx
inc rdx
mov qword [0x140314b48], rdx
lea edx, [rbx + 0x20]
call fcn.1400923b4
lea rcx, [0x14031c9e0]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140042f8c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140042d28
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateThread]
lea rcx, [0x14031c9e0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x14031a658]
jmp 0x140042fc8
cmp qword [rbx + 0x18], rdi
je 0x140042fcf
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140042fbf
jmp 0x140042fe9
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x14031a658]
call fcn.14009236c
lea rcx, [0x14031c9e0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]