joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016830
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x1400480c8]
test esi, esi
je 0x1400168d5
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400168cc
je 0x140016879
test rdi, rdi
je 0x14001687d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14001687f
mov rbx, qword [rdi + 8]
jmp 0x14001687f
xor eax, eax
jmp 0x1400168cc
xor ebx, ebx
movzx eax, byte [0x14008e108]
mov edx, 0x10
xor ecx, ecx
call fcn.140037990
test rax, rax
je 0x1400168e8
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400168c9
mov edx, 8
mov rcx, rdi
call fcn.1400031a0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400480b0]
call fcn.140016ac0
mov esi, eax
jmp 0x140016850
mov ecx, 8
mov edx, 0x10
call fcn.1400027a0
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1400480e8]
test esi, esi
je 0x1400169a0
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140016997
je 0x140016995
movzx eax, byte [0x14008e108]
mov edx, 0x10
xor ecx, ecx
call fcn.140037990
test rax, rax
je 0x1400169b3
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140016990
mov rax, qword [rdi]
test rax, rax
je 0x140016983
lock dec qword [rax]
jne 0x140016983
mov rcx, rdi
call fcn.140015350
mov edx, 8
mov rcx, rdi
call fcn.1400031a0
mov rax, rsi
jmp 0x140016997
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400480d0]
call fcn.140016ac0
mov esi, eax
jmp 0x14001691d
mov ecx, 8
mov edx, 0x10
call fcn.1400027a0
int3
Function at 0x140016ac0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x140016b55
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x140016b94
cmp dword [rbp], 0
je 0x140016b78
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140016ba9
mov edi, eax
mov rax, qword [0x140091038]
mov rax, qword [0x14008e0f8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14008e0f8], rsi
jne 0x140016b30
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140016b89
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140016beb
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140016b7d
mov edi, dword [rbp + 4]
jmp 0x140016b89
mov edi, dword [rsi + 0x18]
jmp 0x140016b87
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.140016c20
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.1400032d0
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.140016c70
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x140048088]
test esi, esi
je 0x14001704a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140017041
je 0x14001703f
movzx eax, byte [0x14008e108]
mov edx, 0x18
xor ecx, ecx
call fcn.140037990
test rax, rax
je 0x14001705d
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14001703a
mov edx, 8
mov rcx, rdi
call fcn.1400031a0
mov rax, rsi
jmp 0x140017041
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140048070]
call fcn.140016ac0
mov esi, eax
jmp 0x140016fd9
mov ecx, 8
mov edx, 0x18
call fcn.1400027a0
int3
Function at 0x140036000
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rbp - 0x60]
call fcn.140035be0
mov rax, qword [rbp - 0x60]
cmp rax, rdi
jne 0x14003604b
lea rcx, [rbp - 0x58]
call fcn.1400158f0
mov qword [rsi], rdi
jmp 0x140036284
mov qword [rbp + 0x3f0], rsi
mov qword [rbp + 0x3e8], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3f8], rax
mov qword [rbp + 0x400], 0
mov qword [rbp + 0x408], 2
mov qword [rbp + 0x410], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e0], rax
xor esi, esi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400360d0
jmp 0x1400360bf
jae 0x140036193
cmp r8, 0x201
jae 0x1400360d0
mov edi, 0x200
lea r13, [rbp - 0x60]
mov r15, r8
jmp 0x140036128
sub r8, r12
sub rbx, r12
cmp r8, rbx
jbe 0x1400360ff
lea rcx, [rbp + 0x400]
mov rdx, r12
call fcn.1400193e0
mov rsi, qword [rbp + 0x400]
mov rax, qword [rbp + 0x408]
mov qword [rbp + 0x3e0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov r12d, 0xffffffff
cmovb r12, rsi
mov qword [rbp + 0x410], r12
mov rbx, rsi
mov rdi, r12
mov r13, qword [rbp + 0x3e0]
mov r15, r12
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rbp + 0x3f8]
mov rdx, r13
mov r8d, r15d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r14d, eax
test eax, eax
jne 0x140036155
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140036213
mov r8d, r14d
cmp r15, r8
jne 0x1400360b0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140036299
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400360bf
jmp 0x1400360d0
cmp rdi, r8
jb 0x1400362b3
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.140018120
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
cmp qword [rbp + 0x400], 0
mov rsi, qword [rbp + 0x3f0]
je 0x1400361f3
mov rcx, qword [rbp + 0x408]
mov edx, 2
call fcn.1400031a0
cmp qword [rbp + 0x3c0], rdi
je 0x14003625a
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140036269
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3c0], rdi
cmp qword [rbp + 0x400], 0
je 0x140036253
mov rcx, qword [rbp + 0x408]
mov edx, 2
call fcn.1400031a0
mov rsi, qword [rbp + 0x3f0]
mov qword [rsi], rdi
lea rcx, [rbp + 0x3c8]
call fcn.1400158f0
cmp qword [rbp + 0x3e8], 0
je 0x140036284
mov edx, 2
mov rcx, qword [rbp + 0x3f8]
call fcn.1400031a0
nop
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.internal_error:_entered_unreachable_code_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_core_1.12.1_src_job.rs
lea r8, str.RS_b_
mov edx, 0x28
call fcn.140003f30
jmp 0x1400362c8
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.140003c50
ud2
Function at 0x140036f70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x1400480a8]
test esi, esi
je 0x140037010
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140037007
je 0x140037005
movzx eax, byte [0x14008e108]
mov edx, 0x10
xor ecx, ecx
call fcn.140037990
test rax, rax
je 0x140037023
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140037000
mov rax, qword [rdi]
test rax, rax
je 0x140036ff3
lock dec qword [rax]
jne 0x140036ff3
mov rcx, qword [rdi]
call fcn.140037040
mov edx, 8
mov rcx, rdi
call fcn.1400031a0
mov rax, rsi
jmp 0x140037007
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140048090]
call fcn.140016ac0
mov esi, eax
jmp 0x140036f8d
mov ecx, 8
mov edx, 0x10
call fcn.1400027a0
int3

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov esi, dword [0x140048128]
test esi, esi
je 0x14003b514
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x14003b507
je 0x14003b4bf
test rdi, rdi
je 0x14003b4c3
cmp dword [rdi], 0
je 0x14003b4c8
mov r14, qword [rdi + 4]
jmp 0x14003b4cb
xor ebx, ebx
jmp 0x14003b507
xor r14d, r14d
jmp 0x14003b4ce
xor r14d, r14d
and dword [rdi], 0
mov ecx, 0xc
mov edx, 4
call fcn.14003f024
mov rbx, rax
mov qword [rax], r14
mov dword [rax + 8], esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14003b507
mov rcx, rdi
call fcn.14000a4f7
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140048110]
call fcn.140016ac0
mov esi, eax
jmp 0x14003b49d

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov esi, dword [0x140048108]
test esi, esi
je 0x14000bcc8
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x14000bcbb
je 0x14000bc7b
test rdi, rdi
je 0x14000bc7f
mov r14, qword [rdi]
and qword [rdi], 0
test r14, r14
je 0x14000bc82
mov r14, qword [rdi + 8]
jmp 0x14000bc82
xor ebx, ebx
jmp 0x14000bcbb
xor r14d, r14d
mov ecx, 0x10
mov edx, 8
call fcn.14003f024
mov rbx, rax
mov qword [rax], r14
mov dword [rax + 8], esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14000bcbb
mov rcx, rdi
call fcn.14000b632
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400480f0]
call fcn.140016ac0
mov esi, eax
jmp 0x14000bc52
jmp 0x14000bc3a
Function at 0x14003f267
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x14003f303
mov rdi, rax
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x14003f2e8
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14003b527
mov rcx, rbx
mov rdx, r14
call fcn.14003f586
add r13, 8
jmp 0x14003f2b8
mov rcx, rdi
call sub.kernel32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x14003f314
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400451ea
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x1400452ae
lea rcx, [0x14008605a]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x1400452ae
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.140040540
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x1400452bd
mov qword [rdi], 2
mov rcx, rsi
call fcn.1400404c4
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov esi, dword [0x140048148]
test esi, esi
je 0x140045b1a
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x140045b0d
je 0x140045b0b
test rbx, rbx
je 0x140045aa3
mov rax, qword [rbx]
and qword [rbx], 0
test rax, rax
je 0x140045aa3
mov r14, qword [rbx + 8]
mov rbx, qword [rbx + 0x10]
jmp 0x140045ac2
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi], xmm0
mov edx, 0x10
mov rcx, rdi
call sub.bcryptprimitives.dll_ProcessPrng
mov r14, qword [rdi]
mov rbx, qword [rdi + 8]
mov ecx, 8
mov edx, 0x18
call fcn.140008064
test rax, rax
je 0x140045b2d
mov rdi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov dword [rax + 0x10], esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
mov ecx, esi
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rbx, rbx
je 0x140045b0d
mov edx, 8
mov rcx, rbx
call fcn.1400031a0
jmp 0x140045b0d
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140048130]
call fcn.140016ac0
mov esi, eax
jmp 0x140045a6e
mov ecx, 8
mov edx, 0x18
call fcn.1400027a0
int3

Function at 0x140047140
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.140047ee0
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.140047ee0
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 0x1400471b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14008e194]
mov rbx, rcx
test esi, esi
jle 0x1400472e0
mov rax, qword [0x14008e198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400471fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140047285
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400471e0
mov rcx, rbx
call fcn.140047c00
mov rdi, rax
test rax, rax
je 0x140047302
mov rax, qword [0x14008e198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140047d40
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14008e198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400472e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14004727e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140047290
add dword [0x14008e194], 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 [0x14008e198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004727e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140047140
nop dword [rax]
xor esi, esi
jmp 0x140047208
mov rax, qword [0x14008e198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140047140
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140047140
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140047870
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14008e200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14008e1e0]
test rbx, rbx
je 0x1400478cc
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 0x1400478c3
test rsi, rsi
je 0x1400478c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400478a8
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 0x140047c00
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140047c80
Capabilities:
Parse pe header

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

Function at 0x140047d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140086d50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140047d5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140047d68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x17b1c80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x17b1c8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x17b1c9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x17b1c85
lea eax, [rcx + 1]
jmp 0x17b1cab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x17b1cbe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x17b1ca4
sub eax, 3
jb 0x17b1cde
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x17b1d2d
sar eax, 1
movsxd rbp, eax
jb 0x17b1d14
jmp 0x17b1cec
add ebx, ebx
jne 0x17b1cea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x17b1d14
inc ecx
add ebx, ebx
jne 0x17b1cfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x17b1d14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x17b1d0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x17b1cfc
add ecx, 2
jmp 0x17b1d19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.017b1c42
jmp 0x17b1c8d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x13a2000]
mov eax, dword [rdi]
or eax, eax
je 0x17b1d89
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x13b1000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x17b1d39
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x17b1d83
mov qword [rbx], rax
add rbx, 8
jmp 0x17b1d59
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x17b1dcd
cmp al, 0xef
ja 0x17b1db5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x17b1d95
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x17b1da4
mov eax, dword [rdi]
add rdi, 4
jmp 0x17b1da4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x17b1e21
sub rsp, 0xffffffffffffff80
jmp 0x474ce0