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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp edx, 3
je 0x140076378
test edx, edx
jne 0x1400764ee
mov rbx, qword [0x14012e1b0]
test rbx, rbx
je 0x1400764ee
xor r14d, r14d
jmp 0x140076399
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400763cc
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x140076538
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140076390
mov r15, rax
mov ecx, esi
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
mov rcx, r15
call rdi
mov r14b, 1
jmp 0x140076390
test r14b, 1
je 0x1400764ee
mov rbx, qword [0x14012e1b0]
test rbx, rbx
je 0x1400764ee
xor r14d, r14d
jmp 0x1400763f9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14007642c
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x140076538
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400763f0
mov r15, rax
mov ecx, esi
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
mov rcx, r15
call rdi
mov r14b, 1
jmp 0x1400763f0
test r14b, 1
je 0x1400764ee
mov rbx, qword [0x14012e1b0]
test rbx, rbx
je 0x1400764ee
xor r14d, r14d
jmp 0x140076459
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14007648c
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x140076538
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140076450
mov r15, rax
mov ecx, esi
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
mov rcx, r15
call rdi
mov r14b, 1
jmp 0x140076450
test r14b, 1
je 0x1400764ee
mov rbx, qword [0x14012e1b0]
test rbx, rbx
je 0x1400764ee
xor r14d, r14d
jmp 0x1400764b9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400764e8
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x140076538
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400764b0
mov r15, rax
mov ecx, esi
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
mov rcx, r15
call rdi
mov r14b, 1
jmp 0x1400764b0
test r14b, 1
jne 0x1400764fa
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x14012e1b0]
jmp 0x140076507
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400764ee
mov esi, dword [rbx + 0x18]
mov rdi, qword [rbx]
test rdi, rdi
je 0x140076538
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140076503
mov r14, rax
mov ecx, esi
xor edx, edx
call sub.KERNEL32.dll_TlsSetValue
mov rcx, r14
call rdi
jmp 0x140076503
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0library_alloc_srccollections_btreemapentry.rs
lea r8, str.library_std_src_syswindows_thread_local_key.rs
mov edx, 0x2b
call dbg.panic
ud2
Function at 0x140078cf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400e4138]
test ecx, ecx
je 0x140078d23
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140078d3c
mov rbx, rax
cmp qword [rax], 0
je 0x140078d3c
add rbx, 8
jmp 0x140078e38
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140078d11
mov ecx, dword [0x1400e4138]
test ecx, ecx
je 0x140078e19
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140078e36
mov rdi, rax
test rax, rax
jne 0x140078da8
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140078e56
mov rdi, rax
mov qword [rax], 0
lea rax, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
mov qword [rdi + 0x18], rax
mov ecx, dword [0x1400e4138]
test ecx, ecx
je 0x140078e43
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x140078de6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
mov qword [rsi], 0
test rdx, rdx
je 0x140078de6
cmp rdx, 1
jne 0x140078dcf
mov rdx, rcx
jmp 0x140078dea
test rcx, rcx
je 0x140078de6
xor eax, eax
lock dec qword [rcx]
mov edx, 0
jne 0x140078dea
call dbg.drop_slow<std::thread::Inner>
xor eax, eax
xor edx, edx
lea rbx, [rdi + 8]
cmp qword [rdi], 0
mov rcx, qword [rdi + 0x10]
mov qword [rdi], 1
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rdx
je 0x140078e38
test rcx, rcx
je 0x140078e38
lock dec qword [rcx]
jne 0x140078e38
call dbg.drop_slow<std::thread::Inner>
jmp 0x140078e38
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140078d5b
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
jmp 0x140078da0
mov ecx, 0x20
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x140079030
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx r14d, word [rdx + 0x10]
mov rax, qword [0x14012e188]
cmp rax, 3
jne 0x140079125
cmp rbx, 0x17f
ja 0x140079137
lea rbp, [rsp + 0x70]
mov rcx, rbp
mov rdx, rdi
mov r8, rbx
call sym.memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, rbp
mov r8, rbx
call dbg.from_bytes_with_nul
cmp qword [rsp + 0x28], 0
je 0x1400790b4
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140079148
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 0x14007910c
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 0x140079148
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], r14w
xor eax, eax
mov qword [rsi], rax
jmp 0x140079148
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::windows::net::init::{closure_env#0}>, !>
cmp rbx, 0x17f
jbe 0x14007906a
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, r14d
call dbg.run_with_cstr_allocating<std::sys_common::net::LookupHost, std::sys_common::net::{impl#6}::try_from::{closure_env#0}>
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140079160
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140079182
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x140079255
mov rax, qword [0x14012e188]
cmp rax, 3
jne 0x140079260
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call sym.std::sys::windows::net::Socket::new::h0f4831c5caef81d3
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x1400791c3
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x140079255
cmp word [rbx], 0
je 0x1400791e7
mov ecx, dword [rbx + 0x14]
movzx eax, word [rbx + 0x1c]
rol ax, 8
mov edx, dword [rbx + 0x18]
movups xmm0, xmmword [rbx + 4]
mov r8d, 0x1c
mov bx, 0x17
jmp 0x1400791ff
movzx eax, word [rbx + 6]
rol ax, 8
mov ecx, dword [rbx + 2]
xorps xmm0, xmm0
mov r8d, 0x10
mov bx, 2
mov word [rsp + 0x20], bx
mov word [rsp + 0x22], ax
mov dword [rsp + 0x24], ecx
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140079235
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140079255
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call fcn.1400e255c
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::windows::net::init::{closure_env#0}>, !>
jmp 0x140079193
Function at 0x1400796e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xc0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], 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
mov dword [rsp + 0x28], pe_nt_image_headers64
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x28]
mov rcx, rax
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400797ab
mov eax, dword [rsp + 0x28]
movzx ecx, word [rsp + 0x40]
cmp ecx, 2
je 0x1400797ba
cmp ecx, 0x17
jne 0x1400797e1
cmp eax, 0x1c
jb 0x1400797fa
movzx eax, word [rsp + 0x42]
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x58]
rol ax, 8
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x30], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rsp + 0x2e]
movups xmmword [rsi + 2], xmm0
movzx ecx, word [rsp + 0x3e]
mov word [rsi + 0x12], cx
mov dword [rsi + 0x14], r8d
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xc0
pop rsi
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400797e8
cmp eax, 0x10
jb 0x140079814
movzx eax, word [rsp + 0x42]
rol ax, 8
mov ecx, dword [rsp + 0x44]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xc0
pop rsi
ret
lea rax, str.invalid_argument82
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xc0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rs
lea r8, [0x1400f32c8]
mov edx, 0x43
call dbg.panic
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
lea r8, [0x1400f3328]
mov edx, 0x42
call dbg.panic
ud2

Function at 0x140079a90
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov r10, r8
mov rsi, rcx
mov rax, qword [rsp + 0x90]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
cmp word [rax], 0
je 0x140079ada
mov r9d, dword [rax + 0x14]
movzx ecx, word [rax + 0x1c]
rol cx, 8
mov r11d, dword [rax + 0x18]
movups xmm0, xmmword [rax + 4]
mov eax, 0x1c
mov di, 0x17
jmp 0x140079af2
movzx ecx, word [rax + 6]
rol cx, 8
mov r9d, dword [rax + 2]
xorps xmm0, xmm0
mov eax, 0x10
mov di, 2
mov word [rsp + 0x38], di
mov word [rsp + 0x3a], cx
mov dword [rsp + 0x3c], r9d
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], r11d
mov rcx, qword [rdx]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rdx, r10
xor r9d, r9d
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
je 0x140079b3b
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140079b53
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140079b60
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
mov rax, r8
test rdx, rdx
je 0x140079b71
add rsp, 0x48
ret
cmp word [rax], 0
je 0x140079b97
mov r9d, dword [rax + 0x14]
movzx edx, word [rax + 0x1c]
rol dx, 8
mov r10d, dword [rax + 0x18]
movups xmm0, xmmword [rax + 4]
mov r8d, 0x1c
mov ax, 0x17
jmp 0x140079bb0
movzx edx, word [rax + 6]
rol dx, 8
mov r9d, dword [rax + 2]
xorps xmm0, xmm0
mov r8d, 0x10
mov ax, 2
mov word [rsp + 0x28], ax
mov word [rsp + 0x2a], dx
mov dword [rsp + 0x2c], r9d
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], r10d
mov rcx, qword [rcx]
lea rdx, [rsp + 0x28]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x140079be2
xor eax, eax
add rsp, 0x48
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x48
ret

Function at 0x140079e20
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 [0x1400e4158]
test ecx, ecx
je 0x140079e4f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140079e68
cmp qword [rax], 0
je 0x140079e68
add rax, 8
jmp 0x140079f1d
lea rcx, dbg.destroy_value_core::cell::Cell_usize__
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140079e40
mov ecx, dword [0x1400e4158]
test ecx, ecx
je 0x140079efe
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140079f1b
mov rdi, rax
test rax, rax
jne 0x140079ed0
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140079f34
mov rdi, rax
mov qword [rax], 0
lea rax, dbg.destroy_value_core::cell::Cell_usize__
mov qword [rdi + 0x10], rax
mov ecx, dword [0x1400e4158]
test ecx, ecx
je 0x140079f24
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x140079eeb
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x140079eeb
mov rcx, qword [rsi + 8]
jmp 0x140079eed
xor ecx, ecx
lea rax, [rdi + 8]
mov qword [rdi], 1
mov qword [rdi + 8], rcx
jmp 0x140079f1d
lea rcx, dbg.destroy_value_core::cell::Cell_usize__
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140079e87
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_usize__
call sym.std::sys::windows::thread_local_key::StaticKey::init::had1a3839dcb7195c
mov ecx, eax
jmp 0x140079ec8
mov ecx, 0x18
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x14007a540
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 qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
movaps xmm0, xmmword [0x1400eca10]
movups xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rsi, rdx
test rax, rax
je 0x14007a5f1
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x14007a5e5
mov rbx, rsi
dec rbx
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a5d2
mov r8, qword [rax + 0x10]
mov rcx, qword [rbx]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call sym.__rust_dealloc
mov qword [rdi], 0
jmp 0x14007a7b4
lea rcx, [rsp + 0x40]
mov rdx, rsi
call dbg.file_attr
cmp dword [rsp + 0x40], 2
jne 0x14007a66d
mov rbx, qword [rsp + 0x48]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x14007a64e
lea r14, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a63b
mov r8, qword [rax + 0x10]
mov rcx, qword [r14]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call sym.__rust_dealloc
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400e24b4
mov r12, qword [rsp + 0x68]
test rsi, rsi
je 0x14007a6c2
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 0x14007a71b
mov rbx, qword [rsp + 0x40]
xor eax, eax
test rax, rax
jne 0x14007a6cb
jmp 0x14007a734
xor eax, eax
xor ebx, ebx
test rax, rax
je 0x14007a734
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x14007a70f
lea r14, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007a6fc
mov r8, qword [rax + 0x10]
mov rcx, qword [r14]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call sym.__rust_dealloc
mov qword [rdi], 0
jmp 0x14007a7ac
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov eax, 1
test rax, rax
jne 0x14007a6cb
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 0x14007a79d
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.1400e24b4
test r15, r15
je 0x14007a79d
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x14007a7ac
mov qword [rdi], 0
mov rcx, rbx
call fcn.1400e24b4
mov rcx, rsi
call fcn.1400e24b4
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400c7660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400c76da
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x1400c76d0
cmp r10, rax
jb 0x1400c776d
cmp r10, rdx
ja 0x1400c7781
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400c76d2
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x1400c76b0
jmp 0x1400c7742
ja 0x1400c76da
mov rax, r10
cmp r11, r8
jne 0x1400c7680
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400c7746
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x1400c7720
mov rsi, rbx
sub ecx, edi
jns 0x1400c7739
jmp 0x1400c7748
cmp rbx, rdx
je 0x1400c7753
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x1400c7748
xor al, 1
cmp rsi, rdx
jne 0x1400c7700
jmp 0x1400c7748
xor eax, eax
jmp 0x1400c7748
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140106129]
lea r8, [0x1401080a0]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x140108088]
mov rcx, rax
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x140108088]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400e2f80
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400e2ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14012e2b4]
mov rbx, rcx
test esi, esi
jle 0x1400e3120
mov rax, qword [0x14012e2b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400e303b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400e30c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400e3020
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400e3142
mov rax, qword [0x14012e2b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14012e2b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400e3127
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400e30be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400e30d0
add dword [0x14012e2b4], 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 [0x14012e2b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400e30be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400e3048
mov rax, qword [0x14012e2b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400e36b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14012e320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14012e300]
test rbx, rbx
je 0x1400e370c
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 0x1400e3703
test rsi, rsi
je 0x1400e3703
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400e36e8
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 0x1400e3920
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400e3938
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400e3940
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400e3950
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400e399d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400e3994
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400e399f
add rax, 0x28
cmp rax, r9
jne 0x1400e3980
xor eax, eax
ret

Function at 0x1400e39a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400e3a30
mov rdx, qword [0x140119dd0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400e3a1e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400e3a1e
cmp word [rax + 0x18], 0x20b
jne 0x1400e3a1e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400e3a30
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400e3a09
add rbx, 0x28
cmp rbx, rdi
je 0x1400e3a30
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400e3a00
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x1400e3ac0
Capabilities:
Parse pe header

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