joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14015ba0e
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 0x14015baaa
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 0x14015ba8f
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14015b287
mov rcx, rbx
mov rdx, r14
call fcn.1400d7780
add r13, 8
jmp 0x14015ba5f
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 0x14015babb
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 0x1401612ce
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 dword [rdx + 0x10], 1
jne 0x140161391
lea rcx, [0x140311d9a]
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 0x140161391
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.14015f435
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 0x1401613a0
mov qword [rdi], 2
mov rcx, rsi
call fcn.14015f3b9
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, dword [0x140234240]
test esi, esi
je 0x140047b1c
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x140047b0f
je 0x140047b0d
test rbx, rbx
je 0x140047ab9
mov al, byte [rbx]
and qword [rbx], 0
test al, 1
je 0x140047ab9
mov r14, qword [rbx + 8]
mov rbx, qword [rbx + 0x10]
jmp 0x140047ac4
call fcn.140158b20
mov r14, rax
mov rbx, rdx
mov ecx, 8
mov edx, 0x18
call fcn.140163223
test rax, rax
je 0x140047b2f
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 0x140047b0f
mov edx, 8
mov rcx, rbx
call fcn.140019a50
jmp 0x140047b0f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140234228]
call fcn.14012f090
mov esi, eax
jmp 0x140047a8e
mov ecx, 8
mov edx, 0x18
call fcn.14003be7d
int3
jmp 0x140047a72
Function at 0x140163651
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rbx, rcx
mov esi, dword [0x1402341f0]
test esi, esi
je 0x140163733
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x140163728
je 0x14016369e
test rbx, rbx
je 0x1401636a5
lea rcx, [rbx + 8]
lea rax, [0x1403135e0]
test byte [rbx], 1
cmovne rax, rcx
and qword [rbx], 0
jmp 0x1401636ac
xor edi, edi
jmp 0x140163728
lea rax, [0x1403135e0]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov ecx, 0x48
mov edx, 8
call fcn.1401631f4
mov rdi, rax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x30], xmm3
mov dword [rax + 0x40], 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 0x140163728
mov rcx, rbx
call fcn.1401627c5
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402341d8]
call fcn.14012f090
mov esi, eax
jmp 0x14016366b
jmp 0x140163651

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rbx, rcx
mov esi, dword [0x1402341f0]
test esi, esi
je 0x140163733
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x140163728
je 0x14016369e
test rbx, rbx
je 0x1401636a5
lea rcx, [rbx + 8]
lea rax, [0x1403135e0]
test byte [rbx], 1
cmovne rax, rcx
and qword [rbx], 0
jmp 0x1401636ac
xor edi, edi
jmp 0x140163728
lea rax, [0x1403135e0]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmm3, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov ecx, 0x48
mov edx, 8
call fcn.1401631f4
mov rdi, rax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movaps xmm3, xmmword [rsp + 0x50]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x30], xmm3
mov dword [rax + 0x40], 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 0x140163728
mov rcx, rbx
call fcn.1401627c5
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402341d8]
call fcn.14012f090
mov esi, eax
jmp 0x14016366b
jmp 0x140163651
Function at 0x1401642e8
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 [0x140234240]
test esi, esi
je 0x14016438d
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x140164380
je 0x14016437e
test rdi, rdi
je 0x14016432f
mov al, byte [rdi]
and qword [rdi], 0
test al, 1
je 0x14016432f
mov r14, qword [rdi + 8]
mov rdi, qword [rdi + 0x10]
jmp 0x14016433a
call fcn.140158b20
mov r14, rax
mov rdi, rdx
mov ecx, 0x18
mov edx, 8
call fcn.1401631f4
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 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 0x140164380
mov edx, 8
mov rcx, rdi
call fcn.140019a50
jmp 0x140164380
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140234228]
call fcn.14012f090
mov esi, eax
jmp 0x140164304

Function at 0x1401664aa
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1401664b1
test al, 1
je 0x1401664d0
test al, 2
jne 0x1401664e8
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140314578]
mov edx, 0x23
call fcn.14003fe40
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1403145b8]
mov edx, 0x25
call fcn.14003fe40
int3

Function at 0x140166e5c
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140165f70
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140166e97
xor eax, eax
jmp 0x140166ea4
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x140166eaa
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov qword [rsp + 0x50], rdx
mov r14, rcx
mov rax, qword [rcx + 8]
mov qword [rsp + 0x48], rax
mov r13, qword [rcx + 0x10]
mov r15, qword [r8 + 8]
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x40], r8
mov rbp, qword [r8]
add rbp, rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
sub r15, rax
mov eax, 0x7fffffff
cmp r15, rax
cmovae r15, rax
mov rsi, qword [rcx + 0x18]
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
xor r9d, r9d
call fcn.140166c92
mov al, byte [rsp + 0x61]
cmp al, 3
je 0x140167033
mov rbx, qword [rsp + 0x58]
cmp al, 2
je 0x140167071
mov cl, byte [rsp + 0x60]
lea r8, [rsp + 0x62]
movzx edx, word [r8 + 4]
lea r9, [rsp + 0x3a]
mov word [r9 + 4], dx
mov edx, dword [r8]
mov dword [r9], edx
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x38], cl
mov byte [rsp + 0x39], al
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jb 0x140167096
cmp r13, 0xffffffffffffffff
je 0x14016708a
mov rcx, r13
mov rdx, rbp
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x14016703a
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x14016703f
mov ebx, eax
test rsi, rsi
sete r12b
shl rbx, 0x20
or rbx, 2
mov rcx, rbx
call fcn.140105436
cmp al, 0xd
setne al
or al, r12b
jne 0x140167008
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
lock inc qword [rdx]
jle 0x1401670ac
add rcx, 0x10
mov r8, qword [rsi + 0x10]
mov r9b, byte [rsi + 0x18]
call fcn.140079e0c
mov r12, rax
xor ecx, ecx
call fcn.14012e601
test r12, r12
je 0x140167008
mov ecx, 1
mov rdx, rbx
call fcn.140079fcc
mov rbx, r12
mov rcx, rbx
call fcn.140105436
cmp al, 0xd
jne 0x140167071
mov qword [rsp + 0x58], rbx
mov rcx, r14
lea rdx, [rsp + 0x30]
call fcn.140166bc3
mov rcx, rdi
call fcn.14016332e
jmp 0x140166f07
mov eax, 1
jmp 0x140167073
movsxd r8, eax
jmp 0x140167042
xor r8d, r8d
mov rax, qword [rsp + 0x20]
add rax, r8
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdx + 0x18]
cmp rax, rcx
jbe 0x14016705f
mov qword [rdx + 0x18], rax
mov rcx, rax
add qword [rsp + 0x20], r8
jb 0x1401670ae
cmp rcx, rax
jb 0x1401670c6
mov qword [rdx + 0x10], rax
xor ebx, ebx
xor eax, eax
mov rdx, rbx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:Users_saelko.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.42.0_srciopoll_evented.rs
call fcn.140042de0
lea r8, [0x140312e38]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
call fcn.14003ef40
ud2
lea rcx, str.filled_overflowfilled_must_not_become_larger_than_initialized
lea r8, str.C:Users_saelko.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.42.0_srciopoll_evented.rs
mov edx, 0xf
call fcn.140042e00
lea rax, str._.1_
lea rcx, [rsp + 0x58]
mov qword [rcx], rax
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str.C:Users_saelko.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.42.0_srciopoll_evented.rs
call fcn.14003f140
int3
Function at 0x1401670f9
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], rdx
mov rbx, rcx
mov r14, qword [rcx + 8]
mov r15d, 0x7fffffff
cmp r9, r15
cmovb r15, r9
mov r12, qword [rcx + 0x10]
mov r13, qword [rcx + 0x18]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, r14
mov r8, qword [rsp + 0x50]
call fcn.140166e54
mov al, byte [rsp + 0x31]
cmp al, 3
je 0x14016724a
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x140167243
mov cl, byte [rsp + 0x30]
lea r8, [rsp + 0x32]
movzx edx, word [r8 + 4]
lea r9, [rsp + 0x42]
mov word [r9 + 4], dx
mov edx, dword [r8]
mov dword [r9], edx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
cmp r12, 0xffffffffffffffff
je 0x14016726a
mov rcx, r12
mov rdx, qword [rsp + 0x48]
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x140167251
test r13, r13
sete sil
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.140105436
cmp al, 0xd
setne al
or al, sil
jne 0x140167218
mov rcx, qword [r13]
mov rdx, qword [r13 + 8]
lock inc qword [rdx]
jle 0x140167276
add rcx, 0x10
mov r8, qword [r13 + 0x10]
mov r9b, byte [r13 + 0x18]
call fcn.140079e0c
mov rsi, rax
xor ecx, ecx
call fcn.14012e601
test rsi, rsi
je 0x140167218
mov ecx, 1
mov rdx, rbp
call fcn.140079fcc
mov rbp, rsi
mov rcx, rbp
call fcn.140105436
cmp al, 0xd
jne 0x140167243
mov qword [rsp + 0x28], rbp
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.140166bc3
mov rcx, rdi
call fcn.14016332e
jmp 0x140167134
mov eax, 1
jmp 0x140167256
mov eax, 2
jmp 0x140167256
movsxd rbp, eax
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:Users_saelko.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.42.0_srciopoll_evented.rs
call fcn.140042de0
ud2

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x140234210]
test esi, esi
je 0x14016737b
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x140167370
je 0x14016736e
call fcn.14016361f
mov rbx, rax
mov ecx, 0x10
mov edx, 8
call fcn.1401631f4
mov rdi, rax
mov qword [rax], rbx
mov dword [rax + 8], 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 0x140167370
mov rcx, rbx
call fcn.140163600
jmp 0x140167370
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402341f8]
call fcn.14012f090
mov esi, eax
jmp 0x140167319
Function at 0x140174f00
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140175cc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140174f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140354204]
test esi, esi
mov rbx, rcx
jle 0x1401750a0
mov rax, qword [0x140354208]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140174fbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140175045
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140174fa0
mov rcx, rbx
call fcn.1401759e0
test rax, rax
mov rdi, rax
je 0x1401750c2
mov rax, qword [0x140354208]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140175b20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140354208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401750a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14017503e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140175050
add dword [0x140354204], 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 [0x140354208]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14017503e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140174f00
nop dword [rax]
xor esi, esi
jmp 0x140174fc8
mov rax, qword [0x140354208]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140174f00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140174f00
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140175630
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140354260]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x140354240]
test rbx, rbx
je 0x14017568c
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 0x140175683
test rsi, rsi
je 0x140175683
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140175668
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 0x1401758a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.D_5_]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1401758d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1401758e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1401758b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.D_5_]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1401758d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1401758e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1401758c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.D_5_]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1401758d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1401758e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1401759e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140175a60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140321090]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140175a7f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140175a88
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140175a7f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140175b20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140321090]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140175b3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140175b48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14017b6c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r11d, 1
mov eax, r8d
mov r10, rcx
mov r15, rdx
inc rax
mov ecx, r9d
mov edx, eax
shl r11, cl
add rdx, rdx
lea rdx, [rdx + r11 + 8]
cmp qword [rsp + 0x88], rdx
mov rdx, 0xffffffffffffffd2
setb dil
cmp r8d, 0xff
seta cl
or dil, cl
jne 0x14017b8ef
cmp r9d, 0xc
mov rdx, 0xffffffffffffffd4
ja 0x14017b8ef
lea esi, [r8 + 1]
mov edx, 1
mov ecx, r9d
mov dword [rsp + 8], esi
lea rbx, [r10 + 4]
mov r8d, edx
mov esi, 1
shl r8d, cl
movzx ecx, r9w
lea ebp, [r8 - 1]
or ecx, 0x10000
mov r14d, ecx
mov r12d, ecx
lea ecx, [r9 - 1]
shl edx, cl
xor ecx, ecx
mov dword [rsp + 0xc], edx
mov edx, ebp
mov r11w, word [r15 + rcx*2]
cmp r11w, 0xffff
jne 0x14017b788
mov r11d, edx
dec edx
mov byte [rbx + r11*4 + 2], cl
mov r11d, 1
jmp 0x14017b796
xor edi, edi
cmp r11w, word [rsp + 0xc]
cmovge esi, edi
mov dil, 1
mov r13, qword [rsp + 0x80]
mov word [r13 + rcx*2], r11w
mov r11d, dword [rsp + 8]
inc rcx
cmp ecx, r11d
jb 0x14017b76a
test dil, dil
je 0x14017b7c3
shl esi, 0x10
movzx r14d, r14w
or r14d, esi
mov r12d, r14d
mov r11d, r8d
mov ecx, r8d
mov dword [r10], r12d
shr r11d, 1
shr ecx, 3
cmp edx, ebp
lea ecx, [r11 + rcx + 3]
jne 0x14017b876
add rax, rax
xor r11d, r11d
xor ebp, ebp
add rax, qword [rsp + 0x80]
movabs r14, 0x101010101010101
movsx rdi, word [r15 + r11*2]
lea r12, [rax + rbp]
mov r13, r11
imul r13, r14
mov rsi, rdi
mov dword [rsp + 0xc], edi
mov edi, 8
mov qword [r12], r13
cmp dword [rsp + 0xc], edi
jle 0x14017b829
mov qword [r12 + rdi], r13
add rdi, 8
jmp 0x14017b819
mov edi, dword [rsp + 8]
inc r11
add rbp, rsi
cmp r11d, edi
jb 0x14017b7f9
movsxd rdi, r8d
xor esi, esi
xor r11d, r11d
mov r12b, byte [rax + rsi]
mov rbp, rdx
and rbp, r11
add r11, rcx
mov byte [rbx + rbp*4 + 2], r12b
mov r12b, byte [rax + rsi + 1]
mov rbp, rdx
add rsi, 2
and rbp, r11
add r11, rcx
and r11, rdx
cmp rsi, rdi
mov byte [rbx + rbp*4 + 2], r12b
jb 0x14017b840
xor r11d, r11d
jmp 0x14017b8b0
xor r11d, r11d
xor eax, eax
movsx edi, word [r15 + r11*2]
xor esi, esi
cmp edi, esi
jle 0x14017b89a
mov r12d, eax
mov byte [rbx + r12*4 + 2], r11b
add eax, ecx
and eax, ebp
cmp edx, eax
jb 0x14017b88e
inc esi
jmp 0x14017b882
mov edi, dword [rsp + 8]
inc r11
cmp r11d, edi
jb 0x14017b87b
or rdx, 0xffffffffffffffff
test eax, eax
je 0x14017b871
jmp 0x14017b8ef
movzx edx, byte [r10 + r11*4 + 6]
add rdx, rdx
add rdx, qword [rsp + 0x80]
movzx eax, word [rdx]
lea ecx, [rax + 1]
mov word [rdx], cx
bsr ecx, eax
xor ecx, 0x1f
lea ecx, [r9 + rcx - 0x1f]
shl eax, cl
mov byte [r10 + r11*4 + 7], cl
sub eax, r8d
mov word [r10 + r11*4 + 4], ax
inc r11
cmp r11d, r8d
jb 0x14017b8b0
xor edx, edx
mov rax, rdx
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret