joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400273fc
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x470
mov rax, qword [0x140072180]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r14d, 2
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp word [rcx], r14w
je 0x14002743d
cmp word [rcx], 0x17
jne 0x1400274e1
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
mov dword [rsi], eax
lea rcx, [rsp + 0x50]
mov esi, 0x401
mov r8d, esi
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x50]
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 0x1400274e1
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140027492
cmp rbx, qword [rdi + 0x18]
ja 0x1400274c8
cmp qword [rdi + 0x18], 0x10
mov rsi, rdi
jb 0x1400274ae
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], r14b
jmp 0x1400274dd
mov r8b, byte [rsp + 0x40]
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call fcn.140008954
mov al, 1
jmp 0x1400274e3
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140051db0
add rsp, 0x470
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140027510
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140072180]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140027565
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.1400273fc
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140051db0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

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

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140027510
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140072180]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140027565
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.1400273fc
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140051db0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140048370
Capabilities:
Encode data using xor

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
xor r15d, r15d
lea r12, [0x140000000]
movzx eax, byte [r15 + r12 + 0x5ede0]
mov edi, eax
mov r8d, eax
shr edi, 5
mov r11d, eax
shr r8d, 6
mov ebp, edi
lea edx, [rax + rax]
shr r11d, 7
xor edx, eax
and ebp, 4
mov r10d, edi
mov r9d, r8d
and edi, 1
and r10d, 2
imul ecx, edi, 0x1b000000
and r8d, 1
lea ebx, [rdx + rdx]
and r9d, 2
lea edx, [rdx*4]
xor ebx, eax
xor edx, eax
shl ebx, 0x19
shl edx, 8
mov esi, eax
xor rbx, rcx
mov r14d, eax
imul ecx, r10d, 0x1b000000
xor rbx, rcx
imul ecx, r8d, 0x1b000000
xor rbx, rcx
imul ecx, r9d, 0x1b000000
xor rbx, rcx
imul ecx, ebp, 0x1b000000
xor rbx, rcx
imul ecx, r11d, 0x1b000000
xor rbx, rcx
imul ecx, edi, 0x11b00
xor rdx, rcx
imul ecx, r10d, 0x11b00
xor rdx, rcx
imul ecx, r8d, 0x11b00
xor rdx, rcx
imul ecx, r9d, 0x11b00
xor rdx, rcx
imul ecx, ebp, 0x11b00
xor rdx, rcx
imul ecx, edi, 0x11b0000
or rbx, rdx
lea edx, [rax*8]
xor edx, eax
lea eax, [rax*4]
shl edx, 0x10
xor eax, r14d
xor rdx, rcx
imul ecx, r10d, 0x11b0000
xor rdx, rcx
imul ecx, ebp, 0x11b0000
xor rdx, rcx
imul ecx, edi, 0x11b
or rbx, rdx
lea edx, [rax + rax]
xor rdx, rcx
imul ecx, r10d, 0x11b
xor rdx, rcx
imul ecx, ebp, 0x11b
xor rdx, rcx
imul ecx, r11d, 0x11b
xor rdx, rcx
xor rdx, rsi
or rdx, rbx
shl rdx, 0x20
or rdx, rbx
or rdx, rsi
mov qword [r12 + r15*8 + 0x786b0], rdx
inc r15
cmp r15, 0x100
jl 0x140048393
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov byte [0x140078eb1], 1
pop r15
pop r14
pop r12
ret

Function at 0x1400484fc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
lea rbx, [0x140000000]
movzx r9d, byte [r11 + rbx + 0x5ece0]
mov edx, r9d
shr edx, 7
imul r10d, edx, 0x1b000000
lea r8d, [r9 + r9]
imul ecx, edx, 0x11b
mov eax, r8d
shl eax, 0x18
xor r10, rax
mov eax, r9d
shl eax, 8
or eax, r9d
shl eax, 8
or r10, rax
mov eax, r8d
xor rcx, rax
xor rcx, r9
or rcx, r10
shl rcx, 0x20
or rcx, r10
mov qword [rbx + r11*8 + 0x77ea0], rcx
inc r11
cmp r11, 0x100
jl 0x14004850b
and qword [0x1400786a8], 0
and qword [0x1400786a0], 0
mov rbx, qword [rsp + 8]
mov byte [0x140078eb0], 1
ret
Function at 0x140049fac
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140072180]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x140078fb0]
mov rax, qword gs:[0x58]
mov edx, 0x130
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140078ec0], ecx
jg 0x14004a08e
mov eax, ebx
cmp rbx, rax
jne 0x14004a050
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x14004a050
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x140078eb8]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14004a0d1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140051db0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.1400021c0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140049cdc
lea rdx, [0x14006eea0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x140078ec0]
call fcn.1400525ac
cmp dword [0x140078ec0], 0xffffffff
jne 0x140049ff8
lea rcx, [0x140078eb8]
call fcn.140049bf0
lea rcx, [0x140055a1c]
call fcn.1400524ec
nop
lea rcx, [0x140078ec0]
call fcn.140052540
jmp 0x140049ff8
mov ecx, eax
call fcn.14004a114
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14005d858]
lea rcx, [rsp + 0x20]
call fcn.1400021c0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140049cdc
lea rdx, [0x14006eea0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14004b518
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x14004b58b
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x14004b54a
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x14004b5cd
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x14004b5b9
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14004b5e8
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x14004b6ae
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 rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x14004b679
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x14004b62e
test rbx, rbx
je 0x14004b696
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x14004b684
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14004b6b0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14004b75d
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x14004b735
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x14004b6ed
test rbx, rbx
je 0x14004b74b
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x14004b73d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14005169c
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x1400516eb
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x1400516c2
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x140052db0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140052dfa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140052dfa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140052dfa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140052dfa
cmp dword [rcx + 0x84], 0xe
jbe 0x140052dfa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140052dfc
xor al, al
add rsp, 0x28
ret
Function at 0x14001cbc0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
cmp byte [rcx + 0xa87], 0
je 0x14001cc81
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp qword [rcx + 0x258], 0
je 0x14001cc33
mov rcx, rbx
call fcn.14002a2b0
mov r14d, eax
mov rcx, rbx
mov dl, 1
call fcn.14002a280
mov rax, qword [rbx + 0x1d0]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov edx, ebp
mov r8, rdi
mov r9, rsi
call qword [rbx + 0x258]
mov rcx, rbx
mov edx, r14d
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.14002a280
cmp ebp, 2
ja 0x14001cc81
mov r9, qword [rbx + 0x1c8]
mov eax, ebp
lea rax, [rax + rax*2]
lea rcx, [0x1400ad8d0]
add rcx, rax
mov edx, 2
mov r8d, 1
call fcn.140093198
mov r9, qword [rbx + 0x1c8]
mov r8d, 1
mov rcx, rdi
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.140093198
nop
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140020150
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x1400c339e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400201af
mov rdi, rax
lea rdx, [0x1400beb53]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, [0x1400c33b0]
mov rcx, rsi
call fcn.140095390
test rax, rax
je 0x1400201c0
test rbx, rbx
je 0x1400201f9
mov rax, rbx
mov rcx, rsi
xor edx, edx
mov r8d, 8
jmp 0x1400201eb
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r15, rbx
test rbx, rbx
je 0x14002020e
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002020e
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
mov rax, r15
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp rax
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400201b1
mov r14d, eax
mov rcx, rsi
call fcn.140094ec8
lea ecx, [r14 + 1]
add rcx, rax
add rcx, rcx
call qword [case.0x1400315e4.5]
mov rdi, rax
test rax, rax
je 0x140020292
mov rcx, rdi
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140020292
mov rcx, rdi
call fcn.140094ec8
lea rcx, [rdi + rax*2]
lea rdx, [0x1400c3308]
call fcn.140094eac
mov rcx, rdi
call fcn.140094ec8
lea rcx, [rdi + rax*2]
mov rdx, rsi
call fcn.140094eac
mov rcx, rdi
test r15, r15
je 0x140020296
xor edx, edx
mov r8d, 8
call r15
jmp 0x14002029c
xor ebx, ebx
jmp 0x14002029f
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov rcx, rdi
call qword [fcn.140092c88]
jmp 0x1400201b1
Function at 0x14002d900
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14008eaf0
cdqe
add rsp, 0x28
ret
Function at 0x140031470
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140031488
mov rsi, rcx
call fcn.140049fd0
test al, al
je 0x14003148f
xor eax, eax
jmp 0x140031545
mov rcx, rsi
call fcn.140094370
mov rdi, rax
mov rcx, rsi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
call fcn.140071520
test rax, rax
je 0x1400314d2
sub rax, rsi
mov rcx, rsi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
call fcn.140071520
test rax, rax
je 0x1400314d2
inc rax
add rdi, rsi
sub rdi, rax
jmp 0x1400314d4
xor eax, eax
test rax, rax
cmovne rsi, rax
test rdi, rdi
jle 0x140031540
add rdi, rsi
mov ecx, 0x1505
nop dword [rax + rax]
mov rbx, rcx
shl rbx, 5
add rbx, rcx
movzx ecx, byte [rsi]
inc rsi
call fcn.140037510
movsx rcx, al
xor rcx, rbx
cmp rsi, rdi
jb 0x1400314f0
movabs rdx, 0x410410410410411
mov rax, rcx
mul rdx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
mov rdx, rax
shl rdx, 6
sub rax, rdx
add rax, rcx
jmp 0x140031545
mov eax, reloc.WLDAP32.dll_Ordinal_26
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140037530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test rcx, rcx
je 0x140037587
test rdx, rdx
je 0x140037587
movzx eax, byte [rcx]
test al, al
je 0x140037574
inc rcx
lea r8, [0x1400ae130]
nop dword [rax + rax]
movzx r9d, byte [rdx]
test r9, r9
je 0x140037576
movzx eax, al
movzx eax, byte [rax + r8]
cmp al, byte [r9 + r8]
jne 0x140037591
inc rdx
movzx eax, byte [rcx]
inc rcx
test al, al
jne 0x140037550
xor eax, eax
test al, al
setne cl
cmp byte [rdx], 0
sete al
xor al, cl
movzx eax, al
ret
or rcx, rdx
sete al
movzx eax, al
ret
xor eax, eax
movzx eax, al
ret

Function at 0x14003d980
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 4
mov eax, dword [0x1400ccb58]
cmp eax, 2
je 0x14003da4b
mov rsi, rcx
test eax, eax
jne 0x14003d9f9
mov dword [rsp + 0x20], 3
mov ecx, 6
xor edx, edx
xor r8d, r8d
mov r9d, 2
call fcn.140048fe0
test al, al
je 0x14003d9ef
mov dword [0x1400ccb58], 2
jmp 0x14003da4b
mov dword [0x1400ccb58], 1
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14003da2a
cmp dword [rsp + 0x30], 0x4020
jg 0x14003da4b
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140080da0
nop
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x2c8]
test byte [rax + 0x85], 8
jne 0x14003f10a
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
mov dword [rsp + 0x2c], Ordinal_133
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rdi + 0x98]
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14003f0b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
mov ecx, eax
call fcn.140050c90
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, rsi
mov r8d, edi
mov r9, rax
jmp 0x14003f105
lea r9, [rdi + 0x144]
add rdi, 0x114
mov edx, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
mov r8, rdi
call fcn.1400347f0
test al, al
jne 0x14003f10a
call fcn.14008c87c
mov ecx, dword [rax]
lea rdx, [rsp + 0xb0]
mov r8d, 0x100
call fcn.140050c90
mov rdi, rax
call fcn.14008c87c
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, rsi
mov r9, rdi
call fcn.14001cc90
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140080da0
nop
add rsp, 0x1b8
pop rdi
pop rsi
ret
Function at 0x14003fe10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x140
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov dword [r9], 0
mov rcx, qword [rax + 0x98]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14003fea9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14003fe72
mov dword [rdi], 0x51
jmp 0x14003fea9
mov ebp, eax
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call fcn.140050c90
mov rcx, qword [r14 + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.14001cc90
mov rax, qword [r14 + 8]
mov dword [rax + 0xd5c], ebp
mov dword [rdi], gethostname
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x14003fee5
cmp byte [rcx + 0xa87], 0
je 0x14003fee5
mov rdx, qword [r14]
test rdx, rdx
je 0x14003fee5
mov rax, qword [rdx]
cmp dword [rax + 0xc], 0
jle 0x14003fee5
mov eax, dword [rdi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
lea r8, str.nw_in_read_len_zu______d__err_d
mov r9, rsi
call fcn.14001ce00
movsxd rsi, ebx
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140080da0
mov rax, rsi
add rsp, 0x140
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140044330
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 1
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax]
mov edx, edi
mov rcx, r14
call qword [case.0x1400315e4.0]
test rax, rax
je 0x14004438e
mov rbx, rax
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call r15
test eax, eax
je 0x140044389
cmp eax, edi
je 0x140044389
cmp eax, 0x8001
jae 0x140044389
mov r14, rbx
cmp eax, edi
mov edi, eax
jae 0x140044350
jmp 0x140044399
mov rcx, rbx
jmp 0x140044391
mov rcx, r14
call qword [fcn.140092c88]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400454b0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], edi
mov rcx, r8
xor edx, edx
mov r8, r9
call fcn.1400a6d30
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x48]
xor edx, edx
xor r8d, r8d
mov r9d, Ordinal_26
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400455da
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400455b8
mov rcx, qword [rsp + 0x40]
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400455b8
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400455b8
mov eax, dword [rsp + 0x3c]
cmp rax, rdi
ja 0x1400455b8
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov edx, 2
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400455c8
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400455da
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140080da0
xor eax, eax
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400491e0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor esi, esi
xor ecx, ecx
xor edx, edx
call fcn.14008b888
cmp rax, 0xffffffffffffffff
mov rcx, rax
cmove rcx, rsi
test rax, rax
cmovne rax, rcx
add rsp, 0x30
pop rsi
ret

Function at 0x1400492a0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rsi, r9
mov rax, qword [0x1400cb080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [r9], 0
lea r9, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x1400493fd
mov r15, qword [rsp + 0x20]
test r15, r15
je 0x1400493e8
xor edi, edi
xorps xmm6, xmm6
xor r12d, r12d
jmp 0x140049313
mov rbx, r12
mov r15, qword [r15 + 0x28]
mov r12, rbx
test r15, r15
je 0x1400493d1
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x140049330
call fcn.140094370
mov r14, rax
inc r14
cmp dword [r15 + 4], 2
jne 0x140049300
jmp 0x14004933a
xor r14d, r14d
cmp dword [r15 + 4], 2
jne 0x140049300
cmp qword [r15 + 0x20], 0
je 0x140049300
cmp qword [r15 + 0x10], 0x10
jb 0x140049300
lea rcx, [r14 + 0x40]
call qword [case.0x1400315e4.5]
test rax, rax
je 0x14004941f
mov rbx, rax
mov eax, dword [r15]
mov dword [rbx], eax
mov eax, dword [r15 + 4]
mov dword [rbx + 4], eax
mov eax, dword [r15 + 8]
mov dword [rbx + 8], eax
mov eax, dword [r15 + 0xc]
mov dword [rbx + 0xc], eax
mov dword [rbx + reloc.WS2_32.dll_recv], 0x10
lea rax, [rbx + 0x30]
movups xmmword [rbx + 0x18], xmm6
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x20], rax
mov rax, qword [r15 + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx + 0x30], xmm0
test r14, r14
je 0x1400493b7
lea rcx, [rbx + 0x40]
mov qword [rbx + 0x18], rcx
mov rdx, qword [r15 + 0x18]
mov r8, r14
call fcn.1400a6690
test rdi, rdi
cmove rdi, rbx
test r12, r12
je 0x140049303
mov qword [r12 + 0x28], rbx
jmp 0x140049303
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400493e1
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor ebx, ebx
test rdi, rdi
jne 0x1400493fa
mov ebx, 0x2af9
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140080da0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14004942f
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ebx, 8
test rdi, rdi
je 0x1400493f8
nop dword [rax]
mov r14, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.140092c88]
mov rdi, r14
test r14, r14
jne 0x140049440
jmp 0x1400493f8