joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d110
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.00408160
xor ebx, ebx
cmp qword [0x00417fe8], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x40d241
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x40d173
xor eax, eax
jmp 0x40d321
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x40d16c
mov rcx, rax
call fcn.004080f0
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x00417fe8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004080f0
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x00417ff0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004080f0
lea rcx, [rsp + 0x30]
mov qword [0x00417ff8], rax
call fcn.0040a010
test eax, eax
je 0x40d1f7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004068a0
cmp dword [rsp + 0x30], 2
jne 0x40d241
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004080f0
test rax, rax
mov qword [0x00418008], rax
je 0x40d241
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.004080f0
mov qword [0x00418000], rax
mov rcx, qword [0x00418000]
cmp rcx, rsi
je 0x40d2d3
cmp qword [0x00418008], rsi
je 0x40d2d3
call fcn.004081c0
call rax
test rax, rax
mov rbp, rax
je 0x40d29e
mov rcx, qword [0x00418008]
call fcn.004081c0
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x40d29e
test byte [rsp + 0x48], 1
jne 0x40d2d3
lea rcx, [rsp + 0x34]
call fcn.0040a060
test eax, eax
je 0x40d2c0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004068a0
cmp dword [rsp + 0x34], 4
jb 0x40d2cd
bts edi, 0x15
jmp 0x40d307
bts edi, 0x12
jmp 0x40d307
mov rcx, qword [0x00417ff0]
cmp rcx, rsi
je 0x40d307
call fcn.004081c0
call rax
test rax, rax
mov rbx, rax
je 0x40d307
mov rcx, qword [0x00417ff8]
cmp rcx, rsi
je 0x40d307
call fcn.004081c0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00417fe8]
call fcn.004081c0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x14000ca90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x14000cb3c
movzx edx, cl
lea r8, [r8 + 1]
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
movzx ecx, byte [r8]
test cl, cl
jne 0x14000caa3
not eax
ret
Function at 0x14001a870
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp byte [rcx + 8], 0
mov r9, rcx
je 0x14001a8ab
xor ecx, ecx
cmp dword [r9 + 0x3d0], ecx
jle 0x14001a8a6
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
inc ecx
xor byte [rdx], al
lea rdx, [rdx + 1]
cmp ecx, dword [r9 + 0x3d0]
jl 0x14001a890
add rsp, 0x48
ret
mov rdx, qword [0x1400b00d0]
lea rcx, [rsp + 0x20]
call fcn.14001a7f0
lea rdx, [0x1400ad1b0]
lea rcx, [rsp + 0x20]
call fcn.1400460dc
int3
Function at 0x140027eb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0x977], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140027f79
cmp qword [rcx + 0x260], 0
je 0x140027f2e
mov qword [rsp + 0x40], rbx
call fcn.14001dde0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14001e0d0
mov rcx, qword [rdi + 0x1d0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
movzx edx, bl
mov rcx, rdi
call fcn.14001e0d0
mov rbx, qword [rsp + 0x40]
jmp 0x140027f79
mov ecx, esi
test edx, edx
je 0x140027f3e
sub ecx, 1
je 0x140027f3e
cmp ecx, 1
jne 0x140027f79
mov r9, qword [rdi + 0x1c8]
lea rax, [0x14008e9a0]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.14004d528
mov r9, qword [rdi + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.14004d528
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140028100
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 0x140028142
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x38
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
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 0x140028230
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x160]
call fcn.1400287a0
test eax, eax
je 0x140028288
mov dword [rbx], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x1400282f5
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [rbx], 0
cmp rdi, 0xffffffffffffffff
jne 0x1400282f2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x1400282c2
xor edi, edi
mov dword [rbx], 0x51
jmp 0x1400282f2
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, esi
call fcn.14003b8a0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140027f90
mov dword [rbp + 0xc14], esi
mov dword [rbx], 0x37
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140044950
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400287a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r9, r8d
lea rbx, [rdx + 0x1a8]
mov rax, r9
mov rbp, rcx
shl rax, 5
add rbx, rax
mov rax, qword [rdx + 0x2c8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14002888b
lea rax, [0x140028150]
cmp qword [rdx + r9*8 + 0x188], rax
jne 0x14002888b
cmp qword [rbx], 0
je 0x14002880b
test rdi, rdi
je 0x14002888b
mov rsi, qword [rdx + r9*8 + 0x160]
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor r9d, r9d
mov rcx, rsi
call fcn.140033600
cmp eax, 0xffffffff
je 0x14002888b
test al, 1
je 0x14002888b
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14002886a
mov eax, dword [rbp + 0x5f4]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [fcn.14004bbcc]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x14002885c
lea eax, [rcx + 0x1b]
jmp 0x14002888d
mov rdi, qword [rbx + 8]
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14002888b
add qword [rbx + 0x10], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140028ca5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14003b8a0
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x140028ceb
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.1400288b0
test al, al
jne 0x140028cf6
call fcn.140048834
mov ebx, dword [rax]
call fcn.140048834
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14003b8a0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140027f90
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140044950
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140029440
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400b01e0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400294a4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.14003cc20
test al, al
je 0x140029498
mov dword [0x1400b01e0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400b01e0], 1
jmp 0x1400294a9
cmp eax, 2
je 0x1400294fb
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400294da
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400294fb
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x14002a010
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0x983], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x14002a0d6
mov ecx, dword [rbx + 0x910]
mov dword [rsp + 0x58], 1
call fcn.14002a270
mov ecx, dword [rbx + 0x914]
imul edx, eax, 0x3e8
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x5c], edx
call fcn.14002a270
imul edx, eax, 0x3e8
lea r9d, [rsi + 0xc]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x60], edx
mov edx, 0x98000004
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140044950
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14002a100
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, rdx
mov dword [rsp + 0x50], 1
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x14002a520
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x14008ec70]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14002a54a
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, [0x14008ec90]
mov rcx, rbx
mov r14, rax
call fcn.14004ee88
test rax, rax
je 0x14002a5ad
mov rcx, rbx
test r14, r14
je 0x14002a597
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 0x14002a5e5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002a5e5
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 0x14002a6a8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14002a610
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.14004bbcc]
mov rdi, rax
test rax, rax
je 0x14002a69a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14002a69a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14002a640
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x14002a654
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 0x14002a670
mov rcx, rdi
test r14, r14
je 0x14002a691
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14002a697
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14004bbc4]
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 0x14002a710
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14002a776
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14002a759
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14002a753
shr ax, 8
cmp al, 2
je 0x14002a776
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140044950
add rsp, 0x1e8
ret
call fcn.14003d9a0
test eax, eax
jne 0x14002a7ef
lea rcx, str.iphlpapi.dll
call fcn.14002a520
mov qword [0x1400b01f0], rax
test rax, rax
je 0x14002a7bc
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400b01e8]
test rax, rax
cmovne rcx, rax
mov qword [0x1400b01e8], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14003cc20
test al, al
lea rcx, [0x1400b19c8]
setne byte [0x1400b19c0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140044950
add rsp, 0x1e8
ret

Function at 0x14002a890
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebp, byte [rcx]
mov rsi, rdx
mov rbx, rcx
test bpl, bpl
je 0x14002a8de
movzx ecx, byte [rsi]
test cl, cl
je 0x14002a8de
call fcn.14002a820
movzx ecx, bpl
movzx edi, al
call fcn.14002a820
cmp al, dil
jne 0x14002a903
movzx ebp, byte [rbx + 1]
inc rbx
inc rsi
test bpl, bpl
jne 0x14002a8b2
xor ecx, ecx
mov eax, ecx
cmp byte [rbx], al
sete al
cmp byte [rsi], cl
setne cl
xor eax, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x14002a8ee

Function at 0x14002df60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [rdx], 0
mov r9, r8
cmp dword [rcx + 4], 2
mov r8, rdx
jne 0x14002df81
mov rdx, qword [rcx + 0x20]
mov ecx, 2
add rdx, 4
jmp fcn.14003ca00
ret
Function at 0x1400337c0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400337ea
cmp dword [rdx], 0
jne 0x140033800
test rbx, rbx
je 0x1400337f5
cmp dword [r8], 0
jne 0x140033800
test rdi, rdi
je 0x14003384c
cmp dword [r9], 0
je 0x14003384c
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14003f8d0
test rdi, rdi
je 0x140033819
cmp dword [rdi], 0
jne 0x14003381b
xor edi, edi
test rbx, rbx
je 0x140033825
cmp dword [rbx], 0
jne 0x140033827
xor ebx, ebx
test rsi, rsi
je 0x140033831
cmp dword [rsi], 0
jne 0x140033833
xor esi, esi
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
jmp 0x140033856
mov rcx, qword [rsp + 0x60]
call fcn.140033770
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140034e90
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebp, r13d
lea r9, [rsp + 0x68]
mov r14d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r15d, eax
test eax, eax
jne 0x140034ff2
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140034fd7
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140034efe
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x140034ef0
inc rbx
jmp 0x140034f01
mov rbx, r13
cmp dword [rdi + 4], 2
jne 0x140034f91
cmp qword [rdi + 0x20], r13
je 0x140034f91
cmp qword [rdi + 0x10], 0x10
jb 0x140034f91
lea rcx, [rbx + 0x40]
call qword [fcn.14004bbcc]
mov rsi, rax
test rax, rax
je 0x140034fa0
mov ecx, dword [rdi]
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
mov rax, qword [rdi + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
test rbx, rbx
je 0x140034f7e
add rcx, 0x10
mov r8, rbx
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.1400458e0
test rbp, rbp
cmove rbp, rsi
test r14, r14
je 0x140034f8e
mov qword [r14 + 0x28], rsi
mov r14, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140034ee0
jmp 0x140034fa6
mov r15d, 8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x140034fc0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r15d, r15d
je 0x140034fd2
mov rcx, rbp
call fcn.140034e60
mov rbp, r13
jmp 0x140034fe6
test rbp, rbp
jne 0x140034fe6
mov r15d, 0x2af9
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r15d
mov qword [r12], rbp
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140038a00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.14004bbd4]
mov rdi, rax
test rax, rax
je 0x140038a7d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140038aa8
cmp ebx, esi
je 0x140038aa8
cmp ebx, 0x8000
ja 0x140038aa8
cmp ebx, esi
jb 0x140038aa3
mov edx, ebx
mov rcx, rdi
call qword [fcn.14004bbd4]
mov rdi, rax
test rax, rax
jne 0x140038a40
mov rcx, rbp
call qword [fcn.14004bbc4]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140038a88
mov rcx, rdi
jmp 0x140038a80
jmp 0x140038a00

Function at 0x140038ab0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.14004bbd4]
mov rdi, rax
test rax, rax
je 0x140038a7d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140038aa8
cmp ebx, esi
je 0x140038aa8
cmp ebx, 0x8000
ja 0x140038aa8
cmp ebx, esi
jb 0x140038aa3
mov edx, ebx
mov rcx, rdi
call qword [fcn.14004bbd4]
mov rdi, rax
test rax, rax
jne 0x140038a40
mov rcx, rbp
call qword [fcn.14004bbc4]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140038a88
mov rcx, rdi
jmp 0x140038a80
jmp 0x140038a00
Function at 0x14003ca00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x14003ca21
call fcn.140048834
mov dword [rax], 0x273f
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x14003ca40
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx + 3]
mov rbx, rdx
movzx edx, byte [rcx + 2]
mov rdi, r8
movzx r10d, byte [rcx + 1]
lea r8, str._d._d._d._d
movzx r9d, byte [rcx]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call fcn.140033a70
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14003caa4
test rax, rax
je 0x14003cae4
cmp rax, rdi
jae 0x14003cae4
lea rax, [rsp + 0x40]
mov r8, rbx
sub r8, rax
lea rcx, [rsp + 0x40]
nop word [rax + rax]
movzx edx, byte [rcx]
mov byte [r8 + rcx], dl
lea rcx, [rcx + 1]
test dl, dl
jne 0x14003cad0
mov rax, rbx
jmp 0x14003caf1
call fcn.140048834
mov dword [rax], 0x1c
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140044950
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret