joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034e8c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x2b8], 0
je 0x140034eef
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x208]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x2b8]
mov dword [rsp + 0x34], eax
jmp 0x140034f5d
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140034f5d
cmp dword [rsp + 0x30], 2
jle 0x140034f07
jmp 0x140034f5d
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1400bfbc8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x200]
mov r8d, 1
mov edx, 2
mov rcx, rax
call fcn.140097690
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x200]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140097690
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, Ordinal_27
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax + 0x2c0]
test eax, eax
je 0x140035c3f
mov rcx, qword [rsp + 0x40]
call fcn.140025f28
test eax, eax
jne 0x140035c3d
xor al, al
jmp 0x140035c95
jmp 0x140035c93
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
cmp qword [rcx + rax + 0x238], 0xffffffffffffffff
jne 0x140035c5e
xor al, al
jmp 0x140035c95
mov eax, 8
imul rax, rax, 0
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x238]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140035c93
xor al, al
jmp 0x140035c95
mov al, 1
add rsp, 0x38
ret

Function at 0x140035ca0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
cmp dword [0x1400f3488], 0
jne 0x140035cff
mov r9d, 3
mov r8d, 2
xor edx, edx
mov ecx, 6
call fcn.140053bf8
movzx eax, al
test eax, eax
je 0x140035cf5
mov dword [0x1400f3488], 2
jmp 0x140035cff
mov dword [0x1400f3488], 1
cmp dword [0x1400f3488], 2
jne 0x140035d0a
jmp 0x140035d62
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140035d3f
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x140035d3f
jmp 0x140035d62
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x48
ret
Function at 0x140035d70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x180]
cmp dword [rax + 0xbc], 2
jne 0x140035dbb
jmp 0x140035fcf
mov rax, qword [rsp + 0x180]
movzx eax, byte [rax + 0x3a2]
test eax, eax
jne 0x140035fc2
mov rax, qword [rsp + 0x180]
movzx eax, byte [rax + 0x3be]
test eax, eax
jne 0x140035fc2
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140035e49
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x180]
call fcn.140052500
mov r9, rax
mov r8d, dword [rsp + 0x24]
lea rdx, str.getpeername___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400339c8
jmp 0x140035fcf
mov dword [rsp + 0x20], 0x80
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x188]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140035eb7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x180]
call fcn.140052500
mov r9, rax
mov r8d, dword [rsp + 0x28]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400339c8
jmp 0x140035fcf
mov rax, qword [rsp + 0x180]
add rax, 0x1b4
mov rcx, qword [rsp + 0x180]
add rcx, 0x186
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0xd0]
call fcn.140037418
movzx eax, al
test eax, eax
jne 0x140035f2d
call fcn.140097430
mov edx, dword [rax]
mov rcx, qword [rsp + 0x180]
call fcn.140052500
mov qword [rsp + 0x38], rax
call fcn.140097430
mov rcx, qword [rsp + 0x38]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400339c8
jmp 0x140035fcf
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
lea rdi, [rax + 0x88]
lea rsi, [rcx + 0x186]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x180]
add rax, 0x1e8
mov rcx, qword [rsp + 0x180]
add rcx, 0x1b8
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140037418
movzx eax, al
test eax, eax
jne 0x140035fc2
call fcn.140097430
mov edx, dword [rax]
mov rcx, qword [rsp + 0x180]
call fcn.140052500
mov qword [rsp + 0x40], rax
call fcn.140097430
mov rcx, qword [rsp + 0x40]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400339c8
jmp 0x140035fcf
mov rcx, qword [rsp + 0x180]
call fcn.140035ff0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x140036348
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1400363c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.140052500
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, qword [rsp + 0x38]
call fcn.1400338d0
jmp 0x1400363d2
lea rdx, str.TCP_NODELAY_set_n
mov rcx, qword [rsp + 0x38]
call fcn.1400338d0
add rsp, 0x48
ret

Function at 0x1400365fc
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x994]
test eax, eax
je 0x140036639
mov dword [rsp + 0x54], 1
jmp 0x140036641
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140036694
mov r8, qword [rsp + 0x98]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, qword [rsp + 0x90]
call fcn.1400338d0
jmp 0x140036766
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0x998]
call fcn.1400375f8
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0x99c]
call fcn.1400375f8
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, recvfrom
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140036766
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0x98]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov rcx, qword [rsp + 0x90]
call fcn.1400338d0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x88
ret
Function at 0x14003773c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov rcx, qword [rsp + 0x40]
call fcn.1400375d4
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call fcn.1400aa1b0
cdqe
add rsp, 0x28
ret
Function at 0x14005378c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call fcn.14009cd50
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400537d9
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x30], rax
jne 0x1400537dd
xor eax, eax
jmp 0x1400537e2
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x1400580a0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400580f5
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x38
ret

Function at 0x140058100
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x28
ret

Function at 0x14005a1d4
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
xor eax, eax
test eax, eax
jne 0x14005a1f2
mov eax, 2
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14005a23d
mov r8d, dword [rsp + 0x24]
lea rdx, str.WSAStartup_failed___d_
mov rcx, qword [rsp + 0x1f0]
call fcn.1400339c8
mov eax, 2
jmp 0x14005a2aa
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x30]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x14005a28d
movzx eax, word [rsp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x14005a2a8
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, qword [rsp + 0x1f0]
call fcn.1400339c8
mov eax, 2
jmp 0x14005a2aa
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x1e8
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x20], 0xff
mov eax, 1
imul rax, rax, 1
mov cl, byte [rsp + 0x58]
mov byte [rsp + rax + 0x20], cl
mov eax, 1
imul rax, rax, 2
mov cl, byte [rsp + 0x60]
mov byte [rsp + rax + 0x20], cl
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + rax + 0x238]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jge 0x14005ae10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x24]
lea rdx, str.Sending_data_failed___d_
mov rcx, qword [rsp + 0x30]
call fcn.1400339c8
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
lea rdx, str.SENT
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call fcn.14005aaa4
add rsp, 0x48
ret
Function at 0x140072080
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 0x238]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14007210c
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.1400360b4
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14007213e
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x30]
call fcn.1400339c8
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400721f2
lea rdx, str.Connection_accepted_from_server_n
mov rcx, qword [rsp + 0x30]
call fcn.1400338d0
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x3ac], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x28]
mov qword [rcx + rax + 0x238], rdx
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.14007aeac
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov byte [rcx + rax + 0x258], 1
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x2c8], 0
je 0x1400721f0
mov dword [rsp + 0x24], 0
mov r8d, 1
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x2d0]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x2c8]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400721f0
mov rcx, qword [rsp + 0x70]
call fcn.140071ea0
mov eax, Ordinal_45
jmp 0x1400721f2
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x68
ret
Function at 0x1400751cc
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x14007521c
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x28]
call fcn.1400339c8
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x14007529a
cmp dword [rsp + 0x48], 0xc8
je 0x14007523c
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
mov rcx, qword [rsp + 0x28]
call fcn.1400338d0
cmp dword [rsp + 0x50], 0x13
jne 0x140075253
mov rcx, qword [rsp + 0x40]
call fcn.140073a6c
mov dword [rsp + 0x20], eax
jmp 0x140075296
cmp dword [rsp + 0x50], 0x14
jne 0x14007526a
mov rcx, qword [rsp + 0x40]
call fcn.140073b1c
mov dword [rsp + 0x20], eax
jmp 0x140075296
cmp dword [rsp + 0x50], 0x15
jne 0x140075281
mov rcx, qword [rsp + 0x40]
call fcn.140073dc4
mov dword [rsp + 0x20], eax
jmp 0x140075296
cmp dword [rsp + 0x50], 0x16
jne 0x140075296
mov rcx, qword [rsp + 0x40]
call fcn.140073dfc
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400770cc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x170]
call fcn.1400a0f0c
mov qword [rsp + 0x28], rax
mov eax, 1
imul rax, rax, 0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x104
jae 0x140077117
jmp 0x14007711c
call fcn.14008e64c
mov rax, qword [rsp + 0x20]
mov byte [rsp + rax + 0x40], 0
cmp qword [rsp + 0x28], 0
je 0x140077144
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x40]
test eax, eax
je 0x140077168
lea rcx, [rsp + 0x40]
call qword [0x1400e6018]
mov qword [rsp + 0x30], rax
jmp 0x140077171
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x168
ret

Function at 0x14007aeac
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 0
je 0x14007aeca
mov dword [rsp + 0x20], 1
jmp 0x14007aed2
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret
Function at 0x140083264
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
cmp byte [rax + rcx], 0
jne 0x140083291
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400832d0
mov rax, qword [rsp + 0x40]
shl rax, 1
mov rcx, rax
call qword [str.__t_]
mov qword [rsp + 0x60], rax
jmp 0x1400832e2
lea rcx, [0x1400f3634]
call qword [0x1400e6018]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400832fe
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400833fd
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call fcn.14008375c
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x30], 0
je 0x14008332d
mov eax, dword [rsp + 0x30]
jmp 0x1400833fd
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400833d8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400833cb
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
mov eax, dword [rsp + 0x40]
shl eax, 1
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8, qword [rsp + 0xa0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0xa0]
add rax, 0x10
mov rdi, rax
xor eax, eax
mov ecx, 5
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x48]
call qword [fcn.1400979f4]
xor eax, eax
add rsp, 0x80
pop rdi
ret
Function at 0x1400835f8
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], 8
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14008364f
xor al, al
jmp 0x14008373d
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_sendto
rep stosb byte [rdi], al
mov byte [rsp + 0x58], 8
mov byte [rsp + 0x59], 2
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0xa0]
call fcn.14008340c
mov edx, 8
lea rcx, [rsp + 0x64]
call fcn.140089fd8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1400836db
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14008373d
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x80
pop rdi
ret

Function at 0x140085f74
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x140085fc4
mov eax, dword [rsp + 0x20]
jmp 0x140085fea
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call fcn.1400911f8
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140085fe8
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400994cc
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400992a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400992a0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400992a0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400992a0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400992a0
cmp dword [rcx + 0x84], 0xe
jbe 0x1400992a0
cmp dword [rcx + 0xf8], esi
je 0x1400992a0
mov ecx, r14d
call fcn.1400993e8
mov ecx, 2
call fcn.1400a2e3c
nop
cmp byte [0x1400f4498], 0
jne 0x14009936a
mov r15d, 1
mov eax, r15d
xchg dword [0x1400f448c], eax
test ebx, ebx
jne 0x140099313
mov rdi, qword [0x1400f2078]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400f4490]
cmp rcx, rax
je 0x14009930a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400040cc]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400f47e8]
jmp 0x14009931f
cmp ebx, r15d
jne 0x140099325
lea rcx, [0x1400f4800]
call fcn.1400a8388
nop
test ebx, ebx
jne 0x14009933c
lea rdx, [0x1400bf900]
lea rcx, [0x1400bf8e0]
call fcn.1400a8650
lea rdx, [0x1400bf910]
lea rcx, [0x1400bf908]
call fcn.1400a8650
movzx eax, byte [0x1400f4498]
test esi, esi
cmove eax, r15d
mov byte [0x1400f4498], al
jmp 0x14009936a
mov ecx, 2
call fcn.1400a2e90
test esi, esi
jne 0x140099381
mov ecx, r14d
call fcn.14009939c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140099230