joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114de0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, qword [rdx]
mov rdx, rax
xor r9d, r9d
call fcn.14016557c
cmp eax, 0xffffffff
je 0x140114e19
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140114e2f
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x140114e91
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140114ea7
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x140115010
Capabilities:
Set socket configuration

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

Function at 0x1401150f0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140115127
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x140115400
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rcx, qword [rdx]
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]
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1401154a1
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x1401154b0
cmp ecx, 0x17
jne 0x1401154d0
cmp eax, 0x1b
jbe 0x1401154ec
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
jmp 0x1401154e0
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1401154d7
cmp eax, 0xf
jbe 0x140115506
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
jmp 0x1401154e0
lea rax, str.invalid_argument0
mov qword [rsi + 8], rax
mov word [rsi], 2
mov rax, rsi
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x14018d818]
mov edx, 0x43
call sym.core::panicking::panic::h297b186b0eb73132
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x14018d7b8]
mov edx, 0x42
call sym.core::panicking::panic::h297b186b0eb73132
ud2

Function at 0x140115720
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov dword [rsp + 0x2c], edx
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 4
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14011575c
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x1401157e0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0x29
mov r8d, 0x1b
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140115817
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140115920
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
movzx eax, dl
mov dword [rsp + 0x24], eax
mov rcx, qword [rcx]
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x140115949
xor eax, eax
add rsp, 0x28
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
Function at 0x140115ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, r8
mov rsi, rcx
mov r10, qword [rsp + 0x90]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
cmp word [r10], 0
je 0x140115bea
movups xmm0, xmmword [r10 + 4]
mov ecx, dword [r10 + 0x14]
mov r11d, dword [r10 + 0x18]
movzx r10d, word [r10 + 0x1c]
mov r9d, 0x1c
mov di, 0x17
jmp 0x140115c00
mov ecx, dword [r10 + 2]
movzx r10d, word [r10 + 6]
mov r9d, 0x10
mov di, 2
xorps xmm0, xmm0
rol r10w, 8
mov word [rsp + 0x3c], di
mov word [rsp + 0x3e], r10w
mov dword [rsp + 0x40], ecx
movups xmmword [rsp + 0x44], xmm0
mov dword [rsp + 0x54], r11d
mov rcx, qword [rdx]
mov dword [rsp + 0x28], r9d
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
mov rdx, rax
xor r9d, r9d
call fcn.140165574
cmp eax, 0xffffffff
je 0x140115c4a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140115c60
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x140115c70
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x20
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140115ca7
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x140115d30
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
movzx eax, dl
mov dword [rsp + 0x2c], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 0xb
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140115d6f
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x140115df0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov dword [rsp + 0x2c], edx
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
xor esi, esi
lea r9, [rsp + 0x2c]
xor edx, edx
mov r8d, 0xa
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140115e2c
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x140115eb0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, dl
mov dword [rsp + 0x34], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0x29
mov r8d, 0xb
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140115ee7
xor eax, eax
add rsp, 0x38
ret
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x140115f70
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xc
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140115fb9
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x140115fd0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], r8d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
mov edx, 0x29
mov r8d, 0xc
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14011600d
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 0x140116020
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xd
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x140116069
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x140116080
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], r8d
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 0x14
lea r9, [rsp + 0x30]
mov edx, 0x29
mov r8d, 0xd
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401160bd
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 0x1401160d0
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
mov rax, r8
test rdx, rdx
je 0x1401160e1
add rsp, 0x48
ret
cmp word [rax], 0
je 0x140116103
movups xmm0, xmmword [rax + 4]
mov edx, dword [rax + 0x14]
mov r9d, dword [rax + 0x18]
movzx eax, word [rax + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x140116118
mov edx, dword [rax + 2]
movzx eax, word [rax + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol ax, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], ax
mov dword [rsp + 0x30], edx
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
mov rcx, qword [rcx]
lea rdx, [rsp + 0x2c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x14011614e
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 0x140116230
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
mov rbx, qword [rdx]
test rbx, rbx
je 0x140116291
mov qword [rsp + 0x38], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rbx
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14011630d
mov rbx, qword [rsp + 0x38]
jmp 0x140116293
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 0x1401162fc
mov r14, rax
mov qword [rsp + 0x20], rdi
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x1401162fc
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdi
mov qword [rsi], 1
jmp 0x140116326
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x140116326
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5e3c89d72f40d3dcE.llvm.3884465614687036520
mov qword [rsi], 0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401223a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x58], rdx
lea rdx, [sym._ZN3std3sys7windows4pipe8AnonPipe21alertable_io_internal8callback17h09050ed31b051827E.llvm.793214423941245703]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call fcn.1401652ec
test eax, eax
je 0x140122426
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140122400
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x14012242d
mov edi, dword [rsp + 0x3c]
xor ecx, ecx
jmp 0x140122456
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov rdi, rcx
shl rdi, 0x20
or rdi, 2
call sym._ZN3std3sys7windows17decode_error_kind17hdbc276043523fafaE.llvm.793214423941245703
mov ecx, 1
cmp al, 0xb
jne 0x140122456
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rdi
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5e3c89d72f40d3dcE.llvm.793214423941245703
jmp 0x14012245d
mov qword [rsi], rcx
mov qword [rsi + 8], rdi
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x140122470
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x140122549
mov r8d, 0xffffffff
cmp rax, r8
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
mov rcx, qword [rcx]
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x58], rax
lea rax, [sym._ZN3std3sys7windows4pipe8AnonPipe21alertable_io_internal8callback17h09050ed31b051827E.llvm.793214423941245703]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call fcn.1401652ec
test eax, eax
je 0x14012251a
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1401224e0
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x140122521
mov eax, dword [rsp + 0x3c]
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
jmp 0x14012253d
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov rsi, rcx
shl rsi, 0x20
or rsi, 2
call sym._ZN3std3sys7windows17decode_error_kind17hdbc276043523fafaE.llvm.793214423941245703
cmp al, 0xb
jne 0x14012253f
mov rcx, rsi
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5e3c89d72f40d3dcE.llvm.793214423941245703
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
lea r8, str.C:MB_src_rustc_1.75.0_srclibrarycore_srcio_borrowed_buf.rs
mov rcx, rsi
call sym.core::slice::index::slice_start_index_len_fail::h36930cbd7fa4975d
ud2
Function at 0x140122640
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, r8
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x34]
mov qword [rsp + 0x58], rdx
lea rdx, [sym._ZN3std3sys7windows4pipe8AnonPipe21alertable_io_internal8callback17h09050ed31b051827E.llvm.793214423941245703]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
mov rdx, rax
call fcn.1401651d4
test eax, eax
je 0x1401226d3
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1401226a0
movsxd rax, dword [rsp + 0x38]
test rax, rax
je 0x1401226ed
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1401226f7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401226fa
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x60
pop rsi
ret
Function at 0x140122d10
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140122e68
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140122d48
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140122e2b
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140122e4a
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x34], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x34]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x140122da8
mov ecx, dword [rsp + 0x34]
mov eax, 2
test rcx, rcx
je 0x140122de3
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x140122de7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
movabs rdx, 0x3e500000000
cmp rax, rdx
je 0x140122deb
movabs rdx, 0x6d00000000
cmp rax, rdx
jne 0x140122e11
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x38]
jmp 0x140122df0
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140122e17
lea rax, [rsp + 0x40]
mov qword [rax], 0
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5e3c89d72f40d3dcE.llvm.3884465614687036520
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x140122e21
cmp rax, 1
je 0x140122d91
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x140122d9b
mov r8d, 0x10
mov rcx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h9e6f59a20db25210
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140122d55
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h9e6f59a20db25210
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140122d55
mov qword [rsp + 0x40], 0
lea rax, str.library_std_src_syswindowspipe.rs
mov qword [rsp + 0x20], rax
lea r8, [0x14018eda0]
lea r9, [rsp + 0x40]
xor ecx, ecx
mov rdx, rdi
call sym.core::panicking::assert_failed::h958f63a9634043d5
ud2
Function at 0x1401543a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14015441a
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 0x140154410
cmp r11, r10
ja 0x1401544aa
cmp r10, rdx
ja 0x1401544be
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140154412
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401543f0
jmp 0x14015447e
ja 0x14015441a
mov r11, r10
cmp rax, r8
jne 0x1401543c2
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x140154482
mov r9, qword [rsp + 0x78]
lea rdx, [r9 + rax]
cmp rax, 1
mov r8, r9
sbb r8, 0xffffffffffffffff
movzx ecx, cx
mov al, 1
movzx r10d, byte [r9]
test r10b, r10b
jns 0x140154460
cmp r8, rdx
je 0x140154490
movzx r9d, byte [r8]
inc r8
and r10d, 0x7f
shl r10d, 8
or r10d, r9d
mov r9, r8
sub ecx, r10d
js 0x140154484
xor al, 1
xor r8d, r8d
cmp r9, rdx
setne r8b
add r8, r9
cmp r9, rdx
jne 0x140154440
jmp 0x140154484
xor eax, eax
jmp 0x140154484
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__valuelibrarycore_srcunicodeprintable.rs
lea r8, [0x1401965d8]
mov edx, 0x2b
call sym.core::panicking::panic::h297b186b0eb73132
ud2
lea r8, [0x1401965f0]
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::hc50742acf252e953
ud2
lea r8, [0x1401965f0]
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::hdc10f6a9df671f4a
ud2
Function at 0x140165ff0
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140166060
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401cc284]
mov rbx, rcx
test esi, esi
jle 0x140166190
mov rax, qword [0x1401cc288]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401660ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140166135
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140166090
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1401661b2
mov rax, qword [0x1401cc288]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401cc288]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140166197
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14016612e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140166140
add dword [0x1401cc284], 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 [0x1401cc288]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14016612e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1401660b8
mov rax, qword [0x1401cc288]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140166740
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401cc2e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401cc2c0]
test rbx, rbx
je 0x14016679c
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 0x140166793
test eax, eax
jne 0x140166793
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140166778
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]