joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019950
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov esi, edx
mov r15, qword [0x1800487d8]
mov eax, ecx
imul r12, rax, 0x38
mov rax, qword [r15 + r12]
movzx ecx, byte [r15 + r12 + 0x20]
xor edx, edx
test cl, 1
sete dl
lea rdx, [rdx + rdx*4]
lea rdi, [rax + rdx]
add rdi, 0xfffffffffffffffb
and ecx, 1
lea rbx, [rcx*2 + 5]
lea r9, [rsp + 0x24]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800199df
lea r14, [r15 + r12]
add r14, 0x20
test esi, esi
je 0x1800199e6
mov byte [rdi], 0xe9
mov eax, dword [r15 + r12 + 8]
sub eax, edi
add eax, 0xfffffffb
mov dword [rdi + 1], eax
test byte [r14], 1
je 0x180019a08
add r15, r12
mov rax, qword [r15]
mov word [rax], 0xf9eb
jmp 0x180019a08
mov eax, 0xa
jmp 0x180019a4e
test byte [r14], 1
lea rax, [r15 + r12 + 0x18]
jne 0x1800199fe
movzx ecx, byte [rax + 4]
mov byte [rdi + 4], cl
mov eax, dword [rax]
mov dword [rdi], eax
jmp 0x180019a08
mov ecx, dword [rax]
mov eax, dword [rax + 3]
mov dword [rdi + 3], eax
mov dword [rdi], ecx
mov r8d, dword [rsp + 0x24]
lea r9, [rsp + 0x24]
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [r14]
and sil, 1
lea ecx, [rsi + rsi]
and al, 0xf9
or al, cl
shl sil, 2
or sil, al
mov byte [r14], sil
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x180019a70
Capabilities:
Resume thread

Disassembly:
mov edx, 1
jmp 0x180019a70
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov esi, edx
mov rdi, rcx
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x1800487c8], ebx
je 0x180019abb
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
cmp r14, 0x20
setae cl
call r15
inc r14
xor eax, eax
lock cmpxchg dword [0x1800487c8], ebx
jne 0x180019aa0
cmp qword [0x1800487d0], 0
je 0x180019b07
test rdi, rdi
je 0x180019b11
mov edx, dword [0x1800487e4]
mov eax, 4
test rdx, rdx
je 0x180019bcf
mov rcx, qword [0x1800487d8]
add rcx, 0x20
neg rdx
xor ebx, ebx
nop
cmp qword [rcx - 0x20], rdi
je 0x180019b1d
add rcx, 0x38
dec rbx
cmp rdx, rbx
jne 0x180019af0
jmp 0x180019bcf
mov eax, 2
jmp 0x180019bcf
mov ecx, esi
call fcn.180018fd0
jmp 0x180019bcf
cmp ebx, 1
je 0x180019bcf
mov eax, dword [rcx]
shr eax, 1
and eax, 1
cmp eax, esi
jne 0x180019b3e
xor eax, eax
cmp esi, 1
adc eax, 5
jmp 0x180019bcf
neg rbx
lea rcx, [rsp + 0x28]
mov edx, ebx
mov r8d, 1
call fcn.1800195a0
test eax, eax
jne 0x180019bcf
mov ecx, ebx
mov edx, esi
call fcn.180019950
mov rsi, qword [rsp + 0x28]
test rsi, rsi
je 0x180019bcf
mov ebx, eax
mov r14d, dword [rsp + 0x34]
test r14, r14
je 0x180019bbb
xor r15d, r15d
mov r12, qword [sym.imp.KERNEL32.dll_OpenThread]
mov r13, qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180019b98
inc r15
cmp r14, r15
je 0x180019bbb
mov r8d, dword [rsi + r15*4]
mov ecx, 0x5a
xor edx, edx
call r12
test rax, rax
je 0x180019b90
mov rdi, rax
mov rcx, rax
call r13
mov rcx, rdi
call rbp
jmp 0x180019b90
mov rcx, qword [0x1800487d0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
xor ecx, ecx
xchg dword [0x1800487c8], ecx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18001c408
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 0x18001c442
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18001c447
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 0x18001c490
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180040ff0]
cmp byte [rcx + rax], 0
je 0x18001c490
dec r8
sub rdx, 1
jne 0x18001c476
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x1400290c0
Capabilities:
Get graphical window text

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140029134
lea rax, str.::IsWindow_m_hWnd_
mov qword [rsp + 0x28], rax
lea rax, [0x140175028]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3c7
lea rdx, [0x14017b840]
mov ecx, 2
call fcn.1400c1790
cmp eax, 1
jne 0x140029134
int3
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_GetWindowTextW]
add rsp, 0x30
pop rdi
ret

Function at 0x14002e390
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
mov rdi, rsp
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x170]
cmp qword [rsp + 0x170], 0
je 0x14002e3db
mov rax, qword [rsp + 0x170]
jmp 0x14002e56e
lea rcx, [rsp + 0x40]
call fcn.140007bf0
nop
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cdqe
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x14002e412
lea rdx, [0x1401820a0]
lea rcx, [rsp + 0x40]
call fcn.14006da80
lea rcx, [rsp + 0xb8]
call fcn.140059d00
nop
lea rcx, [rsp + 0x108]
call fcn.140059d00
nop
xor r8d, r8d
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x178]
call fcn.140049d80
mov qword [rsp + 0x158], rax
xor r8d, r8d
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x180]
call fcn.140049d80
mov rcx, qword [rsp + 0x158]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x188]
mov r8, rax
lea rdx, [0x1401820a8]
lea rcx, [rsp + 0x40]
call fcn.14006e690
mov rcx, qword [rsp + 0x190]
call fcn.14002e590
test rax, rax
jne 0x14002e4c4
lea rdx, [0x1401820dc]
lea rcx, [rsp + 0x40]
call fcn.14006da80
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0x40]
call fcn.14006da80
lea rcx, [rsp + 0x40]
call fcn.14006d090
mov qword [rsp + 0x148], rax
cmp qword [rsp + 0xa8], 0
je 0x14002e4f2
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
int3
mov r9d, SafeArrayGetLBound
lea r8, [0x1401820e8]
mov rdx, qword [rsp + 0x148]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
test eax, eax
jne 0x14002e530
mov r8d, 0x41
lea rdx, str.G:win_androidplugins_vprj_winclasslib_sys_baselibswin_basecpp_vol_assert.cpp
lea rcx, [0x1401821b8]
call fcn.1400f6ef0
xor eax, eax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x108]
call fcn.140007c70
nop
lea rcx, [rsp + 0xb8]
call fcn.140007c70
nop
lea rcx, [rsp + 0x40]
call fcn.140007ce0
mov rax, qword [rsp + 0x150]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140184280]
call fcn.1400a1e60
mov rax, rdi
add rsp, 0x160
pop rdi
ret
Function at 0x140035b90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, SafeArrayGetLBound
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp qword [rsp + 0x70], 0
je 0x140035c0d
cmp qword [rsp + 0x58], 0
je 0x140035c0d
cmp qword [rsp + 0x60], 0
jl 0x140035c0d
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1f8], 0
jne 0x140035c0d
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0xa0], 0
jne 0x140035c0d
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0xa8], 0
jne 0x140035c0d
mov qword [rsp + 0x20], 1
jmp 0x140035c16
mov qword [rsp + 0x20], 0
mov r9d, GetAltMonthNames
lea r8, [0x140187cb0]
lea rdx, str.pVolAppRuntimeClass___NULL__hInstance___NULL__npArgC___0__m_hInstance__NULL__m_pVolAppObject__NULL__m_blpComInitSucceeded__FALSE
mov rcx, qword [rsp + 0x20]
call fcn.14002e330
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x1f8], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x200], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x208], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x210], eax
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x140035c94
mov qword [rsp + 0x28], 1
jmp 0x140035c9d
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0xa8], rcx
xor ecx, ecx
call fcn.14004f630
mov rax, qword [rsp + 0x50]
movsd qword [rax + 0xb0], xmm0
mov rcx, qword [rsp + 0x70]
call fcn.140020ce0
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0xa0], rax
call fcn.140018f50
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0xa0]
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0xa0]
mov qword [rsp + 0x30], rdx
mov rcx, qword [rcx]
mov qword [rsp + 0x38], rcx
mov rdx, rax
mov rax, qword [rsp + 0x30]
mov rcx, rax
mov rax, qword [rsp + 0x38]
call qword [rax + 0x68]
test eax, eax
jne 0x140035d5c
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0xa0]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0xa0]
mov rax, qword [rax]
call qword [rax + 0x60]
mov r9d, 0x15d
lea r8, [0x140187db0]
lea rdx, [0x140187934]
xor ecx, ecx
call fcn.14002e330
mov ecx, 0xffffffff
call fcn.1400f7990
add rsp, 0x40
pop rdi
ret
Function at 0x140036370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov rdi, rsp
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
cmp dword [rsp + 0xb8], 0
jl 0x1400363bf
cmp dword [rsp + 0xb8], 4
jge 0x1400363bf
mov qword [rsp + 0x90], 1
jmp 0x1400363cb
mov qword [rsp + 0x90], 0
mov r9d, 0x244
lea r8, [0x1401882c0]
lea rdx, str.enImageType___0__enImageType____NUM_VOL_RES_IMAGE_TYPES
mov rcx, qword [rsp + 0x90]
call fcn.14002e330
cmp qword [rsp + 0xc0], 0
je 0x140036583
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xb0]
call qword [rax]
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0xb8], 0
je 0x14003642d
cmp dword [rsp + 0xb8], 3
jne 0x140036531
movzx eax, word [rsp + 0xc0]
mov r8d, 0xa
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14003652f
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400364ef
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400364e4
lea rcx, [rsp + 0x58]
call fcn.1400378b0
nop
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14002fad0
test rax, rax
je 0x1400364da
lea rcx, [rsp + 0x58]
call fcn.140031e70
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x58]
call fcn.14002f860
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rsp + 0x30], 0
je 0x14003652f
cmp dword [rsp + 0xb8], 3
jne 0x140036528
mov rcx, qword [rsp + 0x30]
call fcn.1400372a0
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, qword [rsp + 0x88]
jmp 0x140036585
mov rax, qword [rsp + 0x30]
jmp 0x140036585
jmp 0x140036583
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 1
je 0x140036555
cmp dword [rsp + 0x98], 2
je 0x14003656c
jmp 0x140036583
movzx eax, word [rsp + 0xc0]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x140036585
movzx eax, word [rsp + 0xc0]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x140036585
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14018b960]
call fcn.1400a1e60
mov rax, rdi
add rsp, 0xa0
pop rdi
ret
Function at 0x14004d060
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
cmp qword [rsp + 0x48], 0
jle 0x14004d096
mov qword [rsp + 0x20], 1
jmp 0x14004d09f
mov qword [rsp + 0x20], 0
mov r9d, 0x99b
lea r8, [0x1401986a0]
lea rdx, str.npBufLength___0
mov rcx, qword [rsp + 0x20]
call fcn.14002e330
mov rax, qword [rsp + 0x48]
shl rax, 1
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.140046cb0
mov r9d, 0x99c
lea r8, [0x140198710]
lea rdx, str.IsValidAddress___psBuf____npBufLength__sizeof__TCHAR____TRUE_
mov rcx, rax
call fcn.14002e330
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jbe 0x14004d112
mov qword [rsp + 0x28], 1
jmp 0x14004d11b
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x30
pop rdi
ret

Function at 0x14004d130
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, rsp
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
call fcn.140019950
mov r9d, 0x9ae
lea r8, [0x140198780]
lea rdx, str.IsValidString__szNewDir_
mov rcx, rax
call fcn.14002e330
mov rcx, qword [rsp + 0x30]
call fcn.14002e590
test rax, rax
je 0x14004d187
xor eax, eax
jmp 0x14004d194
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
add rsp, 0x20
pop rdi
ret

Function at 0x14004d6e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov rdi, rsp
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
call fcn.140019950
mov r9d, 0x712
lea r8, [0x140196fc0]
lea rdx, [0x140197018]
mov rcx, rax
call fcn.14002e330
mov rcx, qword [rsp + 0xc0]
call fcn.14002e590
test rax, rax
je 0x14004d743
xor eax, eax
jmp 0x14004d7aa
lea rcx, [rsp + 0x30]
call fcn.140007bf0
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
call fcn.14004d7d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004d77c
mov qword [rsp + 0xa0], 1
jmp 0x14004d788
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x30]
call fcn.140007ce0
mov rax, qword [rsp + 0x98]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14019d458]
call fcn.1400a1e60
mov rax, rdi
add rsp, 0xb0
pop rdi
ret
Function at 0x14004dda0
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
call fcn.14002e590
test rax, rax
jne 0x14004dde6
mov rcx, qword [rsp + 0x48]
call fcn.14002e590
test rax, rax
je 0x14004dded
xor eax, eax
jmp 0x14004dee4
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 1
je 0x14004de0c
cmp dword [rsp + 0x24], 2
je 0x14004de2f
cmp dword [rsp + 0x24], 3
je 0x14004de25
jmp 0x14004de4d
mov rcx, qword [rsp + 0x48]
call fcn.14004d6e0
test rax, rax
je 0x14004de25
mov eax, 1
jmp 0x14004dee4
mov dword [rsp + 0x20], 1
jmp 0x14004de95
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.14004dca0
test rax, rax
je 0x14004de4d
mov eax, 1
jmp 0x14004dee4
cmp dword [rsp + 0x50], 0
je 0x14004de66
cmp dword [rsp + 0x50], 2
je 0x14004de66
mov qword [rsp + 0x28], 0
jmp 0x14004de6f
mov qword [rsp + 0x28], 1
mov r9d, 0x6d1
lea r8, [0x140196de0]
lea rdx, str.enOverrideMode__FCOM_OVERRIDE__enOverrideMode__FCOM_FAST
mov rcx, qword [rsp + 0x28]
call fcn.14002e330
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1400f89b0
test eax, eax
jne 0x14004decd
mov rcx, qword [rsp + 0x40]
call fcn.14004d6e0
test rax, rax
jne 0x14004dec6
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14004dee4
mov eax, 1
jmp 0x14004dee4
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
add rsp, 0x30
pop rdi
ret
Function at 0x14004ef50
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rdi, rsp
mov ecx, 0x5c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
call fcn.140019950
mov r9d, 0x872
lea r8, [0x140197e40]
lea rdx, str.IsValidString__szCommandLine_
mov rcx, rax
call fcn.14002e330
mov rcx, qword [rsp + 0x180]
call fcn.14002e590
test rax, rax
je 0x14004efc0
xor eax, eax
jmp 0x14004f117
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400a4d70
mov dword [rsp + 0x60], 0x68
cmp qword [rsp + 0x190], 0
jl 0x14004f006
mov eax, dword [rsp + 0x9c]
or eax, 1
mov dword [rsp + 0x9c], eax
movzx eax, word [rsp + 0x190]
mov word [rsp + 0xa0], ax
lea rcx, [rsp + 0x118]
call fcn.140059d00
nop
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x118]
call fcn.14005b730
lea rcx, [rsp + 0x118]
call fcn.14000a040
lea rcx, [rsp + 0xe8]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14004f0a7
mov qword [rsp + 0x158], 0
lea rcx, [rsp + 0x118]
call fcn.140007c70
mov rax, qword [rsp + 0x158]
jmp 0x14004f117
cmp qword [rsp + 0x188], 0
je 0x14004f0c7
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14004f0da
mov edx, 0x1f4
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x160], 1
lea rcx, [rsp + 0x118]
call fcn.140007c70
mov rax, qword [rsp + 0x160]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14019da40]
call fcn.1400a1e60
mov rax, rdi
add rsp, 0x170
pop rdi
ret
Function at 0x14004f400
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rdi, rsp
mov ecx, 0x5c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x180]
call fcn.140019950
mov r9d, 0x8a6
lea r8, [0x140197fe0]
lea rdx, [0x140198038]
mov rcx, rax
call fcn.14002e330
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140007b90
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
mov r8, qword [rsp + 0x140]
lea rdx, str.__select___
lea rcx, [rsp + 0x88]
call fcn.140073680
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x150], rax
lea r8, [0x140195ad8]
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0xe0]
call fcn.140073540
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call fcn.14006d090
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, str.explorer.exe
lea rdx, [0x140198078]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rsp + 0xe0]
call fcn.140007ce0
nop
lea rcx, [rsp + 0x88]
call fcn.140007ce0
nop
lea rcx, [rsp + 0x30]
call fcn.140007ce0
add rsp, 0x170
pop rdi
ret

Function at 0x14004f970
Capabilities:
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov edi, eax
mov rcx, rsp
lea rdx, [0x14019dcc0]
call fcn.1400a1e60
mov eax, edi
add rsp, 0x70
pop rdi
ret