joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a4c5e20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12d, dword [rcx + 0x90]
mov rdi, rcx
xor r14d, r14d
mov r13d, 0x40000000
nop
mov ecx, dword [rdi + 0x80]
test ecx, ecx
jne 0x5a4c5ecc
mov eax, dword [rdi + 0x6c]
test eax, eax
je 0x5a4c5e6a
cmp eax, 0xfffffffb
jne 0x5a4c5fa4
cmp dword [rdi + 0x50], 0
jne 0x5a4c5ec8
mov ebp, dword [rdi + 0x28]
xor ebx, ebx
mov r15, qword [rdi + 0x30]
nop dword [rax]
mov ecx, dword [rdi + 0x1c]
mov r8d, ebp
sub r8d, ebx
mov edx, ebx
cmp r8d, r13d
cmova r8d, r13d
add rdx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
test eax, eax
jle 0x5a4c5ea7
add ebx, eax
cmp ebx, ebp
jb 0x5a4c5e80
test eax, eax
js 0x5a4c5f0d
test eax, eax
jne 0x5a4c5eb4
mov dword [rdi + 0x50], 1
add dword [rdi + 0x80], ebx
mov rax, qword [rdi + 0x30]
mov ecx, dword [rdi + 0x80]
mov qword [rdi + 0x78], rax
test ecx, ecx
je 0x5a4c5f25
xor edx, edx
lea rcx, [rdi + 0x78]
call sym.zlib1.dll_inflate
mov r14d, eax
lea ecx, [rax + 2]
test ecx, 0xfffffffb
je 0x5a4c5f90
cmp eax, 0xfffffffc
je 0x5a4c5f82
cmp eax, 0xfffffffd
je 0x5a4c5f66
mov eax, dword [rdi + 0x90]
test eax, eax
je 0x5a4c5f3f
cmp r14d, 1
jne 0x5a4c5e50
jmp 0x5a4c5f3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov r8, rax
mov edx, 0xffffffff
jmp 0x5a4c5f9c
lea r8, str.unexpected_end_of_file
mov edx, 0xfffffffb
mov rcx, rdi
call fcn.5a4c52d0
mov eax, dword [rdi + 0x90]
sub r12d, eax
mov ecx, r12d
mov dword [rdi], ecx
mov rax, qword [rdi + 0x88]
sub rax, rcx
mov qword [rdi + 8], rax
cmp r14d, 1
jne 0x5a4c5f62
mov dword [rdi + 0x44], 0
xor eax, eax
jmp 0x5a4c5fa9
mov rax, qword [rdi + 0x98]
lea r8, str.compressed_data_error
test rax, rax
mov edx, 0xfffffffd
cmovne r8, rax
jmp 0x5a4c5f9c
lea r8, str.out_of_memory
mov edx, 0xfffffffc
jmp 0x5a4c5f9c
lea r8, str.internal_error:_inflate_stream_corrupt
mov edx, 0xfffffffe
mov rcx, rdi
call fcn.5a4c52d0
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x5a4c6080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor eax, eax
mov rbx, r9
mov dword [r9], eax
mov edi, r8d
mov rbp, rdx
mov rsi, rcx
mov r14d, 0x40000000
mov ecx, dword [rsi + 0x1c]
mov r8d, edi
sub r8d, eax
mov edx, eax
cmp r8d, r14d
cmova r8d, r14d
add rdx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov edx, eax
test eax, eax
jle 0x5a4c60dc
mov eax, dword [rbx]
add eax, edx
mov dword [rbx], eax
cmp eax, edi
jb 0x5a4c60b1
test edx, edx
jns 0x5a4c6105
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov edx, 0xffffffff
mov rcx, rsi
mov r8, rax
call fcn.5a4c52d0
mov eax, 0xffffffff
jmp 0x5a4c6110
jne 0x5a4c610e
mov dword [rsi + 0x50], 1
xor eax, eax
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 0x5a4ce156
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

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
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r14, qword [rcx + 0x20]
mov r8, r14
mov r9, qword [r8 + 0x20]
mov r8, qword [r8]
test r9, r9
je 0x5a4ce21a
movsxd rax, dword [r9 + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
je 0x5a4ce21a
lea r10, [r9 + rcx]
mov edx, dword [r10 + 0xc]
add rdx, r9
xor ebx, ebx
jmp 0x5a4ce1c4
ror ebx, 0xd
movsx ecx, r11b
cmp r11b, 0x61
lea eax, [rcx - 0x20]
cmovl eax, ecx
add ebx, eax
inc rdx
mov r11b, byte [rdx]
test r11b, r11b
jne 0x5a4ce1ae
mov edx, dword [r10 + 0x20]
xor r11d, r11d
add rdx, r9
cmp dword [r10 + 0x18], r11d
jbe 0x5a4ce21a
mov edi, dword [rdx]
add rdi, r9
xor esi, esi
jmp 0x5a4ce1fb
ror esi, 0xd
movsx ecx, bpl
cmp bpl, 0x61
lea eax, [rcx - 0x20]
cmovl eax, ecx
add esi, eax
inc rdi
mov bpl, byte [rdi]
test bpl, bpl
jne 0x5a4ce1e5
lea eax, [rbx + rsi]
cmp eax, 0x9e5a8833
je 0x5a4ce23c
inc r11d
add rdx, 4
cmp r11d, dword [r10 + 0x18]
jb 0x5a4ce1dc
cmp r8, r14
jne 0x5a4ce17f
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
mov ecx, dword [r10 + 0x24]
add rcx, r9
movzx r8d, word [rcx + r11*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov eax, dword [rcx + r8*4]
add rax, r9
jmp 0x5a4ce225
Function at 0x5a4ce1d0
Capabilities:
Resolve function by parsing pe exports

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
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r14, qword [rcx + 0x20]
mov r8, r14
mov r9, qword [r8 + 0x20]
mov r8, qword [r8]
test r9, r9
je 0x5a4ce21a
movsxd rax, dword [r9 + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
je 0x5a4ce21a
lea r10, [r9 + rcx]
mov edx, dword [r10 + 0xc]
add rdx, r9
xor ebx, ebx
jmp 0x5a4ce1c4
ror ebx, 0xd
movsx ecx, r11b
cmp r11b, 0x61
lea eax, [rcx - 0x20]
cmovl eax, ecx
add ebx, eax
inc rdx
mov r11b, byte [rdx]
test r11b, r11b
jne 0x5a4ce1ae
mov edx, dword [r10 + 0x20]
xor r11d, r11d
add rdx, r9
cmp dword [r10 + 0x18], r11d
jbe 0x5a4ce21a
mov edi, dword [rdx]
add rdi, r9
xor esi, esi
jmp 0x5a4ce1fb
ror esi, 0xd
movsx ecx, bpl
cmp bpl, 0x61
lea eax, [rcx - 0x20]
cmovl eax, ecx
add esi, eax
inc rdi
mov bpl, byte [rdi]
test bpl, bpl
jne 0x5a4ce1e5
lea eax, [rbx + rsi]
cmp eax, 0x9e5a8833
je 0x5a4ce23c
inc r11d
add rdx, 4
cmp r11d, dword [r10 + 0x18]
jb 0x5a4ce1dc
cmp r8, r14
jne 0x5a4ce17f
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
mov ecx, dword [r10 + 0x24]
add rcx, r9
movzx r8d, word [rcx + r11*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov eax, dword [rcx + r8*4]
add rax, r9
jmp 0x5a4ce225

Function at 0x5a4ce25a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test edx, edx
je 0x5a4ce2b2
push rbp
mov rbp, rsp
sub rsp, 0x10
mov r9, rcx
mov dword [rbp - 0x10], 0x7830696a
xor r8d, r8d
mov dword [rbp - 0xc], 0x51685466
mov dword [rbp - 8], 0x63595554
clc
push rsp
push rbp
pop rcx
invalid
mov dword [rbp - 4], 0x597a7442
ret
Function at 0x180002760
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x1800027ba
mov r11b, 0x23
lea rdi, [0x180046b10]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x1800027a4
cmp rdx, 2
jb 0x1800027a4
cmp byte [r10], r11b
jne 0x1800027a4
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x180002782
jmp 0x1800027fb
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x1800027fb
mov r11b, 0x23
lea rdi, [0x180046b10]
cmp dl, r11b
jne 0x1800027df
cmp byte [r10], r11b
jne 0x1800027df
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x1800027cd
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x180005710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
mov r9, rcx
mov rax, qword [rcx + 0xf8]
mov r10d, 8
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x180046b10]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x18000573d
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1228], ebx
jne 0x180005778
mov r8, rdx
mov ecx, ebx
lea edx, [r10 + 0xc]
call fcn.1800162a8
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180005780
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
mov r11d, 4
mov rax, qword [rcx + 0xf8]
mov r9, rcx
mov r10d, r11d
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x180046b10]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x1800057af
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1228], ebx
jne 0x1800057e9
movsxd r8, edx
mov ecx, ebx
mov edx, r11d
call fcn.1800162a8
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1800057f4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm2, dword [rcx + 0x110]
lea r9, [rsp]
movss xmm3, dword [rcx + 0x114]
mov r10d, 0x10
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
mov rax, qword [rcx + 0xf8]
subss xmm1, xmm3
movsxd rcx, dword [rcx + 0xf0]
movss dword [rsp], xmm0
movss xmm0, dword [rdx + 8]
mov r8d, dword [rax + rcx*4 - 4]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
not r8d
movss xmm1, dword [rdx + 0xc]
subss xmm1, xmm3
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
movzx ecx, byte [r9]
lea rax, [0x180046b10]
movzx edx, r8b
inc r9
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x180005862
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x1800253fc
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [0x180052720]
mov ecx, 0x11
add rbx, 8
movaps xmmword [rsp + 0x20], xmm6
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x18004cd88]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x18002544f
test al, al
je 0x18002543c
movaps xmm3, xmm6
jmp 0x18002543f
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x1000
mov rcx, rbx
call fcn.1800021d0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x180025484
test al, al
je 0x180025471
movaps xmm3, xmm6
jmp 0x180025474
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x2000
mov rcx, rbx
call fcn.1800021d0
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x1800254b9
test al, al
je 0x1800254a6
movaps xmm3, xmm6
jmp 0x1800254a9
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x4000
mov rcx, rbx
call fcn.1800021d0
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x1800254ec
test al, al
jne 0x1800254d9
xorps xmm6, xmm6
movaps xmm3, xmm6
mov r8b, al
mov edx, 0x8000
mov rcx, rbx
call fcn.1800021d0
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
Function at 0x18003d128
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rcx, [0x1800527a0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18003d14b
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
cmp qword [0x1800522d0], 0xffffffffffffffff
jne 0x18003d1ac
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
lea rcx, str.debuglog.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1800522d0], rax
cmp rax, 0xffffffffffffffff
jne 0x18003d1ac
xor r9d, r9d
lea r8, str.ASSERTION_FAILURE
lea rdx, str.Could_not_write_to_debuglog.txt
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x18003d1e3
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r8, rax
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rbx
mov rcx, qword [0x1800522d0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1800522d0]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [0x1800527a0]
add rsp, 0x40
pop rbx
jmp qword [sym.imp.MSVCP140.dll__Mtx_unlock]
invalid
and ah, byte [rdi]
mov bh, 0xab
adc edi, esi
xchg esp, eax
outsb dx, byte [rsi]
invalid
clc
push rbx
mov ebx, 0x54a3ea69
adc byte [rcx], bh
mov ecx, 0xa7f09d5f
ja 0x180096935
invalid
jge 0x1800969eb
ret 0xdc9f
cmp ah, cl
invalid
invalid
xchg ecx, eax
jge 0x1800969e2
invalid
Function at 0x18003eb30
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, qword [0x180052738]
mov rsi, rcx
mov al, byte [rcx]
mov rdx, rcx
mov r8, rdi
movabs r9, 0xcbf29ce484222325
movabs rcx, 0x100000001b3
jmp 0x18003eb7a
inc rdx
movzx eax, al
xor r9, rax
imul r9, rcx
mov al, byte [rdx]
test al, al
jne 0x18003eb6b
test rdi, rdi
je 0x18003eb9f
mov al, byte [rdi]
xor r9, 0x3a
jmp 0x18003eb97
inc r8
movzx eax, al
xor r9, rax
mov al, byte [r8]
imul r9, rcx
test al, al
jne 0x18003eb8b
mov r8, qword [0x180052828]
mov rbx, qword [0x180052820]
sub r8, rbx
sar r8, 5
test r8, r8
jle 0x18003ebec
or rbp, 0xffffffffffffffff
mov rdx, r8
shr rdx, 1
mov r11, rdx
shl r11, 5
cmp qword [r11 + rbx], r9
jae 0x18003ebe2
add rbx, 0x20
mov rax, rbp
add rbx, r11
sub rax, rdx
add r8, rax
jmp 0x18003ebe7
jbe 0x18003ec03
mov r8, rdx
test r8, r8
jg 0x18003ebbd
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, rbx
test rdx, rdx
je 0x18003ec38
mov r10, rdx
shr r10, 1
mov rcx, r10
shl rcx, 5
cmp qword [rcx + rax], r9
jae 0x18003ec30
add rcx, 0x20
add rax, rcx
mov rcx, rbp
sub rcx, r10
add rdx, rcx
jmp 0x18003ec33
mov rdx, r10
test rdx, rdx
jg 0x18003ec0b
shl r8, 5
lea rcx, [rbx + 0x20]
add rcx, r11
sub r8, rcx
add r8, rbx
sar r8, 5
jmp 0x18003ec77
mov r10, r8
shr r10, 1
mov rdx, r10
shl rdx, 5
cmp r9, qword [rdx + rcx]
jae 0x18003ec67
mov r8, r10
jmp 0x18003ec77
add rdx, 0x20
add rcx, rdx
mov rdx, rbp
sub rdx, r10
add r8, rdx
test r8, r8
jg 0x18003ec4f
cmp rax, rcx
je 0x18003ebec
cmp byte [rsi], 0
mov r10, rsi
mov r8, qword [rax + 8]
je 0x18003ecaa
mov r9b, byte [rsi]
mov dl, byte [r8]
inc r8
cmp r9b, dl
jne 0x18003ecd8
inc r10
mov r9b, byte [r10]
test r9b, r9b
jne 0x18003ec94
mov dl, byte [r8]
inc r8
cmp dl, 0x3a
jne 0x18003ecd8
mov r9b, byte [rdi]
mov r10, rdi
jmp 0x18003ecce
mov dl, byte [r8]
inc r8
cmp r9b, dl
jne 0x18003ecd8
inc r10
mov r9b, byte [r10]
test r9b, r9b
jne 0x18003ecbd
cmp byte [r8], r9b
je 0x18003ecde
add rax, 0x20
jmp 0x18003ec7c
mov rax, qword [rax + 0x10]
jmp 0x18003ebee
Function at 0x180041728
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x180093ba0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x18004175e
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180041794
mov eax, 0xa
jmp 0x180041820
test esi, esi
je 0x1800417b6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800417d7
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800417d7
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800417d1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800417d7
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180041d44
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180041da8
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180041d96
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180041d8f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180041d63
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180052648]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180041e44
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180041e8e
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180093b98]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x180041ecc
cmp rbx, r14
jb 0x180041ec7
cmp rbx, r12
jae 0x180041ec7
cmp qword [rbx + 8], rsi
jne 0x180042023
mov rbx, qword [rbx]
jmp 0x180041eae
mov r15, rdi
cmp rdi, r14
jb 0x180041f50
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x180041f47
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180041f47
cmp dword [rbp - 0x10], 0x10000
je 0x180041f17
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180041f47
jmp 0x180041ee3
test r15, r15
je 0x180041f47
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180041fe8
cmp r15, r14
jae 0x180041ed4
test rbx, rbx
jne 0x180041fe8
cmp rdi, r12
ja 0x180042023
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180042023
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180042023
cmp dword [rbp - 0x10], 0x10000
je 0x180041fbe
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x180041f77
test rdi, rdi
je 0x180042023
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x180041f4a
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x180041ff4
mov rax, qword [0x180093b98]
mov qword [rbx], rax
mov qword [0x180093b98], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800423bc
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800423d3
cmp r8b, 0x90
je 0x1800423d3
cmp r8b, 0xcc
jne 0x1800423f5
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1800423f1
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1800423f5
add edx, r10d
cmp edx, r9d
jb 0x1800423e1
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400045b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400045c0]
mov dword [rax], 1
mov rax, qword [0x1400045d0]
mov dword [rax], 1
mov rax, qword [0x140004550]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400045a0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004680]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004660]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004500]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014e2
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x1400015d0
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x10]
mov r8d, 8
mov edx, 0
mov rcx, rax
call sym.memset
nop
add rsp, 0xe0
pop rbp
ret