joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004130
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.1400040d0
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 0x140004584
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140535f78]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140535f74]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400045d2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400045ca
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400046b9
inc ebx
add rax, 0x28
jmp 0x1400045aa
mov rcx, r12
call fcn.140004db1
mov rbp, rax
test rax, rax
jne 0x1400045f1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004520
movsxd rbx, ebx
mov rax, qword [0x140535f78]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e5f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140535f78]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004653
mov rax, qword [0x140535f78]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004520
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400046b3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400046b3
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 [0x140535f78]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400046b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004520
inc dword [0x140535f74]
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 0x140004ae0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140535fe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140535fc0]
test rbx, rbx
je 0x140004b2c
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 0x140004b26
test eax, eax
jne 0x140004b26
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004afe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004ce0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004d03
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004d03
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140004d04
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 0x140004d3e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d35
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d40
inc r8d
add rax, 0x28
jmp 0x140004d1c
xor eax, eax
ret

Function at 0x140004db1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405320f0]
mov r8, rcx
mov rcx, r9
call fcn.140004ce0
test eax, eax
je 0x140004ddd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004d04
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400108d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp byte [rcx + 8], 0
mov r9, rcx
je 0x14001090b
xor ecx, ecx
cmp dword [r9 + 0x3d0], ecx
jle 0x140010906
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
inc ecx
xor byte [rdx], al
lea rdx, [rdx + 1]
cmp ecx, dword [r9 + 0x3d0]
jl 0x1400108f0
add rsp, 0x48
ret
mov rdx, qword [0x14006f850]
lea rcx, [rsp + 0x20]
call fcn.14000d430
lea rdx, [0x14006b568]
lea rcx, [rsp + 0x20]
call fcn.1400152c4
int3

Function at 0x1400209b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002071c
Function at 0x140032380
Capabilities:
Check http status code

Disassembly:
mov r11, rsp
push r14
sub rsp, 0xa0
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x14006d080]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rsi, rcx
xor dil, dil
lea rcx, [r11 - 0x30]
call fcn.14000e030
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140008930
mov rdx, rax
xor ecx, ecx
call fcn.140032bf0
mov r8d, eax
mov r14d, 1
mov r9d, r14d
mov rcx, rsi
call fcn.140032cf0
nop
lea rcx, [rsp + 0x78]
call fcn.140009760
cmp byte [rsi + 0x20], dil
je 0x140032499
lea rcx, [rsp + 0x78]
call fcn.140032b70
nop
mov rcx, rax
call fcn.140008db0
mov rdx, rax
mov dword [rsp + 0x30], 0x4080000
lea r8, [0x14005efd0]
mov rcx, qword [rsi + 0x30]
call fcn.1400446d0
mov rbx, rax
lea rcx, [rsp + 0x78]
call fcn.140008e70
test rbx, rbx
je 0x140032491
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140044610
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 4
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov edx, 0x20000013
mov rcx, rbx
call fcn.140006630
movzx edi, dil
cmp dword [rsp + 0x40], 0xc8
cmove edi, r14d
mov rcx, rbx
call fcn.140037f30
mov rcx, rsi
call fcn.140032cb0
movzx eax, dil
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140013780
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140033720
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call fcn.140001920
test eax, eax
js 0x140033984
mov ecx, dword [rbx + 0xf0]
lea eax, [rcx*4]
movsxd r9, eax
test eax, eax
jle 0x1400337b3
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop dword [rax]
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140033760
mov ecx, dword [rbx + 0xf0]
mov r11d, 1
cmp ecx, r11d
jle 0x140033982
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 4]
lea rdi, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [r10 + 0x10]
lea r10, [r10 + 0x10]
mov edx, dword [r10 - 4]
inc r11d
movzx eax, byte [r10 - 3]
movzx ecx, byte [rdi + rax*4 + 0x58a60]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x57e60]
movzx eax, byte [rdi + rax*4 + 0x58a60]
xor r8d, dword [rdi + rax*4 + 0x58660]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x58a60]
movzx eax, byte [r10 - 2]
xor r8d, dword [rdi + rcx*4 + 0x57a60]
movzx ecx, byte [rdi + rax*4 + 0x58a60]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x58260]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x58a60]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x58260]
movzx eax, byte [rdi + rcx*4 + 0x58a60]
xor r8d, dword [rdi + rax*4 + 0x57e60]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x58a60]
movzx eax, r9b
mov r9d, dword [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x58660]
movzx ecx, byte [rdi + rax*4 + 0x58a60]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x57a60]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10], r8d
movzx edx, byte [rdi + rcx*4 + 0x58a60]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x58260]
movzx eax, byte [rdi + rcx*4 + 0x58a60]
xor r8d, dword [rdi + rax*4 + 0x57e60]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x58a60]
movzx eax, r9b
mov r9d, dword [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x58660]
movzx ecx, byte [rdi + rax*4 + 0x58a60]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x57a60]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x58a60]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x58260]
movzx eax, byte [rdi + rcx*4 + 0x58a60]
xor r8d, dword [rdi + rax*4 + 0x57e60]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x58a60]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x58660]
movzx ecx, byte [rdi + rax*4 + 0x58a60]
xor r8d, dword [rdi + rcx*4 + 0x57a60]
mov dword [r10 + 8], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x1400337e0
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140037000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x1030]
mov eax, 0x1130
call fcn.140014440
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1150], rbx
mov rax, qword [0x14006d080]
xor rax, rsp
mov qword [rbp + 0x1020], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
call fcn.140008d20
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140036d30
nop
lea rcx, [rsp + 0x30]
call fcn.140008e70
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x820]
call fcn.140015820
lea rcx, [rsp + 0x50]
call fcn.14000f460
mov r10, rax
xor r8d, r8d
test rax, rax
je 0x1400370bf
mov edx, r8d
lea r9, [rbp + 0x820]
nop dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14000f440
movzx ecx, byte [rax]
mov byte [r9], cl
inc r8d
lea r9, [r9 + 1]
movsxd rdx, r8d
cmp rdx, r10
jb 0x1400370a0
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0xc20]
call fcn.140015820
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x420]
call fcn.140015820
mov word [rbp + 0x40e], 0x3939
mov dword [rbp + 0x3f0], 0x37383843
mov dword [rbp + 0x3ff], 0x42324436
mov dword [rbp + 0x3f5], 0x44433234
mov word [rbp + 0x408], 0x4342
mov dword [rbp + 0x403], 0x42413436
mov word [rbp + 0x3fc], 0x3945
mov word [rbp + 0x3f9], 0x4132
mov byte [rbp + 0x410], 0
mov byte [rbp + 0x3fb], 0x37
mov byte [rbp + 0x3f4], 0x44
mov word [rbp + 0x40b], 0x3836
mov byte [rbp + 0x40a], 0x46
mov byte [rbp + 0x407], 0x43
mov byte [rbp + 0x3fe], 0x46
mov byte [rbp + 0x40d], 0x46
lea r8, [rbp + 0x3f0]
mov edx, 0x400
lea rcx, [rbp + 0x420]
call fcn.140017dc4
lea rcx, [rsp + 0x70]
call fcn.140037e30
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x420]
lea rcx, [rsp + 0x70]
call fcn.140042600
lea rcx, [rsp + 0x50]
call fcn.14000f460
mov r9, rax
lea r8, [rbp + 0xc20]
lea rdx, [rbp + 0x820]
lea rcx, [rsp + 0x70]
call fcn.140006020
lea rdx, [rbp + 0xc30]
mov rcx, rbx
call fcn.140008d20
nop
lea rcx, [rsp + 0x50]
call fcn.14000f510
mov rax, rbx
mov rcx, qword [rbp + 0x1020]
xor rcx, rsp
call fcn.140013780
mov rbx, qword [rsp + 0x1150]
add rsp, 0x1130
pop rbp
ret
Function at 0x1400022a2
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x1400022c1
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400158c8

Function at 0x140004f07
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [fcn.140015300]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400158c8

Function at 0x140004f46
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1400f80f0], 0
jne 0x140004f5e
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004f07
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140004e80
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1400f80f0]
test rbx, rbx
je 0x140004f8f
test byte [rbx + 7], 0x40
jne 0x140004f8f
mov rcx, rbx
call fcn.14000332c
lea rcx, [0x1400162e0]
call fcn.1400100e0
cmp byte [rax], 0
je 0x140004fc7
mov byte [rax], 0
lea rcx, [0x1400161e0]
call fcn.1400100e0
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140003891
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x14000563d
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1400f80c0]
xor ebx, ebx
lea r14, [0x1400162e0]
mov rsi, rcx
mov rdi, rdx
lea r13, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [fcn.140015300]
mov ecx, 1
cmp rbx, rdi
jl 0x1400056c3
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400172db]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.1400158c8
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movups xmmword [rsp + 0x20], xmm0
call fcn.140005517
mov rcx, r14
call fcn.1400100e0
cmp byte [rax], 0
jne 0x1400056f5
inc rbx
jmp 0x140005676
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000c299
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14000c2d7
cmp word [rcx], 0x5a4d
jne 0x14000c2d7
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x14000c2d7
call fcn.140006824
mov rcx, qword [0x1400f3960]
mov rbx, rax
call fcn.1400100e0
cmp byte [rax], 0
jne 0x14000c2d7
cmp dword [rbx], 0x4550
je 0x14000c2d9
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000f1b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140015300
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.140015300
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 0x14000f220
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f8a74]
mov rbx, rcx
test esi, esi
jle 0x14000f350
mov rax, qword [0x1400f8a78]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000f26b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000f2f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000f250
mov rcx, rbx
call fcn.14000fc70
mov rdi, rax
test rax, rax
je 0x14000f372
mov rax, qword [0x1400f8a78]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000fdb0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f8a78]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f357
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f2ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f300
add dword [0x1400f8a74], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x1400f8a78]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f2ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000f1b0
nop dword [rax]
xor esi, esi
jmp 0x14000f278
mov rax, qword [0x1400f8a78]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000f1b0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000f1b0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000f8e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f8ae0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f8ac0]
test rbx, rbx
je 0x14000f93c
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 0x14000f933
test rsi, rsi
je 0x14000f933
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000f918
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 0x14000fc70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400f3970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000fc90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000fc98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000fc90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000fced
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]
mov rdx, r8
cmp rcx, r8
jb 0x14000fce4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000fc90
add rax, 0x28
cmp rax, r9
jne 0x14000fcd0
xor eax, eax
ret

Function at 0x14000fcf0
Capabilities:
Parse pe header

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

Function at 0x14000fdb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400f3970]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000fdcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000fdd8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140010080
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400f8b60], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400f8b68], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400100d0
lea rdx, [0x14000ff90]
mov ecx, eax
mov dword [0x1400f8b58], eax
call fcn.140015a20
test eax, eax
jne 0x1400100d8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400100c7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400100e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400f3900]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140010118
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140010180
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140010190
mov esi, dword [0x1400f8b58]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140010200
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140010248
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140010107
mov rcx, rbx
call fcn.14000ffe0
mov qword [rsi + r12*8 + 8], rax
jmp 0x140010107
call fcn.14000ffe0
mov qword [rbx + 0x10], rax
jmp 0x140010107
mov r10d, dword [rsi]
test r10d, r10d
je 0x1400102aa
mov r9d, dword [0x1400164a0]
test r9d, r9d
je 0x1400102d8
lock add dword [0x1400f8b60], 1
jne 0x14001030c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x1400102b7
mov eax, dword [rsi]
test eax, eax
je 0x140010121
lock sub dword [0x1400f8b60], 1
js 0x140010121
mov rcx, qword [0x1400f8b68]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140010121
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x140010333
mov qword [rax], rdi
mov ecx, dword [0x1400f8b58]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14001015b
call r13
jmp 0x14001015b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x140010333
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140010223
call fcn.140010080
mov dword [0x1400164a0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x1400101ac
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140010121
mov rax, qword [0x1400f8b50]
lea r12, [rax + 1]
mov qword [0x1400f8b50], r12
mov qword [rbx + 0x10], r12
jmp 0x1400101c7
lock add dword [0x1400164a4], 1
je 0x140010291
mov r8d, dword [0x1400164a0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400164a0]
test r8d, r8d
jne 0x1400102a0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140010300
jmp 0x1400102a0
mov rcx, qword [0x1400f8b68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400101ba
lock sub dword [0x1400f8b60], 1
jmp 0x1400101ba
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140010350
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14001035a
mov qword [rcx + 8], r8
test r9, r9
je 0x140010364
cmp qword [rcx], rdx
je 0x140010368
ret
mov qword [rcx + 0x18], r9
ret