joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180044a50
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor edx, edx
lea rcx, [0x180043c50]
call qword [sym.imp.USER32.dll_EnumWindows]
movss xmm2, dword [0x180150434]
mulss xmm2, dword [0x180145694]
movss xmm0, dword [0x180150438]
mulss xmm0, dword [0x180145694]
movss dword [0x1801513c0], xmm0
movss dword [0x1801513c4], xmm2
nop dword [rax]
mov ecx, 3
call fcn.180044f60
test eax, eax
jne 0x180044aa0
cmp dword [0x1801513d0], eax
je 0x180044ae6
mov rax, qword [0x1801513c8]
mov rbx, qword [rax + 0x40]
lea r8, [0x180151218]
lea rdx, [0x1800446d0]
mov rcx, rbx
call fcn.180046570
test eax, eax
jne 0x180044ae6
lea edx, [rax + 1]
mov rcx, rbx
call fcn.180046850
lea rax, [rbp - 0x40]
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
lea r8d, [rbx + 5]
lea rdx, str._dbg_
lea rcx, [rbp - 0x40]
call fcn.180004d00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
lea r8d, [rbx + 0x26]
lea rdx, str._____Render_Hooked_Loaded_Successfully
lea rcx, [rbp - 0x20]
call fcn.180004d00
lea r8d, [rbx + 9]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.180042d30
lea rax, [rbp - 0x20]
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
lea r8d, [rbx + 5]
lea rdx, str._dbg_
lea rcx, [rbp - 0x20]
call fcn.180004d00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
xor r8d, r8d
lea rdx, [0x180053c3b]
lea rcx, [rbp - 0x40]
call fcn.180004d00
lea r8d, [rbx + 9]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.180042d30
lea rax, [rbp - 0x20]
mov qword [rbp + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
lea r8d, [rbx + 5]
lea rdx, str._dbg_
lea rcx, [rbp - 0x20]
call fcn.180004d00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
lea r8d, [rbx + 0x24]
lea rdx, str.__________________________________
lea rcx, [rbp - 0x40]
call fcn.180004d00
lea r8d, [rbx + 9]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.180042d30
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret
Function at 0x180045450
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180150010]
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 0x18004549f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180151510]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800454dd
cmp rsi, r14
jb 0x1800454d5
cmp rsi, r15
jae 0x1800454d5
cmp qword [rsi + 8], 0
jne 0x1800456a7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800454c0
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 0x180045572
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 0x180045569
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 0x180045569
cmp dword [rsp + 0x40], 0x10000
je 0x1800455eb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180045569
sub rbx, rbp
cmp rbx, r14
jae 0x180045530
test rsi, rsi
jne 0x180045650
cmp rdi, r15
ja 0x18004568f
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 0x18004568f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004568f
cmp dword [rsp + 0x40], 0x10000
je 0x180045621
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 0x1800455a2
jmp 0x18004568f
test rbx, rbx
je 0x180045569
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 0x180045650
cmp rbx, r14
jae 0x180045510
jmp 0x180045572
test rdi, rdi
je 0x18004568f
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 0x180045650
cmp rdi, r15
jbe 0x180045580
jmp 0x18004568f
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 0x180045660
mov rax, qword [0x180151510]
mov qword [rsi], rax
mov qword [0x180151510], 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.180050580
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800460a0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180150010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800461cb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800461c2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800461a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800461a4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800461a4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180046162
mov rcx, qword [0x180151258]
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 0x1800461c2
jmp 0x180046197
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180046197
mov rcx, qword [0x180151258]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800461c2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
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, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180046110
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180046223
cmp dword [rbx + 0xc], esi
jbe 0x180046223
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004621c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180045ef0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800461e0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180050580
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180046250
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 [0x180150010]
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 [0x180151500]
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 0x1800462c3
mov eax, 0xa
jmp 0x180046352
test esi, esi
je 0x1800462e5
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 0x180046308
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180046308
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180046301
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180046308
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]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180050580
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180046380
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18015150c]
mov ebx, edi
test ecx, ecx
je 0x1800464bb
mov rax, qword [0x180151500]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800463d8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800463b0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800464bb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800460a0
mov r8d, dword [0x18015150c]
cmp ebx, r8d
jae 0x180046448
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180151500]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180046441
mov edx, esi
mov ecx, ebx
call fcn.180046250
mov edi, eax
test eax, eax
jne 0x180046448
mov r8d, dword [0x18015150c]
inc ebx
cmp ebx, r8d
jb 0x180046410
cmp qword [rsp + 0x20], 0
je 0x1800464bb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800464a7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180046498
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 0x180046470
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180151258]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180046850
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 [0x180151250], ebp
je 0x1800468a7
cmp rbx, 0x20
jae 0x180046890
xor ecx, ecx
jmp 0x180046892
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180151250], ebp
jne 0x180046886
cmp qword [0x180151258], r15
je 0x1800469a1
test rdi, rdi
jne 0x1800468c7
mov ecx, esi
call fcn.180046380
mov ebp, eax
jmp 0x1800469a6
mov ecx, dword [0x18015150c]
mov ebx, r15d
test ecx, ecx
je 0x1800468ef
mov r8, qword [0x180151500]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800468f9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800468e0
mov ebp, 4
jmp 0x1800469a6
cmp ebx, 0xffffffff
je 0x1800468ef
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180046998
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800460a0
mov edx, esi
mov ecx, ebx
call fcn.180046250
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800469a6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180046982
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180046978
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180046950
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180151258]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800469a6
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x1800469a6
mov ebp, 2
xchg dword [0x180151250], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180047c80
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
test edx, edx
je 0x180047d80
cmp edx, 1
jne 0x180047daa
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180047d37
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180047d37
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180047d32
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x180047d10
cmp r8d, 0x8fb39146
je 0x180047d3c
test r9d, r9d
jne 0x180047cf0
mov rax, qword [rax]
jmp 0x180047cc0
mov ecx, dword [rbx + 0x24]
lea r8, [0x180046e90]
add rcx, r10
movzx edx, word [rcx + r9*2]
xor r9d, r9d
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
add rax, r10
xor edx, edx
mov dword [rsp + 0x20], ecx
call rax
mov rdi, qword [rsp + 0x30]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
cmp dword [0x1801513d0], 0
je 0x180047daa
call fcn.1800469d0
mov rcx, qword [0x1801513c8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ecx, ecx
mov qword [0x1801513c8], rcx
mov dword [0x1801513d0], ecx
mov eax, 1
add rsp, 0x38
ret
Function at 0x180047dc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180150010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, r8
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], 0
cmp byte [rdx], 0
lea rdx, [rsp + 0x20]
jne 0x180047e24
movsxd rax, dword [rcx]
lea rcx, [0x180141470]
mov rcx, qword [rcx + rax*8]
call fcn.180033f90
test al, al
je 0x180047ef6
mov byte [r14], 1
jmp 0x180047ef6
lea rcx, [0x180056364]
call fcn.180033f90
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x180047e4e
imul rbx, rax, 0x64
jmp 0x180047e6a
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
lea rbx, [rax + rcx]
mov rax, rbx
sub rax, qword [0x1801513f0]
cmp rax, 0xbebc200
jl 0x180047ef6
lea rsi, [0x1801411d0]
lea rbp, [0x180141468]
nop word [rax + rax]
mov ecx, dword [rsi]
cmp ecx, 1
je 0x180047ed4
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180047ea4
mov rax, qword [rdi]
cmp qword [rdi + 0x10], 1
jne 0x180047ec2
cmp byte [rax], 0x31
jne 0x180047eb4
xor eax, eax
jmp 0x180047eb9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x180047ec2
cmp ecx, 2
je 0x180047ed4
mov byte [0x18015043c], 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x180047edf
add rsi, 4
cmp rsi, rbp
je 0x180047ef6
jmp 0x180047e90
mov eax, dword [rsi]
mov dword [r15], eax
mov byte [r14], 0
mov qword [0x1801513f0], rbx
mov byte [0x18015043c], 1
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180047f2c
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180047f27
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180047f60
mov rcx, r8
call fcn.1800505dc
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180050580
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18004a360
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp rdx, r8
je 0x18004a556
cmp qword [rdx + 0x28], 0x10
lea r8, [rdx + 0x10]
mov rax, qword [rdx + 8]
mov r9, qword [r8 + 0x10]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov r13, qword [rcx + 8]
mov qword [rsp + 0x28], r14
mov r14, qword [rcx + 0x18]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x68], rax
jb 0x18004a3bb
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
movabs r10, 0x100000001b3
test r9, r9
je 0x18004a3f4
nop word [rax + rax]
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r9
jb 0x18004a3e0
mov r15, qword [rdi + 0x30]
mov rbx, qword [rsi]
and r15, rdx
shl r15, 4
mov rdx, rsi
add r15, r14
mov rax, qword [r15]
mov r12, qword [r15 + 8]
mov qword [rsp + 0x70], rax
call fcn.180009ee0
dec qword [rdi + 0x10]
cmp rsi, r12
je 0x18004a443
mov r14, rbx
cmp rbx, rbp
je 0x18004a457
mov rdx, rbx
mov rbx, qword [rbx]
call fcn.180009ee0
dec qword [rdi + 0x10]
cmp r14, r12
jne 0x18004a422
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x68]
cmp qword [rsp + 0x70], rsi
jne 0x18004a472
mov qword [r15], r13
mov rax, r13
jmp 0x18004a475
cmp qword [rsp + 0x70], rsi
jne 0x18004a461
mov qword [r15], rbx
mov rax, qword [rsp + 0x68]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x18004a53d
mov rax, r12
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x18004a535
nop dword [rax]
nop word [rax + rax]
cmp qword [rbx + 0x28], 0x10
lea r8, [rbx + 0x10]
mov r9, qword [r8 + 0x10]
mov rsi, rbx
jb 0x18004a4a5
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x18004a4d9
movabs r12, 0x100000001b3
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, r12
cmp rdx, r9
jb 0x18004a4c0
mov r12, qword [rsp + 0x68]
mov r15, qword [rdi + 0x30]
mov rdx, rbx
mov rbx, qword [rbx]
and r15, rcx
shl r15, 4
add r15, r14
mov r14, qword [r15 + 8]
call fcn.180009ee0
dec qword [rdi + 0x10]
cmp rsi, r14
je 0x18004a51c
nop
mov rsi, rbx
cmp rbx, rbp
je 0x18004a532
mov rdx, rbx
mov rbx, qword [rbx]
call fcn.180009ee0
dec qword [rdi + 0x10]
cmp rsi, r14
jne 0x18004a500
mov qword [r15], r13
mov qword [r15 + 8], r13
cmp rbx, rbp
je 0x18004a535
mov r14, qword [rsp + 0x78]
jmp 0x18004a490
mov qword [r15], rbx
mov qword [r12], rbx
mov qword [rbx + 8], r12
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x20]
mov rax, rbp
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004bb90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x18004bbf1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x18004bbb0
mov ecx, dword [r10]
jmp 0x18004bcda
cmp ecx, 0x4e0
jb 0x18004bcda
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x18004bc10
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x18004bc60
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x18004fd00
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 0x18004fd84
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180053980]
cmp byte [rcx + rax], 0
je 0x18004fd84
dec r8
sub rdx, 1
jne 0x18004fd6a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800503ec
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.18004fd9c
mov ebx, eax
test eax, eax
jne 0x18005041c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x18005047f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180050476
test al, 0x10
je 0x180050476
bt eax, 0xa
jae 0x18005046f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.180050490
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x18005046b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x18005046b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x180050476
and dword [rsp + 0x3c], 0
jmp 0x18005047b
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
Function at 0x140021d80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140021db4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021da0
ret