joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016e4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x460
mov rax, qword [0x00414010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbp, qword [rsp + 0x4d0]
xor r13d, r13d
mov rdi, r9
mov r12d, edx
mov rbx, rcx
cmp r8d, r13d
je 0x401744
sub r8d, 1
je 0x40173b
cmp r8d, 1
jne 0x401879
lea rsi, str.warning
jmp 0x401752
lea rsi, str.error
jmp 0x40174f
mov byte [rcx + 1], 1
lea rsi, str.fatal_error
mov byte [rcx], 1
cmp r9, r13
je 0x40181b
cmp byte [rcx + 0x10], r13b
jne 0x401800
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, r13d
jne 0x401780
mov word [rsp + 0x30], r13w
lea r8, [rsp + 0x240]
lea rcx, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
cmp eax, r13d
je 0x4017fb
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
cmp eax, r13d
jne 0x4017fb
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
mov r9, rdi
mov r8d, 0x10
mov dword [rsp + 0x20], r13d
call qword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
cmp eax, r13d
je 0x4017fb
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
cmp eax, r13d
je 0x4017fb
lea r8, [rsp + 0x30]
mov rcx, rbx
jmp 0x401803
mov r8, rdi
jmp 0x4017f6
mov r8, r9
lea rdx, [0x00411b50]
call fcn.00401f10
lea rdx, [0x00411b58]
mov rcx, rbx
jmp 0x401822
lea rdx, str.ALINK:
call fcn.00401f10
cmp r12d, 0xffffffff
je 0x40184b
lea r9, [0x00410b2c]
lea rdx, str._s__s_04d:
mov r8, rsi
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.00401f10
cmp rbp, r13
je 0x40186a
cmp word [rbp], r13w
je 0x40186a
mov r8d, 8
mov rdx, rbp
mov rcx, rbx
call fcn.004025e4
jmp 0x401879
lea rdx, [0x00411508]
mov rcx, rbx
call fcn.00401f10
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.0040c9c0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x460
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x4028b8
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
sub rsp, 0x170
mov rax, qword [0x00414010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbp, qword [r8]
xor r13d, r13d
mov rdi, r8
mov rax, rdx
cmp rbp, r13
jne 0x4028f7
call fcn.00401008
int3
cmp qword [r8 + 8], r13
jbe 0x402a62
lea rdx, [rsp + 0x50]
mov r8d, 0x104
mov rcx, rax
mov word [rbp], r13w
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x44]
movsxd rcx, eax
mov byte [rsp + rcx + 0x50], r13b
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov r12d, eax
cmp eax, r13d
je 0x402a39
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, r13
je 0x402a39
lea rcx, [rsp + 0x50]
mov r9, rax
mov r8d, r12d
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, r13d
je 0x402a25
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [0x00411c8c]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueA
cmp eax, r13d
je 0x402a25
cmp dword [rsp + 0x40], r13d
je 0x402a25
mov rdx, qword [rsp + 0x48]
cmp word [rdx + 0xc], r13w
je 0x4029f2
cmp qword [rdi + 8], r13
ja 0x4029bd
call fcn.00401008
int3
movzx r8d, word [rdx + 0xe]
movzx eax, word [rdx + 0xc]
movzx r10d, word [rdx + 8]
movzx r9d, word [rdx + 0xa]
mov edx, dword [rdi + 8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r8d
lea r8, [0x00411c90]
mov rcx, rbp
mov dword [rsp + 0x20], r10d
call fcn.0040a5ac
jmp 0x402a25
cmp qword [rdi + 8], r13
ja 0x4029fe
call fcn.00401008
int3
movzx ecx, word [rdx + 8]
movzx eax, word [rdx + 0xe]
movzx r9d, word [rdx + 0xa]
mov edx, dword [rdi + 8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea r8, str._d._d._04d
mov rcx, rbp
call fcn.0040a5ac
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.0040c9c0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
call fcn.00401008
int3
Function at 0x402b84
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rax - 0x10], 0x104
mov rbx, rdx
mov esi, r8d
lea rbp, [0x004156b4]
lea rdx, [rax - 0x18]
xor r8d, r8d
mov qword [rax - 0x18], rbp
mov rcx, rbx
mov rdi, r9
movaps xmm0, xmmword [rax - 0x18]
movdqa xmmword [rax - 0x18], xmm0
call fcn.0040ada8
test eax, eax
je 0x402c9d
and qword [rsp + 0x30], 0
mov ebx, 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x402c2f
mov edx, 0x8000
mov rcx, rax
call qword [sym.imp.MSVCR90.dll__open_osfhandle]
lea rdx, [0x00411cec]
mov ecx, eax
call qword [sym.imp.MSVCR90.dll__fdopen]
mov qword [0x004156a8], rax
jmp 0x402c36
mov rax, qword [0x004156a8]
test rax, rax
jne 0x402c53
lea edx, [rax + 9]
lea r8d, [rax + 1]
lea rcx, [0x00414670]
mov r9, rbp
call fcn.004019ac
jmp 0x402cb3
mov ecx, 0xfeff
mov r9, rax
mov r8d, 1
mov word [rsp + 0x60], cx
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov byte [0x004156b2], 1
mov byte [0x004156b0], 1
call qword [sym.imp.MSVCR90.dll_fwrite]
cmp rax, 1
jne 0x402cb3
lea rcx, [0x00414670]
mov r8, rdi
mov edx, esi
call fcn.00402fb8
xor eax, eax
jmp 0x402cb8
xor r8d, r8d
lea rcx, [0x00414670]
mov r9, rbx
lea edx, [r8 + 0x3e]
call fcn.004019ac
mov eax, 0x80004005
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x402cd4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x100
mov rax, qword [0x00414010]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [0x00415aa0]
xor r14d, r14d
mov rsi, rdx
cmp byte [0x004156b0], r14b
je 0x402ee7
mov r8, rdx
lea rcx, [0x00414670]
mov edx, 0x3017
call fcn.00402f1c
xor r9d, r9d
mov r8, rbp
xor edx, edx
mov rcx, rsi
lea rdi, [rsp + 0x60]
lea ebx, [r14 + 0x42]
call fcn.0040b8c0
cmp rax, 0xffffffffffffffff
je 0x402ee7
cmp rax, r14
je 0x402ee7
xor edx, edx
mov rcx, rax
call qword [sym.imp.MSVCR90.dll__open_osfhandle]
lea rdx, [0x00411cf8]
mov ecx, eax
call qword [sym.imp.MSVCR90.dll__fdopen]
mov r12, rax
cmp rax, r14
je 0x402ee7
lea edx, [rbx - 0x41]
lea r8d, [r14 + 0x20]
lea rcx, [rsp + 0x40]
mov r9, rax
call qword [sym.imp.MSVCR90.dll_fread]
mov r13, rax
cmp rax, r14
je 0x402ede
mov rbp, r14
cmp r13, r14
jbe 0x402e3f
mov sil, byte [rsp + rbp + 0x40]
mov al, sil
shr al, 4
cmp al, 0xa
jae 0x402dc4
movzx eax, al
add ax, 0x30
jmp 0x402dcf
add al, 0x37
movsx ecx, al
call qword [sym.imp.MSVCR90.dll_btowc]
cmp rdi, r14
je 0x402ecc
cmp rbx, r14
jbe 0x402ec6
and sil, 0xf
mov word [rdi], ax
cmp sil, 0xa
jae 0x402df8
movzx eax, sil
add ax, 0x30
jmp 0x402e06
add sil, 0x37
movsx ecx, sil
call qword [sym.imp.MSVCR90.dll_btowc]
cmp rbx, 1
jbe 0x402ec0
mov word [rdi + 2], ax
cmp ebx, 2
jb 0x402eba
cmp rbx, 2
ja 0x402e2b
mov rbx, r14
mov rdi, r14
jmp 0x402e33
sub rbx, 2
add rdi, 4
inc rbp
cmp rbp, r13
jb 0x402dac
cmp rdi, r14
je 0x402ed8
cmp rbx, r14
jbe 0x402ed2
mov word [rdi], r14w
mov rcx, qword [0x004156a8]
lea r8, [rsp + 0x60]
lea rdx, str._s_r_n
call qword [sym.imp.MSVCR90.dll_fwprintf_s]
lea r11, [rsp + 0x60]
mov edx, 1
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x38], 0x42
lea rcx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x20], xmm0
lea r8d, [rdx + 0x1f]
mov r9, r12
call qword [sym.imp.MSVCR90.dll_fread]
mov r13, rax
cmp rax, r14
je 0x402ede
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
jmp 0x402da0
call fcn.00401008
int3
call fcn.00401008
int3
call fcn.00401008
int3
call fcn.00401008
int3
call fcn.00401008
int3
call fcn.00401008
int3
mov rcx, r12
call qword [sym.imp.MSVCR90.dll_fclose]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.0040c9c0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x403d10
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov rbp, r8
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
lea r8, [0x00414050]
lea rcx, [0x00414048]
mov rdx, rax
mov dword [r12], ebx
mov qword [rbp], rbx
call fcn.004038d4
mov rcx, qword [0x00414058]
cmp byte [rcx + 1], bl
je 0x403d68
xor al, al
jmp 0x403e98
cmp qword [0x00414050], rbx
je 0x403db2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [0x00414050]
xor edx, edx
mov r8, qword [r8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [0x00414050]
mov rax, qword [rdi + 8]
mov qword [0x00414050], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [0x00414048]
call fcn.00403ec0
mov rdx, qword [0x00414058]
cmp byte [rdx], bl
jne 0x403d61
mov rax, qword [0x00414050]
mov esi, ebx
jmp 0x403ddf
cmp qword [rax], rbx
je 0x403ddb
inc esi
mov rax, qword [rax + 8]
cmp rax, rbx
jne 0x403dd4
movsxd rdi, esi
shl rdi, 4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r11, rax
mov qword [0x00414048], rax
cmp rax, rbx
jne 0x403e26
mov rcx, qword [0x00414058]
xor r8d, r8d
lea edx, [r8 + 2]
call fcn.0040162c
jmp 0x403d61
mov rdx, qword [0x00414050]
cmp rdx, rbx
je 0x403e84
mov r8, rbx
cmp qword [rdx], rbx
je 0x403e7b
mov rdi, qword [rdx]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
mov eax, ecx
cmp rax, rcx
jne 0x403eb3
cmp rcx, rbx
mov rax, rbx
mov qword [rsp + 0x28], rcx
cmova rax, qword [rdx]
mov qword [rsp + 0x20], rax
movdqu xmm0, xmmword [rsp + 0x20]
movdqu xmmword [r8 + r11], xmm0
mov r11, qword [0x00414048]
add r8, 0x10
mov rdx, qword [rdx + 8]
cmp rdx, rbx
jne 0x403e35
mov rcx, qword [0x00414058]
mov dword [r12], esi
mov qword [rbp], r11
cmp byte [rcx], bl
sete al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
call fcn.00401008
int3
Function at 0x40b8c0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x480
mov rax, qword [0x00414010]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor r12d, r12d
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x8000080
mov rbp, rcx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], 0x105
mov rbx, rax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x40], rax
cmp rbx, 0xffffffffffffffff
jne 0x40ba09
cmp rsi, r12
je 0x40ba33
lea rax, [rsp + 0x50]
mov edx, 0x104
lea rcx, [rsp + 0x50]
sub rsi, rax
mov r8d, r12d
lea rax, [rdx + 0x7ffffefa]
cmp rax, r12
je 0x40b97f
movzx eax, word [rsi + rcx]
cmp ax, r12w
je 0x40b97f
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x40b95c
cmp rdx, r12
jne 0x40b98e
sub rcx, 2
mov r8d, 0x8007007a
cmp r8d, r12d
mov word [rcx], r12w
jl 0x40ba33
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp eax, r12d
je 0x40ba33
movaps xmm0, xmmword [rsp + 0x40]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov rdx, rbp
movdqa xmmword [rsp + 0x40], xmm0
call fcn.0040c1dc
cmp al, r12b
je 0x40ba33
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x260]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x40ba33
cmp rdi, r12
je 0x40ba33
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
or esi, 0xffffffff
cmp eax, esi
jne 0x40ba31
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rdi], esi
or rbx, 0xffffffffffffffff
jmp 0x40ba33
mov dword [rdi], eax
mov rax, rbx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.0040c9c0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x40c058
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r14, r9
mov r15, r8
mov dword [r9], ebx
xor r8d, r8d
xor edx, edx
xor r9d, r9d
mov qword [rax - 0x58], rbx
mov qword [rax - 0x50], rbx
mov rdi, rbx
mov qword [rax - 0x48], rbx
call fcn.0040b8c0
mov r12, rbx
mov qword [rsp + 0x38], rbx
mov r13, rbx
mov rbp, rax
mov qword [rsp + 0x40], rbx
mov rsi, rbx
mov qword [rsp + 0x48], rbx
cmp rax, 0xffffffffffffffff
je 0x40c16b
cmp rax, rbx
je 0x40c16b
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40c0fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40c12f
mov ebx, 0x8000ffff
jmp 0x40c12f
cmp dword [rsp + 0x98], ebx
je 0x40c10e
mov ebx, 0x80070216
jmp 0x40c12f
lea rcx, [rsp + 0x38]
mov r8d, eax
mov rdx, rbp
call fcn.0040c49c
mov rsi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x38]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
js 0x40c150
mov rdi, rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], r12
xor esi, esi
mov qword [rsp + 0x28], r13
test rsi, rsi
je 0x40c17f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40c17f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x40c19c
lea rcx, [rsp + 0x20]
mov r9, r14
mov r8, r15
xor edx, edx
call fcn.0040ba64
mov rdi, qword [rsp + 0x30]
mov ebx, eax
test rdi, rdi
je 0x40c1b5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x40c49c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
lea rdi, [rbp + 1]
cmp rdi, rbp
jae 0x40c4c6
call fcn.00401008
int3
test rdi, rdi
je 0x40c4f8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
test rax, rax
je 0x40c4f1
mov qword [rbx + 8], rdi
jmp 0x40c506
mov edi, 0x8007000e
jmp 0x40c571
and qword [rcx], 0
and qword [rcx + 0x10], 0
and qword [rcx + 8], 0
mov rdx, qword [rbx]
xor edi, edi
test rdx, rdx
je 0x40c51c
cmp qword [rbx + 8], rdi
ja 0x40c51c
call fcn.00401008
int3
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, ebp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c553
cmp dword [rsp + 0x60], ebp
jne 0x40c553
mov rax, qword [rbx]
mov byte [rbp + rax], 0
mov qword [rbx + 8], rbp
test ebp, ebp
jne 0x40c571
and qword [rbx], 0
jmp 0x40c571
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x8000ffff
test edi, edi
cmovns edi, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x40c994
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r9
push rax
push r10
mov r9d, 0x60
mov rax, qword gs:[r9]
push r14
mov r9, rax
add r9, 0x10
mov r14, qword [r9]
add rax, 0x18
mov r10, qword [rax]
mov rax, qword [r10 + 0x10]
push r13

Function at 0x40c9c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r9, qword [rax + 0x30]
test r9, r9
je 0x40c9f2
mov r10, qword [rax + 0x60]
mov r13, qword [r10]
and r13d, 0xdf00df
mov r10, qword [r10 + 0xc]
shl r10d, 8
add r10d, r13d
shr r10d, 1
sub r10d, 0x192299a5
cdq
and bl, byte [rcx]
test r10, r10
je 0x40c9fa
mov r10, qword [rax]
lea rax, [r10]
jmp 0x40c9bc
mov eax, dword [r9 + 0x3c]
add rax, r9
add rax, 0x10
mov r10d, dword [rax + 0x78]
add r10, r9
push r8
mov r13d, dword [r10 + 0x20]
add r13, r9
mov r8d, dword [r13]
add r8, r9
mov eax, dword [r8 + 0xb]
sub eax, 0x746365
cmp eax, 0
jne 0x40ca30
jmp 0x40ca36
add r13, 4
jmp 0x40ca15
mov eax, dword [r10 + 0x20]
sub r13, rax
sub r13, r9
shr r13d, 1
mov eax, dword [r10 + 0x24]
add rax, r9
add rax, r13
mov r13d, dword [rax]
mov eax, dword [r10 + 0x1c]
shl r13d, 0x10
shr r13d, 0xe
add rax, r9
add rax, r13
mov r13d, dword [rax]
mov eax, 0x7c000
add r13, r9
push r9
add rax, r14
push r14
push rax
push r8
push r8
mov rcx, rax
push r13
mov r9, rsp
mov r8d, 0x40
mov edx, 0xb7000
call r13
pop r10
pop r8
pop r8
pop rax
pop r14
mov r9d, 0x3364
push r13
movabs r10, 0x3ae50
mov r13d, 7
mov ebp, 7
imul r9, r13
movabs r13, 0x2073
add r9, r13
add r9, r14
call fcn.0040cafa
Function at 0x40c9f4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r9, qword [rax + 0x30]
test r9, r9
je 0x40c9f2
mov r10, qword [rax + 0x60]
mov r13, qword [r10]
and r13d, 0xdf00df
mov r10, qword [r10 + 0xc]
shl r10d, 8
add r10d, r13d
shr r10d, 1
sub r10d, 0x192299a5
cdq
and bl, byte [rcx]
test r10, r10
je 0x40c9fa
mov r10, qword [rax]
lea rax, [r10]
jmp 0x40c9bc
mov eax, dword [r9 + 0x3c]
add rax, r9
add rax, 0x10
mov r10d, dword [rax + 0x78]
add r10, r9
push r8
mov r13d, dword [r10 + 0x20]
add r13, r9
mov r8d, dword [r13]
add r8, r9
mov eax, dword [r8 + 0xb]
sub eax, 0x746365
cmp eax, 0
jne 0x40ca30
jmp 0x40ca36
add r13, 4
jmp 0x40ca15
mov eax, dword [r10 + 0x20]
sub r13, rax
sub r13, r9
shr r13d, 1
mov eax, dword [r10 + 0x24]
add rax, r9
add rax, r13
mov r13d, dword [rax]
mov eax, dword [r10 + 0x1c]
shl r13d, 0x10
shr r13d, 0xe
add rax, r9
add rax, r13
mov r13d, dword [rax]
mov eax, 0x7c000
add r13, r9
push r9
add rax, r14
push r14
push rax
push r8
push r8
mov rcx, rax
push r13
mov r9, rsp
mov r8d, 0x40
mov edx, 0xb7000
call r13
pop r10
pop r8
pop r8
pop rax
pop r14
mov r9d, 0x3364
push r13
movabs r10, 0x3ae50
mov r13d, 7
mov ebp, 7
imul r9, r13
movabs r13, 0x2073
add r9, r13
add r9, r14
call fcn.0040cafa
Function at 0x14000a290
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000a29d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000a2ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000a295
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000a2c5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000a2b2
sub eax, 3
jb 0x14000a2df
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000a316
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000a306
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000a304
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000a2f3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000a252
jmp 0x14000a29d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1e00
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000a362
cmp rsi, rcx
jae 0x14000a36a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000a349
cmp al, 0x8f
ja 0x14000a349
cmp byte [rsi - 2], 0xf
je 0x14000a34f
sub al, 0xe8
cmp al, 1
ja 0x14000a333
cmp rsi, rcx
jae 0x14000a36a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000a339
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000a36a
lodsb al, byte [rsi]
jmp 0x14000a349
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8000]
mov eax, dword [rdi]
or eax, eax
je 0x14000a3c7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000a377
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000a3c1
mov qword [rbx], rax
add rbx, 8
jmp 0x14000a397
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000a401
cmp al, 0xef
ja 0x14000a3f3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000a3d3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000a3e2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000a455
sub rsp, 0xffffffffffffff80
jmp 0x14000228c
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]
mov ah, 0x25
in eax, dx
jg 0x140020a05
mov bh, 0x14
invalid
jge 0x140020a4c
add al, 0x5d
jg 0x1400209f9
mov ah, 0xb3
test eax, 0x4e4cf0
sbb dh, cl
fld qword [rax]
invalid
jle 0x140020a36
fisub word [rax]
xor dl, byte [rcx - 0x80]
movabs byte [0x4f3bbe882b017bf0], al
sti
mov byte [rax - 0x3b1e9a19], cl
mov byte [rsi - 0x7704b0c5], bh
mov bh, ah
loope 0x1400209d4
invalid
invalid
invalid