joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007700
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18000776f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000776f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000776f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000776f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000776f
cmp dword [rcx + 0x84], 0xe
jbe 0x18000776f
cmp dword [rcx + 0xf8], 0
je 0x18000776f
mov ecx, ebx
call fcn.180007814
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180007608
nop
cmp dword [rbp + 0x20], 0
jne 0x1800077d0
call fcn.18000b88c
cmp eax, 1
jne 0x1800077c0
xor dl, dl
jmp 0x1800077ca
call fcn.18000b858
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1800077db
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800077e4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180007700
Function at 0x18000d38c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000d3bc
xor eax, eax
jmp 0x18000d47f
mov rbp, rbx
cmp word [rax], si
je 0x18000d3e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000d3c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000d3c4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000d2ac
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18000d422
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000d3b5
call fcn.1800094c0
mov rdi, rax
test rax, rax
jne 0x18000d438
xor ecx, ecx
call fcn.180008900
jmp 0x18000d417
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000d2ac
test eax, eax
jne 0x18000d469
mov rcx, rdi
call fcn.180008900
jmp 0x18000d473
xor ecx, ecx
call fcn.180008900
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180010c8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180010ca2
mov al, 1
jmp 0x180010d0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180010cb3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180010d0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18000ecb8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180010d0c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180010d0c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180010d0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180010d0e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180013e60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180013e88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180013e88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1403a2800
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1403a280d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1403a281d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1403a2805
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1403a2835
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1403a2822
sub eax, 3
jb 0x1403a284f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1403a2886
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1403a2876
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1403a2874
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1403a2863
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1403a27c2
jmp 0x1403a280d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8400
mov dl, 3
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1403a28d2
cmp rsi, rcx
jae 0x1403a28da
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1403a28b9
cmp al, 0x8f
ja 0x1403a28b9
cmp byte [rsi - 2], 0xf
je 0x1403a28bf
sub al, 0xe8
cmp al, 1
ja 0x1403a28a3
cmp rsi, rcx
jae 0x1403a28da
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1403a28a9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1403a28da
lodsb al, byte [rsi]
jmp 0x1403a28b9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x39a000]
mov eax, dword [rdi]
or eax, eax
je 0x1403a2937
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3a15e8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1403a28e7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1403a2931
mov qword [rbx], rax
add rbx, 8
jmp 0x1403a2907
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0xbff]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1403a298f
sub rsp, 0xffffffffffffff80
jmp 0x1400d61b1
Function at 0x1400092a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetDesktopWindow]
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
add rsp, 0x28
ret

Function at 0x1400097d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x248
mov rax, qword [0x14002f100]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [0x140030660], 0
je 0x140009842
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x20]
mov r8, qword [rsp + 0x258]
mov edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.14000a1a0
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140029820
add rsp, 0x248
ret

Function at 0x14000b140
Capabilities:
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14002f100]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov eax, 1
mov dword [rsp + 0x27c], eax
lea rcx, [0x140031f18]
mov eax, 1
mov edx, dword [rsp + 0x27c]
lock cmpxchg dword [rcx], edx
cmp eax, 1
jne 0x14000b18a
xor eax, eax
jmp 0x14000b324
mov eax, 1
mov dword [rsp + 0x280], eax
lea rcx, [0x140031f1c]
xor eax, eax
mov edx, dword [rsp + 0x280]
lock cmpxchg dword [rcx], edx
test eax, eax
jne 0x14000b1b0
jmp 0x14000b1bd
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000b15b
lea rax, [rsp + 0x1d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x94
rep stosb byte [rdi], al
mov dword [rsp + 0x1d0], 0x94
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x14000b22c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000b205
mov dword [rsp + 0x284], 0x80004005
jmp 0x14000b219
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0x284], eax
mov eax, dword [rsp + 0x284]
mov dword [rsp + 0x270], eax
jmp 0x14000b308
cmp dword [rsp + 0x1e0], 1
jne 0x14000b243
mov dword [rsp + 0x288], 1
jmp 0x14000b24e
mov dword [rsp + 0x288], 0
mov eax, dword [rsp + 0x288]
mov dword [0x140031d44], eax
mov dword [0x140031d40], 0xd00000bb
lea rdx, [rsp + 0x30]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x274], eax
cmp dword [rsp + 0x274], 0
jne 0x14000b291
mov dword [0x140031d40], 0
jmp 0x14000b2a3
mov ecx, dword [rsp + 0x274]
call fcn.140008f00
mov dword [0x140031d40], eax
call fcn.14000a530
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
je 0x14000b2bb
jmp 0x14000b308
lea rcx, [0x140031d18]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14000b2e5
call fcn.14000c300
call fcn.1400096f0
mov eax, 1
lea rcx, [0x140031f18]
xchg dword [rcx], eax
mov dword [rsp + 0x270], 0
cmp dword [rsp + 0x270], 0
je 0x14000b31d
xor eax, eax
lea rcx, [0x140031f1c]
xchg dword [rcx], eax
mov eax, dword [rsp + 0x270]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140029820
add rsp, 0x2a0
pop rdi
ret
Function at 0x14000c010
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x14002f100]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xd0]
cmp dword [rax + 0x24], 0
jne 0x14000c041
jmp 0x14000c12e
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140002910]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
je 0x14000c0a0
jmp 0x14000c12e
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xd0]
mov r9d, dword [rax + 0x20]
lea r8, [0x1400029b0]
mov edx, 0x20
lea rcx, [rsp + 0x60]
call fcn.14000a220
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x24], 0
mov rax, qword [rsp + 0xd0]
mov dword [rax + 0x28], 0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140029820
add rsp, 0xc8
ret
Function at 0x14000c300
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x14002f100]
xor rax, rsp
mov qword [rsp + 0xb8], rax
cmp dword [0x140031d44], 0
je 0x14000c327
jmp 0x14000c471
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x140002910]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000c361
jmp 0x14000c471
mov dword [rsp + 0x40], 0xffffffff
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0x20
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000c3cf
jmp 0x14000c463
cmp dword [rsp + 0xa8], 1
je 0x14000c3db
jmp 0x14000c369
cmp dword [rsp + 0x44], 0x1a
jae 0x14000c3e4
jmp 0x14000c369
mov r8d, setsockopt
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_wcstoul]
mov dword [rsp + 0xac], eax
cmp dword [rsp + 0xac], 0
je 0x14000c45e
mov r8d, dword [rsp + 0xac]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x14000c440
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c45e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x14000c45e
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14000c369
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140029820
add rsp, 0xc8
ret
Function at 0x14000cf40
Capabilities:
Create thread

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
call fcn.14000b140
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000cf6f
mov eax, dword [rsp + 0x48]
jmp 0x14000d0fd
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
call fcn.140017bd0
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000cf95
mov eax, dword [rsp + 0x48]
jmp 0x14000d0fd
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [rax + 0x30]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000cfba
jmp 0x14000d0ef
mov ecx, 0x18
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000cfee
mov dword [rsp + 0x48], 0x8007000e
jmp 0x14000d0ef
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0xa0]
mov byte [rax + 0x10], cl
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x38]
lea r8, [0x14000cbd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14000d097
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d065
mov dword [rsp + 0x70], 0x80004005
jmp 0x14000d076
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x14000d0ef
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0xa0]
test eax, eax
je 0x14000d0eb
mov dword [rsp + 0x58], 0xc8
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x10]
test eax, eax
je 0x14000d0e2
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x58]
dec ecx
mov dword [rsp + 0x58], ecx
test eax, eax
jbe 0x14000d0e2
mov ecx, gethostbyaddr
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000d0b6
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x10], 1
xor eax, eax
jmp 0x14000d0fd
mov rcx, qword [rsp + 0x40]
call fcn.14000d7e0
mov eax, dword [rsp + 0x48]
add rsp, 0x88
ret
Function at 0x140010600
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x1b0], 0x80
mov rax, qword [rsp + 0x50]
add rax, 0x1b0
mov rcx, qword [rsp + 0x50]
add rcx, 0x130
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_accept]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x1b8], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1b8], 0xffffffffffffffff
jne 0x140010672
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140008f00
jmp 0x14001078e
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x420], 0
je 0x14001071d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx + 0x132]
mov word [rax + 0x3a2], cx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x420]
cmp dword [rax + 0x1b0], ecx
jne 0x1400106f4
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x1b0]
mov rcx, qword [rsp + 0x50]
add rcx, 0x130
mov rdx, qword [rsp + 0x50]
add rdx, 0x3a0
mov qword [rsp + 0x38], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x38]
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x14001071d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x1b8], 0xffffffffffffffff
mov eax, 0x80070005
jmp 0x14001078e
mov rcx, qword [rsp + 0x50]
call fcn.140010090
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14001075a
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x1b8], 0xffffffffffffffff
mov eax, dword [rsp + 0x34]
jmp 0x14001078e
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, 6
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400107a0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call fcn.140010090
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400107c7
mov eax, dword [rsp + 0x34]
jmp 0x1400108f2
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0x130]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov ecx, eax
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x1b8], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1b8], 0xffffffffffffffff
jne 0x14001081b
mov eax, 0x80010007
jmp 0x1400108f2
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x50]
add rax, 0x130
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx + 0x1b0]
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140010856
jmp 0x1400108be
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x124]
cmp dword [rsp + 0x38], eax
jbe 0x14001089a
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x1b8], 0xffffffffffffffff
mov eax, 0x80010007
jmp 0x1400108f2
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x128], 0
je 0x1400108b9
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0x128]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140010823
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, 6
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x1b8]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
add rsp, 0x48
ret
Function at 0x140018210
Capabilities:
Resolve dns

Disassembly:
mov word [rsp + 0x20], r9w
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov rax, qword [rsp + 0x70]
mov byte [rax], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140018325
mov rax, qword [rsp + 0x28]
movsx eax, word [rax + 0x10]
cmp eax, 2
jne 0x140018304
mov rax, qword [rsp + 0x28]
movsx rax, word [rax + 0x12]
cmp rax, 4
jne 0x140018304
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x1400182ab
mov rax, qword [rsp + 0x20]
add rax, 8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp qword [rax], 0
je 0x140018304
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x68]
mov edx, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x58]
call fcn.140018130
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x1400182f1
mov eax, 8
jmp 0x14001837a
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
add rax, 0x28
mov qword [rsp + 0x30], rax
jmp 0x14001829d
mov r9d, 0x400
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
mov edx, 0x401
mov rcx, qword [rsp + 0x70]
call fcn.140029b70
xor eax, eax
jmp 0x14001837a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x2af9
je 0x140018359
cmp dword [rsp + 0x38], 0x2afa
je 0x140018360
cmp dword [rsp + 0x38], 0x2afb
je 0x140018367
cmp dword [rsp + 0x38], 0x2afc
je 0x14001836e
jmp 0x140018375
mov eax, 0x2af9
jmp 0x14001837a
mov eax, 0x2afa
jmp 0x14001837a
mov eax, 0x2afb
jmp 0x14001837a
mov eax, 0x2af9
jmp 0x14001837a
mov eax, 0x2af9
add rsp, 0x48
ret
Function at 0x140019920
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14002f100]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp dword [rsp + 0xb8], 3
jne 0x140019a73
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xd0]
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1400199bd
xor eax, eax
jmp 0x140019b8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x1400199f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400199de
mov dword [rsp + 0x78], 0x80004005
jmp 0x1400199ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
jmp 0x140019b8b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x140019a34
mov dword [rsp + 0x7c], 0
jmp 0x140019a6a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x140019a4b
mov dword [rsp + 0x80], 0x80004005
jmp 0x140019a5f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x7c]
jmp 0x140019b8b
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xd0]
mov r8d, dword [rsp + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140019b7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140019ac5
mov dword [rsp + 0x84], 0x80004005
jmp 0x140019ad9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140019b5b
mov r9d, 1
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x140019b23
mov dword [rsp + 0x40], 0
jmp 0x140019b59
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140019b3a
mov dword [rsp + 0x88], 0x80004005
jmp 0x140019b4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140008f00
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x40], eax
jmp 0x140019b7d
cmp dword [rsp + 0xb8], 2
je 0x140019b7d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_ClearCommError]
jmp 0x140019b87
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140029820
add rsp, 0xa8
ret