joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070c4]
mov rbx, rcx
test esi, esi
jle 0x140001d00
mov rax, qword [0x1400070c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ca5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d22
mov rax, qword [0x1400070c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001cb0
add dword [0x1400070c4], 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 [0x1400070c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001c28
mov rax, qword [0x1400070c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002290
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x1400022ec
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 eax, eax
jne 0x1400022e3
test rsi, rsi
je 0x1400022e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022c8
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 0x140002500
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002518
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002520
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002530
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000257d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002574
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000257f
add rax, 0x28
cmp rax, r9
jne 0x140002560
xor eax, eax
ret

Function at 0x140002580
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002610
mov rdx, qword [0x1400043b0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025fe
cmp word [rax + 0x18], 0x20b
jne 0x1400025fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002610
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025e9
add rbx, 0x28
cmp rbx, rdi
je 0x140002610
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002620
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400026a0
Capabilities:
Parse pe header

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

Function at 0x1400026e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002700
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002708
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002700
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002750
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002747
test rcx, rcx
je 0x140002700
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002738
xor eax, eax
ret
Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000277f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002788
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400027a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400027c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002814
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002820
add rdx, 0x28
cmp r9, rdx
jne 0x140002800
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002830
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002852
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002860
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002852
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002852
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002852
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400028b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400028c8
add rdx, 0x28
cmp rdx, r10
jne 0x1400028a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400028d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400028e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400028be
test ecx, ecx
jg 0x1400028d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140049290]
mov dword [rax], 1
mov rax, qword [0x1400492a0]
mov dword [rax], 1
mov rax, qword [0x1400492b0]
mov dword [rax], 1
mov rax, qword [0x140049280]
mov dword [rax], 1
mov rax, qword [0x140049140]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140005cc0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sym.fread
mov r12, rax
cmp rbx, rax
je 0x140005cf3
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x140005d00
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r13
call sym.checkErr__stdZsyncio_u162.part.0
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret

Function at 0x140006730
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov edx, 1
mov r9, r12
call sym.fwrite
mov rcx, r12
mov r13, rax
call sym.ferror
test eax, eax
je 0x140006762
mov rcx, r12
call sym.checkErr__stdZsyncio_u162.part.0
mov rax, r13
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x1400069f0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov r13, rdx
call sym.strlen
mov rcx, r13
mov r9, r12
mov edx, 1
mov r8, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x14000dba0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush
Function at 0x14000dbf0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov rax, qword [0x140052170]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x14000dca0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000dc80
call sym.strlen
lea r13, [rsp + 0x20]
mov rdx, r12
mov rcx, r13
mov r8, rax
call sym.toNimStr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140052170]
test r12, r12
je 0x14000dc59
test byte [r12 + 7], 0x40
je 0x14000dcd8
lea rcx, [0x140044440]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000dcf8
add rsp, 0x40
pop rbx
pop r12
pop r13
ret
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rax
jmp 0x14000dc59
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sym.fwrite
mov rcx, r13
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x140044460]
call sym.__emutls_get_address
mov rdx, r12
mov rcx, rax
call sym.rawDealloc__system_u7002
jmp 0x14000dc59
mov byte [rax], 0
lea rcx, [0x140044340]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u171

Function at 0x14000fdd0
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x140052140]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14000fe5f
lea rcx, [0x140044440]
xor r14d, r14d
lea r12, [rsp + 0x20]
call sym.__emutls_get_address
mov rbp, qword [sym.__acrt_iob_func]
mov rdi, rax
jmp 0x14000fe2d
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x14000fe66
mov ecx, 1
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8960
cmp byte [rdi], 0
je 0x14000fe20
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.__acrt_iob_func]
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x140045521]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140025cd0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov rcx, r8
test rax, rax
je 0x140025cf8
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x140025d30
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x2444a200
jne 0x140025d30
test rcx, rcx
js 0x140025d10
mov r9, qword [rax + 0x58]
mov r8, rcx
mov rcx, r9
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u165
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret

Function at 0x140025d80
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9, qword [r8]
mov rax, rcx
mov rcx, qword [r8 + 8]
test rax, rax
je 0x140025dac
mov r8, qword [rax]
cmp word [r8 + 0x12], 1
jle 0x140025e00
mov r8, qword [r8 + 0x18]
cmp dword [r8 + 8], 0x2444a200
jne 0x140025e00
mov r8, qword [rdx]
test r9, r9
js 0x140025de8
cmp r8, r9
jle 0x140025de8
add rcx, 1
jo 0x140025e0c
sub rcx, r9
jo 0x140025e0c
test rcx, rcx
js 0x140025e20
mov rdx, qword [rdx + 8]
mov r8, rcx
lea rdx, [rdx + r9 + 8]
mov r9, qword [rax + 0x58]
mov rcx, r9
add rsp, 0x28
jmp sym.readBuffer__stdZsyncio_u165
lea rdx, [r8 - 1]
mov rcx, r9
call sym.raiseIndexError2
xor eax, eax
add rsp, 0x28
ret
call sym.raiseObjectConversionError
xor eax, eax
add rsp, 0x28
ret
call sym.raiseOverflow
xor eax, eax
add rsp, 0x28
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call sym.raiseRangeErrorI
jmp 0x140025df4
Function at 0x180014810
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov r14, r8
mov r9d, edx
mov rdx, rcx
mov rcx, qword [section..data]
mov qword [rsp + 0xa0], rcx
mov esi, dword [0x18005af68]
mov edi, dword [0x18005af64]
mov ecx, esi
neg ecx
not ecx
imul ecx, esi
mov ebx, ecx
xor ebx, 0xfffffffe
and ebx, ecx
sete cl
sete byte [rsp + 0x2e]
cmp edi, 0xa
setl al
xor al, cl
mov esi, 0xeaa82e9b
mov r8d, 0xb7a23093
mov eax, 0xb7a23093
cmovne eax, esi
test ebx, ebx
cmovne esi, eax
cmp edi, 0xa
setl byte [rsp + 0x2f]
cmovge esi, eax
mov ecx, 0x90110d6e
mov edi, 0x55c01f1
movaps xmm0, xmmword [0x18004a420]
movaps xmm1, xmmword [0x18004a430]
jmp 0x1800148c0
movzx ebx, byte [rsp + 0x2e]
movzx ecx, byte [rsp + 0x2f]
mov eax, ebx
xor al, cl
test cl, cl
mov ecx, 0xb7a23093
cmovne ecx, edi
test bl, bl
cmove ecx, r8d
test al, al
cmovne ecx, edi
cmp ecx, 0xeaa82e9a
jg 0x180014900
cmp ecx, 0x90110d6e
je 0x18001489d
cmp ecx, 0xb7a23093
jne 0x1800148c0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x30], 0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm1
mov ecx, 0x55c01f1
jmp 0x1800148c0
cmp ecx, 0xeaa82e9b
je 0x18001492f
cmp ecx, 0x55c01f1
jne 0x1800148c0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x30], 0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm1
mov ecx, esi
jmp 0x1800148c0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, r9d
call fcn.180012da0
mov rcx, rdi
mov rdx, r14
call fcn.180014020
mov rcx, qword [rsp + 0xa0]
call fcn.180039a90
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x180042b60
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180042a00
call fcn.180040250
mov dword [rax], 0x16
call fcn.18003edec
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800429e8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800429e8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x180042a32
lock or dword [rax + 0x14], 0x10
jmp 0x1800429e8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180042a4f
mov rcx, qword [rbp + 0x10]
call fcn.18004716c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180040444
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800421d4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180042aa6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800429e8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180042b12
mov rcx, qword [rbp + 0x10]
call fcn.180040444
cmp eax, 0xffffffff
je 0x180042af9
mov rcx, qword [rbp + 0x10]
call fcn.180040444
cmp eax, 0xfffffffe
je 0x180042af9
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180040444
movsxd rdi, eax
lea rsi, [0x18005a670]
mov rcx, rbx
sar rdi, 6
call fcn.180040444
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180042b00
lea rax, [0x1800593d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180042b12
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180042b48
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180042b44
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180042b44
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800429eb
jmp 0x1800429b8
Function at 0x140002f50
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
lea rdx, [0x140038277]
mov ecx, 2
call fcn.140011a34
xor r9d, r9d
mov r8, qword [rsp + 0x20]
lea rdx, [0x140002eb0]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rsp + 0x28], rax
call fcn.140002e70
xor eax, eax
add rsp, 0x38
ret

Function at 0x14000a23c
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000a26a
xor eax, eax
jmp 0x14000a350
cmp qword [rcx + 0x68], 0
je 0x14000a27b
call fcn.14000a36c
jmp 0x14000a350
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a292
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a294
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a2c6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000d1b0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000a34a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000a2fd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000a326
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400152e0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000a34a
cmp rsi, rbx
ja 0x14000a304
test rsi, rsi
je 0x14000a34a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400152e0
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000c080
Capabilities:
Parse pe header

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

Function at 0x140018268
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018064
Function at 0x14001fc14
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000b960
sub rsp, rax
mov rax, qword [0x14003d020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d830
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001fc63
mov rax, rbp
jmp 0x14001fd6b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3f450]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140020d34
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f450]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001fd67
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001fd67
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140020d34
test rax, rax
js 0x14001fd67
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001fd67
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001fd59
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001fd59
cmp byte [rcx], 0xd
jne 0x14001fd3f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001fd4e
cmp byte [rcx + 1], 0xa
jne 0x14001fd4e
inc rcx
jmp 0x14001fd4e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3d410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001fd21
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001fd6b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b300
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001ff8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ffa2
mov al, 1
jmp 0x140020002
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ffb3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140020000
mov ecx, dword [rcx + 0x18]
nop
call fcn.140023f64
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140020000
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140020000
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140020000
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140020002
xor al, al
add rsp, 0x20
pop rbx
ret