joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b50
Capabilities:
Execute command
Self delete
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call fcn.140004218
lea rdi, str.C:WindowsSystem32Driverscheck.txt
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], 0x25
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.1400018b0
nop
mov dword [rsp + 0x30], 7
lea rcx, [rsp + 0x58]
call fcn.140002380
test al, al
jne 0x140002bf9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
lea r8d, [rbx + 0x25]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140003a20
lea rcx, [rsp + 0x38]
call fcn.1400029e0
cmp al, 1
jne 0x140002bf9
movzx ebx, al
jmp 0x140002bfb
xor bl, bl
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140002c40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004754
test bl, bl
je 0x140002c52
call fcn.140002480
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140004218
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], 0x25
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.1400018b0
nop
lea rcx, [rsp + 0x58]
call fcn.140002380
movzx ebx, al
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140002cc9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002cc4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004754
test bl, bl
je 0x140002cd4
mov byte [0x140009af0], 1
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140002d0e
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400046f0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea rdx, [0x140006700]
lea rcx, [rsp + 0x38]
call fcn.140003160
mov rcx, rax
call fcn.140002870
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.C:userspublicEscalation.bat
lea rcx, [rsp + 0x58]
call fcn.140003160
nop
lea rdx, [0x140006740]
lea rcx, [rsp + 0x58]
call fcn.1400030e0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.1400030e0
lea rdx, [0x140006740]
lea rcx, [rsp + 0x58]
call fcn.1400030e0
lea rcx, [rsp + 0x58]
call fcn.1400030d0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x78
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.del__F__Q__C:userspublicEscalation.bat_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140002ef0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140002db0
cmp al, 1
je 0x140002f16
call fcn.140002b50
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
add rsp, 0x28
ret

Function at 0x140002f20
Capabilities:
Execute command
Self delete

Disassembly:
sub rsp, 0x28
call fcn.140002db0
test al, al
jne 0x140002f32
call fcn.140002ef0
lea rcx, str.del__Q__F__C:WindowsSystem32DriversCheck.txt_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.are_we_system_yet__r_nWhoami:
call fcn.140001010
lea rcx, str.whoami
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140004178
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400041b2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400041b7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140004200
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140006450]
cmp byte [rcx + rax], 0
je 0x140004200
dec r8
sub rdx, 1
jne 0x1400041e6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400050e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000512e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000512e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000512e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000512e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000512e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005130
xor al, al
add rsp, 0x28
ret
Function at 0x140050280
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
pxor xmm15, xmm9
movdqu xmm11, xmmword [rbx + r12]
movdqa xmm12, xmm10
movdqu xmm13, xmmword [rbx + r13]
pxor xmm10, xmm15
pxor xmm11, xmm10
pxor xmm2, xmm10
pxor xmm12, xmm11
pxor xmm3, xmm11
pxor xmm13, xmm12
pxor xmm4, xmm12
pxor xmm5, xmm13
movups xmm0, xmmword [r11 + 0x20]
pxor xmm10, xmm9
pxor xmm11, xmm9
pxor xmm12, xmm9
pxor xmm13, xmm9
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
movups xmm1, xmmword [r11 + 0x30]
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
movups xmm0, xmmword [r11 + 0x40]
jmp 0x140050320
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
aesdec xmm4, xmm0
aesdec xmm5, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140050320
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdec xmm4, xmm1
aesdec xmm5, xmm1
movups xmm1, xmmword [r11 + 0x10]
mov rax, r10
aesdeclast xmm2, xmm10
aesdeclast xmm3, xmm11
aesdeclast xmm4, xmm12
aesdeclast xmm5, xmm13
repz ret

Function at 0x1400503a0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
pxor xmm7, xmm15
pxor xmm7, xmm9
pxor xmm2, xmm7
movups xmm0, xmmword [r11 + 0x20]
aesdec xmm2, xmm1
movups xmm1, xmmword [r11 + 0x30]
pxor xmm7, xmm9
aesdec xmm2, xmm0
movups xmm0, xmmword [r11 + 0x40]
jmp 0x1400503e0
aesdec xmm2, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x1400503e0
aesdec xmm2, xmm1
movups xmm1, xmmword [r11 + 0x10]
mov rax, r10
aesdeclast xmm2, xmm7
repz ret

Function at 0x140050410
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
endbr64
test rdx, rdx
je 0x140050e3c
mov r10d, dword [rcx + 0xf0]
mov r11, rcx
test r9d, r9d
je case.0x14021fbc2.48
movups xmm2, xmmword [r8]
mov eax, r10d
cmp rdx, 0x10
jb 0x1400504cf
sub rdx, 0x10
jmp 0x140050470
movups xmm3, xmmword [rdi]
lea rdi, [rdi + 0x10]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
xorps xmm3, xmm0
lea rcx, [rcx + 0x20]
xorps xmm2, xmm3
aesenc xmm2, xmm1
dec eax
movups xmm1, xmmword [rcx]
lea rcx, [rcx + 0x10]
jne 0x140050488
aesenclast xmm2, xmm1
mov eax, r10d
mov rcx, r11
movups xmmword [rsi], xmm2
lea rsi, [rsi + 0x10]
sub rdx, 0x10
jae 0x140050470
add rdx, 0x10
jne 0x1400504cf
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [r8], xmm2
pxor xmm2, xmm2
pxor xmm3, xmm3
jmp 0x140050e3c
mov rcx, rdx
xchg rdi, rsi
rep movsb byte [rdi], byte [rsi]
nop
mov ecx, reloc.WS2_32.dll_recv
sub rcx, rdx
xor eax, eax
rep stosb byte [rdi], al
nop
lea rdi, [rdi - 0x10]
mov eax, r10d
mov rsi, rdi
mov rcx, r11
xor rdx, rdx
jmp 0x140050470
Function at 0x14005041d
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
endbr64
test rdx, rdx
je 0x140050e3c
mov r10d, dword [rcx + 0xf0]
mov r11, rcx
test r9d, r9d
je case.0x14021fbc2.48
movups xmm2, xmmword [r8]
mov eax, r10d
cmp rdx, 0x10
jb 0x1400504cf
sub rdx, 0x10
jmp 0x140050470
movups xmm3, xmmword [rdi]
lea rdi, [rdi + 0x10]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
xorps xmm3, xmm0
lea rcx, [rcx + 0x20]
xorps xmm2, xmm3
aesenc xmm2, xmm1
dec eax
movups xmm1, xmmword [rcx]
lea rcx, [rcx + 0x10]
jne 0x140050488
aesenclast xmm2, xmm1
mov eax, r10d
mov rcx, r11
movups xmmword [rsi], xmm2
lea rsi, [rsi + 0x10]
sub rdx, 0x10
jae 0x140050470
add rdx, 0x10
jne 0x1400504cf
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [r8], xmm2
pxor xmm2, xmm2
pxor xmm3, xmm3
jmp 0x140050e3c
mov rcx, rdx
xchg rdi, rsi
rep movsb byte [rdi], byte [rsi]
nop
mov ecx, reloc.WS2_32.dll_recv
sub rcx, rdx
xor eax, eax
rep stosb byte [rdi], al
nop
lea rdi, [rdi - 0x10]
mov eax, r10d
mov rsi, rdi
mov rcx, r11
xor rdx, rdx
jmp 0x140050470

Function at 0x140050e50
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 8
call fcn.140050ec0
shl edx, 4
test eax, eax
jne 0x140050eb6
lea rcx, [r8 + rdx + 0x10]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [rcx]
movups xmmword [rcx], xmm0
movups xmmword [r8], xmm1
lea r8, [r8 + 0x10]
lea rcx, [rcx - 0x10]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [rcx]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea r8, [r8 + 0x10]
lea rcx, [rcx - 0x10]
movups xmmword [rcx + 0x10], xmm0
movups xmmword [r8 - 0x10], xmm1
cmp rcx, r8
ja 0x140050e7b
movups xmm0, xmmword [r8]
aesimc xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [rcx], xmm0
pxor xmm0, xmm0
add rsp, 8
repz ret
Function at 0x1401318d0
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x1405eb5d0]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x1401318ec
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x1401318fa
bts eax, 6
shr ecx, 1
test cl, 1
je 0x140131905
bts eax, 5
shr ecx, 1
test cl, 1
je 0x140131910
bts eax, 4
shr ecx, 1
test cl, 1
je 0x14013191b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x140131926
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140131931
bts eax, 1
test cl, 2
je 0x14013193a
bts eax, 0
shl eax, 0x18
lea ecx, [rax + rax]
mov edx, ecx
xor edx, 0x4c11db7
test eax, eax
cmovns edx, ecx
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
test edx, edx
cmovns r8d, eax
xor ecx, ecx
lea edx, [rcx + 0x1e]
test r8b, 1
je 0x1401319d1
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x1401319dd
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x1401319c5
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x1401318e0
mov dword [0x1405eb5c0], 1
ret
Function at 0x1401347f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [r8 + 0x38], 1
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14013481f
xor eax, eax
jmp 0x1401349d7
mov ecx, dword [r9 + 0x10]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
lea rax, [rsi - 1]
cmp rax, 0xfe
ja 0x140134998
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa4]
jne 0x140134998
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0x9c]
jne 0x140134998
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa0]
jne 0x140134998
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x140134998
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.1401349f0
cmp rsi, qword [rbx + 0x48]
jae 0x1401348a5
mov qword [rbx + 0x48], rsi
movzx ecx, word [rdi + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x18], ax
movzx eax, byte [rdi + 6]
mov byte [rbx + 0x21], al
movzx eax, byte [rdi + 7]
mov byte [rbx + 0x20], al
mov ecx, dword [rdi + 8]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 0x240
mov esi, 0x1000
cmp eax, ecx
jb 0x1401348df
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xd0]
jae 0x1401348ed
mov dword [rbx + 0xd0], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x140134906
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0xd4]
jae 0x140134914
mov dword [rbx + 0xd4], esi
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x50], eax
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x54], eax
mov rcx, rbx
mov dword [rbp + 0x24], 1
test r14, r14
je 0x140134960
call fcn.140131f40
mov dword [rbx + 0x38], 5
mov dword [r14], 1
mov qword [r14 + 8], rbx
mov eax, dword [rbx + 0x1c8]
mov dword [r14 + 0x14], eax
xor eax, eax
jmp 0x1401349d2
xor edi, edi
cmp dword [rbx + 0x38], 1
sete dil
add edi, 3
call fcn.140131f70
cmp dword [rbx + 0x140], 0
mov dword [rbx + 0x38], edi
jne 0x140134994
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.1401316f0
mov dword [rbx + 0x140], 1
xor eax, eax
jmp 0x1401349d2
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x1c8], edi
call fcn.140131f70
mov dword [rbx + 0x38], 9
cmp dword [rbx + 0x140], edi
jne 0x1401349cd
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.1401316f0
mov dword [rbx + 0x140], 1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1401358d0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x38
mov r14, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140135909
cmp word [rax + 0x10], 2
jne 0x140135909
mov rax, qword [rax + 0x18]
mov rdx, qword [rax]
mov eax, dword [rdx]
mov dword [r14], eax
xor eax, eax
add rsp, 0x38
pop r14
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x28], rdi
mov ebp, esi
mov qword [rsp + 0x20], r15
mov edi, esi
mov dword [rsp + 0x60], 0
lea r15d, [rsi + 0x2e]
nop
lea rdx, [rbx + 1]
mov qword [rsp + 0x68], rdx
cmp byte [rbx], 0x30
je 0x140135973
mov r8d, 0xa
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp eax, 0xff
ja 0x14013599b
mov rdx, qword [rsp + 0x68]
cmp rdx, rbx
je 0x14013599b
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x14013599b
mov byte [rsp + rdi + 0x60], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x14013599b
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x140135930
mov eax, dword [rsp + 0x60]
mov dword [r14], eax
jmp 0x1401359a0
mov esi, 0xffffffff
mov r15, qword [rsp + 0x20]
mov eax, esi
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
add rsp, 0x38
pop r14
pop rbx
ret

Function at 0x1401359d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140135a39
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x140135a33
shr ax, 8
cmp al, 1
jne 0x140135a33
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140487ca0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140487ca0
add rsp, 0x1d8
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x140135b78
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140487ca0
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x2a]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140487ca0
add rsp, 0x40
pop rbx
ret
Function at 0x140135bb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r11, r9
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
mov rbx, rdx
lea r9, [rsp + 0x54]
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov r10, r8
mov qword [rsp + 0x38], rdx
test rbx, rbx
mov dword [rsp + 0x50], edx
mov r8d, r11d
cmove r9, rdx
cmove rax, rdx
mov qword [rsp + 0x30], r9
mov rdx, r10
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x140135c3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x140135c3a
cmp eax, 0x13
jne 0x140135c48
xor eax, eax
jmp 0x140135c6d
test dword [rsp + 0x50], 0x8000
je 0x140135c4f
mov eax, 0xffffffff
jmp 0x140135c6d
test rbx, rbx
je 0x140135c69
mov eax, dword [rsp + 0x64]
movzx ecx, word [rsp + 0x62]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140487ca0
add rsp, 0x80
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x140135ce2
movzx ecx, word [rdx + 4]
mov eax, 2
mov word [rsp + 0x58], ax
mov qword [rsp + 0x60], r14
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov eax, dword [rbx]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x40], r14
mov rax, rbx
neg rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
mov r8d, ebp
sbb r9d, r9d
mov rdx, rsi
and r9d, 0x10
mov rcx, rdi
mov dword [rsp + 0x30], r9d
test rbx, rbx
lea r9, [rsp + 0x50]
cmove rax, r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140135d3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x140135d42
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140487ca0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140135d60
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
dec edx
mov r9d, 0xffffffff
cmp edx, 8
ja case.0x140135d8f.8
movsxd rax, edx
lea r10, [0x140000000]
mov edx, dword [r10 + rax*4 + 0x135e38]
add rdx, r10
jmp rdx
mov dword [rsp + 0x48], r8d
mov edx, 0x8004667e
lea r8, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r9d, eax
xor eax, eax
cmp r9d, 0xffffffff
setne al
dec eax
add rsp, 0x38
ret
mov edx, 0xffff
mov r8d, reloc.WLDAP32.dll_Ordinal_32
jmp 0x140135e10
mov edx, 0xffff
mov r8d, 4
jmp 0x140135e10
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x140135e10
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x140135e10
mov edx, 0xffff
mov r8d, 0x1006
jmp 0x140135e10
mov edx, 0xffff
mov r8d, 0x1005
jmp 0x140135e10
mov edx, 6
lea r8d, [rdx - 5]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r9d, eax
xor eax, eax
cmp r9d, 0xffffffff
setne al
dec eax
add rsp, 0x38
ret

Function at 0x140135e60
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov dword [rsp + 0x250], 0
mov eax, 0x10624dd3
mov dword [rsp + 0x40], 0
mul r8d
mov rdi, rcx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov eax, dword [rbx]
test al, 1
je 0x140135ece
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
test al, 2
je 0x140135ee5
mov qword [rsp + 0x258], rdi
mov dword [rsp + 0x250], 1
lea rax, [rsp + 0x30]
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x140135f12
mov eax, 0xffffffff
jmp 0x140135f49
mov dword [rbx], 0
test eax, eax
je 0x140135f47
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140135f30
or dword [rbx], 1
lea rdx, [rsp + 0x250]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140135f47
or dword [rbx], 2
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140487ca0
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret

Function at 0x140135f90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, r9
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov ecx, gethostbyaddr
call fcn.140487b50
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140135fdc
mov rdx, rsi
mov rcx, rax
call fcn.140149800
mov eax, dword [r14]
mov dword [rbx + 0x20], eax
mov qword [rbx + 0x28], rbp
jmp 0x140135fde
xor ebx, ebx
mov qword [rsp + 0x50], rbx
lea rsi, [rdi + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14013baf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140136026
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov dword [rsi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x140136040
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.140487b50
test rax, rax
je 0x140136062
mov qword [rax], rdi
mov qword [rsp + 0x40], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14013bba0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x1401360a2
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3