joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400df120
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov dword [0x1401ea470], eax
mov eax, dword [rsp + 0x24]
mov dword [0x1401ea474], eax
mov eax, dword [rsp + 0x48]
mov dword [0x1401ea478], eax
mov dword [rsp + 0x60], ebx
mov byte [0x1401ea47d], bl
call fcn.1400e0390
test al, al
je 0x1400df18e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
je 0x1400df18e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400df18e
inc eax
mov byte [0x1401ea47d], 1
mov dword [0x1401ea500], eax
mov byte [0x1401ea47e], bl
mov word [rsp + 0x60], bx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessGroupAffinity]
mov edi, 1
test eax, eax
jne 0x1400df1cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400df1cb
movzx eax, word [rsp + 0x60]
jmp 0x1400df1d2
mov eax, edi
mov word [rsp + 0x60], ax
cmp ax, di
seta cl
call fcn.1400e0280
test al, al
je 0x1400df1fb
call fcn.1400def00
test al, al
je 0x1400df1fb
cmp dword [0x1401ea504], edi
seta al
mov byte [0x1401ea47e], al
jmp 0x1400df202
movzx eax, byte [0x1401ea47e]
test al, al
je 0x1400df250
mov r9d, dword [0x1401ea508]
test r9, r9
je 0x1400df2d3
lea r8, [0x1401ea480]
nop dword [rax]
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
inc rbx
mov rax, qword [rdx]
bts rax, rcx
mov qword [rdx], rax
cmp rbx, r9
jb 0x1400df220
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x1400df2d3
mov r9, qword [rsp + 0x60]
lea r8, [0x1401ea480]
nop dword [rax]
test r9, rdi
je 0x1400df2a1
mov rcx, rbx
mov rax, rbx
shr rax, 6
and ecx, 0x3f
lea rdx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rcx
mov qword [rdx], rax
rol rdi, 1
test r9, rdi
je 0x1400df2c6
lea rdx, [rbx + 1]
mov rax, rdx
and edx, 0x3f
shr rax, 6
lea rcx, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
bts rax, rdx
mov qword [rcx], rax
rol rdi, 1
add rbx, 2
cmp rbx, 0x40
jb 0x1400df280
mov rbx, qword [rsp + 0x70]
mov al, 1
add rsp, 0x50
pop rdi
ret

Function at 0x1401136c0
Capabilities:
Parse pe header

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

Function at 0x140116e50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140116e78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140116e78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4c3aa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c4b60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c44a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c453a
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c451e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c4512
cmp qword [rbp - 0x10], 0
je 0x2fc4c4512
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c44d8
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c453b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c4640
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c4668
mov eax, 0
jmp 0x2fc4c46b6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c4691
mov eax, 0
jmp 0x2fc4c46b6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c46b1
mov eax, 0
jmp 0x2fc4c46b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c46bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c473a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c4731
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c4731
mov rax, qword [rbp - 8]
jmp 0x2fc4c474f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c4704
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140003f98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003f98
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003f85
nop
cmp rbx, rcx
jae 0x140003f98
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003f70
cmp rbx, rcx
jae 0x140003f98
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x140003f9a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007b90
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
push rsi
push r14
push r15
sub rsp, 0x50
mov r14, r8
mov r15, rdx
mov rsi, rcx
cmp rdx, r8
je 0x140007ce9
mov rdx, qword [rcx + 0x18]
movabs r8, 0x100000001b3
mov qword [rax + 0x10], rbx
mov rbx, r15
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rdi
mov qword [rax - 0x20], r12
mov r12, qword [rsi + 0x30]
mov qword [rax - 0x28], r13
mov rax, qword [rcx + 8]
movzx ecx, byte [r15 + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [r15 + 8]
mov qword [rsp + 0x20], rax
movabs rax, 0xcbf29ce484222325
xor rcx, rax
mov qword [rsp + 0x38], rdx
movzx eax, byte [r15 + 0x11]
imul rcx, r8
xor rcx, rax
movzx eax, byte [r15 + 0x12]
imul rcx, r8
xor rcx, rax
movzx eax, byte [r15 + 0x13]
imul rcx, r8
xor rcx, rax
imul rcx, r8
and r12, rcx
shl r12, 4
add r12, rdx
mov rax, qword [r12]
mov r13, qword [r12 + 8]
mov qword [rsp + 0x28], rax
mov rdi, rbx
mov rbp, rbx
mov rbx, qword [rbx]
mov rdx, qword [rdi + 0x30]
cmp rdx, 0xf
jbe 0x140007c84
mov rcx, qword [rdi + 0x18]
inc rdx
cmp rdx, 0x1000
jb 0x140007c7f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007e0b
mov rcx, r8
call fcn.1400109e0
mov edx, 0x38
mov qword [rdi + 0x28], 0
mov rcx, rdi
mov qword [rdi + 0x30], 0xf
mov byte [rdi + 0x18], 0
call fcn.1400109e0
dec qword [rsi + 0x10]
cmp rbp, r13
je 0x140007cf6
cmp rbx, r14
jne 0x140007c40
cmp qword [rsp + 0x28], r15
jne 0x140007cbe
mov qword [r12], rbx
mov rax, qword [rsp + 0x20]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov r13, qword [rsp + 0x40]
mov qword [rax], rbx
mov qword [rbx + 8], rax
mov rbx, qword [rsp + 0x78]
mov rax, r14
add rsp, 0x50
pop r15
pop r14
pop rsi
ret
mov r13, qword [rsp + 0x30]
cmp qword [rsp + 0x28], r15
jne 0x140007d0b
mov qword [r12], r13
mov rax, r13
jmp 0x140007d10
mov rax, qword [rsp + 0x20]
mov qword [r12 + 8], rax
cmp rbx, r14
je 0x140007cbe
nop word [rax + rax]
movzx ecx, byte [rbx + 0x10]
movabs rdx, 0x100000001b3
mov r12, qword [rsi + 0x30]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rbx + 0x11]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x12]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rbx + 0x13]
imul rcx, rdx
xor rcx, rax
imul rcx, rdx
and r12, rcx
shl r12, 4
add r12, qword [rsp + 0x38]
mov r15, qword [r12 + 8]
nop word [rax + rax]
mov rdi, rbx
mov rbp, rbx
mov rbx, qword [rbx]
mov rdx, qword [rdi + 0x30]
cmp rdx, 0xf
jbe 0x140007dc0
mov rcx, qword [rdi + 0x18]
inc rdx
cmp rdx, 0x1000
jb 0x140007dbb
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140007e0b
mov rcx, r8
call fcn.1400109e0
mov edx, 0x38
mov qword [rdi + 0x28], 0
mov rcx, rdi
mov qword [rdi + 0x30], 0xf
mov byte [rdi + 0x18], 0
call fcn.1400109e0
dec qword [rsi + 0x10]
cmp rbp, r15
je 0x140007df4
cmp rbx, r14
jne 0x140007d80
jmp 0x140007cba
mov qword [r12], r13
mov qword [r12 + 8], r13
cmp rbx, r14
jne 0x140007d20
jmp 0x140007cbe
call fcn.14001a174
int3
Function at 0x140008880
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push r13
push r15
sub rsp, 0x30
mov qword [rsp + 0x50], rbx
mov r15, rdx
mov qword [rsp + 0x58], rsi
mov r13, rcx
mov qword [rsp + 0x60], rdi
mov r9, r8
mov qword [rsp + 0x28], r12
mov rdi, r8
mov r12, qword [r8 + 0x18]
cmp r12, 0xf
jbe 0x1400088b7
mov r9, qword [r8]
mov rsi, qword [rdi + 0x10]
xor ebp, ebp
movabs r8, 0xcbf29ce484222325
mov ecx, ebp
test rsi, rsi
je 0x1400088f4
movabs rdx, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [r9 + rcx]
inc rcx
xor r8, rax
imul r8, rdx
cmp rcx, rsi
jb 0x1400088e0
mov rcx, qword [r13 + 0x30]
mov rax, qword [r13 + 0x18]
and rcx, r8
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r13 + 8]
je 0x140008960
mov qword [rsp + 0x20], r14
mov r14, qword [rax + rcx*8]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
jbe 0x14000892f
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
cmp r12, 0xf
jbe 0x14000893b
mov rcx, qword [rdi]
cmp rsi, qword [rbx + 0x20]
jne 0x14000894d
mov r8, rsi
call fcn.140036c30
test eax, eax
je 0x140008958
cmp rbx, r14
je 0x14000895b
mov rbx, qword [rbx + 8]
jmp 0x140008920
mov rbp, rbx
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rbp, rbp
je 0x140008989
mov qword [r15], rbp
mov rax, r15
add rsp, 0x30
pop r15
pop r13
pop rbp
ret
mov rax, qword [r13 + 8]
mov qword [r15], rax
mov rax, r15
add rsp, 0x30
pop r15
pop r13
pop rbp
ret
Function at 0x14000ac40
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14000adee
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14004ede8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14004edf8]
lea rdx, [rdi + rdi]
call fcn.1400080a0
mov rax, qword [0x14004ede8]
lea r9, [rdi - 1]
mov qword [0x14004ee10], r9
mov qword [0x14004ee18], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14000ade3
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14004edf8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14000ad2f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14000ada4
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000ad6c
mov r10, qword [rdx]
cmp r10, rax
je 0x14000ad66
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14000ada4
cmp r9, rdx
je 0x14000ad80
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14000adb8
cmp r9, rdx
jne 0x14000ad71
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14000adde
mov r9, qword [0x14004ee10]
jmp 0x14000ace0
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000ada4
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.14000eb0c
int3
Function at 0x14000b090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14000b1e3
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000b0f1
xor edi, edi
mov ebx, edi
jmp 0x14000b149
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x14000b108
xor edi, edi
mov ebx, edi
jmp 0x14000b149
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000b135
nop
cmp rbx, rcx
jae 0x14000b13a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000b120
cmp rbx, rcx
jb 0x14000b140
xor edi, edi
mov ebx, edi
jmp 0x14000b149
xor edi, edi
cmp word [rbx], di
cmove rbx, rdi
test rbx, rbx
je 0x14000b1e3
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov qword [rsp + 0x38], rdi
xor edx, edx
mov qword [rsp + 0x30], rdi
mov ecx, 3
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
test eax, eax
js 0x14000b200
mov rcx, qword [r14]
mov edx, 1
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x14000b19f
mov edx, esi
mov rcx, r14
call fcn.14000b030
mov rdx, qword [r14]
lea r8, [rbx + 2]
movzx r9d, word [rbx]
mov ecx, 3
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [r14]
cmp esi, dword [rcx - 0xc]
jg 0x14000b200
mov dword [rcx - 0x10], esi
mov eax, 1
mov rcx, qword [r14]
mov byte [rsi + rcx], 0
jmp 0x14000b1e5
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov ecx, 0x80070057
call fcn.140003ee0
int3
Function at 0x14000de10
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14004c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsx ebx, cl
mov rsi, rdx
test rdx, rdx
je 0x14000de9f
lea eax, [rbx - 0x61]
cmp al, 0x19
lea eax, [rbx - 0x41]
setbe dl
cmp al, 0x19
setbe al
or dl, al
je 0x14000de9f
mov r8d, ebx
lea rdx, str._c:_
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x14000de9f
movzx ecx, bl
call fcn.14000dd70
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000de9f
mov rdx, rsi
mov rcx, rax
call fcn.14000dec0
mov rcx, rdi
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
jmp 0x14000dea1
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400109c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000fe34
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000fe62
xor eax, eax
jmp 0x14000ff48
cmp qword [rcx + 0x68], 0
je 0x14000fe73
call fcn.14000a000
jmp 0x14000ff48
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000fe8a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000fe8c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000febe
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400361e0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000ff42
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000fef5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000ff1e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140020874
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000ff42
cmp rsi, rbx
ja 0x14000fefc
test rsi, rsi
je 0x14000ff42
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140020874
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400118f0
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140022657
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022657
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022657
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022657
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022657
cmp dword [rcx + 0x84], 0xe
jbe 0x140022657
cmp dword [rcx + 0xf8], 0
je 0x140022657
mov ecx, ebx
call fcn.140022708
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400224e4
nop
cmp dword [rbp + 0x20], 0
je 0x1400226a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400226b0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400225e8

Function at 0x1400227ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400225e8
Function at 0x14002a4d8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400111d0
sub rsp, rax
mov rax, qword [0x14004c040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028d10
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002a527
mov rax, rbp
jmp 0x14002a62f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4e7a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002b5f8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4e7a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002a62b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a62b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002b5f8
test rax, rax
js 0x14002a62b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002a62b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002a61d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002a61d
cmp byte [rcx], 0xd
jne 0x14002a603
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002a612
cmp byte [rcx + 1], 0xa
jne 0x14002a612
inc rcx
jmp 0x14002a612
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4c480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002a5e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002a62f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400109c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002a850
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002a866
mov al, 1
jmp 0x14002a8c6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002a877
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002a8c4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002ec10
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002a8c4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002a8c4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002a8c4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002a8c6
xor al, al
add rsp, 0x20
pop rbx
ret