joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ea00
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400de040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000ea52
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [0x1400df078]
mov qword [rsp + 0x70], rbx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [0x1400df058]
lea rdx, [0x1400df080]
call qword [sym.imp.USER32.dll_GetWindowRect]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1400df058]
jne 0x14000ec22
cmp dword [0x1400df094], 0
jne 0x14000eaf1
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000eaf1
cmp dword [0x1400dfb9c], 0
jne 0x14000eafe
cmp dword [0x1400dfc20], 0
je 0x14000eae2
mov eax, dword [0x1400df07c]
sub eax, dword [0x1400df084]
mov ecx, dword [0x1400df078]
sub ecx, dword [0x1400df080]
mov dword [0x1400df2dc], eax
xor eax, eax
mov dword [0x1400dfc20], eax
mov dword [0x1400df2d8], ecx
mov dword [0x1400dfb9c], 1
jmp 0x14000ec2d
cmp dword [0x1400dfb9c], 0
je 0x14000ebd1
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000ebd1
mov eax, dword [0x1400df08c]
mov r9d, dword [0x1400df088]
mov r8d, dword [0x1400df07c]
mov edx, dword [0x1400df078]
sub eax, dword [0x1400df084]
sub r9d, dword [0x1400df080]
sub r8d, dword [0x1400df2dc]
sub edx, dword [0x1400df2d8]
mov rcx, qword [0x1400df058]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
mov dword [0x1400df094], 1
call qword [sym.imp.USER32.dll_MoveWindow]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword gs:[0x58]
mov rbx, rax
mov eax, 4
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400dfc24], ecx
jle 0x14000ebb5
lea rcx, [0x1400dfc24]
call fcn.1400d2324
cmp dword [0x1400dfc24], 0xffffffff
jne 0x14000ebb5
lea rcx, [0x1400dfc24]
mov dword [0x1400dfc0c], ebx
call fcn.1400d22b8
mov eax, ebx
sub eax, dword [0x1400dfc0c]
cmp eax, 0x64
jl 0x14000ebca
mov dword [0x1400dfc0c], ebx
jmp 0x14000ec2d
mov eax, 1
jmp 0x14000ec2f
xor eax, eax
mov dword [0x1400dfc20], 1
cmp dword [0x1400df098], eax
mov dword [0x1400dfb9c], eax
mov dword [0x1400df094], eax
jne 0x14000ec0d
lea ecx, [rax + 1]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000ec06
mov ecx, 1
jmp 0x14000ec27
mov ecx, 3
jmp 0x14000ec27
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x50
call fcn.140041490
jmp 0x14000ec2d
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400d2290
add rsp, 0x78
ret
Function at 0x14003efc0
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 0x14003efe8
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 0x14003f00e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003f010
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003f069
test ecx, ecx
jle 0x14003f049
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 0x14003f069
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003f069
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 0x14003f090
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 0x14003f0b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14003f0c8
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 0x14003f0e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003f0e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003f122
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 0x14003f1be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003f15d
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 0x14003f19e
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 0x14003f1be
cmp rbx, rax
ja 0x14003f170
test rbx, rbx
je 0x14003f1be
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 0x14003f620
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400de040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003f64d
xor eax, eax
jmp 0x14003f7b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003f687
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14003f687
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 0x14003f7b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003f7ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003f6ca
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 0x14003f6f5
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 0x14003f7b1
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 0x14003f764
sub eax, 1
je 0x14003f764
cmp eax, 2
jne 0x14003f7ac
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 0x14003f7b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003f792
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 0x14003f7ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14003f7b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d2290
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140040870
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400de040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140040943
cmp byte [rcx + 0x71], 0
je 0x140040943
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004093f
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 0x140040904
sub eax, 1
je 0x140040908
cmp eax, 2
jne 0x14004093f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d2290
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140040936
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 0x14004093f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400408ec
xor al, al
jmp 0x1400408ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d2290
add rsp, 0x60
pop rbx
ret
Function at 0x1400d2e74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d2ebe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d2ebe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d2ebe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d2ebe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d2ebe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d2ec0
xor al, al
add rsp, 0x28
ret
Function at 0x140017860
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
push rbx
push rbp
push r12
push r13
push r14
push r15
lea rdi, [rdi + 0x64]
sub rsp, 0xe8
mov r9, rsi
lea rsi, [rsp + 0x64]
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
lea r15, reloc.WS2_32.dll_accept
mov qword [rsi + 0x74], rcx
cmp rdx, rcx
jb 0x140017900
shr rcx, 3
lea r8, [rdi - 0x64]
mov rax, qword [r9]
lea r9, [r9 + 8]
xor rax, qword [r8]
lea r8, [r8 + 8]
sub rdx, 8
mov qword [r8 - 8], rax
sub rcx, 1
jne 0x1400178c6
mov qword [rsi + 0x64], r9
mov qword [rsi + 0x6c], rdx
call fcn.140017500
mov r9, qword [rsi + 0x64]
mov rdx, qword [rsi + 0x6c]
mov rcx, qword [rsi + 0x74]
jmp 0x1400178b9
mov rax, rdx
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret

Function at 0x140020650
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
cmp qword [0x14026df28], 0
je 0x140020718
cmp dword [0x14026df68], 0
je 0x140020718
cmp dword [0x14026df44], 0
je 0x140020718
call fcn.140023ff0
test eax, eax
je 0x1400206e0
mov r9d, dword [0x14026df44]
lea rdx, [rsp + 0x30]
mov r8, qword [0x14026df38]
xor ecx, ecx
call fcn.140023900
test rax, rax
je 0x1400206e0
movsxd rdx, dword [rsp + 0x30]
mov r8d, 1
mov r9, qword [0x14026df28]
mov rcx, rax
call fcn.140181848
movsxd rax, dword [0x14026df44]
add qword [0x14026df30], rax
mov dword [0x14026df44], 0
call fcn.1400208f0
add rsp, 0x28
ret
movsxd rdx, dword [0x14026df44]
mov r8d, 1
mov r9, qword [0x14026df28]
mov rcx, qword [0x14026df38]
call fcn.140181848
movsxd rax, dword [0x14026df44]
add qword [0x14026df30], rax
mov dword [0x14026df44], 0
add rsp, 0x28
ret

Function at 0x140020b70
Capabilities:
Write file on windows

Disassembly:
cmp qword [0x14026e030], 0
jne fcn.140022ab0
jmp fcn.140020650

Function at 0x140020ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
cmp dword [0x14026df68], 0
mov rbp, rcx
movsxd rsi, edx
jne 0x140020ce2
call fcn.140023ff0
test eax, eax
jne 0x140020ce2
mov r9, qword [0x14026df28]
lea r8d, [rax + 1]
mov rdx, rsi
mov rcx, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.140181848
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
nop dword [rax]
movsxd rcx, dword [0x14026df44]
mov edi, esi
mov eax, dword [0x14026df48]
mov rdx, rbp
sub eax, ecx
cmp esi, eax
cmovge edi, eax
add rcx, qword [0x14026df38]
movsxd rbx, edi
mov r8, rbx
call fcn.1401757c0
add dword [0x14026df44], edi
add rbp, rbx
sub esi, edi
je 0x140020d40
cmp qword [0x14026e030], 0
je 0x140020d39
call fcn.140022ab0
jmp 0x140020cf0
call fcn.140020650
jmp 0x140020cf0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x140022740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea r8, [0x140022f60]
mov rbx, rdx
lea rcx, [rsp + 0x28]
sub rcx, 8
lea rdx, [rsp + 0x48]
call fcn.140025060
mov r8d, 0x80
mov qword [rsp + 0x48], rax
lea rdx, str.last__dKB_of_log_file:_n
mov dword [rsp + 0x40], 0x30400
mov rcx, rsi
xor edi, edi
call fcn.14001c780
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140026230
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.140028560
test eax, eax
jne 0x140022861
mov r9, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rbx, qword [r9]
cmp ecx, 0x20000
jle 0x140022848
mov edx, ebx
sub edx, ebx
add edx, ecx
mov rcx, rbx
call fcn.140023f40
test rax, rax
je 0x140022833
nop word [rax + rax]
mov r9, qword [rsp + 0x48]
mov rcx, rax
sub rcx, qword [r9]
cmp rcx, 0x10400
jge 0x140022825
mov edx, dword [r9]
mov rdi, rax
inc rax
sub edx, eax
mov rcx, rax
add edx, dword [rsp + 0x40]
call fcn.140023f40
test rax, rax
jne 0x1400227f0
mov r9, qword [rsp + 0x48]
test rdi, rdi
je 0x140022838
mov ecx, dword [rsp + 0x40]
mov rbx, rdi
jmp 0x140022848
mov r9, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 0x20000]
movsxd rdx, eax
add rbx, rdx
movsxd r8, ecx
mov edx, 1
sub r8, rbx
mov rcx, rbx
add r8, qword [r9]
mov r9, rsi
call fcn.140181848
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140023bd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, r9d
mov rbx, rdx
cmp r9d, 0xffffffff
jne 0x140023bf0
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140023be6
mov r9d, eax
lea rdx, [rsp + 0x48]
call fcn.140023900
test rax, rax
je 0x140023c1c
movsxd r8, dword [rsp + 0x48]
mov r9, rbx
mov edx, 1
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140181848
add rsp, 0x20
pop rbx
ret

Function at 0x140023eb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov ebx, r8d
lea rdx, str.wbEe
call fcn.140027fa0
mov qword [rsp + 0x20], rax
mov rsi, rax
test rax, rax
je 0x140023f26
cmp ebx, 0xffffffff
jne 0x140023ef0
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140023ee7
mov r9d, ebx
lea rdx, [rsp + 0x58]
mov r8, rdi
xor ecx, ecx
call fcn.140023900
test rax, rax
je 0x140023f1c
movsxd r8, dword [rsp + 0x58]
mov r9, rsi
mov edx, 1
mov rcx, rax
call fcn.140181848
lea rcx, [rsp + 0x20]
call fcn.140027f70
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140027770
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov eax, 0x40
mov r12d, 0x2fe0
xor edi, edi
mov ebx, r9d
cmp r9d, eax
mov r14, r8
mov r15, rdx
mov rsi, rcx
cmovle ebx, eax
mov rax, qword gs:[0x58]
add r12, qword [rax]
mov rax, qword [r12]
test rax, rax
jne 0x1400277c7
call fcn.140176664
mov ebp, dword [rax]
mov edx, ebx
mov rcx, rsi
call fcn.140026230
mov rcx, qword [rsi]
lea eax, [rbx + 1]
movsxd r8, eax
mov r9, r15
mov edx, 1
call fcn.140181db0
test eax, eax
jle 0x140027837
nop dword [rax]
add edi, eax
cmp eax, ebx
jle 0x140027837
add ebx, ebx
lea eax, [rbx + rdi]
lea ecx, [rax + 1]
cmp eax, 0x40000000
jge 0x140027832
movsxd rdx, ecx
mov rcx, qword [rsi]
call fcn.140181ac0
lea ecx, [rbx + 1]
mov qword [rsi], rax
movsxd r8, ecx
mov r9, r15
movsxd rcx, edi
mov edx, 1
add rcx, rax
call fcn.140181db0
test eax, eax
jg 0x1400277f0
jmp 0x140027837
mov ebp, 0x1b
mov rax, qword [rsi]
movsxd rcx, edi
mov byte [rcx + rax], 0
test r14, r14
je 0x140027849
mov dword [r14], edi
mov rax, qword [r12]
test rax, rax
jne 0x140027857
call fcn.140176664
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov dword [rax], ebp
mov rax, rsi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140027af0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, rcx
mov rbp, r9
mov rcx, r9
mov ebx, r8d
mov rdi, rdx
call fcn.140028690
mov rdx, rax
mov rcx, r15
call fcn.140027fa0
mov r14, rax
test rax, rax
jne 0x140027b33
or rax, 0xffffffffffffffff
jmp 0x140027c0d
mov qword [rsp + 0x50], rsi
cmp ebx, 0xffffffff
jne 0x140027b4a
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140027b41
movsxd r8, ebx
mov r9, r14
mov edx, 1
mov rcx, rdi
call fcn.140181848
mov rsi, rax
cmp eax, ebx
je 0x140027bfa
mov rcx, rbp
call fcn.1400284b0
bt eax, 0xc
jb 0x140027bd5
mov rcx, rbp
call fcn.1400284b0
and eax, 0xf
cmp al, 6
ja 0x140027bfa
mov rcx, rbp
call fcn.1400284b0
and eax, 0xf
cmp al, 5
jbe 0x140027bd5
mov rcx, rbp
call fcn.1400284b0
test eax, 0x1300
jne 0x140027bd5
mov rcx, rbp
call fcn.1400284b0
mov edi, eax
mov rcx, rbp
and edi, 0xb70000
or rdi, 0x480000
call fcn.1400284b0
shr rdi, 0x10
lea rcx, [0x140273320]
and eax, 0xf
cmp dword [rcx + rdi*4], eax
jl 0x140027bfa
mov rcx, rbp
call fcn.1400284b0
or eax, 0x480000
mov dword [rsp + 0x20], esi
mov ecx, eax
lea rdx, str.failed_fwrite__s__sz__d__returned__d
mov r9d, ebx
mov r8, r15
call fcn.140028ca0
mov rcx, r14
call fcn.140182420
sub esi, ebx
neg esi
mov rsi, qword [rsp + 0x50]
sbb eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea r9, str.wbEe
or r8d, 0xffffffff
jmp 0x140027af0
Function at 0x140027cc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov rbx, rcx
mov r13d, 0x10000
mov ecx, r13d
mov rdi, rdx
call fcn.140181ab8
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r14, rax
or r12d, 0xffffffff
call fcn.140172780
test eax, eax
jne 0x140027dc0
lea rdx, [0x14019b598]
mov qword [rsp + 0xa0], r15
mov rcx, rbx
call fcn.140171fa0
mov r15, rax
test rax, rax
je 0x140027db8
lea rdx, [0x14019b1f0]
mov qword [rsp + 0x90], rbp
mov rcx, rdi
call fcn.140171fa0
mov rbp, rax
test rax, rax
je 0x140027d9b
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x98], rsi
test rbx, rbx
je 0x140027d90
cmp rbx, r13
mov esi, ebx
mov r9, r15
mov edx, 1
cmovg esi, r13d
mov rcx, r14
movsxd rdi, esi
mov r8, rdi
call fcn.140181db0
cmp eax, esi
jne 0x140027d93
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.140181848
cmp eax, esi
jne 0x140027d93
sub rbx, rdi
jne 0x140027d51
xor r12d, r12d
mov rsi, qword [rsp + 0x98]
mov rcx, r15
call fcn.140182420
test rbp, rbp
je 0x140027db0
mov rcx, rbp
call fcn.140182420
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov rcx, r14
call fcn.14017668c
mov eax, r12d
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret

Function at 0x140028180
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x68]
sub rcx, 8
lea r8, [fcn.140026b90]
lea rdx, [rsp + 0x70]
call fcn.140025060
mov qword [rsp + 0x70], rax
mov rax, qword [0x14026e1c8]
test rax, rax
jne 0x1400282f2
lea rcx, str.TEMP
mov qword [rsp + 0x60], rbx
call fcn.140171490
test rax, rax
jne 0x140028280
lea rcx, [0x14019b9b8]
call fcn.140171490
test rax, rax
jne 0x140028280
mov rcx, qword [rsp + 0x70]
call fcn.140026d00
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
test eax, eax
je 0x140028234
mov rcx, qword [rsp + 0x70]
mov edx, eax
call fcn.140026d30
mov rdx, qword [rsp + 0x70]
mov ecx, ebx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rdx, qword [rsp + 0x70]
lea rcx, [0x14026e1c8]
mov rdx, qword [rdx]
call fcn.1400261e0
jmp 0x14002828f
lea rcx, str.SystemRoot
call fcn.140171490
test rax, rax
je 0x1400282f7
movzx ecx, byte [rax]
lea rdx, [0x140223b70]
test byte [rdx + rcx*2], 4
je 0x1400282f7
cmp byte [rax + 1], 0x3a
jne 0x1400282f7
movsx r8d, cl
lea rdx, str._c:_Temp
lea rcx, [0x14026e1c8]
call fcn.1400260b0
jmp 0x14002828f
mov rdx, rax
lea rcx, [0x14026e1c8]
call fcn.140026000
mov rcx, qword [0x14026e1c8]
lea rdx, [rsp + 0x20]
call fcn.140172780
test eax, eax
jne 0x1400282b9
movzx eax, word [rsp + 0x26]
test eax, eax
je 0x1400282b9
and eax, 0xf000
cmp eax, 0x4000
je 0x1400282e6
mov r8, qword [0x14026e1c8]
lea rdx, str.creating_temp_directory__s
mov ecx, 0x480004
call fcn.140028ca0
mov rcx, qword [0x14026e1c8]
mov edx, 0x1ff
call fcn.140171a90
test eax, eax
jne 0x140028309
mov rax, qword [0x14026e1c8]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rdx, str.failed_to_get_temp_directory
mov ecx, 0x480000
call fcn.140029170
int3
lea rdx, str.failed_to_create_temp_directory
mov ecx, 0x480000
call fcn.140029170
int3
Function at 0x140028680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, rcx
mov rbp, r9
mov rcx, r9
mov ebx, r8d
mov rdi, rdx
call fcn.140028690
mov rdx, rax
mov rcx, r15
call fcn.140027fa0
mov r14, rax
test rax, rax
jne 0x140027b33
or rax, 0xffffffffffffffff
jmp 0x140027c0d
mov qword [rsp + 0x50], rsi
cmp ebx, 0xffffffff
jne 0x140027b4a
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140027b41
movsxd r8, ebx
mov r9, r14
mov edx, 1
mov rcx, rdi
call fcn.140181848
mov rsi, rax
cmp eax, ebx
je 0x140027bfa
mov rcx, rbp
call fcn.1400284b0
bt eax, 0xc
jb 0x140027bd5
mov rcx, rbp
call fcn.1400284b0
and eax, 0xf
cmp al, 6
ja 0x140027bfa
mov rcx, rbp
call fcn.1400284b0
and eax, 0xf
cmp al, 5
jbe 0x140027bd5
mov rcx, rbp
call fcn.1400284b0
test eax, 0x1300
jne 0x140027bd5
mov rcx, rbp
call fcn.1400284b0
mov edi, eax
mov rcx, rbp
and edi, 0xb70000
or rdi, 0x480000
call fcn.1400284b0
shr rdi, 0x10
lea rcx, [0x140273320]
and eax, 0xf
cmp dword [rcx + rdi*4], eax
jl 0x140027bfa
mov rcx, rbp
call fcn.1400284b0
or eax, 0x480000
mov dword [rsp + 0x20], esi
mov ecx, eax
lea rdx, str.failed_fwrite__s__sz__d__returned__d
mov r9d, ebx
mov r8, r15
call fcn.140028ca0
mov rcx, r14
call fcn.140182420
sub esi, ebx
neg esi
mov rsi, qword [rsp + 0x50]
sbb eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea r9, str.wbEe
or r8d, 0xffffffff
jmp 0x140027af0