joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052960
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400529e5
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140052a26
cmp dword [rsp + 0x2c], 0
je 0x140052a0a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140052a4e
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401031b8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401031b8], rsi
jne 0x1400529c0
mov byte [0x1401031b0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140052a1c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140052a9a
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140052a0f
mov edi, dword [rsp + 0x28]
jmp 0x140052a1c
mov edi, dword [rsi + 0x18]
jmp 0x140052a1a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x1400c9ae8]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.140008f20
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1400c3c90]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140099f20
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1400c3c90]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140008e40
ud2
Function at 0x140054d10
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x140103188]
cmp rax, 3
jne 0x140054e04
cmp rbx, 0x17f
ja 0x140054e16
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.1400970b0
cmp qword [rsp + 0x28], 0
je 0x140054d94
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140054e27
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140054dec
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x140054e27
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x140054e27
call fcn.14003b290
cmp rbx, 0x17f
jbe 0x140054d4a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call case.0x1400416ab.138
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400553d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x14005547f
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x14005548e
cmp ecx, 0x17
jne 0x1400554b5
cmp eax, 0x1c
jb 0x1400554ce
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400554bc
cmp eax, 0x10
jb 0x1400554e8
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argument_f_
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1400ca3c0]
mov edx, 0x43
call fcn.140099fa0
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x1400ca360]
mov edx, 0x42
call fcn.140099fa0
ud2
Function at 0x14005a4d0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140043830
mov rsi, rdx
test rax, rax
je 0x14005a542
mov rcx, rax
mov rdx, rsi
call fcn.140003da0
mov qword [rdi], 0
jmp 0x14005a6aa
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.140043a60
cmp dword [rsp + 0x40], 2
jne 0x14005a5c8
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x14005a5a9
test rcx, rcx
je 0x14005a5a9
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x14005a596
mov r8, qword [r15 + 0x10]
mov rcx, r14
call fcn.140001830
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140001830
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400bd7f4
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x14005a61a
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14005a696
mov rbx, qword [rsp + 0x40]
jmp 0x14005a61c
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x14005a685
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.1400bd7f4
test r15, r15
je 0x14005a685
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x14005a6a2
mov qword [rdi], 0
mov rcx, rbx
call fcn.1400bd7f4
jmp 0x14005a6a2
call sub.kernel32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call fcn.1400bd7f4
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14005c980
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1400c0068]
test ecx, ecx
je 0x14005c9b0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005c9c9
cmp qword [rax + 8], 0
je 0x14005c9c9
add rax, 0x10
jmp 0x14005ca91
lea rcx, [0x1400c0050]
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005c9a0
mov ecx, dword [0x1400c0068]
test ecx, ecx
je 0x14005ca72
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14005ca8f
mov rdi, rax
test rax, rax
jne 0x14005ca3b
mov rax, qword [0x1400f1318]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.140001820
test rax, rax
je 0x14005caa8
mov rdi, rax
lea rax, [0x1400c0050]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400c0068]
test ecx, ecx
je 0x14005ca98
dec ecx
mov rdx, rdi
call fcn.1400bdad4
xor ecx, ecx
test rsi, rsi
je 0x14005ca5b
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x14005ca5b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14005ca5d
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x14005ca91
lea rcx, [0x1400c0050]
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14005c9e8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400c0050]
call fcn.140052960
mov ecx, eax
jmp 0x14005ca33
mov ecx, 8
mov edx, 0x20
call fcn.14008b0c0
ud2
Function at 0x14005cac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov ecx, dword [0x1400c0088]
test ecx, ecx
je 0x14005cbee
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005caf2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005cbe8
mov ecx, dword [0x1400c0088]
test ecx, ecx
je 0x14005cc10
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14005cc2d
mov rdi, rax
test rax, rax
jne 0x14005cb7c
mov qword [rsp + 0x28], 0
lea rax, [0x1400c0070]
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400f1318]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.140001820
test rax, rax
je 0x14005cc4c
mov rdi, rax
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x1400c0088]
test ecx, ecx
je 0x14005cc39
dec ecx
mov rdx, rdi
call fcn.1400bdad4
lea rax, [rdi + 8]
test rsi, rsi
je 0x14005cba1
mov rcx, qword [rsi]
mov qword [rsi], 0
mov rdx, rcx
test rcx, rcx
je 0x14005cba5
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
jmp 0x14005cba5
xor ecx, ecx
xor edx, edx
mov r8, qword [rax + 0x10]
mov qword [rsp + 0x30], r8
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rdx
cmp qword [rsp + 0x20], 0
je 0x14005cbe8
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14005cbe8
lock dec qword [rax]
jne 0x14005cbe8
lea rcx, [rsp + 0x30]
call fcn.14000f400
add rdi, 0x10
jmp 0x14005cc2f
lea rcx, [0x1400c0070]
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005cae4
jmp 0x14005caf2
lea rcx, [0x1400c0070]
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14005cb11
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x1400c0070]
call fcn.140052960
mov ecx, eax
jmp 0x14005cb74
mov ecx, 8
mov edx, 0x20
call fcn.14008b0c0
ud2
Function at 0x14005cc80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1400c00a8]
test ecx, ecx
je 0x14005ccaf
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005ccc8
cmp byte [rax + 8], 0
je 0x14005ccc8
add rax, 9
jmp 0x14005cd70
lea rcx, case.0x140035de4.293
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005cca0
mov ecx, dword [0x1400c00a8]
test ecx, ecx
je 0x14005cd51
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14005cd6e
mov rdi, rax
test rax, rax
jne 0x14005cd2e
mov rax, qword [0x1400f1318]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140001820
test rax, rax
je 0x14005cd87
mov rdi, rax
lea rax, case.0x140035de4.293
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400c00a8]
test ecx, ecx
je 0x14005cd77
dec ecx
mov rdx, rdi
call fcn.1400bdad4
xor ecx, ecx
test rsi, rsi
je 0x14005cd44
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14005cd70
lea rcx, case.0x140035de4.293
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14005cce3
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, case.0x140035de4.293
call fcn.140052960
mov ecx, eax
jmp 0x14005cd26
mov ecx, 8
mov edx, 0x10
call fcn.14008b0c0
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1400c00c8]
test ecx, ecx
je 0x14005cdcf
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005cde8
cmp byte [rax + 8], 0
je 0x14005cde8
add rax, 9
jmp 0x14005ce90
lea rcx, case.0x140035de4.293
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005cdc0
mov ecx, dword [0x1400c00c8]
test ecx, ecx
je 0x14005ce71
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14005ce8e
mov rdi, rax
test rax, rax
jne 0x14005ce4e
mov rax, qword [0x1400f1318]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140001820
test rax, rax
je 0x14005cea7
mov rdi, rax
lea rax, case.0x140035de4.293
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400c00c8]
test ecx, ecx
je 0x14005ce97
dec ecx
mov rdx, rdi
call fcn.1400bdad4
xor ecx, ecx
test rsi, rsi
je 0x14005ce64
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14005ce90
lea rcx, case.0x140035de4.293
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14005ce03
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, case.0x140035de4.293
call fcn.140052960
mov ecx, eax
jmp 0x14005ce46
mov ecx, 8
mov edx, 0x10
call fcn.14008b0c0
ud2
Function at 0x14005d060
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400c0108]
test ecx, ecx
je 0x14005d176
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005d092
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005d170
mov ecx, dword [0x1400c0108]
test ecx, ecx
je 0x14005d198
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14005d1b5
mov rdi, rax
test rax, rax
jne 0x14005d11c
mov qword [rsp + 0x28], 0
lea rax, [0x1400c00f0]
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400f1318]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.140001820
test rax, rax
je 0x14005d1d4
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400c0108]
test ecx, ecx
je 0x14005d1c1
dec ecx
mov rdx, rdi
call fcn.1400bdad4
test rsi, rsi
je 0x14005d136
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14005d138
mov rax, qword [rsi + 8]
jmp 0x14005d138
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005d170
test rcx, rcx
je 0x14005d170
lock dec qword [rcx]
jne 0x14005d170
lea rcx, [rsp + 0x28]
call fcn.14000f560
add rdi, 0x10
jmp 0x14005d1b7
lea rcx, [0x1400c00f0]
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d084
jmp 0x14005d092
lea rcx, [0x1400c00f0]
call fcn.140052960
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d0b1
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1400c00f0]
call fcn.140052960
mov ecx, eax
jmp 0x14005d114
mov ecx, 8
mov edx, 0x18
call fcn.14008b0c0
ud2
Function at 0x1400a43b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400a442a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400a4420
cmp r11, r10
ja 0x1400a44c3
cmp r10, rdx
ja 0x1400a44d7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400a4422
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400a4400
jmp 0x1400a4497
ja 0x1400a442a
mov r11, r10
cmp rax, r8
jne 0x1400a43d2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400a449b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400a4470
mov r8, r10
sub ecx, r9d
jns 0x1400a448e
jmp 0x1400a449d
cmp r10, rdx
je 0x1400a44a9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400a449d
xor al, 1
cmp r8, rdx
jne 0x1400a4450
jmp 0x1400a449d
xor eax, eax
jmp 0x1400a449d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
lea r8, [0x1400e4128]
mov edx, 0x2b
call fcn.140099fa0
ud2
lea r8, [0x1400e4140]
mov rcx, r11
mov rdx, r10
call fcn.1400a09e0
ud2
lea r8, [0x1400e4140]
mov rcx, r10
call fcn.1400a0970
ud2
Function at 0x1400be530
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.1400bf2d0
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.1400bf2d0
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 0x1400be5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401032c4]
mov rbx, rcx
test esi, esi
jle 0x1400be6d0
mov rax, qword [0x1401032c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400be5eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400be675
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400be5d0
mov rcx, rbx
call fcn.1400beff0
mov rdi, rax
test rax, rax
je 0x1400be6f2
mov rax, qword [0x1401032c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400bf130
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401032c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400be6d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400be66e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400be680
add dword [0x1401032c4], 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 [0x1401032c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400be66e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400be530
nop dword [rax]
xor esi, esi
jmp 0x1400be5f8
mov rax, qword [0x1401032c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400be530
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400be530
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400bec60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140103320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140103300]
test rbx, rbx
je 0x1400becbc
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 0x1400becb3
test rsi, rsi
je 0x1400becb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400bec98
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 0x1400beff0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400bf070
Capabilities:
Parse pe header

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

Function at 0x1400bf130
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400f1250]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400bf14f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400bf158
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x426f59
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x20]
cmp eax, 0
jg 0x426f81
jmp 0x42702b
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x20]
movsxd rax, eax
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rbp - 0x18], rax
call sub.msvcrt.dll___iob_func
add rax, 0x30
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x10]
cmp eax, 2
jne 0x426fc7
call sub.msvcrt.dll___iob_func
add rax, 0x60
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
jg 0x426fda
jmp 0x42702b
mov rax, qword [rbp - 0x20]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
add rcx, rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
mov qword [rbp - 0x10], rax
jmp 0x426fc7
leave
ret

Function at 0x426f64
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x20]
cmp eax, 0
jg 0x426f81
jmp 0x42702b
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x20]
movsxd rax, eax
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rbp - 0x18], rax
call sub.msvcrt.dll___iob_func
add rax, 0x30
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x10]
cmp eax, 2
jne 0x426fc7
call sub.msvcrt.dll___iob_func
add rax, 0x60
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
jg 0x426fda
jmp 0x42702b
mov rax, qword [rbp - 0x20]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
add rcx, rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
mov qword [rbp - 0x10], rax
jmp 0x426fc7
leave
ret