joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014d70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x30], 0
mov eax, 1
imul rax, rax, 0xa
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 0xf
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 0xe
mov byte [rsp + rax + 0x40], WSASetLastError
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x40], 0x57
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 1
mov byte [rsp + rax + 0x40], WSAStartup
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x40], 0x50
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSACleanup
mov eax, 1
imul rax, rax, 0x10
mov byte [rsp + rax + 0x40], WSAStartup
mov eax, 1
imul rax, rax, 9
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 0x11
mov byte [rsp + rax + 0x40], 0x79
mov eax, 1
imul rax, rax, 0x12
mov byte [rsp + rax + 0x40], 0
mov eax, 1
imul rax, rax, 0xd
mov byte [rsp + rax + 0x40], 0x65
mov eax, 1
imul rax, rax, 0xc
mov byte [rsp + rax + 0x40], 0x4d
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSAGetLastError
mov eax, 1
imul rax, rax, 0xb
mov byte [rsp + rax + 0x40], reloc.WS2_32.dll_WSAStartup
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x40], WSAStartup
mov eax, 1
imul rax, rax, 2
mov byte [rsp + rax + 0x40], 0x69
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x40], 0x63
call fcn.1400c61b0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140014ee9
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x38]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x1400470e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14004718a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x2733
jne 0x14004713d
mov dword [rsp + 0x24], 1
jmp 0x140047145
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 0
jne 0x140047156
mov dword [rsp + 0x28], 0
jmp 0x14004715e
mov dword [rsp + 0x28], 1
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140047183
mov eax, 0x51
jmp 0x140047199
mov eax, 0x38
jmp 0x140047199
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x1400f4c78]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
test eax, eax
jne 0x14004735c
xor eax, eax
test eax, eax
jne 0x140047362
mov rax, qword [rsp + 0x160]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x38], rax
mov r8d, dword [rsp + 0x168]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.1400478e0
test eax, eax
je 0x1400473cb
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x140047483
xor r9d, r9d
mov r8d, dword [rsp + 0x178]
mov rdx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x180]
mov dword [rax], 0
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14004747e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x140047433
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x51
jmp 0x14004747e
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
call fcn.140075bc0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, qword [rsp + 0x160]
call fcn.140046e70
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0xd24], ecx
mov rax, qword [rsp + 0x180]
mov dword [rax], 0x37
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14008c600
add rsp, 0x158
ret
Function at 0x1400477c0
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 rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xa6f]
test eax, eax
je 0x1400478c9
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x270], 0
je 0x140047854
mov rcx, qword [rsp + 0x50]
call fcn.14002f020
mov byte [rsp + 0x30], al
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.14002efb0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x1d8]
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 + 0x270]
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.14002efb0
jmp 0x1400478c9
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140047873
cmp dword [rsp + 0x34], 1
je 0x140047873
cmp dword [rsp + 0x34], 2
je 0x140047873
jmp 0x1400478c9
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1400d7cf0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x1d0]
mov r8d, 1
mov edx, 2
mov rcx, rax
call fcn.140097acc
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x1d0]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140097acc
add rsp, 0x48
ret
Function at 0x1400478e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8 + 0x1d0]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x218]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x3e0]
mov eax, dword [rax + 0x84]
and eax, 3
test eax, eax
je 0x140047aaf
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rdx, [0x1400471b0]
cmp qword [rcx + rax*8 + 0x1f8], rdx
jne 0x140047aaf
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x140047992
cmp qword [rsp + 0x30], 0
je 0x140047aaf
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.1400619a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140047aaf
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140047aaf
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x140047a42
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x6dc]
shl eax, 1
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [fcn.140095e10]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x140047a1a
mov eax, 0x1b
jmp 0x140047ab1
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x140047aa2
xor eax, eax
test eax, eax
jne 0x140047a4d
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x140047aa0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
jmp 0x140047aaf
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400492a0
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 [0x1400f5f00], 0
jne 0x140049304
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140079040
movzx eax, al
test eax, eax
je 0x1400492fa
mov dword [0x1400f5f00], 2
jmp 0x140049304
mov dword [0x1400f5f00], 1
cmp dword [0x1400f5f00], 2
jne 0x14004930f
jmp 0x140049367
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 0x140049344
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x140049344
jmp 0x140049367
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 0x140049590
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1400f4c78]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov dword [rsp + 0x24], 0x80
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140049632
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
call fcn.140075bc0
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.140046e70
jmp 0x14004969a
mov r9, qword [rsp + 0x1e8]
mov r8, qword [rsp + 0x1e0]
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.1400490d0
movzx eax, al
test eax, eax
jne 0x14004969a
call fcn.1400927bc
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, dword [rax]
call fcn.140075bc0
mov qword [rsp + 0x28], rax
call fcn.1400927bc
mov rcx, qword [rsp + 0x28]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1d0]
call fcn.140046e70
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14008c600
add rsp, 0x1c0
pop rdi
ret
Function at 0x140049d30
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1400f4c78]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xa7b]
test eax, eax
je 0x140049d6d
mov dword [rsp + 0x54], 1
jmp 0x140049d75
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 0x140049db2
xor eax, eax
test eax, eax
jne 0x140049da7
jmp 0x140049e65
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xa00]
call fcn.14004b030
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 + 0xa04]
call fcn.14004b030
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, recv
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140049e65
xor eax, eax
test eax, eax
jne 0x140049e5f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008c600
add rsp, 0x88
ret
Function at 0x14004ae90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
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 0x14004aeda
xor eax, eax
test eax, eax
jne 0x14004aed4
add rsp, 0x48
ret

Function at 0x14004b660
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x1400f4c78]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x14004b718
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14004b6be
mov eax, 2
jmp 0x14004b7be
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x14004b708
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x14004b718
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x14004b7be
call fcn.14007a9a0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14004b731
mov eax, dword [rsp + 0x34]
jmp 0x14004b7be
lea rcx, str.iphlpapi.dll
call fcn.14004b840
mov qword [0x1400f5f10], rax
cmp qword [0x1400f5f10], 0
je 0x14004b77b
lea rdx, str.if_nametoindex
mov rcx, qword [0x1400f5f10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14004b77b
mov rax, qword [rsp + 0x40]
mov qword [0x1400f5f08], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140079040
movzx eax, al
test eax, eax
je 0x14004b7a8
mov byte [0x1400f7688], 1
jmp 0x14004b7af
mov byte [0x1400f7688], 0
lea rcx, [0x1400f7690]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14008c600
add rsp, 0x208
ret
Function at 0x140054760
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400547db
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x68
ret
Function at 0x14005a330
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x1298], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x12a0], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f1]
test eax, eax
je 0x14005a3a4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10f1]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
cmp eax, ecx
jle 0x14005a3bb
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x717]
mov byte [rax + 0x10f1], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1100], 0
je 0x14005a3f4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1168]
test eax, eax
jne 0x14005a3f4
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x1a0
jne 0x14005a3f4
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdc], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xa
jne 0x14005a41c
xor eax, eax
test eax, eax
jne 0x14005a405
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.140049b00
jmp 0x14005a487
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0x14
je 0x14005a446
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x8c], 2
jne 0x14005a460
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x65
jne 0x14005a460
xor eax, eax
test eax, eax
jne 0x14005a446
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d8]
mov dword [rax], 2
jmp 0x14005a487
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x717]
cmp eax, 0xb
jl 0x14005a487
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3aa]
test eax, eax
jne 0x14005a487
xor eax, eax
test eax, eax
jne 0x14005a481
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0x64
jl 0x14005a4aa
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x70], 0xc8
jge 0x14005a4aa
mov dword [rsp + 0x20], 1
jmp 0x14005a4b2
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x14005a4c3
mov dword [rsp + 0x24], 0
jmp 0x14005a4cb
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0xdd], cl
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x70]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xcc
je 0x14005a519
cmp dword [rsp + 0x28], 0x130
je 0x14005a4fd
jmp 0x14005a53e
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x558]
test eax, eax
je 0x14005a519
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x137c], 1
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xdd], 1
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400623a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x78], 0
je 0x1400623ca
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jne 0x14006240c
cmp qword [rsp + 0x80], 0
je 0x1400623e2
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x14006240c
cmp qword [rsp + 0x88], 0
je 0x1400623fa
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x14006240c
mov rcx, qword [rsp + 0x90]
call fcn.140062320
jmp 0x1400624d1
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.1400839b0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x88], 0
je 0x14006244a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x14006244a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
jmp 0x140062453
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x80], 0
je 0x14006247a
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x14006247a
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x140062483
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0
je 0x1400624a1
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x1400624a1
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x1400624aa
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x70]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x68
ret
Function at 0x140068150
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.14009f098
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400681aa
mov ecx, 0xffffffff
call fcn.140068240
cmp qword [rsp + 0x30], rax
jne 0x1400681ae
xor eax, eax
jmp 0x1400681b3
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400689c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x38]
rep stosb byte [rdi], al
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x1400689ff
mov eax, 2
jmp 0x140068a01
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14006f550
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov rdi, qword [rsp + 0x70]
xor eax, eax
mov rcx, qword [rsp + 0x78]
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14006f5ca
jmp 0x14006f6a2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14006f5f5
jmp 0x14006f67a
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14006f613
jmp 0x14006f67a
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14006f63b
jmp 0x14006f67a
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x78], rax
jae 0x14006f648
jmp 0x14006f67a
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x70]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14006f670
jmp 0x14006f67a
xor eax, eax
test eax, eax
jne 0x14006f5ca
cmp qword [rsp + 0x40], 0
je 0x14006f68d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x14006f6a2
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x50
pop rdi
ret

Function at 0x14006f750
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x8000
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [fcn.140095e18]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14006f79f
mov rcx, qword [rsp + 0x30]
call qword [fcn.140095dfc]
xor eax, eax
jmp 0x14006f80a
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14006f7e5
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
je 0x14006f7e5
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jbe 0x14006f7f4
mov rcx, qword [rsp + 0x30]
call qword [fcn.140095dfc]
xor eax, eax
jmp 0x14006f80a
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x14006f805
mov rax, qword [rsp + 0x30]
jmp 0x14006f80a
jmp 0x14006f772
add rsp, 0x48
ret