joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402410
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004091a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00409180]
test rbx, rbx
je 0x402464
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40245b
test r12, r12
je 0x40245b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402440
lea rcx, [0x004091a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402760
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00405930]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4027d2
mov rcx, r10
call fcn.00402650
test eax, eax
je 0x4027d2
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x4027cf
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x4027c6
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4027d2
add r8, 0x28
cmp r8, r9
jne 0x4027b1
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x14000d0a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000d0eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000d0c0
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x14000d104
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
mov r14, qword [rcx]
mov ecx, dword [r14]
xor r9d, r9d
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rsi
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000d14e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000d124
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x14000d168
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x20]
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
mov r14, qword [rcx + 8]
mov r15, qword [rcx]
mov ecx, dword [r15]
mov r9, rsi
inc ecx
mov qword [rsp + 0x20], rdi
mov r8, rbp
mov rdx, r14
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000d1be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x14000d193
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140016f28
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1c0
mov rsi, rcx
mov ecx, 0x38
call fcn.14005f7f0
mov rdi, rax
mov qword [rsp + 0x1d8], rax
xor ebx, ebx
test rax, rax
je 0x140016f70
mov rcx, rax
call fcn.1400189e0
mov qword [rdi + 0x28], rsi
mov qword [rdi + 0x30], rbx
jmp 0x140016f73
mov rdi, rbx
mov qword [rsi], rdi
mov eax, 1
lock xadd dword [0x14008f890], eax
inc eax
cmp eax, 1
jne 0x140016fa0
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14008f894], eax
lea rcx, [0x14008f890]
call fcn.14004e660
nop
mov ecx, 0xb0
call fcn.14005f7f0
mov qword [rsp + 0x1d8], rax
test rax, rax
je 0x140016fd9
xor r9d, r9d
or r8d, 0xffffffff
mov rdx, rsi
mov rcx, rax
call fcn.1400187e4
mov rbx, rax
mov qword [rsp + 0x1d8], rbx
mov rdx, rbx
mov rcx, qword [rsi]
call fcn.140008cd8
nop
mov qword [rsi + 0x10], rbx
mov rax, rsi
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001e3d8
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov dword [rax + 8], 1
mov rbx, r8
mov rdi, rcx
mov rcx, rsi
lea r8, [rax + 8]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rbx + 0x10]
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14001e457
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001e446
mov r8, qword [rdi + 0x10]
mov rcx, rsi
mov rdx, qword [rdi + 8]
mov r8, qword [r8]
mov rdx, qword [rdx]
call fcn.1400503b4
test al, al
jne 0x14001e457
mov rax, qword [rdi + 0x18]
mov dword [rax], 2
xor al, al
jmp 0x14001e4e5
and dword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x40]
mov ebx, 0xffff
mov dword [rsp + 0x20], 8
mov r8d, 0x1006
mov edx, ebx
mov ecx, dword [rax]
mov rax, qword [rdi + 0x28]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rax]
mov dword [rsp + 0x44], ecx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x30]
lea r9, [rsp + 0x40]
mov edx, ebx
mov dword [rsp + 0x20], 8
mov r8d, dword [rcx]
mov rcx, qword [rdi + 0x38]
mov dword [rsp + 0x40], r8d
mov r8d, dword [rcx]
mov rcx, rsi
mov dword [rsp + 0x44], r8d
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x18]
mov al, 1
and dword [rcx], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140020c6c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rdi, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140020cd7
lea rcx, [rsp + 0x4c]
call fcn.14002d518
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x140020ccb
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
jmp 0x140020c9e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140020ce2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140020cf4
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [str.LocalUniqueApplicationMutex]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x140020d2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140020d2d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140020d2f
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140021728
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x1400218b5
cmp ecx, 0x7c
je 0x1400218b5
cmp ecx, 0x29
jne 0x140021773
cmp dword [rbx + 0x1c], 0
jne 0x1400218b5
lea rdi, [rbx + 0x80]
test dword [rdi], 0x10000000
je 0x1400218ce
jmp 0x14002186b
lea rdi, [rbx + 0x80]
cmp ecx, 0x2e
jne 0x14002179a
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.1400265c8
mov rcx, rbx
call fcn.140026620
jmp 0x1400218a3
cmp ecx, 0x5c
jne 0x1400217f7
mov rcx, rbx
call fcn.140026620
test byte [rdi], 0x80
je 0x1400217ea
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x1400217ce
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.1400265c8
mov rcx, rbx
call fcn.140026620
jmp 0x1400218ab
cmp al, 0x42
jne 0x1400217ea
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.1400265c8
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x1400217c1
mov rcx, rbx
call fcn.1400218f8
jmp 0x1400218a3
cmp ecx, 0x5b
jne 0x14002181b
mov rcx, rbx
call fcn.140026620
mov rcx, rbx
call fcn.140022474
cmp dword [rbx + 0x7c], 0x5d
jne 0x1400218dc
jmp 0x14002178d
cmp ecx, 0x28
jne 0x14002183f
mov rcx, rbx
call fcn.140026620
mov rcx, rbx
call fcn.140027200
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x1400218ce
jmp 0x140021896
cmp ecx, 0x5e
jne 0x14002184c
lea edx, [rcx - 0x5c]
jmp 0x1400217b8
cmp ecx, 0x24
jne 0x140021859
lea edx, [rcx - 0x21]
jmp 0x1400217b8
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400218c0
cmp ecx, 0x3f
je 0x1400218c0
cmp ecx, 0x7b
je 0x1400218c0
cmp ecx, 0x7d
jne 0x14002187a
test dword [rdi], 0x10000000
je 0x1400218ea
jmp 0x140021887
cmp ecx, 0x5d
jne 0x140021887
test dword [rdi], 0x10000000
je 0x1400218dc
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.140020d94
mov dil, 1
mov rcx, rbx
call fcn.140026620
test dil, dil
je 0x1400218ab
mov rcx, rbx
call fcn.140026670
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x14002173a
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.140024a64
int3
mov edx, 5
mov rcx, rbx
call fcn.140024a64
int3
mov edx, 4
mov rcx, rbx
call fcn.140024a64
int3
mov edx, 6
mov rcx, rbx
call fcn.140024a64
int3
Function at 0x1400295b8
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rax - 0x38], r13d
mov qword [rcx], r13
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r13b
mov dword [rax - 0x38], 1
lea r15, [rdx + 0x10]
cmp qword [r15], 0xf
jbe 0x140029617
mov r8b, r13b
mov rdx, qword [r15]
call fcn.140007ad8
mov qword [rbx + 0x10], r13
mov esi, r13d
mov r14d, 0xfffffffa
cmp qword [rdi + 0x18], 0x10
jb 0x140029632
mov rbp, qword [rdi]
mov rcx, rbp
mov rdi, rbp
jmp 0x140029638
mov rbp, rdi
mov rcx, rdi
mov r12, qword [r15]
add r12, rcx
cmp rdi, r12
je 0x140029767
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shl esi, 8
movzx eax, byte [rbp]
add esi, eax
add r14d, 8
js 0x1400296d4
movsxd r13, esi
movsxd rdi, r14d
lea ecx, [r14 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov r15d, edx
imul eax, edx, 0xfffffffa
add r14d, eax
mov rax, r13
mov rcx, rdi
sar rax, cl
and eax, 0x3f
mov r9b, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x1400296b4
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400296a9
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400296ca
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14000769c
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub r15, 1
jne 0x14002967a
inc rbp
cmp rbp, r12
jne 0x14002964e
cmp r14d, 0xfffffffa
jle 0x14002972c
lea ecx, [r14 + 8]
shl esi, 8
movsxd rdx, esi
sar rdx, cl
and edx, 0x3f
mov r9b, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x140029727
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140029719
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
xor r13d, r13d
mov byte [rax + rcx + 1], r13b
jmp 0x140029767
xor r13d, r13d
jmp 0x140029757
xor r13d, r13d
jmp 0x140029767
cmp rcx, qword [rbx + 0x18]
jae 0x140029754
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14002974c
mov rax, qword [rbx]
mov word [rcx + rax], 0x3d
jmp 0x140029767
mov r9b, 0x3d
mov r8b, r13b
mov edx, 1
mov rcx, rbx
call fcn.14000769c
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140029731
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140029b98
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
xor ebx, ebx
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov r15, r8
mov dword [rsp + 0x28], 0x98badcfe
mov rsi, rdx
mov dword [rsp + 0x2c], 0x10325476
mov r14, rcx
mov dword [rsp + 0x30], 0xc3d2e1f0
cmp rdx, 0x40
jb 0x140029c57
lea rdi, [rdx - 0x40]
lea rax, [rbx + 0x40]
cmp rbx, rax
jae 0x140029c43
lea rdx, [r14 + 2]
mov r9d, reloc.WS2_32.dll_recv
add rdx, rbx
lea r8, [rsp + 0x40]
add rbx, 0x40
movzx eax, byte [rdx - 1]
movzx ecx, byte [rdx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
lea rdx, [rdx + 4]
or ecx, eax
movzx eax, byte [rdx - 3]
shl ecx, 8
or ecx, eax
mov dword [r8], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x140029c14
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14003b56c
cmp rbx, rdi
jbe 0x140029bf5
mov r10, rsi
mov edi, reloc.WS2_32.dll_ntohs
sub r10, rbx
mov eax, edi
and dword [rsp + rax*4 + 0x40], 0
sub rax, 1
jns 0x140029c64
xor r9d, r9d
lea r11d, [r9 + 3]
test r10, r10
je 0x140029ca9
lea r8, [rbx + r14]
mov cl, r9b
mov eax, r11d
and cl, r11b
mov rdx, r9
sub al, cl
shr rdx, 2
mov cl, al
movzx eax, byte [r8 + r9]
shl cl, 3
inc r9
shl eax, cl
or dword [rsp + rdx*4 + 0x40], eax
cmp r9, r10
jb 0x140029c7f
mov r8, r9
mov edx, 0x80
and r9b, r11b
shr r8, 2
sub r11b, r9b
mov cl, r11b
shl cl, 3
shl edx, cl
or dword [rsp + r8*4 + 0x40], edx
cmp r10, 0x38
jb 0x140029ce8
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14003b56c
and dword [rsp + rdi*4 + 0x40], 0
sub rdi, 1
jns 0x140029cdd
lea rax, [rsi*8]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x7c], eax
lea rcx, [rsp + 0x20]
call fcn.14003b56c
lea r9, [r15 + 0x13]
mov r10d, reloc.WS2_32.dll_send
mov r8d, 0xffffff80
mov rcx, r10
mov eax, r8d
sar rcx, 2
and eax, 0x18
dec r10
add r8d, 8
mov edx, dword [rsp + rcx*4 + 0x20]
mov cl, al
shr edx, cl
mov byte [r9], dl
dec r9
cmp r8d, 0x18
jle 0x140029d13
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002b484
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r13d, r13d
mov r15, r9
mov r14, rdx
mov rdi, rcx
mov ebx, r13d
cmp rcx, 0xffffffffffffffff
je 0x14002b63b
test r8b, r8b
je 0x14002b4f3
test byte [rdx], 8
je 0x14002b4f3
lea rax, [rbp - 0x18]
mov dword [rbp + 0x30], r13d
mov qword [r11 - 0x68], rax
mov r9d, 0x80
lea rax, [rbp + 0x30]
mov qword [r11 - 0x70], 4
mov r8d, 0xffff
mov qword [r11 - 0x78], rax
call fcn.14004c334
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.1400332a4
test ebx, ebx
je 0x14002b63b
mov r12, qword [0x140088480]
lea rax, [0x140088478]
movabs rcx, 0x4d54ee85da812030
mov dword [rbp - 0x2c], r13d
add rcx, r12
mov esi, 1
cmp rcx, rsi
jbe 0x14002b557
mov rcx, rax
mov edx, 0x2733
mov rax, qword [0x140088478]
call qword [rax + 0x30]
mov r12, qword [0x140088480]
jmp 0x14002b55a
mov al, sil
movzx eax, al
lea rdx, [rbp - 0x18]
add rax, 2
mov dword [rbp - 0x30], 0x2733
mov qword [rbp - 0x20], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x20]
lea rax, [0x140088478]
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [rbp - 0x30]
movsd qword [rbp - 8], xmm1
movups xmmword [rbp - 0x18], xmm0
call fcn.14001dcb8
test al, al
jne 0x14002b609
movabs rax, 0x4d54ee85da812030
mov dword [rbp - 0x2c], r13d
add rax, r12
mov r12d, 0x4d5
cmp rax, rsi
jbe 0x14002b5cc
mov rax, qword [0x140088478]
lea rcx, [0x140088478]
mov edx, r12d
call qword [rax + 0x30]
mov sil, al
movzx eax, sil
lea rdx, [rbp - 0x18]
add rax, 2
mov dword [rbp - 0x30], r12d
mov qword [rbp - 0x20], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x20]
lea rax, [0x140088478]
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [rbp - 0x30]
movsd qword [rbp - 8], xmm1
movups xmmword [rbp - 0x18], xmm0
call fcn.14001dcb8
test al, al
je 0x14002b63b
lea r8, [rbp + 0x30]
mov dword [rbp + 0x30], r13d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.1400332a4
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14002c0d0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x14002c150
and dword [rsp + 0x24], 0
lea rsi, [0x140088478]
movabs rcx, 0x4d54ee85da812030
mov eax, 1
add rcx, qword [0x140088480]
mov ebx, 0x2719
cmp rcx, rax
jbe 0x14002c123
mov rax, qword [0x140088478]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
movzx ecx, al
add rcx, 2
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], rsi
or eax, 0xffffffff
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rcx
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
jmp 0x14002c167
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.1400332a4
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140034288
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x450
mov r14d, 2
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp word [rcx], r14w
je 0x1400342c1
cmp word [rcx], 0x17
jne 0x1400342d0
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsi], eax
mov esi, 0x401
lea rcx, [rsp + 0x40]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x40]
xor r14d, r14d
mov r9d, esi
mov dword [rsp + 0x28], r14d
mov edx, ebp
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14003435f
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140034316
cmp rbx, qword [rdi + 0x18]
ja 0x14003434c
cmp qword [rdi + 0x18], 0x10
mov rsi, rdi
jb 0x140034332
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], r14b
jmp 0x14003435f
lea r9, [rsp + 0x40]
mov r8b, r14b
mov rdx, rbx
mov rcx, rdi
call fcn.140006dcc
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140034ddc
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140034e06
cmp byte [rdx], 0
jne 0x140034e08
xor edi, edi
test rbx, rbx
je 0x140034e13
cmp byte [r8], 0
jne 0x140034e15
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rsp + 0x70]
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.14004f228
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
mov rax, rsi
movups xmmword [rsi], xmm0
movsd qword [rsi + 0x10], xmm1
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
mov rsi, r8
cmp rcx, 0xffffffffffffffff
jne 0x140035107
and dword [rsp + 0x24], 0
lea rsi, [0x140088478]
movabs rcx, 0x4d54ee85da812030
mov eax, 1
add rcx, qword [0x140088480]
mov ebx, 0x2719
cmp rcx, rax
jbe 0x1400350da
mov rax, qword [0x140088478]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
movzx ecx, al
add rcx, 2
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], rsi
or eax, 0xffffffff
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rcx
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
jmp 0x140035132
mov eax, dword [r8]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_getsockname]
movsxd rcx, dword [rsp + 0x50]
test eax, eax
mov qword [rsi], rcx
mov ebx, eax
setne dl
mov rcx, rdi
call fcn.1400332a4
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14003b56c
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
mov ebx, dword [rcx]
mov rsi, rdx
mov r11d, dword [rcx + 4]
mov r9, rcx
mov r10d, dword [rcx + 8]
xor r8d, r8d
mov edi, dword [rcx + 0xc]
mov ebp, dword [rcx + 0x10]
mov eax, r10d
mov ecx, r11d
and eax, r11d
mov edx, ebx
rol edx, 5
not ecx
and ecx, edi
or eax, ecx
add eax, edx
add eax, dword [rsi + r8*4]
inc r8
add eax, ebp
mov ebp, edi
mov edi, r10d
mov r10d, r11d
ror r10d, 2
mov r11d, ebx
lea ebx, [rax + 0x5a827999]
cmp r8, 0x10
jl 0x14003b59e
lea r14, [rsi + 8]
mov r15d, 4
mov r8d, dword [r14 + 0x2c]
mov eax, r10d
xor r8d, dword [r14 + 0x18]
and eax, r11d
xor r8d, dword [r14 - 8]
mov ecx, ebx
xor r8d, dword [r14]
mov edx, r11d
rol r8d, 1
not edx
rol ecx, 5
and edx, edi
mov dword [r14 + 0x38], r8d
lea r14, [r14 + 4]
or edx, eax
lea eax, [r8 + rcx]
add eax, edx
add eax, ebp
mov ebp, edi
mov edi, r10d
mov r10d, r11d
ror r10d, 2
mov r11d, ebx
lea ebx, [rax + 0x5a827999]
sub r15, 1
jne 0x14003b5e2
lea r14d, [r15 + 0x14]
mov r15d, r14d
lea r8, [rsi + 0x18]
mov edx, dword [r8 + 0x2c]
mov eax, ebx
xor edx, dword [r8 + 0x18]
mov ecx, edi
xor edx, dword [r8 - 8]
xor ecx, r10d
xor edx, dword [r8]
xor ecx, r11d
rol eax, 5
lea r8, [r8 + 4]
rol edx, 1
add eax, edx
mov dword [r8 + 0x34], edx
add eax, ecx
add eax, ebp
mov ebp, edi
mov edi, r10d
mov r10d, r11d
ror r10d, 2
mov r11d, ebx
lea ebx, [rax + 0x6ed9eba1]
sub r15, 1
jne 0x14003b63e
lea r15, [rsi + 0x68]
mov r12, r14
mov r8d, dword [r15 + 0x2c]
mov edx, ebx
xor r8d, dword [r15 + 0x18]
mov ecx, r10d
xor r8d, dword [r15 - 8]
or ecx, r11d
xor r8d, dword [r15]
and ecx, edi
mov eax, r10d
rol r8d, 1
and eax, r11d
rol edx, 5
or ecx, eax
mov dword [r15 + 0x38], r8d
add ecx, r8d
lea r15, [r15 + 4]
lea eax, [rdx + rbp]
mov ebp, edi
mov edi, r10d
add eax, 0x8f1bbcdc
mov r10d, r11d
add eax, ecx
ror r10d, 2
mov r11d, ebx
mov ebx, eax
sub r12, 1
jne 0x14003b68c
add rsi, 0xb8
mov edx, dword [rsi + 0x2c]
mov ecx, ebx
xor edx, dword [rsi + 0x18]
mov eax, edi
xor edx, dword [rsi - 8]
xor eax, r10d
xor edx, dword [rsi]
xor eax, r11d
rol edx, 1
mov dword [rsi + 0x38], edx
lea rsi, [rsi + 4]
add eax, edx
rol ecx, 5
lea edx, [rcx + rbp]
mov ebp, edi
mov edi, r10d
add edx, 0xca62c1d6
mov r10d, r11d
add edx, eax
ror r10d, 2
mov r11d, ebx
mov ebx, edx
sub r14, 1
jne 0x14003b6e6
add dword [r9 + 0xc], edi
add dword [r9], edx
add dword [r9 + 4], r11d
add dword [r9 + 8], r10d
add dword [r9 + 0x10], ebp
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret