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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401c1574]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140017990
mov rax, qword [0x1401c1578]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001782c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400178b7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140017810
mov rcx, r12
call fcn.140018290
mov rbp, rax
test rax, rax
je 0x1400179ed
mov rax, qword [0x1401c1578]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.1400183c0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401c1578]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400179d2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400178b0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140017940
add dword [0x1401c1574], 1
cmp ebx, 8
jae 0x1400178e8
test bl, 4
jne 0x1400179a0
test ebx, ebx
je 0x1400178d9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400179c0
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 0x1400178d9
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 0x14001791a
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 [0x1401c1578]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400178b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140017770
xor edi, edi
jmp 0x140017837
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400178d9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400178d9
mov rax, qword [0x1401c1578]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140017770
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140017770
nop
nop dword [rax]
Function at 0x140017f00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1401c15e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401c15c0]
test rbx, rbx
je 0x140017f54
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 0x140017f4b
test r12, r12
je 0x140017f4b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140017f30
lea rcx, [0x1401c15e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140018290
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140199d80]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140018309
mov rcx, r10
call fcn.140018160
test eax, eax
je 0x140018309
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 0x140018306
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 0x1400182fd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140018309
add r8, 0x28
cmp r8, r9
jne 0x1400182e8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140018600
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1401c15c8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x140017f90
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x140017fe3
mov dword [rax], edi
lea rcx, [0x1401c15e0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401c15c0]
lea rcx, [0x1401c15e0]
mov qword [0x1401c15c0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x140017f86
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140018630
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140023cf0
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140023d00
xor eax, eax
ret
jmp 0x140017f70

Function at 0x140018670
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x1400186b0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400186c8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140080860
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 0x140080887
call rbp
cmp dword [rax], 4
jne 0x1400808a4
mov rcx, rdi
call fcn.140080680
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140080880
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140094d10
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 0x140094d38
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 sub.msvcrt.dll__read
test eax, eax
jle 0x140094d80
cdqe
add rsi, rax
sub rbx, rax
jne 0x140094d50
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140094d8c
call rbp
cmp dword [rax], 4
je 0x140094d50
lea rcx, str.random_device_could_not_be_read
call fcn.1400bc960
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400a16e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r9, rcx
mov rdx, rcx
lea r11, [rcx + 0x38c]
mov r10d, 0x9908b0df
mov eax, dword [rcx]
and eax, 0x80000000
mov r8d, dword [rcx + 4]
and r8d, 0x7fffffff
or eax, r8d
mov r8d, eax
shr r8d, 1
xor r8d, dword [rcx + 0x634]
and eax, 1
cmovne eax, r10d
xor eax, r8d
mov dword [rcx], eax
add rcx, 4
cmp rcx, r11
jne 0x1400a16f3
lea r10, [r9 + 0x630]
mov r8d, 0x9908b0df
mov eax, dword [rdx + 0x38c]
and eax, 0x80000000
mov ecx, dword [rdx + 0x390]
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
shr ecx, 1
xor ecx, dword [rdx]
and eax, 1
cmovne eax, r8d
xor eax, ecx
mov dword [rdx + 0x38c], eax
add rdx, 4
cmp rdx, r10
jne 0x1400a1737
mov eax, dword [r9 + 0x9bc]
and eax, 0x80000000
mov edx, dword [r9]
and edx, 0x7fffffff
or eax, edx
mov edx, eax
shr edx, 1
xor edx, dword [r9 + 0x630]
and eax, 1
mov ecx, 0x9908b0df
cmovne eax, ecx
xor eax, edx
mov dword [r9 + 0x9bc], eax
mov qword [r9 + 0x9c0], 0
ret

Function at 0x1400a17b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp qword [rcx + 0x9c0], 0x26f
ja 0x1400a1806
mov rax, qword [rbx + 0x9c0]
lea rdx, [rax + 1]
mov qword [rbx + 0x9c0], rdx
mov eax, dword [rbx + rax*4]
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor edx, eax
mov eax, edx
shl eax, 0xf
and eax, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
call fcn.1400a16e0
jmp 0x1400a17c5
Function at 0x1400011c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor eax, eax
mov qword [rsp + 0x28], rcx
xorps xmm0, xmm0
movzx ebp, r9b
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
movzx r15d, r8b
mov qword [rcx + 0x18], rax
mov r14, rdx
cmp qword [rdx + 0x18], 0xf
mov rbx, rcx
mov rsi, qword [rdx + 0x10]
jbe 0x140001201
mov r14, qword [rdx]
movabs rdi, 0x7fffffffffffffff
cmp rsi, rdi
ja 0x140001349
cmp rsi, 0xf
ja 0x140001232
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 0xf
movups xmm0, xmmword [r14]
movups xmmword [rcx], xmm0
jmp 0x1400012c0
mov rcx, rsi
or rcx, 0xf
cmp rcx, rdi
jbe 0x14000126a
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140001dd0
mov rcx, rax
test rax, rax
je 0x14000129a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400012a6
mov edx, 0x16
mov rdi, rcx
cmp rcx, rdx
cmovb rdi, rdx
lea rcx, [rdi + 1]
test rcx, rcx
je 0x1400012a6
cmp rcx, 0x1000
jb 0x1400012a1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000134f
jmp 0x14000124c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001dd0
lea r8, [rsi + 1]
mov qword [rbx], rax
mov rdx, r14
mov qword [rbx + 0x10], rsi
mov rcx, rax
mov qword [rbx + 0x18], rdi
call sub.VCRUNTIME140.dll_memcpy
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x1400012d5
mov rcx, qword [rbx]
mov rdx, rcx
mov r9, rcx
jmp 0x1400012db
mov r9, rbx
mov rdx, rbx
mov r10, qword [rbx + 0x10]
add r10, rdx
cmp rcx, r10
je 0x140001335
movabs r11, 0x8080808080808081
nop dword [rax]
nop word [rax + rax]
movzx eax, r15b
xor al, bpl
xor byte [r9], al
rdtsc
shl rdx, 0x20
or rax, rdx
mov r8, rax
mov rax, r11
mul r8
shr rdx, 7
imul rcx, rdx, 0xff
sub r8, rcx
xor byte [r9], r8b
inc r9
cmp r9, r10
jne 0x140001300
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011a0
int3
call fcn.140001100
int3

Function at 0x140002730
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000277a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000277a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000277a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000277a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000277a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000277c
xor al, al
add rsp, 0x28
ret
Function at 0x401595
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r9d, 4
movsxd r12, edx
mov rdi, rcx
mov rbp, r8
xor ecx, ecx
mov r8d, 0x3000
mov rdx, r12
mov rsi, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
xor eax, eax
cmp esi, eax
jle 0x4015e0
mov rdx, rax
and edx, 3
mov dl, byte [rbp + rdx]
xor dl, byte [rdi + rax]
mov byte [rbx + rax], dl
inc rax
jmp 0x4015c7
mov rcx, rbx
call fcn.00401563
lea r9, [rsp + 0x3c]
mov rdx, r12
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
lea r8, [0x00401560]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x401630
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00408980]
mov qword [rsp + 0x38], 0
mov edx, 2
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r12, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4016dc
xor edx, edx
mov rcx, r12
lea rdi, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4016dc
test ebx, ebx
jle 0x4016c6
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4016d1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4016dc
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x4016a3
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x401704
Capabilities:
Read file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00408980]
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
lea rdi, [rsp + 0x4c]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
xor eax, eax
cmp r12, 0xffffffffffffffff
je 0x40179c
test ebx, ebx
jle 0x401781
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401791
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40179c
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x40175e
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x4017f8
Capabilities:
Create thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x004054b0]
movsxd rcx, dword [rbx + 4]
call sub.msvcrt.dll_malloc
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, rax
mov ecx, 0x400
call rsi
mov edx, dword [rbx + 4]
mov rcx, r12
call fcn.00401704
test eax, eax
je 0x4017c8
mov edx, dword [rbx + 4]
lea r8, [rbx + 8]
mov rcx, r12
call fcn.00401595
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov r8d, 0x5c
lea rcx, [0x00408980]
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cMSSE__d_server
call sub.msvcrt.dll_sprintf
xor ecx, ecx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x004016e6]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x4017a6

Function at 0x401d50
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.00402ec0
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.00402ec0
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 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00408614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401f68
mov rax, qword [0x00408618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401e0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401e97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401df0
mov rcx, r12
call fcn.00402b20
mov rbp, rax
test rax, rax
je 0x401fa2
mov rax, qword [0x00408618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00402c50
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401fb1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401e90
sub eax, 4
and eax, 0xfffffffb
jne 0x401f20
add dword [0x00408614], 1
cmp ebx, 8
jae 0x401ec8
test bl, 4
jne 0x401f70
test ebx, ebx
je 0x401eb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401f90
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 0x401eb9
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 0x401efa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00408618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401d50
nop dword [rax]
xor edi, edi
jmp 0x401e17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401eb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401eb9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00401d50
mov rax, qword [0x00408618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00401d50
nop
nop dword [rax]
Function at 0x402790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x4027e4
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 0x4027db
test r12, r12
je 0x4027db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4027c0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004053b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402b99
mov rcx, r10
call fcn.004029f0
test eax, eax
je 0x402b99
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 0x402b96
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 0x402b8d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402b99
add r8, 0x28
cmp r8, r9
jne 0x402b78
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x18003f2d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
mov edi, r8d
sub edx, 0x100
je 0x18003f304
sub edx, 4
je 0x18003f370
cmp edx, 1
jne 0x18003f2fc
cmp r8d, 0x12
sete al
add rsp, 0x20
pop rdi
ret
xor al, al
add rsp, 0x20
pop rdi
ret
cmp edi, 9
je 0x18003f370
cmp edi, 0x2e
je 0x18003f370
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 1
xor ebx, ebx
test ax, ax
cmovs ebx, ecx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18003f33e
or ebx, 2
mov ecx, SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18003f351
or ebx, 4
test ebx, ebx
je 0x18003f362
xor ebx, ebx
lea eax, [rdi - 0x25]
cmp eax, 3
seta bl
test ebx, ebx
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret
mov al, 1
add rsp, 0x20
pop rdi
ret
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
stosd dword [rdi], eax
lodsd eax, dword [rsi]
invalid
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
Function at 0x1004021e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rdx
mov rdx, qword [rdx + 0x110]
mov rsi, rcx
call fcn.100402360
lea rax, [0x10043469b]
cmp byte [rbx + 0x1c], 0
lea rdx, str._need_inum_
cmove rdx, rax
lea r9, str._need_type_
cmp byte [rbx + 0x1b], 0
mov rcx, rsi
cmove r9, rax
lea r8, str._call_stat_
cmp byte [rbx + 0x1a], 0
mov qword [rsp + 0x20], rdx
cmove r8, rax
lea rdx, str._s_s_s
call sub.msys_2.0.dll_fprintf
mov rdx, rbx
mov rcx, rsi
call fcn.100404cd0
pxor xmm1, xmm1
lea rdx, str.__est_success_rate__.4g_
mov rcx, rsi
cvtss2sd xmm1, dword [rbx + 0x24]
movq r8, xmm1
movapd xmm2, xmm1
call sub.msys_2.0.dll_fprintf
mov rax, qword [0x10044c2e0]
test byte [rax + 0x40], 0x40
jne 0x100402290
mov rdx, qword [rbx + 0x118]
mov rcx, rsi
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.100402360
mov r9, qword [rbx + 0x120]
mov r8, qword [rbx + 0x128]
lea rdx, str._real_success_rate__lu__lu
mov rcx, rsi
call sub.msys_2.0.dll_fprintf
mov rax, qword [rbx + 0x120]
test rax, rax
je 0x100402300
mov rdx, qword [rbx + 0x128]
test rdx, rdx
js 0x100402320
pxor xmm2, xmm2
cvtsi2sd xmm2, rdx
test rax, rax
js 0x100402340
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
divsd xmm2, xmm0
lea rdx, str._.4g_
mov rcx, rsi
movq r8, xmm2
call sub.msys_2.0.dll_fprintf
jmp 0x100402279
mov r9, rsi
mov r8d, 4
mov edx, 1
lea rcx, [0x1004346fa]
call fcn.100431b00
jmp 0x100402279
mov rcx, rdx
and edx, 1
pxor xmm2, xmm2
shr rcx, 1
or rcx, rdx
cvtsi2sd xmm2, rcx
addsd xmm2, xmm2
jmp 0x1004022ce
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
jmp 0x1004022dc

Function at 0x100403830
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x100403840
jmp fcn.1004021e0
ret

Function at 0x100403850
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x10044c2e0]
mov rbx, rcx
test byte [rax + 0x40], 0x40
jne 0x100403870
add rsp, 0x20
pop rbx
ret
call sub.msys_2.0.dll___getreent
mov r8d, 0x2a
mov edx, 1
lea rcx, str.Predicate_success_rates_after_completion:_n
mov r9, qword [rax + 0x18]
call fcn.100431b00
call sub.msys_2.0.dll___getreent
test rbx, rbx
je 0x1004038a6
mov rcx, qword [rax + 0x18]
mov rdx, rbx
call fcn.1004021e0
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
add rsp, 0x20
pop rbx
jmp sub.msys_2.0.dll_fputc