joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140b40058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140b401df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140b40089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b4006f
add dl, dl
jne 0x140b40096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b400f6
xor eax, eax
add dl, dl
jne 0x140b400a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b401ad
add dl, dl
jne 0x140b400b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b400c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b400d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b400dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b400ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b4007e
mov eax, 1
add dl, dl
jne 0x140b40106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b40113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b400fb
sub eax, ebx
mov ebx, 1
jne 0x140b4014c
mov ecx, 1
add dl, dl
jne 0x140b4012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b4013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b40123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b4007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b40168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b40175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b4015d
cmp eax, 0x7d00
jae 0x140b4019b
cmp eax, 0x500
jb 0x140b40196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b4007e
cmp eax, 0x7f
ja 0x140b4019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b4007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b401d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140b4007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1418fa4d3
Capabilities:
Execute anti-debugging instructions

Disassembly:
movabs rax, 0
shrd rdi, r12, 0xd6
sub r8, rax
movsx di, r10b
or dil, r9b
lea rdi, [0x1418522e7]
bsf r9d, ecx
mov r9d, 0x445373a4
jmp 0x14190c885
add rdi, r9
jmp 0x1418e3124
push r10
lahf
push r15
bswap edx
seta al
rdtsc
push r14
cbw
movzx edx, r10w
cwd
pushfq
jmp 0x1418c4282
push r12
push rbx
rol dx, 0xb7
test al, r13b
not rdx
push rsi
push r8
push rbp
push rcx
push rdi
sbb rsi, 0x355d5b36
push r9
movabs rbp, 0
adc di, r10w
push rbp
mov rbx, qword [rsp + 0x90]
add ebx, 0xc9d16d1
btr r9d, edx
ror r9b, 0x86
rol ebx, 1
sub ebx, 0x59ce3086
btr dx, 0x6a
ror sil, cl
rol ebx, 1
setge sil
lahf
mov dh, 0x54
inc ebx
lea rbx, [rbx + rbp]
movabs rdx, 0x100000000
rcr sil, 0x3d
movsx r9w, dil
lea rbx, [rbx + rdx]
cmc
bswap si
rcl edi, cl
mov rsi, rsp
movsx r9, r9w
dec r8b
btc r9d, 0x78
sub rsp, 0x180
and rsp, 0xfffffffffffffff0
shr eax, cl
mov r8, rbx
or r9d, 0x51266c22
cdqe
jmp 0x1418522cd
jmp rdi
push rax
push rdx
push r11
rdtsc
setle ah
push r13
movsxd rdx, edi
jmp 0x141884f3c
sub rbx, 4
shl r9b, 0xa3
sar r9w, cl
movzx r9, r8w
mov r9d, dword [rbx]
xor r9d, r8d
cmp dil, 0x36
test r8, 0x4d79475a
sub r9d, 0x20b5410f
bswap r9d
jmp 0x14195e337
dec r9d
cmp r8, rax
clc
xor r9d, 0x284d1c4d
cmc
test al, spl
clc
push r8
movsxd r8, r15d
btc r8w, r11w
xor dword [rsp], r9d
xchg r8b, r8b
pop r8
cmp dl, dil
clc
movsxd r9, r9d
jmp 0x141862e42
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400d63e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400d63f0]
mov dword [rax], 1
mov rax, qword [0x1400d6400]
mov dword [rax], 1
mov rax, qword [0x1400d6390]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400d63d0]
mov dword [0x1400ea00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400d64b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400d6490]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400d6340]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400015c6
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push r15
xor eax, eax
mov ecx, 0xa
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x40], 0
rep stosd dword [rdi], eax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x3c], 0
call fcn.140001956
mov ecx, 0x70e61753
mov r14, rax
call fcn.140001886
mov edx, 0x9e456a43
mov r12, rax
mov rcx, rax
call fcn.1400018d7
mov edx, 0xf783b8ec
mov rcx, r12
call fcn.1400018d7
mov edx, 0x50e92888
mov rcx, r12
mov rsi, rax
call fcn.1400018d7
movsxd r13, dword [r14 + 0x3c]
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov rbx, rax
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x38]
add r13, r14
movzx eax, word [r13 + 0x14]
lea rbp, [r13 + rax + 0x18]
mov eax, dword [r13 + 0x50]
mov r15d, dword [rbp + 0xc]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x1000
sub eax, r15d
mov dword [rsp + 0x38], eax
call rsi
test eax, eax
js 0x140001821
mov rax, r14
mov qword [rsp + 0x60], r14
xor r8d, r8d
mov r12d, r15d
and rax, 0xfffffffffffff000
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x70], eax
movzx eax, word [r13 + 6]
mov rcx, qword [rsp + 0x40]
cmp eax, r8d
jbe 0x1400016fc
imul rdx, r8, 0x28
inc r8
add rdx, rbp
mov eax, dword [rdx + 0xc]
mov esi, dword [rdx + 0x14]
sub rax, r12
add rsi, r14
add rax, rcx
mov ecx, dword [rdx + 0x10]
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
jmp 0x1400016ca
mov edx, dword [r13 + 0xb0]
test edx, edx
je 0x140001719
mov eax, edx
mov rdx, qword [r13 + 0x30]
mov r9d, r15d
lea r8, [rcx + rax]
call fcn.140001996
xor esi, esi
mov r14d, 0x40
lea rdi, [rsp + 0x50]
lea r15, [rsp + 0x48]
movzx eax, word [r13 + 6]
mov rcx, qword [rsp + 0x40]
cmp eax, esi
jbe 0x1400017e4
imul rax, rsi, 0x28
mov dword [rsp + 0x3c], 0
add rax, rbp
mov r10d, dword [rax + 0x10]
mov edx, dword [rax + 0xc]
mov eax, dword [rax + 0x24]
sub rdx, r12
mov qword [rsp + 0x50], r10
mov r9d, eax
add rcx, rdx
mov r8d, eax
mov rdx, r10
shr r9d, 0x1f
mov qword [rsp + 0x48], rcx
shl r9d, 3
and r8d, 0x40000000
jne 0x14000180d
mov r10d, eax
and r10d, 0x20000000
jne 0x1400017fc
mov r11d, eax
and r11d, 0x60000000
cmp r11d, 0x60000000
jne 0x1400017b2
mov qword [rsp + 0x74], rcx
mov r9d, 0x20
mov dword [rsp + 0x7c], edx
shr eax, 0x1f
test r10d, r10d
setne dl
test dl, al
je 0x1400017c6
test r8d, r8d
cmovne r9d, r14d
lea rax, [rsp + 0x3c]
mov r8, rdi
mov rdx, r15
mov qword [rsp + 0x20], rax
or rcx, 0xffffffffffffffff
inc rsi
call rbx
jmp 0x14000172b
mov eax, dword [r13 + 0x28]
lea r8, [rsp + 0x58]
mov edx, 1
sub rax, r12
add rax, rcx
call rax
jmp 0x140001821
mov r9d, eax
sar r9d, 0x1f
and r9d, 0x70
add r9d, 0x10
jmp 0x140001790
mov r9d, eax
sar r9d, 0x1f
and r9d, 2
add r9d, 2
jmp 0x140001784
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001836
Capabilities:
Hash data using djb2

Disassembly:
mov r9, rcx
mov eax, 0x1505
mov r8b, byte [r9]
test rdx, rdx
jne 0x14000184c
test r8b, r8b
jne 0x140001861
ret
mov r10d, r9d
sub r10d, ecx
cmp r10, rdx
jae 0x140001881
test r8b, r8b
jne 0x140001861
inc r9
jmp 0x14000186b
cmp r8b, 0x60
jbe 0x14000186b
sub r8d, 0x20
mov r10d, eax
movzx r8d, r8b
inc r9
shl r10d, 5
add r8d, r10d
add eax, r8d
jmp 0x14000183e
ret

Function at 0x140001886
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push rsi
mov rsi, rcx
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rdi, qword [rax + 0x20]
mov rbx, rdi
movzx edx, word [rbx + 0x48]
mov rcx, qword [rbx + 0x50]
call fcn.140001836
mov eax, eax
cmp rax, rsi
jne 0x1400018be
mov rax, qword [rbx + 0x20]
jmp 0x1400018cf
mov rbx, qword [rbx]
test rbx, rbx
je 0x1400018cb
cmp rdi, rbx
jne 0x1400018a4
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400018d7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
mov r14, rdx
push r13
push r12
push rbp
xor ebp, ebp
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r15d, dword [rdi + 0x20]
mov r12d, dword [rdi + 0x1c]
mov r13d, dword [rdi + 0x24]
add r15, rcx
cmp dword [rdi + 0x18], ebp
jbe 0x140001942
mov esi, ebp
xor edx, edx
mov ecx, dword [r15 + rsi*4]
add rcx, rbx
call fcn.140001836
cmp rax, r14
jne 0x14000193e
add rsi, rsi
add rsi, rbx
movzx eax, word [rsi + r13]
lea rax, [rbx + rax*4]
mov eax, dword [rax + r12]
add rax, rbx
jmp 0x140001942
inc ebp
jmp 0x14000190c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140001956
Capabilities:
Parse pe header

Disassembly:
call 0x14000195b
pop rcx
xor rbx, rbx
mov ebx, 0x5a4d
inc rcx
cmp bx, word [rcx]
jne 0x14000195c
xor rax, rax
mov ax, word [rcx + 0x3c]
add rax, rcx
xor rbx, rbx
add bx, 0x4550
cmp bx, word [rax]
jne 0x14000195c
mov rax, rcx
ret

Function at 0x14001c3a0
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x14001c403
lea rsi, [rbp - 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rbp + 0x16c], eax
test eax, eax
jne 0x14001c40f
lea rax, [0x1400ade5c]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.xj_v_
call sym.core::option::unwrap_failed::h511674c62460528b
mov qword [rbp + 0x138], 0
lea rdx, [0x1400b80c8]
lea r9, [0x1400b80d0]
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call dbg.assert_failed<i32, i32>
int3
Function at 0x140039ef0
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret

Function at 0x14003b280
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14003b310
jmp 0x14003b2ff
jae 0x14003b3cb
cmp r8, 0x201
jae 0x14003b310
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x14003b367
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14003b33f
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov rsi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3c0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c0]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x14003b38d
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14003b437
mov r8d, r13d
cmp r12, r8
jne 0x14003b2f0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14003b46a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14003b2ff
jmp 0x14003b310
cmp r14, r8
jb 0x14003b484
lea rcx, [rbp + 0x3a0]
mov rdx, r15
call dbg.from_wide
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rsi, qword [rbp + 0x3c8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
je 0x14003b420
mov rcx, qword [rbp + 0x3d8]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3c8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
jne 0x14003b40b
jmp 0x14003b420
lea rcx, [0x1400b4590]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call dbg.panic
jmp 0x14003b499
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call dbg.slice_end_index_len_fail
ud2
Function at 0x14003b4d0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x14003b4ef
mov rdx, rax
add rsp, 0x68
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp], rax
mov rax, rbp
mov qword [rbp - 0x10], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::he2dbf906bfd27f01]
mov qword [rbp - 8], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rdx, str.library_std_src_syspalwindowsos.rs
lea rcx, [rbp - 0x40]
call dbg.panic_fmt
ud2
Function at 0x14003bec0
Capabilities:
Set environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
movabs r13, 0x8000000000000000
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r9
lea rsi, [rbp - 0x10]
mov rcx, rsi
call sym.std::sys::pal::windows::to_u16s::inner::hd316060f2068e1ae
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
cmp rdi, r13
jne 0x14003bf1f
mov r14, rbx
jmp 0x14003bf84
lea rcx, [rbp - 0x10]
mov rdx, r15
mov r8, r14
call sym.std::sys::pal::windows::to_u16s::inner::hd316060f2068e1ae
mov r12, qword [rbp - 0x10]
mov r15, qword [rbp - 8]
cmp r12, r13
jne 0x14003bf40
mov r14, r15
jmp 0x14003bf6b
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x14003bf9d
xor r14d, r14d
test r12, r12
je 0x14003bf6b
add r12, r12
mov r8d, 2
mov rcx, r15
mov rdx, r12
call sym.__rust_dealloc
test rdi, rdi
je 0x14003bf84
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x14003bfb4
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test r12, r12
jne 0x14003bf57
jmp 0x14003bf6b
mov qword [rbp + 0x20], r14
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rax, [sym.__std::ffi::os_str::Display_as_core::fmt::Debug_::fmt::h8b9005e29eff02b0]
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x30]
mov qword [rbp], rcx
mov qword [rbp + 8], rax
lea rax, [rbp + 0x20]
mov qword [rbp + 0x10], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::he2dbf906bfd27f01]
mov qword [rbp + 0x18], rax
lea rax, str.failed_to_set_environment_variable____to___:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 3
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 3
lea rdx, str.library_std_srcenv.rs
lea rcx, [rbp - 0x60]
call dbg.panic_fmt
ud2
Function at 0x14003c070
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov r8, rdx
mov rdx, rcx
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], r8
lea rcx, [rbp - 0x40]
call sym.std::sys::pal::windows::to_u16s::inner::hd316060f2068e1ae
mov rdi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x38]
movabs rax, 0x8000000000000000
cmp rdi, rax
jne 0x14003c0b6
mov rsi, rbx
jmp 0x14003c0ee
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x14003c0d5
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x14003c0ee
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test rsi, rsi
jne 0x14003c0ff
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp], rsi
lea rax, [rbp - 0x10]
mov qword [rbp - 0x60], rax
lea rax, [sym.__std::ffi::os_str::Display_as_core::fmt::Debug_::fmt::h8b9005e29eff02b0]
mov qword [rbp - 0x58], rax
mov rax, rbp
mov qword [rbp - 0x50], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::he2dbf906bfd27f01]
mov qword [rbp - 0x48], rax
lea rax, str.HV_v_
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x60]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 2
lea rdx, str.library_std_srcenv.rs
lea rcx, [rbp - 0x40]
call dbg.panic_fmt
ud2
Function at 0x14003d6f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
movdqa xmmword [rbp - 0x10], xmm7
movdqa xmmword [rbp - 0x20], xmm6
mov rsi, r8
mov rdi, rcx
test r8, r8
je 0x14003d77c
js 0x14003d8c6
mov r15, rdx
mov rax, qword [0x1400d6448]
movzx eax, byte [rax]
mov ebx, 1
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x14003d8c8
mov r14, rax
mov rbx, rax
mov rcx, r14
mov rdx, r15
mov r8, rsi
call sym.memcpy
mov rdx, r14
cmp rsi, 8
jb 0x14003d87c
movabs rax, 0x7fffffffffffffe0
cmp rsi, 0x20
jae 0x14003d786
xor ecx, ecx
jmp 0x14003d816
mov ebx, 1
jmp 0x14003d89f
mov rcx, rsi
and rcx, rax
xor edx, edx
movdqa xmm0, xmmword [0x1400b2340]
movdqa xmm1, xmmword [0x1400b2350]
movdqa xmm2, xmmword [0x1400b2360]
nop word cs:[rax + rax]
movdqu xmm3, xmmword [rbx + rdx]
movdqu xmm4, xmmword [rbx + rdx + 0x10]
movdqa xmm5, xmm3
paddb xmm5, xmm0
movdqa xmm6, xmm4
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
pand xmm7, xmm2
movdqa xmm5, xmm6
pminub xmm5, xmm1
pcmpeqb xmm5, xmm6
pand xmm5, xmm2
pxor xmm7, xmm3
pxor xmm5, xmm4
movdqu xmmword [rbx + rdx], xmm7
movdqu xmmword [rbx + rdx + 0x10], xmm5
add rdx, 0x20
cmp rcx, rdx
jne 0x14003d7b0
cmp rcx, rsi
je 0x14003d89f
test sil, 0x18
je 0x14003d876
add rax, 0x18
and rax, rsi
lea rdx, [r14 + rax]
movdqa xmm0, xmmword [0x1400b2370]
movdqa xmm1, xmmword [0x1400b2380]
movdqa xmm2, xmmword [0x1400b2390]
nop dword [rax]
movq xmm3, qword [rbx + rcx]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [rbx + rcx], xmm5
add rcx, 8
cmp rax, rcx
jne 0x14003d840
cmp rax, rsi
jne 0x14003d87c
jmp 0x14003d89f
add rcx, r14
mov rdx, rcx
add r14, rsi
nop
movzx eax, byte [rdx]
lea ecx, [rax - 0x61]
cmp cl, 0x1a
setb cl
shl cl, 5
xor cl, al
mov byte [rdx], cl
lea rax, [rdx + 1]
mov rdx, rax
cmp rax, r14
jne 0x14003d880
mov qword [rdi], rsi
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rsi
mov byte [rdi + 0x18], 0
mov rax, rdi
movaps xmm6, xmmword [rbp - 0x20]
movaps xmm7, xmmword [rbp - 0x10]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
xor ebx, ebx
mov rcx, rbx
mov rdx, rsi
call dbg.handle_error
int3

Function at 0x14003f000
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x14003f015
mov rcx, rdx
mov rdx, r8
pop rbp
jmp dbg.create_dir_all
mov rcx, rdx
mov rdx, r8
pop rbp
jmp dbg.mkdir
Function at 0x140047700
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140047767
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140047767
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140047767
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140047767
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400477a7
mov dword [rbp - 4], r9d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 0xffff
mov r8d, 0x1006
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140047794
xor eax, eax
add rsp, 0x30
pop rbp
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x30
pop rbp
ret

Function at 0x1400477c0
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140047827
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140047827
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140047827
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140047827
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140047867
mov dword [rbp - 4], r9d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 0xffff
mov r8d, 0x1005
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140047854
xor eax, eax
add rsp, 0x30
pop rbp
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x30
pop rbp
ret

Function at 0x1400479a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400479d4
movsxd rdx, eax
xor ecx, ecx
jmp 0x1400479f7
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1400479f7
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

Function at 0x140047a00
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
xor esi, esi
xor eax, eax
cmp r8d, 0x3b9aca00
setne al
cmove edx, esi
mov word [rbp + 4], ax
mov word [rbp + 6], dx
mov dword [rsp + 0x20], 4
lea r9, [rbp + 4]
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140047a57
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x38
pop rsi
pop rbp
ret