joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400926f0
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
cmp dword [rcx + 0x64], 1
mov r13, qword [rcx + 0x268]
mov rdi, rcx
jne 0x14009271c
mov ebx, 0x1fe
mov byte [r13 + 0x38], 1
jmp 0x140092722
xor ebx, ebx
mov byte [r13 + 0x38], bl
mov rax, qword [rcx + 8]
mov r9d, dword [rcx + 0x7c]
lea r8d, [rbx + 0x100]
mov edx, 1
call qword [rax + 0x10]
mov ebp, dword [r13 + 0x28]
xor r15d, r15d
mov qword [r13 + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x140092872
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
movsxd rcx, ebx
mov qword [rsp + 0x20], r14
lea r12, [r13 + 0x3c]
mov qword [rsp + 0x68], rcx
xor r14d, r14d
nop dword [rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
test rcx, rcx
je 0x14009278c
mov rax, qword [r13 + 0x30]
add qword [rax + r14], 0xff
mov rax, qword [r13 + 0x30]
lea ecx, [rsi - 1]
xor r8d, r8d
mov rdi, qword [r14 + rax]
lea eax, [rcx + 0xff]
add ecx, ecx
cdq
xor r10d, r10d
idiv ecx
xor ebx, ebx
mov r9d, eax
nop dword [rax]
cmp r10d, r9d
jle 0x1400927e7
imul eax, r8d, 0x1fe
lea ecx, [rsi + 0xfe]
lea r11d, [rsi*2 - 2]
add ecx, eax
nop dword [rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x1400927d0
movzx eax, r8b
inc rbx
inc r10d
imul bpl
mov byte [rbx + rdi - 1], al
cmp rbx, 0xff
jle 0x1400927b0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140092849
mov ecx, 1
lea rdx, [rdi - 1]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi]
inc rcx
lea rdx, [rdx - 1]
mov byte [rdx + 1], al
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xfe], al
cmp rcx, 0xff
jle 0x140092820
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
inc r15d
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x140092770
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 0x1400a3bd0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp dword [0x140161ec4], 0
jne 0x1400a3c75
mov rax, qword [sym.imp.msvcrt.dll_malloc]
mov dword [0x140161ec4], 1
mov qword [sub.msvcrt.dll_malloc], rax
mov rax, qword [sym.imp.msvcrt.dll_free]
mov qword [sub.msvcrt.dll_free], rax
mov rax, qword [sym.imp.msvcrt.dll_realloc]
mov qword [sub.msvcrt.dll_realloc], rax
lea rax, case.0x1400ac587.0
mov qword [str._E_n_], rax
mov rax, qword [sym.imp.msvcrt.dll_calloc]
mov qword [sub.msvcrt.dll_calloc], rax
call fcn.1400adbb0
test eax, eax
je 0x1400a3ca3
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x1400a3ca3
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400a3c9d
shr ax, 8
cmp al, 2
jne 0x1400a3c9d
call fcn.1400ae270
test eax, eax
jne 0x1400a3ca3
mov dword [0x140161ec8], 3
lea rcx, [rsp + 0x1d0]
call fcn.1400a59e0
mov rcx, qword [rsp + 0x1d0]
xor edx, edx
test eax, eax
cmovne rcx, rdx
mov rax, rcx
add rsp, 0x1c8
ret
call qword [sym.imp.WSOCK32.DLL_WSACleanup]
xor eax, eax
add rsp, 0x1c8
ret
Function at 0x1400a4020
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
mov eax, dword [0x140161ec4]
mov ebx, ecx
mov edx, eax
inc eax
mov dword [0x140161ec4], eax
test edx, edx
jne 0x1400a40e7
mov rax, qword [sym.imp.msvcrt.dll_malloc]
mov qword [sub.msvcrt.dll_malloc], rax
mov rax, qword [sym.imp.msvcrt.dll_free]
mov qword [sub.msvcrt.dll_free], rax
mov rax, qword [sym.imp.msvcrt.dll_realloc]
mov qword [sub.msvcrt.dll_realloc], rax
lea rax, case.0x1400ac587.0
mov qword [str._E_n_], rax
mov rax, qword [sym.imp.msvcrt.dll_calloc]
mov qword [sub.msvcrt.dll_calloc], rax
test cl, 1
je 0x1400a4097
call fcn.1400adbb0
test eax, eax
je 0x1400a40f8
test bl, 2
je 0x1400a40ca
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x1400a40f8
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400a40f2
shr ax, 8
cmp al, 2
jne 0x1400a40f2
call fcn.1400ae270
test eax, eax
jne 0x1400a40f8
mov eax, dword [0x140161f2c]
test bl, 4
mov ecx, 1
cmovne eax, ecx
mov dword [0x140161ec8], ebx
mov dword [0x140161f2c], eax
xor eax, eax
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add rsp, 0x1c0
pop rbx
ret

Function at 0x1400a8e50
Capabilities:
Write file on windows

Disassembly:
mov rdx, qword [r8 + 0x10]
mov r9, rcx
or rax, 0xffffffffffffffff
mov qword [r8 + 0x18], rdx
nop
inc rax
cmp byte [rdx + rax], 0
jne 0x1400a8e60
test rax, rax
je 0x1400a8e7a
cmp byte [rdx + rax - 1], 0x2e
jne 0x1400a8e7a
mov byte [rdx + rax - 1], 0
mov rcx, qword [r8 + 0x10]
movzx eax, byte [rcx]
test al, al
je 0x1400a8ea4
lea rcx, [rcx + 1]
and al, 0x80
jne 0x1400a8e95
movzx eax, byte [rcx]
test al, al
jne 0x1400a8e85
ret
lea rdx, str.IDN_support_not_present__cant_parse_Unicode_domains_n
mov rcx, r9
jmp fcn.1400ae830
ret
Function at 0x1400aef90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1400aefd3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x1400af018
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1400f0140]
lea r8d, [rdx - 1]
add rcx, rax
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x798]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x1400b203d
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x1400b2003
cmp qword [rcx + 0x78], rax
je 0x1400b203d
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rax, rax
jne 0x1400b2016
mov rax, qword [rcx + 0x78]
mov rcx, qword [rax + 0x60]
lea r8, [0x1400b2f50]
lea rdx, [rsp + 0x20]
call fcn.1400bae50
cmp byte [rsp + 0x28], 0
jne 0x1400b2051
mov qword [rdi + 0x798], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x1400b2059
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x1400b2077
mov rcx, rbx
call fcn.1400ad540
test eax, eax
jne 0x1400b2093
jmp 0x1400b203d
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WSOCK32.DLL_recv]
test eax, eax
je 0x1400b203d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x1400b2600
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xd0
mov dword [rax + 0x18], 0x4020
mov dword [rax + 0x10], 0
mov dword [rax + 0x20], 4
mov eax, dword [0x140161ef0]
mov rbx, rcx
test eax, eax
jne 0x1400b2695
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x30], 0x9c
mov dword [rsp + 0x34], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x1400b2689
mov dword [0x140161ef0], 2
add rsp, 0xd0
pop rbx
ret
mov dword [0x140161ef0], 1
jmp 0x1400b269a
cmp eax, 2
je 0x1400b26fb
lea rax, [rsp + 0xf8]
lea r9, [rsp + 0xe8]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x1400b26d7
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0xe8], eax
jg 0x1400b26fb
lea r9, [rsp + 0xf0]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
add rsp, 0xd0
pop rbx
ret
Function at 0x140002f80
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1060
call fcn.140010a50
sub rsp, rax
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003021
nop
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140003021
mov r9d, eax
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.140009a40
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002fe0
mov rax, qword [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
cmp qword [rsp + 0x38], rax
je 0x14000307e
lea rdx, str.Sending_data_of_size:
call fcn.140008020
mov rdx, qword [rsp + 0x40]
sub rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x1400083e0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14000309b
lea rdx, str.No_data_to_send.
call fcn.140008020
lea rdx, [0x1400083e0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400030da
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400030d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400030d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010020
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000fa10
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005fc0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11c0]
mov eax, 0x12c0
call fcn.140010a50
sub rsp, rax
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rbp + 0x11b0], rax
lea r8, [rsp + 0x78]
mov edx, 0x1000
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x1400061b9
mov r12d, dword [rsp + 0x78]
shr r12d, 2
movups xmm0, xmmword [str._unknown_]
movaps xmmword [rbp + 0xfa0], xmm0
mov eax, dword [0x140013538]
mov dword [rbp + 0xfb0], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0xfb4]
call sub.VCRUNTIME140.dll_memset
xor r13d, r13d
mov r15d, r13d
test r12d, r12d
je 0x1400061b9
lea r14, [rbp - 0x60]
mov r8d, dword [r14]
test r8d, r8d
je 0x1400061a9
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400061a9
lea r9, [rbp - 0x68]
mov r8d, 8
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1400061a0
mov r9d, 0x104
lea r8, [rbp + 0xfa0]
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
lea r8d, [rax + 0xd]
lea rdx, str.wireshark.exe
lea rcx, [rsp + 0x30]
call fcn.140008c60
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov r8d, recv
lea rdx, str.dumpcap.exe
lea rcx, [rsp + 0x50]
call fcn.140008c60
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140006ae0
nop
lea r9, [fcn.140001d20]
mov edx, 0x20
lea r8d, [rdx - 0x1e]
lea rcx, [rsp + 0x30]
call fcn.14000fd08
mov rbx, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x78]
cmp rbx, rdi
je 0x140006197
nop word [rax + rax]
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000617d
mov rdx, qword [rbx]
lea rcx, [rbp + 0xfa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400061eb
add rbx, 0x20
cmp rbx, rdi
jne 0x140006170
lea rcx, [rbp - 0x80]
call fcn.140007af0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r15d
add r14, 4
cmp r15d, r12d
jb 0x140006064
xor al, al
mov rcx, qword [rbp + 0x11b0]
xor rcx, rsp
call fcn.14000fa10
lea r11, [rsp + 0x12c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x80]
call fcn.140007af0
mov al, 1
jmp 0x1400061bb
Function at 0x1400065c0
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x50], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], rbp
lea r8d, [rbp + 7]
lea rdx, str.Unknown
call fcn.140009030
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
lea r8d, [rbp + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x140006726
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x58], rdi
mov esi, ebp
cmp dword [rsp + 0x50], ebp
jbe 0x140006718
nop
mov eax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x40]
cmp dword [rax + rcx*8 + 0x10], 0
jne 0x1400066bf
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x54], ebp
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x48]
mov r8d, 5
mov edx, dword [rax + rcx*8]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationA]
test eax, eax
je 0x1400066bf
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov eax, dword [rsp + 0x54]
test eax, eax
jne 0x1400066c9
test rbx, rbx
je 0x1400066bf
mov rcx, rbx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
inc esi
cmp esi, dword [rsp + 0x50]
jb 0x140006660
jmp 0x140006718
lea esi, [rax - 1]
mov rax, qword [r14 + 0x18]
cmp rsi, rax
ja 0x1400066fa
mov r15, r14
cmp rax, 0xf
jbe 0x1400066e1
mov r15, qword [r14]
mov qword [r14 + 0x10], rsi
mov r8, rsi
mov rdx, rbx
mov rcx, r15
call sub.VCRUNTIME140.dll_memmove
mov byte [r15 + rsi], 0
jmp 0x140006709
mov r9, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140008ef0
nop
test rbx, rbx
je 0x140006718
mov rcx, rbx
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
test rdi, rdi
je 0x140006726
mov rcx, rdi
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000fa10
lea r11, [rsp + 0x70]
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 0x14000de50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000de7d
xor eax, eax
jmp 0x14000dfe9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000deb7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000deb7
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 0x14000dfe9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000dfdc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000defa
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 0x14000df25
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 0x14000dfe1
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 0x14000df94
sub eax, 1
je 0x14000df94
cmp eax, 2
jne 0x14000dfdc
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 0x14000dfe1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000dfc2
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 0x14000dfdc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000dfe1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000fa10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000e4b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000e583
cmp byte [rcx + 0x71], 0
je 0x14000e583
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000e57f
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 0x14000e544
sub eax, 1
je 0x14000e548
cmp eax, 2
jne 0x14000e57f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000fa10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000e576
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 0x14000e57f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000e52c
xor al, al
jmp 0x14000e52c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000fa10
add rsp, 0x60
pop rbx
ret
Function at 0x14000f8d8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000f912
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000f917
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000f960
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140012890]
cmp byte [rcx + rax], 0
je 0x14000f960
dec r8
sub rdx, 1
jne 0x14000f946
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400106a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400106ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400106ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400106ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400106ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1400106ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400106f0
xor al, al
add rsp, 0x28
ret
Function at 0x180006910
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180006932
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1800069b3
mov rdi, r14
mov rcx, rbx
call fcn.180007ad0
test rax, rax
jle 0x180006984
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180050790
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1800069a3
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x180018da5.0]
cmp eax, 0xffffffff
je 0x1800069ab
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180006946
sub r14, rdi
jmp 0x180006aa8
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1800069ca
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800069cc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180006a01
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180050790
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180006aa5
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x180006a3c
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x180006a80
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18005d36c
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x180006abe
cmp rbp, rax
ja 0x180006a50
mov r8, rdi
test rdi, rdi
je 0x180006aa5
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18005d36c
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x180006aa8