joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401bdf60
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1401c73b0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1401bdfc5
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1401c8940
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
jne 0x1401bdfd0
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x1401bdffc
test rdi, rdi
je 0x1401be028
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140024630
xor eax, eax
jmp 0x1401bdfc8
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x1401bdfc8
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140024630
jmp 0x1401bdfc5
xor eax, eax
jmp 0x1401bdfc8

Function at 0x1401be9f0
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x1402e1e28]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1401bea28
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1401bea8a
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1401bea95
xor edx, edx
jmp 0x1401beaa5
cmp eax, 0x103
je 0x1401bead0
test eax, eax
js 0x1401beab0
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1402e1e90]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.1401b4cf0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.1401aca00
mov ecx, 7
int 0x29
ud2
Function at 0x1401beb40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
movups xmm0, xmmword [0x1402e1e28]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1401beb78
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rcx
test r9, r9
mov qword [rsp + 0x80], r9
lea rcx, [rsp + 0x88]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1401bebe1
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1401bec15
test eax, eax
js 0x1401bebf5
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1402e1e90]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.1401b4cf0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.1401aca00
mov ecx, 7
int 0x29
ud2

Function at 0x1401bec80
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, ebp
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401bed56
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1401becde
mov esi, eax
cmp eax, 0x2726
jne 0x1401bed49
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1401bed41
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x1401bed56
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x1401bed56
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1401bf8b0
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x68], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]

Function at 0x1401c0c40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401c0db3
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1401c0c77
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401c0d78
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401c0d96
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1401c0cd9
mov eax, dword [rsp + 0x2c]
mov ecx, 2
test rax, rax
je 0x1401c0d1e
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1401c0d22
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1401c0d26
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1401c0d55
lea rax, [rsp + 0x30]
jmp 0x1401c0d34
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1401c0d5b
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1401ac340
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rcx, 2
jne 0x1401c0d65
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
test rcx, rcx
jne 0x1401c0cc2
mov ecx, 1
jmp 0x1401c0ccc
mov r8d, 0x10
mov rcx, rbx
call fcn.14021ff70
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1401c0c84
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14021ff70
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1401c0c84
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14021ff20
int3
Function at 0x1401c5070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1401c73b0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne case.0x1401be896.129
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
jmp 0x1401c50da
mov rdx, qword [rsp + 0x50]
Function at 0x1401c69c0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14035abc1]
mov ecx, 0x10
mov edx, 8
call fcn.140024620
test rax, rax
je 0x1401c6a9f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401c6b50]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401c6a91
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1401c6a68
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140024630
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140024630
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1402213a0
ud2

Function at 0x1401c93b0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x200
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rsp + 0x26], ax
mov rax, qword [0x14035ad20]
cmp rax, 3
jne 0x1401c94be
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
ja 0x1401c94e0
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r8, rdi
call fcn.140215ea0
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rdi
call fcn.1401d5ee0
cmp qword [rsp + 0x38], 0
je 0x1401c9442
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401c94b0
mov rcx, 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]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401c9495
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401c94a9
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x26]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x200
pop rbx
pop rdi
pop rsi
ret
mov rbx, rdx
call fcn.140220400
mov rdx, rbx
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
jbe 0x1401c93f8
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
call fcn.140220470
jmp 0x1401c94b0
Function at 0x1401c9500
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov eax, 1
test rcx, rcx
jne 0x1401c95b3
mov rax, qword [0x14035ad20]
cmp rax, 3
jne 0x1401c95db
mov rsi, rdx
mov rcx, rdx
mov edx, 1
call fcn.1401bec80
test rax, rax
je 0x1401c9541
mov eax, 1
jmp 0x1401c95b3
cmp word [rsi], 0
je 0x1401c9563
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov r9d, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x1401c9578
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], cx
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
lea rax, [rsp + 0x2c]
mov rsi, rdx
mov rcx, rdx
mov rdx, rax
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401c95ba
xor eax, eax
mov rdx, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rdx, rdi
jmp 0x1401c953a
mov rsi, rdx
call fcn.140220400
mov rdx, rsi
jmp 0x1401c9525

Function at 0x1401c9730
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
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], 0x80
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401c97e0
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x1401c97f0
cmp ecx, 0x17
jne 0x1401c9817
cmp eax, 0x1b
jbe 0x1401c9830
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
add rsp, 0xb0
pop rsi
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1401c981e
cmp eax, 0xf
jbe 0x1401c9848
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
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argumenth_._
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
mov edx, 0x43
call fcn.140221690
lea rcx, [0x1402e2ba9]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
mov edx, 0x42
call fcn.140221690
int3
Function at 0x1401ddbc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1401ddc3a
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 0x1401ddc30
cmp r11, r10
ja 0x1401ddcc5
cmp r10, rdx
ja 0x1401ddcd7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1401ddc32
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401ddc10
jmp 0x1401ddca7
ja 0x1401ddc3a
mov r11, r10
cmp rax, r8
jne 0x1401ddbe2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1401ddcab
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 0x1401ddc80
mov r8, r10
sub ecx, r9d
jns 0x1401ddc9e
jmp 0x1401ddcad
cmp r10, rdx
je 0x1401ddcb9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1401ddcad
xor al, 1
cmp r8, rdx
jne 0x1401ddc60
jmp 0x1401ddcad
xor eax, eax
jmp 0x1401ddcad
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140221580
lea r8, str.Pq._
mov rcx, r11
mov rdx, r10
call fcn.140221b20
lea r8, str.Pq._
mov rcx, r10
call fcn.140221b10
int3
Function at 0x1401dfc90
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x14035a0c0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov dword [rcx + 0x258], ebp
mov rbx, rcx
call fcn.1401ea3a0
test eax, eax
jne 0x1401dfe21
mov eax, dword [rsp + 0x30]
mov edx, 0x3e8
mov r8d, dword [rbx + 0x98]
imul ecx, eax, 0x3e8
mov qword [rsp + 0x4a0], rdi
mov edi, dword [rbx + 0x244]
test edi, edi
cmove ecx, edx
test r8d, r8d
jle 0x1401dfd4f
test eax, eax
je 0x1401dfd04
cmp ecx, r8d
jle 0x1401dfd4f
xor ecx, ecx
call fcn.1401ff17c
mov rdx, rsi
mov rcx, rax
call fcn.1401ff14c
mulsd xmm0, qword [0x1402d45e0]
mov ecx, dword [rbx + 0x98]
cvttsd2si eax, xmm0
cmp eax, ecx
jle 0x1401dfd45
lea r8, str.API_timeout_expired
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1401e5040
jmp 0x1401dfe19
sub ecx, eax
mov r8d, 1
jmp 0x1401dfd58
test ecx, ecx
mov r8d, ebp
setg r8b
mov eax, 0x10624dd3
mov r10, rbp
imul ecx
mov r11, rbp
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov rcx, qword [rbx + 0x238]
mov dword [rsp + 0x3c], eax
test dil, 1
je 0x1401dfda4
mov qword [rsp + 0x48], rcx
lea r11, [rsp + 0x40]
mov dword [rsp + 0x40], 1
test dil, 2
je 0x1401dfdc5
mov qword [rsp + 0x258], rcx
lea r10, [rsp + 0x250]
mov dword [rsp + 0x250], 1
test r8d, r8d
lea rax, [rsp + 0x38]
mov r8, r10
mov rdx, r11
cmove rax, rbp
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ws2_32.dll_select]
test eax, eax
jne 0x1401dfdff
lea r8, str.Timed_out_waiting_on_socket
mov rcx, rbx
lea edx, [rax - 9]
call fcn.1401e5040
jmp 0x1401dfe19
jns 0x1401dfe17
lea r8, str.Error_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1401e5040
jmp 0x1401dfe19
xor eax, eax
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401f95b0
add rsp, 0x470
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401e55f0
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
test r9, r9
je 0x1401e56c4
cmp r9, 0x40
jb 0x1401e56a3
lea r11, [rcx - 1]
lea rax, [r8 - 1]
add r11, r9
add rax, r9
cmp rcx, rax
ja 0x1401e5622
cmp r11, r8
jae 0x1401e56a3
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1401e5633
cmp r11, rdx
jae 0x1401e56a3
mov rax, r9
and rax, 0xffffffffffffffc0
nop word [rax + rax]
movdqu xmm0, xmmword [r8]
add r10, 0x40
movdqu xmm1, xmmword [rdx]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x10]
movdqu xmmword [rcx], xmm1
movdqu xmm1, xmmword [rdx + 0x10]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x20]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmm1, xmmword [rdx + 0x20]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x30]
add r8, 0x40
movdqu xmmword [rcx + 0x20], xmm1
movdqu xmm1, xmmword [rdx + 0x30]
add rdx, 0x40
xorps xmm1, xmm0
movdqu xmmword [rcx + 0x30], xmm1
add rcx, 0x40
cmp r10, rax
jb 0x1401e5640
cmp r10, r9
jae 0x1401e56c4
sub rdx, rcx
sub r8, rcx
sub r9, r10
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor al, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1401e56b0
ret

Function at 0x1401ed040
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x1401ed0dc
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x1401ed0ac
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.kernel32.dll_ReadFile]
jmp 0x1401ed0bd
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x1401ed0fb
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x1401ed080
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x1401ed118
cmp eax, 0x3e5
je 0x1401ed11f
mov eax, 0xffffffff
jmp 0x1401ed0e2
cmp eax, 0x3e4
jne 0x1401ed111
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1401ed0e2
Function at 0x1401ed130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x1401ed1cc
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x1401ed19c
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.kernel32.dll_WriteFile]
jmp 0x1401ed1ad
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x1401ed1eb
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x1401ed170
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x1401ed208
cmp eax, 0x3e5
je 0x1401ed20f
mov eax, 0xffffffff
jmp 0x1401ed1d2
cmp eax, 0x3e4
jne 0x1401ed201
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1401ed1d2
Function at 0x1401ee070
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rbx, r9
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1401ee2a7
test rdx, rdx
je 0x1401ee2a7
test r8, r8
je 0x1401ee2a7
test rbx, rbx
je 0x1401ee2a7
mov ecx, dword [r9 + 8]
mov ebp, dword [r8 + 8]
add ecx, 0x18
add ebp, ecx
mov dword [rsp + 0x50], 0x18
mov ecx, ebp
call fcn.1401ff094
mov r15, rax
test rax, rax
je 0x1401ee2a7
mov dword [rax], 0x31415352
mov ecx, dword [rbx + 8]
shl ecx, 3
mov dword [rax + 4], ecx
mov ecx, dword [r14 + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 0xc], ecx
mov qword [rsp + 0x98], r12
xor r12d, r12d
mov qword [rax + 0x10], r12
mov ecx, dword [rsp + 0x50]
mov r8d, dword [r14 + 8]
add rcx, rax
mov rdx, qword [r14]
call fcn.140215ea0
mov ecx, dword [r14 + 8]
add ecx, dword [rsp + 0x50]
mov r8d, dword [rbx + 8]
add rcx, r15
mov rdx, qword [rbx]
call fcn.140215ea0
mov rcx, qword [0x14035bff8]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x30], r12d
lea r8, str.RSAPUBLICBLOB
mov dword [rsp + 0x28], ebp
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x50], r12d
call sub.bcrypt.dll_BCryptImportKeyPair
mov ebx, eax
test eax, eax
js 0x1401ee290
mov r8d, dword [rsi + 8]
lea rax, [rsp + 0x90]
mov rdx, qword [rsi]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x1401ee286
mov ebx, dword [rsp + 0x90]
cmp ebx, dword [rdi + 8]
je 0x1401ee1d7
mov rcx, qword [rdi]
mov edx, ebx
call fcn.1401ff144
test rax, rax
je 0x1401ee281
mov dword [rdi + 8], ebx
mov ebx, dword [rsp + 0x90]
mov qword [rdi], rax
mov eax, dword [rsi + 8]
cmp eax, ebx
jbe 0x1401ee1e7
mov ebx, eax
mov dword [rsp + 0x90], eax
mov ecx, ebx
call fcn.1401ff094
mov rbp, rax
test rax, rax
je 0x1401ee281
mov r9d, dword [rsi + 8]
mov rcx, rax
mov r8, qword [rsi]
mov edx, dword [rsp + 0x90]
call fcn.1401f0520
mov ecx, dword [rdi + 8]
lea rax, [rsp + 0x50]
mov r8d, dword [rsp + 0x90]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call sub.bcrypt.dll_BCryptEncrypt
mov rcx, rbp
mov ebx, eax
call fcn.1401ff130
test ebx, ebx
js 0x1401ee286
mov esi, dword [rsp + 0x50]
cmp esi, dword [rdi + 8]
je 0x1401ee286
mov rcx, qword [rdi]
mov edx, esi
call fcn.1401ff144
test rax, rax
je 0x1401ee286
mov qword [rdi], rax
mov dword [rdi + 8], esi
jmp 0x1401ee286
mov ebx, 0xc0000017
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptDestroyKey
mov rcx, r15
call fcn.1401ff130
mov r12, qword [rsp + 0x98]
sar ebx, 0x1f
mov eax, ebx
jmp 0x1401ee2ac
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret