joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400370e0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push rsi
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x14003722d
test byte [rax], dh
add dword [rax], eax
invalid
mov r15, r8
mov rdi, r8
inc rdi
js 0x140037239
mov r14, r9
mov r12, rdx
invalid
mov rsi, rcx
movzx eax, byte [0x140058030]
mov rcx, rdi
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h1ca289f3d44bb24b
test rax, rax
je case.0x1400350ad.223
mov rbx, rax
mov rcx, rax
mov rdx, r12
mov r8, r15
clc
call sym.memcpy
cmp r15, 0xf
ja 0x140037161
test r15, r15
je 0x1400371a0
xor eax, eax
nop dword [rax + rax]
invalid
add byte [rax], r8b
cmp byte [r12 + rax], 0
je 0x140037173
inc rax
cmp r15, rax
invalid
jne 0x140037150
jmp 0x1400371a0
xor ecx, ecx
mov rdx, r12
mov r8, r15
call sym.core::slice::memchr::memchr_aligned::h47fcfda46b79ef33
test rax, rax
invalid
je 0x1400371a0
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
invalid
add dword [rax], eax
add byte [rax], al
mov edx, 1
add byte [rax], al
mov rcx, rbx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp sym.__rust_dealloc
mov byte [rbx + r15], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
add byte [rax], al
invalid
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rbx
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x1400371ed
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140037201
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test rdi, rdi
je 0x14003721d
mov edx, 1
mov rcx, rbx
fld1
ror edx, cl
cld
invalid
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call sym.core::option::unwrap_failed::h38ae581b954ce070
call sym.alloc::raw_vec::capacity_overflow::h99fe6a72bad8a834
mov ecx, 1
mov rdx, rdi
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
int3
Function at 0x14003e390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x28]
call sym.std::sys::pal::windows::to_u16s::inner::hbb51883a1ae0978b
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
cmp rcx, rbx
jne 0x14003e3ce
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x14003e3f4
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call sym.std::sys::pal::windows::args::from_wide_to_user_path::hcbaeed1edf546d7c
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x14003e40d
lea rcx, [rbp - 8]
call sym.core::ptr::drop_in_place_std::io::error::Error_::h3466fc80fe41233f
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14003e42f
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14003e400
mov qword [rsi], rbx
test r14, r14
je 0x14003e400
mov edx, 2
mov rcx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp sym.__rust_dealloc
Function at 0x140040170
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10a8
call sym.___chkstk_ms
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov rsi, rdx
mov r14, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r12, [rbp + 0x1004]
lea rdi, [sym.std::sys::pal::windows::pipe::AnonPipe::alertable_io_internal::callback::h5da267c70eb56f29]
lea rbx, [rbp + 0xfc0]
mov qword [rbp + 0xfe8], r14
mov dword [rbp + 0x1004], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
mov qword [rbp + 0xfd8], r12
mov qword [rsp + 0x20], rdi
mov rcx, r14
mov rdx, r13
mov r8d, 0x1000
mov r9, rbx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x1400403a6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0x1004], 0
je 0x140040220
mov eax, dword [rbp + 0x1008]
mov r15d, dword [rbp + 0x100c]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
xor edx, edx
test eax, eax
setne dl
cmovne r15, rcx
mov qword [rbp + 0xff0], rdx
mov qword [rbp + 0xff8], r15
jne 0x1400403cb
test r15, r15
je 0x140040377
cmp r15, 0x1000
ja 0x140040544
xor r14d, r14d
nop dword [rax + rax]
mov r8d, r15d
sub r8d, r14d
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0x1004], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
mov qword [rbp + 0xfd8], r12
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov r9, rbx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x14004034c
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0x1004], 0
je 0x1400402e0
mov ecx, dword [rbp + 0x1008]
mov eax, dword [rbp + 0x100c]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xff0], r8
mov qword [rbp + 0xff8], rdx
jne 0x14004036b
add r14, rax
cmp r14, r15
je 0x140040340
jbe 0x140040290
jmp 0x140040530
mov r14, qword [rbp + 0xfe8]
jmp 0x1400401d1
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xff0], 1
mov qword [rbp + 0xff8], rax
lea rcx, [rbp + 0xff8]
call sym.core::ptr::drop_in_place_std::io::error::Error_::h3466fc80fe41233f
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
shl r15, 0x20
or r15, 2
mov qword [rbp + 0xff0], 1
mov qword [rbp + 0xff8], r15
mov rcx, r15
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x1400403f0
call sym.std::sys::pal::windows::decode_error_kind::hdc0cfabf5bb02582
cmp ecx, 0x28
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r14
mov rdx, r15
call sym.core::slice::index::slice_index_order_fail::h786748ba81f41b02
jmp 0x140040558
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call sym.core::slice::index::slice_end_index_len_fail::hdaa9bbd2fcad4cbb
ud2
Function at 0x140042190
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400422d1
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x1400422a6
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x38], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x14004220f
mov eax, dword [rbp - 0x38]
mov ecx, 2
test rax, rax
je 0x140042250
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140042254
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x38], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140042258
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140042282
mov rax, rbp
jmp 0x140042264
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140042288
mov qword [rbp], 1
lea rax, [rbp - 8]
mov qword [rax], 0
lea rcx, [rbp - 0x38]
call sym.core::ptr::drop_in_place_std::io::error::Error_::h3466fc80fe41233f
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
cmp rcx, 2
jne 0x140042293
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x1400421f8
mov ecx, 1
jmp 0x140042202
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov rcx, rbx
mov rdx, r8
mov r8, rax
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h24b995e20ca23db9
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400421c1
mov qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
mov rcx, rdi
call sym.core::panicking::assert_failed::hd7b1a2dc5a502c30
int3
Function at 0x140044750
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
mov r9, rcx
mov ecx, 0xfffffff4
pop rbp
jmp sym.std::sys::pal::windows::stdio::write::ha1712e0ab47efca5

Function at 0x140044770
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
mov r9, rcx
add rdx, 0xfffffffffffffff0
shl r8, 4
nop
test r8, r8
je 0x14004479b
mov eax, dword [rdx + 0x10]
add rdx, 0x10
add r8, 0xfffffffffffffff0
test rax, rax
je 0x140044780
mov rdx, qword [rdx + 8]
jmp 0x1400447a2
mov edx, 1
xor eax, eax
mov ecx, 0xfffffff4
mov r8, rax
pop rbp
jmp sym.std::sys::pal::windows::stdio::write::ha1712e0ab47efca5

Function at 0x1400457b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov eax, 1
test rcx, rcx
jne 0x140045946
mov eax, dword [0x1400580f0]
cmp eax, 4
jne 0x140045918
mov rdi, rdx
cmp word [rdx], 0
mov eax, 2
mov esi, 0x17
cmove esi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, esi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14004583e
cmp word [rdi], 0
je 0x1400458ab
movups xmm0, xmmword [rdi + 4]
mov ecx, dword [rdi + 0x14]
mov r9d, dword [rdi + 0x18]
movzx edx, word [rdi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x1400458c0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x140045857
mov edx, eax
cmp eax, 0x2726
jne 0x140045939
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, esi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14004590f
mov rsi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x140045928
mov rax, rsi
cmp word [rdi], 0
jne 0x14004581f
mov ecx, dword [rdi + 2]
movzx edx, word [rdi + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r10w, 2
rol dx, 8
mov word [rbp - 0x1c], r10w
mov word [rbp - 0x1a], dx
mov dword [rbp - 0x18], ecx
movups xmmword [rbp - 0x14], xmm0
mov dword [rbp - 4], r9d
lea rdx, [rbp - 0x1c]
mov rsi, rax
mov rcx, rax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x1400458f3
xor eax, eax
mov rdx, rsi
jmp 0x140045946
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.WS2_32.dll_closesocket
mov rdx, rdi
jmp 0x140045941
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
jmp 0x140045939
mov rsi, rdx
call sym.std::sync::once_lock::OnceLock_T_::initialize::h1080f60b2d887b5e
mov rdx, rsi
jmp 0x1400457d9
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rcx, rsi
call sub.WS2_32.dll_closesocket
mov edx, edi
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140046630
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 0x1400466a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140058194]
mov rbx, rcx
test esi, esi
jle 0x1400467d0
mov rax, qword [0x140058198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400466eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140046775
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400466d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400467f2
mov rax, qword [0x140058198]
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 [0x140058198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400467d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14004676e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140046780
add dword [0x140058194], 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 [0x140058198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004676e
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 0x1400466f8
mov rax, qword [0x140058198]
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 0x140046d80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140058200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400581e0]
test rbx, rbx
je 0x140046ddc
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 rsi, rsi
je 0x140046dd3
test eax, eax
jne 0x140046dd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140046db8
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 0x140046ff0
Capabilities:
Parse pe header

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

Function at 0x140047020
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 0x14004706d
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 0x140047064
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14004706f
add rax, 0x28
cmp rax, r9
jne 0x140047050
xor eax, eax
ret

Function at 0x140047070
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140047100
mov rdx, qword [0x1400515f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400470ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400470ee
cmp word [rax + 0x18], 0x20b
jne 0x1400470ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140047100
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400470d9
add rbx, 0x28
cmp rbx, rdi
je 0x140047100
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400470d0
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 0x140047110
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140047190
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1400515f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400471f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400471f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400471f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140047240
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140047237
test rcx, rcx
je 0x1400471f0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140047228
xor eax, eax
ret

Function at 0x140047250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400515f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14004726f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140047278
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400515f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400472b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400472b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400472b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400472b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140047304
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140047310
add rdx, 0x28
cmp rdx, r9
jne 0x1400472f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400515f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140047342
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140047350
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140047342
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140047342
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140047342
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400473a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400473b8
add rdx, 0x28
cmp r10, rdx
jne 0x140047390
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400473c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400473d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400473ae
test ecx, ecx
jg 0x1400473c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b9380]
mov dword [rax], 1
mov rax, qword [0x1400b9390]
mov dword [rax], 1
mov rax, qword [0x1400b93a0]
mov dword [rax], 1
mov rax, qword [0x1400b9320]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001b9d0
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140095710
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14001ba95
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a6612
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001ba76
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001ba68
test rsi, rsi
je 0x1400a6612
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001ba28
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001bac4
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001bae0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14001bb9d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a6618
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001bb7e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001bb70
test rsi, rsi
je 0x1400a6618
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001bb30
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret