joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013cdc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx]
lea r15, [rcx + 0x10]
xor r13d, r13d
mov qword [rcx + 8], rax
mov r12, rdx
mov r14, rcx
mov word [rax], r13w
mov rdi, qword [rcx + 8]
lea esi, [r13 + 7]
sub rdi, qword [rcx]
sar rdi, 1
mov rax, qword [r14]
cmp rax, r15
jne 0x140013d2f
mov rbx, rsi
jmp 0x140013d38
mov rbx, qword [r15]
sub rbx, rax
sar rbx, 1
sub rbx, rdi
lea rbp, [rax + rdi*2]
cmp rbx, 0x7fffffff
jbe 0x140013d4d
or eax, 0xffffffff
jmp 0x140013d50
lea eax, [rbx + rbx]
mov dword [rsp + 0x70], eax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x70]
shr ecx, 1
mov dword [rsp + 0x70], ecx
test eax, eax
jne 0x140013da5
mov edx, r13d
test ecx, ecx
je 0x140013dc1
lea r8d, [rcx - 1]
cmp word [rbp + r8*2], r13w
jne 0x140013dc1
mov dword [rsp + 0x70], r8d
mov ecx, r8d
jmp 0x140013dc1
cmp eax, 0xea
jne 0x140013db3
mov edx, 1
jmp 0x140013dc1
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov eax, ecx
test edx, edx
je 0x140013df5
js 0x140013df8
cmp rax, rbx
jbe 0x140013dee
lea rdx, [rax + rdi]
cmp rdx, rax
jb 0x140013de7
mov rcx, r14
call fcn.14000a558
test al, al
jne 0x140013d22
mov edx, 0x8007000e
jmp 0x140013df8
mov edx, 0x8000ffff
jmp 0x140013df8
add rdi, rax
mov rax, qword [r14]
cmp rax, r15
je 0x140013e09
mov rsi, qword [r15]
sub rsi, rax
sar rsi, 1
cmp rdi, rsi
jbe 0x140013e10
int 0x2c
mov rbx, qword [rsp + 0x60]
lea rcx, [rax + rdi*2]
mov rbp, qword [rsp + 0x68]
mov eax, edx
mov rsi, qword [rsp + 0x78]
mov qword [r14 + 8], rcx
mov word [rcx], r13w
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140014dec
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400cabe8]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor r12d, r12d
mov rsi, rcx
mov r14d, r12d
mov r15d, 0x1000000
mov ebx, r12d
mov ebp, r12d
cmp qword [rcx + 8], r12
jne 0x140014e4c
lea rcx, str.load__modname____you_must_specify_a_module_to_load_n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
xor eax, eax
jmp 0x140015005
mov ecx, 0x104
lea rax, [rsp + 0x260]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x50]
mov rcx, qword [rsi]
xor edx, edx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.msvcrt.dll__wsplitpath_s]
nop dword [rax + rax]
cmp word [rsp + 0x260], r12w
jne 0x140014ea8
mov rdi, qword [0x1400d5ba8]
mov r14d, 1
jmp 0x140014eda
lea rdx, str..pdb
lea rcx, [rsp + 0x260]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140014ed3
mov rdi, qword [0x1400d5ba8]
lea ebp, [rax + 1]
jmp 0x140014eda
mov rdi, qword [0x1400d5880]
cmp qword [0x1400d5238], r12
je 0x140014ee8
call fcn.140014d24
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x140014ef1
lea rdx, [rsp + 0x50]
lea rcx, [0x1400d5ef8]
call fcn.14000ce38
test al, al
jne 0x140014f2b
mov rdx, qword [rsi]
lea rcx, str.error_out_of_memory_loading__ls_n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
jmp 0x140014e45
test ebp, ebp
jne 0x140014f72
mov rcx, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov r15d, eax
mov r8, qword [rsi]
lea r9, [rsp + 0x50]
mov rcx, qword [0x1400d5888]
mov rdx, rbx
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.dbghelp.dll_SymLoadModuleExW]
nop dword [rax + rax]
test rax, rax
jne 0x140014fe4
mov rax, qword [0x1400d5ef8]
mov qword [0x1400d5f00], rax
mov word [rax], r12w
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8, qword [rsi]
lea rcx, str.error_0x_x_loading__ls._n
mov edx, eax
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
jmp 0x140014e45
mov qword [0x1400d5238], rax
cmp rbx, 0xffffffffffffffff
je 0x140015000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140023980
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14001734c
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x278
mov rax, qword [0x1400cabe8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebx, dword [0x1400cbb3c]
mov r12, r9
mov r15, r8
mov r13, rdx
mov rdi, rcx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov r14, rax
call qword [sym.imp.dbghelp.dll_SymInitialize]
nop dword [rax + rax]
mov ebp, 0x680
test ebx, ebx
je 0x1400173d1
xor r8d, r8d
lea rdx, [0x140001a90]
mov rcx, r14
mov ebp, 0x80000680
call qword [sym.imp.dbghelp.dll_SymRegisterCallback64]
nop dword [rax + rax]
mov ecx, ebp
call qword [sym.imp.dbghelp.dll_SymSetOptions]
nop dword [rax + rax]
mov eax, dword [r12]
lea rcx, [rsp + 0x40]
mov ebx, 0x104
mov r9d, 2
mov qword [rsp + 0x38], rbx
mov r8, rdi
mov qword [rsp + 0x30], rcx
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.dbghelp.dll_SymGetSymbolFile]
nop dword [rax + rax]
test eax, eax
jne 0x14001750c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
cmp eax, 2
jne 0x14001750c
xor eax, eax
cmp byte [rdi], al
je 0x140017449
inc rax
cmp byte [rax + rdi], 0
jne 0x140017440
mov rcx, rdi
cmp rax, 2
jb 0x14001745c
cmp byte [rdi + 1], 0x3a
jne 0x14001745c
lea rcx, [rdi + 2]
add rax, rdi
mov rdx, rax
jmp 0x140017476
dec rax
cmp byte [rax], 0x2e
je 0x14001747d
cmp byte [rax], 0x2f
je 0x140017494
cmp byte [rax], 0x5c
je 0x140017494
cmp rax, rcx
jne 0x140017464
jmp 0x140017494
mov rdx, rax
jmp 0x14001748f
dec rax
cmp byte [rax], 0x2f
je 0x140017494
cmp byte [rax], 0x5c
je 0x140017494
cmp rax, rcx
jne 0x140017482
cmp byte [rdx], 0x2e
lea rax, [rdx + 1]
mov r9, r13
lea r8, str._s_s
cmovne rax, rdx
lea rcx, [rsp + 0x150]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.14000fa88
mov eax, dword [r12]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x150]
mov qword [rsp + 0x30], rcx
xor esi, esi
mov qword [rsp + 0x28], rax
mov r8, rdi
xor ecx, ecx
mov qword [rsp + 0x20], r15
lea r9d, [rsi + 2]
call qword [sym.imp.dbghelp.dll_SymGetSymbolFile]
nop dword [rax + rax]
test eax, eax
jne 0x14001750c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, r14
call qword [sym.imp.dbghelp.dll_SymCleanup]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140023980
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140017704
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 0x10]
mov byte [rbp - 0x10], 0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov dword [0x1400caaf0], 1
mov edx, 0x104
mov qword [rbp - 0x18], rax
call fcn.140017800
test al, al
je 0x1400177d2
mov rdx, qword [rbp - 0x20]
lea rcx, str._NT_SYMBOL_PATH
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x104
jbe 0x140017796
mov edx, ebx
lea rcx, [rbp - 0x20]
call fcn.140017800
test al, al
je 0x1400177d2
mov rdx, qword [rbp - 0x20]
lea rcx, str._NT_SYMBOL_PATH
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
je 0x1400177d2
mov r8, qword [rbp - 0x18]
lea rcx, [0x1400caab0]
mov rdx, qword [rbp - 0x20]
sub r8, rdx
call fcn.140016d60
test al, al
je 0x1400177d2
mov rax, qword [0x1400d63c8]
test rax, rax
je 0x1400177d2
mov rdx, qword [rbp - 0x20]
lea rcx, str._NT_SYMBOL_PATH___s
call qword [0x140027658]
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x1400177eb
lea rdx, [0x1400278bf]
call fcn.1400246a0
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rbp
ret
Function at 0x140023780
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400d6418], rbx
je 0x1400237cc
cmp rax, rbx
jne 0x1400237bf
mov ebx, 1
mov esi, ebx
jmp 0x1400237d1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400237a4
mov ebx, 1
mov eax, dword [0x1400d6420]
cmp eax, ebx
jne 0x1400237e7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14002384c
mov eax, dword [0x1400d6420]
test eax, eax
jne 0x140023846
mov dword [0x1400d6420], ebx
lea r15, [0x140027708]
lea rdi, [0x1400276f0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140023838
test eax, eax
jne 0x14002383c
cmp qword [rdi], 0
je 0x14002382d
mov rax, qword [rdi]
mov rcx, qword [0x140027658]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14002380e
test eax, eax
je 0x14002384c
mov eax, 0xff
jmp 0x140023928
mov dword [0x1400cb570], ebx
mov eax, dword [0x1400d6420]
cmp eax, ebx
jne 0x140023873
lea rdx, [0x1400276e8]
lea rcx, [0x140027660]
call sub.msvcrt.dll__initterm
mov dword [0x1400d6420], 2
test esi, esi
jne 0x140023880
xor eax, eax
xchg qword [0x1400d6418], rax
cmp qword [0x1400d6438], 0
je 0x1400238b4
lea rcx, [0x1400d6438]
call fcn.140024100
test eax, eax
je 0x1400238b4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400d6438]
mov r9, qword [0x140027658]
call r9
mov r8, qword [0x1400cb588]
mov rdx, qword [0x1400cb580]
mov ecx, dword [0x1400cb578]
call fcn.140002e00
mov dword [0x1400cb56c], eax
cmp dword [0x1400cb590], 0
jne 0x1400238e4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400cb570], 0
jne 0x1400238f9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400cb56c]
jmp 0x140023928
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14016f000
add rsp, 0x28
jmp 0x140023780

Function at 0x140023fec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140024038
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024030
cmp dword [rcx + 0x3c], edx
jl 0x140024030
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140024030
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140024038
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180002ad0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002af8
xor eax, eax
lea r8, [0x1800029a0]
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 eax, 1
add rsp, 0x38
ret

Function at 0x180004000
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180004220
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180004107
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004064
mov rax, qword [0x18002a008]
cmp qword [rsp + 0x20], rax
ja 0x180004064
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004026
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180004093
jmp 0x180004107
cmp dword [rsp + 0x50], 0x10000
jne 0x1800040ea
cmp qword [rsp + 0x48], 0x10000
jb 0x1800040ea
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800040d8
mov rax, qword [rsp + 0x28]
jmp 0x180004109
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004102
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004220
mov qword [rsp + 0x20], rax
jmp 0x180004026
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004110
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180004260
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004213
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18000416b
mov rax, qword [0x18002a008]
cmp qword [rsp + 0x20], rax
ja 0x18000416b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18000412d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000419a
jmp 0x180004213
cmp dword [rsp + 0x50], 0x10000
jne 0x1800041f1
cmp qword [rsp + 0x48], 0x10000
jb 0x1800041f1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800041df
mov rax, qword [rsp + 0x28]
jmp 0x180004215
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000420e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004260
mov qword [rsp + 0x20], rax
jmp 0x18000412d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800042b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004840
mov qword [rsp + 0x28], 0
cmp qword [0x18002a318], 0
jne 0x1800042f8
cmp qword [0x18002a310], 0
je 0x1800042f8
mov rax, qword [0x18002a310]
mov qword [0x18002a318], rax
cmp qword [0x18002a318], 0
je 0x18000439e
mov rax, qword [0x18002a318]
cmp qword [rax + 0x10], 0
je 0x18000439e
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000439e
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000439e
mov rax, qword [0x18002a318]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004364
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000436b
xor eax, eax
jmp 0x180004519
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004519
mov rax, qword [0x18002a310]
mov qword [0x18002a318], rax
jmp 0x1800043c0
mov rax, qword [0x18002a318]
mov rax, qword [rax + 8]
mov qword [0x18002a318], rax
cmp qword [0x18002a318], 0
je 0x18000440d
cmp qword [0x18002a318], 0
je 0x18000440b
mov rax, qword [0x18002a318]
cmp qword [rax + 0x10], 0
je 0x18000440b
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000440b
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000440b
jmp 0x18000433c
jmp 0x1800043ae
mov rcx, qword [rsp + 0x60]
call fcn.180006470
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004520
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004517
mov rax, qword [rsp + 0x48]
mov qword [0x18002a318], rax
mov rax, qword [0x18002a318]
mov dword [rax], 0x52727464
mov rax, qword [0x18002a318]
mov qword [rax + 0x10], 0
mov rax, qword [0x18002a318]
mov rcx, qword [0x18002a310]
mov qword [rax + 8], rcx
mov rax, qword [0x18002a318]
mov qword [0x18002a310], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18002a318]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800044c8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004502
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800044be
mov rax, qword [0x18002a318]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000433c
xor eax, eax
add rsp, 0x58
ret
Function at 0x401d50
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc38
xor r9d, r9d
mov word [rcx], r9w
movzx eax, word [rdx]
mov rbx, rcx
mov rsi, r8
test ax, ax
je 0x401e48
lea rdi, [rdx + 2]
xor edx, edx
jmp 0x401da0
test rdx, rdx
je 0x401e28
mov word [rdx], ax
add rdx, 2
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x401e48
cmp ax, 0x25
jne 0x401d80
test rdx, rdx
je 0x401e60
xor ecx, ecx
lea r12, [rsp + 0x430]
mov word [rdx], cx
lea rdx, str.TEMP
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x401f18
lea rdx, str.PROGRAM
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x401f28
lea rdx, [0x0040c18c]
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x401ee0
lea rdx, str.TIME
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x401e80
xor eax, eax
add rsp, 0xc38
pop rbx
pop rsi
pop rdi
pop r12
ret
test rsi, rsi
je 0x401e14
mov word [rbx], ax
movzx eax, word [rdi]
sub rsi, 1
add rbx, 2
add rdi, 2
test ax, ax
jne 0x401da0
xor eax, eax
mov word [rbx], ax
mov eax, 1
add rsp, 0xc38
pop rbx
pop rsi
pop rdi
pop r12
ret
xor r8d, r8d
lea rdx, [rsp + 0x430]
mov word [rsp + 0x430], r8w
jmp 0x401d90
lea rcx, [rsp + 0x28]
lea r12, [rsp + 0x30]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x28]
mov rcx, r12
lea r8, str._lld
mov edx, 0x400
call fcn.004017c0
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.00401c50
jmp 0x401ed0
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x401ec8
xor edx, edx
jmp 0x401d90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r12, [rsp + 0x30]
mov edx, pe_nt_image_headers64
lea r8, [0x0040c194]
mov rcx, r12
mov r9d, eax
call fcn.004017c0
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.00401c50
jmp 0x401ed0
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x401ed0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp word [rbx], 0
mov rdx, rsi
mov rcx, qword [rax]
mov rax, rbx
je 0x401f5e
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x401f50
movzx r8d, word [rcx]
test r8w, r8w
je 0x401f93
test rdx, rdx
jne 0x401f79
jmp 0x401f9d
test rdx, rdx
je 0x4098ea
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x401f70
xor edx, edx
mov word [rax], dx
jmp 0x401ed0
jmp 0x4098ea

Function at 0x4023a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov ecx, 2
call fcn.00409590
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 0x58]
mov ecx, 2
call fcn.00409590
mov r8, rbx
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
inc byte [rax - 0x5267399d]
xor dword ss:[rbx], edi
jp 0x140020a20
pop rax
sub al, 0x78
sub eax, 0x54219e24
jg 0x1400209fe
test bl, 0x1d
in al, 0xdd
pop rbp
push rbx
lahf
clc
mov edi, dword [rsi]
mov al, byte [rax - 0x10]
jnp 0x1400209f4
sal dword [rbp + riz*2 - 0x22], 0x89
cmp byte [rdi - 0x16], 0x7e
fimul word [rcx + 0x7eea7f80]
cmp ebx, esi
push 0xffffffff96b9358d
or dh, cl
xor eax, 0xf10a96b9
int 0xbd
mov ah, 7
sbb eax, 0x1dcb45d5
scasb al, byte [rdi]
or byte [r13 - 0x28aa834c], dil
add byte [rax - 0x2f77d245], dl
sbb dword [rcx - 0x6f], edi
mov bh, 0x6d
and eax, 0xfb4565f7
ret