joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401440e0
Capabilities:
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r15, rdx
mov rbx, rcx
mov dword [rbp - 0x30], 0
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x14014412e
cmp eax, 0xffffffff
je 0x14014412e
lea r14, [0x140592ed8]
mov qword [r15], r14
jmp 0x1401442e7
lea rdx, [rbp + 0x40]
mov rcx, rbx
call fcn.140144ff0
nop
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x40]
cmp rcx, rdx
je 0x140144283
call fcn.140017f20
test eax, eax
je 0x140144283
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.1401440e0
nop
lea r14, [0x140592ed8]
lea rsi, [0x140592ec8]
mov edi, 0xffffffff
mov rax, qword [rbp + 0x30]
cmp byte [rax], 0
jne 0x140144276
lea r8, [0x1404fa3cc]
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.140132820
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140016140
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1401441c5
mov qword [rbp + 0x48], r14
lea rax, [rbp + 0x48]
lea ecx, [rdi + 3]
mov rbx, r14
jmp 0x1401441d6
lea rcx, [rbp - 0x28]
call fcn.14011a340
mov ecx, 4
mov rbx, qword [rax]
mov qword [rax], r14
or ecx, 8
mov dword [rbp - 0x30], ecx
test cl, 4
je 0x14014420f
and ecx, 0xfffffffb
mov dword [rbp - 0x30], ecx
mov rdx, qword [rbp - 0x28]
add rdx, 0xfffffffffffffff0
cmp rdx, rsi
je 0x14014420f
mov eax, edi
lock xadd dword [rdx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014420c
mov rcx, rdx
call fcn.1400c9d7c
mov ecx, dword [rbp - 0x30]
test cl, 2
je 0x140144233
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140144233
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140144233
call fcn.1400c9d7c
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x30], rbx
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140144257
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140144257
call fcn.1400c9d7c
nop
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140144276
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140144276
call fcn.1400c9d7c
mov rax, qword [rbp + 0x30]
mov qword [r15], rax
mov qword [rbp + 0x30], r14
jmp 0x1401442ca
lea rdx, str.Cannot_create_parent_directory
lea rcx, [rbp + 0x48]
call fcn.140018a20
lea rdx, [rbp + 0x48]
mov rcx, r15
call fcn.14013e050
mov rcx, qword [rbp + 0x48]
add rcx, 0xfffffffffffffff0
lea rsi, [0x140592ec8]
mov edi, 0xffffffff
cmp rcx, rsi
je 0x1401442ca
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x1401442ca
call fcn.1400c9d7c
nop
mov rcx, qword [rbp + 0x40]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1401442e7
lock xadd dword [rcx], edi
dec edi
cmp edi, 0xffffffff
jne 0x1401442e7
call fcn.1400c9d7c
mov rax, r15
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140144310
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx]
cmp byte [rax], 0
je 0x140144358
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x140144358
lea rax, [0x140592ed8]
mov qword [rdi], rax
jmp 0x14014449c
lea rdx, [rsp + 0xb0]
mov rcx, rsi
call fcn.140144ff0
nop
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0xb0]
cmp rcx, rdx
je 0x140144428
call fcn.140017f20
test eax, eax
je 0x140144428
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xb0]
call fcn.1401440e0
nop
lea rbp, [0x140592ec8]
mov ebx, 0xffffffff
mov rax, qword [rsp + 0xa0]
cmp byte [rax], 0
jne 0x140144414
lea r8d, [rbx + 9]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140141f10
mov rax, qword [rsp + 0x50]
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x1401443e0
lock inc dword [rcx]
mov rax, qword [rsp + 0x50]
xchg qword [rsp + 0xa0], rax
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x140144402
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x140144402
call fcn.1400c9d7c
lea rcx, [rsp + 0x30]
call fcn.140141e40
mov rax, qword [rsp + 0xa0]
mov qword [rdi], rax
lea rax, [0x140592ed8]
mov qword [rsp + 0xa0], rax
jmp 0x14014447b
lea rdx, [0x1404f91f8]
lea rcx, [rsp + 0xb8]
call fcn.140018a20
lea rdx, [rsp + 0xb8]
mov rcx, rdi
call fcn.14013e050
mov rcx, qword [rsp + 0xb8]
add rcx, 0xfffffffffffffff0
lea rbp, [0x140592ec8]
mov ebx, 0xffffffff
cmp rcx, rbp
je 0x14014447b
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x14014447b
call fcn.1400c9d7c
nop
mov rcx, qword [rsp + 0xb0]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x14014449c
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x14014449c
call fcn.1400c9d7c
mov rax, rdi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140145600
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov rdx, qword [rdx]
cmp qword [rcx], rdx
je 0x140145691
mov rcx, qword [rcx]
call fcn.140017f20
test eax, eax
je 0x140145691
mov rax, qword [rdi]
cmp byte [rax], 0
je 0x140145684
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x140145684
mov rcx, rbx
call fcn.140119e60
test al, al
je 0x140145684
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140016140
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140016140
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140145691
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401456b0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rcx]
cmp qword [rdx], rsi
je 0x140145775
mov rdx, rsi
mov rcx, qword [rbx]
call fcn.140019fc0
test eax, eax
je 0x140145775
cmp byte [rsi], 0
je 0x140145763
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x140145763
mov rdx, qword [rbx]
cmp qword [rdi], rdx
je 0x140145725
mov rcx, qword [rdi]
call fcn.140017f20
test eax, eax
je 0x140145725
mov rcx, rbx
call fcn.140119e60
test al, al
je 0x140145763
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140016140
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140016140
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140145790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov byte [rsp + 0x10], dl
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov rbp, rcx
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov dil, 1
mov rdx, rcx
lea rcx, [rsp + 0x80]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x1401458b8
cmp eax, 0xffffffff
je 0x1401458b8
mov rdx, rbp
lea rcx, [rsp + 0x88]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x1401457fc
bt eax, 0xa
jb 0x1401458b8
lea rdx, [0x1404f91f4]
lea rcx, [rsp + 0x70]
call fcn.140018a20
nop
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x78], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 3
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.140143cc0
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff0
lea rax, [0x140592ec8]
cmp rcx, rax
je 0x140145868
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140145868
call fcn.1400c9d7c
movsxd rax, dword [rsp + 0x3c]
mov rbx, qword [rsp + 0x30]
lea rsi, [rbx + rax*8]
cmp rbx, rsi
je 0x1401458a4
nop dword [rax + rax]
xor edx, edx
mov rcx, rbx
call fcn.140145790
test al, al
je 0x140145898
test dil, dil
je 0x140145898
mov dil, 1
jmp 0x14014589b
xor dil, dil
add rbx, 8
cmp rbx, rsi
jne 0x140145880
lea rcx, [rsp + 0x30]
call fcn.140003220
mov rcx, qword [rsp + 0x30]
call fcn.1400d4bdc
mov rcx, rbp
call fcn.140119e60
test al, al
je 0x1401458d4
test dil, dil
je 0x1401458d4
mov al, 1
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140149630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rbx, rcx
call fcn.140149f80
mov qword [rbp - 1], rax
test rax, rax
je 0x140149663
cmp byte [rax + 8], 0
jne 0x140149663
xor bl, bl
jmp 0x1401497c0
lea rdx, [rbx + 0xe0]
lea rcx, [rbp + 7]
call fcn.140141680
nop
mov r8d, 0x4000
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x59]
call fcn.140141f10
nop
mov rax, qword [rbp - 0x39]
cmp byte [rax], 0
jne 0x1401497ab
mov rax, qword [rbp - 0x59]
mov r8d, 4
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x59]
cmp dword [rbx + 0x110], 1
jne 0x1401497e8
mov dword [rbp + 0x6f], 0x50525043
call qword [rax + 0x20]
lea r14, [0x140592ec8]
mov edi, 0xffffffff
mov r8, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x41]
test r8, r8
je 0x14014973f
mov dword [rbp + 0x77], 0
test rcx, rcx
je 0x140149737
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x77]
mov rdx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140149733
lea rcx, [rbp + 0x7f]
call fcn.14011a340
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rax]
mov qword [rbp - 0x39], rdx
mov qword [rax], rcx
mov rcx, qword [rbp + 0x7f]
add rcx, 0xfffffffffffffff0
cmp rcx, r14
je 0x140149733
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x140149733
call fcn.1400c9d7c
mov rcx, qword [rbp - 0x41]
mov qword [rbp - 0x21], 0
test rcx, rcx
je 0x140149782
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x140149782
lea rcx, [rbp - 9]
call fcn.14011a340
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rax]
mov qword [rbp - 0x39], rdx
mov qword [rax], rcx
mov rcx, qword [rbp - 9]
add rcx, 0xfffffffffffffff0
cmp rcx, r14
je 0x140149782
lock xadd dword [rcx], edi
dec edi
cmp edi, 0xffffffff
jne 0x140149782
call fcn.1400c9d7c
lea rdx, [rbp - 0x59]
lea rcx, [rbp + 0x17]
call fcn.14011b220
nop
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.140149500
nop
lea rcx, [rbp + 0x17]
test al, al
jne 0x1401497e0
call fcn.14011b070
nop
lea rcx, [rbp - 0x59]
call fcn.140141e40
xor bl, bl
lea rcx, [rbp + 7]
call fcn.1401415b0
nop
lea rcx, [rbp - 1]
call fcn.14001ce50
movzx eax, bl
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret
call fcn.14011b070
nop
jmp 0x140149802
mov dword [rbp + 0x6f], 0x504f5250
call qword [rax + 0x20]
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.140149500
test al, al
je 0x1401497ab
lea rcx, [rbp - 0x59]
call fcn.140141e40
lea rcx, [rbp + 7]
call fcn.1401414a0
test al, al
je 0x1401497b4
mov byte [rbx + 0x121], 0
mov bl, 1
jmp 0x1401497b6
Function at 0x140149d70
Capabilities:
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x38
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x70], ebx
lea r14, [rcx + 0x38]
mov qword [rsp + 0x20], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rdi + 0xb8]
call fcn.1401521c0
cmp byte [rdi + 0x10a], bl
jne 0x140149e46
lea rdx, [0x140592ed8]
mov qword [rsp + 0x88], rdx
mov ebx, 1
mov dword [rsp + 0x70], ebx
cmp qword [rdi + 0xe0], rdx
je 0x140149e46
mov rcx, qword [rdi + 0xe0]
call fcn.140017f20
test eax, eax
je 0x140149e46
lea rdx, [rdi + 0xe0]
lea rcx, [rsp + 0x28]
call fcn.140016140
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
test al, 0x10
je 0x140149e06
cmp eax, 0xffffffff
jne 0x140149e46
lea rdx, [rsp + 0x80]
lea rcx, [rdi + 0xe0]
call fcn.140144ff0
nop
mov dword [rsp + 0x70], 3
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.1401440e0
mov ebx, 7
mov dword [rsp + 0x70], ebx
mov rax, qword [rax]
cmp byte [rax], 0
jne 0x140149e46
xor bpl, bpl
jmp 0x140149e49
mov bpl, 1
mov esi, 0xffffffff
lea r15, [0x140592ec8]
test bl, 4
je 0x140149e84
and ebx, 0xfffffffb
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x140149e84
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, esi
jne 0x140149e80
call fcn.1400c9d7c
mov ebx, dword [rsp + 0x70]
test bl, 2
je 0x140149eb7
and ebx, 0xfffffffd
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x140149eb7
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140149eb3
call fcn.1400c9d7c
mov ebx, dword [rsp + 0x70]
test bl, 1
je 0x140149edd
mov rcx, qword [rsp + 0x88]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x140149edd
lock xadd dword [rcx], esi
dec esi
cmp esi, 0xffffffff
jne 0x140149edd
call fcn.1400c9d7c
test bpl, bpl
je 0x140149ee6
xor bl, bl
jmp 0x140149f01
mov rcx, rdi
cmp dword [rdi + 0x110], 2
jne 0x140149ef9
call fcn.140149830
jmp 0x140149efe
call fcn.140149630
movzx ebx, al
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14014dd90
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, rcx
movzx eax, byte [rcx + 0x1ed]
nop
test al, al
jne 0x14014df7a
lea r15, [0x140592ed8]
lea r12, [0x140592ec8]
nop dword [rax]
mov eax, dword [rdi + 0x270]
nop
test eax, eax
js 0x14014df62
mov r9d, 0xc8
lea rdx, [rdi + 0x298]
lea rcx, [rdi + 0x270]
call fcn.14013c150
cmp eax, 1
jne 0x14014df62
mov eax, dword [rdi + 0x270]
nop
test eax, eax
js 0x14014df62
cmp byte [rdi + 0x274], 0
je 0x14014df62
mov byte [rsp + 0x20], 1
movsxd rax, dword [rdi + 0x270]
nop
mov rbp, rax
mov dword [rsp + 0x24], 1
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
lea rcx, [rdi + 0x298]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x14014de9d
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
lea rcx, [rdi + 0x298]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebp, ebp
jle 0x14014de9d
movzx ecx, byte [rsp + 0x20]
nop
mov ebx, ebp
cmp ebx, 0xa
jle 0x14014df62
movsxd rsi, ebx
cmp byte [rsp + 0x40], 0
je 0x14014dee8
lea rbx, [rsi + 4]
and rbx, 0xfffffffffffffffc
lea rcx, [rbx + 0x17]
call fcn.1400ca4ec
xor ecx, ecx
xchg dword [rax], ecx
mov qword [rax + 8], rbx
lea rbx, [rax + 0x10]
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140279770
mov byte [rbx + rsi], 0
mov qword [rsp + 0x28], rbx
jmp 0x14014def0
mov qword [rsp + 0x28], r15
mov rbx, r15
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140129180
nop
lea rcx, [rbx - 0x10]
cmp rcx, r12
je 0x14014df1e
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14014df1e
call fcn.1400c9d7c
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14014df48
mov rdx, qword [rdi + 0x2c8]
mov rcx, qword [rbx + 0x18]
call fcn.140017f20
test eax, eax
jne 0x14014df48
mov rdx, rbx
mov rcx, rdi
call fcn.14014da40
nop
test rbx, rbx
je 0x14014df62
mov rcx, rbx
call fcn.140124330
mov edx, 0x20
mov rcx, rbx
call fcn.1400c9d7c
mov rcx, rdi
call fcn.14014d5c0
movzx eax, byte [rdi + 0x1ed]
nop
test al, al
je 0x14014dde0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400c9d20
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14014f350
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov rbp, rcx
mov eax, dword [rcx + 0x194]
mov dword [rsp + 0x70], eax
mov eax, dword [rdx + 8]
mov dword [rsp + 0x74], eax
mov rbx, qword [rdx + 8]
add rbx, 8
mov esi, 0
mov edi, esi
mov qword [rsp + 0x20], rsi
je 0x14014f3b6
mov qword [rsp + 0x28], rbx
xor ecx, ecx
call fcn.1400d4bdc
mov rcx, rbx
call fcn.1400de56c
mov rdi, rax
test rax, rax
je 0x14014f4ae
mov qword [rsp + 0x20], rax
jmp 0x14014f3be
mov rbx, rsi
mov qword [rsp + 0x28], rbx
mov r8d, 8
cmp rbx, r8
jae 0x14014f3d1
mov r8, rbx
test rbx, rbx
je 0x14014f3de
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140279770
mov r8, qword [r14 + 8]
lea rax, [r8 + 8]
cmp rax, rbx
jbe 0x14014f3ef
lea r8, [rbx - 8]
test r8, r8
je 0x14014f400
lea rcx, [rdi + 8]
mov rdx, qword [r14]
call fcn.140279770
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x70]
call fcn.14000e260
nop
mov rcx, qword [rbp + 0x180]
test rcx, rcx
je 0x14014f45e
movzx eax, byte [rcx + 0x21]
nop
test al, al
jne 0x14014f44d
movzx eax, byte [rcx + 0x20]
nop
test al, al
je 0x14014f44d
movsxd rcx, dword [rcx + 0x1c]
nop
xor r9d, r9d
mov rbx, qword [rsp + 0x28]
mov r8d, ebx
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14014f47c
mov esi, 0xffffffff
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
jmp 0x14014f47e
mov rcx, qword [rbp + 0x188]
test rcx, rcx
je 0x14014f47e
mov r9d, dword [rbp + 0x198]
mov r8d, ebx
mov rdx, rdi
call fcn.140118050
mov esi, eax
mov rcx, qword [rsp + 0x70]
call fcn.14012def0
cmp esi, ebx
sete bl
mov rcx, rdi
call fcn.1400d4bdc
movzx eax, bl
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x30]
call fcn.14000d420
lea rdx, [0x14058ef28]
lea rcx, [rsp + 0x30]
call fcn.1400cc788
int3

Function at 0x140151b40
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r9, [0x1404fa918]
lea r8, [0x1404fa920]
lea rcx, [rsp + 0x50]
call fcn.140021db0
mov esi, 0xdc00
mov ebp, 0xdfff
mov r14d, 0xd800
mov rbx, qword [rax]
nop
movzx ecx, word [rbx]
lea eax, [rcx - 0xd800]
cmp eax, 0x7ff
ja 0x140151bb2
movzx edx, word [rbx + 2]
cmp dx, si
jb 0x140151bb2
mov ecx, edx
shl eax, 0xa
sub ecx, esi
or ecx, eax
call fcn.1400df178
test eax, eax
je 0x140151bd8
movzx eax, word [rbx]
add rbx, 2
cmp ax, r14w
jb 0x140151b90
cmp ax, bp
ja 0x140151b90
cmp word [rbx], si
jb 0x140151b90
add rbx, 2
jmp 0x140151b90
mov rdx, rbx
mov rcx, rdi
call fcn.140018d60
mov rbx, qword [rsp + 0x58]
mov rax, rdi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140164e30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub rsp, 0x28
mov eax, dword [rcx + 0x11c]
inc eax
mov dword [rcx + 0x11c], eax
cmp eax, dword [rcx + 0x108]
jb 0x140164fbe
cmp byte [rcx + 0x16c], 0
je 0x140164faa
test byte [rcx + 0x54], 2
mov qword [rsp + 0x30], rbx
mov dword [rcx + 0x11c], 0
je 0x140164e89
inc byte [rcx + 0x16d]
lea r9, [rcx + 0x100]
movzx ebx, byte [rcx + 0x16d]
jmp 0x140164f3e
mov qword [rsp + 0x38], rsi
lea rsi, [0x140000000]
mov qword [rsp + 0x20], rdi
nop word [rax + rax]
movzx ebx, byte [rcx + 0x16d]
lea r9, [rcx + 0x100]
inc bl
mov byte [rcx + 0x16d], bl
cmp bl, 7
jae 0x140164f34
movzx r11d, bl
movzx r8d, byte [r11 + rsi + 0x50c5e8]
movzx eax, byte [r11 + rsi + 0x50c740]
mov edx, r8d
movzx r9d, byte [r11 + rsi + 0x50ce7c]
sub edx, eax
mov eax, dword [rcx + 0x100]
dec eax
add eax, edx
xor edx, edx
div r8d
movzx edx, byte [r11 + rsi + 0x50d1c0]
mov r8d, r9d
mov r10d, eax
mov dword [rcx + 0x10c], eax
mov eax, dword [rcx + 0x104]
sub r8d, edx
dec eax
xor edx, edx
add eax, r8d
div r9d
mov dword [rcx + 0x108], eax
test r10d, r10d
je 0x140164ea0
lea r9, [rcx + 0x100]
test eax, eax
je 0x140164ea0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x20]
cmp bl, 7
mov rbx, qword [rsp + 0x30]
jae 0x140164faa
mov r10, qword [rcx + 0x128]
test r10, r10
je 0x140164fbe
movzx eax, byte [rcx + 0x171]
movzx edx, byte [rcx + 0x174]
mov r8d, eax
mov ecx, dword [r9]
imul eax, edx
imul r8, rdx
cmp eax, 8
jb 0x140164f8d
shr r8, 3
xor edx, edx
imul r8, rcx
mov rcx, r10
inc r8
add rsp, 0x28
jmp fcn.140279e10
imul r8, rcx
xor edx, edx
mov rcx, r10
add r8, 7
shr r8, 3
inc r8
add rsp, 0x28
jmp fcn.140279e10
mov r9d, 4
xor r8d, r8d
xor edx, edx
add rsp, 0x28
jmp fcn.140167ad0
add rsp, 0x28
ret
Function at 0x140183280
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x64]
mov r8d, 0x2fe
mov rbx, qword [rcx + 0x250]
cmp r13d, 1
mov edx, 1
mov qword [rsp + 0x68], rbx
sete al
mov rdi, rcx
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov r9d, dword [rcx + 0x7c]
mov r10, qword [rax + 0x10]
mov eax, 0x100
cmovne r8d, eax
call r10
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x140183401
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
nop word [rax + rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x14018331d
mov rax, qword [rbx + 0x30]
add qword [r14 + rax], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x140183377
imul ecx, r8d, 0x1fe
add ecx, 0xfe
add ecx, esi
nop word [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x140183360
movzx eax, r8b
inc r10d
movzx ecx, bpl
imul ecx, eax
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, 0xff
jle 0x140183342
cmp r13d, 1
jne 0x1401833d3
mov ecx, r13d
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x1401833b0
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x140183300
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x140193040
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor ebp, ebp
lea rsi, [rcx + 0x98]
cmp dword [rcx + 0x24], 0xcc
mov rbx, rcx
je 0x14019307c
mov rax, qword [rcx + 0x200]
call qword [rax]
mov dword [rsi], ebp
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x200]
mov qword [rsp + 0x30], rdi
cmp byte [rax + 0x10], bpl
je 0x140193100
nop
mov eax, dword [rsi]
cmp eax, dword [rbx + 0x78]
jae 0x1401930d8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401930b6
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov rax, qword [rbx + 0x208]
xor r9d, r9d
mov edi, dword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rsi]
cmp eax, edi
je 0x14019312e
cmp eax, dword [rbx + 0x78]
jb 0x140193097
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax]
mov dword [rsi], ebp
mov rax, qword [rbx + 0x200]
cmp byte [rax + 0x10], bpl
jne 0x140193090
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor al, al
jmp 0x140193113