joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007f90
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rsi
push r14
sub rsp, 0x88
mov rax, qword [0x14003a018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14d, edx
mov rsi, rcx
cmp edx, 3
jbe 0x140007fbc
xor eax, eax
jmp 0x1400080f5
mov qword [rsp + 0xb0], rbx
lea rdx, str.ServicesActive
mov qword [rsp + 0x80], rbp
xor ecx, ecx
mov qword [rsp + 0x78], rdi
xor edi, edi
mov qword [rsp + 0x70], r15
mov r15d, edi
lea r8d, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140008039
lea r8d, [rdi + 0x20]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
je 0x14000802b
lea r8, [rsp + 0x40]
mov rcx, rax
lea edx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbp
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r15d, r15d
jne 0x14000805e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x14000805e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x3e8
cmp eax, 0x425
jne 0x1400080c9
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1400080c4
mov r8d, 0x10004
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000811e
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000811e
cmp dword [rsp + 0x24], 1
mov rcx, rbx
je 0x14000810d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [r14 + 1]
mov rcx, rsi
call fcn.140007f90
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000b000
add rsp, 0x88
pop r14
pop rsi
ret
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x1400080c4
mov eax, edi
jmp 0x1400080db
Function at 0x140008b70
Capabilities:
Get file version info

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14003a018]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
lea rdx, [rsp + 0x3c]
mov rbp, rcx
mov dword [rsp + 0x3c], eax
mov rcx, r8
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov rsi, r8
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x140008c45
mov ecx, edi
mov qword [rsp + 0x78], rbx
mov edx, 1
call fcn.14000d400
mov rbx, rax
test rax, rax
je 0x140008c40
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140008c38
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8, [rsp + 0x30]
lea rdx, [0x14002b2cc]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140008c38
cmp dword [rsp + 0x38], 0
je 0x140008c38
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0xfeef04bd
jne 0x140008c38
mov r9d, dword [rax + 0xc]
lea r8, str._ld__ld
movzx eax, r9w
mov edx, pe_nt_image_headers64
shr r9d, 0x10
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.1400045d0
mov rcx, rbx
call fcn.14000e90c
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000b000
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009e90
Capabilities:
Access firewall policy via inetfwpolicy2
Access firewall rule properties via inetfwrule

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14003a018]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov r12d, edx
mov r15, rcx
mov qword [rsp + 0x40], rbx
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov rdi, r8
mov qword [rsp + 0x30], rbx
lea edx, [rbx + 2]
mov r14d, ebx
mov ebp, ebx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, 0x80000000
mov esi, eax
add eax, ecx
test ecx, eax
jne 0x140009eed
cmp esi, 0x80010106
jne 0x140009f17
xor edx, edx
lea rax, [rsp + 0x40]
lea r9, [0x14002db50]
mov qword [rsp + 0x20], rax
lea rcx, [0x14002db80]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
jns 0x140009f21
mov edi, 0x80004005
jmp 0x14000a034
mov edx, 0x14
mov rcx, rdi
call fcn.140008130
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, r15
mov r14, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rbp, rax
mov r9, qword [rcx]
call qword [r9 + 0x90]
mov edi, eax
test eax, eax
js 0x14000a034
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x14002db60]
mov qword [rsp + 0x20], rax
lea rcx, [0x14002db70]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x14000a034
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + 0x60]
mov rcx, qword [rsp + 0x30]
mov edx, pe_nt_image_headers64
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rcx, qword [rsp + 0x30]
mov edx, r12d
mov rax, qword [rcx]
call qword [rax + 0xe0]
mov rcx, qword [rsp + 0x30]
mov edx, 0x7fffffff
mov rax, qword [rcx]
call qword [rax + 0x130]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [rsp + 0x30]
mov edx, 0xffffffff
mov rax, qword [rcx]
call qword [rax + 0x110]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov edi, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000a044
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000a054
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000a064
mov rax, qword [rcx]
call qword [rax + 0x10]
test rbx, rbx
je 0x14000a072
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r14, r14
je 0x14000a080
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbp, rbp
je 0x14000a08e
mov rcx, rbp
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
js 0x14000a098
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000b000
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a190
Capabilities:
Access peb ldr_data
Encode data using xor
Get process filename

Disassembly:
sub rsp, 0x38
cmp dword [0x14003ca80], 0
jne 0x14000a38d
mov rax, qword gs:[0x60]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x58], rdi
xor edi, edi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x14000a215
nop word [rax + rax]
mov rcx, qword [rbx + 0x60]
lea rdx, [0x14002aed0]
mov r8d, 0x12
call fcn.14000ea4c
test eax, eax
je 0x14000a218
mov rax, qword gs:[0x60]
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
cmp rbx, qword [rcx + 0x10]
je 0x14000a215
test rbx, rbx
jne 0x14000a1e0
mov rbx, rdi
mov rcx, qword [rbx + 0x30]
mov edx, 1
call fcn.140007890
mov rsi, rax
lea r15, [0x14003ca80]
mov r14d, edi
mov ebp, edi
cmp dword [rax + 0x50], edi
jbe 0x14000a310
mov qword [rsp + 0x30], r12
mov r12d, 0x775a
nop dword [rax]
mov rax, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x18]
mov ecx, ebp
mov r9d, dword [rax + rcx*4]
cmp dword [rsi], edi
je 0x14000a268
lea rdx, [rbx + r9]
jmp 0x14000a2a3
mov rax, qword [rsi + 0x20]
mov r8d, edi
mov r11, qword [rsi + 0x38]
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x14000a2a0
lea rax, [r11 + 8]
mov edx, dword [rax + 4]
cmp edx, r9d
ja 0x14000a294
add edx, dword [rax]
cmp r9d, edx
jb 0x14000a397
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x14000a281
mov rdx, rdi
cmp word [rdx], r12w
jne 0x14000a300
mov r9d, edi
mov r8d, 0xe14b0d06
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, rdx
xor r8d, ecx
cmp byte [rax], dil
jne 0x14000a2c0
mov eax, r14d
lea rcx, [rax + rax*2]
lea rbx, [rcx*4]
mov rcx, rsi
mov dword [rbx + r15 + 4], r8d
call fcn.1400079d0
mov dword [rbx + r15 + 8], eax
inc r14d
inc ebp
cmp ebp, dword [rsi + 0x50]
jb 0x14000a250
mov r12, qword [rsp + 0x30]
mov edx, r14d
lea r9, [0x14000a150]
mov r8d, 0xc
mov dword [0x14003ca80], r14d
lea rcx, [0x14003ca84]
call fcn.1400119f0
mov eax, dword [0x14003ca80]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test eax, eax
je 0x14000a368
mov eax, edi
lea rdx, [rax + rax*2]
mov dword [r15 + rdx*4 + 0xc], edi
inc edi
mov eax, dword [0x14003ca80]
cmp edi, eax
jb 0x14000a351
mov edx, eax
lea r9, [0x14000a170]
mov r8d, 0xc
lea rcx, [0x14003ca84]
call fcn.1400119f0
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x38
ret
mov eax, r8d
lea rcx, [rax + rax*4]
lea rdx, [r11 + rcx*8]
test rdx, rdx
je 0x14000a2a0
sub r9d, dword [rdx + 0xc]
mov edx, dword [rdx + 0x14]
mov eax, r9d
add rax, rbx
add rdx, rax
jmp 0x14000a2a3
Function at 0x14000af20
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [section..data]
call fcn.14000a3c0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000d3f4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000d287
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d287
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d287
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d287
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d287
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d287
cmp dword [rcx + 0xf8], 0
je 0x14000d287
mov ecx, ebx
call fcn.14000d328
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000d118
cmp dword [rbp + 0x20], 0
je 0x14000d2d4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d2dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d220
Function at 0x1400171e4
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400171c1
call fcn.14000f064
mov dword [rax], 0x16
call fcn.14000ef44
or eax, 0xffffffff
jmp 0x1400171de
sub dword [rcx + 0x10], 1
jns 0x1400171d0
add rsp, 0x28
jmp 0x14001dd34
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400171a0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x14001dd66
call fcn.14000f064
mov dword [rax], 0x16
call fcn.14000ef44
jmp 0x14001de83
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001de83
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001de83
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001dd95
lock or dword [rcx + 0x14], 0x10
jmp 0x14001de83
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001dda9
call fcn.14001fcac
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14001606c
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.14001e5e8
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001de71
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x14001de3c
mov rcx, rdi
call fcn.14001606c
cmp eax, esi
je 0x14001de27
mov rcx, rdi
call fcn.14001606c
cmp eax, 0xfffffffe
je 0x14001de27
mov rcx, rdi
call fcn.14001606c
movsxd rbx, eax
lea r14, [0x14003b940]
mov rcx, rdi
sar rbx, 6
call fcn.14001606c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001de2e
lea rdx, [0x14003a300]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001de3c
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x14001de60
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x14001de60
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x14001de60
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x14001de86
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14001dea0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14001dbc6
call fcn.14000f064
mov dword [rax], 0x16
call fcn.14000ef44
jmp 0x14001dd11
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001dd11
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001dd11
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001dbf5
lock or dword [rcx + 0x14], 0x10
jmp 0x14001dd11
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001dc09
call fcn.14001fcac
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14001dc19
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14001dc1c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14001606c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14001e5e8
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14001dcff
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14001dcad
mov rcx, rbx
call fcn.14001606c
cmp eax, 0xffffffff
je 0x14001dc98
mov rcx, rbx
call fcn.14001606c
cmp eax, 0xfffffffe
je 0x14001dc98
mov rcx, rbx
call fcn.14001606c
movsxd rdi, eax
lea r14, [0x14003b940]
mov rcx, rbx
sar rdi, 6
call fcn.14001606c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14001dc9f
lea rdx, [0x14003a300]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001dcad
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14001dcd1
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14001dcd1
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14001dcd1
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14001dcef
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14001dcfa
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14001dd16
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14001db90
Function at 0x140003a60
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a94
cmp word [rcx], 0x5a4d
jne 0x140003a94
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a94
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a94
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400039a0
test eax, eax
jne 0x140003ab0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a10
test rax, rax
je 0x140003aa5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000425c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004160
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004100
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140009764
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1405791b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1405791b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400097b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400097aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140009899
inc ebx
add rax, 0x28
jmp 0x14000978a
mov rcx, r12
call fcn.140009f91
mov rbp, rax
test rax, rax
jne 0x1400097d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140009700
movsxd rbx, ebx
mov rax, qword [0x1405791b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000a03f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1405791b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140009833
mov rax, qword [0x1405791b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140009700
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140009893
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140009893
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1405791b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140009893
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140009700
inc dword [0x1405791b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140009cc0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140579220]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140579200]
test rbx, rbx
je 0x140009d0c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140009d06
test eax, eax
jne 0x140009d06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140009cde
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140009ec0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140009ee3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140009ee3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140009ee4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140009f1e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140009f15
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140009f20
inc r8d
add rax, 0x28
jmp 0x140009efc
xor eax, eax
ret

Function at 0x140009f91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14056ebd0]
mov r8, rcx
mov rcx, r9
call fcn.140009ec0
test eax, eax
je 0x140009fbd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140009ee4
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000ea13
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14056a198], eax
inc eax
jne 0x14000ea2d
call sub.msvcrt.dll_abort
nop
add rsp, 0x28
ret

Function at 0x14000eba1
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rbx, rcx
test rcx, rcx
je 0x14000ec3d
call fcn.1400111ca
dec eax
jne 0x14000ec36
xor eax, eax
lea rdi, [rsp + 0x25]
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x4d]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x4c]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
mov eax, 0x27
lea rcx, [rsp + 0x25]
cmp byte [rcx + rax], 0
je 0x14000ec15
inc rax
cmp rax, 0x6b
jne 0x14000ec04
jmp 0x14000ec2b
cmp eax, 0x6a
je 0x14000ec2b
movsxd rdx, eax
inc eax
cdqe
mov byte [rsp + rdx + 0x25], 0xa
mov byte [rsp + rax + 0x25], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000ecdf
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
call fcn.14000ec48
mov ecx, dword [0x14056a198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x14000edee
call fcn.14000eaf5
cmp qword [0x14057c048], 0
mov rbx, rax
je 0x14000edee
test rax, rax
je 0x14000edee
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000eba1
xor edx, edx
xor ecx, ecx
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], edx
mov qword [rbx + 0x28], rcx
call rdi
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rdi
xor r8d, r8d
mov dword [rsp + 0x30], 2
mov rdx, rsi
mov dword [rsp + 0x28], r8d
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], r8d
mov r8, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x14000edb4
call sub.msvcrt.dll_abort
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14056a198]
mov rdx, rbx
mov dword [rbx + 0xc0], eax
xor eax, eax
mov dword [rbx + 0xbc], eax
mov al, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000edaf
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000f96f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.14000ecdf
mov qword [rax + 8], rsi
mov rcx, qword [rax + 0x1d8]
mov rbx, rax
call fcn.14000f447
test byte [rbx + 0x40], 0x30
jne 0x14000f9a8
lea rcx, [rbx + 0xd0]
mov edx, 1
call qword [sym.imp.msvcrt.dll_longjmp]
mov ecx, dword [0x14056a198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000fa33
cmp qword [rax + 0x28], 0
mov rcx, qword [rax + 0x30]
jne 0x14000f9e3
mov dword [rax], 0xdeadbeef
test rcx, rcx
je 0x14000f9d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov esi, dword [rbx + 8]
mov qword [rbx + 0x30], rcx
jmp 0x14000fa1d
mov dword [rax + 0xbc], 1
mov esi, dword [rax + 8]
test rcx, rcx
je 0x14000f9fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov qword [rbx + 0x30], rdx
test byte [rbx + 0x44], 4
je 0x14000fa33
mov dword [rbx], 0xdeadbeef
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov qword [rbx + 0x28], rax
mov rcx, rbx
call fcn.14000edf9
mov ecx, dword [0x14056a198]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
nop