joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a556c
Capabilities:
Clear file content

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
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18009493c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18009493c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800a56bc
cmp rax, 0xffffffffffffffff
je 0x1800a56bc
xor edi, edi
test rbp, rbp
jle 0x1800a5667
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800920cc
mov rbx, rax
test rax, rax
jne 0x1800a55f4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800a565d
mov edx, 0x8000
mov ecx, r14d
call fcn.1800a53f4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800962a8
cmp eax, 0xffffffff
je 0x1800a563d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800a5604
mov edx, r15d
mov ecx, r14d
call fcn.1800a53f4
jmp 0x1800a565d
cmp byte [rsi + 0x38], dil
je 0x1800a5654
cmp dword [rsi + 0x34], 5
jne 0x1800a5654
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800a565d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180092144
jmp 0x1800a56d0
jns 0x1800a56d0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18009493c
cmp rax, 0xffffffffffffffff
jne 0x1800a5688
cmp byte [rsi + 0x30], dil
je 0x1800a56d0
mov edi, dword [rsi + 0x2c]
jmp 0x1800a56d0
mov ecx, r14d
call fcn.1800a0220
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800a56d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800a56d0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800a56c9
mov eax, dword [rsi + 0x2c]
jmp 0x1800a56ce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18009493c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800a5cf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800a5d18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800a5d18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002220
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10d, dword [section..data]
lea rsi, sym.MZ_q_QM5ehz_m4ItN__gyWpz6WReb__peRGukr8K_FS_s
xor r10d, dword [rcx + 4]
mov ebx, 2
mov r11d, dword [rcx + 8]
mov dword [rcx + 4], r10d
lea edi, [rbx + 6]
mov eax, r10d
shr rax, 0x10
movzx edx, al
mov eax, r10d
shr rax, 0x18
mov r9d, dword [rsi + rdx*4 + 0xb2830]
add r9d, dword [rsi + rax*4 + 0xb2430]
mov eax, r10d
shr rax, 8
movzx edx, al
movzx eax, r10b
xor r9d, dword [rsi + rdx*4 + 0xb2c30]
add r9d, dword [rsi + rax*4 + 0xb3030]
lea eax, [rbx - 1]
xor r9d, dword [rsi + rax*4 + 0xb2000]
xor r11d, r9d
mov dword [rcx + 8], r11d
mov eax, r11d
shr rax, 0x10
movzx edx, al
mov eax, r11d
shr rax, 0x18
mov r9d, dword [rsi + rdx*4 + 0xb2830]
add r9d, dword [rsi + rax*4 + 0xb2430]
mov eax, r11d
shr rax, 8
movzx edx, al
movzx eax, r11b
xor r9d, dword [rsi + rdx*4 + 0xb2c30]
add r9d, dword [rsi + rax*4 + 0xb3030]
mov eax, ebx
add ebx, 2
xor r9d, dword [rsi + rax*4 + 0xb2000]
xor r9d, r10d
mov dword [rcx + 4], r9d
mov r10d, r9d
sub rdi, 1
jne 0x140002251
xor r11d, dword [0x1400b2044]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov dword [rcx + 4], r11d
mov dword [rcx + 8], r9d
ret
Function at 0x140006770
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140201788]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x1400067e5
lea rdx, str.Failed_to_connect_to_service_control_manager.
lea rcx, [0x1402030f0]
call fcn.1400026d0
mov dl, 0xa
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.140010020
movzx edx, al
mov rcx, rbx
call fcn.14000e300
mov rcx, rbx
call fcn.14000a0a0
xor al, al
jmp 0x1400068cc
mov r8d, 4
mov qword [rsp + 0x68], rsi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x14000684b
lea rdx, str.Failed_to_open_service.
lea rcx, [0x1402030f0]
call fcn.1400026d0
mov dl, 0xa
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.140010020
movzx edx, al
mov rcx, rbx
call fcn.14000e300
mov rcx, rbx
call fcn.14000a0a0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400068c7
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400068ad
lea rdx, str.Failed_to_query_service_status.
lea rcx, [0x1402030f0]
call fcn.1400026d0
mov dl, 0xa
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call fcn.140010020
movzx edx, al
mov rcx, rbx
call fcn.14000e300
mov rcx, rbx
call fcn.14000a0a0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1400068c7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
invalid
invalid
push rcx
push rdi
invalid
Function at 0x1400068f0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140201788]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rbx
xor r14d, r14d
mov rax, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140006940
mov rax, qword [rdx]
mov rdx, rbx
cmp qword [r9 + 0x18], 0x10
jb 0x14000694d
mov rdx, qword [r9]
mov rcx, rdi
cmp qword [r8 + 0x18], 0x10
jb 0x14000695a
mov rcx, qword [r8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64
lea r9, [rsp + 0x50]
lea r8, str.NULL
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140006994
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140002bf0
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1400069e6
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1400069e1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006aac
mov rcx, r8
call fcn.14001360c
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140006a2b
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140006a26
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006aa0
mov rcx, r8
call fcn.14001360c
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140006a70
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140006a6b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006aa6
mov rcx, r8
call fcn.14001360c
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rbp
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400136b0
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140065b54
nop
call fcn.140065b54
nop
call fcn.140065b54
int3
Function at 0x140010230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140010261
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1400102db
mov rdi, r14
mov rcx, rbx
call fcn.1400088f0
test rax, rax
jle 0x1400102b3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14005ff90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400102cb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x1400102d3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140010275
sub r14, rdi
jmp 0x1400103bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400102f2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400102f4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140010326
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14005ff90
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400103bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140010361
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14001039d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140066e28
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400103bc
cmp rbp, rax
ja 0x140010370
test rbp, rbp
je 0x1400103bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140066e28
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400116e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140201788]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
xor edx, edx
mov ecx, 0x5c
call fcn.140005320
mov ecx, 0x5c
mov word [rsp + 0x40], ax
lea edx, [rcx - 0x5b]
call fcn.140005320
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov word [rsp + 0x42], ax
lea edx, [rcx - 0x2c]
call fcn.140005320
mov ecx, 0x5c
mov word [rsp + 0x44], ax
lea edx, [rcx - 0x59]
call fcn.140005320
mov ecx, 0x45
mov word [rsp + 0x46], ax
lea edx, [rcx - 0x41]
call fcn.140005320
mov ecx, 0x49
mov word [rsp + 0x48], ax
lea edx, [rcx - 0x44]
call fcn.140005320
mov ecx, 0x51
mov word [rsp + 0x4a], ax
lea edx, [rcx - 0x4b]
call fcn.140005320
mov ecx, 0x44
mov word [rsp + 0x4c], ax
lea edx, [rcx - 0x3d]
call fcn.140005320
mov ecx, 0x56
mov word [rsp + 0x4e], ax
lea edx, [rcx - 0x4e]
call fcn.140005320
xor ecx, ecx
mov word [rsp + 0x50], ax
lea edx, [rcx + 9]
call fcn.140005320
movzx ecx, word [0x14008f314]
mov edx, 0xa
mov word [rsp + 0x52], ax
call fcn.140005320
movzx ecx, word [0x14008f316]
mov edx, ntohl
mov word [rsp + 0x54], ax
call fcn.140005320
movzx ecx, word [str.bad_allocation]
mov edx, ntohl
mov word [rsp + 0x56], ax
call fcn.140005320
movzx ecx, word [0x14008f31a]
mov edx, reloc.WS2_32.dll_listen
mov word [rsp + 0x58], ax
call fcn.140005320
movzx ecx, word [0x14008f31c]
mov edx, reloc.WS2_32.dll_ntohl
mov word [rsp + 0x5a], ax
call fcn.140005320
movzx ecx, word [0x14008f31e]
mov edx, reloc.WS2_32.dll_ntohs
mov word [rsp + 0x5c], ax
call fcn.140005320
movzx ecx, word [0x14008f320]
mov edx, reloc.WS2_32.dll_recv
mov word [rsp + 0x5e], ax
call fcn.140005320
movzx ecx, word [0x14008f322]
mov edx, reloc.WS2_32.dll_recvfrom
mov word [rsp + 0x60], ax
call fcn.140005320
movzx ecx, word [0x14008f324]
mov edx, reloc.WS2_32.dll_select
mov word [rsp + 0x62], ax
call fcn.140005320
mov word [rsp + 0x64], ax
mov r9d, 0x133
xor eax, eax
mov word [rsp + 0x66], ax
xor r10d, r10d
nop
movsxd rcx, eax
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rcx*2]
lea ecx, [r9 + rax]
inc eax
xor word [rdx], cx
cmp eax, 0x13
jb 0x140011880
mov qword [rsp + 0x30], r10
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], r10d
mov edx, 0xc0000000
mov word [rsp + 0x66], r10w
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400136b0
add rsp, 0x70
pop rbx
ret
Function at 0x140011da0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140011e24
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140011e24
dec r8
sub rdx, 1
jne 0x140011e0a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140014358
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400143a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400143a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400143a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400143a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400143a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400143a4
xor al, al
add rsp, 0x28
ret
Function at 0x14001c180
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x14001c26a
call fcn.14001c3d0
test al, al
jne 0x14001c26a
mov qword [rsp + 0x30], rbx
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], r14
xor r14d, r14d
mov esi, r14d
inc rbx
cmp byte [rdi + rbx], sil
jne 0x14001c1c0
mov r8, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call fcn.140038560
test rax, rax
je 0x14001c205
sub rax, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rdi
call fcn.140038560
mov rsi, rax
test rax, rax
je 0x14001c205
inc rsi
mov rcx, rdi
sub rcx, rsi
add rbx, rcx
test rsi, rsi
mov ebp, 0x1505
cmovne rdi, rsi
mov rsi, rdi
lea rax, [rbx + rdi]
cmp rdi, rax
cmova rbx, r14
mov r14, qword [rsp + 0x48]
test rbx, rbx
je 0x14001c251
nop dword [rax]
movzx ecx, byte [rsi]
call fcn.14002ae10
movsx rcx, al
inc rsi
imul rbp, rbp, 0x21
mov rax, rsi
xor rbp, rcx
sub rax, rdi
cmp rax, rbx
jb 0x14001c230
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
movzx eax, bpl
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140028200
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14002823b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400283e0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x140201788]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x120]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x288]
mov rbp, qword [rsi + rcx*8 + 0x240]
add rbx, rax
mov rax, qword [rsi + 0x3e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1400284e7
lea rax, [0x140028290]
cmp qword [rsi + rcx*8 + 0x268], rax
jne 0x1400284e7
cmp qword [rbx], r13
je 0x14002846e
test rdi, rdi
je 0x1400284e7
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.140027910
cmp eax, 0xffffffff
je 0x1400284e7
test al, 1
je 0x1400284e7
mov rax, qword [rbx]
test rax, rax
jne 0x1400284c0
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb60]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.14006b040]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x1400284e3
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400284e7
add qword [rbx + 0x10], rcx
jmp 0x1400284e7
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x140028554
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140028520
mov dword [r14], 0x51
mov rax, r13
jmp 0x140028557
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140053c60
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140027dc0
mov rcx, qword [rsi]
mov dword [rcx + 0x10e8], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400136b0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
test byte [rcx + 0x2d8], 1
je 0x140028b3d
call fcn.1400211e0
test eax, eax
jne 0x140028b63
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x240]
cmp rcx, 0xffffffffffffffff
je 0x140028b36
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140028b36
mov al, 1
add rsp, 0x28
ret
Function at 0x14002a8d0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140092190]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14002a8fa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400921b0]
mov rcx, rbx
mov r14, rax
call fcn.140076ff0
test rax, rax
je 0x14002a95d
mov rcx, rbx
test r14, r14
je 0x14002a947
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x14002a995
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002a995
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14002aa58
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14002a9c0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.14006b040]
mov rdi, rax
test rax, rax
je 0x14002aa4a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14002aa4a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14002a9f0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x14002aa04
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14002aa20
mov rcx, rdi
test r14, r14
je 0x14002aa41
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14002aa47
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.140065bcc]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400388f0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140038ab4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x140038a94
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14003894d
lea ebp, [rax + 0xe]
jmp 0x140038959
cmp eax, 0x17
jne 0x140038a01
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x140038a01
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140038a01
cmp rax, rbp
jb 0x140038a01
mov ecx, Ordinal_50
call qword [fcn.14006b040]
mov rdi, rax
test rax, rax
je 0x140038a3c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.14006b040]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140038a2b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14005ff90
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400389ee
call qword [case.0x14001c5c9.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140038a10
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400389fe
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140038940
jmp 0x140038a42
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.140065bcc]
mov rcx, rdi
call qword [fcn.140065bcc]
jmp 0x140038a42
mov rcx, rdi
mov r14d, 8
call qword [fcn.140065bcc]
jmp 0x140038a42
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140038a57
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x140038a8f
test rbx, rbx
je 0x140038a8a
mov rcx, qword [rbx + 0x20]
call qword [fcn.140065bcc]
mov rcx, qword [rbx + 0x18]
call qword [fcn.140065bcc]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.140065bcc]
mov rbx, rdi
test rdi, rdi
jne 0x140038a61
mov rbx, r13
jmp 0x140038aa3
test rbx, rbx
jne 0x140038aa3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret

Function at 0x14003dbb0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140201788]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140077a6c
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14003dc16
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14003dc16
lea rcx, [rsp + 0x20]
call qword [case.0x14001c5c9.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400136b0
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400136b0
add rsp, 0x148
ret