joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401833d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.14025ca90
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.14013a1a0
test eax, eax
je 0x14018340f
xor edx, edx
mov rcx, rbx
call fcn.14013a620
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rsi + 8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov r14, qword [rsi]
lea eax, [rbp - 1]
movsxd rdi, eax
xor eax, eax
mov rcx, qword [r14 + rdi*8]
cmp rcx, 1
sete al
sub ebp, eax
cmp rsi, rbx
je 0x140183457
mov edx, ebp
mov rcx, rbx
call fcn.14013abc0
test rax, rax
je 0x1401834bd
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r14 + rdi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rdi*8]
shr rcx, 1
je 0x140183477
mov qword [r8], rcx
test rdi, rdi
jle 0x1401834ae
sub r14, rax
nop
mov rcx, qword [r14 + r8 - 8]
lea r8, [r8 - 8]
mov rax, rcx
dec rdi
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rdi, rdi
jg 0x140183480
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x1401834b8
mov dword [rbx + 0x10], ebp
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x140184d40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.14025ca90
sub rsp, rax
lea rcx, [0x1404bfab4]
add rsp, 0x28
jmp fcn.14014fdb0

Function at 0x1401b0b10
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.14025ca90
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x1401b0b63
xor ecx, ecx
cmp rdx, r8
jb 0x1401b0b63
sub r8, r10
lea rax, [rcx + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, rcx
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1401b0b50
jmp 0x1401b0b76
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.14017dcc0
test eax, eax
je 0x1401b0ba7
cmp dword [rsp + 0x40], 0x10
jne 0x1401b0ba7
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x1401b0d50
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1401b0dd8
test r8, r8
je 0x1401b0dd8
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x1401b0d96
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1401b0d80
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x1401b0dd8
sub r8, rax
cmp r8, 0x10
jbe 0x1401b0dac
mov r8d, reloc.WS2_32.dll_recv
jmp 0x1401b0db1
test r8, r8
je 0x1401b0dd8
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x1401b0dc0
ret
Function at 0x1401b7870
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xd8
call fcn.14025ca90
sub rsp, rax
mov rax, qword [0x1404b75f0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, qword [rsp + 0x140]
xor r12d, r12d
mov rax, qword [rcx]
mov rbp, r9
movsxd rbx, r8d
mov rsi, rdx
mov qword [rsp + 0x20], r14
mov rdi, rcx
lea r15d, [r12 + 1]
mov r13d, r12d
test r9, r9
je 0x1401b78df
cmp r9, rax
je 0x1401b78d7
test rdx, rdx
je 0x1401b7950
test r8d, r8d
js 0x1401b7950
mov r13d, r15d
mov qword [rcx], r9
jmp 0x1401b78e7
test rax, rax
je 0x1401b7950
mov rbp, rax
mov rcx, rbp
call fcn.140131420
test al, 2
jne 0x1401b7950
test rsi, rsi
je 0x1401b79b8
mov rcx, rbp
mov r13d, r15d
call fcn.14015b4e0
cmp eax, 0x90
jg 0x1401b7950
cmp eax, ebx
jge 0x1401b7976
mov rcx, qword [rdi + 8]
mov r8, r14
mov rdx, rbp
call fcn.14013e670
test eax, eax
je 0x1401b7950
mov rcx, qword [rdi + 8]
mov r8, rbx
mov rdx, rsi
call fcn.14013e8d0
test eax, eax
je 0x1401b7950
mov rcx, qword [rdi + 8]
lea rsi, [rdi + 0x20]
mov r8, rsi
lea rdx, [rdi + 0x24]
call fcn.14013e590
test eax, eax
jne 0x1401b7993
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14025bc30
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp ebx, 0x90
ja 0x1401b7950
mov r8, rbx
lea rcx, [rdi + 0x24]
mov rdx, rsi
call fcn.14025e2c0
lea rsi, [rdi + 0x20]
mov dword [rsi], ebx
mov ecx, dword [rsi]
cmp ecx, 0x90
je 0x1401b79c1
mov eax, ecx
mov r8d, 0x90
sub r8d, ecx
xor edx, edx
lea rcx, [rdi + 0x24]
add rcx, rax
call fcn.14025e970
jmp 0x1401b79c1
test r13d, r13d
je 0x1401b7a96
lea r14, [rsp + 0x30]
mov esi, 0x48
sub r14, rdi
lea rbx, [rdi + 0x25]
lea r15, [rsp + 0x31]
mov rcx, rbx
sub r15, rdi
mov edx, esi
nop
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 2]
xor al, 0x36
mov byte [r14 + rcx - 0x27], al
movzx eax, byte [rcx - 2]
xor al, 0x36
mov byte [r15 + rcx - 0x27], al
sub rdx, 1
jne 0x1401b79e0
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x10]
call fcn.14013e670
test eax, eax
je 0x1401b7aa9
mov rcx, rbp
call fcn.14015b4e0
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.14013e8d0
test eax, eax
je 0x1401b7aa9
nop word [rax + rax]
movzx eax, byte [rbx - 1]
lea rbx, [rbx + 2]
xor al, 0x5c
mov byte [rbx + r14 - 0x27], al
movzx eax, byte [rbx - 2]
xor al, 0x5c
mov byte [rbx + r15 - 0x27], al
sub rsi, 1
jne 0x1401b7a40
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x18]
call fcn.14013e670
test eax, eax
je 0x1401b7aa9
mov rcx, rbp
call fcn.14015b4e0
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.14013e8d0
test eax, eax
je 0x1401b7aa9
lea r15d, [rsi + 1]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call fcn.14013e940
test eax, eax
cmovne r12d, r15d
test r13d, r13d
je 0x1401b7abd
mov edx, 0x90
lea rcx, [rsp + 0x30]
call fcn.140001240
mov eax, r12d
jmp 0x1401b7952
Function at 0x1401fe9f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.14025ca90
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401fea19
lea rax, [0x1401fd060]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401f5fa0
lea rax, [0x1401fc220]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401f5cf0
Function at 0x14025c068
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140277750
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1402775e3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402775e3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402775e3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402775e3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402775e3
cmp dword [rcx + 0x84], 0xe
jbe 0x1402775e3
cmp dword [rcx + 0xf8], 0
je 0x1402775e3
mov ecx, ebx
call fcn.140277684
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140277474
cmp dword [rbp + 0x20], 0
je 0x140277630
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140277638
int3
xor r8d, r8d
xor edx, edx
jmp 0x14027757c

Function at 0x140286fa0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140286fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140278624
or eax, 0xffffffff
jmp 0x140286fc2
xor eax, eax
add rsp, 0x28
ret
Function at 0x180917000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x18091700a
jmp 0x18091900f
jmp fcn.1805b71b8
Function at 0x140001000
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 2
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140001034
mov byte [0x1400cf0c0], 1
lea rcx, [0x1400a10c0]
call fcn.1400931d4
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140092d50
add rsp, 0x1d8
ret

Function at 0x140001a60
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0xe0
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rbx, rcx
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x20]
call fcn.140003ba0
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax + 0x20]
movaps xmmword [rsp + 0x60], xmm0
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x70], eax
call fcn.140004ac0
movabs r8, 0x14057b7ef767814f
lea rcx, [rsp + 0x20]
mov qword [rbx], r8
lea r9, [rsp + 0xc8]
mov r8d, 0x8b51f9dd
lea rax, [rsp + 0x20]
nop word [rax + rax]
mov edx, dword [rcx]
lea r10, [rsp + 0x40]
add rax, 4
lea rcx, [rsp + 0x20]
cmp rax, r10
cmovne rcx, rax
xor edx, r8d
imul r8d, r8d, 0x58f38ded
imul edx, r8d
mov eax, edx
shr eax, 0x10
xor eax, edx
lea rdx, [rsp + 0xd8]
mov dword [r9], eax
add r9, 4
mov rax, rcx
cmp r9, rdx
jne 0x140001af0
lea r8, [rsp + 0xb8]
lea rax, [rsp + 0xc8]
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rax + 4]
mov edx, dword [rax]
lea rax, [rax + 8]
shl rcx, 0x20
or rdx, rcx
lea rcx, [rsp + 0xc8]
mov qword [r8], rdx
add r8, 8
cmp r8, rcx
jne 0x140001b50
mov rcx, qword [rsp + 0xb8]
movabs rax, 0x5851f42d4c957f2d
mov rdx, qword [rsp + 0xc0]
lea r8, [rcx + rcx]
or r8, 1
add rdx, r8
mov qword [rbx], r8
imul rdx, rax
mov rax, rbx
add rdx, r8
mov qword [rbx + 8], rdx
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140092d50
add rsp, 0xe0
pop rbx
ret
Function at 0x140004ac0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
lea rdi, [rcx + 0x20]
mov rbp, rcx
mov r9d, 0x43b0d7e5
mov r10, rcx
cmp rcx, rdi
je 0x140004b89
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
nop dword [rax]
imul r11d, r9d, 0x931e8875
cmp rdx, r8
je 0x140004b06
mov rax, rdx
add rdx, 4
xor r9d, dword [rax]
imul r9d, r11d
mov eax, r9d
shr eax, 0x10
xor eax, r9d
mov r9d, r11d
mov dword [r10], eax
add r10, 4
cmp r10, rdi
jne 0x140004af0
mov rbx, rbp
mov rsi, rdi
mov r10, rbp
nop dword [rax + rax]
cmp rbx, r10
je 0x140004b65
mov ecx, r11d
imul r11d, r11d, 0x931e8875
xor ecx, dword [rbx]
imul ecx, r11d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
imul ecx, dword [r10], 0xca01f9dd
imul eax, eax, 0x4973f715
sub ecx, eax
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov dword [r10], eax
add r10, 4
mov rax, rdx
mov r9d, r11d
cmp r10, rdi
jne 0x140004b30
add rbx, 4
cmp rbx, rsi
jne 0x140004b28
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
jmp 0x140004b8c
mov rax, rdx
cmp rax, r8
je 0x140004be2
mov r10, rbp
cmp rbp, rdi
je 0x140004bd9
nop dword [rax]
mov edx, r9d
imul r9d, r9d, 0x931e8875
xor edx, dword [rax]
imul edx, r9d
mov ecx, edx
shr ecx, 0x10
xor ecx, edx
imul edx, dword [r10], 0xca01f9dd
imul ecx, ecx, 0x4973f715
sub edx, ecx
mov ecx, edx
shr ecx, 0x10
xor ecx, edx
mov dword [r10], ecx
add r10, 4
cmp r10, rdi
jne 0x140004ba0
add rax, 4
cmp rax, r8
jne 0x140004b91
mov rbp, qword [rsp + 0x28]
pop rdi
ret
Function at 0x14000f7d0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [0x1400cf080]
test rcx, rcx
je 0x14000f807
cmp qword [0x1400cf088], 0
jne 0x14000f81a
mov rcx, rdi
call fcn.14000f2f0
test al, al
je 0x14000f87e
mov rcx, qword [0x1400cf080]
mov r8, qword [rbx + 8]
sub r8, qword [rbx]
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x14000f885
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r8d, [rax + 0x23]
lea rdx, str._4Could_not_allocted_mememory_in_gt
lea rcx, [rsp + 0x40]
call fcn.140001e10
nop
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140080980
nop
lea rcx, [rsp + 0x40]
call fcn.1400040d0
xor al, al
jmp 0x14000f9ec
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
sub r9, r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, qword [0x1400cf080]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000f8f3
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r8d, [rax + 0x23]
lea rdx, str._4Could_not_write_to_mememory_of_gt
lea rcx, [rsp + 0x40]
call fcn.140001e10
nop
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140080980
nop
lea rcx, [rsp + 0x40]
call fcn.1400040d0
xor al, al
jmp 0x14000f9ec
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
cmp qword [rsp + 0x60], rax
je 0x14000f949
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x23
lea rdx, str._4Could_not_write_to_mememory_of_gt
lea rcx, [rsp + 0x40]
call fcn.140001e10
nop
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140080980
nop
lea rcx, [rsp + 0x40]
call fcn.1400040d0
xor al, al
jmp 0x14000f9ec
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
mov r9, rbp
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1400cf080]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
jne 0x14000f9b9
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r8d, [rax + 0x1f]
lea rdx, str._4Could_not_create_thread_in_gt
lea rcx, [rsp + 0x40]
call fcn.140001e10
nop
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140080980
nop
lea rcx, [rsp + 0x40]
call fcn.1400040d0
xor al, al
jmp 0x14000f9ec
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbx + 8]
sub r8, qword [rbx]
mov r9d, 0x8000
mov rdx, rbp
mov rcx, qword [0x1400cf080]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140092d50
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010b60
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x140010bbc
mov rdx, rax
call fcn.140022b00
mov qword [rbx + 0x10], rbp
mov rax, qword [rdi + 0x10]
mov r15d, 0xfffffffa
cmp qword [rdi + 0x18], 0x10
jb 0x140010bd4
mov r14, qword [rdi]
mov rcx, r14
mov rdi, r14
jmp 0x140010bda
mov r14, rdi
mov rcx, rdi
lea r13, [rax + rcx]
cmp rdi, r13
je 0x140010cd1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x140010c76
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140010c5d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140010c52
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140010c6c
mov rcx, rbx
call fcn.140022c50
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x140010c20
inc r14
cmp r14, r13
jne 0x140010bf0
cmp r15d, 0xfffffffa
jle 0x140010cd1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140010cc9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140010cbe
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140010cd1
mov rcx, rbx
call fcn.140022c50
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x140010d19
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140010d05
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140010cfd
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140010d10
mov r9b, 0x3d
mov rcx, rbx
call fcn.140022c50
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140010ce0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400117a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
nop word [rax + rax]
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x1400117f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400117d0
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rdi, qword [rcx + 0x50]
mov eax, 0x7fffffff
cmp r8, rax
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmova rsi, rax
mov rax, qword [rcx + 0x48]
cmp rax, rdi
jae 0x140015e21
mov rcx, qword [rcx + 0x30]
sub rdi, rax
lea rdx, [rax + rcx]
mov rcx, r14
cmp rsi, rdi
ja 0x140015e08
mov r8, rsi
call fcn.140094ab4
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call fcn.140094ab4
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
jne 0x140015e3c
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rsi, 0x1000
jae 0x140015ee9
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
jns 0x140015e97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140015e70
mov r15, qword [rsp + 0x20]
test rdi, rdi
jle 0x140015eb5
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rdi, rsi
jg 0x140015ec7
mov r8, rdi
call fcn.140094ab4
mov rbp, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call fcn.140094ab4
mov rbp, qword [rsp + 0x68]
mov rax, rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8, rsi
mov rdx, r14
mov rcx, rbp
mov rbp, qword [rsp + 0x68]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
jmp 0x1400117a0
Function at 0x140011820
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140011890
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140011860
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140092d50
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400118c0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14001192f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140011900
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140092d50
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.140011820
test rax, rax
jne 0x14001199c
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140092d50
add rsp, 0x30
pop rdi
ret
jns 0x1400119be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x1400119be
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140092d50
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x1400119f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400119d0
mov rsi, qword [rsp + 0x50]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140092d50
add rsp, 0x30
pop rdi
ret
Function at 0x140011fd0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x4f8
mov rax, qword [0x1400c6048]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, r8
mov dword [rsp + 0x40], pe_nt_image_headers64
mov rdi, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x1400120c2
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rbx
mov ebx, dword [rsp + 0x40]
cmp ax, 2
je 0x140012033
cmp ax, 0x17
jne 0x1400120ba
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0xd0]
mov dword [rsi], eax
mov r8d, 0x401
call fcn.140094aba
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebx
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1400120ba
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400120a0
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call fcn.1400037c0
mov rbx, qword [rsp + 0x4f0]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140092d50
add rsp, 0x4f8
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140011fd0