joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001f4c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x140044354], 0
lea rsi, [0x140044350]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x140001fb3
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x140001f81
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x140001f79
not ebx
mov edx, ebx
test edi, edi
jle 0x140001fd5
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x140001fbb
jmp 0x14000200f
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x14000200f
mov r9b, 0x23
cmp r8b, r9b
jne 0x140001ff4
cmp byte [r10], r9b
jne 0x140001ff4
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x140001fe3
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140002194
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x1400021cd
mov r8d, 0x56a
lea rdx, str.Imguiimgui.cpp
lea rcx, str.filename__file_open_mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x1400021d6
and qword [rdi], 0
lea rdx, [0x140037c08]
mov rcx, rbx
call fcn.140002024
mov rbx, rax
test rax, rax
je 0x1400022b0
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400022a7
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400022a7
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400022a7
mov rax, qword [0x140044140]
mov rbp, rsi
test rax, rax
je 0x140002244
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400022a7
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140002294
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140044140]
test rax, rax
je 0x140002289
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400022b0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x1400022a2
mov qword [rdi], rbp
mov rax, rsi
jmp 0x1400022b2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140003f08
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x1e0], 0
mov rdi, rdx
mov rbx, rcx
jg 0x140003f3b
mov r8d, 0x5bc
lea rdx, str.C:UsersdDesktopAlien_Free_Sourcepasting.gjImguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd r8, dword [rbx + 0x1e0]
xor edx, edx
mov rax, qword [rbx + 0x1e8]
mov rcx, rdi
mov r8d, dword [rax + r8*4 - 4]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140001f4c
Function at 0x140011a3c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140044140]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x140011aa5
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140011ab0
lea rdx, [0x140037c70]
mov rcx, rbx
mov rdi, rax
call fcn.140002024
mov rbx, rax
test rax, rax
je 0x140011aa5
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400186dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
xor r14d, r14d
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rsi, rdx
movsxd rdi, r9d
mov rbp, rcx
test r9d, r9d
jle 0x1400188cd
lea rbx, [r8 + 0x20]
xor r13d, r13d
lea r8d, [r14 + 1]
mov r11d, 0x100
xorps xmm7, xmm7
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001877e
movsxd r10, dword [rsi + 0x24]
mov r9, qword [rsi + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
mov r8d, 1
movd xmm0, eax
jmp 0x1400187a0
movsxd rdx, dword [rsi + 0x1c]
mov rax, qword [rsi + 8]
xorps xmm6, xmmword [0x14003e290]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov al, byte [rbp + 0x20]
xor r15d, r15d
cvtdq2ps xmm0, xmm0
mov byte [rbx], al
mov al, byte [rbp + 0x24]
mov byte [rbx + 1], al
divss xmm6, xmm0
cmp dword [rbx - 0x10], r15d
jle 0x1400188c0
mov rcx, qword [rsp + 0xe0]
mov rax, r13
shl rax, 4
add rcx, 6
xor r12d, r12d
add rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x1400187ee
mov edx, dword [rbx - 0x1c]
add edx, r15d
jmp 0x1400187f2
mov edx, dword [rax + r12]
mov rcx, rsi
call fcn.140014344
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, rsi
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x20], xmm7
call fcn.14001630c
mov rcx, qword [rsp + 0x60]
mov r8d, 1
movzx eax, word [rbp + 0x1c]
add r14d, r8d
sub ax, word [rsp + 0xd8]
add r13, r8
add ax, word [rbp + 0x20]
add r15d, r8d
add ax, word [rsp + 0x50]
add r12, 4
sub ax, r8w
mov word [rcx - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x54]
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x58]
sub ax, r8w
mov word [rcx], ax
add rcx, 0x10
mov qword [rsp + 0x60], rcx
cmp r15d, dword [rbx - 0x10]
jl 0x1400187dd
mov r11d, 0x100
add rbx, 0x28
sub rdi, r8
jne 0x14001872c
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov eax, r14d
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140021f78
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rbp - 8], rax
call fcn.140004a7c
mov rcx, qword [0x140044288]
lea rdx, [rbp - 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rbp - 0x20]
sub ecx, dword [rbp - 0x28]
movd xmm1, ecx
mov ecx, dword [rbp - 0x1c]
sub ecx, dword [rbp - 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rbp - 0x10]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x10]
xorps xmm1, xmm1
sub rax, qword [0x140044290]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140044298]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rbp - 0x10]
mov qword [0x140044290], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov ecx, 0x10
mov byte [rdi + 0x128], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, bl
mov byte [rdi + 0x129], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
mov byte [rdi + 0x12b], 0
mov byte [rdi + 0x12a], al
call fcn.140004a7c
cmp byte [rax + 0x3a7], 0
lea rbx, [rax + 0x110]
je 0x1400220a1
cvttss2si ecx, dword [rbx]
lea rdx, [rbp - 0x18]
cvttss2si eax, dword [rax + 0x114]
mov dword [rbp - 0x18], ecx
mov rcx, qword [0x140044288]
mov dword [rbp - 0x14], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x14]
mov ecx, dword [rbp - 0x18]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 0xff7fffff
mov dword [rbx], eax
mov dword [rbx + 4], eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x140044288]
jne 0x1400220f6
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400220f6
mov rcx, qword [0x140044288]
lea rdx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400220f6
movd xmm0, dword [rbp - 0x30]
movd xmm1, dword [rbp - 0x2c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc8], 0
je 0x140022104
or eax, 0xffffffff
jmp 0x140022111
mov rax, qword [0x140044140]
mov eax, dword [rax + 0x1d70]
cmp dword [0x1400435b8], eax
je 0x140022124
mov dword [0x1400435b8], eax
call fcn.140021ecc
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400330c0
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x14002f6d8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
lea r8, [0x14002f618]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [rsp + 0x64], edi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x98], rdi
call qword [sym.imp.GDI32.dll_GetStockObject]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
lea rsi, str.notepad.exe
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x60]
lea rax, [0x140031d90]
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 3
call qword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x14002f7a0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdx, rsi
call fcn.140032ad4
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov qword [rsp + 0x58], rdi
mov r9d, 0x80000000
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], rdi
mov rdx, rsi
mov qword [rsp + 0x40], rdi
xor ecx, ecx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
mov qword [0x1400442e0], rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400442e0]
lea rdx, [0x14003b9a0]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x1400442e0]
mov edx, 0xffffffec
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1400442e0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400330c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14002ff4c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
mov rax, qword [0x140043010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [0x140044228]
movaps xmm8, xmm0
cdq
xorps xmm3, xmm3
sub eax, edx
movaps xmm6, xmm1
sar eax, 1
xorps xmm2, xmm2
xorps xmm7, xmm7
movd xmm5, eax
mov eax, dword [0x14004415c]
cdq
sub eax, edx
sar eax, 1
ucomiss xmm8, xmm3
movd xmm4, eax
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
jp 0x14002ffb0
je 0x14002fff8
comiss xmm8, xmm5
jbe 0x14002ffdb
movaps xmm2, xmm5
movaps xmm0, xmm5
subss xmm2, xmm8
addss xmm0, xmm5
xorps xmm2, xmmword [0x14003e290]
movaps xmm1, xmm2
addss xmm1, xmm5
comiss xmm1, xmm0
jbe 0x14002ffdb
xorps xmm2, xmm2
comiss xmm5, xmm8
jbe 0x14002fff8
movaps xmm2, xmm8
subss xmm2, xmm5
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm3, xmm0
jbe 0x14002fff8
xorps xmm2, xmm2
ucomiss xmm6, xmm3
jp 0x14002ffff
je 0x140030043
comiss xmm6, xmm4
jbe 0x140030028
movaps xmm7, xmm4
movaps xmm0, xmm4
subss xmm7, xmm6
addss xmm0, xmm4
xorps xmm7, xmmword [0x14003e290]
movaps xmm1, xmm7
addss xmm1, xmm4
comiss xmm1, xmm0
jbe 0x140030028
xorps xmm7, xmm7
comiss xmm4, xmm6
jbe 0x140030043
movaps xmm7, xmm6
subss xmm7, xmm4
movaps xmm1, xmm7
addss xmm1, xmm4
comiss xmm3, xmm1
jbe 0x140030043
xorps xmm7, xmm7
divss xmm2, dword [0x14003e0dc]
and dword [rsp + 0x20], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x38], 0
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
divss xmm7, dword [0x14003e0dc]
cvttss2si eax, xmm0
movaps xmm0, xmm7
movd xmm1, eax
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [0x140044168]
cvttsd2si eax, xmm1
mov dword [rsp + 0x28], eax
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
cvttss2si eax, xmm0
xor ecx, ecx
mov dword [rsp + 0x34], 0x4001
mov edx, 0x1000
mov r8d, edx
lea r9d, [rcx + 0x40]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm1, qword [0x140044238]
cvttsd2si eax, xmm1
mov dword [rsp + 0x2c], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14003012b
movups xmm0, xmmword [0x1400442f0]
mov r8d, 0x28
lea rdx, [rsp + 0x20]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140044300]
movsd qword [rax + 0x10], xmm1
mov ecx, dword [0x140044308]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x14004430c]
mov word [rax + 0x1c], cx
lea ecx, [r8 - 0x27]
call rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400330c0
movaps xmm6, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x50]
add rsp, 0x80
pop rbx
ret
Function at 0x140033cdc
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
movsxd rdi, eax
cmp edi, 0xffffffff
jne 0x140002cc1
mov rdx, qword [rsi + 0x30]
mov r8, qword [rdx]
mov dword [r8 + 0x28], 0x2c
mov rcx, qword [rsi + 0x30]
mov rdx, qword [rcx]
call qword [rdx]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test eax, eax
jle 0x140002d00
mov r9, qword [rsi + 0x18]
mov r8, rdi
mov edx, 1
mov qword [rsp + 0x30], rbx
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, qword [rsp + 0x30]
cmp rax, rdi
je 0x140002d00
mov rax, qword [rsi + 0x30]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x2c
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
call qword [rax]
mov rbp, qword [rsp + 0x38]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140003020
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x130
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rdi, rcx
mov qword [rsp + 0x148], rbx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
cmp eax, 0xffffffff
je 0x140003091
test eax, eax
jle 0x1400030a8
mov r9, qword [rdi + 0x18]
lea rcx, [rsp + 0x20]
movsxd rbx, eax
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
je 0x140003046
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x2c
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax]
jmp 0x140003046
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x2c
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
call qword [rax]
mov rbx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140005fb0
add rsp, 0x130
pop rdi
ret
Function at 0x140003940
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003974
cmp word [rcx], 0x5a4d
jne 0x140003974
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003974
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003974
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003880
test eax, eax
jne 0x140003990
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038f0
test rax, rax
je 0x140003985
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000414b
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004040
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003fe0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400044b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000eb58]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000eb54]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004502
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044fa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045e9
inc ebx
add rax, 0x28
jmp 0x1400044da
mov rcx, r12
call fcn.140004ce1
mov rbp, rax
test rax, rax
jne 0x140004521
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004450
movsxd rbx, ebx
mov rax, qword [0x14000eb58]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d8f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000eb58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004583
mov rax, qword [0x14000eb58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004450
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045e3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045e3
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 [0x14000eb58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004450
inc dword [0x14000eb54]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004a10
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000ebc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000eba0]
test rbx, rbx
je 0x140004a5c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a56
test eax, eax
jne 0x140004a56
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a2e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004c10
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004c33
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004c33
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004c34
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c6e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c65
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c70
inc r8d
add rax, 0x28
jmp 0x140004c4c
xor eax, eax
ret

Function at 0x140004ce1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000ac90]
mov r8, rcx
mov rcx, r9
call fcn.140004c10
test eax, eax
je 0x140004d0d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c34
xor eax, eax
add rsp, 0x28
ret
Function at 0x140012b20
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov edx, dword [rax]
cmp edx, 1
mov rdx, qword [rcx]
seta al
test al, al
jne case.default.0x140012b92
dec dword [rdx + 4]
mov rdx, qword [rcx]
mov qword [rsp + 0x20], rbx
movsxd rax, dword [rdx + 4]
lea rcx, [rax + rax*8]
mov rax, qword [rdx + 0x10]
lea rbx, [rax + rcx*8]
add rbx, rdx
lea rcx, [rbx + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
lea rcx, [rbx + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
lea rcx, [rbx + 0x28]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
lea rcx, [rbx + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
lea rcx, [rbx + 8]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov rcx, rbx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov r8d, dword [rdx + 8]
xor r9d, r9d
mov edx, dword [rdx + 4]
btr r8d, 0x1f
dec edx
add rsp, 0x28
jmp fcn.1400111f0

Function at 0x14001b500
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [0x14002e120]
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
jne 0x14001b59b
test rsi, rsi
jne 0x14001b59b
call fcn.14001b620
mov rcx, rbp
mov rsi, rax
call fcn.14001b620
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.14001b5f0
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_char____ptr64___cdecl_QByteArray::data_void____ptr64]
lea rcx, [rbp + 0x18]
mov rdi, rax
call fcn.14001b640
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsi]
lea rdx, str._s__d_:_Parse_error_at___s__n
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov r8, rbx
call fcn.1400131e0
lea rcx, [rsp + 0x48]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
jmp 0x14001b5e4
call fcn.14001b620
test rbx, rbx
lea rcx, [rbp + 0x18]
mov rdi, rax
cmovne rsi, rbx
call fcn.14001b640
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rdi]
lea rdx, str._s__d_:_Error:__s_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rbx
call fcn.1400131e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3