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

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000e760
sub rsp, rax
mov rdi, r8
mov rsi, rdx
lea rdx, [0x14001b52c]
call fcn.1400043d0
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call fcn.140008310
mov rdi, rax
test rbx, rbx
je 0x140008529
test rax, rax
je 0x14000851c
lea rsi, [rsp + 0x20]
nop word [rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140008518
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x1400084c8
mov rcx, rbx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008480
mov rcx, rbx
call sub.msvcrt.dll_clearerr
jmp 0x1400084f1
mov r9, rdi
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x1400084e9
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140008480
mov rcx, rdi
call sub.msvcrt.dll_clearerr
mov esi, 0xffffffff
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov eax, esi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
xor esi, esi
jmp 0x1400084f6
test rbx, rbx
je 0x140008529
mov rcx, rbx
call sub.msvcrt.dll_fclose
test rdi, rdi
je 0x140008536
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov esi, 0xffffffff
jmp 0x140008506
Function at 0x1400085a0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000e760
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
mov rdx, rcx
lea rbp, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, rsi
call fcn.140008e10
mov edx, 1
lea rcx, [0x140007a60]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov r12, qword [fcn.140016970]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rdi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call r12
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rdi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140008748
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002cc0
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140008930
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x140008a20
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.14000f0b0
test eax, eax
js 0x140008a20
mov rcx, r12
call fcn.14000f150
movsxd rbx, eax
cmp rbx, rdi
jb 0x140008a20
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140008a20
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call fcn.14000f0b0
test eax, eax
js 0x140008a20
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x140008a20
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140008a0a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140008a40
mov rbx, r15
test rbx, rbx
jne 0x1400089f0
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140008999
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140008a22
Function at 0x140008f90
Capabilities:
Create directory

Disassembly:
push r13
mov eax, 0x2068
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e760
sub rsp, rax
mov rsi, rcx
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140009090
xor ebx, ebx
lea rdi, [rsp + 0x60]
mov rcx, rbx
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140009006
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, rdi
lea r8, str.D:_A__FA____s_
test rbx, rbx
cmovne r9, rbx
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rcx, rdi
mov dword [rsp + 0x40], 0x18
mov edx, 1
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140009120
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x2068
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r12, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r12
mov rdi, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, 1
call rdi
test eax, eax
jne 0x1400090c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140008fe6
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov r13, rdx
call sub.msvcrt.dll_calloc
mov rcx, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x140008fe6
mov qword [rsp + 0x20], r12
mov r9d, r13d
mov r8, rax
mov edx, 1
call rdi
lea rdi, [rsp + 0x60]
test eax, eax
je 0x140008fed
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x140008fed
mov eax, 0xffffffff
jmp 0x140009076

Function at 0x140009750
Capabilities:
Hash data with crc32

Disassembly:
push rbx
mov r10d, 0x80000000
test ecx, ecx
je 0x1400097c4
mov r11d, 3
lea rbx, [0x14001b7e0]
jmp 0x140009778
add r11d, 1
sar ecx, 1
je 0x1400097c4
test cl, 1
je 0x140009770
mov eax, r11d
mov edx, r10d
mov r8d, 0x80000000
xor r10d, r10d
and eax, 0x1f
mov r9d, dword [rbx + rax*4]
jmp 0x1400097ab
mov eax, edx
shr edx, 1
and eax, 1
shr r8d, 1
neg eax
and eax, 0xedb88320
xor edx, eax
test r9d, r8d
je 0x140009798
lea eax, [r8 - 1]
xor r10d, edx
test eax, r9d
jne 0x140009798
add r11d, 1
sar ecx, 1
jne 0x140009778
mov eax, r10d
pop rbx
ret
Function at 0x14000d9a0
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.140016970
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.140016970
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 0x14000da10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140024364]
mov rbx, rcx
test esi, esi
jle 0x14000db40
mov rax, qword [0x140024368]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000da5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000dae5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000da40
mov rcx, rbx
call fcn.14000e480
mov rdi, rax
test rax, rax
je 0x14000db62
mov rax, qword [0x140024368]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e5c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140024368]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000db47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000dade
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000daf0
add dword [0x140024364], 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 [0x140024368]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000dade
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000d9a0
nop dword [rax]
xor esi, esi
jmp 0x14000da68
mov rax, qword [0x140024368]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000d9a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000d9a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e0f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400243c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400243a0]
test rbx, rbx
je 0x14000e14c
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 rsi, rsi
je 0x14000e143
test eax, eax
jne 0x14000e143
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e128
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 0x14000e480
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000e500
Capabilities:
Parse pe header

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

Function at 0x14000e5c0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x428
mov esi, 0x400
mov rbp, rcx
mov rbx, rdx
lea rdi, [rsp + 0x20]
jmp 0x402b75
sub rbx, rax
je 0x402ba4
cmp rbx, 0x400
mov r8, rsi
mov r9, rbp
mov rcx, rdi
cmovle r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
test rax, rax
jne 0x402b70
add rsp, 0x428
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 1
add rsp, 0x428
pop rbx
pop rsi
pop rdi
pop rbp
ret
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
jne 0x402be0
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
call qword [sym.imp.msvcrt.dll__fileno]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
and ah, 0x7f
cmp eax, 1
je 0x402c10
mov rdx, rbx
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x402b50
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.00459710
test eax, eax
jne 0x402bff
jmp 0x402bd1

Function at 0x402bc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x428
mov esi, 0x400
mov rbp, rcx
mov rbx, rdx
lea rdi, [rsp + 0x20]
jmp 0x402b75
sub rbx, rax
je 0x402ba4
cmp rbx, 0x400
mov r8, rsi
mov r9, rbp
mov rcx, rdi
cmovle r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
test rax, rax
jne 0x402b70
add rsp, 0x428
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 1
add rsp, 0x428
pop rbx
pop rsi
pop rdi
pop rbp
ret
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
jne 0x402be0
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
call qword [sym.imp.msvcrt.dll__fileno]
mov ecx, eax
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
and ah, 0x7f
cmp eax, 1
je 0x402c10
mov rdx, rbx
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x402b50
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call fcn.00459710
test eax, eax
jne 0x402bff
jmp 0x402bd1

Function at 0x402c30
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ebx, dword [r9]
mov edi, r8d
cmp ebx, r8d
mov rbp, rcx
mov r12, r9
cmovbe edi, ebx
mov rcx, rdx
mov r9, rbp
mov edx, 1
mov esi, edi
mov r8, rsi
call sub.msvcrt.dll_fread
cmp rsi, rax
je 0x402c73
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edx, ebx
and ebx, 1
mov rcx, rbp
sub edx, edi
add rdx, rbx
call fcn.00402bc0
test eax, eax
je 0x402c66
mov eax, 1
mov dword [r12], edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x402ca0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r14, qword [sym.imp.msvcrt.dll__fileno]
mov r13, qword [sym.imp.msvcrt.dll__get_osfhandle]
xor edi, edi
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov rbx, rcx
mov rbp, rdx
lea rsi, [rsp + 0x28]
mov r15, r8
mov r9, rbx
mov r8d, 8
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
cmp rax, 7
ja 0x402d30
test edi, edi
jne 0x402d55
mov rcx, rbx
call r14
mov ecx, eax
call r13
mov rcx, rax
call r12
and ah, 0x7f
cmp eax, 1
jne 0x402d55
xor r8d, r8d
mov edx, 0xc
mov rcx, rbx
call fcn.00459710
test eax, eax
jne 0x402d55
mov edi, 1
jmp 0x402cd5
mov edx, dword [rsp + 0x2c]
mov eax, dword [rbp]
bswap edx
cmp dword [rsp + 0x28], eax
je 0x402d70
mov edx, edx
mov rcx, rbx
add rdx, 1
and rdx, 0xfffffffffffffffe
call fcn.00402bc0
test eax, eax
jne 0x402cd5
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [r15], edx
mov eax, 1
jmp 0x402d57

Function at 0x403210
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r14, qword [fcn.00462e00]
lea r13, str.Skipping_chunk_of_type___.4s___length__u_n
lea rdi, [rsp + 0x28]
mov rbp, rcx
mov r12, rdx
mov r15, r8
lea rsi, [rdi + 4]
mov r9, rbp
mov r8d, 8
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fread
cmp rax, 7
jbe 0x4032b3
mov ebx, dword [rsp + 0x2c]
mov eax, dword [rsp + 0x28]
cmp dword [r12], eax
je 0x4032c6
mov rax, rdi
movzx ecx, byte [rax]
lea edx, [rcx - 0x20]
cmp dl, 0x5e
jbe 0x40327b
mov byte [rax], 0x3f
add rax, 1
cmp rax, rsi
jne 0x40326d
mov ecx, 2
call r14
mov rdx, r13
mov r9d, ebx
mov r8, rdi
mov rcx, rax
call fcn.00402650
mov edx, ebx
mov rcx, rbp
add rdx, 1
and rdx, 0xfffffffffffffffe
call fcn.00402bc0
test eax, eax
jne 0x403240
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [r15], ebx
mov eax, 1
jmp 0x4032b5
Function at 0x4039d0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea r15, [0x004665e0]
xor esi, esi
xor ebx, ebx
xor ebp, ebp
xor edi, edi
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdx
jmp 0x403a31
cmp ebx, r13d
jl 0x403a5b
mov edx, ebx
mov rcx, rdi
call r14
test eax, eax
je 0x403a29
mov r9d, ebx
mov r8, rdi
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [r15 + 0x10]
test eax, eax
jne 0x403aa0
add rsi, 1
add r15, 0x30
mov r14, qword [r15]
movsxd r12, esi
test r14, r14
je 0x403a85
mov r13d, dword [r15 + 8]
cmp ebp, r13d
jg 0x403a00
mov rcx, rdi
movsxd rdx, r13d
mov ebp, r13d
call sub.msvcrt.dll_realloc
mov rdi, rax
cmp ebx, r13d
jge 0x403a05
mov r8d, ebp
movsxd rcx, ebx
mov r9, qword [rsp + 0x70]
mov edx, 1
sub r8d, ebx
add rcx, rdi
movsxd r8, r8d
call sub.msvcrt.dll_fread
add ebx, eax
cmp r13d, ebx
jg 0x403a29
mov r14, qword [r15]
jmp 0x403a05
mov rcx, rdi
call sub.msvcrt.dll_free
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
lea rsi, [0x004665e0]
call sub.msvcrt.dll_free
lea rax, [r12 + r12*2]
shl rax, 4
add rax, rsi
jmp 0x403a8f

Function at 0x4050d0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x40519f
movsxd rcx, dword [rsp + 0x2c]
shl rcx, 3
call sub.msvcrt.dll_malloc
mov edx, dword [rsp + 0x2c]
mov qword [rbp], rax
mov dword [rbx], edx
test rax, rax
je 0x40517d
xor ebx, ebx
test edx, edx
jle 0x405146
mov rcx, qword [rdi + rbx*8]
lea rsi, [rax + rbx*8]
call fcn.00404ee0
mov qword [rsi], rax
mov rax, qword [rbp]
cmp qword [rax + rbx*8], 0
je 0x405159
add rbx, 1
cmp dword [rsp + 0x2c], ebx
jg 0x405121
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 2
call qword [fcn.00462e00]
lea rdx, str._nFATAL:_utf16_to_utf8_failed_n_n
mov rcx, rax
call fcn.00404eb0
mov ecx, 0xffffffff
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.00462e00]
lea rdx, str._nFATAL:_Malloc_failed_n_n
mov rcx, rax
call fcn.00404eb0
or ecx, 0xffffffff
call sub.msvcrt.dll_exit
mov ecx, 2
call qword [fcn.00462e00]
lea rdx, str._nFATAL:_CommandLineToArgvW_failed_n_n
mov rcx, rax
call fcn.00404eb0
or ecx, 0xffffffff
call sub.msvcrt.dll_exit
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x408a50
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov esi, edx
mov rdi, r8
mov r13, r9
test edx, edx
js 0x408b60
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
cmp edx, 0x14
jg 0x408b40
lea edx, [rdx - 1]
cmp edx, 1
ja 0x408a93
test eax, esi
jne 0x408b40
test rdi, rdi
lea rax, [0x0046a6d1]
lea rdx, [0x0046a6d2]
cmove rdi, rax
xor r12d, r12d
call fcn.0040a750
mov rcx, rdi
mov rbp, rax
call sub.msvcrt.dll_strlen
lea r15, [rax + 0x2a]
lea rbx, [rax + 0x1002a]
mov qword [rsp + 0x48], r15
test rbp, rbp
jne 0x408add
jmp 0x408be0
lea rbx, [rbx + rbx + 1]
mov r12, r14
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x408b70
mov r8, rbx
lea rcx, [rax + r15]
mov r9, rbp
mov edx, 1
sub r8, r15
call sub.msvcrt.dll_fread
add r15, rax
cmp rbx, r15
ja 0x408b90
mov eax, 0xffffffff
cmp rbx, rax
je 0x408b30
cmp rbx, 0x7fffffff
jbe 0x408ad5
mov ebx, 0xffffffff
jmp 0x408ada
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_free
mov dword [r13], 0xffffffe0
xor ebx, ebx
mov rax, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov esi, 3
jmp 0x408a93
mov rcx, rbp
xor ebx, ebx
call sub.msvcrt.dll_fclose
mov rcx, r12
call sub.msvcrt.dll_free
mov dword [r13], 0xffffffef
jmp 0x408b4a
mov rcx, rbp
call sub.msvcrt.dll_ferror
mov rcx, rbp
mov ebx, eax
call sub.msvcrt.dll_fclose
test ebx, ebx
jne 0x408b38
mov qword [rsp + 0x28], r13
mov r8, qword [rsp + 0x48]
mov rcx, r14
mov r9d, esi
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rdi
mov rdx, r15
mov qword [rsp + 0x30], rax
call fcn.00408080
mov rcx, r14
mov rbx, rax
call sub.msvcrt.dll_free
jmp 0x408b4a
mov dword [r13], 0xffffffe2
xor ebx, ebx
jmp 0x408b4a
Function at 0x40aeb0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp qword [rcx + 0x68], 0
mov rsi, rcx
mov r12, rdx
mov rbp, r8
jne 0x40aef0
xor eax, eax
mov qword [rdx], 0
mov dword [r8], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r13, qword [rcx + 0x58]
mov r8, qword [r13 + 0x20]
mov rbx, qword [r13 + 8]
mov rdx, qword [r13 + 0x18]
add rdx, qword [rsi + 0x38]
lea edi, [r8 + 0x1b]
movsxd rdi, edi
sub rbx, rdi
add rbx, qword [rcx + 8]
add rdi, qword [r13 + 0x10]
lea rcx, [rbx + 0x1b]
call sub.msvcrt.dll_memcpy
mov byte [rbx + 4], 0
mov rdx, rbx
lea r8, [rbx + 0xe]
mov dword [rbx], 0x5367674f
mov eax, dword [r13 + 0x28]
mov byte [rbx + 5], al
mov rcx, qword [r13]
lea rax, [rbx + 6]
nop
mov byte [rax], cl
add rax, 1
shr rcx, 8
cmp rax, r8
jne 0x40af40
mov r8d, dword [rsi]
lea rcx, [rbx + 0x12]
mov byte [rax], r8b
add rax, 1
sar r8d, 8
cmp rcx, rax
jne 0x40af56
mov r8d, dword [r13 + 0x30]
mov rax, rcx
lea rcx, [rbx + 0x16]
mov byte [rax], r8b
add rax, 1
sar r8d, 8
cmp rcx, rax
jne 0x40af71
mov rax, qword [r13 + 0x20]
mov dword [rbx + 0x16], 0
mov byte [rbx + 0x1a], al
test edi, edi
jle 0x40b030
lea eax, [rdi - 1]
lea r8, [0x0046afc0]
lea r9, [rbx + rax + 1]
xor eax, eax
nop dword [rax + rax]
mov ecx, eax
shr eax, 0x18
xor al, byte [rdx]
add rdx, 1
movzx eax, al
shl ecx, 8
xor ecx, dword [r8 + rax*4]
mov eax, ecx
cmp r9, rdx
jne 0x40afb0
mov edx, eax
mov r8d, ecx
shr eax, 0x18
movzx ecx, ch
shr edx, 0x10
mov byte [rbx + 0x16], r8b
mov byte [rbx + 0x18], dl
mov byte [rbx + 0x17], cl
mov byte [rbx + 0x19], al
mov rax, qword [rsi + 0x68]
mov qword [r12], rbx
mov rcx, qword [rsi + 0x58]
sub rax, 1
mov dword [rbp], edi
lea r8, [rax*8]
mov qword [rsi + 0x68], rax
lea rdx, [rcx + 0x38]
sub r8, rax
shl r8, 3
call sub.msvcrt.dll_memmove
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
xor edx, edx
xor ecx, ecx
xor r8d, r8d
jmp 0x40afda
Function at 0x4176d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x40], xmm10
mov r10d, r9d
shr r10d, 0x1f
add r10d, r9d
sar r10d, 1
cmp r9d, 1
jle 0x4177f0
movss xmm7, dword [0x0046d3a0]
movss xmm4, dword [0x0046d3a4]
xor eax, eax
pxor xmm0, xmm0
movss xmm5, dword [0x0046d3c0]
movss xmm6, dword [0x0046d3b0]
nop dword [rax]
movss xmm2, dword [r8 + rax*8]
movss xmm1, dword [rcx]
movss xmm9, dword [rcx + 4]
movaps xmm3, xmm2
subss xmm3, xmm1
mulss xmm3, xmm7
addss xmm2, xmm3
addss xmm1, xmm3
movss dword [rcx], xmm2
movss xmm10, dword [r8 + rax*8 + 4]
movaps xmm8, xmm1
movaps xmm2, xmm10
movaps xmm3, xmm10
subss xmm2, xmm9
addss xmm9, xmm1
movaps xmm1, xmm10
xorps xmm3, xmm6
mulss xmm2, xmm4
addss xmm1, xmm2
addss xmm2, xmm9
movss dword [rcx + 4], xmm1
movss xmm1, dword [rcx + 8]
mulss xmm2, xmm5
subss xmm3, xmm1
addss xmm1, xmm8
mulss xmm3, xmm4
addss xmm1, xmm3
subss xmm3, xmm10
mulss xmm1, xmm1
movss dword [rcx + 8], xmm3
movss dword [rdx + rax*4], xmm2
add rax, 1
addss xmm0, xmm1
cmp r10d, eax
jg 0x417730
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
pxor xmm0, xmm0
jmp 0x4177cb