joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f41a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140130040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x1400f41dd
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400f41e4
mov al, 1
jmp 0x1400f433c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.14002cd40
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.14002cd40
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.14002cda0
movzx eax, al
test eax, eax
je 0x1400f4239
xor al, al
jmp 0x1400f433c
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400f42a9
cmp dword [rsp + 0x30], 1
je 0x1400f42b5
cmp dword [rsp + 0x30], 3
je 0x1400f432a
jmp 0x1400f433a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1400f4301
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x1400f4301
xor al, al
jmp 0x1400f433c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400f431b
mov dword [rsp + 0x34], 1
jmp 0x1400f4323
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1400f433c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400f433c
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400f7910
add rsp, 0xa8
ret

Function at 0x1400f6f64
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 0x1400f6f9e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400f6fa3
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 0x1400f6fec
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400ff040]
cmp byte [rcx + rax], 0
je 0x1400f6fec
dec r8
sub rdx, 1
jne 0x1400f6fd2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400f8750
Capabilities:
Parse pe header

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

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140006008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140006008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x180001020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x330
mov rbx, rcx
cmp edx, 1
jne 0x180001170
xor r8d, r8d
mov edx, 0x96000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x18002aad8], rax
call fcn.18000cd10
mov rcx, rbx
mov qword [0x180029f68], rbx
mov dword [0x180029f60], 1
call fcn.18001ad38
mov edx, 0x288
lea rcx, [0x180023dd0]
mov r8d, 5
call fcn.18000cc58
xor r8d, r8d
mov qword [0x180029f58], rax
mov edx, 0x1d0
lea rcx, [0x180023f20]
call fcn.18000cc58
mov ecx, 0x113a
mov qword [0x180029f50], rax
call fcn.18000dae4
mov rcx, rax
mov qword [rsp + 0x358], rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x358]
cmp eax, 0xffffffff
je 0x1800010db
call fcn.18000da80
xor eax, eax
jmp 0x18000115f
call fcn.18000da80
xor ebx, ebx
mov edi, 0x14
movzx eax, word [0x18002400c]
lea rcx, [rsp + 0x33]
mov word [rsp + 0x30], ax
xor edx, edx
mov al, byte [0x18002400e]
mov r8d, 0xfd
mov byte [rsp + 0x32], al
call sub.msvcrt.dll_memset
xor edx, edx
mov word [rsp + 0x130], bx
mov r8d, 0x1fe
lea rcx, [rsp + 0x132]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x130]
mov dword [rsp + 0x28], 0xff
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub rdi, 1
jne 0x1800010e7
mov eax, 1
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rdi
ret
test edx, edx
jne 0x18000115a
mov rax, qword [0x180029f58]
mov ecx, 0xaa
call qword [rax + 0x178]
jmp 0x1800010d4
Function at 0x1800137b4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
call fcn.18000dae4
mov ecx, 0xcaf
mov qword [rsp + 0x38], rax
mov rsi, rax
call fcn.18000dae4
mov ecx, 0x6b4
mov rdi, rax
call fcn.18000dae4
mov rcx, qword [0x180029fc0]
mov rbx, rax
add rcx, 0x668
mov qword [rbp + 0x1a8], rax
call fcn.18001b8b0
mov r9, qword [0x180029fc0]
lea rcx, [rsp + 0x50]
add r9, 0x124a
mov dword [rsp + 0x20], eax
mov r8, rbx
mov edx, 0x104
call fcn.180010954
lea rcx, [rbp + 0x1a8]
call fcn.18000da80
mov rcx, qword [0x180029fc0]
lea rdx, [0x180024184]
and qword [rsp + 0x28], 0
add rcx, 0x1040
mov r9, rdx
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.18000d2dc
mov rcx, rax
lea rdx, [rsp + 0x50]
mov rax, qword [0x180029f58]
xor r8d, r8d
call qword [rax + 0x240]
mov rax, qword [0x180029f58]
mov rcx, rsi
call qword [rax + 0x28]
mov rbx, rax
test rax, rax
jne 0x1800138c3
mov rax, qword [0x180029f58]
mov rcx, rsi
call qword [rax + 8]
mov rbx, rax
test rax, rax
jne 0x1800138c3
lea rcx, [rsp + 0x38]
call fcn.18000da80
or eax, 0xffffffff
jmp 0x180013a54
mov rax, qword [0x180029f58]
lea rcx, [rsp + 0x50]
call qword [rax + 8]
mov r12, rax
test rax, rax
je 0x180013a24
mov r15d, dword [rbx + 0x3c]
mov eax, dword [r15 + rbx + 0x88]
test eax, eax
je 0x180013a24
lea rsi, [rbx + rax]
xor r13d, r13d
mov r8d, dword [rsi + 0x20]
mov eax, dword [rsi + 0x24]
add r8, rbx
mov edx, dword [rsi + 0x1c]
add rax, rbx
add rdx, rbx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x40], rax
mov qword [rbp + 0x1b8], rdx
cmp dword [rsi + 0x18], r13d
jbe 0x180013a24
movzx eax, word [rax + r13*2]
mov edi, dword [rdx + rax*4]
add rdi, rbx
cmp rdi, rsi
jb 0x18001394b
mov eax, dword [r15 + rbx + 0x8c]
add rax, rsi
cmp rdi, rax
jb 0x180013a12
mov edx, dword [r8 + r13*4]
mov rcx, r12
mov rax, qword [0x180029f58]
add rdx, rbx
call qword [rax + 0x18]
mov r14, rax
test rax, rax
je 0x180013a06
mov rdx, rdi
mov r8d, 7
mov cl, byte [rax]
cmp byte [rdx], cl
jne 0x180013986
inc rdx
inc rax
sub r8, 1
jne 0x180013974
movzx ecx, byte [rdx]
movzx eax, byte [rax]
cmp ecx, eax
je 0x180013a06
cmp byte [rdi], 0xe9
jne 0x180013a06
mov rax, qword [0x180029f58]
lea r9, [rbp + 0x1a8]
and dword [rbp + 0x1a8], 0
mov edx, 8
mov rcx, rdi
lea r8d, [rdx + 0x38]
call qword [rax + 0x1f8]
test eax, eax
je 0x180013a06
mov r10d, 8
mov rdx, rdi
mov ecx, r10d
sub rdx, r14
mov al, byte [r14]
mov byte [rdx + r14], al
inc r14
sub rcx, 1
jne 0x1800139cf
and dword [rbp + 0x1b0], ecx
lea r9, [rbp + 0x1b0]
mov rax, qword [0x180029f58]
mov rdx, r10
mov r8d, dword [rbp + 0x1a8]
mov rcx, rdi
call qword [rax + 0x1f8]
mov rdx, qword [rbp + 0x1b8]
mov r8, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
inc r13d
cmp r13d, dword [rsi + 0x18]
jb 0x180013927
lea rcx, [rsp + 0x38]
call fcn.18000da80
test r12, r12
je 0x180013a40
mov rax, qword [0x180029f58]
mov rcx, r12
call qword [rax + 0x10]
mov rax, qword [0x180029f58]
lea rcx, [rsp + 0x50]
call qword [rax + 0x238]
xor eax, eax
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c83c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rsi, rcx
xor r9d, r9d
call fcn.14000cb04
nop
lea rax, [0x140016b28]
mov qword [rsi], rax
or dword [rsi + 0x30], 0xffffffff
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea rbx, [rsi + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14000c88d
mov rcx, qword [rbx]
jmp 0x14000c890
mov rcx, rbx
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
mov ebp, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.1400070ac
nop
cmp qword [rbx + 0x18], 8
jb 0x14000c8cf
mov rcx, qword [rbx]
jmp 0x14000c8d2
mov rcx, rbx
lea r9, [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov r8, rdi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
test eax, eax
je 0x14000c917
cmp word [rdi], r14w
jne 0x14000c8fc
mov r8, r14
jmp 0x14000c90a
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], r14w
jne 0x14000c900
mov rdx, rdi
mov rcx, rbx
call fcn.14000a150
jmp 0x14000c92e
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 8
jb 0x14000c927
mov rax, qword [rbx]
jmp 0x14000c92a
mov rax, rbx
mov word [rax], r14w
cmp qword [rbx + 0x18], 8
jb 0x14000c93a
mov rcx, qword [rbx]
jmp 0x14000c93d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov dword [rsi + 0x30], eax
cmp eax, 0xffffffff
je 0x14000c983
test al, 0x10
je 0x14000c983
cmp qword [rbx + 0x18], 8
jb 0x14000c961
mov rcx, qword [rbx]
jmp 0x14000c964
mov rcx, rbx
mov rax, qword [rbx + 0x10]
mov r8d, 0x5c
cmp word [rcx + rax*2 - 2], r8w
je 0x14000c983
lea edx, [r8 - 0x5b]
mov rcx, rbx
call fcn.14000d114
nop
test rdi, rdi
je 0x14000c9a5
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000f2d4
Capabilities:
Get disk information via ioctl

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov rax, qword [0x140021410]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, r8
xor r15d, r15d
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
lea r13d, [r15 + 7]
mov qword [rbp - 1], r13
mov qword [rbp - 9], r15
mov word [rbp - 0x19], r15w
lea r8, [rbp - 0x19]
call fcn.14000ee84
mov ebx, eax
test eax, eax
jne 0x14000f48e
mov edi, r15d
lea rax, [rbp - 0x51]
mov qword [rbp - 0x29], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x41], r15
mov word [rbp - 0x51], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x51]
call fcn.14000a238
nop
lea rax, [rbp - 0x51]
mov rdx, qword [rbp - 0x51]
mov r8, qword [rbp - 0x39]
cmp r8, 8
cmovae rax, rdx
cmp word [rax + 2], 0x3f
jne 0x14000f3a9
lea rax, [rbp - 0x51]
cmp r8, 8
cmovae rax, rdx
mov ecx, 0x5c
mov word [rax + 2], cx
mov r8, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x51]
lea rcx, [rbp - 0x51]
cmp r8, 8
cmovae rcx, rdx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000f43a
mov dword [rbp - 0x59], r15d
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xc
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x14000f43a
mov eax, dword [rbp + 0xb]
mov dword [r14 + 4], eax
mov eax, dword [rbp + 7]
mov dword [r14], eax
mov ebx, r15d
jmp 0x14000f454
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x39], 8
jb 0x14000f47b
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
cmp ebx, 0x80070002
jne 0x14000f48e
inc edi
cmp edi, 0x32
jl 0x14000f33e
cmp qword [rbp - 1], 8
jb 0x14000f4a5
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 1], r13
mov qword [rbp - 9], r15
mov word [rbp - 0x19], r15w
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140012f80
add rsp, 0xc0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000fb88
Capabilities:
Get disk information via ioctl

Disassembly:
mov r11, rsp
push rbp
push rdi
push r14
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140021410]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, r8
mov rsi, rdx
mov ebx, 1
and dword [rbp - 9], 0
and qword [r11 - 0x70], 0
lea rax, [rbp - 9]
mov qword [r11 - 0x78], rax
mov dword [rsp + 0x28], 0xc
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x14000fc22
mov eax, dword [rbp + 0x27]
mov dword [rbp - 1], eax
mov eax, dword [rbp + 0x2b]
mov dword [rbp + 3], eax
lea rdx, [rbp - 1]
mov rcx, r14
call fcn.14000fd18
xor ebx, ebx
jmp 0x14000fce8
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
and qword [rbp + 0x17], 0
mov edx, 0x400
lea rcx, [rbp + 7]
call fcn.14001001c
nop
mov rax, qword [rbp + 0xf]
mov rdi, qword [rbp + 7]
sub rax, rdi
and qword [rsp + 0x38], 0
lea rcx, [rbp - 9]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x560000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x14000fcad
xor esi, esi
cmp dword [rdi], esi
jbe 0x14000fcc7
xor ebx, ebx
mov dword [rbp - 1], 7
lea rcx, [rsi + rsi*2]
mov eax, dword [rdi + rcx*8 + 8]
mov dword [rbp + 3], eax
lea rdx, [rbp - 1]
mov rcx, r14
call fcn.14000fd18
inc esi
cmp esi, dword [rdi]
jb 0x14000fc87
jmp 0x14000fcc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rdi, rdi
je 0x14000fce8
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
and qword [rbp + 0x17], 0
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140012f80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001135c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140021410]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x1400114c0
cmp byte [rcx + 0x82], bl
je 0x1400114c0
mov rax, qword [rcx]
mov esi, 0xffff
mov edx, esi
mov rax, qword [rax + 0x18]
call qword [0x1400174b8]
cmp si, ax
jne 0x1400113c8
xor al, al
jmp 0x1400114c5
mov edx, 0xf
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
mov byte [rax + 8], bl
lea esi, [rdx - 0xe]
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x20]
mov rax, qword [rdx + 0x40]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x84]
call qword [0x1400174b8]
mov ecx, eax
test eax, eax
je 0x140011436
sub ecx, esi
je 0x14001143c
cmp ecx, 2
jne 0x1400114ac
jmp 0x1400114a9
mov byte [rdi + 0x82], bl
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x14001147d
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
cmp r14, rax
jne 0x1400114a6
cmp byte [rdi + 0x82], bl
je 0x1400114a3
test r14, r14
jne 0x1400113e9
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.140011680
jmp 0x1400113e9
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x1400114bc
mov rcx, qword [rbp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov al, bl
jmp 0x1400114c5
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140012f80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140012d80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140021f90], rbx
je 0x140012dcc
cmp rax, rbx
jne 0x140012dbf
mov ebx, 1
mov esi, ebx
jmp 0x140012dd1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140012da4
mov ebx, 1
mov eax, dword [0x140021f98]
cmp eax, ebx
jne 0x140012de7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140012e4c
mov eax, dword [0x140021f98]
test eax, eax
jne 0x140012e46
mov dword [0x140021f98], ebx
lea r15, [0x140017570]
lea rdi, [0x140017558]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140012e38
test eax, eax
jne 0x140012e3c
cmp qword [rdi], 0
je 0x140012e2d
mov rax, qword [rdi]
mov rcx, qword [0x1400174b8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140012e0e
test eax, eax
je 0x140012e4c
mov eax, 0xff
jmp 0x140012f28
mov dword [0x1400219a0], ebx
mov eax, dword [0x140021f98]
cmp eax, ebx
jne 0x140012e73
lea rdx, [0x140017550]
lea rcx, [0x1400174c0]
call sub.msvcrt.dll__initterm
mov dword [0x140021f98], 2
test esi, esi
jne 0x140012e80
xor eax, eax
xchg qword [0x140021f90], rax
cmp qword [0x140021fb0], 0
je 0x140012eb4
lea rcx, [0x140021fb0]
call fcn.140013430
test eax, eax
je 0x140012eb4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140021fb0]
mov r9, qword [0x1400174b8]
call r9
mov r8, qword [0x1400219b8]
mov rdx, qword [0x1400219b0]
mov ecx, dword [0x1400219a8]
call fcn.140006734
mov dword [0x14002199c], eax
cmp dword [0x1400219c0], 0
jne 0x140012ee4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400219a0], 0
jne 0x140012ef9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002199c]
jmp 0x140012f28
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140193000
add rsp, 0x28
jmp 0x140012d80

Function at 0x14001332c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140013378
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013370
cmp dword [rcx + 0x3c], edx
jl 0x140013370
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140013370
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140013378
mov rax, rdx
add rsp, 0x18
ret