joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cedb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
add byte [rax], al
mov rsi, rcx
movups xmm0, xmmword [0x140254f90]
adc byte [0x140254f90], al
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
invalid
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
adc dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor eax, eax
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1400cee18
invalid
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
add dword [rax], eax
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1400cee25
xor edx, edx
xor eax, eax
jmp case.0x1400cec54.48
cmp eax, 0x103
je 0x1400cee58
test eax, eax
js 0x1400cee38
mov rdx, qword [rbp + 8]
xor eax, eax
jmp case.0x1400cec54.48
invalid
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
add bh, byte [rax + 1]
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x140254ff8]
lea eax, [0x140254ff8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
ror byte [rdi], 0x11
loopne 0x1400ceece
lea ecx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400af150
mov esi, 0x48fffe02
mov dword [rbp - 8], eax
lea rcx, [rbp - 8]
call fcn.1400af1d0
mov ecx, 7
int 0x29
sub dword [rdi], ecx
invalid

Function at 0x1400cfe50
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
test cl, cl
je 0x1400cfe64
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.1400cff30
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.1400cfe70

Function at 0x1400cfe70
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x10]
call fcn.1400ccce0
mov rax, qword [rbp - 0x10]
invalid
mov rsi, qword [rbp - 8]
clc
cmp rax, rbx
je 0x1400cfecd
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
jne 0x1400cfe8f
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea ecx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
call fcn.1400ccf90
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x1400cfed9
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
invalid
mov word [rcx], es
invalid
test eax, eax
invalid
je 0x1400cfefd
test rdi, rdi
je 0x1400cff21
mov edx, 2
mov rcx, rsi
call fcn.140020350
xor eax, eax
jmp case.0x1400cf2fd.61
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rdi, rdi
je case.0x1400cf2fd.61
mov edx, 2
mov rcx, rsi
mov rsi, rax
call fcn.140020350
add al, 0xf5
invalid
jmp 0x1400cfecd
xor eax, eax
jmp case.0x1400cf2fd.61
Function at 0x1400d17e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x1400eb0d0]
test ecx, ecx
je 0x1400d18d5
dec ecx
call fcn.1400e8d54
cmp rax, 2
jb 0x1400d1816
cmp qword [rax + 8], 0
je 0x1400d1816
add rax, 0x10
jmp 0x1400d18ce
mov ecx, dword [0x1400eb0d0]
test ecx, ecx
je 0x1400d18e8
dec ecx
call fcn.1400e8d54
cmp rax, 1
je 0x1400d18cc
test rax, rax
jne 0x1400d1892
mov qword [rbp - 8], 0
lea rax, [0x1400eb0b8]
mov qword [rbp - 0x10], rax
movzx eax, byte [0x140291108]
mov edx, 0x18
xor ecx, ecx
call fcn.1400d2fa0
test rax, rax
je 0x1400d1914
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400eb0d0]
test ecx, ecx
je 0x1400d18fb
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.1400e8d5c
mov rax, rsi
mov rdx, rax
add rax, 0x10
mov rcx, qword [rdx + 0x10]
cmp qword [rdx + 8], 0
mov qword [rdx + 8], 1
mov qword [rdx + 0x10], 0
je 0x1400d18ce
test rcx, rcx
je 0x1400d18ce
lock dec qword [rcx]
jne 0x1400d18ce
mov rsi, rax
call fcn.1400d1940
mov rax, rsi
jmp 0x1400d18ce
xor eax, eax
add rsp, 0x38
pop rsi
pop rbp
ret
lea rcx, [0x1400eb0b8]
call fcn.1400b0080
mov ecx, eax
jmp 0x1400d17fb
lea rcx, [0x1400eb0b8]
call fcn.1400b0080
mov ecx, eax
jmp 0x1400d1826
lea rcx, [0x1400eb0b8]
mov rsi, rax
call fcn.1400b0080
mov ecx, eax
mov rax, rsi
jmp 0x1400d1884
mov ecx, 8
mov edx, 0x18
call fcn.140022910
ud2
Function at 0x1400d1fd0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov rax, qword [0x1402910d0]
cmp rax, 3
jne 0x1400d21c0
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x1400d21d0
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x1400d2068
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400d2124
inc rdx
cmp rax, rdx
jne 0x1400d2050
jmp 0x1400d218b
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1400d209e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400d2124
inc rdx
cmp rcx, rdx
jne 0x1400d2080
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1400d20a2
jmp 0x1400d20ee
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x1400efbf0]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x1400d20ee
add rcx, 0x10
cmp rcx, rdx
jbe 0x1400d20c0
sub rax, rcx
je 0x1400d218b
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x1400d2121
inc rdx
cmp rax, rdx
jne 0x1400d2110
jmp 0x1400d218b
add rdx, rcx
cmp rdx, rdi
jne 0x1400d218b
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400d219f
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400d21b7
lea rax, str.XF__
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400d21e2
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x1400d21e2
mov rbx, rdx
call fcn.1400d2690
mov rdx, rbx
jmp 0x1400d200c
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.1400d26f0
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d26f0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov r14, r8
inc r14
sete r13b
je 0x1400d285f
js 0x1400d286b
mov rdi, r9
mov rbx, r8
mov r12, rdx
mov rsi, rcx
movzx eax, byte [0x140291108]
xor ecx, ecx
mov rdx, r14
call fcn.1400d2fa0
test rax, rax
je 0x1400d2870
mov r15, rax
mov rcx, rax
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
cmp rbx, 0xf
ja 0x1400d2771
test rbx, rbx
je 0x1400d27bb
xor eax, eax
nop
cmp byte [r12 + rax], 0
je 0x1400d2783
inc rax
cmp rbx, rax
jne 0x1400d2760
jmp 0x1400d27bb
xor ecx, ecx
mov rdx, r12
mov r8, rbx
call fcn.14002ae50
test rax, rax
je 0x1400d27bb
lea rax, str.XF__
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r13b, r13b
jne 0x1400d284d
mov edx, 1
mov rcx, r15
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140020350
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x30]
call fcn.140022ac0
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x28], 1
mov qword [rbp], 0
lea r8, [rbp - 0x30]
mov r9, rbp
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400d281d
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400d2831
mov rcx, qword [rdi]
mov rax, qword [rbp]
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 r14, r14
je 0x1400d284d
mov edx, 1
mov rcx, rbx
call fcn.140020350
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.140028f40
call fcn.1400228d0
mov ecx, 1
mov rdx, r14
call fcn.1400228b0
int3

Function at 0x1400d2c10
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x140291108]
mov edx, 0x10
xor ecx, ecx
call fcn.1400d2fa0
test rax, rax
je 0x1400d2ccc
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400d2d30]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400d2cbe
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1400d2c9d
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140020350
mov edx, 8
mov rcx, rsi
call fcn.140020350
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call fcn.140022910
ud2
Function at 0x1400d7850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov ecx, dword [0x1400eb0f0]
test ecx, ecx
je 0x1400d7920
dec ecx
call fcn.1400e8d54
cmp rax, 2
jb 0x1400d7881
cmp qword [rax + 8], 0
jne 0x1400d7911
mov ecx, dword [0x1400eb0f0]
test ecx, ecx
je 0x1400d7933
dec ecx
call fcn.1400e8d54
cmp rax, 1
je 0x1400d7917
mov rsi, rax
test rax, rax
jne 0x1400d78e9
movzx eax, byte [0x140291108]
mov edx, 0x20
xor ecx, ecx
call fcn.1400d2fa0
test rax, rax
je 0x1400d795c
lea rcx, [0x1400eb0d8]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1400eb0f0]
test ecx, ecx
je 0x1400d7946
dec ecx
mov rsi, rax
mov rdx, rax
call fcn.1400e8d5c
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm0, xmmword [rbp - 0x10]
mov rax, rsi
mov qword [rsi + 8], 1
movups xmmword [rsi + 0x10], xmm0
add rax, 0x10
jmp 0x1400d7919
xor eax, eax
add rsp, 0x38
pop rsi
pop rbp
ret
lea rcx, [0x1400eb0d8]
call fcn.1400b0080
mov ecx, eax
jmp 0x1400d786b
lea rcx, [0x1400eb0d8]
call fcn.1400b0080
mov ecx, eax
jmp 0x1400d7891
lea rcx, [0x1400eb0d8]
mov rsi, rax
call fcn.1400b0080
mov ecx, eax
mov rax, rsi
jmp 0x1400d78de
mov ecx, 8
mov edx, 0x20
call fcn.140022910
int3

Function at 0x1400d9a61
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400d9a7a
dec ecx
add rsp, 0x28
jmp fcn.1400e8d54
mov rcx, rax
call fcn.1400b0080
mov ecx, eax
jmp 0x1400d9a71

Function at 0x1400de079
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400de080
test al, 1
je 0x1400de09f
test al, 2
jne 0x1400de0b7
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402580f0]
mov edx, 0x23
call fcn.140026280
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140258130]
mov edx, 0x25
call fcn.140026280
int3

Function at 0x1400de970
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400dd3f1
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400de9ab
xor eax, eax
jmp 0x1400de9b8
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1400de9be
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r12, rdx
mov r14, rcx
lea r15, [rsp + 0x72]
lea r13, [rsp + 0x3a]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x60], rax
mov rsi, qword [rcx + 0x18]
mov rbp, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
mov qword [rsp + 0x40], r8
mov rax, qword [r8]
add rax, rdi
mov qword [rsp + 0x58], rax
mov rcx, rbp
sub rcx, rdi
mov eax, 0x7fffffff
cmp rcx, rax
cmovae rcx, rax
mov qword [rsp + 0x50], rcx
mov rax, qword [r14 + 0x20]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x68]
mov qword [rsp + 0x28], rsi
mov rcx, rbx
mov rdx, qword [rsp + 0x60]
mov r8, r12
xor r9d, r9d
call fcn.1400de7d0
mov al, byte [rsp + 0x71]
cmp al, 3
je 0x1400deb67
mov rbx, qword [rsp + 0x68]
cmp al, 2
je 0x1400deb9f
mov cl, byte [rsp + 0x70]
movzx edx, word [r15 + 4]
mov word [r13 + 4], dx
mov edx, dword [r15]
mov dword [r13], edx
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x38], cl
mov byte [rsp + 0x39], al
cmp rbp, rdi
jb 0x1400debc4
cmp rsi, 0xffffffffffffffff
je 0x1400debb8
mov rcx, rsi
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x1400deb6e
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x1400deb73
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rbx
call fcn.14000c78b
cmp al, 0xd
jne 0x1400deb37
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400deb37
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400debd6
mov rsi, r13
mov r13, r14
mov r14, rbp
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140057680
mov rbp, rax
xor ecx, ecx
call fcn.1400ae376
test rbp, rbp
je 0x1400deb29
mov ecx, 1
mov rdx, rbx
call fcn.140057842
mov rbx, rbp
mov rbp, r14
mov r14, r13
mov r13, rsi
mov rsi, qword [rsp + 0x28]
mov rcx, rbx
call fcn.1400d8e08
cmp al, 0xd
jne 0x1400deb9f
mov qword [rsp + 0x68], rbx
mov rcx, r14
lea rdx, [rsp + 0x30]
call fcn.1400de74b
lea rbx, [rsp + 0x68]
mov rcx, rbx
call fcn.1400d9090
jmp 0x1400dea30
mov eax, 1
jmp 0x1400deba1
movsxd r8, eax
jmp 0x1400deb76
xor r8d, r8d
lea rax, [rdi + r8]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdx + 0x18]
cmp rax, rcx
jbe 0x1400deb8f
mov qword [rdx + 0x18], rax
mov rcx, rax
add rdi, r8
jb 0x1400debd8
cmp rcx, rax
jb 0x1400debf0
mov qword [rdx + 0x10], rax
xor ebx, ebx
xor eax, eax
mov rdx, rbx
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.src_vendor_tokio_src_io_poll_evented.rs
call fcn.140028f40
lea r8, str.src_vendor_tokio_src_io_read_buf.rs
mov rcx, rdi
mov rdx, rbp
call fcn.1400255c0
ud2
lea rcx, str.filled_overflowfilled_must_not_become_larger_than_initialized
lea r8, str.src_vendor_tokio_src_io_poll_evented.rs
mov edx, 0xf
call fcn.140028f60
lea rax, str.Oi__
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str.src_vendor_tokio_src_io_poll_evented.rs
call fcn.140025560
int3
Function at 0x1400dec23
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x2a]
lea r15, [rsp + 0x42]
mov r12, qword [rcx + 0x10]
mov r13d, 0x7fffffff
cmp r9, r13
cmovb r13, r9
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x30], r13
mov rcx, rbp
mov rdx, r12
mov r8, rdi
call fcn.1400de968
mov al, byte [rsp + 0x29]
cmp al, 3
je 0x1400ded95
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1400ded8e
mov cl, byte [rsp + 0x28]
movzx edx, word [r14 + 4]
mov word [r15 + 4], dx
mov edx, dword [r14]
mov dword [r15], edx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1400dedb5
mov rdx, rsi
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400ded9c
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.14000c78b
cmp al, 0xd
jne 0x1400ded5e
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400ded5e
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400dedc1
mov r13, r12
mov r12, rbx
mov rbx, r14
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140057680
mov r14, rax
xor ecx, ecx
call fcn.1400ae376
test r14, r14
je 0x1400ded50
mov ecx, 1
mov rdx, rbp
call fcn.140057842
mov rbp, r14
mov r14, rbx
mov rbx, r12
mov r12, r13
mov r13, qword [rsp + 0x30]
mov rcx, rbp
call fcn.1400d8e08
cmp al, 0xd
jne 0x1400ded8e
mov qword [rsp + 0x20], rbp
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.1400de74b
lea rbp, [rsp + 0x20]
mov rcx, rbp
call fcn.1400d9090
jmp 0x1400dec73
mov eax, 1
jmp 0x1400deda1
mov eax, 2
jmp 0x1400deda1
movsxd rbp, eax
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.src_vendor_tokio_src_io_poll_evented.rs
call fcn.140028f40
ud2
Function at 0x1400e97f0
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.1400ea5b0
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.1400ea5b0
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 0x1400e9860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140291194]
mov rbx, rcx
test esi, esi
jle 0x1400e9990
mov rax, qword [0x140291198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400e98ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400e9935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400e9890
mov rcx, rbx
call fcn.1400ea2d0
mov rdi, rax
test rax, rax
je 0x1400e99b2
mov rax, qword [0x140291198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400ea410
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140291198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400e9997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400e992e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400e9940
add dword [0x140291194], 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 [0x140291198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1400e992e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400e97f0
nop dword [rax]
xor esi, esi
jmp 0x1400e98b8
mov rax, qword [0x140291198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400e97f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400e97f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400e9f40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140291200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402911e0]
test rbx, rbx
je 0x1400e9f9c
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 0x1400e9f93
test eax, eax
jne 0x1400e9f93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400e9f78
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 0x1400ea2d0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400ea350
Capabilities:
Parse pe header

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

Function at 0x1400ea410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14027e050]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400ea42f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400ea438
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
push rax
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021