joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180026d70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x1068
call fcn.18003c6a0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rax, r8
mov rdi, r9
mov rbp, rdx
mov rsi, rcx
mov ebx, 1
mov qword [rsp + 0x40], rax
test r9, r9
je 0x180026ea3
mov qword [rsp + 0x1060], r12
xor r12d, r12d
nop
mov r8d, 0x1000
lea rcx, [rsp + 0x38]
lea r9, [rsp + 0x50]
cmp rdi, r8
mov qword [rsp + 0x20], rcx
mov rdx, rax
cmovb r8d, edi
mov rcx, rbp
mov dword [rsp + 0x34], r8d
call fcn.180002c60
test eax, eax
je 0x180026dfa
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
je 0x180026dfd
mov ebx, r12d
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 8
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180026e7c
cmp dword [rsp + 0x30], 8
jne 0x180026e7c
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x34]
mov r8d, 4
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180026e7c
cmp dword [rsp + 0x30], 4
jne 0x180026e7c
mov r8d, dword [rsp + 0x34]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180026e7c
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsp + 0x30]
je 0x180026e83
jmp 0x180026e80
mov eax, dword [rsp + 0x34]
mov ebx, r12d
mov ecx, eax
mov rax, qword [rsp + 0x40]
add rax, rcx
sub rdi, rcx
mov qword [rsp + 0x40], rax
jne 0x180026dc0
mov r12, qword [rsp + 0x1060]
mov eax, ebx
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.18002d590
add rsp, 0x1068
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180026ed0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
cmp dword [r9], 8
mov rbx, r9
mov rsi, rdx
mov rdi, rcx
jne 0x180026f54
lea rdx, [rsp + 0x50]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180026f54
cmp dword [rbx], 4
jne 0x180026f54
mov r8d, dword [rsp + 0x50]
mov r9, rbx
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180026f54
mov eax, dword [rbx]
cmp dword [rsp + 0x50], eax
jne 0x180026f54
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x180027830
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x58], rcx
mov rdi, r8
mov rax, rdx
lea rcx, [rsp + 0x40]
mov rbp, r9
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x70]
xor esi, esi
mov rcx, rax
mov r8d, 0x200
mov rdx, rdi
mov dword [rsp + 0x40], esi
call fcn.180002c60
test eax, eax
je 0x180027996
cmp dword [rsp + 0x40], 0x200
jne 0x180027996
lea r9, [rsp + 0x30]
lea r8d, [rsi + 8]
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov dword [rsp + 0x38], 0x200
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [rsi + 4]
test eax, eax
je 0x180027933
cmp dword [rsp + 0x30], 8
jne 0x180027933
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, edi
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180027933
cmp dword [rsp + 0x30], edi
jne 0x180027933
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x70]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180027933
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
jne 0x180027933
lea esi, [rdi - 3]
mov eax, 0xaa55
cmp ax, word [rsp + 0x26e]
jne 0x180027996
lea rbx, [rsp + 0x232]
nop word [rax + rax]
mov eax, dword [rbx + 4]
shl eax, 9
mov r8d, eax
mov al, byte [rbx]
add r8, rbp
cmp al, 5
je 0x180027966
cmp al, 0xf
jne 0x18002798c
cmp qword [rsp + 0x60], 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov r9, rbp
cmove r9, r8
call fcn.180027830
test eax, eax
mov eax, 0
cmove esi, eax
add rbx, 0x10
sub rdi, 1
jne 0x180027950
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18002d590
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180028810
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r8
mov r12, rdx
mov rbx, rcx
test rcx, rcx
jne 0x180028847
xor eax, eax
jmp 0x1800289b2
mov r8, rdx
lea rdx, str.Undelete_RecoverFile:_Recovering_file__d._n
call fcn.180016b80
mov rcx, qword [rbx + 0x24]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x2c]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
cmp qword [rbx + 0x44], 0
je 0x180028999
cmp r12, qword [rbx + 0x210]
jae 0x180028999
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov r8, r12
lea rdx, [0x180042de8]
lea rcx, [rsp + 0x150]
call fcn.18002dfc8
lea rdi, [rsp + 0x150]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [str..mp4]
mov dword [rdi - 1], eax
movzx eax, byte [0x180042df0]
mov byte [rdi + 3], al
lea rdi, [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.SystweakPhotos_Recovery_]
mov qword [rdi - 1], rax
mov rax, qword [0x180042e00]
mov qword [rdi + 7], rax
mov rax, qword [0x180042e08]
mov qword [rdi + 0xf], rax
movzx eax, word [0x180042e10]
mov word [rdi + 0x17], ax
movzx eax, byte [0x180042e12]
mov byte [rdi + 0x19], al
test rsi, rsi
jne 0x180028951
lea rdi, [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x150]
xor ecx, ecx
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x180028940
jmp 0x180028972
lea rdi, [rsp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor r8d, r8d
movzx eax, byte [rsi + r8]
mov byte [rdi + r8 - 1], al
inc r8
test al, al
jne 0x180028961
lea rcx, [rsp + 0x40]
call fcn.18002e444
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rbx
call sym.PRDLL.dll_Undelete_RecoverFile
mov qword [0x18004c318], 0
jmp 0x1800289b2
lea rdx, str.Undelete_RecoverFile:_Files_or_strings_or_both_are_NULL._n
mov rcx, rbx
call fcn.180016b80
mov dword [rbx], 0x2000000b
xor eax, eax
jmp 0x1800289b2
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18002d590
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x270
pop r12
pop rdi
pop rsi
ret
Function at 0x18002cf70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x20
lea rdx, str._tPerforming_DeepScan._n
mov rdi, rcx
call fcn.180016c70
cmp qword [rdi + 0x284], 0
je 0x18002cfa7
mov r9d, 0x251c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
add rsp, 0x20
pop rdi
jmp fcn.18000fc30
mov qword [rsp + 0x38], rbx
mov rbx, qword [rdi + 0x34]
mov qword [rsp + 0x40], rsi
test rbx, rbx
je 0x18002d035
lea rax, [rsp + 0x30]
test rax, rax
je 0x18002d035
mov eax, dword [rbx + 0x7f]
test eax, eax
je 0x18002d035
test rbx, rbx
je 0x18002d035
lea rcx, [rsp + 0x30]
test rcx, rcx
je 0x18002d035
mov rsi, qword [rbx + 0x18]
sub rsi, qword [rbx + 0x28]
je 0x18002d035
mov rcx, rax
xor edx, edx
mov rax, rsi
div rcx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.180003060
test eax, eax
je 0x18002d035
mov ecx, dword [rbx + 0x7f]
xor edx, edx
mov rax, rsi
div rcx
mov r9d, 0x251c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rdi + 0x10], rax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.18000fc30
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x18002d050
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
mov rax, r8
mov r15, r9
mov rbp, rdx
mov rdi, rcx
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x40000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov r14d, r12d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x18002d0c3
lea rdx, str.Unformated_RecoverFile:_Unable_to_create_recover_file._n
mov rcx, rdi
call fcn.180016b80
xor eax, eax
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, qword [rdi + 0x34]
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], r13
test rcx, rcx
je 0x18002d0ec
lea rax, [rsp + 0x48]
test rax, rax
je 0x18002d0ec
lea rsi, [rcx + 0x7f]
jmp 0x18002d0f1
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rbp + 0x10]
test rcx, rcx
je 0x18002d11c
mov rax, qword [rcx + 0x20]
cmp rax, rdx
jbe 0x18002d11c
mov qword [rcx + 0x18], rax
sub rax, rdx
mov qword [rcx + 0x28], rdx
cmp rax, 0xffffffffffffffff
jbe 0x18002d11c
lea rax, [rdx - 1]
mov qword [rcx + 0x18], rax
mov edx, dword [rsi]
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
je 0x18002d245
mov rax, qword [rbp + 0x8b]
mov qword [rsp + 0x90], rbx
mov ebx, r12d
mov ecx, dword [rax]
mov dword [rsp + 0x48], ecx
cmp qword [rbp + 8], rbx
jbe 0x18002d22c
nop
mov rcx, qword [rdi + 0x24]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18002d22c
mov ecx, dword [rsi]
mov r8d, dword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov rdx, rcx
mov r9, r13
mov qword [rsp + 0x20], rax
imul rdx, r8
inc r8d
mov dword [rsp + 0x48], r8d
mov r8d, ecx
mov rcx, qword [rdi + 0x34]
call fcn.180002c60
test eax, eax
je 0x18002d211
mov eax, dword [rsi]
cmp dword [rsp + 0x50], eax
jne 0x18002d211
mov r8d, dword [rbp + 8]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x40]
sub r8d, ebx
mov rdx, r13
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x40], r8d
mov eax, dword [rsi]
cmp r8d, eax
cmova r8d, eax
mov dword [rsp + 0x40], r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18002d1fa
add ebx, dword [rsp + 0x40]
mov eax, ebx
mov qword [r15], rax
cmp rax, qword [rbp + 8]
jb 0x18002d160
jmp 0x18002d22c
lea rdx, str.Unformated_RecoverFile:_Error_writing_recover_file._n
mov rcx, rdi
call fcn.180016b80
mov dword [rdi], 0x2000000e
jmp 0x18002d226
lea rdx, str.Unformated_RecoverFile:_Error_reading_deleted_file_sector._n
mov rcx, rdi
call fcn.180016b80
mov dword [rdi], 0x2000000f
mov r14d, 1
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x98]
test r14d, r14d
sete r12b
mov eax, r12d
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x18002d280
Capabilities:
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x78
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
xor edx, edx
mov rcx, r9
mov r13, r9
mov dword [rsp + 0x44], ebx
mov rbp, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
cmp rbp, 0xffffffffffffffff
je 0x18002d4c5
cmp r13, 0xffffffffffffffff
je 0x18002d4c5
mov rcx, qword [rsi + 0x34]
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0x70], r15
test rcx, rcx
je 0x18002d2f5
lea rax, [rsp + 0x48]
test rax, rax
je 0x18002d2f5
lea rbp, [rcx + 0x7f]
mov qword [rsp + 0x48], rbp
jmp 0x18002d2ff
mov rbp, qword [rsp + 0x48]
mov qword [rsp + 0x48], rbp
mov rdx, qword [rdi + 0x10]
test rcx, rcx
je 0x18002d32a
mov rax, qword [rcx + 0x20]
cmp rax, rdx
jbe 0x18002d32a
mov qword [rcx + 0x18], rax
sub rax, rdx
mov qword [rcx + 0x28], rdx
cmp rax, 0xffffffffffffffff
jbe 0x18002d32a
lea rax, [rdx - 1]
mov qword [rcx + 0x18], rax
mov rax, qword [rdi + 0x8b]
mov r14d, ebx
mov r15d, dword [rax]
cmp qword [rdi + 8], rbx
jbe 0x18002d491
mov rcx, qword [rsi + 0x24]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18002d491
xor eax, eax
xor edx, edx
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], rbx
mov eax, dword [rbp]
mov ecx, r15d
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x50]
mov r9d, 0x20
imul rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc0]
mov dword [rsp + 0x68], 1
div r12
mov edx, 0x90074
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18002d3d6
mov dword [rsp + 0x44], 1
jmp 0x18002d463
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x18002d463
mov dword [rsp + 0x40], ebx
mov ebp, ebx
cmp dword [rsi + 0x298], ebx
jbe 0x18002d44d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [rsi + 0x294]
mov r9d, r12d
mov r8, rdi
mov edx, ebp
shr ecx, 2
call fcn.180017600
lea r9, [rsp + 0x40]
mov r8d, r12d
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc ebp
cmp ebp, dword [rsi + 0x298]
jb 0x18002d403
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xd0]
xor edx, edx
mov eax, r12d
div dword [rbp]
add r14d, r12d
add r15d, eax
mov eax, r14d
mov qword [rcx], rax
mov rcx, qword [rsp + 0xb8]
cmp rax, qword [rcx + 8]
jb 0x18002d341
mov rcx, qword [rsi + 0x34]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0xb0]
test rcx, rcx
je 0x18002d4af
mov qword [rcx + 0x6b], 0xffffffffffffffff
cmp dword [rsp + 0x44], ebx
sete bl
mov eax, ebx
add rsp, 0x78
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x78
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18002e444
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x18002e45a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18002e45c
xor eax, eax
test eax, eax
je 0x18002e46c
mov ecx, eax
call fcn.18002ecf8
or eax, 0xffffffff
jmp 0x18002e46e
xor eax, eax
add rsp, 0x28
ret

Function at 0x18002e883
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x18002d5aa
rol rcx, 0x10
test cx, 0xffff
jne 0x18002d5a6
repz ret
ror rcx, 0x10
jmp 0x18002e7dc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18004b590]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18004b688]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18002e861
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18004b590]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18002e883
mov rax, qword [rsp + 0x88]
mov qword [0x18004b688], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18004b628], rax
mov rax, qword [0x18004b688]
mov qword [0x18004b500], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18004b610], rax
mov dword [0x18004b4f0], 0xc0000409
mov dword [0x18004b4f4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180049008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18004b588], eax
mov ecx, 1
call fcn.1800344bc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18003d528]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18004b588], 0
jne 0x18002e90a
mov ecx, 1
call fcn.1800344bc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180031824
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180031698
Function at 0x180036e14
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180031038
xor ebx, ebx
mov rdi, rax
cmp qword [0x18004c208], rbx
jne 0x180036f1a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180036fef
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180036fef
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18004c208], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18004c210], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18004c218], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18004c228], rax
test rax, rax
je 0x180036f11
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18004c220], rax
jmp 0x180036f21
mov rax, qword [0x18004c220]
jmp 0x180036f28
mov rax, qword [0x18004c220]
mov r11, qword [0x18004c228]
cmp rax, rdi
je 0x180036f90
cmp r11, rdi
je 0x180036f90
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18004c228]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180036f90
test rax, rax
je 0x180036f90
call rsi
test rax, rax
je 0x180036f8a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180036f8a
test byte [rsp + 0x38], 1
jne 0x180036f90
bts ebp, 0x15
jmp 0x180036fce
mov rcx, qword [0x18004c210]
cmp rcx, rdi
je 0x180036fce
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180036fce
call rax
mov rbx, rax
test rax, rax
je 0x180036fce
mov rcx, qword [0x18004c218]
cmp rcx, rdi
je 0x180036fce
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180036fce
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18004c208]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180036fef
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180036ff1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140002700
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x14009b040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14009c0a8]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000291e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14000291e
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 [0x14009c0a8]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x1400027d4
movsx rdx, word [r8 + 0x6030]
lea rax, [r8 + 0x6034]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x1400027c9
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 + 0x6030], cx
movsx rax, cx
lea rax, [rax*8 + 0x6034]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6028]
test rdi, rdi
je 0x1400027f1
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 0x1400027f4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140083068]
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 0x140002837
mov rsi, qword [r8 + 0x90]
jmp 0x14000283a
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 0x140002865
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14009c0a8]
mov rcx, qword [rax + 0x4ad0]
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 0x1400028de
inc rbx
cmp rbx, 5
jl 0x1400028c0
jmp 0x14000290a
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 0x140002920
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007d3d0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret