joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402ac558
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [rcx], 0
mov rbx, qword [rsp + 0xe0]
jne 0x1402ac589
mov eax, dword [rcx + 8]
jmp 0x1402ac649
mov rcx, qword [rcx]
lea rdx, str.NetworkIsolationCreateAllInterfacesContainer
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov r10, rax
test rax, rax
jne 0x1402ac619
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x40], eax
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x1402ac613
and dword [rsp + 0x7c], 0
lea rax, [rsp + 0x40]
and dword [rsp + 0x8c], 0
mov edx, 4
mov qword [rsp + 0x70], rax
lea rax, str.Failed_to_get_address_of_NetworkIsolationCreateAllInterfacesContainer
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x88], 0x8c
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea rdx, [0x1403a4566]
call fcn.140001158
mov eax, dword [rsp + 0x40]
jmp 0x1402ac649
mov eax, dword [rsp + 0xd8]
lea rdx, str.Sense_Isolation_Command
mov qword [rsp + 0x28], rbx
lea rcx, str.SenseIsolation
mov dword [rsp + 0x20], eax
mov r9d, 1
mov rax, r10
xor r8d, r8d
call qword [str.PM_]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0xa0
pop rbx
ret

Function at 0x1402ac664
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x98
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rcx], 0
jne 0x1402ac68b
mov eax, dword [rcx + 8]
jmp 0x1402ac715
mov rcx, qword [rcx]
lea rdx, str.NetworkIsolationDeleteAllInterfacesContainer
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
jne 0x1402ac70f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x1402ac709
and dword [rsp + 0x6c], 0
lea rax, [rsp + 0x30]
and dword [rsp + 0x7c], 0
mov edx, 4
mov qword [rsp + 0x60], rax
lea rax, str.Failed_to_get_address_of_NetworkIsolationDeleteAllInterfacesContainer
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x78], 0x8c
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea rdx, [0x1403a4566]
call fcn.140001158
mov eax, dword [rsp + 0x30]
jmp 0x1402ac715
call qword [str.PM_]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0x98
ret
Function at 0x1402ac730
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rcx], 0
mov rdi, r8
mov ebx, edx
jne 0x1402ac762
mov eax, dword [rcx + 8]
jmp 0x1402ac7f1
mov rcx, qword [rcx]
lea rdx, str.FwAnalyzeFirewallPolicyOnProfile
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
jne 0x1402ac7e6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x30], eax
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x1402ac7e0
and dword [rsp + 0x6c], 0
lea rax, [rsp + 0x30]
and dword [rsp + 0x7c], 0
mov edx, 4
mov qword [rsp + 0x60], rax
lea rax, str.Failed_to_get_address_of_FwAnalyzeFirewallPolicyOnProfile
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x78], reloc.WS2_32.dll_WSACleanup
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea rdx, [0x1403a4566]
call fcn.140001158
mov eax, dword [rsp + 0x30]
jmp 0x1402ac7f1
mov rdx, rdi
mov ecx, ebx
call qword [str.PM_]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret

Function at 0x1402acdb0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x37], rax
and dword [rbp - 0x29], 0
mov rdi, r8
and qword [r8], 0
mov rbx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1402acde6
mov rdx, qword [rdx]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rdi], rax
test rax, rax
jne 0x1402acea6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rbp - 0x29], ecx
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x1402acea6
and dword [rbp + 0x13], 0
lea rax, [rbp - 0x29]
and dword [rbp + 0x23], 0
cmp qword [rbx + 0x18], 0x10
mov qword [rbp + 7], rax
lea rax, str.Failed_to_load_function:
mov qword [rbp + 0x17], rax
mov dword [rbp + 0xf], 4
mov dword [rbp + 0x1f], CreateCompressor
jb 0x1402ace55
mov rbx, qword [rbx]
xor eax, eax
lea rcx, [0x1403074f2]
test rbx, rbx
je 0x1402ace73
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x1402ace6a
inc eax
mov qword [rbp + 0x27], rcx
and dword [rbp + 0x33], 0
mov dword [rbp + 0x2f], eax
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403a45c1]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov eax, dword [rbp - 0x29]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402ae860
add rsp, 0xa0
pop rdi
pop rbx
pop rbp
ret
Function at 0x1402ae884
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14044f240], eax
call fcn.1402aef38
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x14044f240], 0
jne 0x1402ae8c7
mov ecx, 1
call fcn.1402aef38
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
Function at 0x1402b1610
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x18
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x88]
mov r13, rsi
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xd0]
mov qword [rsp], r8
mov r8d, dword [rsp + 0x98]
mov r14, rdx
mov r15, rcx
xor eax, eax
mov esi, dword [rsi]
mov ebx, dword [rbx]
mov qword [rsp + 8], rax
jmp 0x1402b1678
add eax, 1
add esi, 1
mov dword [rsp + 8], eax
cmp esi, dword [rsp + 0xa0]
jge 0x1402b17a9
cmp eax, dword [rsp + 0xa8]
jge 0x1402b17a9
movzx eax, byte [rsi + rdi + 2]
shl ebx, 5
xor ebx, eax
mov r11, rsi
and ebx, r8d
movsxd rbp, dword [r9 + rbx*4]
mov dword [r9 + rbx*4], esi
mov r12, rdi
sub r11, rbp
cmp r11d, dword [rsp + 0x90]
jge 0x1402b1779
cmp ebp, dword [rsp + 0xb0]
jge 0x1402b16cb
mov r12, qword [rsp]
movzx eax, word [rsi + rdi]
lea r10, [rsi + rdi]
movzx ecx, word [rbp + r12]
lea r12, [rbp + r12]
cmp eax, ecx
jne 0x1402b1779
xor ecx, ecx
mov rax, qword [rcx + r10]
mov rdx, qword [rcx + r12]
xor rax, rdx
jne 0x1402b1713
add ecx, 8
cmp ecx, 0x100
jl 0x1402b16e8
movzx eax, word [rcx + r10]
movzx edx, word [rcx + r12]
xor eax, edx
jne 0x1402b1713
add ecx, 2
jmp 0x1402b171d
bsf rax, rax
shr rax, 3
add ecx, eax
cmp ecx, 3
jl 0x1402b1779
lea rbp, [rsi + 1]
lea rsi, [rcx + rsi - 1]
lea rdx, [rcx - 3]
movzx ecx, byte [rbp + rdi + 2]
shl ebx, 5
xor ebx, ecx
and ebx, r8d
mov dword [r9 + rbx*4], ebp
add ebp, 1
cmp ebp, esi
jle 0x1402b172f
lea rcx, [r11 - 1]
cmp r11, 0x101
jl 0x1402b175d
shr ecx, 7
add ecx, 0x100
movzx ecx, byte [rcx + r13 + 0x100]
add word [r15 + rcx*4], 1
movzx ebp, byte [rdx + r13]
add ebp, 0x101
jmp 0x1402b1782
xor r11, r11
movzx edx, byte [rsi + rdi]
mov ebp, edx
add word [r14 + rbp*4], 1
mov eax, dword [rsp + 8]
mov rcx, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb8]
mov word [rcx + rax*2], r11w
mov byte [rax + rbp], dl
jmp 0x1402b166e
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
mov dword [rdi], esi
mov dword [rcx], ebx
add rsp, 0x18
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
pop rdi
pop rsi
ret
Function at 0x140001730
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x70], xmm7
mov ebp, edx
mov r14, rcx
test ebp, ebp
je 0x140001855
lea rcx, [0x14000cd20]
xor ebx, ebx
movabs rsi, 0xdbaf4383c59f19cf
call fcn.1400061f0
lea rcx, [0x14000cd00]
mov r15, rax
call fcn.1400061f0
movdqa xmm7, xmmword [0x140208030]
mov r12, rax
movdqa xmm6, xmmword [0x140208040]
lea rax, [0x14000b560]
mov qword [rsp + 0x28], rax
cmp byte [r15], 0
mov r13d, ebx
movaps xmmword [rsp + 0x30], xmm7
movzx edi, byte [r14 + rbx]
movaps xmmword [rsp + 0x40], xmm6
mov byte [rsp + 0x50], 0xcf
jne 0x140001808
mov rax, qword [rsp + 0x30]
mov byte [r12 + 0x21], 1
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x28]
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
mov qword [r12 + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [r12 + 0x10], rax
mov rax, qword [rsp + 0x48]
mov qword [r12 + 0x18], rax
mov eax, 0xffffffcf
mov byte [r12 + 0x20], al
mov byte [r15], 1
call fcn.140005930
cmp byte [r12 + 0x21], 0
je 0x14000183c
xor eax, eax
nop word [rax + rax]
mov rcx, rax
mov rdx, rsi
and ecx, 7
shl rcx, 3
shr rdx, cl
xor byte [r12 + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001818
mov byte [r12 + 0x21], 0
and r13d, 0x1f
xor dil, byte [r12 + r13]
mov byte [r14 + rbx], dil
add rbx, 1
cmp rbp, rbx
jne 0x1400017a0
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140004570
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
xor edx, edx
test rcx, rcx
mov rbx, r8
je 0x1400045a4
cmp word [rcx], 0x5a4d
jne 0x1400045a4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400045a4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400045a4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400044b0
test eax, eax
jne 0x1400045c0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140004520
test rax, rax
je 0x1400045b5
mov rcx, qword [rbx]
lea rdx, [rax + 0x10]
mov r9d, 8
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
call fcn.140004b46
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret
Function at 0x1400047e0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov r10d, dword [0x140206680]
test r10d, r10d
jne 0x1400049be
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400049ce
xor r9d, r9d
nop dword [rax + rax]
mov rdx, rax
movsxd rax, dword [rax + 0x3c]
mov eax, dword [rdx + rax + 0x88]
test eax, eax
je 0x14000485f
lea r9, [rdx + rax]
mov eax, dword [r9 + 0xc]
add rax, rdx
mov r8d, dword [rax]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x14000485f
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140004874
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x30]
test rax, rax
jne 0x140004820
test r9, r9
je 0x1400049ce
mov eax, dword [r9 + 0x18]
lea r13, [0x140206684]
xor r11d, r11d
mov edi, dword [r9 + 0x24]
mov r12d, dword [r9 + 0x1c]
lea ecx, [rax - 1]
mov eax, dword [r9 + 0x20]
add rdi, rdx
lea rbx, [rdi + rcx*2]
add r12, rdx
add rax, rdx
lea rsi, [rax + rcx*4]
jmp 0x1400048bc
lea rax, [rbx - 2]
sub rsi, 4
cmp rdi, rbx
je 0x140004940
mov rbx, rax
mov eax, dword [rsi]
add rax, rdx
cmp word [rax], 0x775a
jne 0x1400048a8
cmp byte [rax], 0
mov ecx, r11d
lea rbp, [r13 + rcx*8]
je 0x1400049db
cmp byte [rax + 1], 0
mov r8d, 0xbd705eb0
mov ecx, 1
mov r9d, 1
je 0x14000490e
movzx ecx, word [rax + rcx]
mov r14d, r8d
add r9d, 1
ror r14d, 8
add ecx, r14d
xor r8d, ecx
mov ecx, r9d
cmp byte [rax + rcx], 0
jne 0x1400048f0
movzx eax, word [rbx]
mov dword [rbp], r8d
add r11d, 1
cmp r11d, 0x1f4
mov eax, dword [r12 + rax*4]
mov dword [rbp + 4], eax
jne 0x1400048a8
mov dword [0x140206680], 0x1f4
mov r9d, 0x1f3
jmp 0x140004951
lea r9d, [r11 - 1]
cmp r11d, 1
mov dword [0x140206680], r11d
je 0x1400049be
lea esi, [r11 - 2]
lea rbx, [0x14020668c]
nop dword [rax]
mov eax, r11d
sub eax, r10d
cmp eax, 1
je 0x1400049b5
lea rax, [0x140206684]
mov edx, esi
sub edx, r10d
lea r8, [rbx + rdx*8]
nop dword [rax + rax]
mov edx, dword [rax + 4]
mov ecx, dword [rax + 0xc]
cmp ecx, edx
jae 0x1400049ac
movd xmm0, dword [rax]
movd xmm2, edx
movd xmm3, ecx
movd xmm1, dword [rax + 8]
punpckldq xmm0, xmm2
movq qword [rax + 8], xmm0
punpckldq xmm1, xmm3
movq qword [rax], xmm1
add rax, 8
cmp r8, rax
jne 0x140004980
add r10d, 1
cmp r10d, r9d
jb 0x140004960
mov eax, 1
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r8d, 0x770720ca
jmp 0x14000490e

Function at 0x140004a50
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.1400049f0
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 0x140004e90
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.14000af90
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.14000af90
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 0x140004f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14020b0a4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140005090
mov rax, qword [0x14020b0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140004f4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140004fd5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140004f30
mov rcx, rdi
call fcn.140005da0
test rax, rax
mov r12, rax
je 0x1400050e2
mov rax, qword [0x14020b0a8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140005ee0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14020b0a8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400050c5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004fce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005040
add dword [0x14020b0a4], 1
cmp ebx, 8
jae 0x140005001
test bl, 4
jne 0x1400050a0
test ebx, ebx
je 0x140004ff6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400050b4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140004ff6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000501a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14020b0a8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004fce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004e90
xor esi, esi
jmp 0x140004f57
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140004ff6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140004ff6
mov rax, qword [0x14020b0a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140004e90
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140004e90
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400056b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14020b100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14020b0e0]
test rbx, rbx
je 0x140005704
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400056fb
test rsi, rsi
je 0x1400056fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400056e0
lea rcx, [0x14020b100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
jmp 0x140005bd0
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x14020b148]
test eax, eax
mov rdi, rcx
mov rsi, rdx
je 0x140005c60
test r8, r8
je 0x140005c11
lea rax, [0x14020bc30]
cmp r8, rax
je 0x140005c11
lea rdx, str..._.._src_mingw_w64_mingw_w64_crt_crt_tls_atexit.c
mov r8d, 0x46
lea rcx, str._dso__dso____dso_handle
call sub.msvcrt.dll__assert
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x140005c60
mov qword [rax], rdi
mov ecx, dword [0x140207680]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140207680]
mov rdx, rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
jmp 0x140005bd0
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x14020b148]
test eax, eax
mov rdi, rcx
mov rsi, rdx
je 0x140005c60
test r8, r8
je 0x140005c11
lea rax, [0x14020bc30]
cmp r8, rax
je 0x140005c11
lea rdx, str..._.._src_mingw_w64_mingw_w64_crt_crt_tls_atexit.c
mov r8d, 0x46
lea rcx, str._dso__dso____dso_handle
call sub.msvcrt.dll__assert
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x140005c60
mov qword [rax], rdi
mov ecx, dword [0x140207680]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140207680]
mov rdx, rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140005da0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140208b20]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140005e0f
mov rcx, r9
call fcn.140005c70
test eax, eax
je 0x140005e0f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140005e0d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140005e04
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140005e0f
add rdx, 0x28
cmp rdx, r9
jne 0x140005df0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140006190
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x14020b1e0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x14020b1e8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400061e0
lea rdx, [0x1400060a0]
mov ecx, eax
mov dword [0x14020b1d8], eax
call fcn.14000b540
test eax, eax
jne 0x1400061e8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400061d7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400061f0
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 [str.pv__]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140006228
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140006290
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 0x1400062a0
mov esi, dword [0x14020b1d8]
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 0x140006310
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140006358
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140006217
mov rcx, rbx
call fcn.1400060f0
mov qword [rsi + r12*8 + 8], rax
jmp 0x140006217
call fcn.1400060f0
mov qword [rbx + 0x10], rax
jmp 0x140006217
mov r10d, dword [rsi]
test r10d, r10d
je 0x1400063ba
mov r9d, dword [0x140207690]
test r9d, r9d
je 0x1400063e8
lock add dword [0x14020b1e0], 1
jne 0x14000641c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x1400063c7
mov eax, dword [rsi]
test eax, eax
je 0x140006231
lock sub dword [0x14020b1e0], 1
js 0x140006231
mov rcx, qword [0x14020b1e8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140006231
lea rcx, [r12 + 0x21]
mov edx, 8
call sub.msvcrt.dll_calloc
lea rdi, [r12 + 0x20]
test rax, rax
mov rsi, rax
je 0x140006443
mov qword [rax], rdi
mov ecx, dword [0x14020b1d8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000626b
call r13
jmp 0x14000626b
lea rdi, [rbp + rbp]
mov rcx, rsi
lea rax, [r12 + 0x20]
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rsi, rax
je 0x140006443
mov qword [rax], rdi
lea rcx, [rax + rbp*8 + 8]
sub rdi, rbp
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140006333
call fcn.140006190
mov dword [0x140207690], 1
mov edx, dword [rsi]
test edx, edx
jne 0x1400062bc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140006231
mov rax, qword [0x14020b1d0]
lea r12, [rax + 1]
mov qword [0x14020b1d0], r12
mov qword [rbx + 0x10], r12
jmp 0x1400062d7
lock add dword [0x140207694], 1
je 0x1400063a1
mov r8d, dword [0x140207690]
lea rdi, [0x140207690]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x1400063b0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140006410
jmp 0x1400063b0
mov rcx, qword [0x14020b1e8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400062ca
lock sub dword [0x14020b1e0], 1
jmp 0x1400062ca
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140006460
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14000646a
mov qword [rcx + 8], r8
test r9, r9
je 0x140006474
cmp qword [rcx], rdx
je 0x140006478
ret
mov qword [rcx + 0x18], r9
ret