joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400191b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push r13
push r12
push rdi
sub rsp, 0x238
mov r12, rcx
call sym._errno
mov dword [rax], 0
test r12, r12
je 0x140019320
cmp word [r12], 0
je 0x140019310
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140019330
test al, 0x10
je 0x140019310
lea r13, [rsp + 0x20]
mov rdx, r12
mov r8d, 0x104
mov rcx, r13
call sym._wfullpath
mov rcx, r13
call sym.wcslen
lea rcx, [0x1400dc160]
mov r12, rax
call sym.wcslen
lea rcx, [0x1400dc164]
add r12, rax
call sym.wcslen
lea rcx, [r12 + rax + 0x229]
add rcx, rcx
call sym.malloc
mov r12, rax
test rax, rax
je 0x140019343
lea r14, [rax + 0x44c]
mov rdx, r13
mov rcx, r14
call sym.wcscpy
cmp word [r12 + 0x44c], 0
jne 0x1400192d0
lea rdx, [0x1400dc164]
mov rcx, r14
call sym.wcscat
lea rdx, [r12 + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [r12 + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [r12 + 0x448], 0
mov qword [r12 + 0x230], 0
rep stosq qword [rdi], rax
mov rax, r12
add rsp, 0x238
pop rdi
pop r12
pop r13
pop r14
ret
mov rcx, r14
call sym.wcslen
cmp word [r12 + rax*2 + 0x44a], 0x2f
je 0x140019271
mov rcx, r14
call sym.wcslen
cmp word [r12 + rax*2 + 0x44a], 0x5c
je 0x140019271
lea rdx, [0x1400dc160]
mov rcx, r14
call sym.wcscat
jmp 0x140019271
call sym._errno
xor r12d, r12d
mov dword [rax], 0x14
jmp 0x1400192b9
call sym._errno
mov dword [rax], 0xe
jmp 0x1400192b9
call sym._errno
xor r12d, r12d
mov dword [rax], 2
jmp 0x1400192b9
call sym._errno
mov dword [rax], 0xc
jmp 0x1400192b9
Function at 0x140019900
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov r14d, ecx
mov rbx, rdx
cmp ecx, 0xffffffff
je 0x1400199b8
test rdx, rdx
js 0x1400199b8
call sym._get_osfhandle
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140019b60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x140019b60
mov ecx, r14d
call sym._telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x1400199b8
lea rdx, [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140019b60
cmp rbx, qword [rsp + 0x68]
ja 0x140019a10
xor r9d, r9d
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x74]
mov edx, ebx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400199d0
cmp dword [rsp + 0x70], 0xffffffff
je 0x1400199d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
je 0x140019b28
mov ecx, 0x16
call dbg._set_errno
mov eax, 0xffffffff
jmp 0x1400199f5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400199b8
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, r14d
call sym._lseeki64
cmp rax, 0xffffffffffffffff
je 0x1400199b8
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400199b8
mov edx, 2
mov ecx, 0x33
call sym.calloc
mov edx, 2
mov ecx, 0x106
mov r12, rax
call sym.calloc
mov r15, rax
test r12, r12
je 0x140019b60
test rax, rax
je 0x140019b60
mov edx, 0x32
mov rcx, r12
lea rbp, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov rdi, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov rsi, rax
jmp 0x140019a9a
mov r8d, 0x32
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x140019b40
mov dword [rsp + 0x38], 0
mov r9, rbp
mov rdx, r15
mov r8d, 0x105
mov qword [rsp + 0x30], 0
mov rcx, r12
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rdi
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x140019a80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r15
call sym.free
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, r12
mov esi, eax
call sym.free
test esi, esi
je 0x140019b28
mov rax, rbx
sub rax, qword [rsp + 0x68]
cmp rax, qword [rsp + 0x60]
jbe 0x140019983
nop dword [rax]
mov ecx, 0x1b
call dbg._set_errno
mov eax, 0xffffffff
jmp 0x1400199f5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
xor r12d, r12d
call sym.free
jmp 0x140019ae4
mov ecx, 9
call dbg._set_errno
mov eax, 0xffffffff
jmp 0x1400199f5
Function at 0x140024620
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
je 0x140024668
mov rcx, r12
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x140109000], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14002464f

Function at 0x140025460
Capabilities:
Create directory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1400254a0
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x1400254c8
call method.std::_V2.generic_category__
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, rbx
mov rcx, r12
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x1400254ad
xor eax, eax
jmp 0x14002548f

Function at 0x140026960
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14002698c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140027600
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x1400d6ed0], 0
jne 0x14002770a
mov byte [0x1400d6ed0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x1400276e0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1400276d1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x1400d7521]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400276cc
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x14002769b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14002779f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x140027705
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140027705

Function at 0x1400834d0
Capabilities:
Create directory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x140083510
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x140083538
call method.std::_V2.generic_category__
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, rbx
mov rcx, r12
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
jne 0x14008351d
xor eax, eax
jmp 0x1400834ff
Function at 0x140086ad0
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call method.std::filesystem.symlink_status_std::filesystem::__cxx11::path_const__std::error_code_
test al, al
je 0x140086b37
cmp al, 0xff
je 0x140086b28
mov rdx, rbx
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
cmp al, 2
je 0x140086b40
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140086b4d
mov eax, dword [rbx]
test eax, eax
jne 0x140086b37
call method.std::_V2.system_category__
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x140086b39
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140086af8
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140086c40
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbp, rcx
mov rdx, r8
mov rbx, r8
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov rdi, rax
cmp al, 0xff
je 0x140086ce0
mov ecx, dword [rbx]
test ecx, ecx
jne 0x140086cb8
test al, al
jne 0x140086cf8
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140086cc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x140086d30
call rdi
mov dword [rax], 5
call method.std::_V2.generic_category__
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call method.std::_V2.system_category__
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x140086c71
mov rdx, rbx
mov rcx, rbp
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov edx, dword [rbx]
test edx, edx
jne 0x140086cb8
cmp dil, 2
je 0x140086d40
cmp al, 2
jne 0x140086c71
call method.std::_V2.generic_category__
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x140086cb8
call rdi
mov dword [rax], 0xd
jmp 0x140086ca6
cmp al, 2
je 0x140086c71
call method.std::_V2.generic_category__
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x140086cb8
Function at 0x14008e5b0
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov r12, rdx
mov rbp, r8
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rdi, r9
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
call method.std::_V2.system_category__
mov rbx, rax
test esi, esi
je 0x14008e658
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14008e619
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14008e627
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x14008e650
mov dword [r13], 0
mov qword [r13 + 8], rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rdi], rax
jmp 0x14008e631
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [r13 + 8], rbx
mov dword [r13], eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140093cc0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140093ce7
call rbp
cmp dword [rax], 4
jne 0x140093d04
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140093ce0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400a7820
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400a7848
xor ecx, ecx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x1400a7890
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400a7860
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x1400a789c
call rbp
cmp dword [rax], 4
je 0x1400a7860
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400014c0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push r12
push r14
lea rbp, [r11 - 0x5f]
sub rsp, 0xc8
mov rax, qword [0x140022080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, qword [rcx + 0x10]
mov rsi, rcx
movabs rcx, 0x7fffffffffffffff
xor r12d, r12d
mov rax, rcx
sub rax, r14
cmp rax, 3
jb 0x1400016f9
cmp qword [rsi + 0x18], 0xf
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x28], r15
jbe 0x14000151c
mov rsi, qword [rsi]
lea r15, [r14 + 3]
mov ebx, 0xf
lea rdi, [rbp + 0xf]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0xf], xmm0
movdqu xmmword [rbp + 0x1f], xmm1
cmp r15, rbx
jbe 0x1400015b7
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x140001579
movabs rax, 0x8000000000000000
mov rbx, rcx
add rax, 0x27
mov rcx, rax
call fcn.140003da0
test rax, rax
je 0x1400016ed
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400015b3
mov eax, 0x16
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140001593
mov rdi, r12
jmp 0x1400015b3
cmp rcx, 0x1000
jb 0x1400015ab
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400016f3
jmp 0x14000155a
call fcn.140003da0
mov rdi, rax
mov qword [rbp + 0xf], rdi
mov ecx, dword [0x14001eb84]
mov r8, r14
mov qword [rbp + 0x1f], r15
mov rdx, rsi
mov qword [rbp + 0x27], rbx
mov word [rdi], cx
movzx ecx, byte [0x14001eb86]
mov byte [rdi + 2], cl
lea rcx, [rdi + 3]
call fcn.1400140a0
mov byte [rdi + r15], r12b
lea rax, str.cmd.exe
cmp qword [rbp + 0x27], 0xf
lea rcx, [rbp - 0x69]
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
mov dword [rbp - 0x69], 0x70
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x51], rax
lea rax, [rbp + 0xf]
cmova rax, qword [rbp + 0xf]
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x49], rax
movups xmmword [rbp - 0x39], xmm0
mov dword [rbp - 0x65], 0x40
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x61], r12
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 0x59], r12
movups xmmword [rbp - 9], xmm0
mov qword [rbp - 0x41], r12
mov dword [rbp - 0x39], r12d
mov qword [rbp - 0x31], r12
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001658
mov ebx, 0xffffffff
jmp 0x140001682
mov rcx, qword [rbp - 1]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 1]
lea rdx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rbp + 7]
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x1400016b9
mov rcx, qword [rbp + 0xf]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016b4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016ed
call fcn.140004024
mov rdi, qword [rsp + 0x100]
mov eax, ebx
mov rbx, qword [rsp + 0xf8]
mov r15, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140003d80
add rsp, 0xc8
pop r14
pop r12
pop rsi
pop rbp
ret
call fcn.140009d40
int3
call fcn.1400011c0
int3
call fcn.140001260
int3
Function at 0x1400027b0
Capabilities:
Hide graphical window
Log keystrokes via application hook

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140022080]
xor rax, rsp
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 8
call fcn.140003da0
lea rcx, [0x140001c10]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140003390]
xor edx, edx
xor ecx, ecx
call fcn.140009820
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140002924
cmp dword [rsp + 0x38], 0
je 0x140002919
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140003c14
test eax, eax
jne 0x140002919
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400024e0]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x140024238], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140002650]
mov ecx, 0xe
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x140024240], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x1400028dd
nop dword [rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x1400028b0
mov rcx, qword [0x140024238]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x140024240]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop
cmp dword [rsp + 0x38], 0
jne 0x140002937
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140003d80
add rsp, 0x98
ret
mov ecx, 1
call fcn.1400037b8
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.1400037b8
nop
call fcn.140009908
int3

Function at 0x140004ac8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004b12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004b12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004b12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004b12
cmp dword [rcx + 0x84], 0xe
jbe 0x140004b12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004b14
xor al, al
add rsp, 0x28
ret
Function at 0x140009820
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140009857
call fcn.14000b730
mov dword [rax], 0x16
call fcn.140009d20
xor eax, eax
jmp 0x1400098e5
mov rdx, r9
mov rcx, r8
call fcn.1400097bc
mov rbx, rax
test rax, rax
je 0x1400098e2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400096e8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400098cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000b6a4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400098b6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400098c5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14000b7c8
jmp 0x1400098e2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400098df
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14000a2d0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000a33f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a33f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a33f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a33f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a33f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a33f
cmp dword [rcx + 0xf8], 0
je 0x14000a33f
mov ecx, ebx
call fcn.14000a3f0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000a1cc
nop
cmp dword [rbp + 0x20], 0
je 0x14000a38d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000a398
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000a2d0

Function at 0x14000a4d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a2d0
Function at 0x14000eb38
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000eb68
xor eax, eax
jmp 0x14000ec2b
mov rbp, rbx
cmp word [rax], si
je 0x14000eb8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000eb74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000eb70
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000ea58
movsxd r14, eax
test eax, eax
jne 0x14000ebcb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000eb61
mov rcx, r14
call fcn.14000d060
mov rdi, rax
test rax, rax
jne 0x14000ebe4
xor ecx, ecx
call fcn.14000b7c8
jmp 0x14000ebc0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000ea58
test eax, eax
jne 0x14000ec15
mov rcx, rdi
call fcn.14000b7c8
jmp 0x14000ec1f
xor ecx, ecx
call fcn.14000b7c8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret