joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180047a10
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x18005f040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x18005f908]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x180047c2e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x180047c2e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x18005f908]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x180047ae4
movsx rdx, word [r8 + 0x60a8]
lea rax, [r8 + 0x60ac]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x180047ad9
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60a8], cx
movsx rax, cx
lea rax, [rax*8 + 0x60ac]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60a0]
test rdi, rdi
je 0x180047b01
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x180047b04
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x1800571f8]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x180047b47
mov rsi, qword [r8 + 0x90]
jmp 0x180047b4a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x180047b75
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x18005f908]
mov rcx, qword [rax + 0x4b00]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x180047bee
inc rbx
cmp rbx, 5
jl 0x180047bd0
jmp 0x180047c1a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x180047c30
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18004e3c0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x18004a0b0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x18004a0c0
xor eax, eax
add rsp, 0x38
ret
xor eax, eax
lea r8, [0x18004a030]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x18004c7a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x18004c87b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x18004c7ee
cmp rbx, qword [0x18005f008]
ja 0x18004c7ee
sub rbx, 0x8000000
jmp 0x18004c872
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004c87b
cmp dword [rsp + 0x40], 0x10000
jne 0x18004c856
cmp qword [rsp + 0x38], 0x10000
jb 0x18004c856
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18004c87d
sub rbx, 0x10000
jmp 0x18004c872
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x18004c7d0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x18004c890
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x18004c8b2
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x18004c96d
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x18004c8de
cmp rbx, qword [0x18005f008]
ja 0x18004c8de
add rbx, 0x8000000
jmp 0x18004c964
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004c96d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x18004c949
cmp rcx, 0x10000
jb 0x18004c949
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18004c96f
add rbx, 0x10000
jmp 0x18004c964
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x18004c964
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x18004c8c0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x18004c980
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x18004c9a2
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18004c9be
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x18004c9d5
cmp byte [rcx + 1], 0x25
jne 0x18004ca19
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x18004c9e1
cmp al, 0xe9
jne 0x18004ca19
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x18004ca04
cmp rcx, 0xffffffff80000000
jae 0x18004c9fb
lea rsi, [rcx + 0x7ff80000]
jmp 0x18004ca19
mov rsi, 0xfffffffffff80000
jmp 0x18004ca19
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x18004ca19
mov edi, 0x80000
mov rdx, qword [0x18005f2c8]
mov rax, qword [0x18005f2c0]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x18004ca40
test rax, rax
je 0x18004ca57
mov rdx, rax
mov qword [0x18005f2c8], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x18004ca57
cmp rcx, rdi
jb 0x18004ca57
cmp rcx, rsi
jbe 0x18004cbaa
mov qword [0x18005f2c8], rax
mov rdx, rax
test rax, rax
je 0x18004caa2
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18004ca8c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18004ca8c
cmp rax, rdi
jb 0x18004ca8c
cmp rax, rsi
jbe 0x18004cbaa
mov rdx, qword [rdx + 8]
mov qword [0x18005f2c8], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x18004ca70
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18004cacc
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.18004c7a0
mov rdx, rax
test rax, rax
jne 0x18004cb58
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x18004caf2
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.18004c890
mov rdx, rax
test rax, rax
jne 0x18004cb58
cmp rbx, 0x40000000
jbe 0x18004cb12
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.18004c890
mov rdx, rax
test rax, rax
jne 0x18004cb58
cmp rbx, rbp
jae 0x18004cb2e
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.18004c7a0
mov rdx, rax
test rax, rax
jne 0x18004cb58
mov rdx, rbx
mov rcx, rdi
call fcn.18004c7a0
mov rdx, rax
test rax, rax
jne 0x18004cb58
mov rdx, rsi
mov rcx, rbx
call fcn.18004c890
mov rdx, rax
test rax, rax
je 0x18004cbe1
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x18005f2c8], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x18005f2c0]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x18005f2c0], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x18004cb92
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x18004cbe1
cmp rax, rsi
ja 0x18004cbe1
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180050770]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x18004cbe3
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18004ce40
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18004ce6e
xor al, al
jmp 0x18004ceb0
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18004ce7f
xor al, al
jmp 0x18004ceb0
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x18004cea6
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x18004cea6
mov al, 1
jmp 0x18004ceb0
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x18004d390
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18005f2d8], eax
je 0x18004d3b7
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x18005f2dc]
test eax, eax
jne 0x18004d4f3
test rbp, rbp
jne 0x18004d3d4
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x18004d3f0
cmp qword [rsi], 0
jne 0x18004d3fc
mov dword [0x18005f2dc], 6
mov qword [0x18005f2e0], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.18004e3e0
mov rdi, rax
test rax, rax
jne 0x18004d420
lea ebx, [rax + 8]
jmp 0x18004d4c8
mov rcx, qword [rsi]
xor edx, edx
call fcn.18004d2e0
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.18004d2e0
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x18004d4ba
cmp rdx, 0x1e
ja 0x18004d4ba
cmp qword [rbx + 0x50], rax
jne 0x18004d4ba
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004d47c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18004d4c8
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x18005f2f0]
mov qword [rdi], rax
xor eax, eax
mov qword [0x18005f2f0], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x18005f2d0], 0
mov ebx, 9
jne 0x18004d4d3
mov dword [0x18005f2dc], ebx
test rdi, rdi
je 0x18004d4e0
mov edx, 0x30
mov rcx, rdi
call fcn.18004e794
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x18005f2e0], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x18004d500
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x18005f2d8], 0
jne 0x18004d5a7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18005f2d8], ecx
jne 0x18004d5a7
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x18005f2c0]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x18005f2f0], rdi
mov qword [0x18005f2e8], rdi
mov qword [0x18005f2e0], rdi
test rbx, rbx
je 0x18004d590
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18004d588
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x18004d560
jmp 0x18004d590
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18005f2dc], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x18004dbc0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18005f2dc]
mov rdi, rcx
test eax, eax
jne 0x18004dc63
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x18004dbea
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.18004e3e0
mov rbx, rax
test rax, rax
jne 0x18004dc06
lea edi, [rax + 8]
jmp 0x18004dc29
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x18004dc47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.18004e794
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18005f2dc], edi
mov qword [0x18005f2e0], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18005f2e8]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x18005f2e8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140f73f48
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f73f52
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f73f7b
pop rbp
sub rbp, 0x33
sub rbp, 0xf73f48
sub rsp, 0x20
jmp 0x140f73f9a
mov rax, 0xf73f48
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x1d24f513
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f73fb9
jmp 0x140f73fd0
pop rbx
invalid
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140005630]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140005640]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140005640]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140005640]
mov dword [rax], 1
mov rax, qword [0x140005680]
mov rdx, rax
mov rax, qword [0x140005670]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000a024], 1
mov rax, qword [0x140005640]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005660]
mov rdx, rax
mov rax, qword [0x140005650]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140005640]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140005630]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005580]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005580]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140005620]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000a004]
lea rdx, [0x14000a008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x1400055b0]
mov rax, qword [rax]
mov rdx, qword [0x14000a010]
mov qword [rax], rdx
mov rcx, qword [0x14000a010]
mov rdx, qword [0x14000a008]
mov eax, dword [0x14000a004]
mov r8, rcx
mov ecx, eax
call dbg.main
mov dword [0x14000a01c], eax
mov eax, dword [0x14000a020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000a01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000a024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000a01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400055e0]
mov dword [rax], 1
mov rax, qword [0x1400055f0]
mov dword [rax], 1
mov rax, qword [0x140005600]
mov dword [rax], 1
mov rax, qword [0x1400055a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001792
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call sym.__main
lea rax, [0x140005050]
mov rdx, rax
mov ecx, 0
call sym.setlocale
pxor xmm0, xmm0
movss dword [rbp - 0x10], xmm0
lea rax, [rbp - 0x28]
mov rcx, rax
call dbg.time
mov ecx, eax
call sym.srand
lea rax, str.______
mov rcx, rax
call sym.printf
lea rax, [rbp - 0x20]
mov rdx, rax
lea rax, [0x1400050a5]
mov rcx, rax
call dbg.scanf_s
mov eax, dword [rbp - 0x20]
cdqe
shl rax, 2
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001829
lea rax, str.____
mov rcx, rax
call sym.puts
mov ecx, 1
call sym.exit
mov dword [rbp - 4], 0
jmp 0x140001876
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1f4
sub eax, ecx
mov edx, eax
mov eax, dword [rbp - 4]
cdqe
lea rcx, [rax*4]
mov rax, qword [rbp - 0x18]
add rax, rcx
add edx, 1
mov dword [rax], edx
add dword [rbp - 4], 1
mov eax, dword [rbp - 0x20]
cmp dword [rbp - 4], eax
jl 0x140001832
lea rax, str.__:
mov rcx, rax
call sym.puts
mov dword [rbp - 4], 0
jmp 0x140001931
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov eax, dword [rax]
pxor xmm0, xmm0
cvtsi2ss xmm0, eax
movss xmm1, dword [rbp - 0x10]
addss xmm0, xmm1
movss dword [rbp - 0x10], xmm0
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov eax, dword [rax]
cmp dword [rbp - 8], eax
jge 0x1400018f9
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 8], eax
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov eax, dword [rax]
cmp dword [rbp - 0xc], eax
jle 0x14000192d
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0xc], eax
add dword [rbp - 4], 1
mov eax, dword [rbp - 0x20]
cmp dword [rbp - 4], eax
jl 0x140001899
mov eax, dword [rbp - 0x20]
pxor xmm1, xmm1
cvtsi2ss xmm1, eax
movss xmm0, dword [rbp - 0x10]
divss xmm0, xmm1
movss dword [rbp - 0x1c], xmm0
mov eax, dword [rbp - 8]
mov edx, eax
lea rax, [0x140005130]
mov rcx, rax
call sym.printf
mov eax, dword [rbp - 0xc]
mov edx, eax
lea rax, str.__:__d_n
mov rcx, rax
call sym.printf
pxor xmm0, xmm0
cvtss2sd xmm0, dword [rbp - 0x1c]
movq rax, xmm0
mov rdx, rax
movq xmm0, rdx
movapd xmm1, xmm0
mov rdx, rax
lea rax, str.___:__.2f._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x140001d00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400029d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x140002a6a
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x140002a4e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002a42
cmp qword [rbp - 0x10], 0
je 0x140002a42
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002a08
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002a6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002b70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002b98
mov eax, 0
jmp 0x140002be6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002bc1
mov eax, 0
jmp 0x140002be6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002be1
mov eax, 0
jmp 0x140002be6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002bec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002c6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002c61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002c61
mov rax, qword [rbp - 8]
jmp 0x140002c7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002c34
mov eax, 0
add rsp, 0x20
pop rbp
ret