joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e5500
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400e5562
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400e5557
cmp edi, eax
jb 0x1400e5557
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e5610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400e578a
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x1400e5676
cmp ax, 0x2f
je 0x1400e5676
movzx ecx, ax
call fcn.1400c6e20
test eax, eax
je 0x1400e578a
cmp word [rbx + 2], 0x3a
jne 0x1400e578a
movzx eax, word [rbx + 4]
cmp ax, 0x2f
je 0x1400e5676
cmp ax, 0x5c
jne 0x1400e578a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400e576e
test al, 0x50
jne 0x1400e576e
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e56e3
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.1400e58e0
test eax, eax
je 0x1400e5715
test r14d, r14d
je 0x1400e5729
cmp dword [rsp + 0x60], edi
jne 0x1400e5729
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400e34f0
test eax, eax
je 0x1400e5740
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x1400e575e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400e56cd
xor ecx, ecx
jmp 0x1400e56c7
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x1400ea288
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400ea296
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ea2a8
shr eax, 4
and al, 1
jmp 0x1400ea2aa
xor al, al
add rsp, 0x28
ret

Function at 0x1400ea2b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1401600b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdx, qword [rcx + 0x10]
xor ebx, ebx
test rdx, rdx
jne 0x1400ea2ee
xor al, al
jmp 0x1400ea45b
mov dword [rbp - 0x5c], 0x5c
mov eax, dword [0x140113c80]
mov dword [rbp - 0x10], eax
movzx eax, word [0x140113c84]
mov word [rbp - 0xc], ax
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400ea316
mov rax, qword [rcx]
lea r8, [rax + rdx*2]
jb 0x1400ea31f
mov rcx, qword [rcx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov r9b, byte [rbp - 0x60]
mov rdx, rcx
lea rcx, [rbp - 0x50]
call fcn.1400e9fb4
nop
mov word [rbp - 0x60], bx
mov rdx, qword [rbp - 0x48]
cmp qword [rbp - 0x40], rdx
je 0x1400ea357
mov word [rdx], bx
add rdx, 2
mov qword [rbp - 0x48], rdx
jmp 0x1400ea364
lea r8, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.1400e9eb0
mov qword [rbp - 0x58], rbx
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x10]
mov rcx, qword [rbp - 0x50]
call fcn.1400ec700
mov rdi, rax
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], bx
xor r8d, r8d
lea rdx, [0x14011bdd0]
lea rcx, [rbp - 0x30]
call fcn.140005dd4
nop
test rdi, rdi
je 0x1400ea444
test rdi, rdi
je 0x1400ea3c8
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], bx
jne 0x1400ea3b2
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.140004c90
cmp qword [rbp - 0x20], rbx
jbe 0x1400ea40a
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rbp - 0x30]
cmp eax, 0xffffffff
je 0x1400ea3f4
call fcn.1400ea288
test al, al
jmp 0x1400ea408
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400ea446
lea rax, [rbp - 0x5c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400ea412
lea rdx, [rbp - 0x5c]
lea rcx, [rbp - 0x30]
call fcn.140004c90
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call fcn.1400ec700
mov rdi, rax
test rax, rax
jne 0x1400ea3a9
mov bl, 1
lea rcx, [rbp - 0x30]
call fcn.140005cfc
nop
lea rcx, [rbp - 0x50]
call fcn.140044f6c
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140095410
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x1400ea47c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x180001290
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800012da
lea rcx, [0x180016a30]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
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 qword [0x18001cbf0], rax
test rax, rax
je 0x1800012da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180008e1c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180008e4c
xor eax, eax
jmp 0x180008f0f
mov rbp, rbx
cmp word [rax], si
je 0x180008e71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180008e58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180008e54
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180008d3c
movsxd r14, eax
test eax, eax
jne 0x180008eaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180008e45
mov rcx, r14
call fcn.18000a0ac
mov rdi, rax
test rax, rax
jne 0x180008ec8
xor ecx, ecx
call fcn.180007374
jmp 0x180008ea4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180008d3c
test eax, eax
jne 0x180008ef9
mov rcx, rdi
call fcn.180007374
jmp 0x180008f03
xor ecx, ecx
call fcn.180007374
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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
Function at 0x18000e660
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000e688
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000e688
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140009010
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140008fcc
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x14000a8d4
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14000a8f6
mov rcx, qword [rsp + 0x40]
call fcn.14000d130
jmp 0x14000a90d
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14000a90d
mov rcx, qword [rsp + 0x40]
call fcn.14000cf3c
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14000c174
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000c19f
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000c1a6
mov al, 1
jmp 0x14000c2fd
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.14000ef5c
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.14000ef5c
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.14000ef64
movzx eax, al
test eax, eax
je 0x14000c1fb
xor al, al
jmp 0x14000c2fd
mov qword [rsp + 0x68], 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 + 0x60]
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 0x14000c26b
cmp dword [rsp + 0x30], 1
je 0x14000c277
cmp dword [rsp + 0x30], 3
je 0x14000c2eb
jmp 0x14000c2fb
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000c2c3
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 0x14000c2c3
xor al, al
jmp 0x14000c2fd
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000c2dd
mov dword [rsp + 0x34], 1
jmp 0x14000c2e5
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
jmp 0x14000c2fd
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000c2fd
xor al, al
add rsp, 0xa8
ret
Function at 0x14000cf3c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x14000cf6c
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x14000cfee
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14000cfba
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14000cfc2
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000cf61
mov qword [rsp + 8], 0xe3
jmp 0x14000d006
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x14000d08d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14000d057
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x14000d05f
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000cff9
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14000d0e1
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14000d0e9
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x14000d130
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x14000d151
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x14000d1d5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14000d1a0
mov dword [rsp + 4], 0x9908b0df
jmp 0x14000d1a8
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000d144
add rsp, 0x18
ret
Function at 0x14000e5ac
Capabilities:
Terminate process

Disassembly:
push rdi
mov eax, 0x307090
call fcn.140012600
sub rsp, rax
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x2c], 0xa
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x306f42
rep stosb byte [rdi], al
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x20]
call fcn.14000a744
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140008988
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.14000a1bc
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.14000499c
nop
lea rcx, [rsp + 0x40]
call fcn.140009bac
lea rdx, [0x14001d018]
lea rcx, [rsp + 0xd8]
call fcn.14000ebfc
lea rcx, [rsp + 0xd8]
call fcn.14000e04c
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x48]
call fcn.14000b1d0
movzx eax, al
test eax, eax
jne 0x14000e68d
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x88]
call fcn.14000499c
nop
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x88]
call fcn.14000eef8
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x88]
call fcn.14000dff4
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140008708
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xf8]
call fcn.14000ae60
nop
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xb8]
call fcn.1400054d4
nop
lea rcx, [rsp + 0xb8]
call fcn.14000e04c
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x70]
call fcn.1400090b0
nop
mov dword [rsp + 0x24], 0
jmp 0x14000e749
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xb8]
call fcn.14000581c
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x14000e793
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
movsx eax, byte [rcx + rax]
xor eax, 0xa
xor eax, 8
mov byte [rsp + 0x21], al
lea rdx, [rsp + 0x21]
lea rcx, [rsp + 0x70]
call fcn.1400104a8
jmp 0x14000e73f
lea rcx, [rsp + 0x70]
call fcn.1400105f4
nop
lea rcx, [rsp + 0x70]
call fcn.140009db4
nop
lea rcx, [rsp + 0xb8]
call fcn.140004c38
nop
lea rcx, [rsp + 0xf8]
call fcn.140004c38
nop
lea rcx, [rsp + 0x88]
call fcn.140004c38
nop
lea rcx, [rsp + 0xd8]
call fcn.140004c38
add rsp, 0x307090
pop rdi
ret
Function at 0x14000f704
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x1408
call fcn.140012600
sub rsp, rax
cmp dword [0x14001d580], 0
je 0x14000f887
cmp qword [0x14001d560], 0
jne 0x14000f887
mov rcx, qword [rsp + 0x1410]
call fcn.14000f890
movzx eax, al
test eax, eax
je 0x14000f887
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x60000
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000e390
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140007358
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x38]
call fcn.14000d984
mov qword [rsp + 0x48], rax
jmp 0x14000f79b
mov rax, qword [rsp + 0x30]
add rax, 0x30
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x30], rax
je 0x14000f873
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
cmp qword [rsp + 0x1410], rax
jbe 0x14000f86e
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x18]
cmp qword [rsp + 0x1410], rax
jae 0x14000f86e
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [0x14001d560], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [0x14001d568], rax
mov byte [0x14001d570], 0
lea rcx, [rsp + 0x20]
call fcn.14000a9e0
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140009010
mov r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140009080
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140006110
mov dword [0x14001d574], eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140006110
mov dword [0x14001d578], eax
lea rcx, [rsp + 0x50]
call fcn.140009dcc
jmp 0x14000f887
jmp 0x14000f78d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x1408
ret
Function at 0x1400110b8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x1400110dd
xor eax, eax
jmp 0x1400112a3
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x140011106
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x1400112a3
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x1400111a5
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140004898
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140005478
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x140011293
mov rcx, qword [rsp + 0x70]
call fcn.14000d32c
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x140011246
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x140011244
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x1400112a3
jmp 0x1400111cb
cmp qword [rsp + 0x20], 0
jbe 0x140011293
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret