joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009cbcc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14009cbfe
call fcn.1400822c4
mov dword [rax], socket
call fcn.14007f414
jmp 0x14009cd1d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14009cd1d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14009cd1d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14009cc2d
lock or dword [rcx + 0x14], 0x10
jmp 0x14009cd1d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14009cc41
call fcn.14009ee9c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14009a218
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140096c58
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14009cd0b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14009ccd6
mov rcx, rsi
call fcn.14009a218
cmp eax, edi
je 0x14009ccc1
mov rcx, rsi
call fcn.14009a218
cmp eax, 0xfffffffe
je 0x14009ccc1
mov rcx, rsi
call fcn.14009a218
movsxd rbx, eax
lea r14, [0x1400e1cf0]
mov rcx, rsi
sar rbx, 6
call fcn.14009a218
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14009ccc8
lea rdx, [0x1400dddb0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14009ccd6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14009ccfa
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14009ccfa
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14009ccfa
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14009cd20
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14009d65c
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.14008d3f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008d3f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14009d7ac
cmp rax, 0xffffffffffffffff
je 0x14009d7ac
xor edi, edi
test rbp, rbp
jle 0x14009d757
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009912c
mov rbx, rax
test rax, rax
jne 0x14009d6e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14009d74d
mov edx, 0x8000
mov ecx, r14d
call fcn.140094ce4
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.140097b9c
cmp eax, 0xffffffff
je 0x14009d72d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14009d6f4
mov edx, r15d
mov ecx, r14d
call fcn.140094ce4
jmp 0x14009d74d
cmp byte [rsi + 0x38], dil
je 0x14009d744
cmp dword [rsi + 0x34], 5
jne 0x14009d744
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14009d74d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400991a4
jmp 0x14009d7c0
jns 0x14009d7c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008d3f4
cmp rax, 0xffffffffffffffff
jne 0x14009d778
cmp byte [rsi + 0x30], dil
je 0x14009d7c0
mov edi, dword [rsi + 0x2c]
jmp 0x14009d7c0
mov ecx, r14d
call fcn.14009d54c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14009d7c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14009d7c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009d7b9
mov eax, dword [rsi + 0x2c]
jmp 0x14009d7be
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008d3f4
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 0x1400a18e0
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 0x1400a1910
xor eax, eax
jmp 0x1400a19d3
mov rbp, rbx
cmp word [rax], si
je 0x1400a1935
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a191c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a1918
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.14009c808
movsxd r14, eax
test eax, eax
jne 0x1400a1973
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a1909
mov rcx, r14
call fcn.14009a318
mov rdi, rax
test rax, rax
jne 0x1400a198c
xor ecx, ecx
call fcn.1400991a4
jmp 0x1400a1968
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.14009c808
test eax, eax
jne 0x1400a19bd
mov rcx, rdi
call fcn.1400991a4
jmp 0x1400a19c7
xor ecx, ecx
call fcn.1400991a4
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 0x1400a19f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a1a77
mov rsi, rbx
cmp word [rax], bp
je 0x1400a1a36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a1a20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a1a1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009a318
mov rdi, rax
test rax, rax
je 0x1400a1a64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007a730
mov rbp, rdi
xor ecx, ecx
call fcn.1400991a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a5030
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400a5050
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140082238
or eax, 0xffffffff
jmp 0x1400a5052
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400a7890
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140081d40
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a791a
cmp byte [rbp - 0x21], r15b
je 0x1400a7915
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a7950
call fcn.14009bd98
test eax, eax
jne 0x1400a793c
cmp byte [rbp - 0x21], r15b
je 0x1400a7934
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a7950
cmp byte [rbp - 0x21], r15b
je 0x1400a794d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140082660
test eax, eax
jne 0x1400a79f0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140081d40
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a798f
cmp byte [rbp - 0x21], r15b
je 0x1400a79c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a79c4
call fcn.14009bd98
test eax, eax
jne 0x1400a79b0
cmp byte [rbp - 0x21], r15b
je 0x1400a79a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a79c4
cmp byte [rbp - 0x21], r15b
je 0x1400a79c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140082660
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a79f0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a79f3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a7a01
mov rcx, rdi
call fcn.1400991a4
cmp byte [rbp + 0x3f], r15b
je 0x1400a7a10
mov rcx, qword [rbp + 0x27]
call fcn.1400991a4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002cf0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rdi, rcx
lea r9, [rbp + 0x98]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140085770]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x140002d68
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], sil
xor r8d, r8d
lea rdx, [0x1400a3ce3]
mov rcx, rdi
call fcn.140005140
jmp 0x140002efb
mov r8d, 0x100
mov rdx, qword [rbp + 0x98]
lea rcx, [rsp + 0x70]
call fcn.14005c770
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], sil
lea r8d, [rsi + 0x32]
lea rdx, str.Chimera80d224e452db816ad648448e0687d1efCore.dll
lea rcx, [rsp + 0x30]
call fcn.140005140
nop
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002dc0
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r8
cmp rbx, rax
ja 0x140002e75
lea rax, [rbx + r8]
mov qword [rsp + 0x40], rax
lea r14, [rsp + 0x30]
cmp rcx, 0x10
cmovae r14, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
add rax, rbx
cmp rax, r14
jbe 0x140002e31
lea rax, [r14 + r8]
lea rcx, [rsp + 0x70]
cmp rcx, rax
ja 0x140002e31
lea rax, [rsp + 0x70]
cmp r14, rax
ja 0x140002e24
mov r15, rsi
jmp 0x140002e34
lea rax, [rsp + 0x70]
mov r15, r14
sub r15, rax
jmp 0x140002e34
mov r15, rbx
lea rcx, [r14 + rbx]
inc r8
mov rdx, r14
call fcn.140053d50
mov r8, r15
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140053d50
lea rcx, [r14 + r15]
mov r8, rbx
sub r8, r15
lea rax, [r15 + rbx]
lea rdx, [rsp + 0x70]
add rdx, rax
call fcn.140053d50
lea rax, [rsp + 0x30]
jmp 0x140002e91
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140005bd0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140002ef4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ee5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f1b
call fcn.140051fd8
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
mov rax, rdi
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14005db00
int3
Function at 0x140013520
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 0x140013562
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
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 0x140013700
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 r14
push r15
sub rsp, 0x130
mov rax, qword [0x1400ae0c8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x218]
mov r14, qword [rcx + r8*8 + 0x1d0]
add rbx, rax
mov rax, qword [rcx + 0x3e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14001380a
lea rax, [0x1400135b0]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x14001380a
cmp qword [rbx], 0
je 0x140013791
test rdi, rdi
je 0x14001380a
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.1400202e0
cmp eax, 0xffffffff
je 0x14001380a
test al, 1
je 0x14001380a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400137e9
mov eax, dword [rbp + 0x6ec]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [section..data]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140013844
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14001380a
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x140013883
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140013853
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x140013883
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x140013886
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140023a10
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140013310
mov dword [rbp + 0xd94], edi
mov dword [rsi], gethostname
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400525a0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x268], 0
je 0x140013dbd
call fcn.140011270
test eax, eax
je 0x140013de9
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1d0]
cmp rcx, 0xffffffffffffffff
je 0x140013de9
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140014850
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400af3a0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400148b4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.14003ef00
test al, al
je 0x1400148a8
mov dword [0x1400af3a0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400af3a0], 1
jmp 0x1400148b9
cmp eax, 2
je 0x14001490b
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 0x1400148ea
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14001490b
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 0x1400170d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8, rdx
movzx edx, byte [rcx]
test dl, dl
je 0x140017105
lea r9, [0x140086d80]
movzx eax, byte [r8]
test al, al
je 0x140017105
movzx eax, byte [rax + r9]
movzx edx, dl
cmp byte [rdx + r9], al
jne 0x140017117
movzx edx, byte [rcx + 1]
inc rcx
inc r8
test dl, dl
jne 0x1400170e1
xor edx, edx
mov eax, edx
cmp byte [rcx], al
sete al
cmp byte [r8], dl
setne dl
xor eax, edx
ret
xor eax, eax
ret
Function at 0x140024e00
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140019ae0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140022fc0
mov rcx, rdi
mov rsi, rax
call fcn.140022fc0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140024eb0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140019ae0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140019b70
cmp rax, 0x3e8
ja 0x140024ee1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140024e60
test rsi, rsi
je 0x140024ebd
mov rcx, rsi
call fcn.14005cecc
test rbx, rbx
je 0x140024eca
mov rcx, rbx
call fcn.14005cecc
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x140024eee
mov rcx, rsi
call fcn.14005cecc
test rbx, rbx
je 0x140024efb
mov rcx, rbx
call fcn.14005cecc
mov eax, 1
jmp 0x140024ecc
Function at 0x140025040
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400ae0c8]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
mov esi, 2
mov dword [rbp - 0x3c], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140025092
jmp 0x14002525b
mov qword [rsp + 0x90], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x38], si
mov qword [rbp - 0x30], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r14w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140025232
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140025232
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140025232
cmp dword [rbp - 0x40], 0x10
jl 0x140025232
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x140025232
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140025232
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140025232
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.14003eed0
test eax, eax
js 0x140025232
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.14001ff00
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140025232
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140025232
cmp dword [rbp - 0x40], 0x10
jl 0x140025232
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x140025232
cmp dword [rbp - 0x40], 0x10
jl 0x140025232
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x140025232
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x140025232
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x140025232
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x140025253
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400525a0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400252b0
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14002544e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x14002542e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14002531e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140025310
inc rbx
jmp 0x140025320
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14002532d
lea ebp, [rax + 0xe]
jmp 0x140025339
cmp eax, 0x17
jne 0x1400253d1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x1400253d1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400253d1
cmp rax, rbp
jb 0x1400253d1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov r14, rax
test rax, rax
je 0x1400253e0
mov ecx, dword [rsi]
mov r8, rbp
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
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.140053d50
test rbx, rbx
je 0x1400253be
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.140053d50
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x1400253ce
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140025300
jmp 0x1400253e6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x140025400
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140025429
test rdi, rdi
je 0x140025425
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.14005cecc]
mov rdi, rbx
test rbx, rbx
jne 0x140025410
xor edi, edi
jmp 0x14002543d
test rdi, rdi
jne 0x14002543d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret