joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002da20
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0x80
mov rax, qword [0x14008a698]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [0x14008baf0], 0
mov ebp, ecx
je 0x14002da4a
mov al, 1
jmp 0x14002dc54
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x78], rdi
call fcn.1400279a0
lea rdx, [rsp + 0x30]
mov rcx, qword [rax]
mov r8, qword [rcx + 0x58]
mov rcx, rax
call r8
mov rax, qword [rsp + 0x30]
mov rsi, 0xffffffffffffffff
mov edi, dword [rax + 0xc]
sub edi, dword [rax + 8]
jne 0x14002da92
xor bpl, bpl
jmp 0x14002dbdc
mov qword [rsp + 0x70], r14
call fcn.1400279a0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xd0]
xor r14d, r14d
test al, al
jne 0x14002dafa
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [0x14008bde0], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008bde8], rax
test rax, rax
je 0x14002dafa
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14002d970]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd rcx, edi
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.14005809c
mov qword [0x14008bdd8], rax
test edi, edi
jle 0x14002dbc8
mov rbx, r14
mov qword [rsp + 0x38], r14
call fcn.1400279a0
mov rcx, qword [rax]
mov r9, qword [rcx + 0x78]
mov rcx, qword [rsp + 0x30]
movsxd rdx, dword [rcx + 8]
add rcx, 0x10
add rdx, rbx
lea r8, [rcx + rdx*8]
mov rcx, rax
lea rdx, [rsp + 0x58]
call r9
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_struct__GUID___cdecl_QUuid::operator_struct__GUID_void____ptr64]
lea r8, [rsp + 0x38]
lea rdx, [0x140069078]
lea rcx, [rsp + 0x48]
call fcn.1400151a0
test eax, eax
js 0x14002dbab
mov rax, qword [0x14008bdd8]
cmp ebp, 1
mov rdx, qword [rsp + 0x38]
mov r9d, r14d
sete r9b
mov r8d, 4
lea rcx, [rax + rbx*4]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002dbbb
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
inc rbx
sub rdi, 1
jne 0x14002db23
mov rax, qword [rsp + 0x30]
mov bpl, 1
mov r14, qword [rsp + 0x70]
mov byte [0x14008baf0], 1
mov ecx, dword [rax]
test ecx, ecx
je 0x14002dbf4
cmp ecx, esi
je 0x14002dc3b
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], esi
cmp esi, 1
jne 0x14002dc3b
mov rsi, qword [rsp + 0x30]
movsxd rdi, dword [rsi + 8]
movsxd rbx, dword [rsi + 0xc]
add rdi, 2
add rbx, 2
lea rdi, [rsi + rdi*8]
lea rbx, [rsi + rbx*8]
cmp rbx, rdi
je 0x14002dc32
nop word [rax + rax]
sub rbx, 8
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
cmp rbx, rdi
jne 0x14002dc20
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data____ptr64_]
mov rdi, qword [rsp + 0x78]
movzx eax, bpl
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140057920
add rsp, 0x80
pop rbp
ret
Function at 0x1400513c0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
mov edi, r8d
sub edx, 0x100
je 0x1400513f4
sub edx, 4
je 0x140051460
cmp edx, 1
jne 0x1400513ec
cmp r8d, 0x12
sete al
add rsp, 0x20
pop rdi
ret
xor al, al
add rsp, 0x20
pop rdi
ret
cmp edi, 9
je 0x140051460
cmp edi, 0x2e
je 0x140051460
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 1
xor ebx, ebx
test ax, ax
cmovs ebx, ecx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14005142e
or ebx, 2
mov ecx, SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140051441
or ebx, 4
test ebx, ebx
je 0x140051452
xor ebx, ebx
lea eax, [rdi - 0x25]
cmp eax, 3
seta bl
test ebx, ebx
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400046a0
Capabilities:
Execute command
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x80], rcx
lea r8, [0x14009d1e0]
lea rdx, str._api2_launcher_delete_session
lea rcx, [rsp + 0x60]
call fcn.1400069b0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140020df0
lea rcx, [rsp + 0x40]
call fcn.140004b50
mov r8, rbx
lea rdx, str._ERROR_
lea rcx, [rsp + 0x88]
call fcn.1400069b0
nop
cmp edi, 0xffffffff
je 0x140004780
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140006550
nop
mov r8, rax
lea rdx, str.__code:_0x
lea rcx, [rsp + 0x60]
call fcn.140006030
nop
lea r8, [0x14008cef4]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140006820
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.140006160
nop
lea rcx, [rsp + 0x40]
call fcn.140004b50
nop
lea rcx, [rsp + 0x60]
call fcn.140004b50
nop
lea rcx, [rsp + 0x20]
call fcn.140004b50
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.140005d90
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400049f0
nop
mov rcx, rax
call fcn.1400047f0
mov rdx, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004900
lea rdx, [0x1400049b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.140004690
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140015100
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x84], xmm0
movups xmmword [r11 - 0x74], xmm0
movups xmmword [r11 - 0x64], xmm0
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
mov dword [r11 - 0x24], eax
mov dword [rsp + 0x80], WSASetLastError
movups xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x14008f250]
movdqu xmmword [rsp + 0x68], xmm1
mov byte [rsp + 0x58], al
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x140015189
mov rdx, qword [rcx]
mov r8, qword [rcx + 0x10]
lea rcx, [rsp + 0x58]
call fcn.1400067a0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rdx, qword [rsp + 0x58]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140015222
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001521d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001521d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007a988
movdqa xmm0, xmmword [0x14008f250]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001526b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140015266
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400152a3
mov rcx, r8
call fcn.14007a988
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
movzx eax, dil
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14007a6c0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140015ee0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, Ordinal_301
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
xor esi, esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140015f8f
nop word [rax + rax]
lea r8, [rsp + 0x4c]
mov rcx, rdi
sub r8, rdi
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140015f73
inc rcx
test eax, eax
jne 0x140015f60
test edx, edx
je 0x140015f8b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140015f50
jmp 0x140015f8f
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007a6c0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140015fc0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
mov eax, 0x2150
call fcn.14007b020
sub rsp, rax
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x2140], rax
mov rbp, rcx
lea r14, str.client.dll
xor esi, esi
lea r15, [0x14009d178]
nop word [rax + rax]
lea r9, [rsp + 0x20]
mov r8d, 0x2000
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14001609f
mov eax, dword [rsp + 0x20]
xor ebx, ebx
test rax, 0xfffffffffffffff8
jbe 0x14001609f
lea rdi, [rsp + 0x30]
mov rdx, qword [rdi]
lea r8, [rsp + 0x2030]
mov r9d, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x140016089
mov rax, qword [r14]
lea r8, [rsp + 0x2030]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140016083
inc rax
test ecx, ecx
jne 0x140016070
test edx, edx
jne 0x140016089
inc esi
mov ecx, dword [rsp + 0x20]
inc ebx
shr rcx, 3
add rdi, 8
movsxd rax, ebx
cmp rax, rcx
jb 0x140016040
add r14, 8
cmp r14, r15
jl 0x140016010
cmp esi, 8
sete al
mov rcx, qword [rsp + 0x2140]
xor rcx, rsp
call fcn.14007a6c0
lea r11, [rsp + 0x2150]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14001af20
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001afe5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001afe5
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001affe
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14001afd5
cmp byte [rcx], 0x5c
jne 0x14001afce
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14001afce
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001afbc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14001afcb
test r8b, 0x10
jne 0x14001afce
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14001afce
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140017010
test edi, edi
jne 0x14001af40
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140017000
int3

Function at 0x14001df00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14001df34
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14001df20
ret

Function at 0x14001f7a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14001f7c8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001f7ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001f7f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001f849
test ecx, ecx
jle 0x14001f829
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001f849
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001f849
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14001f870
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001f892
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14001f8a8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001f8c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001f8c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001f902
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001f99e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001f93d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001f97e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001f99e
cmp rbx, rax
ja 0x14001f950
test rbx, rbx
je 0x14001f99e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14001fe00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001fe2d
xor eax, eax
jmp 0x14001ff99
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001fe67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001fe67
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14001ff99
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001ff8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001feaa
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001fed5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001ff91
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001ff44
sub eax, 1
je 0x14001ff44
cmp eax, 2
jne 0x14001ff8c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001ff91
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001ff72
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001ff8c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001ff91
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007a6c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140020150
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140020223
cmp byte [rcx + 0x71], 0
je 0x140020223
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14002021f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400201e4
sub eax, 1
je 0x1400201e8
cmp eax, 2
jne 0x14002021f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007a6c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140020216
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14002021f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400201cc
xor al, al
jmp 0x1400201cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007a6c0
add rsp, 0x60
pop rbx
ret
Function at 0x14003ef90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x700], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14003efee
mov dl, 1
call fcn.14002f930
mov rax, qword [rdi + 0x658]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14002f930
mov eax, ebx
jmp 0x14003f032
cmp ebx, 2
ja 0x14003f030
mov r9, qword [rdi + 0x650]
lea rdx, [0x140081298]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x650]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14003f050
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf66], 0
mov rdi, rcx
jne 0x14003f093
cmp qword [rcx + 0x660], 0
je 0x14003f170
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.14004f370
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14003f0c1
mov rcx, qword [rdi + 0x660]
test rcx, rcx
je 0x14003f108
cmp byte [rdi + 0x1693], 0
jne 0x14003f108
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14003f0f0
mov byte [rdi + 0x1693], 1
cmp byte [rdi + 0xf66], 0
je 0x14003f168
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x14003f1c3
cmp qword [rdi + 0x700], 0
mov byte [rsp + rbx + 0x30], 0
je 0x14003f189
mov dl, 1
mov rcx, rdi
call fcn.14002f930
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.14002f930
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007a6c0
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x650]
lea rcx, [0x140081298]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14003f168
call fcn.14007ab78
int3
Function at 0x14003f1d0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14003f336
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf66], 0
mov rdi, rcx
je 0x14003f31e
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.14004f370
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x14003f291
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14003f250
cmp byte [rax + rcx - 1], 0xa
jne 0x14003f278
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x14003f28c
lea r8, [0x1400812b8]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.14004f260
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14003f296
cmp qword [rdi + 0x700], 0
je 0x14003f2de
mov dl, 1
mov rcx, rdi
call fcn.14002f930
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.14002f930
jmp 0x14003f316
mov r9, qword [rdi + 0x650]
lea rcx, [0x140081298]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14007a6c0
add rsp, 0x860
pop rdi
ret

Function at 0x14003f3d0
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 0x14003f412
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