joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005e10
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1404722c0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1404722a0]
test rbx, rbx
je 0x140005e5c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140005e56
test eax, eax
jne 0x140005e56
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140005e2e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006010
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006033
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006033
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140006034
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000606e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006065
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006070
inc r8d
add rax, 0x28
jmp 0x14000604c
xor eax, eax
ret

Function at 0x1400060e1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14046d030]
mov r8, rcx
mov rcx, r9
call fcn.140006010
test eax, eax
je 0x14000610d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006034
xor eax, eax
add rsp, 0x28
ret
Function at 0x140004f40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140043268]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005013
cmp byte [rcx + 0x71], 0
je 0x140005013
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000500f
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 0x140004fd4
sub eax, 1
je 0x140004fd8
cmp eax, 2
jne 0x14000500f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e130
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005006
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 0x14000500f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004fbc
xor al, al
jmp 0x140004fbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e130
add rsp, 0x60
pop rbx
ret
Function at 0x1400052f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140043268]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000531d
xor eax, eax
jmp 0x140005472
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140005348
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140005348
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140005472
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005465
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000538b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x1400053b6
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 0x14000546a
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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
js 0x140005465
cmp eax, 1
jle 0x140005425
cmp eax, 3
jne 0x140005465
movsx ecx, byte [rsp + 0x40]
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 0x14000546a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005453
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 0x140005465
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14000546a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001e130
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400061a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400061d1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400061e8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000620b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000620d
xor ecx, ecx
mov qword [rsp + 0x30], rbx
movsxd rax, ecx
test ecx, ecx
je 0x140006247
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400062e7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140006282
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x1400062c1
nop
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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140006308
cmp rdi, rax
ja 0x140006290
mov r8, rbx
test rbx, rbx
je 0x1400062e7
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x1400062ea
imul r11d, dword [rcx], 0x190e2f5d
pop rbp
invalid
Function at 0x140006310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140006340
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140006368
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000636a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400063c3
test ecx, ecx
jle 0x1400063a3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400063c3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400063c3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
invalid
Function at 0x14000a570
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140043268]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x238
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x14000a600
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000a5e4
add rax, 2
test ecx, ecx
jne 0x14000a5d0
test edx, edx
je 0x14000a5fc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x14000a5c0
jmp 0x14000a600
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001e130
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000a630
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140043268]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor esi, esi
mov r14d, ecx
xor edx, edx
lea ecx, [rsi + 4]
lea rdi, [rsi - 1]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, rdi
je 0x14000a741
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14000a738
mov qword [rsp + 0x90], rbx
nop dword [rax + rax]
cmp dword [rsp + 0x3c], r14d
jne 0x14000a71b
mov r8d, dword [rsp + 0x38]
mov edx, 1
lea ecx, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x14000a71b
xorps xmm0, xmm0
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov rcx, rbx
lea rdx, [rsp + 0x50]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
je 0x14000a712
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x54]
shl rax, 0x20
or rax, rcx
je 0x14000a712
cmp rax, rdi
jae 0x14000a712
mov esi, dword [rsp + 0x38]
mov rdi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x14000a6a0
mov rbx, qword [rsp + 0x90]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001e130
lea r11, [rsp + 0x80]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400197d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140019964
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140019964
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x14001986b
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14001998b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140019882
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140019882
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140019895
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x1400198e2
mov r8d, eax
cmp eax, 0x800
jae 0x1400198af
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x1400198e2
cmp eax, 0x10000
jae 0x1400198c9
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x1400198e2
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x140019964
add qword [r14], 2
test sil, sil
jne 0x140019903
cmp r10d, 3
jae 0x14001990f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x140019941
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x140019920
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14001981f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140019972
Function at 0x14001a2b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140043268]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov esi, edx
mov rbx, rcx
mov qword [rsp + 0x50], r8
mov rbp, qword [rcx + 8]
xor r14d, r14d
test rbp, rbp
je 0x14001a30d
mov byte [rcx + 0xb8], r14b
mov eax, r14d
xchg byte [rcx + 0xb9], al
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rbx + 8]
call fcn.14001b040
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rbx + 0x10]
cmp rcx, rdi
je 0x14001a353
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14001a34a
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
call fcn.140008c50
mov ecx, 0x18
call fcn.14001dd80
mov qword [rsp + 0x30], rax
cmp esi, 1
jne 0x14001a384
test rax, rax
je 0x14001a3a1
mov qword [rax + 8], 0xffffffffffffffff
mov dword [rax + 0x10], r14d
lea rcx, vtable.PipeClientConnection.0
mov qword [rax], rcx
jmp 0x14001a3a4
test rax, rax
je 0x14001a3a1
mov qword [rax + 8], 0xffffffffffffffff
mov dword [rax + 0x10], r14d
lea rcx, vtable.PipeServerConnection.0
mov qword [rax], rcx
jmp 0x14001a3a4
mov rax, r14
mov rcx, qword [rbx + 8]
test rcx, rcx
mov qword [rbx + 8], rax
je 0x14001a3bb
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, rbx
call fcn.1400191d0
mov byte [rbx + 0xb8], al
test al, al
je 0x14001a437
test rbp, rbp
jne 0x14001a437
lea ecx, [rbp + 0x10]
call fcn.14001dd80
test rax, rax
je 0x14001a3ef
mov qword [rax], rbx
lea rcx, [0x14001aa40]
mov qword [rax + 8], rcx
jmp 0x14001a3f2
mov rax, r14
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140017170]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001a4ac
cmp dword [rbx + 0x38], 0
jne 0x14001a49e
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx + 0x30], xmm0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14001a46d
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14001a468
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001a4a5
mov rcx, r8
call fcn.14001ddc4
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001e130
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x48], r14d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14001b0e0
Capabilities:
Connect pipe

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14001b123
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14001b123
cmp eax, 0x3e5
je 0x14001b123
mov r8d, eax
lea rdx, str.ConnectNamedPipe_failed_with__d.
lea rcx, [0x140043150]
call fcn.14000a960
xor al, al
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret

Function at 0x14001b220
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rdx + 0x18], 8
mov r10, rdx
mov rbx, rcx
jb 0x14001b236
mov r10, qword [rdx]
mov eax, dword [0x140043258]
mov edx, 0x40000003
mov qword [rsp + 0x38], 0
mov r9d, 0xff
mov dword [rsp + 0x30], eax
mov rcx, r10
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
mov r8d, 0xe
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14001b29b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateNamedPipe_failed_with__d
lea rcx, [0x140043150]
call fcn.14000a960
xor al, al
add rsp, 0x40
pop rbx
ret
mov al, 1
add rsp, 0x40
pop rbx
ret

Function at 0x14001b300
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, qword [rdx]
mov rax, r8
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, dword [rdx + 8]
sub r8d, dword [rdx]
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
add rsp, 0x38
ret

Function at 0x14001b360
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, qword [rdx]
mov rax, r8
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, dword [rdx + 8]
sub r8d, dword [rdx]
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x14001ef90
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14001efcd
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.14001f134
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14001f0cc
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14001f134
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x14001f040
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140006650
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x14001f10b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001f10b
call fcn.14001ddc4
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x14001f0f2
mov rcx, r14
call fcn.14001ddc4
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x14002bf50
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x278
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx eax, word [rcx + 0x28]
mov word [rsp + 0x260], ax
movzx eax, word [rcx + 0x2a]
mov word [rsp + 0x262], ax
mov rsi, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call rsi
mov word [rsp + 0x264], ax
movzx eax, word [rbx + 0x2a]
mov word [rsp + 0x266], ax
movzx eax, word [rbx + 0x28]
mov word [rsp + 0x268], ax
mov bp, 0x4e4
mov word [rsp + 0x26a], bp
call rsi
mov word [rsp + 0x26c], ax
mov word [rsp + 0x26e], bp
xor ebp, ebp
lea rsi, [rsp + 0x50]
lea r15, str.StringFileInfo_04x_04x_ls
lea r12, [rsp + 0x48]
lea r13, [rsp + 0x44]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.14007eec0
movzx eax, word [rsp + rbp + 0x262]
movzx ecx, word [rsp + rbp + 0x260]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
mov r9, r15
int3

Function at 0x14002c5f0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14007eec0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002c68f
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1400952c0
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
int3
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14007c600
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002c6c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007eec0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002c755
cmp word [rsp + 0x70], 0
je 0x14002c755
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400952c0
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
int3
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14007c600
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400f2f80]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14005bfb0
mov rcx, rdi
call fcn.14002c5f0
test al, al
je 0x14002c795
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14005c010
jmp 0x14002c7b4
lea rax, [0x1400f5c46]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
int3
lea rcx, [rsp + 0x40]
call fcn.14005c110
jmp 0x14002c737