joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015e00
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
test rdx, rdx
je 0x140015ec7
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov r9d, 0x30
call sub.KERNEL32.dll_VirtualQueryEx
test rax, rax
je 0x140015ed1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x68]
mov r9d, 0x40
mov rcx, rbx
mov rdx, rdi
call sub.KERNEL32.dll_ReadProcessMemory
xor ebp, ebp
test eax, eax
je 0x140015ed3
movzx eax, word [rsp + 0x68]
cmp eax, 0x5a4d
jne 0x140015ec0
mov eax, dword [rsp + 0xa4]
cmp rax, 0x40
jb 0x140015ec0
cmp qword [rsp + 0x48], rax
jb 0x140015ec0
cdqe
add rdi, rax
mov qword [rsp + 0x20], 0
mov r9d, 0xf8
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x140015ed3
mov ebp, 1
cmp dword [rsi], 0x4550
je 0x140015ed3
mov ecx, 0xc1
jmp 0x140015ecc
mov ecx, 0x57
call sub.KERNEL32.dll_SetLastError
xor ebp, ebp
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140016060
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1f8
mov ebx, r9d
mov rsi, r8
mov r12, rdx
mov rdi, rcx
lea r8d, [rbx + 0x1c8]
mov dword [rsp + 0x20], 4
xor r14d, r14d
xor edx, edx
mov r9d, 0x1000
call sub.KERNEL32.dll_VirtualAllocEx
test rax, rax
je 0x1400162d8
mov r15, rax
mov qword [rsp + 0x28], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xb2], xmm0
movups xmmword [rsp + 0xc2], xmm0
movups xmmword [rsp + 0xd2], xmm0
movups xmmword [rsp + 0xdc], xmm0
mov word [rsp + 0xb0], 0x5a4d
mov dword [rsp + 0xec], 0x40
lea rbp, [rsp + 0x28]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0xb0]
mov r9d, 0x40
mov rcx, rdi
mov rdx, rax
call sub.KERNEL32.dll_WriteProcessMemory
xor r14d, r14d
test eax, eax
je 0x1400162d8
cmp qword [rsp + 0x28], 0x40
jne 0x1400162d8
lea r13, [r15 + 0x40]
lea rcx, [rsp + 0xf4]
xor r14d, r14d
mov r8d, 0x104
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0xf0], 0x4550
mov dword [rsp + 0x104], 0x200000f0
mov word [rsp + 0xf6], 1
mov word [rsp + 0x108], 0x20b
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0xf0]
mov r9d, 0x108
mov rcx, rdi
mov rdx, r13
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1400162d8
cmp qword [rsp + 0x28], 0x108
jne 0x1400162d8
lea rdx, [r15 + 0x148]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movabs rax, 0x72756f7465642e
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0x170
lea r13d, [rbx + 0x58]
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x48]
mov r9d, 0x28
mov rcx, rdi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1400162d8
cmp qword [rsp + 0x28], 0x28
jne 0x1400162d8
lea rdx, [r15 + 0x170]
xorps xmm0, xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movabs rax, 0x72744400000040
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x40
mov dword [rsp + 0x7c], r13d
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x70]
mov r9d, 0x40
mov rcx, rdi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1400162d8
cmp qword [rsp + 0x28], 0x40
jne 0x1400162d8
lea rdx, [r15 + 0x1b0]
lea eax, [rbx + 0x18]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], 0
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x30]
mov r9d, 0x18
mov rcx, rdi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1400162d8
cmp qword [rsp + 0x28], 0x18
jne 0x1400162d8
mov ebx, ebx
add r15, 0x1c8
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r15
mov r8, rsi
mov r9, rbx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
setne al
cmp qword [rsp + 0x28], rbx
sete cl
and cl, al
movzx r14d, cl
mov eax, r14d
add rsp, 0x1f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400173f0
Capabilities:
Resume thread
Terminate process

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xe0]
mov r11, qword [rsp + 0xd8]
mov r10, qword [rsp + 0xd0]
mov ebp, dword [rsp + 0xc8]
mov eax, dword [rsp + 0xc0]
mov rbx, qword [rsp + 0x100]
test rbx, rbx
lea rsi, [0x1400333b0]
cmovne rsi, rbx
test r14, r14
jne 0x140017459
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
lea r14, [rsp + 0x50]
mov ebx, ebp
or ebx, 4
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
call rsi
test eax, eax
je 0x1400174d9
mov rdi, qword [rsp + 0xf8]
mov ebx, dword [rsp + 0xf0]
mov rcx, qword [r14]
mov rdx, rdi
mov r8d, ebx
call fcn.140014eb0
test eax, eax
jne 0x1400174b6
mov ecx, dword [r14 + 0x10]
mov edx, ebx
mov r8, rdi
mov r9, rsi
call fcn.140016650
test eax, eax
je 0x1400174dd
test bpl, 4
jne 0x1400174c5
mov rcx, qword [r14 + 8]
call sub.KERNEL32.dll_ResumeThread
mov esi, 1
lea rax, [rsp + 0x50]
cmp r14, rax
mov r14, rax
jne 0x1400174fd
jmp 0x1400174ec
xor esi, esi
jmp 0x1400174fd
mov rcx, qword [r14]
mov edx, 0xffffffff
call sub.KERNEL32.dll_TerminateProcess
xor esi, esi
mov rcx, qword [r14]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [r14 + 8]
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140017960
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x258
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1d0], 0xfffffffffffffffe
mov rax, rcx
mov qword [rbp - 0x48], 0
lea rcx, vtable.fmt::v7::basic_memory_buffer_char__500__class_std::allocator_char__.0
mov qword [rbp - 0x58], rcx
lea rsi, [rbp - 0x38]
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x40], 0x1f4
movups xmm0, xmmword [r8]
movaps xmmword [rbp + 0x1c0], xmm0
lea rcx, [rbp - 0x58]
lea r8, [rbp + 0x1c0]
call rax
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov r8d, 1
mov r9, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0xa
mov rdx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rcx, qword [rbp - 0x50]
cmp rcx, rsi
je 0x140017a28
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x1000
jb 0x140017a23
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140017a33
add rdx, 0x27
mov rcx, rax
call fcn.140031c88
nop
add rsp, 0x258
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 0x140019e40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rsi
jae 0x140019f07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [rax]
lea rax, vtable.std::exception.0
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x18]
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea rax, [0x140038c10]
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 1
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll___std_exception_copy
lea rax, vtable.fmt::v7::system_error.0
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x30], 0
mov qword [rbp - 0x50], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x48], rax
lea rax, str.cannot_write_to_file
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x14
lea rcx, [rbp - 0x20]
lea r8, [rbp - 0x60]
lea r9, [rbp - 0x50]
mov edx, esi
call fcn.140017b20
mov byte [rbp - 0x30], 1
cmp byte [rbp - 0x30], 0
jne 0x140019f12
lea rax, vtable.std::exception.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x18]
call sub.VCRUNTIME140.dll___std_exception_destroy
nop
add rsp, 0x88
pop rsi
pop rbp
ret
lea rsi, [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.140021750
lea rdx, [0x140042b20]
mov rcx, rsi
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002e4d0
Capabilities:
Resume thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov esi, dword [0x140045b90]
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov eax, 0x10dd
cmp esi, ecx
jne 0x14002e613
mov rdi, qword [0x140045b98]
test rdi, rdi
je 0x14002e579
lea rsi, [rsp + 0x28]
xorps xmm6, xmm6
jmp 0x14002e523
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.140031c80
mov rdi, rbx
test rbx, rbx
je 0x14002e579
mov r8d, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0x20]
movzx edx, byte [rax + 0x3e]
mov r9, rsi
call sub.KERNEL32.dll_VirtualProtect
cmp dword [rdi + 8], 0
jne 0x14002e510
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x14002e510
mov rcx, rax
and rcx, 0xffffffffffff0000
movups xmmword [rax + 0x50], xmm6
movups xmmword [rax + 0x40], xmm6
movups xmmword [rax + 0x30], xmm6
movups xmmword [rax + 0x20], xmm6
movups xmmword [rax + 0x10], xmm6
movups xmmword [rax], xmm6
mov rdx, qword [rcx + 0x10]
mov qword [rax + 0x48], rdx
mov qword [rcx + 0x10], rax
jmp 0x14002e510
mov qword [0x140045b98], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov rdi, qword [0x140045bb8]
test rdi, rdi
je 0x14002e5d0
mov rsi, rax
lea rbx, [rsp + 0x2c]
nop dword [rax]
mov edx, 0x10000
mov rcx, rdi
mov r8d, 0x20
mov r9, rbx
call sub.KERNEL32.dll_VirtualProtect
mov r8d, 0x10000
mov rcx, rsi
mov rdx, rdi
call sub.KERNEL32.dll_FlushInstructionCache
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14002e5a0
mov rsi, qword [0x140045ba0]
test rsi, rsi
je 0x14002e5fc
nop dword [rax]
mov rcx, qword [rsi + 8]
call sub.KERNEL32.dll_ResumeThread
mov rdi, qword [rsi]
mov rcx, rsi
call fcn.140031c80
mov rsi, rdi
test rdi, rdi
jne 0x14002e5e0
mov qword [0x140045ba0], 0
mov dword [0x140045b90], 0
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002f9e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
movzx eax, cx
mov edi, 0x10000
sub rdi, rax
test rax, rax
cmove rdi, rax
add rdi, rcx
cmp rdi, rdx
jae 0x14002fadf
mov rsi, rdx
xorps xmm6, xmm6
lea rbx, [rsp + 0x20]
jmp 0x14002fa30
add rdi, 0x8000000
cmp rdi, rsi
jae 0x14002fadf
cmp rdi, qword [0x1400458d8]
jb 0x14002fa42
cmp rdi, qword [0x1400458e0]
jbe 0x14002fa20
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov r8d, 0x30
mov rcx, rdi
mov rdx, rbx
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14002fadf
cmp dword [rsp + 0x40], 0x10000
mov rax, qword [rsp + 0x38]
jne 0x14002fac0
cmp rax, 0x10000
jb 0x14002fac0
mov edx, 0x10000
mov rcx, rdi
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
mov r14, rax
test rax, rax
jne 0x14002fae2
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14002fae2
add rdi, 0x10000
jmp 0x14002fa27
add rax, qword [rsp + 0x20]
movzx ecx, ax
mov edi, 0x10000
sub rdi, rcx
test rcx, rcx
cmove rdi, rcx
add rdi, rax
jmp 0x14002fa27
xor r14d, r14d
mov rax, r14
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14002fb00
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
sub rsp, 0x58
test rcx, rcx
je 0x14002fbd6
mov rsi, rcx
test rdx, rdx
je 0x14002fb1e
mov qword [rdx], 0
movzx eax, byte [rsi]
cmp al, 0xff
je 0x14002fbda
cmp al, 0xeb
jne 0x14002fc49
movsx rax, byte [rsi + 1]
lea rdi, [rsi + rax]
add rdi, 2
movzx eax, byte [rsi + rax + 2]
cmp eax, 0xe9
je 0x14002fc4e
cmp eax, 0xff
jne 0x14002fc59
cmp byte [rdi + 1], 0x25
jne 0x14002fc59
movsxd rsi, dword [rdi + 2]
lea rdx, [rsp + 0x28]
mov r8d, 0x30
mov rcx, rdi
call sub.KERNEL32.dll_VirtualQuery
mov rax, qword [rsp + 0x30]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14002fc59
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14002fc59
lea rcx, [rdi + rsi]
add rcx, 6
mov r8d, dword [rax + rdx + 0xe8]
add r8, rax
cmp r8, rcx
ja 0x14002fc59
mov eax, dword [rax + rdx + 0xec]
add r8, rax
cmp r8, rcx
jbe 0x14002fc59
mov rdi, qword [rcx]
jmp 0x14002fc59
xor edi, edi
jmp 0x14002fc59
cmp byte [rsi + 1], 0x25
jne 0x14002fc3e
movsxd rdi, dword [rsi + 2]
lea rdx, [rsp + 0x28]
mov r8d, 0x30
mov rcx, rsi
call sub.KERNEL32.dll_VirtualQuery
mov rax, qword [rsp + 0x30]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14002fc3e
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14002fc3e
lea rcx, [rsi + rdi]
add rcx, 6
mov r8d, dword [rax + rdx + 0xe8]
add r8, rax
cmp r8, rcx
ja 0x14002fc3e
mov eax, dword [rax + rdx + 0xec]
add r8, rax
cmp r8, rcx
jbe 0x14002fc3e
mov rsi, qword [rcx]
movzx eax, byte [rsi]
cmp al, 0xeb
je 0x14002fb31
mov rdi, rsi
jmp 0x14002fc59
movsxd rax, dword [rdi + 1]
add rdi, rax
add rdi, 5
mov rax, rdi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x14002fe50
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm6
cmp byte [0x140045c18], 0
je 0x14002fe6f
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rax, qword [0x140045c10]
test rax, rax
jne 0x14002fe65
pxor xmm6, xmm6
movdqu xmmword [0x140045bf8], xmm6
movdqu xmmword [0x140045be8], xmm6
movdqu xmmword [0x140045bd8], xmm6
movdqu xmmword [0x140045bc8], xmm6
mov qword [0x140045c08], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [0x140045bc8], rax
lea rcx, str.dbghelp.dll
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_LoadLibraryExW
mov qword [0x140045bd0], rax
test rax, rax
je 0x14003005c
lea rdx, str.ImagehlpApiVersionEx
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045bd8], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymInitialize
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045be0], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymSetOptions
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045be8], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymGetOptions
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045bf0], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymLoadModule64
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045bf8], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymGetModuleInfo64
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045c00], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymFromName
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045c08], rax
mov qword [rsp + 0x28], 0xc
mov rdx, qword [0x140045bd8]
movdqu xmm0, xmmword [0x140045bf8]
movq xmm1, rdx
movq xmm2, qword [0x140045be0]
punpcklqdq xmm2, xmm1
pcmpeqd xmm0, xmm6
pshufd xmm1, xmm0, 0xb1
pand xmm1, xmm0
pcmpeqd xmm2, xmm6
pshufd xmm0, xmm2, 0xb1
pand xmm0, xmm2
packssdw xmm0, xmm1
movmskps ecx, xmm0
test ecx, ecx
jne 0x140030042
test rax, rax
je 0x140030042
lea rcx, [rsp + 0x28]
call rdx
cmp word [rsp + 0x28], 0xc
jb 0x140030042
mov rcx, qword [0x140045bc8]
xor edx, edx
xor r8d, r8d
call qword [0x140045be0]
test eax, eax
je 0x140030042
mov rax, qword [0x140045bf0]
test rax, rax
je 0x14003002a
cmp qword [0x140045be8], 0
je 0x14003002a
call rax
and eax, 0xffffd8f8
lea ecx, [rax + 0x2704]
call qword [0x140045be8]
lea rax, [0x140045bc8]
mov qword [0x140045c10], rax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rcx, qword [0x140045bd0]
mov byte [0x140045c18], 1
test rcx, rcx
je 0x140030063
call sub.KERNEL32.dll_FreeLibrary
jmp 0x140030063
mov byte [0x140045c18], 1
xorps xmm0, xmm0
movups xmmword [0x140045bf8], xmm0
movups xmmword [0x140045be8], xmm0
movups xmmword [0x140045bd8], xmm0
mov qword [0x140045c08], 0
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140030540
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
test rcx, rcx
je 0x140030580
movzx eax, word [rsi]
cmp eax, 0x5a4d
jne 0x140030594
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rsi + rdi], 0x4550
jne 0x1400305a2
cmp word [rsi + rdi + 0x14], 0
je 0x1400305b0
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov esi, dword [rsi + rdi + 0x50]
jmp 0x1400305bc
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov rsi, rax
movzx eax, word [rsi]
cmp eax, 0x5a4d
je 0x14003055e
xor esi, esi
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x1400305bc
xor esi, esi
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
jmp 0x1400305bc
xor esi, esi
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400305f0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rdx, [rbp - 0x30]
mov r8d, 0x30
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x14003066d
cmp dword [rbp - 0x10], 0x1000
jne 0x140030661
mov eax, dword [rbp - 0xc]
cmp al, 1
je 0x140030661
and eax, 0x100
jne 0x140030661
mov rsi, qword [rbp - 0x28]
movzx eax, word [rsi]
cmp eax, 0x5a4d
jne 0x140030683
movsxd rax, dword [rsi + 0x3c]
cmp dword [rsi + rax], 0x4550
jne 0x14003068f
cmp word [rsi + rax + 0x14], 0
je 0x14003069b
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
jmp 0x140030679
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x140030677
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor esi, esi
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x140030677
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
jmp 0x140030677
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x140030677
Function at 0x1400308d0
Capabilities:
Parse pe header

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rbx, r9
mov qword [rbp], r8
mov rdi, rdx
mov r14, rcx
test rcx, rcx
je 0x140030a36
movzx eax, word [r14]
cmp eax, 0x5a4d
jne 0x140030a4f
movsxd rax, dword [r14 + 0x3c]
cmp dword [r14 + rax], 0x4550
jne 0x140030a5d
cmp word [r14 + rax + 0x14], 0
je 0x140030a6b
mov edx, dword [r14 + rax + 0x90]
mov rcx, r14
call fcn.1400308c0
test rax, rax
jne 0x14003096a
xor esi, esi
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x140030aa5
test rbx, rbx
je 0x140030962
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbx
mov rax, qword [rbp - 8]
add rax, 0x14
mov r12d, dword [rax]
test r12d, r12d
je 0x140030a79
mov qword [rbp - 8], rax
mov edx, dword [rax + 0xc]
mov rcx, r14
call fcn.1400308c0
mov rsi, rax
test rax, rax
je 0x140030a99
mov rcx, r14
mov edx, r12d
call fcn.1400308c0
mov r12, rax
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0x10]
mov rcx, r14
call fcn.1400308c0
mov r13, rax
mov rcx, qword [rax]
call fcn.1400305f0
cmp qword [rbp], 0
je 0x1400309d4
mov rcx, rdi
mov rdx, rax
mov r8, rsi
call qword [rbp]
test eax, eax
je 0x140030a80
test r12, r12
je 0x140030962
xor esi, esi
jmp 0x1400309e2
inc esi
mov r15d, esi
mov rdx, qword [r12 + r15*8]
test rdx, rdx
je 0x140030950
js 0x140030a10
add edx, 2
mov rcx, r14
call fcn.1400308c0
xor edx, edx
test rbx, rbx
jne 0x140030a1a
jmp 0x1400309e0
movzx edx, dx
xor eax, eax
test rbx, rbx
je 0x1400309e0
lea r9, [r15*8]
add r9, r13
mov rcx, rdi
mov r8, rax
call rbx
test eax, eax
jne 0x1400309e0
jmp 0x140030955
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov r14, rax
movzx eax, word [r14]
cmp eax, 0x5a4d
je 0x14003090a
xor esi, esi
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x140030aa5
xor esi, esi
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
jmp 0x140030aa5
xor esi, esi
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x140030aa5
cmp qword [rbp], 0
je 0x140030a8b
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [rbp]
mov esi, 1
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
jmp 0x140030aa5
xor esi, esi
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140030b90
Capabilities:
Parse pe header

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
test rcx, rcx
je 0x140030c5a
movzx eax, word [rsi]
cmp eax, 0x5a4d
jne 0x140030c72
movsxd rax, dword [rsi + 0x3c]
cmp dword [rsi + rax], 0x4550
jne 0x140030c7e
add rax, rsi
movzx ecx, word [rax + 0x14]
test rcx, rcx
je 0x140030c96
add rax, 4
lea r14, [rax + rcx]
add r14, 0x14
movzx r15d, word [rax + 2]
xor r12d, r12d
lea rdi, str..detour
nop dword [rax]
cmp r12d, r15d
jae 0x140030c8a
mov eax, r12d
lea rax, [rax + rax*4]
lea rbx, [r14 + rax*8]
mov rcx, rbx
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
inc r12d
test eax, eax
jne 0x140030c00
mov eax, dword [rbx + 0xc]
test rax, rax
je 0x140030c8a
cmp dword [rbx + 0x10], 0
je 0x140030c8a
mov ecx, dword [rsi + rax]
cmp ecx, 0x40
jb 0x140030c8a
add rsi, rax
cmp dword [rsi + 4], 0x727444
jne 0x140030c8a
cmp dword [rsi + 8], 0
jne 0x140030c51
mov dword [rsi + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
jmp 0x140030ca2
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov rsi, rax
movzx eax, word [rsi]
cmp eax, 0x5a4d
je 0x140030bbd
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x140030ca0
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
jmp 0x140030ca0
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x140030ca0
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret

Function at 0x140030e20
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
xorps xmm6, xmm6
lea r14, [rsp + 0x20]
add rbx, 0x10000
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
jmp 0x140030e6a
mov rbx, qword [rsp + 0x20]
add rbx, qword [rsp + 0x38]
mov r8d, 0x30
mov rcx, rbx
mov rdx, r14
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x140030ed7
cmp dword [rsp + 0x40], 0x1000
jne 0x140030e60
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x140030e60
and eax, 0x100
jne 0x140030e60
movzx eax, word [rbx]
cmp eax, 0x5a4d
jne 0x140030e60
mov eax, dword [rbx + 0x3c]
cmp rax, 0x40
jb 0x140030e60
cmp qword [rsp + 0x38], rax
jb 0x140030e60
cdqe
cmp dword [rbx + rax], 0x4550
jne 0x140030e60
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.140030cd0
test rax, rax
je 0x140030e3e
jmp 0x140030ee3
mov ecx, 0x7e
call sub.KERNEL32.dll_SetLastError
xor eax, eax
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140032734
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 0x1400327b8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140035dc0]
cmp byte [rcx + rax], 0
je 0x1400327b8
dec r8
sub rdx, 1
jne 0x14003279e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140032a34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140032a7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140032a7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140032a7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140032a7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140032a7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140032a80
xor al, al
add rsp, 0x28
ret