joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7eea915e0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
cmp dword [rbp + 0x10], 0
jne 0x7ff7eea915fb
mov ecx, 0
call sub.msvcrt.dll_exit
mov r8d, dword [rbp + 0x10]
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x7ff7eea91627
mov ecx, 0
call sub.msvcrt.dll_exit
mov rax, qword [rbp - 8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x47e5a
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x7ff7eea91665
mov ecx, 0
call sub.msvcrt.dll_exit
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9d, 0x23f2d
lea r8, [0x7ff7eea93020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
jne 0x7ff7eea9169d
mov ecx, 0
call sub.msvcrt.dll_exit
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x50
pop rbp
ret

Function at 0x7ff7eea919c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.7ff7eea92880
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.7ff7eea92880
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x7ff7eea91a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x7ff7eeaba0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x7ff7eea91be0
mov rax, qword [0x7ff7eeaba0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x7ff7eea91a7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x7ff7eea91b07
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x7ff7eea91a60
mov rcx, r12
call fcn.7ff7eea924e0
mov rbp, rax
test rax, rax
je 0x7ff7eea91c3d
mov rax, qword [0x7ff7eeaba0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.7ff7eea92610
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x7ff7eeaba0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x7ff7eea91c22
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x7ff7eea91b00
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x7ff7eea91b90
add dword [0x7ff7eeaba0a4], 1
cmp ebx, 8
jae 0x7ff7eea91b38
test bl, 4
jne 0x7ff7eea91bf0
test ebx, ebx
je 0x7ff7eea91b29
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x7ff7eea91c10
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x7ff7eea91b29
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x7ff7eea91b6a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x7ff7eeaba0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x7ff7eea91b00
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.7ff7eea919c0
xor edi, edi
jmp 0x7ff7eea91a87
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x7ff7eea91b29
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x7ff7eea91b29
mov rax, qword [0x7ff7eeaba0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.7ff7eea919c0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.7ff7eea919c0
nop
nop dword [rax]
Function at 0x7ff7eea92150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x7ff7eeaba100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x7ff7eeaba0e0]
test rbx, rbx
je 0x7ff7eea921a4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x7ff7eea9219b
test r12, r12
je 0x7ff7eea9219b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x7ff7eea92180
lea rcx, [0x7ff7eeaba100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x7ff7eea924e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x7ff7eeab7340]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x7ff7eea92559
mov rcx, r10
call fcn.7ff7eea923b0
test eax, eax
je 0x7ff7eea92559
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x7ff7eea92556
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x7ff7eea9254d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x7ff7eea92559
add r8, 0x28
cmp r8, r9
jne 0x7ff7eea92538
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x413c10
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x0046aea0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x0046af98]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x413c91
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x0046af98]
jmp 0x413cad
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x0046af98], r11
mov qword [0x0046af38], rax
mov rax, qword [0x00469048]
mov qword [0x0046ae10], r11
mov qword [0x0046af20], rdi
mov dword [0x0046ae00], 0xc0000409
mov dword [0x0046ae04], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x00469040]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00452858]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x00469048]
jne 0x4507a9
rol rcx, 0x10
test cx, 0xffff
jne 0x4507a5
ret
ror rcx, 0x10
jmp 0x413c10
Function at 0x414010
Capabilities:
Get file size

Disassembly:
mov r11, rsp
sub rsp, 0x1b8
mov rax, qword [0x00469048]
mov qword [rsp + 0x190], rax
mov rax, qword [0x00452878]
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rbp, rcx
lea rcx, [rsp + 0x60]
mov qword [r11 + 0x20], rsi
mov qword [rcx], rax
mov rax, qword [str.z5p6i7ea8p9n0]
mov qword [r11 - 8], rdi
mov qword [rcx + 8], rax
mov eax, dword [0x00452888]
mov edx, 0x16
mov dword [rcx + 0x10], eax
movzx eax, word [0x0045288c]
mov qword [r11 - 0x10], r12
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x60]
call fcn.0040b240
lea rdx, [rsp + 0x80]
mov r8d, 0x104
mov esi, dword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r12d, r12d
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 3]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call fcn.0041f750
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x1c8]
sub edi, dword [rax + 0x10]
lea rax, [0x00451660]
mov qword [rsp + 0x48], r12
sub edi, esi
mov rsi, qword [rsp + 0x1d8]
mov dword [rsp + 0x50], r12d
sub edi, 0x10
test rcx, rcx
mov dword [rsp + 0x58], r12d
mov r12, qword [rsp + 0x1a8]
mov dword [rbp + 0xa8], edi
mov rdi, qword [rsp + 0x1b0]
mov rbp, qword [rsp + 0x1d0]
mov qword [rsp + 0x40], rax
je 0x41414b
call fcn.004289f0
mov rcx, qword [rsp + 0x190]
call fcn.00450790
add rsp, 0x1b8
ret
Function at 0x41f520
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
sub rsp, 0x218
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
mov qword [r11 - 0x10], r13
mov rax, qword [0x00469048]
mov qword [rsp + 0x1f0], rax
mov r13d, ecx
lea rcx, [r11 - 0x168]
call fcn.0041f750
add r13d, dword [rax + 0x10]
lea rax, [0x00451660]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb8]
xor r12d, r12d
mov qword [rsp + 0xb8], r12
mov dword [rsp + 0xc0], r12d
mov dword [rsp + 0xc8], r12d
test rcx, rcx
je 0x41f5a9
call fcn.004289f0
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
sub ebx, r13d
sub ebx, 0x10
lea rcx, [rsp + 0x50]
call fcn.0043b880
nop
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.0043b8e0
movsxd rbx, ebx
lea rdx, [rbx + rdi + 0x10]
mov r8d, r13d
lea rcx, [rsp + 0x50]
call fcn.0043b8e0
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.0043b9b0
lea r11, [rsp + 0xb0]
mov rax, qword [rbx + rdi]
mov qword [r11], rax
mov rax, qword [rbx + rdi + 8]
mov qword [r11 + 8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xb0]
lea rax, [rsp + 0xd0]
mov rcx, qword [r11]
cmp rcx, qword [rax]
jne 0x41f6d5
mov rcx, qword [r11 + 8]
cmp rcx, qword [rax + 8]
je 0x41f6dd
sbb eax, eax
sbb eax, 0xffffffff
mov r12d, eax
test r12d, r12d
jne 0x41f6e9
lea eax, [r12 + 1]
jmp 0x41f6eb
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
call fcn.00450790
mov rbx, qword [rsp + 0x220]
mov rbp, qword [rsp + 0x228]
mov rsi, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x238]
mov r12, qword [rsp + 0x210]
mov r13, qword [rsp + 0x208]
add rsp, 0x218
ret
Function at 0x424120
Capabilities:
Check os version

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x00469048]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x108], rbx
mov rbx, rcx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x424166
cmp dword [rsp + 0x50], 2
jne 0x424166
cmp dword [rsp + 0x44], 6
jae 0x424178
test rbx, rbx
je 0x424171
mov dword [rbx], 1
xor eax, eax
jmp 0x424212
mov qword [rsp + 0x110], rsi
xor esi, esi
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x38], rsi
mov edi, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rsi + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x424200
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9d, [rsi + 4]
lea r8, [rsp + 0x30]
lea edx, [rsi + 0x14]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4241f5
mov ecx, dword [rsp + 0x30]
mov edi, esi
test ecx, ecx
sete dil
test rbx, rbx
je 0x4241f5
test ecx, ecx
setne sil
mov dword [rbx], esi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x110]
mov eax, edi
mov rdi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xe0]
call fcn.00450790
add rsp, 0xf8
ret

Function at 0x424740
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov eax, dword [0x0046b498]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
test al, 1
mov qword [rsp + 0x68], rdi
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x42478a
or eax, 1
mov dword [0x0046b498], eax
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov rdx, rax
mov qword [0x0046b490], rax
mov eax, dword [0x0046b498]
jmp 0x424791
mov rdx, qword [0x0046b490]
test al, 2
jne 0x4247c4
or eax, 2
lea r9, [0x004520e8]
lea r8, [0x00453304]
mov dword [0x0046b498], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x2f0]
mov r8, rax
mov qword [0x0046b488], rax
jmp 0x4247cb
mov r8, qword [0x0046b488]
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x328]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov rcx, rax
mov byte [rsp + 0x30], sil
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x4282e0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x428317
mov eax, 0xff
jmp 0x428549
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x428348
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x428549
mov eax, dword [rbx + 0x10]
mov dword [0x0046b4ec], eax
mov eax, dword [rbx + 4]
mov dword [0x0046b4f8], eax
mov eax, dword [rbx + 8]
mov dword [0x0046b4fc], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x0046b4f0], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x0046b4ec], 2
je 0x428396
bts dword [0x0046b4f0], 0xf
mov eax, dword [0x0046b4f8]
shl eax, 8
add eax, dword [0x0046b4fc]
mov dword [0x0046b4f4], eax
cmp word [0x00400000], 0x5a4d
je 0x4283be
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42843a
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x4283df
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42843a
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x42841d
cmp ecx, 0x20b
je 0x4283fb
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42843a
cmp dword [rax + 0x84], 0xe
ja 0x42840c
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42843a
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x40], ebx
jmp 0x42843a
cmp dword [rax + 0x74], 0xe
ja 0x42842b
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x42843a
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x40], ebx
mov ecx, 1
call fcn.0042ec80
test eax, eax
jne 0x42846a
cmp dword [0x0046b4b8], 2
je 0x428456
call fcn.0042da50
mov ecx, 0x1c
call fcn.0042d820
mov ecx, 0xff
call fcn.0042aba0
call fcn.0042eb00
test eax, eax
jne 0x428496
cmp dword [0x0046b4b8], 2
je 0x428481
call fcn.0042da50
mov ecx, 0x10
call fcn.0042d820
mov ecx, 0xff
call fcn.0042aba0
nop
call fcn.0042e4b0
test eax, eax
jns 0x4284a9
mov ecx, 0x1b
call fcn.004282b0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x0046d2c8], rax
call fcn.0042e2c0
mov qword [0x0046b4a8], rax
call fcn.0042e1c0
test eax, eax
jns 0x4284d5
mov ecx, 8
call fcn.004282b0
call fcn.0042de60
test eax, eax
jns 0x4284e8
mov ecx, 9
call fcn.004282b0
call fcn.0042ac50
test eax, eax
je 0x4284f8
mov ecx, eax
call fcn.004282b0
mov r8, qword [0x0046b518]
mov qword [0x0046b520], r8
mov rdx, qword [0x0046b508]
mov ecx, dword [0x0046b500]
call fcn.00412150
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x428529
mov ecx, eax
call fcn.0042adf0
call fcn.0042ae10
jmp 0x428547
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x42a860
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x40], r12
xor ebx, ebx
test r8, r8
mov qword [rsp + 0x38], r13
mov rbp, r9
mov rsi, r8
mov r13, rcx
mov r12d, edx
jne 0x42a8a2
call fcn.00432110
mov dword [rax], 0x16
xor eax, eax
jmp 0x42a940
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x48], rdi
call fcn.004333f0
test rax, rax
mov rdi, rax
je 0x42a926
mov rcx, rax
call fcn.0042e7d0
mov rcx, qword [rsp + 0x98]
mov eax, dword [rsp + 0x90]
test rcx, rcx
test ecx, ecx
lea r8, [rsp + 0x80]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x0042a780]
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x42a93b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.004289f0
test ebx, ebx
je 0x42a939
mov ecx, ebx
call fcn.00432170
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x42cea0
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
xor ebx, ebx
test rcx, rcx
mov qword [rsp + 0x30], r12
mov rbp, r8
mov rsi, rcx
mov r12d, edx
jne 0x42cedc
call fcn.00432110
mov dword [rax], 0x16
lea rax, [rsi - 1]
jmp 0x42cf80
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x58], rdi
call fcn.004333f0
test rax, rax
mov rdi, rax
je 0x42cf5c
mov rcx, rax
call fcn.0042e7d0
lea r8, [0x0042cdd0]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x42cf46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x42cf5c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x42cf78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.004289f0
test ebx, ebx
je 0x42cf6f
mov ecx, ebx
call fcn.00432170
mov rax, 0xffffffffffffffff
jmp 0x42cf7b
mov rax, rbx
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x42d820
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], r12
lea r12, [0x004696c0]
mov rax, r12
xor ebx, ebx
nop
nop
cmp ecx, dword [rax]
je 0x42d84f
inc ebx
add rax, 0x10
cmp ebx, 0x13
jb 0x42d840
cmp ebx, 0x13
je 0x42da39
mov eax, dword [0x0046b4b8]
mov qword [rsp + 0x68], rdi
cmp eax, 1
je 0x42d9ee
test eax, eax
jne 0x42d87d
cmp dword [0x00469080], 1
je 0x42d9ee
cmp ecx, 0xfc
je 0x42da34
mov qword [rsp + 0x58], rbp
lea rbp, [0x0046b570]
mov qword [rsp + 0x60], rsi
lea rsi, [0x00400000]
lea rdx, [0x0046b58a]
mov r8d, 0x104
mov rax, qword [rsi + 0x53c98]
xor ecx, ecx
mov qword [rbp], rax
mov rax, qword [rsi + 0x53ca0]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 0x53ca8]
mov qword [rbp + 0x10], rax
movzx eax, word [rsi + 0x53cb0]
mov word [rbp + 0x18], ax
mov byte [0x0046b68e], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42d930
mov rax, qword [rsi + 0x53c80]
mov qword [rsi + 0x6b58a], rax
mov rax, qword [rsi + 0x53c88]
mov qword [rsi + 0x6b592], rax
mov eax, dword [rsi + 0x53c90]
mov dword [rsi + 0x6b59a], eax
movzx eax, word [rsi + 0x53c94]
mov word [rsi + 0x6b59e], ax
movzx eax, byte [rsi + 0x53c96]
mov byte [rsi + 0x6b5a0], al
mov rsi, qword [rsp + 0x60]
xor eax, eax
lea rdi, [0x0046b58a]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x42d965
lea rcx, [rcx + rbp - 0x22]
lea r8d, [rax + 3]
lea rdx, [0x00453c7c]
call fcn.0042c5c0
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x00453c78]
movsxd rdx, ebx
mov word [rdi - 1], ax
movzx eax, byte [0x00453c7a]
add rdx, rdx
mov r8, qword [r12 + rdx*8 + 8]
mov byte [rdi + 1], al
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
nop
nop
movzx eax, byte [r8 + rdx]
inc rdx
test al, al
mov byte [rdi + rdx - 2], al
jne 0x42d9b0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.00436790
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x42da34
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x30]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [r12 + rcx*8 + 8]
mov rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret