joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140150481
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140207920
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x3a0
lea rbp, [rsp + 0x20]
lea rcx, [0x1405484cf]
call fcn.14014fb49
nop
mov dword [rbp + 4], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [rbp + 0x24], eax
movzx eax, byte [0x140520940]
test eax, eax
je 0x140207a17
mov rcx, qword [rbp + 0x3a0]
call fcn.14014caa7
nop
movzx eax, byte [0x140521022]
test eax, eax
jne 0x14020798e
mov ecx, dword [0x1404bcf50]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1402079d9
mov rcx, qword [rbp + 0x3a8]
call fcn.14014eb04
test rax, rax
je 0x1402079d9
lea rax, [rbp + 0x360]
mov rcx, qword [rbp + 0x3a0]
mov rdi, rax
lea rsi, [rcx + 0xbc]
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rbp + 0x3a8]
lea rdx, [rbp + 0x360]
mov rcx, qword [rbp + 0x3a0]
call fcn.14014a83d
nop
movzx eax, byte [0x140520941]
test eax, eax
je 0x140207a17
mov ecx, dword [0x1404bcf50]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140207a17
mov eax, dword [rbp + 4]
mov ecx, dword [rbp + 0x24]
sub ecx, eax
mov eax, ecx
cmp eax, 0xc8
jb 0x140207a17
call fcn.14014f80b
nop
mov eax, dword [rbp + 0x24]
mov dword [rbp + 4], eax
lea rax, [fcn.14014a83d]
test rax, rax
je 0x140207a2e
movzx eax, byte [0x140521038]
test eax, eax
jne 0x140207a63
lea rax, [rbp + 0x1c8]
mov qword [rbp + 0x338], rax
mov rdx, qword [rbp + 0x3a0]
mov rcx, qword [rbp + 0x338]
call fcn.14014a036
mov qword [rbp + 0x378], rax
mov rcx, qword [rbp + 0x378]
call fcn.14015019d
nop
mov rcx, qword [rbp + 0x3a0]
call fcn.14014ad5b
nop
mov rcx, qword [rbp + 0x3a8]
call fcn.14014cf16
nop
lea rsp, [rbp + 0x380]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403d2f00
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14014ff6d
movzx eax, al
test eax, eax
jne 0x1403d2f20
mov ecx, 7
call fcn.14014e96a
nop
mov byte [rsp + 0x20], 0
call fcn.14014eb2c
mov byte [rsp + 0x21], al
cmp dword [0x140523198], 1
jne 0x1403d2f44
mov ecx, 7
call fcn.14014e96a
nop
jmp 0x1403d2f9c
cmp dword [0x140523198], 0
jne 0x1403d2f97
mov dword [0x140523198], 1
lea rdx, [0x1403f4b68]
lea rcx, [0x1403f4838]
call fcn.14014c1f6
test eax, eax
je 0x1403d2f78
mov eax, 0xff
jmp 0x1403d30a1
lea rdx, [0x1403f4728]
lea rcx, [section..rdata]
call fcn.14014ead2
mov dword [0x140523198], 2
jmp 0x1403d2f9c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14014e825
call fcn.14014dcc7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1403d2ff9
mov rcx, qword [rsp + 0x30]
call fcn.14014b891
movzx eax, al
test eax, eax
je 0x1403d2ff9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14054b020]
nop
call fcn.14014e1ae
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1403d302d
mov rcx, qword [rsp + 0x38]
call fcn.14014b891
movzx eax, al
test eax, eax
je 0x1403d302d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14014f7ac
nop
call fcn.1403d3110
mov dword [rsp + 0x28], eax
call fcn.14014d9ac
movzx eax, al
test eax, eax
jne 0x1403d304c
mov ecx, dword [rsp + 0x28]
call fcn.14014976c
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1403d305b
call fcn.14014f8fb
nop
xor edx, edx
mov cl, 1
call fcn.14014b62f
mov eax, dword [rsp + 0x28]
jmp 0x1403d30a1
add rsp, 0x68
ret
Function at 0x14079c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14079c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14079c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079c06f
add dl, dl
jne 0x14079c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079c0f6
xor eax, eax
add dl, dl
jne 0x14079c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079c1ad
add dl, dl
jne 0x14079c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14079c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14079c07e
mov eax, 1
add dl, dl
jne 0x14079c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079c0fb
sub eax, ebx
mov ebx, 1
jne 0x14079c14c
mov ecx, 1
add dl, dl
jne 0x14079c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14079c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14079c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14079c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079c15d
cmp eax, 0x7d00
jae 0x14079c19b
cmp eax, 0x500
jb 0x14079c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079c07e
cmp eax, 0x7f
ja 0x14079c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14079c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14079c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000a630
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000a652
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000a6cc
mov rdi, r14
mov rcx, rbx
call fcn.14000d800
test rax, rax
jle 0x14000a6a4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140152160
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000a6bc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x14000a6c4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000a666
sub r14, rdi
jmp 0x14000a7af
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a6e3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a6e5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a717
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140152160
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000a7ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a752
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000a78d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140086938
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000a7ac
cmp rbp, rax
ja 0x14000a760
test rbp, rbp
je 0x14000a7ac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140086938
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14000d1b0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov rbp, rcx
shr rbp, 0x38
mov r14, rcx
shr r14, 0x30
mov r15, rcx
shr r15, 0x28
mov r12, rcx
shr r12, 0x20
mov r13, rcx
shr r13, 0x18
shr rcx, 0x10
mov qword [rsp + 0x20], rcx
mov rdx, rbx
shr rdx, 8
mov qword [rsp + 0x28], rdx
mov rax, qword gs:[0x58]
mov r8, qword [rax]
mov r9d, 0x170
mov eax, dword [r9 + r8]
mov esi, 0x130
add rsi, r8
xor edi, edi
test al, 1
jne 0x14000d2b0
or eax, 1
mov dword [r9 + r8], eax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
mov qword [rsp + 0x30], rsi
mov dword [rsi], edi
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
lea ecx, [rdi + 0x30]
call fcn.140074cc8
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsi + 8], rax
lea rcx, [rsi + 0x18]
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov qword [rsi + 0x30], 7
mov qword [rsi + 0x38], 8
mov dword [rsi], 0x3f800000
mov r8, qword [rsi + 8]
lea edx, [rdi + 0x10]
call fcn.14000e760
nop
lea rcx, [0x140156950]
call fcn.1400750f0
nop
mov rdx, qword [rsp + 0x28]
jmp 0x14000d2b5
mov qword [rsp + 0x20], rcx
mov rax, rbx
movzx ecx, al
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs r8, 0x100000001b3
imul rcx, r8
movzx eax, dl
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x20]
xor rcx, rax
imul rcx, r8
movzx eax, r13b
xor rcx, rax
imul rcx, r8
movzx eax, r12b
xor rcx, rax
imul rcx, r8
movzx eax, r15b
xor rcx, rax
imul rcx, r8
movzx eax, r14b
xor rcx, rax
imul rcx, r8
xor rcx, rbp
imul rcx, r8
mov rdx, qword [rsi + 0x30]
and rdx, rcx
add rdx, rdx
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
mov r8, qword [rsi + 8]
cmp rax, r8
je 0x14000d357
mov rcx, qword [rcx + rdx*8]
cmp rbx, qword [rax + 0x10]
je 0x14000d354
cmp rax, rcx
je 0x14000d357
mov rax, qword [rax + 8]
cmp rbx, qword [rax + 0x10]
jne 0x14000d345
mov rdi, rax
test rdi, rdi
je 0x14000d366
cmp rdi, r8
je 0x14000d366
mov eax, dword [rdi + 0x18]
jmp 0x14000d36b
mov eax, 0xffffffff
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140010940
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rdi, r8
mov r14, rdx
mov r8, qword [r8 + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140010969
mov rdx, qword [rdi]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
test r8, r8
je 0x1400109a3
movabs r9, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor rbx, rax
imul rbx, r9
inc rcx
cmp rcx, r8
jb 0x140010990
mov r9, rbx
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.140015520
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x1400109ca
mov qword [r14], rax
mov byte [r14 + 8], 0
jmp 0x140010b82
movabs rax, 0x492492492492492
cmp qword [0x140265080], rax
je 0x140010b98
lea rax, [0x140265078]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov ecx, Ordinal_60
call fcn.140074cc8
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, rdi
lea rcx, [rax + 0x10]
call fcn.14000bf10
mov qword [rsi + 0x30], 0
mov r8, qword [0x140265080]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140010a36
cvtsi2ss xmm0, rcx
jmp 0x140010a4b
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rdi, qword [0x1402650a8]
xorps xmm2, xmm2
test rdi, rdi
js 0x140010a61
cvtsi2ss xmm2, rdi
jmp 0x140010a79
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
movss xmm3, dword [0x140265070]
comiss xmm1, xmm3
seta al
test al, al
je 0x140010b1e
divss xmm0, xmm3
call fcn.14014c43c
xor ecx, ecx
movss xmm1, dword [0x14018d674]
comiss xmm0, xmm1
jb 0x140010ac4
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140010ac4
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdi, rcx
jae 0x140010af6
cmp rdi, 0x200
jae 0x140010af3
lea rdi, [rdi*8]
cmp rdi, rcx
jae 0x140010af6
mov rdi, rcx
mov rdx, rdi
call fcn.140013dc0
mov r9, rbx
lea r8, [rsi + 0x10]
lea rdx, [rsp + 0x30]
call fcn.140015520
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
mov r8, qword [0x140265080]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x140265080], r8
mov qword [rsi], rcx
mov qword [rsi + 8], rdx
mov qword [rdx], rsi
mov qword [rcx + 8], rsi
mov rax, qword [0x140265088]
and rbx, qword [0x1402650a0]
add rbx, rbx
mov r8, qword [rax + rbx*8]
cmp r8, qword [0x140265078]
jne 0x140010b63
mov qword [rax + rbx*8], rsi
jmp 0x140010b75
cmp r8, rcx
jne 0x140010b6e
mov qword [rax + rbx*8], rsi
jmp 0x140010b7a
cmp qword [rax + rbx*8 + 8], rdx
jne 0x140010b7a
mov qword [rax + rbx*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rcx, str.unordered_map_set_too_long
call fcn.140072094
int3
Function at 0x140015a60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x140015ac1
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140015a80
mov ecx, dword [r9]
jmp 0x140015bab
cmp ecx, 0x4e0
jb 0x140015bab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140015ae0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140015b30
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140036530
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140036572
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140036710
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x1401ab100]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x1a0]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x508]
mov rbp, qword [rsi + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [rsi + 0x698]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14003681a
lea rax, [0x1400365c0]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x14003681a
cmp qword [rbx], r13
je 0x14003679e
test rdi, rdi
je 0x14003681a
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.140045450
cmp eax, 0xffffffff
je 0x14003681a
test al, 1
je 0x14003681a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400367f9
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
mov rdi, qword [rbx + 8]
mov rcx, rax
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
jne 0x1400367f9
mov qword [rbx + 8], r13
jmp 0x14003681a
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14003681a
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x140036887
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140036853
mov dword [r14], 0x51
mov rax, r13
jmp 0x14003688a
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140061d50
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400361c0
mov rcx, qword [rsi]
mov dword [rcx + 0x11b0], ebx
mov dword [r14], Ordinal_60
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140074b80
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x140036f2d
call fcn.14002f770
test eax, eax
je 0x140036f59
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x140036f59
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140038f50
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140159550]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140038f7a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140159570]
mov rcx, rbx
mov r14, rax
call fcn.14008ecb0
test rax, rax
je 0x140038fd9
mov rcx, rbx
test r14, r14
je 0x140038fc6
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test r14, r14
je 0x140039010
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140039010
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400390d8
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140039040
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400390ca
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400390ca
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140039070
mov word [rax + rsi], 0x5c
inc rdi
cmp byte [rsi + rdi], bpl
jne 0x140039081
mov rax, rsi
sub rax, rbx
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdi + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400390a0
mov rcx, rsi
test r14, r14
je 0x1400390c1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400390c7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14008641c]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140043ed0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401ab100]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140043f25
jmp 0x1400440d4
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400440ab
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400440ab
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400440ab
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400440ab
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1400440ab
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400440ab
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400440ab
mov r9, rsi
lea r8, [0x14017281c]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.140046d30
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140044045
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400440ab
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400440ab
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140152ba0
test eax, eax
jne 0x1400440ab
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400440cc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140074b80
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret