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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x100
movaps xmmword [rax - 0x18], xmm6
xor ebx, ebx
movaps xmmword [rax - 0x28], xmm7
xor esi, esi
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
movss xmm11, dword [0x180264268]
movaps xmmword [rax - 0x78], xmm12
movss xmm12, dword [0x18026424c]
movaps xmmword [rax - 0x88], xmm13
movss xmm13, dword [0x18026423c]
movaps xmmword [rsp + 0x70], xmm14
movdqa xmm14, xmmword [0x1802653e0]
xorps xmm0, xmm0
mov qword [rsp + 0x68], rsi
mov ecx, 0x30
mov qword [rsp + 0x60], rsi
movups xmmword [rsp + 0x50], xmm0
movdqa xmm10, xmm14
movaps xmm9, xmm13
movaps xmm8, xmm12
movaps xmm7, xmm11
movaps xmm6, xmm11
call fcn.180111da8
movups xmm0, xmmword [str.Press_any_key__press_Backspace_to_cancel]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x60], 0x28
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x68], 0x2f
movups xmmword [rax], xmm0
mov byte [rsp + 0x28], sil
movups xmm1, xmmword [0x18025b898]
mov dword [rsp + 0x40], ebx
unpcklps xmm6, xmm7
movups xmmword [rax + 0x10], xmm1
mov byte [rsp + 0x20], 1
movsd xmm0, qword [0x18025b8a8]
movq r9, xmm6
unpcklps xmm8, xmm9
movsd qword [rax + 0x20], xmm0
movq r8, xmm8
mov byte [rax + 0x28], sil
movaps xmmword [rsp + 0x30], xmm14
call fcn.1800c9b60
mov edi, 1
xor edx, edx
lea rcx, str.grcWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rbx, rax
jne 0x1800c8293
cmp byte [0x1802cac52], sil
jne 0x1800c8293
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800c8293
cmp edi, 0xd
je 0x1800c8293
cmp edi, 0x65
je 0x1800c8293
cmp edi, 0x1b
jne 0x1800c82b1
inc edi
cmp edi, 0x100
jl 0x1800c8251
mov rcx, qword [0x1802cab80]
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
xor ebx, ebx
jmp 0x1800c81aa
cmp edi, 8
jne 0x1800c82c8
xor edx, edx
lea rcx, str.Canceled_Key_Selection
call fcn.1800aea00
xor eax, eax
jmp 0x1800c82ca
mov eax, edi
movaps xmm14, xmmword [rsp + 0x70]
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
mov rsp, r11
pop rdi
ret
Function at 0x1800fe510
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1802ab100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x20]
call fcn.180079790
nop
movabs r9, 0xcbf29ce484222325
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rax, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
cmova rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rdx
cmp rax, rcx
je 0x1800fe5a3
movabs r8, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
imul r9, r8
movsx rdx, byte [rax]
xor r9, rdx
inc rax
cmp rax, rcx
jne 0x1800fe590
mov qword [rsi + 0x40], r9
mov byte [rsi + 0x68], 0
lea r8, [rsi + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.1800fe370
mov rax, qword [rsi + 0x30]
mov qword [rsi + 0x48], rax
mov rbx, qword [0x1802ce250]
mov rcx, qword [rbx + 8]
mov rax, rcx
mov rdi, rbx
cmp byte [rcx + 0x19], 0
jne 0x1800fe608
mov r8, qword [rsi + 0x40]
nop
mov rdx, qword [rax + 0x20]
cmp rdx, r8
jae 0x1800fe5ef
mov rax, qword [rax + 0x10]
jmp 0x1800fe602
cmp byte [rdi + 0x19], 0
je 0x1800fe5fc
cmp r8, rdx
cmovb rdi, rax
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800fe5e0
cmp byte [rdi + 0x19], 0
jne 0x1800fe611
mov rcx, qword [rdi]
cmp byte [rcx + 0x19], 0
jne 0x1800fe638
mov rax, qword [rsi + 0x40]
nop dword [rax + rax]
cmp rax, qword [rcx + 0x20]
jae 0x1800fe62e
mov rdi, rcx
mov rcx, qword [rcx]
jmp 0x1800fe632
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x1800fe620
cmp rbx, rdi
je 0x1800fe6b9
nop dword [rax]
mov rdx, qword [rbx + 0x28]
mov rcx, rsi
call fcn.1800fe8c0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1800fe678
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1800fe673
cmp rbx, qword [rax + 0x10]
jne 0x1800fe673
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1800fe660
mov rbx, rax
jmp 0x1800fe69f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1800fe69f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1800fe690
cmp rbx, rdi
jne 0x1800fe640
mov rax, qword [rsi + 0x58]
sub rax, qword [rsi + 0x50]
sar rax, 3
test rax, rax
je 0x1800fe6b9
mov byte [rsi + 0x68], 1
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1800fe6f2
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800fe6ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800fe707
call fcn.180111da0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180111d80
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
call fcn.180119ca4
int3
Function at 0x180101430
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18010160d
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1802ce388]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1802ce398]
lea rdx, [rdi + rdi]
call fcn.180096ff0
mov rax, qword [0x1802ce388]
lea r9, [rdi - 1]
mov qword [0x1802ce3b0], r9
mov qword [0x1802ce3b8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180101602
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1802ce398]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18010154b
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1801015c3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x180101588
mov r10, qword [rdx]
cmp r10, rax
je 0x180101582
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1801015c3
cmp r9, rdx
je 0x18010159f
nop dword [rax]
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x1801015d7
cmp r9, rdx
jne 0x180101590
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x1801015fd
mov r9, qword [0x1802ce3b0]
jmp 0x1801014d0
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1801015c3
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.18010f42c
int3
Function at 0x18010cec0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18010cf00
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1802ce500]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18010cf3e
cmp rsi, r14
jb 0x18010cf36
cmp rsi, r15
jae 0x18010cf36
cmp qword [rsi + 8], 0
jne 0x18010d107
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18010cf21
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18010cfd2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18010cfc9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18010cfc9
cmp dword [rsp + 0x70], 0x10000
je 0x18010d04b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18010cfc9
sub rbx, rbp
cmp rbx, r14
jae 0x18010cf90
test rsi, rsi
jne 0x18010d0b0
cmp rdi, r15
ja 0x18010d0ef
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
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 0x18010d0ef
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18010d0ef
cmp dword [rsp + 0x70], 0x10000
je 0x18010d081
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18010d002
jmp 0x18010d0ef
test rbx, rbx
je 0x18010cfc9
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 0x18010d0b0
cmp rbx, r14
jae 0x18010cf70
jmp 0x18010cfd2
test rdi, rdi
je 0x18010d0ef
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 0x18010d0b0
cmp rdi, r15
jbe 0x18010cfe0
jmp 0x18010d0ef
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 0x18010d0c0
mov rax, qword [0x1802ce500]
mov qword [rsi], rax
mov qword [0x1802ce500], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18010d2d0
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 [0x1802ab100]
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 0x18010d48a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18010d418
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x18010d3d2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18010d3d2
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18010d3d2
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18010d394
mov rcx, qword [0x1802cdd10]
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 0x18010d3fb
jmp 0x18010d3c5
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18010d3c5
mov rcx, qword [0x1802cdd10]
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 0x18010d3fb
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 0x18010d342
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18010d418
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18010d418
mov rcx, qword [0x1802cdd10]
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 0x18010d48a
cmp qword [rbx], r15
je 0x18010d485
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18010d485
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 0x18010d47e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18010d120
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18010d440
mov eax, r15d
jmp 0x18010d48f
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180111d80
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18010d4b0
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, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1802ce4f0]
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 0x18010d514
mov eax, 0xa
jmp 0x18010d5a7
test esi, esi
je 0x18010d536
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 0x18010d559
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18010d559
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18010d552
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18010d559
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
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 rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18010d5c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1802ce4fc]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x18010d607
mov rax, qword [0x1802ce4f0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18010d614
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x18010d5f0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x18010d607
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.18010d2d0
mov edi, eax
test eax, eax
jne 0x18010d6ff
mov r9d, dword [0x1802ce4fc]
cmp ebx, r9d
jae 0x18010d68c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1802ce4f0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x18010d685
mov edx, esi
mov ecx, ebx
call fcn.18010d4b0
mov edi, eax
test eax, eax
jne 0x18010d68c
mov r9d, dword [0x1802ce4fc]
inc ebx
cmp ebx, r9d
jb 0x18010d650
cmp qword [rsp + 0x20], 0
je 0x18010d6fd
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18010d6e9
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 0x18010d6da
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 0x18010d6b0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1802cdd10]
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 0x18010fe1c
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 0x18010fe56
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18010fe5b
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 0x18010fea4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1801cfe80]
cmp byte [rcx + rax], 0
je 0x18010fea4
dec r8
sub rdx, 1
jne 0x18010fe8a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18011d8b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18011d8e7
call fcn.180118b00
mov dword [rax], 0x16
call fcn.180119c84
xor eax, eax
jmp 0x18011d975
mov rdx, r9
mov rcx, r8
call fcn.18011d84c
mov rbx, rax
test rax, rax
je 0x18011d972
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18011d778]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18011d95f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180118a74
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18011d946
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18011d955
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18012bb20
jmp 0x18011d972
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18011d96f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180121d8c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1802ab100]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1801d26e8]
mov rbp, rcx
call fcn.18012fd10
xor edi, edi
test rax, rax
je 0x180121e72
mov ebx, edi
call fcn.180118b00
mov r14d, dword [rax]
call fcn.180118b00
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.18012fc5c
mov rsi, rax
test rax, rax
je 0x180121e03
call fcn.180118b00
mov dword [rax], r14d
jmp 0x180121e2d
call fcn.180118b00
cmp dword [rax], 0x22
jne 0x180121e6a
call fcn.180118b00
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.18012fc5c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x180121e6a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x180121e31
cmp rax, 3
je 0x180121e4c
mov rcx, rsi
call fcn.180121ce8
test al, al
je 0x180121e5d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180121e5d
mov dil, 1
mov rcx, rbx
call fcn.1801198ec
mov al, dil
jmp 0x180121e74
mov rcx, rbx
call fcn.1801198ec
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180111d80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1801237d0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1801237ef
call fcn.180131fb8
jmp 0x1801238a4
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.180118210
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x18012383a
cmp byte [rbp - 0x38], 0
je 0x18012386f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18012386f
call fcn.18012c1c0
test eax, eax
jne 0x18012385b
cmp byte [rbp - 0x38], al
je 0x180123853
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18012386f
cmp byte [rbp - 0x38], 0
je 0x18012386c
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1801185e4
test eax, eax
je 0x180123888
or ebx, 0xffffffff
jmp 0x180123893
mov rcx, qword [rbp - 0x20]
call fcn.180131fb8
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1801238a2
mov rcx, qword [rbp - 0x20]
call fcn.18012bb20
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x180127688
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1801276f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801276f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801276f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801276f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801276f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1801276f7
cmp dword [rcx + 0xf8], 0
je 0x1801276f7
mov ecx, ebx
call fcn.1801277a8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180127584
nop
cmp dword [rbp + 0x20], 0
je 0x180127745
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180127750
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180127688

Function at 0x18012e498
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18012e4ae
mov al, 1
jmp 0x18012e50e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18012e4bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18012e50c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1801303ac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18012e50c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18012e50c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18012e50c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18012e50e
xor al, al
add rsp, 0x20
pop rbx
ret