joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180090300
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1800cc040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [0x1800cf2f0]
lea rdx, [rsp + 0x20]
mov rbx, qword [0x1800ce888]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x28]
lea rcx, [rsp + 0x38]
sub eax, dword [rsp + 0x20]
mov qword [rsp + 0x38], 0
movd xmm1, eax
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm1
movss dword [rbx + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1800cf2f8]
cvtsi2ss xmm0, qword [0x1800cf300]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [0x1800cf2f8], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rbx + 0xe24], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rbx + 0xe25], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x1800ce888]
shr eax, 0xf
and al, 1
mov byte [rbx + 0xe27], 0
mov byte [rbx + 0xe26], al
cmp byte [rcx + 0xdb], 0
je 0x18009043b
cvttss2si eax, dword [rcx + 0xe08]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
cvttss2si eax, dword [rcx + 0xe0c]
mov rcx, qword [0x1800cf2f0]
mov dword [rsp + 0x34], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x18009043b
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [rbx + 0x78], 0
je 0x180090448
mov eax, 0xffffffff
jmp 0x180090455
mov rax, qword [0x1800ce888]
mov eax, dword [rax + 0x4a98]
cmp dword [0x1800cc36c], eax
je 0x180090468
mov dword [0x1800cc36c], eax
call fcn.18008fec0
call fcn.180090030
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180096600
add rsp, 0x50
pop rbx
ret
Function at 0x180094240
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800cc040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18009428f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800cf740]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800942cd
cmp rsi, r14
jb 0x1800942c5
cmp rsi, r15
jae 0x1800942c5
cmp qword [rsi + 8], 0
jne 0x180094497
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800942b0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180094362
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180094359
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180094359
cmp dword [rsp + 0x40], 0x10000
je 0x1800943db
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180094359
sub rbx, rbp
cmp rbx, r14
jae 0x180094320
test rsi, rsi
jne 0x180094440
cmp rdi, r15
ja 0x18009447f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18009447f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18009447f
cmp dword [rsp + 0x40], 0x10000
je 0x180094411
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180094392
jmp 0x18009447f
test rbx, rbx
je 0x180094359
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180094440
cmp rbx, r14
jae 0x180094300
jmp 0x180094362
test rdi, rdi
je 0x18009447f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180094440
cmp rdi, r15
jbe 0x180094370
jmp 0x18009447f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180094450
mov rax, qword [0x1800cf740]
mov qword [rsi], rax
mov qword [0x1800cf740], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180096600
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180094eb0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800cc040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
xor edx, edx
mov ecx, 4
mov ebp, r8d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18009506a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180094ff8
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x180094fb2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180094fb2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180094fb2
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180094f74
mov rcx, qword [0x1800ce8a0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180094fdb
jmp 0x180094fa5
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180094fa5
mov rcx, qword [0x1800ce8a0]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180094fdb
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180094f22
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180094ff8
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x180094ff8
mov rcx, qword [0x1800ce8a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18009506a
cmp qword [rbx], r15
je 0x180095065
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180095065
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18009505e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180094d00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180095020
mov eax, r15d
jmp 0x18009506f
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180096600
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180095090
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800cc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800cf730]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180095103
mov eax, 0xa
jmp 0x180095196
test esi, esi
je 0x180095125
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180095148
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180095148
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180095141
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180095148
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180096600
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800951c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1800cf73c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180095207
mov rax, qword [0x1800cf730]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180095214
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1800951f0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180095207
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180094eb0
mov edi, eax
test eax, eax
jne 0x1800952ff
mov r9d, dword [0x1800cf73c]
cmp ebx, r9d
jae 0x18009528c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800cf730]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180095285
mov edx, esi
mov ecx, ebx
call fcn.180095090
mov edi, eax
test eax, eax
jne 0x18009528c
mov r9d, dword [0x1800cf73c]
inc ebx
cmp ebx, r9d
jb 0x180095250
cmp qword [rsp + 0x20], 0
je 0x1800952fd
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800952e9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800952da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800952b0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800ce8a0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180095690
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov edi, 1
mov ebp, r14d
mov ebx, r14d
xor eax, eax
lock cmpxchg dword [0x1800ce898], edi
je 0x1800956d8
cmp rbx, 0x20
jae 0x1800956c1
xor ecx, ecx
jmp 0x1800956c3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800ce898], edi
jne 0x1800956b7
cmp qword [0x1800ce8a0], rbp
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r15
je 0x180095878
mov ecx, dword [0x1800cf73c]
mov ebx, r14d
test ecx, ecx
je 0x180095715
mov rdx, qword [0x1800cf730]
mov rax, rdx
cmp qword [rax], rbp
je 0x18009571f
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180095706
mov ebp, 4
jmp 0x18009587d
cmp ebx, 0xffffffff
je 0x180095715
mov eax, ebx
mov r15d, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800957dc
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180094eb0
mov ebp, eax
test eax, eax
jne 0x18009587d
xor edx, edx
mov ecx, ebx
call fcn.180095090
mov ebp, eax
cmp qword [rsp + 0x20], r14
je 0x1800957cd
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800957b9
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rsi
mov esi, eax
nop dword [rax + rax]
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1800957aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rsi, 1
jne 0x180095780
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800ce8a0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x18009587d
mov rdx, qword [0x1800cf730]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.1800944c0
mov edx, dword [0x1800cf73c]
dec edx
cmp r15d, edx
jae 0x18009582c
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x1800cf730]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x1800cf738]
mov eax, ecx
mov dword [0x1800cf73c], edx
shr eax, 1
cmp eax, 0x20
jb 0x18009587d
cmp eax, edx
jb 0x18009587d
mov r8, qword [0x1800cf730]
mov eax, ecx
mov rcx, qword [0x1800ce8a0]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18009587d
shr dword [0x1800cf738], 1
mov qword [0x1800cf730], rax
jmp 0x18009587d
mov ebp, 2
xchg dword [0x1800ce898], r14d
mov r15, qword [rsp + 0x60]
mov eax, ebp
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x1800958a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1800ce898], ebp
je 0x1800958f7
cmp rbx, 0x20
jae 0x1800958e0
xor ecx, ecx
jmp 0x1800958e2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800ce898], ebp
jne 0x1800958d6
cmp qword [0x1800ce8a0], r15
je 0x1800959f3
test rdi, rdi
jne 0x180095917
mov ecx, esi
call fcn.1800951c0
mov edi, eax
jmp 0x1800959f8
mov ecx, dword [0x1800cf73c]
mov ebx, r15d
test ecx, ecx
je 0x18009593f
mov rdx, qword [0x1800cf730]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x180095949
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180095930
mov edi, 4
jmp 0x1800959f8
cmp ebx, 0xffffffff
je 0x18009593f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800959ea
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180094eb0
mov edi, eax
test eax, eax
jne 0x1800959f8
mov edx, esi
mov ecx, ebx
call fcn.180095090
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x1800959f8
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800959d4
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800959ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800959a0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800ce8a0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800959f8
neg esi
sbb edi, edi
add edi, 6
jmp 0x1800959f8
mov edi, 2
xchg dword [0x1800ce898], r15d
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
Function at 0x180095ebc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180095ef6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180095efb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180095f44
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800a1c60]
cmp byte [rcx + rax], 0
je 0x180095f44
dec r8
sub rdx, 1
jne 0x180095f2a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x417780
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41790b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x007659a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4177e5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4177f4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x417813
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x417823
cmp rbx, 0x1000
jae 0x4177eb
jmp 0x41788d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x417835
xor edx, edx
jmp 0x417884
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x007659a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x417819
jmp 0x417808
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x007659a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x0059fb45]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x005a02d1]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x005a345e]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x417940
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417b66
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x007659a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4179b3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4179c2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4179e5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x4179f5
cmp rbx, 0x1000
jae 0x4179b9
nop
jmp 0x417a78
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x417a0d
xor esi, esi
jmp 0x417a6a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x007659a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x4179eb
jmp 0x4179d6
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x007659a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x417b00
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x005a02ea]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x005a02d1]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0059a4e7]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x417aa0
call sym.runtime.printlock
lea rax, [0x005a02ea]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x005a02d1]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x005a2af1]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS