joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400410a0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140059da0
mov rsi, rdx
test rax, rax
je 0x14004114f
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140041143
test rax, rax
je 0x140041143
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x140041136
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140004f40
mov edx, 8
mov rcx, rsi
call fcn.140004f40
mov qword [rdi], 0
jmp 0x1400412af
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.14005a520
cmp dword [rsp + 0x40], 2
jne 0x1400411cd
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1400411ae
test rcx, rcx
je 0x1400411ae
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1400411a1
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.140004f40
mov edx, 8
mov rcx, rbx
call fcn.140004f40
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x14004121f
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14004129b
mov rbx, qword [rsp + 0x40]
jmp 0x140041221
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x14004128a
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x14004128a
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x1400412a7
mov qword [rdi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1400412a7
call sub.kernel32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14005c310
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140076158]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14005c37a
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14005c389
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14005c3c0
cmp eax, 0x103
je 0x14005c3ca
test eax, eax
js 0x14005c3a6
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14005c3c0
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.ha_a_
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14003bcd0
mov rcx, rax
call fcn.14003bdb0
mov ecx, 7
int 0x29
ud2
Function at 0x14006365c
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb 0x140031250
jmp fcn.14002d6e0

Function at 0x140064660
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140065470
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140065470
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1400646d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140080234]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140064880
mov rax, qword [0x140080238]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14006471c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400647a7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140064700
mov rcx, r12
call fcn.140065180
mov rbp, rax
test rax, rax
je 0x1400648dd
mov rax, qword [0x140080238]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400652b0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140080238]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400648c2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400647a0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140064830
add dword [0x140080234], 1
cmp ebx, 8
jae 0x1400647d8
test bl, 4
jne 0x140064890
test ebx, ebx
je 0x1400647c9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400648b0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400647c9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14006480a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140080238]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400647a0
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140064660
xor edi, edi
jmp 0x140064727
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400647c9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400647c9
mov rax, qword [0x140080238]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140064660
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140064660
nop
nop dword [rax]
Function at 0x140064df0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400802a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140080280]
test rbx, rbx
je 0x140064e44
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140064e3b
test r12, r12
je 0x140064e3b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140064e20
lea rcx, [0x1400802a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140065180
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400774e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400651f9
mov rcx, r10
call fcn.140065050
test eax, eax
je 0x1400651f9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400651f6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400651ed
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400651f9
add r8, 0x28
cmp r8, r9
jne 0x1400651d8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x6d8cfcd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8f15e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8cfe58
mov rax, qword [0x6d8f15e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8cfd1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8cfda5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8cfd00
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8cfe8d
mov rax, qword [0x6d8f15e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8f15e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8cfe70
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8cfd9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8cfe00
add dword [0x6d8f15e4], 1
cmp edi, 8
jae 0x6d8cfdd3
test dil, 4
jne 0x6d8cfe44
test edi, edi
je 0x6d8cfdc8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8cfe5f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8cfdc8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8cfdec
jmp 0x6d8cfdc8
add rsi, qword [0x6d8f15e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8cfd9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8cfdc8
xor esi, esi
jmp 0x6d8cfd27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8cfdc8
mov rax, qword [0x6d8f15e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8d05e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8f18c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8f18a0]
test rbx, rbx
je 0x6d8d0634
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8d062b
test rsi, rsi
je 0x6d8d062b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8d0610
lea rcx, [0x6d8f18c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8d0870
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8d0880
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8d0890
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8d08d1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8d08c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8d08d3
add rax, 0x28
cmp rax, r9
jne 0x6d8d08b4
xor eax, eax
ret

Function at 0x6d8d0970
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ee1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8d09dd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8d09dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8d09dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8d09d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8d09df
add rax, 0x28
cmp rax, r9
jne 0x6d8d09c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8d0ae0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8ee1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8d0b00
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8d0af8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8d0b5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8d0b54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8d0b64
add rax, 0x28
cmp rax, r9
jne 0x6d8d0b40
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8d0b80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8ee1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8d0bee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8d0bee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8d0bee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8d0bee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8d0be5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8d0bf5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8d0bd0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8d0c08
jmp 0x6d8d0bee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8d0c16
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8d0bee
test r9d, r9d
jg 0x6d8d0c00
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8d0f80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140013080
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400143d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400143f0
xor al, al
jmp 0x140014471
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014403
xor al, al
jmp 0x140014471
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001442d
xor al, al
jmp 0x140014471
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014441
xor al, al
jmp 0x140014471
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014453
xor al, al
jmp 0x140014471
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001446f
xor al, al
jmp 0x140014471
mov al, 1
add rsp, 0x38
ret
Function at 0x14001137a
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140011850
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x128]
lea rcx, [0x1400220a4]
call fcn.140011389
movzx eax, word [rbp + 0x100]
mov word [rbp + 4], ax
movzx eax, word [rbp + 0x108]
mov word [rbp + 6], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac80]
call fcn.140011320
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400012f0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov r9, rcx
lea r8, str._s_timezone
lea rcx, [0x1400284e0]
mov edx, 0x400
call fcn.14000ea30
lea rcx, [0x14001be4c]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rax
mov rbx, rax
call fcn.1400017e0
test al, al
je 0x140001336
mov rax, rbx
add rsp, 0x20
pop rbx
ret
call fcn.140001360
mov rcx, rax
mov rbx, rax
call fcn.1400017e0
xor ecx, ecx
test al, al
cmovne rcx, rbx
mov rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x1400018f0
Capabilities:
Query environment variable
Set environment variable
Terminate process

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002e578]
test rax, rax
jne 0x14000193a
lea rcx, str.PGDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rax
test rax, rax
je 0x140001974
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140001920
test rax, rax
je 0x140001974
call fcn.14000cc00
mov qword [0x14002e578], rax
mov rcx, rax
call fcn.14000cc00
mov rcx, qword [0x14002e578]
mov qword [0x14002e6d8], rax
call fcn.140011270
mov rdx, qword [0x14002e578]
lea rcx, str.PGDATA_s
call fcn.14000cf70
mov rcx, rax
add rsp, 0x28
jmp fcn.140010e60
cmp dword [0x14002f818], 4
mov qword [rsp + 0x20], rbx
jg 0x140001993
lea rdx, str.no_data_directory_specified
mov ecx, 4
call fcn.14000dcf0
lea rcx, str.You_must_identify_the_directory_where_the_data_for_this_database_system_nwill_reside.__Do_this_with_either_the_invocation_option__D_or_the_nenvironment_variable_PGDATA._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.14000ecc0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rbx, qword [rsp + 0x20]
int3
Function at 0x140005070
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400284a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x20]
mov rbx, rcx
call fcn.140010af0
test eax, eax
je 0x140005101
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x1400050b3
cmp dword [0x14002f818], 4
jg 0x1400050d0
lea rdx, str.file___s__does_not_exist
jmp 0x1400050c3
cmp dword [0x14002f818], 4
jg 0x1400050d0
lea rdx, str.could_not_access_file___s_:__m
mov r8, rbx
mov ecx, 4
call fcn.14000dcf0
lea rcx, str.This_might_mean_you_have_a_corrupted_installation_or_identified_nthe_wrong_directory_with_the_invocation_option__L._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.14000ecc0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movzx eax, word [rsp + 0x26]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x8000
cmp ax, cx
je 0x140005166
cmp dword [0x14002f818], 4
jg 0x140005135
mov r8, rbx
lea rdx, str.file___s__is_not_a_regular_file
mov ecx, 4
call fcn.14000dcf0
lea rcx, str.This_might_mean_you_have_a_corrupted_installation_or_identified_nthe_wrong_directory_with_the_invocation_option__L._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.14000ecc0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140014dd0
add rsp, 0x60
pop rbx
ret
Function at 0x140005240
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov rbx, r8
mov r14, rdx
mov ebp, ecx
test r8, r8
je 0x140005264
mov qword [r8], 0
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x38], rdi
call fcn.140010cc0
test rax, rax
jne 0x140005293
cmp dword [0x14002f818], 4
jg 0x140005345
lea rdx, str.setlocale___failed
jmp 0x14000533b
mov rcx, rax
call fcn.14000cc00
test r14, r14
lea rdi, [0x140018768]
mov ecx, ebp
mov rsi, rax
cmovne rdi, r14
mov rdx, rdi
call fcn.140010cc0
mov r14, rax
test rax, rax
je 0x1400052ce
test rbx, rbx
je 0x1400052ce
mov rcx, rax
call fcn.14000cc00
mov qword [rbx], rax
mov rdx, rsi
mov ecx, ebp
call fcn.140010cc0
test rax, rax
jne 0x1400052fa
cmp dword [0x14002f818], 4
jg 0x140005345
mov r8, rsi
lea rdx, str.failed_to_restore_old_locale___s_
lea ecx, [rax + 4]
call fcn.14000dcf0
jmp 0x140005345
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
jne 0x140005351
cmp byte [rdi], r14b
je 0x14000532b
cmp dword [0x14002f818], 4
jg 0x140005345
mov r8, rdi
lea rdx, str.invalid_locale_name___s_
lea ecx, [r14 + 4]
call fcn.14000dcf0
jmp 0x140005345
cmp dword [0x14002f818], 4
jg 0x140005345
lea rdx, str.invalid_locale_settings__check_LANG_and_LC__environment_variables
mov ecx, 4
call fcn.14000dcf0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140005440
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
call fcn.140013480
mov rdi, rax
test rax, rax
jne 0x140005477
cmp dword [0x14002f818], 4
jg 0x14000546b
lea rdx, str.out_of_memory
lea ecx, [rax + 4]
call fcn.14000dcf0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x30], rbx
mov rcx, rdi
xor ebx, ebx
lea edx, [rbx + 0x22]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400054a5
nop
lea rcx, [rax + 1]
mov edx, 0x22
inc ebx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x140005490
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rdi + rdx], 0
jne 0x1400054b0
lea eax, [rbx + rbx*2]
add rdx, 3
movsxd rcx, eax
add rcx, rdx
call fcn.14000cc90
mov rbx, rax
mov r8, rdi
mov byte [rax], 0x22
lea rcx, [rax + 1]
movzx edx, byte [rdi]
test dl, dl
je 0x140005514
nop
cmp dl, 0x22
jne 0x1400054fe
mov eax, dword [str.042]
mov dword [rcx], eax
movzx eax, byte [0x14001e02c]
mov byte [rcx + 4], al
mov eax, 4
jmp 0x140005505
mov byte [rcx], dl
mov eax, 1
movzx edx, byte [r8 + 1]
inc r8
add rcx, rax
test dl, dl
jne 0x1400054e0
mov word [rcx], 0x22
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret