joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008130
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x140064718]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rax, qword [rsp + 0x1f0]
mov qword [rbp + 0x10], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 2]
lea rcx, [rbp + 0x100]
call fcn.140004e90
mov rcx, rax
call fcn.140009a00
mov qword [rbp + 0x18], rax
mov r8, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x160]
call fcn.140005380
nop
lea rcx, [rbp + 0x160]
call fcn.1400016a0
mov rdx, rax
lea rcx, [rbp + 0x140]
call sub.ntdll.dll_RtlInitAnsiString
mov r8b, 1
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x150]
call sub.ntdll.dll_RtlAnsiStringToUnicodeString
lea rcx, [rbp + 0x150]
call sub.ntdll.dll_NtUnloadDriver
mov dword [rbp + 0xc], eax
mov rcx, qword [rsp + 0x1f0]
call fcn.140007fb0
nop
mov rax, qword [rsp + 0x1f0]
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0xd0]
call fcn.14000a820
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x30]
call fcn.14000a6b0
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x50], rax
mov r8, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x50]
lea rcx, [rbp + 0x90]
call fcn.1400052c0
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x60], rax
xor r8d, r8d
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x70]
call fcn.140005270
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0x70]
call fcn.14000a4a0
nop
lea rcx, [rbp + 0x70]
call fcn.140007310
nop
lea rcx, [rbp + 0x90]
call fcn.1400012c0
nop
lea rcx, [rbp + 0xb0]
call fcn.1400012c0
nop
lea rcx, [rbp + 0xd0]
call fcn.140007310
nop
jmp 0x1400082fe
cmp dword [rbp + 0xc], 0
jl 0x14000830d
mov dword [rbp + 8], 1
jmp 0x140008314
mov dword [rbp + 8], 0
movzx eax, byte [rbp + 8]
mov byte [rbp + 4], al
lea rcx, [rbp + 0x160]
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x1f0]
call fcn.1400012c0
movzx eax, byte [rbp + 4]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140021a70
add rsp, 0x1d8
pop rdi
pop rbp
ret
Function at 0x14000aa40
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140064718]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov edx, 0x18
lea rcx, [rsp + 0x50]
call fcn.1400044c0
lea rcx, [rsp + 0x20]
call fcn.140001220
mov r8, rax
mov edx, 0x45e0
lea rcx, [rsp + 0x50]
call fcn.1400029b0
nop
lea rcx, [rsp + 0x50]
call fcn.140004840
mov r8d, 0x45e0
lea rdx, [0x140060080]
mov rcx, rax
call fcn.140022b50
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call fcn.140002900
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140003680
movzx eax, al
test eax, eax
jne 0x14000aae9
mov ecx, 0x834
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x50]
call fcn.1400031a0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140021a70
add rsp, 0x78
ret
Function at 0x140010e80
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x58]
call fcn.14002a9d0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x140010eed
mov rax, qword [rsp + 0x20]
add rax, 0x28
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x20], rax
jae 0x140010f6c
mov rax, qword [rsp + 0x20]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call fcn.1400243b0
test eax, eax
jne 0x140010f67
mov rax, qword [rsp + 0x20]
mov rcx, rax
call fcn.14002a9d0
cmp rax, qword [rsp + 0x38]
jne 0x140010f67
cmp qword [rsp + 0x60], 0
je 0x140010f52
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
jmp 0x140010f6e
jmp 0x140010edf
xor eax, eax
add rsp, 0x48
ret
Function at 0x140010f80
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140064718]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140011024
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x50]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
jmp 0x140010fc9
cmp dword [rsp + 0x30], 0
jge 0x140011045
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14001113a
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x140011063
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140011125
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140002850
lea rcx, [rsp + 0x58]
call fcn.1400016a0
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.14002a8ec
test eax, eax
jne 0x140011116
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x58]
call fcn.1400012c0
mov rax, qword [rsp + 0x48]
jmp 0x14001113a
lea rcx, [rsp + 0x58]
call fcn.1400012c0
jmp 0x140011059
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140021a70
add rsp, 0x88
ret

Function at 0x140014860
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.1400147c0
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1400156f0
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 0x140015712
mov rcx, qword [rsp + 0x40]
call fcn.140019110
jmp 0x140015729
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140015729
mov rcx, qword [rsp + 0x40]
call fcn.140018cc0
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 0x1400157c0
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], 0x138
jne 0x1400157e2
mov rcx, qword [rsp + 0x40]
call fcn.1400191c0
jmp 0x1400157f9
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jb 0x1400157f9
mov rcx, qword [rsp + 0x40]
call fcn.140018ec0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax*8 + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shr rax, 0x1d
mov rcx, qword [rsp + 0x40]
and rax, qword [rcx + 0x1388]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rax, rcx
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shl rax, 0x25
movabs rcx, 0xfff7eee000000000
and rax, rcx
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
shr rax, 0x2b
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400170b0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x140064718]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov eax, 4
mov eax, eax
mov ecx, dword [0x140066360]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x140065a68], eax
jle 0x1400171c2
lea rcx, [0x140065a68]
call fcn.140021dc4
cmp dword [0x140065a68], 0xffffffff
jne 0x1400171c2
lea rax, [rbp + 0x28]
mov qword [rbp + 8], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 2]
lea rcx, [rbp + 0x60]
call fcn.140012510
mov rcx, rax
call fcn.140019a10
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.140002850
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x18], rax
mov rax, qword [0x140065a18]
mov qword [rbp + 0x20], rax
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x20]
call fcn.140015e70
mov qword [0x140065a60], rax
lea rcx, [0x140065a68]
call fcn.140021d58
cmp qword [0x140065a60], 0
jne 0x1400171d0
xor eax, eax
jmp 0x14001723f
mov qword [rbp + 0x80], 0
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x20], eax
movzx r9d, byte [rsp + 0x118]
mov r8, qword [rsp + 0x110]
lea rdx, [rbp + 0x80]
mov rcx, qword [0x140065a60]
call fcn.140013930
movzx eax, al
test eax, eax
jne 0x140017238
xor eax, eax
jmp 0x14001723f
mov rax, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.140021a70
add rsp, 0xf8
pop rdi
pop rbp
ret
Function at 0x140018cc0
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 0x140018cf0
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x140018d72
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 0x140018d3e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x140018d46
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 0x140018ce5
mov qword [rsp + 8], 0xe3
jmp 0x140018d8a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x140018e11
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 0x140018ddb
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x140018de3
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 0x140018d7d
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 0x140018e65
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x140018e6d
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 0x140018ec0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0x137
mov qword [rsp + 0x48], 0x9c
mov qword [rsp], 0
jmp 0x140018ef0
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x9c
jae 0x140018f8e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
and rax, 1
test rax, rax
je 0x140018f54
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp + 0x18], rax
jmp 0x140018f5d
mov qword [rsp + 0x18], 0
mov rax, qword [rsp + 0x10]
shr rax, 1
xor rax, qword [rsp + 0x18]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp]
xor rax, qword [rcx + rdx*8 + 0xea8]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x140018ee5
mov qword [rsp + 8], 0x9c
jmp 0x140018fa6
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x137
jae 0x140019049
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 8]
mov rax, qword [rax + rcx*8 + 0x9c8]
and rax, 0xffffffff80000000
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 8]
mov rcx, qword [rcx + rdx*8 + 0x9d0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
and rax, 1
test rax, rax
je 0x14001900d
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp + 0x28], rax
jmp 0x140019016
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x20]
shr rax, 1
xor rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 8]
xor rax, qword [rcx + rdx*8 - 0x4d8]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x140018f99
mov qword [rsp + 0x50], 0x137
mov eax, 8
imul rax, rax, 0x26f
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 8]
and rax, 0xffffffff80000000
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rdx + rcx + 8]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
and rax, 1
test rax, rax
je 0x1400190af
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp + 0x38], rax
jmp 0x1400190b8
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x30]
shr rax, 1
xor rax, qword [rsp + 0x38]
mov ecx, 8
imul rcx, rcx, 0x9b
mov rdx, qword [rsp + 0x70]
xor rax, qword [rdx + rcx + 8]
mov ecx, 8
imul rcx, rcx, 0x137
mov rdx, qword [rsp + 0x70]
mov qword [rdx + rcx + 8], rax
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
add rsp, 0x68
ret
Function at 0x140019110
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x140019131
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x1400191b5
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 0x140019180
mov dword [rsp + 4], 0x9908b0df
jmp 0x140019188
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 0x140019124
add rsp, 0x18
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov qword [rsp], 0x138
jmp 0x1400191de
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0x270
jae 0x14001927c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp]
mov rax, qword [rax + rcx*8 - 0x9b8]
and rax, 0xffffffff80000000
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp]
mov rcx, qword [rcx + rdx*8 - 0x9b0]
and rcx, 0x7fffffff
or rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
and rax, 1
test rax, rax
je 0x140019242
movabs rax, 0xb5026f5aa96619e9
mov qword [rsp + 0x10], rax
jmp 0x14001924b
mov qword [rsp + 0x10], 0
mov rax, qword [rsp + 8]
shr rax, 1
xor rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp]
xor rax, qword [rcx + rdx*8 - 0x4d8]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400191d3
add rsp, 0x28
ret
Function at 0x14001be00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140064718]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x14001be34
xor eax, eax
jmp 0x14001c02a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14001be65
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.14001c040
jmp 0x14001c02a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.140018750
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14001bf13
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140001230
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.14001a890
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140004800
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.14001a7e0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14001c01a
mov rcx, qword [rsp + 0x80]
call fcn.140019290
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14001bfc8
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002b648
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14001bfc3
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14001c02a
jmp 0x14001bf3f
cmp qword [rsp + 0x50], 0
jbe 0x14001c01a
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002b648
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140021a70
add rsp, 0x78
ret
Function at 0x1400203a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140020424
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140047410]
cmp byte [rcx + rax], 0
je 0x140020424
dec r8
sub rdx, 1
jne 0x14002040a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140020794
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400204b4
mov ebx, eax
test eax, eax
jne 0x1400207c4
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140020820
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140020817
test al, 0x10
je 0x140020817
bt eax, 0xa
jae 0x140020810
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140020838
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14002080c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140020830
test edi, edi
jne 0x140020817
and dword [rsp + 0x3c], 0
jmp 0x14002081c
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14002cc00
int3

Function at 0x1400227dc
Capabilities:
Parse pe header

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

Function at 0x14002e33c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002e138