joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041b60
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140041d0e
push rbp
push rdi
push r13
sub rsp, 0x30
mov rbp, qword [rcx]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov rdi, qword [rbp + 0x1a8]
mov r13, rcx
mov qword [rsp + 0x20], r12
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140041ba9
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140041bb7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140041bc5
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r12d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r11d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x140041bff
mov byte [rcx], r12b
inc qword [rbx]
mov rdx, qword [rbx]
mov r12, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x140041c16
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140041c24
mov byte [rax], r11b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x140041c36
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140041c44
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140041c52
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov edx, 0x3e
mov r9, rax
mov rcx, rbp
mov qword [rbx], rsi
sub r9, rsi
mov qword [rdi + 0x1ec0], rax
sub r9, 2
call fcn.140040e40
mov rcx, qword [r13 + 0x4c0]
xor r9d, r9d
lea r8d, [r9 + 3]
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x140041cba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037e70
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r13
call fcn.140041860
mov rcx, qword [r13 + 0x4c0]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140041d06
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037e70
add rsp, 0x30
pop r13
pop rdi
pop rbp
repz ret
Function at 0x140047e10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400b6f80]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x4c8]
mov rsi, qword [rcx]
mov rdi, rcx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
or rbx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140047e87
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140039cc0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140047eaf
lea rdx, str.Error_accept__ing_server_connect
call fcn.140037e70
lea eax, [rbx + 0x1f]
jmp 0x140047f31
lea rdx, str.Connection_accepted_from_server_n
call fcn.140037d10
mov edx, 1
mov rcx, rbx
mov dword [rdi + 0x6a8], 0
mov qword [rdi + 0x4c8], rbx
call fcn.140060f80
mov dword [rdi + 0x6f0], 1
cmp qword [rsi + 0x728], 0
je 0x140047f2f
mov edx, 1
mov rcx, rsi
call fcn.140036f90
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140036f90
test ebx, ebx
je 0x140047f2f
mov rcx, rdi
call fcn.140047d10
mov eax, Ordinal_45
jmp 0x140047f31
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14006d1b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004bc10
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x51eb851f
mov edi, r8d
mov r8d, edx
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14004bc62
lea rdx, str.Couldnt_set_desired_mode
call fcn.140037e70
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r8d, 0xc8
je 0x14004bc77
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.140037d10
cmp edi, 0x13
jne 0x14004bc86
mov rcx, rsi
call fcn.14004bb80
jmp 0x14004bcb6
cmp edi, 0x14
jne 0x14004bc95
mov rcx, rsi
call fcn.140048b50
jmp 0x14004bcb6
cmp edi, 0x15
jne 0x14004bca0
lea r8d, [rdi - 8]
jmp 0x14004bca9
cmp edi, 0x16
jne 0x14004bcb8
lea r8d, [rdi - 8]
mov edx, 1
mov rcx, rsi
call fcn.14004ad60
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [rcx]
mov ebx, dword [rcx + 0xb0c]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov rdi, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x14004c50c
test ebx, ebx
jne 0x14004c4ca
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.140037d10
mov dword [rdi + 0x6c0], ebx
inc ebx
cmp ebx, 2
jne 0x14004c4f3
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.140037e70
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp 0x140048220
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.140037d10
mov dword [rdi + 0xb18], 0
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x1a8]
cmp dword [rax + 0x10], 0
je 0x14004c54e
or r8, 0xffffffffffffffff
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
or edx, r8d
call fcn.140057ac0
jmp 0x14004c558
mov dword [rdi + 0x6a8], 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov dword [rdi + 0xaec], 1
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400549d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov r12, rcx
mov ebx, 1
xor ecx, ecx
mov rdx, rbx
xor ebp, ebp
call qword [fcn.14006fa14]
mov rdi, rax
test rax, rax
je 0x140054a4e
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r12
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140054a79
cmp ebx, esi
je 0x140054a79
cmp ebx, 0x8000
ja 0x140054a79
cmp ebx, esi
jb 0x140054a74
mov rdx, rbx
mov rcx, rdi
call qword [fcn.14006fa14]
mov rdi, rax
test rax, rax
jne 0x140054a10
mov rcx, rbp
call qword [fcn.14006d598]
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 r12
ret
mov rax, rdi
jmp 0x140054a59
mov rcx, rdi
jmp 0x140054a51
jmp 0x1400549d0

Function at 0x140054a80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov r12, rcx
mov ebx, 1
xor ecx, ecx
mov rdx, rbx
xor ebp, ebp
call qword [fcn.14006fa14]
mov rdi, rax
test rax, rax
je 0x140054a4e
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r12
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140054a79
cmp ebx, esi
je 0x140054a79
cmp ebx, 0x8000
ja 0x140054a79
cmp ebx, esi
jb 0x140054a74
mov rdx, rbx
mov rcx, rdi
call qword [fcn.14006fa14]
mov rdi, rax
test rax, rax
jne 0x140054a10
mov rcx, rbp
call qword [fcn.14006d598]
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 r12
ret
mov rax, rdi
jmp 0x140054a59
mov rcx, rdi
jmp 0x140054a51
jmp 0x1400549d0
Function at 0x140055680
Capabilities:
Resolve dns

Disassembly:
push rbx
push r13
push r14
push r15
sub rsp, 0x28
mov r15, r9
xor ebx, ebx
xor r13d, r13d
mov qword [r9], rbx
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140055810
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400557f1
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], r12
nop
mov rdi, qword [rsi + 0x18]
test rdi, rdi
je 0x1400556e9
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
mov r12, rcx
jmp 0x1400556ec
xor r12d, r12d
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400556f9
lea ebp, [rax + 0xe]
jmp 0x140055705
cmp eax, 0x17
jne 0x140055797
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x140055797
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140055797
cmp rax, rbp
jb 0x140055797
lea rcx, [r12 + rbp + 0x30]
call qword [fcn.14006efe4]
mov rdi, rax
test rax, rax
je 0x1400557a6
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
xor eax, eax
lea rcx, [rdi + 0x30]
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rax
mov rdx, qword [rsi + 0x20]
call fcn.14006ecb0
test r12, r12
je 0x140055784
mov rcx, qword [rdi + 0x20]
mov r8, r12
add rcx, rbp
mov qword [rdi + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.14006ecb0
test rbx, rbx
cmove rbx, rdi
test r13, r13
je 0x140055794
mov qword [r13 + 0x28], rdi
mov r13, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400556d0
jmp 0x1400557ac
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400557c6
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400557ec
test rbx, rbx
je 0x1400557e5
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14006d598]
mov rbx, rdi
test rdi, rdi
jne 0x1400557d0
xor eax, eax
mov rbx, rax
jmp 0x140055800
test rbx, rbx
jne 0x140055800
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r15], rbx
mov eax, r14d
add rsp, 0x28
pop r15
pop r14
pop r13
pop rbx
ret
Function at 0x14005a850
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rdi, r8
xor r12d, r12d
mov rbx, r9
mov rsi, rdx
mov rbp, rcx
mov r8, r9
mov rcx, rdi
xor edx, edx
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r12
mov dword [rax + 0x20], r12d
mov dword [rax - 0x38], 4
mov dword [rax - 0x34], ebx
call fcn.1400717b0
mov r9d, dword [rsp + 0x90]
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14005a96c
mov edx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14005a94a
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14005a94a
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x88]
lea edx, [r12 + 4]
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14005a94a
mov eax, dword [rsp + 0x88]
cmp rbx, rax
jb 0x14005a94a
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
lea edx, [r12 + 2]
mov r8, rdi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14005a95a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005a96c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret

Function at 0x14005c600
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm6
mov rbx, rdx
call fcn.1400530c0
lea rcx, [rsp + 0x20]
mov r8, qword [rax]
mov rax, qword [rax + 8]
mov rdx, rbx
mov qword [rcx], r8
mov qword [rcx + 8], rax
mov rcx, rdi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14005c6b0
movaps xmm6, xmmword [rsp + 0x20]
nop dword [rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400530c0
lea rdx, [rsp + 0x30]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140053150
test rax, rax
js 0x14005c6c2
cmp rax, 0x3e8
jg 0x14005c6c2
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14005c650
xor eax, eax
mov rbx, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x50]
mov eax, 1
add rsp, 0x60
pop rdi
ret
Function at 0x14005d160
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 + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400b6f80]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov edi, 2
mov rsi, r9
lea r8d, [rdx + 5]
mov ecx, edi
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov dword [rsp + 0x34], 1
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005d355
xor eax, eax
mov ecx, 0x7f000001
mov qword [rsp + 0x38], rax
mov word [rsp + 0x38], di
mov qword [rsp + 0x40], rax
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x34]
lea r8d, [rdi + 2]
mov dword [rsp + 0x3c], eax
xor eax, eax
mov edx, 0xffff
mov rcx, rbx
mov qword [rsi + 8], 0xffffffffffffffff
mov qword [rsi], 0xffffffffffffffff
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14005d339
lea r8d, [rdi + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14005d339
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14005d339
lea edx, [rdi - 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14005d339
lea edx, [rdi - 1]
xor r8d, r8d
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14005d339
lea r8d, [rdi + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14005d339
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14005d339
lea r8, [0x1400987d4]
lea edx, [rdi + 0xa]
lea rcx, [rsp + 0x48]
mov r9, rsi
call fcn.140053d40
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x48]
lea rdx, [rsp + 0x48]
xor r9d, r9d
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea r8d, [rcx - 1]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_send]
movsxd rdx, eax
cmp rdx, rdi
jne 0x14005d339
mov rcx, qword [rsi + 8]
xor r9d, r9d
lea rdx, [rsp + 0x54]
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rdi
jne 0x14005d339
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
mov r8, rdi
call fcn.1400710a0
test eax, eax
jne 0x14005d339
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14005d358
mov rcx, rbx
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]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14006d1b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14005d450
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140073688
test rax, rax
je 0x14005d479
cmp rax, 0xffffffffffffffff
jne 0x14005d47b
xor eax, eax
add rsp, 0x38
ret
Function at 0x140060f80
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x140060fd0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b6f80]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
mov rsi, r8
mov rbx, rdx
lea rcx, [rsp + 0x48]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x40], 8
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14006111d
movzx edx, byte [rsi + 1]
movzx ecx, byte [rsi]
movzx r8d, byte [rsi + 5]
xor eax, eax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x64], cl
shl cl, 7
movzx eax, dl
shr al, 1
shl dl, 6
mov byte [rsp + 0x58], 8
or al, cl
movzx ecx, byte [rsi + 2]
mov byte [rsp + 0x59], 2
mov byte [rsp + 0x65], al
movzx eax, cl
shl cl, 5
shr al, 2
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
or al, dl
movzx edx, byte [rsi + 3]
mov byte [rsp + 0x66], al
movzx eax, dl
shl dl, 4
shr al, 3
or al, cl
movzx ecx, byte [rsi + 4]
mov byte [rsp + 0x67], al
movzx eax, cl
shl cl, 3
shr al, 4
or al, dl
mov edx, 8
mov byte [rsp + 0x68], al
movzx eax, r8b
shl r8b, 2
shr al, 5
or al, cl
movzx ecx, byte [rsi + 6]
mov byte [rsp + 0x69], al
movzx eax, cl
add cl, cl
shr al, 6
mov byte [rsp + 0x6b], cl
lea rcx, [rsp + 0x64]
or al, r8b
mov byte [rsp + 0x6a], al
call fcn.14006a790
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea r11, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x28], r11
lea r8d, [r9 + 0x14]
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x140061121
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x14006116e
mov ecx, dword [rsp + 0x40]
mov rax, qword [rdi]
xor r9d, r9d
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov qword [rbx], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14006d1b0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140061190
Capabilities:
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r8, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.140060fd0
lea r8, [rbx + 7]
lea rdx, [rdi + 8]
mov rcx, rsi
call fcn.140060fd0
lea r8, [rbx + 0xe]
lea rdx, [rdi + 0x10]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140060fd0

Function at 0x140062960
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x140062999
lea edx, [rax + 0x2e]
mov rcx, rdi
call fcn.140071c20
test rax, rax
je 0x140062997
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006a7f0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, rcx
mov rdi, r8
mov rsi, rdx
lea rcx, [rax - 0x18]
lea r9d, [rbp + 1]
xor r8d, r8d
xor edx, edx
mov qword [rax - 0x18], rbp
mov qword [rax - 0x10], rbp
mov dword [rax - 0x28], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14006a855
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rdi
call fcn.140034210
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
lea edx, [r8 + 2]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x68], 0x10
jne 0x14006a8b3
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
mov r8, rbx
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14006a8c3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14006a8d5
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14006c2f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov r12d, r8d
lea r9d, [rax + rax]
mov eax, dword [rcx + 0x20]
mov rbp, rdx
lea rcx, [r9 + rax + 0x18]
call qword [fcn.14006efe4]
mov rdi, rax
test rax, rax
jne 0x14006c331
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp r12d, dword [rbx + 0x1c]
jbe 0x14006c375
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, r12d
mov rdx, rbp
call qword [rbx + reloc.WS2_32.dll_htonl]
mov ebp, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add rbp, qword [rdi + 0x10]
mov rcx, rbp
call qword [rbx + reloc.WS2_32.dll_recv]
mov r12d, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test r12, r12
je 0x14006c3d5
mov rsi, r12
nop dword [rax + rax]
movzx eax, byte [rbp]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx r11d, byte [rbp]
lea rdx, [rsp + 0x40]
xor r11b, 0x5c
mov r8d, 1
inc rbp
mov byte [rsp + 0x40], r11b
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub r12, 1
jne 0x14006c390
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006c413
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14009b639]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14009b63a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006c3e0
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret