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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1402b44e8
call fcn.140299e38
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140295448
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1402b44d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1402b44d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1402b451a
lock or dword [rax + 0x14], 0x10
jmp 0x1402b44d0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1402b4537
mov rcx, qword [rbp + 0x10]
call fcn.1402b4c98
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1402a2ee8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1402b2ed0
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1402b458e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1402b44d0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1402b45fa
mov rcx, qword [rbp + 0x10]
call fcn.1402a2ee8
cmp eax, 0xffffffff
je 0x1402b45e1
mov rcx, qword [rbp + 0x10]
call fcn.1402a2ee8
cmp eax, 0xfffffffe
je 0x1402b45e1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1402a2ee8
movsxd rdi, eax
lea rsi, [0x1403dbe30]
mov rcx, rbx
sar rdi, 6
call fcn.1402a2ee8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1402b45e8
lea rax, [0x1403c8b00]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1402b45fa
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1402b4630
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1402b462c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1402b462c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1402b44d3
jmp 0x1402b44a0
Function at 0x140008050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14005d8c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp], 0x53
mov byte [rsp + 1], 0x23
mov byte [rsp + 2], 0x3c
mov byte [rsp + 3], 0x24
mov byte [rsp + 4], 0x36
mov byte [rsp + 5], 0x21
mov byte [rsp + 6], 0x20
mov byte [rsp + 7], 0x3b
mov byte [rsp + 8], 0x36
mov byte [rsp + 9], 0x3f
mov byte [rsp + 0xa], 0x3f
mov byte [rsp + 0xb], 0x7d
mov byte [rsp + 0xc], 0x36
mov byte [rsp + 0xd], 0x2b
mov byte [rsp + 0xe], 0x36
mov byte [rsp + 0xf], 0x73
mov byte [rsp + 0x10], 0x7e
mov byte [rsp + 0x11], 0x16
mov byte [rsp + 0x12], 0x3d
mov byte [rsp + 0x13], 0x30
mov byte [rsp + 0x14], 0x3c
mov byte [rsp + 0x15], 0x37
mov byte [rsp + 0x16], 0x36
mov byte [rsp + 0x17], 0x37
mov byte [rsp + 0x18], 0x10
mov byte [rsp + 0x19], 0x3c
mov byte [rsp + 0x1a], 0x3e
mov byte [rsp + 0x1b], 0x3e
mov byte [rsp + 0x1c], 0x32
mov byte [rsp + 0x1d], 0x3d
mov byte [rsp + 0x1e], 0x37
mov byte [rsp + 0x1f], 0x73
mov byte [rsp + 0x20], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 0x21
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015110
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140008370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14005d8c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp], 0x5d
mov byte [rsp + 1], 0x1b
mov byte [rsp + 2], 0x3c
mov byte [rsp + 3], 0x34
mov byte [rsp + 4], 0x31
mov byte [rsp + 5], 0x38
mov byte [rsp + 6], 0x39
mov byte [rsp + 7], 0x7d
mov byte [rsp + 8], 0x29
mov byte [rsp + 9], 0x32
mov byte [rsp + 0xa], 0x7d
mov byte [rsp + 0xb], 0x2f
mov byte [rsp + 0xc], 0x28
mov byte [rsp + 0xd], 0x33
mov byte [rsp + 0xe], 0x7d
mov byte [rsp + 0xf], 0xd
mov byte [rsp + 0x10], 0x32
mov byte [rsp + 0x11], 0x2a
mov byte [rsp + 0x12], 0x38
mov byte [rsp + 0x13], 0x2f
mov byte [rsp + 0x14], 0xe
mov byte [rsp + 0x15], 0x35
mov byte [rsp + 0x16], 0x38
mov byte [rsp + 0x17], 0x31
mov byte [rsp + 0x18], 0x31
mov byte [rsp + 0x19], 0x7d
mov byte [rsp + 0x1a], 0x2e
mov byte [rsp + 0x1b], 0x3e
mov byte [rsp + 0x1c], 0x2f
mov byte [rsp + 0x1d], 0x34
mov byte [rsp + 0x1e], 0x2d
mov byte [rsp + 0x1f], 0x29
mov byte [rsp + 0x20], 0x73
mov byte [rsp + 0x21], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015110
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x18000ec80
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18000ec80
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0xc8
call fcn.180066d80
sub rsp, rax
mov rax, qword [0x1800b3b80]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rdx + 8]
mov r15, qword [rdx + 0x10]
xor esi, esi
sub rax, r8
mov rdi, r8
mov r13, rdx
mov r12, rcx
mov qword [rsp + 0x20], rcx
mov ebp, esi
mov qword [rsp + 0x28], rax
cmp r15, r8
jb 0x18000ee38
cmp r8, 0x40
ja 0x18000ee38
lea rax, [rsp + 0x30]
mov qword [rsp + 0x108], rbx
mov qword [rsp + 0xc0], r14
neg rax
lea r14, [rsp + 0x30]
and eax, 0x3f
add r14, rax
lea rax, [r8 + 0x100]
cmp r15, rax
jbe 0x18000ed1a
mov rbp, r15
sub rbp, r8
sub rbp, 0x100
xor edx, edx
mov rcx, r14
mov rbx, rsi
call fcn.1800673a0
mov r8, rsi
cmp rbp, r15
jae 0x18000edce
mov r9, qword [r13 + 8]
mov r11, qword [rsp + 0x28]
mov r13, qword [r13 + 0x20]
mov r10, r9
mov r12, rsi
neg r10
nop dword [rax]
mov rax, rbp
lea rcx, [r10 + rbp]
xor rcx, r9
xor rax, r11
lea rdx, [rax - 1]
not rax
shr rax, 0x3f
shr rdx, 0x3f
and rdx, rax
mov rax, rbp
xor rax, r9
neg rdx
or rcx, rax
or r12, rdx
and rdx, r8
xor rcx, rbp
inc r8
inc rbp
shr rcx, 0x3f
or rbx, rdx
neg rcx
and r12, rcx
mov rcx, r8
sub rcx, rdi
movzx eax, r12b
and al, byte [r13 + rbp - 1]
xor rcx, rdi
or byte [r8 + r14 - 1], al
mov rax, rdi
xor rax, r8
or rcx, rax
xor rcx, r8
shr rcx, 0x3f
neg rcx
and r8, rcx
cmp rbp, r15
jb 0x18000ed50
mov r12, qword [rsp + 0x20]
test rdi, rdi
je 0x18000ee21
nop word [rax + rax]
mov rax, rbx
inc rbx
inc rsi
xor rax, 0x20
mov rcx, rbx
movzx eax, byte [rax + r14]
movzx eax, byte [rbx + r14 - 1]
sub rcx, rdi
xor rcx, rdi
mov byte [r12 + rsi - 1], al
mov rax, rdi
xor rax, rbx
or rcx, rax
xor rcx, rbx
shr rcx, 0x3f
neg rcx
and rbx, rcx
cmp rsi, rdi
jb 0x18000ede0
mov r14, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x108]
mov eax, 1
jmp 0x18000ee3a
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180066e70
add rsp, 0xc8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800104d0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1800104d0
push rbx
push rsi
mov eax, 0x28
call fcn.180066d80
sub rsp, rax
mov rax, qword [rcx + 8]
lea rsi, [r9 + 1]
mov rbx, rdx
mov r9, qword [rax + 0xc0]
mov r10, rcx
test byte [r9 + 0x60], 1
je 0x180010527
mov rdx, qword [rdx + 8]
lea rax, [rsi + r8]
cmp rax, rdx
jbe 0x180010512
xor eax, eax
add rsp, 0x28
pop rsi
pop rbx
ret
add qword [rbx + 0x20], r8
add qword [rbx + 0x28], r8
sub rdx, r8
sub qword [rbx + 0x10], r8
mov qword [rbx + 8], rdx
jmp 0x18001052d
cmp rsi, qword [rdx + 8]
ja 0x180010509
mov rcx, qword [rbx + 0x20]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rdi
movzx edi, byte [rcx + rax - 1]
mov rcx, qword [r10 + 0x438]
call sub.libcrypto_1_1_x64.dll_EVP_CIPHER_CTX_cipher
mov rcx, rax
call sub.libcrypto_1_1_x64.dll_EVP_CIPHER_flags
bt eax, 0x15
jae 0x180010575
or rax, 0xffffffffffffffff
sub rax, rdi
mov rdi, qword [rsp + 0x20]
add qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rsi
pop rbx
ret
lea rax, [rdi + rsi]
mov rsi, qword [rbx + 8]
mov qword [rsp + 0x48], rbp
mov ebp, 0x100
mov r8, rsi
sub r8, rax
xor r8, rax
xor rax, rsi
or r8, rax
xor r8, rsi
shr r8, 0x3f
dec r8
cmp rsi, rbp
cmovb rbp, rsi
xor r9d, r9d
test rbp, rbp
je 0x180010600
mov r11, qword [rbx + 0x20]
mov r10, rdi
dec r11
shr r10, 0x3f
add r11, rsi
mov rcx, r9
movzx eax, r10b
mov rdx, rdi
sub rdx, r9
shr rcx, 0x3f
inc r9
xor al, cl
shr rdx, 0x3f
lea r11, [r11 - 1]
xor dl, cl
or dl, al
movzx eax, byte [r11 + 1]
xor dl, r10b
xor rax, rdi
dec dl
movzx ecx, dl
and rcx, rax
not rcx
and r8, rcx
cmp r9, rbp
jb 0x1800105c0
mov rbp, qword [rsp + 0x48]
not r8
movzx eax, r8b
lea rcx, [rax - 1]
not rax
shr rax, 0x3f
shr rcx, 0x3f
and rcx, rax
lea rax, [rdi + 1]
mov rdi, qword [rsp + 0x20]
neg rcx
and rax, rcx
sub rsi, rax
mov qword [rbx + 8], rsi
mov dword [rsp + 0x40], ecx
not ecx
mov dword [rsp + 0x58], ecx
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x58]
and eax, 1
or eax, ecx
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x140002a94
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140002b25
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140002b25
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002b25
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140002b09
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140002b03
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140002b0b
add rdx, 0x28
jmp 0x140002ae8
xor edx, edx
test rdx, rdx
jne 0x140002b14
xor al, al
jmp 0x140002b2b
test dword [rdx + 0x24], 0x80000000
je 0x140002b21
xor al, al
jmp 0x140002b2b
mov al, 1
jmp 0x140002b2b
xor al, al
jmp 0x140002b2b
add rsp, 0x18
ret
Function at 0x14001a1f0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001a2bc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001a2bc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001a2d5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001a2ac
cmp byte [rax], 0x5c
jne 0x14001a2a6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001a2a6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001a292
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001a2a3
test r8b, 0x10
jne 0x14001a2a6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001a2a6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001e870
test edi, edi
jne 0x14001a210
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.14001c4d0
int3
Function at 0x140022bf0
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, 0x40
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x24], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x140022c54
movzx r8d, byte [rsp + 0x20]
mov rdx, rax
call fcn.14000f1d0
mov qword [rdi + 0x10], r14
mov rax, qword [rbx + 0x10]
mov r13d, 0xfffffffa
cmp qword [rbx + 0x18], 0x10
jb 0x140022c6c
mov r15, qword [rbx]
mov rcx, r15
mov rbx, r15
jmp 0x140022c72
mov r15, rbx
mov rcx, rbx
add rax, rcx
mov qword [rsp + 0x28], rax
cmp rbx, rax
je 0x140022d88
lea r8, [0x1401bc1c0]
movzx ebx, byte [rsp + 0x20]
nop
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x140022d1f
movsxd r12, r14d
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
nop dword [rax]
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140022cfd
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140022cf2
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140022d15
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000f060
lea r8, [0x1401bc1c0]
sub rsi, 6
sub rbp, 1
jne 0x140022cc0
inc r15
cmp r15, qword [rsp + 0x28]
jne 0x140022c90
cmp r13d, 0xfffffffa
jle 0x140022d88
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rdx, r14d
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140022d75
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140022d6a
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140022d88
movzx r8d, byte [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call fcn.14000f060
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x140022dd8
movzx ebx, byte [rsp + 0x20]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140022dbb
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140022db3
mov rax, qword [rdi]
mov word [rcx + rax], 0x3d
jmp 0x140022dcf
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000f060
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x140022d96
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140024550
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140024584
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140024570
ret
Function at 0x140025e50
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14022ea58]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140025e88
cmp ax, 0x17
jne 0x140025efd
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140025efd
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140025ee2
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000a070
mov al, 1
jmp 0x140025eff
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140196fd0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002ca90
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 0x14002cae4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002cac0
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

Function at 0x14002dd60
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14022ea58]
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 0x14002ddd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002dda0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140196fd0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14002de00
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14022ea58]
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 0x14002de6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002de40
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140196fd0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14002ee20
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x14022ea58]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x20], 0x10
lea rsi, [rcx + 8]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, ebx
mov rdx, rsi
jb 0x14002ee64
mov rdx, qword [rsi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14002ee80
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14002eea4
cmp qword [rsi + 0x18], 0x10
jb 0x14002ee8a
mov rsi, qword [rsi]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14002eea9
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call sub.libcrypto_3_x64.dll_X509_get_ext_d2i
mov r12, rax
test rax, rax
je 0x14002ef92
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call sub.libcrypto_3_x64.dll_OPENSSL_sk_num
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x14002ef85
nop
test r14b, r14b
jne 0x14002ef80
mov edx, ebx
mov rcx, r12
call sub.libcrypto_3_x64.dll_OPENSSL_sk_value
mov rsi, rax
cmp dword [rax], edi
jne 0x14002ef6a
mov rcx, qword [rax + 8]
call sub.libcrypto_3_x64.dll_ASN1_STRING_get0_data
mov rcx, qword [rsi + 8]
mov rbp, rax
call sub.libcrypto_3_x64.dll_ASN1_STRING_length
movsxd r8, eax
cmp edi, 2
je 0x14002ef59
cmp edi, 7
jne 0x14002ef6a
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002ef54
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14002ef6a
mov r13b, 1
jmp 0x14002ef6a
mov rcx, qword [rsp + 0x28]
mov rdx, rbp
call fcn.140022e00
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x24]
jl 0x14002eef0
test r14b, r14b
jne 0x14002ef80
test r13b, r13b
je 0x14002ef85
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call sub.libcrypto_3_x64.dll_GENERAL_NAMES_free
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140196fd0
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x14002f259
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14002f286
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14002f262
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140032210
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x140236c40]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x14003222c
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x14003223a
bts eax, 6
shr ecx, 1
test cl, 1
je 0x140032245
bts eax, 5
shr ecx, 1
test cl, 1
je 0x140032250
bts eax, 4
shr ecx, 1
test cl, 1
je 0x14003225b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x140032266
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140032271
bts eax, 1
test cl, 2
je 0x14003227a
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 0x140032311
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x14003231d
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x140032305
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x140032220
mov dword [0x140236c30], 1
ret