joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000addc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14000ae75
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x14000ae2d
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400163c0
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.140015b24
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x14005ad18]
movsxd r8, eax
mov rax, qword [rdi + 0x53f0]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14000ae7d
mov rcx, rbx
call fcn.140015b24
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140011834
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14005ad10]
mov rbx, rcx
and dword [rax + 0x537c], 0
test rcx, rcx
je 0x14001189d
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.1400118a8
lea rdx, [0x14004afb8]
mov rcx, rbx
mov rdi, rax
call fcn.14000961c
mov rbx, rax
test rax, rax
je 0x14001189d
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 0x1400252b4
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 [0x14005a998]
xor rax, rsp
mov qword [rbp - 8], rax
call fcn.140008c74
mov rcx, qword [0x14005ad98]
lea rdx, [rbp - 0x18]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rbp - 0x10]
sub ecx, dword [rbp - 0x18]
movd xmm1, ecx
mov ecx, dword [rbp - 0xc]
sub ecx, dword [rbp - 0x14]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rbp - 0x20]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x20]
xorps xmm1, xmm1
sub rax, qword [0x14005ada0]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x14005ada8]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rbp - 0x20]
mov qword [0x14005ada0], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov ecx, 0x10
mov byte [rdi + 0xe0c], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, bl
mov byte [rdi + 0xe0d], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
mov byte [rdi + 0xe0f], 0
mov byte [rdi + 0xe0e], al
call fcn.140008c74
cmp byte [rax + 0xd3], 0
lea rbx, [rax + 0xdf4]
je 0x1400253dd
cvttss2si ecx, dword [rbx]
lea rdx, [rbp - 0x30]
cvttss2si eax, dword [rax + 0xdf8]
mov dword [rbp - 0x30], ecx
mov rcx, qword [0x14005ad98]
mov dword [rbp - 0x2c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x2c]
mov ecx, dword [rbp - 0x30]
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 [0x14005ad98]
jne 0x140025432
lea rcx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140025432
mov rcx, qword [0x14005ad98]
lea rdx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140025432
movd xmm0, dword [rbp - 0x28]
movd xmm1, dword [rbp - 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0x70], 0
je 0x14002543d
or eax, 0xffffffff
jmp 0x140025442
call fcn.140008e40
cmp dword [0x140059018], eax
je 0x140025455
mov dword [0x140059018], eax
call fcn.140025480
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140046620
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x140033c04
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x34], 0xc0000001
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0x240
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x50]
mov edx, 0xf003f
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwOpenKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140033d54
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call fcn.14003f074
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140033ca8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwClose]
xor eax, eax
jmp 0x140033d56
mov eax, dword [rsp + 0x30]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140033d11
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
je 0x140033d2b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140033d56
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax]
jmp 0x140033d56
xor eax, eax
add rsp, 0x88
ret

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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1400365a0
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x140037798
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x1400377ba
mov rcx, qword [rsp + 0x40]
call fcn.140041ad0
jmp 0x1400377d1
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x1400377d1
mov rcx, qword [rsp + 0x40]
call fcn.1400418dc
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14003f074
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000023
je 0x14003f0c5
cmp dword [rsp + 0x30], 0x80000005
jne 0x14003f0cb
mov eax, dword [rsp + 0x34]
jmp 0x14003f0cd
xor eax, eax
add rsp, 0x48
ret

Function at 0x14003f1ec
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov rax, qword [0x14005a998]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x90], 0
jl 0x14003f245
cmp dword [rsp + 0x90], 0x7c
jge 0x14003f245
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x90]
lea rcx, [0x140059620]
call fcn.14003f6ec
lea rcx, [rsp + 0x50]
call fcn.14003637c
nop
cmp qword [rsp + 0x30], 0
jne 0x14003f26b
lea rdx, [0x1400500f8]
lea rcx, [rsp + 0x50]
call fcn.1400370f0
jmp 0x14003f27a
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400370f0
cmp dword [rsp + 0xa0], 1
jne 0x14003f295
lea rdx, [0x140050108]
lea rcx, [rsp + 0x50]
call fcn.1400370f0
movss xmm2, dword [0x14004b1c8]
movss xmm1, dword [0x140050e40]
lea rcx, [rsp + 0x48]
call fcn.140036988
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.140041f8c
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.14002cf2c
movzx eax, al
test eax, eax
je 0x14003f30a
cmp dword [rsp + 0xa0], 0
jne 0x14003f30a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rsp + 0x50]
call fcn.140036df0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140046620
add rsp, 0x88
ret
Function at 0x14003f5ac
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
lea rcx, [0x1400507b8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1400507a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003f635
lea rcx, [0x1400507d0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserSendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003f635
lea rcx, [0x1400507e4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.SendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003f635
xor al, al
jmp 0x14003f6e7
lea rcx, str.win32u
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1400507f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003f6b7
lea rcx, [0x140050828]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserGetAsyncKeyState
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003f6b7
lea rcx, str.user32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140050830]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003f6b7
xor al, al
jmp 0x14003f6e7
mov r8d, 0x1e
mov rdx, qword [rsp + 0x20]
lea rcx, [0x14005b0c0]
call fcn.140047266
mov r8d, 0x1e
mov rdx, qword [rsp + 0x28]
lea rcx, [0x14005b0e0]
call fcn.140047266
mov al, 1
add rsp, 0x38
ret

Function at 0x140040210
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140040242
xor eax, eax
jmp 0x140040298
mov r8d, 0x1e
lea rdx, [0x14005b0e0]
mov rcx, qword [rsp + 0x28]
call fcn.140047266
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
call qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140040ed4
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x44], 0xc0000001
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0x240
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x50]
mov edx, 0xf003f
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwOpenKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140040faa
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140040f9a
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwClose]
jmp 0x14004103c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, 0xf003f
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140041031
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140041031
mov byte [rsp + 0x40], 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_ZwClose]
mov al, byte [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x1400418dc
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x14004190c
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x14004198e
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14004195a
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x140041962
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140041901
mov qword [rsp + 8], 0xe3
jmp 0x1400419a6
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x140041a2d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x1400419f7
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x1400419ff
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140041999
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140041a81
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x140041a89
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x140041ad0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x140041af1
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x140041b75
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x140041b40
mov dword [rsp + 4], 0x9908b0df
jmp 0x140041b48
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140041ae4
add rsp, 0x18
ret
Function at 0x140045308
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400408c4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], 0
lea rax, [0x140040d7c]
mov qword [rsp + 0x78], rax
lea rax, [0x140050388]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], 3
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x1400453c0
lea rdx, str._n_n_notepad
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400332c0
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, [0x1400503a0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x14005b138], rax
mov edx, 5
mov rcx, qword [0x14005b138]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x140050378]
mov rcx, qword [0x14005b138]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x14005b138]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x14005b138]
call qword [sym.imp.USER32.dll_UpdateWindow]
add rsp, 0xc0
pop rdi
ret
Function at 0x140045494
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14005a998]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rdx, [0x14005aef8]
mov ecx, 0x20
call sub.d3d9.dll_Direct3DCreate9Ex
test eax, eax
jge 0x1400454cd
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov r8d, 0x40
xor edx, edx
lea rcx, [0x14005aeb0]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x14005af6c]
mov dword [0x14005aeb0], eax
mov eax, dword [0x14005af70]
mov dword [0x14005aeb4], eax
mov dword [0x14005aeb8], 0x15
mov dword [0x14005aec4], 0
mov dword [0x14005aee0], 0x50
mov dword [0x14005aec8], 1
mov dword [0x14005aedc], 1
mov rax, qword [0x14005b138]
mov qword [0x14005aed0], rax
mov dword [0x14005aed8], 1
mov rax, qword [0x14005aef8]
mov rax, qword [rax]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [0x14005b140]
mov qword [rsp + 0x30], rax
lea rax, [0x14005aeb0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20
mov r9, qword [0x14005b138]
mov r8d, 1
xor edx, edx
mov rcx, qword [0x14005aef8]
call qword [rsp + 0x48]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], 0x10
mov r9d, 8
mov r8d, 0x418
mov edx, 0x37b8
lea rcx, str.1.89_WIP
call fcn.140006e24
xor ecx, ecx
call fcn.140006b18
call fcn.140008c74
mov qword [rsp + 0x40], rax
mov rcx, qword [0x14005b138]
call fcn.14002517c
mov rcx, qword [0x14005b140]
call fcn.140024840
xor ecx, ecx
call fcn.14001d590
lea rcx, [rsp + 0x80]
call fcn.1400170cc
mov byte [rsp + 0xa0], 0
mov dword [rsp + 0x98], 5
mov dword [rsp + 0x9c], 5
movss xmm0, dword [0x14004f3bc]
movss dword [rsp + 0xd0], xmm0
lea rax, [0x140050db0]
mov qword [rsp + 0xb8], rax
movss xmm0, dword [0x140049968]
movss dword [rsp + 0x20], xmm0
xorps xmm3, xmm3
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rcx, [rsp + 0x68]
call fcn.1400369c0
lea rdx, str.C:WindowsFontsArial.ttf
lea rcx, [rsp + 0x110]
call fcn.140035898
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x50]
call fcn.14001a1a4
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x110]
call fcn.14004299c
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
movss xmm2, dword [0x14004b2ac]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140017b34
mov qword [0x14005ae40], rax
mov rax, qword [0x14005aef8]
mov rax, qword [rax]
mov rcx, qword [0x14005aef8]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140046620
add rsp, 0x148
ret
Function at 0x140046e74
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x88
movabs rcx, 0x1ffffeff00
mov edx, dword [0x140001378]
add rdx, 0x10000
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
movabs rcx, 0x1fffff0000
movabs rdx, 0x1ffffeff00
xor r8, r8
mov r9, r8
shl r9, 4
lea r9, [r9 + rcx]
lea rax, [r8 + rdx]
mov byte [rax], r8b
mov qword [r9], rax
mov dword [r9 + 8], 1
xor rax, rax
crc32 rax, r8b
mov dword [r9 + 0xc], eax
inc r8
cmp r8, 0x100
jne 0x140001166
lea rsi, [0x140001380]
movabs rdi, 0x2000000000
mov r12d, dword [0x14000137c]
movabs r13, 0x1fffff0000
mov qword [rsp], 0x100
mov qword [rsp + 8], rdi
xor rax, rax
mov qword [rsp + 0x10], rax
test qword [rsp + 0x18], 1
jne 0x1400011e5
mov r14, qword [rsi]
add rsi, 3
mov rbx, r14
and rbx, 0xfff
cmp rbx, 0xfff
jne 0x140001212
mov qword [rsp], 0x100
mov qword [rsp + 8], rdi
xor rax, rax
mov qword [rsp + 0x10], rax
jmp 0x1400012a9
cmp rbx, qword [rsp]
jge 0x14000126f
shl rbx, 4
add rbx, r13
mov rcx, qword [rbx]
mov edx, dword [rbx + 8]
call fcn.1400012e7
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
inc rdx
call fcn.140001328
test rax, rax
jne 0x140001253
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
inc rdx
call fcn.1400012fc
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
add rcx, rdx
mov qword [rsp + 8], rcx
mov eax, dword [rbx + 8]
mov qword [rsp + 0x10], rax
jmp 0x1400012a9
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
call fcn.1400012e7
mov rax, qword [rsp + 8]
mov al, byte [rax]
mov byte [rdi], al
inc rdi
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
add rcx, rdx
inc rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
call fcn.1400012fc
shr r14, 0xc
inc qword [rsp + 0x18]
dec r12
jne 0x1400011d3
movabs rax, 0x2000000008
lea rcx, [0x1400029f7]
lea rdx, [0x1400029fd]
jmp rax