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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
test eax, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 4]
test eax, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
test rax, rax
mov rax, qword [0x14001f270]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
test rax, rax
call sym._MCF_thread_self_tid
mov rdx, qword [rbp + 0x10]
mov dword [rdx + 4], eax
mov rax, qword [rbp + 0x10]
add rax, 8
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, 0xffffffffffffffff
mov rdx, 0xfffffffffffffffe
mov rcx, 0xffffffffffffffff
mov rax, qword [sym.imp.ntdll.dll_NtDuplicateObject]
call rax
test eax, eax
jns 0x14001942b
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
test rax, rax
jne 0x140019447
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 1
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 8]
mov dword [rax], edx
mov rax, qword [0x14001f270]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001948e
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp + 0x10]
add rsp, 0x50
pop rbp
ret

Function at 0x14001963d
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x14001f270]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
setne al
movzx eax, al
test eax, eax
je 0x140019676
mov rax, qword [rbp - 8]
jmp 0x14001969e
mov ecx, 0x640
call sym.__MCF_malloc_0
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140019692
mov eax, 0
jmp 0x14001969e
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.__MCF_thread_attach_foreign
add rsp, 0x30
pop rbp
ret
Function at 0x140004570
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140004600
jmp 0x1400045ef
jae 0x1400046c0
cmp r8, 0x201
jae 0x140004600
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140004658
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14000462f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14001e770
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3d8], r13
mov rbx, rdi
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140004681
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004728
mov r8d, r14d
cmp r15, r8
jne 0x1400045e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000474b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400045ef
jmp 0x140004600
cmp rsi, r8
jb 0x140004765
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140007570
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140004711
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001850
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400046f9
jmp 0x140004711
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001f600
jmp 0x14000477a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001fa50
ud2
Function at 0x1400047d0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14000df70
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x140004946
mov qword [rbp + 0x408], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x400], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor esi, esi
cmp r8, 0x201
jae 0x140004880
jmp 0x14000486f
jae 0x140004958
cmp r8, 0x201
jae 0x140004880
lea r13, [rbp - 0x60]
mov r15d, 0x200
mov r12, r8
jmp 0x1400048d7
sub r8, rsi
sub rbx, rsi
cmp rbx, r8
jae 0x1400048af
lea rcx, [rbp + 0x3e8]
mov rdx, rsi
call fcn.14001e770
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov esi, 0xffffffff
cmovb rsi, rdi
mov qword [rbp + 0x3f8], rsi
mov rbx, rdi
mov r13, qword [rbp + 0x418]
mov r15, rsi
mov r12, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140004907
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004a2b
mov r8d, r14d
cmp r12, r8
jne 0x140004860
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004a55
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000486f
jmp 0x140004880
lea rcx, [rbp - 0x58]
call fcn.140002270
mov byte [rsi + 0x18], 2
jmp 0x1400049ea
cmp r15, r8
jb 0x140004a6f
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.140007570
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x1400049a9
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x418]
mov rdx, rdi
call fcn.140001850
cmp byte [rbp + 0x3d8], 2
jne 0x140004a01
mov rsi, qword [rbp + 0x408]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140002270
mov rdx, qword [rbp + 0x400]
test rdx, rdx
je 0x1400049ea
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
call fcn.140001850
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x408]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x400]
test rdx, rdx
jne 0x1400049d5
jmp 0x1400049ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140004991
jmp 0x1400049a9
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001f600
jmp 0x140004a84
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14001fa50
ud2
Function at 0x1400074a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400074da
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400074f1
call qword [sym.imp.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 0x140007500
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140007534
cdqe
jmp 0x140007543
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14000754b
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000755c
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 0x140007f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140007fa0
test ecx, ecx
jne 0x140007ff0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140007fac
test ecx, ecx
jne 0x140007ff0
mov rcx, rdi
call fcn.140007e50
movzx eax, al
test bpl, bpl
jne 0x140007ff7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140007fe3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140008168]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140007fe3.2
xor eax, eax
test bpl, bpl
je 0x140007fbc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140008149
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14000802a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400080a9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140008070
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14000808b
inc rax
dec rdi
cmp rax, 1
jne 0x140008050
jmp 0x1400080a9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14000808b
cmp ebx, 0x5c
je 0x14000808b
inc rax
dec rdi
cmp rax, 1
jne 0x140008070
jmp 0x1400080a9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140008157
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400080d3
mov al, 9
cmp rdx, 2
je 0x1400080d7
cmp rdx, 1
jne 0x1400080e7
cmp byte [r8], 0x2e
jne 0x1400080e7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400080e7
mov al, 0xa
jmp 0x1400080e7
cmp byte [r8], 0x2e
jne 0x1400080e7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140007fe3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140007fe3.2
mov ecx, 2
jmp case.0x140007fe3.2
lea r8, str.library_std_srcpath.rs
call fcn.14001f9d0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001f9d0
ud2
Function at 0x14000c380
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140022348]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000c3c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000c42a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000c461
test eax, eax
js 0x14000c43b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000c454
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140006e80
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002520
mov ecx, 7
int 0x29
ud2

Function at 0x14000c4d0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14000c525
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14000c5c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x14000c539
cmp eax, 0x2739
jne 0x14000c58a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14000c584
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14000c59f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14000c5c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14000c5c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000e990
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x14002a1e8]
cmp rax, 3
jne 0x14000ea86
cmp rbx, 0x17f
ja 0x14000ea98
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.140017d30
cmp qword [rsp + 0x28], 0
je 0x14000ea14
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14000eaa9
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 qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14000ea6e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x14000eaa9
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x14000eaa9
call fcn.14001eaa0
cmp rbx, 0x17f
jbe 0x14000e9ca
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.14001ebf0
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14000eac0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x14000ead8
mov qword [rsi + 8], rbx
jmp 0x14000eb0d
mov rax, qword [0x14002a1e8]
cmp rax, 3
jne 0x14000ebb8
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.14000c4d0
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x14000eb1f
mov qword [rsi + 8], rdi
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
cmp word [rbx], 0
je 0x14000eb40
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x14000eb55
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
xorps xmm0, xmm0
mov r8d, reloc.WS2_32.dll_recv
mov r9w, 2
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14000eb91
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14000eb14
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14000eb14
call fcn.14001eaa0
jmp 0x14000eae9
Function at 0x14001c490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001c50a
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 0x14001c500
cmp r10, r11
jb 0x14001c5a3
cmp r10, rdx
ja 0x14001c5b7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001c502
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001c4e0
jmp 0x14001c577
ja 0x14001c50a
mov r11, r10
cmp rax, r8
jne 0x14001c4b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001c57b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001c550
mov r8, r10
sub ecx, r9d
jns 0x14001c56e
jmp 0x14001c57d
cmp r10, rdx
je 0x14001c589
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001c57d
xor al, 1
cmp r8, rdx
jne 0x14001c530
jmp 0x14001c57d
xor eax, eax
jmp 0x14001c57d
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__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001f600
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001fad0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001fa50
ud2

Function at 0x14001e174
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e1be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e1be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e1be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e1be
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e1be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001e1c0
xor al, al
add rsp, 0x28
ret
Function at 0x14001ebf0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140016b70
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001ec4b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14001ecc4
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140001850
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14001ecd1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x14001ecc4
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140001850
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x14001ecb3
jmp 0x14001ecc4
Function at 0x140003050
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004020
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004020
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400030c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x1400031f0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000310b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003195
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400030f0
mov rcx, rbx
call fcn.140003b10
mov rdi, rax
test rax, rax
je 0x140003212
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003c50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400031f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000318e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400031a0
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000318e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003050
nop dword [rax]
xor esi, esi
jmp 0x140003118
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003050
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003050
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003780
Capabilities:
Get thread local storage value

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