joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400443d8
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rsi, r8
mov r11, r9
movdqa xmm0, xmmword [rsi]
movdqu xmm4, xmmword [rcx]
pxor xmm0, xmm4
movd ebx, xmm0
mov eax, 0xf0f0f0f0
and eax, ebx
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
movdqa xmm5, xmmword [rsi + rdi + 0x420]
movzx edi, al
movdqa xmm4, xmmword [rsi + rdi + 0x420]
shr eax, 0x10
movzx edi, ah
movdqa xmm3, xmmword [rsi + rdi + 0x420]
movzx edi, al
movdqa xmm2, xmmword [rsi + rdi + 0x420]
psrldq xmm0, 4
movd eax, xmm0
and eax, 0xf0f0f0f0
movzx edi, bh
pxor xmm5, xmmword [rsi + rdi + 0x20]
movzx edi, bl
pxor xmm4, xmmword [rsi + rdi + 0x20]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [rsi + rdi + 0x20]
movzx edi, bl
pxor xmm2, xmmword [rsi + rdi + 0x20]
movd ebx, xmm0
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
pxor xmm5, xmmword [rsi + rdi + 0x520]
movzx edi, al
pxor xmm4, xmmword [rsi + rdi + 0x520]
shr eax, 0x10
movzx edi, ah
pxor xmm3, xmmword [rsi + rdi + 0x520]
movzx edi, al
pxor xmm2, xmmword [rsi + rdi + 0x520]
psrldq xmm0, 4
movd eax, xmm0
and eax, 0xf0f0f0f0
movzx edi, bh
pxor xmm5, xmmword [rsi + rdi + 0x120]
movzx edi, bl
pxor xmm4, xmmword [rsi + rdi + 0x120]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [rsi + rdi + 0x120]
movzx edi, bl
pxor xmm2, xmmword [rsi + rdi + 0x120]
movd ebx, xmm0
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
pxor xmm5, xmmword [rsi + rdi + 0x620]
movzx edi, al
pxor xmm4, xmmword [rsi + rdi + 0x620]
shr eax, 0x10
movzx edi, ah
pxor xmm3, xmmword [rsi + rdi + 0x620]
movzx edi, al
pxor xmm2, xmmword [rsi + rdi + 0x620]
psrldq xmm0, 4
movd eax, xmm0
and eax, 0xf0f0f0f0
movzx edi, bh
pxor xmm5, xmmword [rsi + rdi + 0x220]
movzx edi, bl
pxor xmm4, xmmword [rsi + rdi + 0x220]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [rsi + rdi + 0x220]
movzx edi, bl
pxor xmm2, xmmword [rsi + rdi + 0x220]
movd ebx, xmm0
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
pxor xmm5, xmmword [rsi + rdi + 0x720]
movzx edi, al
pxor xmm4, xmmword [rsi + rdi + 0x720]
shr eax, 0x10
movzx edi, ah
pxor xmm3, xmmword [rsi + rdi + 0x720]
movzx edi, al
pxor xmm2, xmmword [rsi + rdi + 0x720]
movzx edi, bh
pxor xmm5, xmmword [rsi + rdi + 0x320]
movzx edi, bl
pxor xmm4, xmmword [rsi + rdi + 0x320]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [rsi + rdi + 0x320]
movzx edi, bl
pxor xmm2, xmmword [rsi + rdi + 0x320]
movdqa xmm0, xmm3
pslldq xmm3, 1
pxor xmm2, xmm3
movdqa xmm1, xmm2
pslldq xmm2, 1
pxor xmm5, xmm2
psrldq xmm0, 0xf
movq rdi, xmm0
movzx eax, word [r11 + rdi*2]
shl eax, 8
movdqa xmm0, xmm5
pslldq xmm5, 1
pxor xmm4, xmm5
psrldq xmm1, 0xf
movq rdi, xmm1
xor ax, word [r11 + rdi*2]
shl eax, 8
psrldq xmm0, 0xf
movq rdi, xmm0
xor ax, word [r11 + rdi*2]
movd xmm0, eax
pxor xmm0, xmm4
add rcx, 0x10
sub rdx, 1
jne 0x1400443e6
movdqa xmmword [rsi], xmm0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140044658
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
mov rsi, r8
movdqa xmm0, xmmword [rsi]
movdqu xmm1, xmmword [rcx]
pxor xmm1, xmm0
pxor xmm0, xmm0
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x20]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x1020]
shr eax, 0x10
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x2020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x3020]
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x4020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x5020]
shr eax, 0x10
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x6020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x7020]
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x8020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x9020]
shr eax, 0x10
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xa020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xb020]
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xc020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xd020]
shr eax, 0x10
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xe020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xf020]
add rcx, 0x10
sub rdx, 1
jne 0x140044662
movdqa xmmword [rsi], xmm0
pop rdi
pop rsi
ret
Function at 0x14004e4d0
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x14004e50a
mov cl, byte [rbx]
call fcn.14004cf90
imul rdi, rdi, 0x21
movsx rdx, al
inc rbx
xor rdi, rdx
cmp rbx, rsi
jb 0x14004e4f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14004e912
call fcn.140063d44
test al, al
jne 0x14004e912
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004eb88
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14004e4d0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004e8dc
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x14004e50a
mov cl, byte [rbx]
call fcn.14004cf90
imul rdi, rdi, 0x21
movsx rdx, al
inc rbx
xor rdi, rdx
cmp rbx, rsi
jb 0x14004e4f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14004e912
call fcn.140063d44
test al, al
jne 0x14004e912
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004eb88
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14004e4d0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14005a2ac
Capabilities:
Write file on windows

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, 0x30
xor ebx, ebx
movsxd rsi, edx
mov rbp, r9
mov r14, r8
mov rdi, rcx
cmp byte [rcx + 0xb11], bl
je 0x14005a367
cmp qword [rcx + 0x278], rbx
je 0x14005a31a
mov dl, 1
call fcn.140055af4
mov rax, qword [rdi + 0x1d8]
mov r9, rbp
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, rdi
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140055af4
jmp 0x14005a367
mov ecx, esi
test edx, edx
je 0x14005a32a
sub ecx, 1
je 0x14005a32a
cmp ecx, 1
jne 0x14005a367
mov r9, qword [rdi + 0x1d0]
lea rax, [0x140086e28]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14005a560
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 0x14005a599
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
and qword [rbx], 0
mov ecx, 0x38
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x14005a59e
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14005a6b0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x1e8]
call fcn.14005ab4c
test eax, eax
je 0x14005a705
mov dword [rbx], 0x1b
or rax, 0xffffffffffffffff
jmp 0x14005a76f
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
and dword [rbx], 0
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
jne 0x14005a76c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14005a73c
xor esi, esi
mov dword [rbx], 0x51
jmp 0x14005a76c
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.14006301c
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.14005a384
mov dword [rbp + 0xdcc], edi
mov dword [rbx], 0x37
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14007ae30
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

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, 0x20
mov rbx, rdx
mov r14, rcx
movsxd rdx, r8d
mov rdi, rdx
shl rdi, 5
mov rax, qword [rbx + 0x410]
mov rbp, qword [rbx + rdx*8 + 0x1e8]
mov rsi, qword [rdi + rbx + 0x238]
sub rsi, qword [rdi + rbx + 0x240]
test byte [rax + 0x84], 3
je 0x14005ac68
lea rax, [0x14005a5d8]
cmp qword [rbx + rdx*8 + 0x210], rax
jne 0x14005ac68
cmp qword [rdi + rbx + 0x230], 0
je 0x14005abca
test rsi, rsi
je 0x14005ac68
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.14006d264
cmp eax, 0xffffffff
je 0x14005ac68
test al, 1
je 0x14005ac68
mov rcx, qword [rdi + rbx + 0x230]
test rcx, rcx
jne 0x14005ac3f
mov eax, dword [r14 + 0x724]
add eax, eax
movsxd rcx, eax
mov qword [rdi + rbx + 0x238], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + rbx + 0x230], rax
mov rcx, rax
test rax, rax
jne 0x14005ac25
lea eax, [rcx + 0x1b]
jmp 0x14005ac6a
and qword [rdi + rbx + 0x240], 0
and qword [rdi + rbx + 0x248], 0
mov rsi, qword [rdi + rbx + 0x238]
mov rdx, qword [rdi + rbx + 0x240]
xor r9d, r9d
add rdx, rcx
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14005ac68
add qword [rdi + rbx + 0x240], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14005afd4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov rbx, rdx
mov r8d, 0x80
mov rsi, rcx
xor edx, edx
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x30]
mov rbp, r9
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14005b055
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14006301c
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14005b09d
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.14005ac88
test al, al
jne 0x14005b0a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14006301c
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14005a384
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14007ae30
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14005b7c8
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x1400a4700]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14005b81d
xor edx, edx
lea ecx, [rax + 6]
lea r9d, [rax + 3]
lea r8d, [rax + 2]
call fcn.140072c40
test al, al
je 0x14005b812
mov dword [0x1400a4700], 2
jmp 0x14005b874
mov eax, 1
mov dword [0x1400a4700], eax
cmp eax, 2
je 0x14005b874
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14005b853
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14005b874
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x14005c4f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0xb1f], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14005c55a
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.14005a450
jmp 0x14005c5ed
mov ecx, dword [rbx + 0xa84]
mov dword [rsp + 0x58], 1
call fcn.140053dbc
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa88]
call fcn.140053dbc
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, ntohs
imul ecx, eax, 0x3e8
mov edx, 0x98000004
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14005c5ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.14005a450
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007ae30
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x14005c608
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rax, rdx
mov dword [rsp + 0x30], r8d
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14005c67c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14006301c
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.14005a450
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007ae30
add rsp, 0x150
pop rbx
ret
Function at 0x14005ca18
Capabilities:
Get common file path

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, 0x20
mov rbp, rcx
xor ebx, ebx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14005cb4f
lea rdx, str.LoadLibraryExA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400872e8]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbspbrk]
test rax, rax
je 0x14005ca8f
mov rcx, rbp
test rsi, rsi
je 0x14005ca87
mov r8d, 8
jmp 0x14005cab2
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14005cab6
test rsi, rsi
je 0x14005cabe
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005cabe
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x14005cb4c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x14005cb4c
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea ecx, [r14 + 1]
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14005cb43
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14005cb43
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdx, [0x140087300]
lea rcx, [rdi + rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rbp
lea rcx, [rdi + rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rdi
test rsi, rsi
je 0x14005cb3a
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x14005cb40
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [0x1400a0210]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14005cb6c
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x14005cbc1
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14005cba8
mov eax, 2
jmp 0x14005cc28
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14005cbb9
shr ax, 8
cmp al, 2
je 0x14005cbc1
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14005cb9e
call fcn.1400737fc
test eax, eax
jne 0x14005cc28
lea rcx, str.iphlpapi.dll
call fcn.14005ca18
mov qword [0x1400a4710], rax
test rax, rax
je 0x14005cbfe
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005cbfe
mov qword [0x1400a4708], rax
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.140072c40
test al, al
lea rcx, [0x1400a4d48]
setne byte [0x1400a4d44]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14007ae30
add rsp, 0x1d8
ret
Function at 0x14005f970
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x10], 0
mov rdi, r8
and qword [rbp - 0x18], 0
mov rbx, r9
and dword [rbp + 0x38], 0
mov rsi, rdx
mov r14, rcx
mov dword [rbp - 0x20], 4
mov rcx, rdi
mov dword [rbp - 0x1c], ebx
mov r8, r9
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rbp + 0x40]
lea rcx, [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14005fa73
mov edx, dword [rbp + 0x48]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14005fa53
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14005fa53
mov rcx, qword [rbp - 0x18]
lea r9, [rbp - 0x20]
and dword [rsp + 0x20], 0
lea r8, [rbp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14005fa53
mov eax, dword [rbp + 0x38]
cmp rbx, rax
jb 0x14005fa53
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x1c]
mov rcx, qword [rbp - 0x18]
mov r8, rdi
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14005fa62
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14005fa73
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret

Function at 0x1400617bc
Capabilities:
Query environment variable

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, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x14006180e
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14006184a
cmp edi, esi
je 0x14006184a
cmp edi, 0x8000
ja 0x14006184a
cmp edi, esi
jb 0x140061845
mov rcx, rbx
mov rdx, rdi
call qword [0x1400a0218]
mov rbx, rax
test rax, rax
jne 0x1400617e1
mov rcx, rbp
call qword [0x1400a0210]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rbx
jmp 0x14006182a
mov rcx, rbx
jmp 0x140061822
jmp 0x1400617bc
Function at 0x140061850
Capabilities:
Query environment variable

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, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x14006180e
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x14006184a
cmp edi, esi
je 0x14006184a
cmp edi, 0x8000
ja 0x14006184a
cmp edi, esi
jb 0x140061845
mov rcx, rbx
mov rdx, rdi
call qword [0x1400a0218]
mov rbx, rax
test rax, rax
jne 0x1400617e1
mov rcx, rbp
call qword [0x1400a0210]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rbx
jmp 0x14006182a
mov rcx, rbx
jmp 0x140061822
jmp 0x1400617bc
Function at 0x1400646bc
Capabilities:
Convert ip address from string

Disassembly:
and qword [r9], 0
cmp qword [rsp + 0x28], 0
jge 0x1400646ce
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1400643e0

Function at 0x140064abc
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x40
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edi, ecx
lea rcx, str.localhost
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov edx, 1
lea rcx, [rax + 0x41]
call qword [case.0x14007524c.1]
mov rbx, rax
test rax, rax
je 0x140064bb0
xor edx, edx
lea rcx, [rsp + 0x28]
lea r8d, [rdx + 0x10]
call sub.VCRUNTIME140.dll_memset
mov ebp, 2
movzx ecx, di
mov word [rsp + 0x28], bp
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x20]
mov ecx, ebp
lea rdx, str.127.0.0.1
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x140064bb0
lea r8d, [rbp + 2]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2c]
call sub.VCRUNTIME140.dll_memcpy
and dword [rbx], 0
lea rcx, [rbx + 0x30]
lea r8d, [rbp + 0xe]
mov qword [rbx + 0x20], rcx
lea rdx, [rsp + 0x28]
mov dword [rbx + 4], ebp
mov dword [rbx + 8], 1
mov dword [rbx + 0xc], 6
mov dword [rbx + reloc.WS2_32.dll_recv], 0x10
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x20]
lea rdx, str.localhost
add rcx, 0x10
mov qword [rbx + 0x18], rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov ecx, edi
call fcn.140064bd0
mov qword [rbx + 0x28], rax
mov rax, rbx
jmp 0x140064bb2
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007ae30
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140064bd0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400a0280]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, ecx
lea rcx, str.localhost
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov edx, 1
lea rcx, [rax + 0x4d]
call qword [case.0x14007524c.1]
mov rbx, rax
test rax, rax
je 0x140064cba
mov r14d, reloc.WS2_32.dll_socket
movzx ecx, di
mov word [rsp + 0x20], r14w
call qword [sym.imp.WS2_32.dll_htons]
and dword [rsp + 0x24], 0
lea r8, [rsp + 0x40]
and dword [rsp + 0x38], 0
lea rdx, [0x14008a530]
mov ecx, r14d
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x140064cba
lea r8d, [r14 - 7]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
and dword [rbx], 0
lea r8d, [r14 + 5]
and qword [rbx + 0x28], 0
lea rcx, [rbx + 0x30]
lea rdx, [rsp + 0x20]
mov dword [rbx + 0x10], r8d
mov qword [rbx + 0x20], rcx
mov dword [rbx + 4], r14d
mov dword [rbx + 8], 1
mov dword [rbx + 0xc], 6
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x20]
lea rdx, str.localhost
add rcx, 0x1c
mov qword [rbx + 0x18], rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rax, rbx
jmp 0x140064cbc
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007ae30
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret