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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001a145
cmp byte [rcx + 0x72], 0
je 0x14001a145
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x14001a141
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001a106
sub eax, 1
je 0x14001a10a
cmp eax, 2
jne 0x14001a141
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140030fb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001a138
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001a141
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14001a0ee
xor al, al
jmp 0x14001a0ee
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140030fb0
add rsp, 0x60
pop rbx
ret
Function at 0x14001e300
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14001e3e3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001e3e3
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001e401
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14001e3d3
cmp word [rcx], 0x5c
jne 0x14001e3cc
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x14001e3cc
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001e3b7
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x14001e3c9
test r8b, 0x10
jne 0x14001e3cc
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x14001e3cc
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001b410
test edi, edi
jne 0x14001e330
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.1400109b0
int3
Function at 0x140022e70
Capabilities:
Enumerate files on windows
Enumerate processes
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x410
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov rbp, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x130
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14002303b
mov qword [rsp + 0x428], rbx
mov qword [rsp + 0x430], rdi
mov rdx, rbp
lea rcx, [rsp + 0x8c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140023015
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140023015
lea rax, [rsp + 0x40]
mov rcx, rdi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x14002300c
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov r8d, 0x104
lea rdx, [rsp + 0x2f0]
lea rcx, str._appdata_.minecraftmods.jar
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x14002300c
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002300c
nop word [rax + rax]
test byte [rsp + 0x1b0], 0x10
jne 0x140022fee
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x1c4]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x1c4]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x140022fee
lea rdx, [rsp + 0x1dc]
lea rcx, str.____Suspicious_mod_found:__s._Analyze_it_with_Bintext._n
call fcn.140022e10
lea rdx, [rsp + 0x1b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140022f90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140022ed0
mov rdi, qword [rsp + 0x430]
mov rbx, qword [rsp + 0x428]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140030fb0
mov rbp, qword [rsp + 0x438]
add rsp, 0x410
pop rsi
ret
Function at 0x140023d50
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], rax
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140030fb0
add rsp, 0x58
ret
Function at 0x140028570
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov qword [rsp + 0x38], 0
mov rdx, rcx
lea r8, [0x14003b030]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x1400285ee
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400285ee
xor edx, edx
mov qword [rsp + 0x30], rbx
mov r8d, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
jne 0x1400285e6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x1400285ee
mov al, 1
add rsp, 0x20
pop rdi
ret
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x140028600
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push r14
push r15
sub rsp, 0x468
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, r8
mov r14, rdx
mov rbp, rcx
xor r15d, r15d
mov dword [r8], r15d
mov edx, 0x400
mov r8, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x1400287e8
mov qword [rsp + 0x4a8], rbx
mov qword [rsp + 0x460], rdi
nop dword [rax + rax]
lea rdx, str.Rename:
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x1400287bc
movsxd rdx, dword [rsi]
mov rcx, qword [r14]
lea rdx, [rdx*8 + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x140028806
mov ecx, 0x800
mov qword [r14], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [r14]
movsxd rdx, dword [rsi]
mov qword [rcx + rdx*8], rax
movsxd rcx, dword [rsi]
mov rax, qword [r14]
cmp qword [rax + rcx*8], r15
je 0x140028806
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x30], r15
mov edi, 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
nop dword [rax]
mov rcx, qword [rbx - 8]
mov edx, 0x2c
inc rcx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov qword [rbx], rax
test rax, rax
je 0x140028715
inc edi
add rbx, 8
cmp edi, 6
jl 0x1400286f0
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1400287bc
movsxd rax, dword [rsi]
lea r8, [rdi + 2]
mov rcx, qword [r14]
mov r9, rdi
sub r9, qword [rsp + 0x40]
mov edx, 0x400
inc r9
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
movsxd rcx, dword [rsi]
mov rax, qword [r14]
mov rdx, qword [rax + rcx*8]
sub rdx, qword [rsp + 0x40]
mov byte [rdx + rdi], r15b
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1400287bc
mov rbx, qword [rsp + 0x28]
mov rax, rdi
sub rax, rbx
mov r9, r15
dec rax
test rbx, rbx
lea r8, [rbx + 1]
cmovne r9, rax
jne 0x140028789
lea r8, [0x14003b018]
movsxd rcx, dword [rsi]
mov edx, 0x400
mov rax, qword [r14]
mov rcx, qword [rax + rcx*8]
add rcx, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
movsxd rcx, dword [rsi]
mov rax, qword [r14]
mov rdx, qword [rax + rcx*8]
sub rdx, rbx
mov byte [rdx + rdi + 0x3ff], r15b
inc dword [rsi]
mov r8, rbp
lea rcx, [rsp + 0x50]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140028660
mov rbx, qword [rsp + 0x4a8]
mov rdi, qword [rsp + 0x460]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140030fb0
add rsp, 0x468
pop r15
pop r14
pop rsi
pop rbp
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140029520
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, ebp
nop
bt esi, edi
jae 0x1400296a9
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
xor r8d, r8d
lea rdx, [0x140038be0]
lea rcx, [rsp + 0x40]
call fcn.140003f50
nop
lea r9d, [rdi + 0x41]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
cmp rcx, rdx
jae 0x1400295d7
lea rax, [rcx + 1]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rdx, 7
cmova rax, qword [rsp + 0x40]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], bp
jmp 0x1400295e1
lea rcx, [rsp + 0x40]
call fcn.14001aa10
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x14002961d
lea rax, [rcx + 2]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rdx, 7
cmova rax, qword [rsp + 0x40]
mov dword [rax + rcx*2], 0x5c003a
mov word [rax + rcx*2 + 4], bp
jmp 0x14002963c
mov qword [rsp + 0x20], 2
lea r9, [0x1400356f4]
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.1400063d0
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x14002965a
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400034a0
add qword [rbx + 8], 0x20
jmp 0x14002966b
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, rbx
call fcn.140009e60
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1400296a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400296a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400296da
call fcn.140030fd0
inc edi
cmp edi, 0x1a
jl 0x140029570
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140030fb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002c480
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x12c
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov ecx, 2
xor sil, sil
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002c4de
xor al, al
jmp 0x14002c53b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14002c52e
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14002c513
inc rax
test ecx, ecx
jne 0x14002c500
test edx, edx
je 0x14002c52b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14002c4f0
jmp 0x14002c52e
mov sil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140030fb0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14002fa10
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x14002fbd4
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov esi, 0xffffffff
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ebx, eax
test eax, eax
js 0x14002fbc8
mov qword [rsp + 0x20], rdi
lea r9, [0x140034da8]
xor edx, edx
mov r8d, 1
lea rcx, [0x140034db8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x14002fbc8
mov r15, qword [rdi]
mov rax, qword [r15]
mov rbp, qword [rax + 0x18]
mov ecx, 0x18
call fcn.1400310f8
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14002faf4
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14002fbf8
jmp 0x14002faf7
mov rbx, r12
mov qword [rsp + 0x90], rbx
test rbx, rbx
je 0x14002fbed
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r15
call rbp
mov ebp, eax
lock xadd dword [rbx + 0x10], esi
cmp esi, 1
jne 0x14002fb6b
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002fb4c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002fb5e
call fcn.140030fd0
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140030fd0
test ebp, ebp
jns 0x14002fb82
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebp
jmp 0x14002fbd4
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x14002fbd2
mov rcx, qword [r14]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rdi]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x14002fbd4
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.140030c70
nop
mov ecx, 0x8007000e
call fcn.140030c70
int3
Function at 0x140030088
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 0x1400300c2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400300c7
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 0x140030110
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140034c20]
cmp byte [rcx + rax], 0
je 0x140030110
dec r8
sub rdx, 1
jne 0x1400300f6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140031e5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140031ea6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140031ea6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140031ea6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140031ea6
cmp dword [rcx + 0x84], 0xe
jbe 0x140031ea6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140031ea8
xor al, al
add rsp, 0x28
ret
Function at 0x140001504
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov r8, rdx
mov ecx, 0x100000
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400015c4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [section..data], 2
mov ebx, eax
jbe 0x1400015aa
mov eax, 0x800
test qword [0x14000b010], rax
je 0x1400015aa
mov rcx, qword [0x14000b018]
and rcx, rax
cmp rcx, qword [0x14000b018]
jne 0x1400015aa
lea rax, str.onecorexboxgameinput2published_svcgameinputservermanager.cpp
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x68], rax
lea rdx, [0x140008cbe]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x60], 0x17
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.140001008
test ebx, ebx
jne 0x1400015b5
mov eax, 0x8000ffff
jmp 0x1400015e7
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400015e7
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x1400023a4
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400024db
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
je 0x1400024db
cmp eax, 5
jne 0x140002461
mov rdx, rdi
xor ecx, ecx
call fcn.140004ed4
mov ebx, eax
test eax, eax
jns 0x1400024db
cmp dword [section..data], 2
jbe 0x14000245d
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x14000245d
mov rcx, qword [0x14000b018]
and rcx, r8
cmp rcx, qword [0x14000b018]
jne 0x14000245d
mov dword [rbp + 0x28], eax
lea rdx, [0x140008c31]
lea rax, [0x140008568]
mov dword [rbp + 0x30], 0x78
mov qword [rbp + 0x38], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140001008
mov eax, ebx
jmp 0x1400024dd
test ebx, ebx
je 0x1400024cc
cmp dword [section..data], 2
jbe 0x1400024cc
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x1400024cc
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x1400024cc
lea rax, [0x140008568]
mov dword [rbp + 0x28], ebx
mov qword [rbp + 0x38], rax
lea rdx, [0x140008cbe]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], 0x7c
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140001008
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400024dd
xor eax, eax
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400024ec
Capabilities:
Check if file exists

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rdi, r8
mov ebx, 0x28
mov ecx, ebx
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, qword gs:[0x60]
mov r8, rax
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x18], rax
mov rdx, rax
test rax, rax
je 0x140002626
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x14000258f
cmp eax, ebx
jne 0x140002576
mov rcx, qword [rbp - 0x18]
call fcn.1400062b4
xor eax, eax
mov qword [rbp - 0x18], rax
add ebx, ebx
jmp 0x14000257a
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x140002507
xor edx, edx
mov qword [rdi], rax
mov qword [rbp - 0x18], rdx
xor ebx, ebx
jmp 0x140002696
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [section..data], 2
mov edi, eax
jbe 0x140002604
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x140002604
mov rcx, qword [0x14000b018]
and rcx, r8
cmp rcx, qword [0x14000b018]
jne 0x140002604
mov dword [rbp + 0x28], eax
lea rdx, [0x140008cbe]
lea rax, [0x140008568]
mov dword [rbp + 0x20], 0x95
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.140001008
mov rdx, qword [rbp - 0x18]
test edi, edi
jne 0x140002616
mov ebx, 0x8000ffff
jmp 0x140002696
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140002696
cmp dword [section..data], 2
mov ebx, 0x8007000e
jbe 0x140002696
mov r8d, 0x800
test qword [0x14000b010], r8
je 0x140002696
mov rax, qword [0x14000b018]
and rax, r8
cmp rax, qword [0x14000b018]
jne 0x140002696
lea rax, [0x140008568]
mov dword [rbp + 0x38], ebx
mov qword [rbp - 8], rax
lea rdx, [0x140008c6e]
lea rax, [rbp + 0x38]
mov dword [rbp - 0x20], 0x92
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
call fcn.140001008
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x1400026a3
mov rcx, rdx
call fcn.1400062b4
mov eax, ebx
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret