joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400291bc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c7b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c7b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002930c
cmp rax, 0xffffffffffffffff
je 0x14002930c
xor edi, edi
test rbp, rbp
jle 0x1400292b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f0c8
mov rbx, rax
test rax, rax
jne 0x140029244
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400292ad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a0e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d490
cmp eax, 0xffffffff
je 0x14002928d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029254
mov edx, r15d
mov ecx, r14d
call fcn.14001a0e8
jmp 0x1400292ad
cmp byte [rsi + 0x38], dil
je 0x1400292a4
cmp dword [rsi + 0x34], 5
jne 0x1400292a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400292ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ae7c
jmp 0x140029320
jns 0x140029320
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c7b4
cmp rax, 0xffffffffffffffff
jne 0x1400292d8
cmp byte [rsi + 0x30], dil
je 0x140029320
mov edi, dword [rsi + 0x2c]
jmp 0x140029320
mov ecx, r14d
call fcn.1400185a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029320
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029320
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029319
mov eax, dword [rsi + 0x2c]
jmp 0x14002931e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c7b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140001c8c
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400070a1
mov eax, 0xff
call fcn.140002680
xor byte [rsi], al
jne 0x140007091
pop rsi
pop rbx
ret

Function at 0x14000bb98
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
mov eax, 0x1050
call fcn.140013990
sub rsp, rax
mov rax, qword [0x14001b238]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rax, [rsp + 0x34]
mov rbx, r8
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000bc10
cmp dword [rsp + 0x30], 1
jne 0x14000bc10
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll_wcslen]
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov r8, rax
call fcn.1400038d8
mov al, 1
jmp 0x14000bc12
xor al, al
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140013960
add rsp, 0x1050
pop rbx
ret
Function at 0x14000bcdc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x14001b238]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov r9d, 0x400
movsxd r12, edx
lea r8, [rsp + 0x60]
lea edx, [r9 - 0xf]
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
xor r13d, r13d
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
call qword [sym.imp.MSVCR100.dll_wcslen]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov r8, rax
call fcn.1400038d8
cmp qword [0x14001b1b8], 8
lea rdi, [0x14001b1a0]
mov rdx, rdi
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
cmovae rdx, qword [0x14001b1a0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000bdcd
mov eax, dword [rsp + 0x48]
cmp qword [rsp + 0x50], 8
lea rcx, [rsp + 0x38]
cmovae rcx, qword [rsp + 0x38]
lea eax, [rax + rax + 2]
lea r9d, [r13 + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
lea rdx, str.Email
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], 8
jb 0x14000bddf
mov rcx, qword [rsp + 0x38]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
cmp qword [0x14001b1b8], 8
mov rbx, rdi
mov edx, 0x3f2
cmovae rbx, qword [0x14001b1a0]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
lea rdx, str.IncludeURL
mov rcx, rbx
test eax, eax
setne r8b
call 0x140008264
cmp qword [0x14001b1b8], 8
mov rbx, rdi
cmovae rbx, qword [0x14001b1a0]
mov edx, 0x3f0
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
lea rdx, str.EmailMe
mov rcx, rbx
test eax, eax
setne r8b
call 0x140008264
cmp qword [0x14001b1b8], 8
mov edx, 0x3ef
cmovae rdi, qword [0x14001b1a0]
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
lea rdx, str.SubmitCrashReport
mov rcx, rdi
test eax, eax
setne r8b
call 0x140008264
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.USER32.dll_EndDialog]
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.140013960
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x870
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000d0c4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14001b238]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.14000c8b0
cmp qword [rax + 0x18], 8
jb 0x14000d0f3
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
cmp qword [rsp + 0x38], 8
jb 0x14000d114
mov rcx, qword [rsp + 0x20]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140013960
add rsp, 0x50
pop rbx
ret
Function at 0x140012524
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x14001b238]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor r13d, r13d
mov r14, rdx
lea r9, [rbp - 0x7d]
and qword [rbp - 0x69], r13
and qword [rsp + 0x20], r13
lea r8, [rbp - 0x29]
lea edx, [r13 + 5]
mov r15, rcx
mov byte [rsp + 0x30], 0
mov dword [rbp - 0x7d], 0x40
mov qword [rbp - 0x61], 0xf
mov byte [rbp - 0x79], r13b
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov sil, 1
test eax, eax
je 0x1400125e0
lea r8d, [r13 + 0xa]
lea rcx, [rbp - 0x29]
xor edx, edx
mov byte [rsp + 0x30], sil
call qword [sym.imp.MSVCR100.dll_wcstol]
mov rbx, qword [rbp - 0x69]
mov r13d, eax
mov edx, eax
cmp rbx, r13
ja 0x1400125e0
cmp qword [rbp - 0x61], rdx
je 0x1400125e0
lea rcx, [rbp - 0x79]
mov r8b, sil
call fcn.140002374
test al, al
je 0x1400125e0
cmp qword [rbp - 0x61], 0x10
lea rax, [rbp - 0x79]
mov qword [rbp - 0x69], rbx
cmovae rax, qword [rbp - 0x79]
mov byte [rax + rbx], 0
xor r12d, r12d
jmp 0x140012656
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x1400126be
and qword [rbp - 0x51], 0
and qword [rbp - 0x49], 0
and qword [rbp - 0x41], 0
lea rcx, [rbp - 0x51]
mov edx, eax
call fcn.140011fd8
mov rbx, qword [rbp - 0x51]
mov r8d, dword [rsp + 0x34]
lea r9, [rsp + 0x38]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test eax, eax
je 0x1400126b1
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400126b1
lea rcx, [rbp - 0x79]
mov r8d, eax
mov rdx, rbx
add r12d, eax
call fcn.140003058
test rbx, rbx
je 0x140012656
mov rcx, rbx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
lea rdx, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov edi, eax
test eax, eax
jne 0x1400125e5
xor sil, sil
cmp qword [rbp - 0x61], 0x10
jb 0x140012687
mov rcx, qword [rbp - 0x79]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
mov al, sil
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140013960
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rbx, rbx
je 0x1400126be
mov rcx, rbx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
test edi, edi
je 0x140012674
cmp byte [rsp + 0x30], 0
je 0x1400126ce
cmp r12d, r13d
jne 0x140012674
test r14, r14
je 0x140012677
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x51]
call fcn.140012280
mov rcx, r14
mov rdx, rax
call fcn.14000b8dc
cmp qword [rbp - 0x39], 8
jb 0x140012677
mov rcx, qword [rbp - 0x51]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x140012677
Function at 0x140013f63
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001b238]
jne 0x14001397a
rol rcx, 0x10
test cx, 0xffff
jne 0x140013976
repz ret
ror rcx, 0x10
jmp 0x140013ebc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001b450]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001b548]
mov qword [rsp + 0x58], rax
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 0x140013f41
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, [0x14001b450]
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 0x140013f63
mov rax, qword [rsp + 0x88]
mov qword [0x14001b548], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001b4e8], rax
mov rax, qword [0x14001b548]
mov qword [0x14001b3c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001b4d0], rax
mov dword [0x14001b3b0], 0xc0000409
mov dword [0x14001b3b4], 1
mov rax, qword [0x14001b238]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001b240]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001b448], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140016ad8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001b448], 0
jne 0x140013fea
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
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 0x140001008
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r9d, 2
mov esi, edx
mov ebx, r8d
mov byte [rcx], 0
mov rdi, rcx
lea r8, [rsp + 0x30]
mov ecx, 0x400
lea edx, [r9 + 0xc]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
nop dword [rax + rax]
mov r9d, ebx
lea r8, [0x140015644]
mov ebx, 0x20
lea rcx, [rsp + 0x38]
mov edx, ebx
call qword [sym.imp.msvcrt.dll_sprintf_s]
nop dword [rax + rax]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatA]
nop dword [rax + rax]
test eax, eax
jne 0x1400010b9
mov edx, esi
lea r8, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strcpy_s]
nop dword [rax + rax]
mov eax, 0x80004005
jmp 0x1400010f9
movsx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x1400010d7
mov byte [rax], 0
mov rdx, rsi
lea r8, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strcpy_s]
nop dword [rax + rax]
test eax, eax
je 0x1400010f7
mov byte [rdi], 0
jmp 0x1400010b2
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400146a0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400032ec
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movzx edi, dx
lea eax, [rdi - 0x9c41]
cmp eax, 0xa
ja case.default.0x140003326
lea rdx, [0x140000000]
cdqe
mov r8d, dword [rdx + rax*4 + 0x34fc]
add r8, rdx
jmp r8
call qword [sym.imp.USER32.dll_GetMenu]
nop dword [rax + rax]
mov edx, dword [0x140025a98]
xor r8d, r8d
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_CheckMenuItem]
nop dword [rax + rax]
mov r8d, 8
mov dword [0x140025a98], edi
mov edx, edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_CheckMenuItem]
nop dword [rax + rax]
xor edx, edx
call fcn.140003180
jmp case.default.0x140003326
call qword [sym.imp.USER32.dll_GetMenu]
nop dword [rax + rax]
xor ebx, ebx
mov edx, 0x9c4a
cmp dword [0x140025a88], ebx
mov rcx, rax
sete bl
mov r8d, ebx
mov dword [0x140025a88], ebx
shl r8d, 3
jmp 0x140003364
xor ebx, ebx
lea r8d, [rbx + 1]
mov dword [0x140025f04], ebx
call fcn.140003fb4
jmp case.default.0x140003326
xor ebx, ebx
xor r8d, r8d
jmp 0x1400033b0
mov r8d, 1
mov dword [0x140025f04], 1
call fcn.140004060
jmp case.default.0x140003326
xor r8d, r8d
jmp 0x1400033cd
or rax, 0xffffffffffffffff
lea rbp, [0x1400259c0]
xor ebx, ebx
inc rax
cmp byte [rax + rbp], bl
jne 0x1400033f3
inc eax
mov ecx, 0x2042
mov edx, eax
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je case.default.0x140003326
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
nop dword [rax + rax]
test rax, rax
je case.default.0x140003326
mov r8, rbp
mov edx, esi
mov rcx, rax
call qword [sym.imp.msvcrt.dll_strcpy_s]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop dword [rax + rax]
mov rcx, qword [0x140025aa8]
call qword [sym.imp.USER32.dll_OpenClipboard]
nop dword [rax + rax]
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop dword [rax + rax]
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
nop dword [rax + rax]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop dword [rax + rax]
jmp case.default.0x140003326
xor ebx, ebx
lea r9, [0x140003680]
mov r8, rcx
mov qword [rsp + 0x20], rbx
mov rcx, qword [0x140025ac0]
lea rdx, [0x1400156c4]
call qword [sym.imp.USER32.dll_DialogBoxParamA]
nop dword [rax + rax]
jmp case.default.0x140003326
call fcn.140003f08
jmp case.default.0x140003326
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageA]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003d14
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 8], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov edi, 0x104
mov byte [0x140025e00], 0
mov r8d, edi
mov byte [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
nop dword [rax + rax]
lea rdx, [0x140015814]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
nop dword [rax + rax]
lea rdx, [0x140015814]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
nop dword [rax + rax]
lea rdx, [0x140015814]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
nop dword [rax + rax]
lea rdx, str.Documentation
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
nop dword [rax + rax]
lea rdx, str.DirectX9
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, edi
lea r8, str._sdirectx_sdk.chm
lea rcx, [rbp + 0x30]
call qword [sym.imp.msvcrt.dll_sprintf_s]
nop dword [rax + rax]
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop dword [rax + rax]
test eax, eax
jne 0x140003ec6
mov r8d, edi
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, edi
lea r8, str._sdirectx_sdk.chm
lea rcx, [rbp + 0x30]
call qword [sym.imp.msvcrt.dll_sprintf_s]
nop dword [rax + rax]
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop dword [rax + rax]
test eax, eax
jne 0x140003ec6
mov r8d, edi
lea rdx, [rsp + 0x20]
lea rcx, str.DXSDK_DIR
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, edi
lea r8, str._sDocumentationDirectX9directx_sdk.chm
lea rcx, [rbp + 0x30]
call qword [sym.imp.msvcrt.dll_sprintf_s]
nop dword [rax + rax]
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop dword [rax + rax]
test eax, eax
je 0x140003ee0
lea r8, [rbp + 0x30]
mov rdx, rdi
lea rcx, [0x140025e00]
call qword [sym.imp.msvcrt.dll_strcpy_s]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400146a0
mov rdi, qword [rsp + 0x260]
add rsp, 0x250
pop rbp
ret
Function at 0x140004ad4
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, qword [rsp + 0xf0]
mov r14d, ecx
mov rcx, rsi
mov ebx, r9d
mov rdi, r8
mov ebp, edx
call fcn.140004a24
test eax, eax
jns 0x140004b1d
mov eax, 0x80004005
jmp 0x140004bf7
test rdi, rdi
je 0x140004bf5
test ebx, ebx
je 0x140004bf5
cmp dword [0x140025f04], 0
je 0x140004bd9
xor edx, edx
mov eax, r14d
sub eax, dword [0x140025df8]
mov r8d, 0x4f
div dword [rsi + 0x18]
movsxd rbp, eax
cmp ebp, r8d
ja 0x140004bf5
lea edx, [r8 - 0x2f]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
cmp rbp, 0x50
jae 0x140004c16
mov rcx, qword [0x140025f10]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, ebp
mov byte [rsp + rbp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov eax, dword [rsi + 0x18]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, qword [0x140025f10]
mov rdx, rdi
imul eax, ebx
sub eax, dword [0x140025df8]
add eax, r14d
mov dword [0x140025df8], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
jmp 0x140004bf5
mov rcx, qword [rsi]
mov r9, rdi
mov r8d, ebp
mov dword [rsp + 0x20], ebx
mov edx, r14d
call qword [sym.imp.GDI32.dll_TextOutA]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400146a0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
int3

Function at 0x140004c24
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140025f04], 0
mov rbx, rcx
jne 0x140004ac3
test rcx, rcx
je 0x140004abc
cmp dword [rcx + 0x30], 0
jne 0x140004ac3
mov rcx, qword [rcx]
call qword [sym.imp.GDI32.dll_EndPage]
nop dword [rax + rax]
test eax, eax
js 0x140004abc
cmp dword [0x140025f18], 0
mov dword [rbx + 0x30], 1
je 0x140004ac3
mov eax, 0x80004005
jmp 0x140004ac5
xor eax, eax
add rsp, 0x20
pop rbx
ret
sub rsp, 0x38
cmp dword [0x140025f04], 0
je 0x140004c6b
mov rcx, qword [0x140025f10]
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], 0
lea rdx, [0x1400158ec]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
and dword [0x140025df8], 0
xor eax, eax
add rsp, 0x38
ret
test rcx, rcx
jne 0x140004c77
mov eax, 0x80004005
jmp 0x140004c65
inc dword [rcx + 0x20]
mov eax, dword [rcx + 0x20]
cmp eax, dword [rcx + 0x28]
jb 0x140004c63
add rsp, 0x38
jmp 0x140004a7c
Function at 0x14001427d
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14001429b
je 0x1400142a6
call 0x1400142f5
mov bl, 0xc7
lahf
pop rsi
jne 0x140014286
call 0x14001429e
mov ecx, edi
xor eax, 0x3c508b0b
invalid
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140014286
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x1400142d4
je 0x140014312
invalid
je 0x140014323
jne 0x140014286
lea rax, [0x1400141ac]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
mov ecx, 0xffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14000ff0d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x1400143c4
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14001441d
je 0x140014423
call 0x140014414
fild qword [rdi - 0x7c]
jmp 0x174f50b96
jne 0x1400143e6
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x1400143a6
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret
Function at 0x1400142a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
dec rax
cmp word [rax], 0x5a4d
jne 0x14001429b
je 0x1400142a6
call 0x1400142f5
mov bl, 0xc7
lahf
pop rsi
jne 0x140014286
call 0x14001429e
mov ecx, edi
xor eax, 0x3c508b0b
invalid
mov edx, dword [rax + 0x3c]
cmp edx, 0x400
jae 0x140014286
sub rax, 0x48b5
add rdx, rax
add rdx, 0x48b5
add rax, 0x48b5
cmp word [rdx], 0x4550
jne 0x1400142d4
je 0x140014312
invalid
je 0x140014323
jne 0x140014286
lea rax, [0x1400141ac]
sub rsp, 8
mov qword [rsp], rcx
mov rcx, 0xffffffffffff2810
mov ecx, 0xffff2810
add rcx, 0xd960
add rcx, rax
push rcx
xchg rcx, rax
add rsp, 8
mov rcx, qword [rsp - 8]
mov rcx, qword [rsp]
add rsp, 8
call rax
lodsd eax, dword [rsi]
push rbp
movabs byte [0x894808ec8348c391], al
sub al, 0x24
mov rbp, rsp
mov qword [rsp - 8], 0
ret
add byte [rax], al
add byte [rax], al
sub rsp, 8
pop rax
add rax, rcx
sub rsp, 0x1e0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
mov qword [rsp - 8], rsi
sub rsp, 8
add rsp, 8
mov rcx, qword [rsp - 8]
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x61be
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x4615
lea r9, [0x14000ff0d]
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x1400143c4
mov rcx, 0x3fe0
mov r9d, 0x15c13
mov r10d, 0x92819200
dec rcx
mov dl, byte [rax + rcx]
xor dl, r9b
mov byte [rax + rcx], dl
sub r10d, 0x26fe2
add r9d, r10d
add r9d, 0x26fe2
add r10d, 0x26fe2
rol r9d, 1
test rcx, rcx
jne 0x14001441d
je 0x140014423
call 0x140014414
fild qword [rdi - 0x7c]
jmp 0x174f50b96
jne 0x1400143e6
xor al, 1
add byte [rbp - 0x7f], dh
jne 0x1400143a6
add rax, 0x1ed4
mov rsp, rbp
pop rbp
ret