joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cb50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14001cb6b
mov qword [r8], 0
call fcn.14001ccb0
mov rbx, rax
test rax, rax
jne 0x14001cb81
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14001cc89
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001cc89
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001cc89
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001cc89
cmp rdi, 0xffffffffffffffff
je 0x14001cc89
mov rdx, qword [0x140088630]
lea rcx, [rdi + rbp]
call qword [0x140087740]
mov rsi, rax
mov rax, qword [0x140088620]
test rax, rax
je 0x14001cc16
inc dword [rax + 0xf0]
test rsi, rsi
je 0x14001cc89
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x14001cc61
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140088620]
test rax, rax
je 0x14001cc4f
dec dword [rax + 0xf0]
mov rdx, qword [0x140088630]
mov rcx, rsi
call qword [0x140087748]
jmp 0x14001cc92
test ebp, ebp
jle 0x14001cc73
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14001cc84
mov qword [r14], rdi
mov rax, rsi
jmp 0x14001cc94
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x14001d0d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14001d12d
lea rbx, [0x1400568f0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14001d114
cmp r10, 2
jb 0x14001d114
cmp byte [r9], r8b
jne 0x14001d114
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14001d0f0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001d16f
lea rbx, [0x1400568f0]
cmp r8b, 0x23
jne 0x14001d153
cmp byte [r9], r8b
jne 0x14001d153
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14001d140
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14001ed50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5db8], 0
lea rbx, [rcx + 0x5dc0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001edf7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001edaa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14002d200
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14002cb30
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5db8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5dc8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140088628]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001edff
mov rcx, rbx
call fcn.14002cb30
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140027280
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x140088620]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5d14], ecx
test rbx, rbx
je 0x1400272ef
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140027300
lea rdx, [0x140058264]
mov rcx, rbx
mov rdi, rax
call fcn.14001ccb0
mov rbx, rax
test rax, rax
je 0x1400272ea
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x14002b5f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x140088620]
cmp byte [rbx + 0x5d11], 0
jne 0x14002b74a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002b743
lea rdx, [0x140058260]
mov qword [rsp + 0x40], rdi
call fcn.14001ccb0
mov rdi, rax
test rax, rax
je 0x14002b73e
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14002b72b
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14002b72b
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14002b72b
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14002b72b
cmp rsi, 0xffffffffffffffff
je 0x14002b72b
mov rdx, qword [0x140088630]
mov rcx, rsi
call qword [0x140087740]
mov rbp, rax
mov rax, qword [0x140088620]
test rax, rax
je 0x14002b6c8
inc dword [rax + 0xf0]
test rbp, rbp
je 0x14002b72b
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14002b6f1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14002b707
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14002b707
mov rdx, rsi
mov rcx, rbp
call fcn.14001e8b0
mov rax, qword [0x140088620]
test rax, rax
je 0x14002b719
dec dword [rax + 0xf0]
mov rdx, qword [0x140088630]
mov rcx, rbp
call qword [0x140087748]
jmp 0x14002b734
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5d11], 1
movss xmm0, dword [rbx + 0x5d14]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14002b78d
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5d14], xmm0
jb 0x14002b78d
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002b77c
call fcn.140027280
jmp 0x14002b783
mov byte [rbx + 0xd6], 1
mov dword [rbx + 0x5d14], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400447d0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14001bec0
test rax, rax
je 0x1400447ee
call fcn.14001c260
mov rbx, qword [rax + 0x88]
jmp 0x1400447f0
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14004481b
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400453f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140088620]
mov rcx, qword [rax + 0x4bd8]
mov r10, qword [rax + 0x3f08]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x240], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a0]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp 0x14003a340

Function at 0x1400454c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140088620]
mov rcx, qword [rax + 0x4bd8]
mov r9, qword [rax + 0x3f08]
movups xmm0, xmmword [r9 + 0x240]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x2a0]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x240], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x226]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x2a0]
add rsp, 0x38
jmp 0x14003a340
Function at 0x1400515e0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140051791
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14000a980
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140051756
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1400516d0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140051745
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14005170d
mov r10, qword [rdx]
cmp r10, rax
je 0x140051707
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 0x140051745
cmp r9, rdx
je 0x140051721
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14005176b
cmp r9, rdx
jne 0x140051712
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
jne 0x140051680
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
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 0x140051745
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3

Function at 0x14005241c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0xffffffff
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_Sleep]

Function at 0x140001b00
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rdi, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
mov r8, rdi
sub r8, rdx
nop dword [rax + rax]
movzx ecx, word [rdx]
movzx eax, word [rdx + r8]
sub ecx, eax
jne 0x1406ba3c4
add rdx, 2
test eax, eax
jne 0x1406ba3b0
test ecx, ecx
je 0x1406ba3eb
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1406ba3a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1406ba570
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
movsxd rdx, ecx
lea rcx, [0x1406ba520]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [0x14079e070]
add rsp, 0x28
ret
Function at 0x1406c04b0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
cmp qword [rdx + 0x18], 7
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x90], rdx
jbe 0x1406c04e4
mov rax, qword [rdx]
mov qword [rsp + 0x90], rax
cmp qword [rcx + 0x18], 7
mov qword [rsp + 0x98], r13
jbe 0x1406c04fe
mov rax, qword [rcx]
mov qword [rsp + 0x98], rax
mov ecx, WSACleanup
xor edx, edx
call fcn.1406ba5a0
mov ecx, 0x75
mov edx, 1
movzx r15d, ax
call fcn.1406ba5a0
mov ecx, WSASetLastError
mov edx, 2
movzx r14d, ax
call fcn.1406ba5a0
mov ecx, 0x61
mov edx, 3
movzx ebp, ax
call fcn.1406ba5a0
mov ecx, reloc.WS2_32.dll_WSAStartup
mov edx, 4
movzx esi, ax
call fcn.1406ba5a0
xor ecx, ecx
mov edx, 5
movzx edi, ax
call fcn.1406ba5a0
movzx ecx, word [0x14075f32c]
mov edx, 6
movzx ebx, ax
call fcn.1406ba5a0
movzx ecx, word [0x14075f32e]
mov edx, 7
movzx r9d, ax
call fcn.1406ba5a0
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_46]
mov edx, 8
movzx r8d, ax
call fcn.1406ba5a0
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
mov edx, 9
movzx r11d, ax
call fcn.1406ba5a0
movzx ecx, word [0x14075f334]
mov edx, 0xa
movzx r10d, ax
call fcn.1406ba5a0
mov ecx, 0x133
xor r15w, cx
mov ecx, 0x134
xor r14w, cx
mov word [rsp + 0x30], r15w
mov ecx, 0x135
mov word [rsp + 0x32], r14w
xor bp, cx
mov ecx, 0x136
xor si, cx
mov word [rsp + 0x34], bp
mov ecx, 0x137
mov word [rsp + 0x36], si
xor di, cx
mov ecx, 0x138
xor bx, cx
mov word [rsp + 0x38], di
mov ecx, 0x139
mov word [rsp + 0x3a], bx
xor r9w, cx
mov ecx, 0x13a
xor r8w, cx
mov word [rsp + 0x3c], r9w
mov r9, qword [rsp + 0x90]
mov ecx, 0x13b
xor r11w, cx
mov word [rsp + 0x3e], r8w
mov ecx, 0x13c
mov word [rsp + 0x40], r11w
xor r10w, cx
mov ecx, 0x13d
xor ax, cx
mov word [rsp + 0x42], r10w
xor edi, edi
mov word [rsp + 0x44], ax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov word [rsp + 0x46], di
mov r8, qword [rsp + 0x98]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [r13 + 0x18]
lea rbx, [r13 + 0x18]
cmp rdx, 7
jbe 0x1406c06db
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1406c06d6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1406c0753
mov rcx, r8
lea rbx, [r13 + 0x18]
call fcn.140741b18
mov qword [r13 + 0x10], rdi
mov qword [rbx], 7
mov word [r13], di
mov rdx, qword [r12 + 0x18]
cmp rdx, 7
jbe 0x1406c0728
mov rcx, qword [r12]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1406c0723
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1406c0753
mov rcx, r8
call fcn.140741b18
mov rbx, qword [rsp + 0xa0]
mov qword [r12 + 0x10], rdi
mov qword [r12 + 0x18], 7
mov word [r12], di
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1406c0760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r14, [rcx + 0x18]
cmp qword [r14], 7
mov rdi, rcx
mov dword [rsp + 0x60], r15d
jbe 0x1406c0791
mov rcx, qword [rcx]
lea rsi, [rdi + 0x18]
jmp 0x1406c0794
mov rsi, r14
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1406c0815
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x1406c0809
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1406c0801
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1406c090b
mov rcx, r8
call fcn.140741b18
mov r14, rsi
mov qword [r14], 7
jmp 0x1406c08ed
cmp rbp, 0xffffffffffffffff
jne 0x1406c086b
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x1406c085d
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1406c0858
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1406c090b
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.140741b18
mov qword [rsi], 7
xor al, al
jmp 0x1406c08ef
lea r9, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov r8d, 0x23c00
mov qword [rsp + 0x20], r15
lea rdx, [0x140774360]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [r14]
test bl, bl
mov rbx, qword [rsp + 0x68]
je 0x1406c081e
cmp rdx, 7
jbe 0x1406c08e6
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1406c08e1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1406c090b
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.140741b18
mov qword [rsi], 7
mov al, 1
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov word [rdi], r15w
mov qword [rdi + 0x10], r15
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1406c0920
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r14, [rcx + 0x18]
cmp qword [r14], 7
mov rdi, rcx
mov dword [rsp + 0x60], r15d
jbe 0x1406c0951
mov rcx, qword [rcx]
lea rsi, [rdi + 0x18]
jmp 0x1406c0954
mov rsi, r14
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1406c09d5
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x1406c09c9
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1406c09c1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1406c0acb
mov rcx, r8
call fcn.140741b18
mov r14, rsi
mov qword [r14], 7
jmp 0x1406c0aad
cmp rbp, 0xffffffffffffffff
jne 0x1406c0a2b
mov rdx, qword [r14]
cmp rdx, 7
jbe 0x1406c0a1d
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1406c0a18
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1406c0acb
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.140741b18
mov qword [rsi], 7
xor al, al
jmp 0x1406c0aaf
lea r9, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov r8d, 0x1a00
mov qword [rsp + 0x20], r15
lea rdx, [0x14079b330]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [r14]
test bl, bl
mov rbx, qword [rsp + 0x68]
je 0x1406c09de
cmp rdx, 7
jbe 0x1406c0aa6
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1406c0aa1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1406c0acb
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.140741b18
mov qword [rsi], 7
mov al, 1
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov word [rdi], r15w
mov qword [rdi + 0x10], r15
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3