joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140119e90
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov edx, 0x134
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140119fdf
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140119fdf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.140119d70
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.1400d4470
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1402053e0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140119f4a
test al, 0x10
je 0x140119f4a
cmp dword [rsp + 0x30], 0
jle 0x140119f6b
mov rcx, qword [rsp + 0x28]
call fcn.1402bd0e0
jmp 0x140119f6b
cmp dword [rsp + 0x30], 0
jle 0x140119f5b
mov rcx, qword [rsp + 0x28]
call fcn.1402bd0e0
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor r9d, r9d
lea edx, [r9 + 2]
mov r8d, 0x40000000
lea rcx, [rsp + 0x48]
call fcn.14020c670
mov rdi, rax
test rax, rax
je 0x140119fab
mov rax, qword [rax]
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x48]
mov ebx, eax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
cmp ebx, ebp
sete bl
jmp 0x140119fad
xor bl, bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
cmp dword [rsp + 0x40], 0
jle 0x140119fc9
mov rcx, qword [rsp + 0x38]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x50], 0
jle 0x140119fda
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
movzx eax, bl
jmp 0x140119fe1
xor al, al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1401205b0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [rcx + 0xf0]
test rcx, rcx
je 0x1401206de
lea rax, [0x14034d1a0]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
call fcn.140151a20
test al, al
jne 0x14012060b
cmp dword [rsp + 0x40], 0
jle 0x140120604
mov rcx, qword [rsp + 0x38]
call fcn.1402bd0e0
xor al, al
jmp 0x1401206e0
cmp dword [rsp + 0x44], 0
jle 0x1401206cd
lea r8, str.HMP
lea rcx, [rsp + 0x38]
call fcn.140203770
lea rdx, [rsp + 0x38]
mov rcx, qword [rbx + 0xa8]
call fcn.140113180
mov eax, dword [0x140431ac0]
test al, 1
jne 0x140120670
or eax, 1
mov dword [0x140431ac0], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x140431ac8], rax
mov qword [0x140431ad0], 0xffffffff80000002
lea rcx, [0x1403050b0]
call fcn.1402be804
lea rdx, [0x140352cb8]
lea rcx, [0x140431ac8]
call fcn.1400ece40
mov rbx, rax
test rax, rax
je 0x1401206cd
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Registered
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x40], 0
jle 0x1401206de
mov rcx, qword [rsp + 0x38]
call fcn.1402bd0e0
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x1401366a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x20
cmp word [rdx + 0x10], 0x14
mov rsi, rdx
je 0x1401366ba
add rsp, 0x20
pop rsi
jmp fcn.1401ffaa0
mov rcx, qword [rdx]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, qword [rdx + 0x20]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, qword [rsi]
mov rbx, rax
xor eax, eax
lea r8, [rsp + 0x38]
lea r9d, [rax + 1]
mov rdx, rbx
mov qword [rsp + 0x38], rax
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_OffsetWindowOrgEx]
xor r9d, r9d
mov r8, rdi
lea edx, [r9 + 0x14]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov qword [rsi + 0x18], 1
add rsp, 0x20
pop rsi
ret

Function at 0x140136790
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rcx
lea rdx, [rsp + 0x30]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
mov qword [rsp + 0x268], r14
mov ebp, eax
lea rax, [rsp + 0x30]
or rdi, 0xffffffffffffffff
lea rax, [rax + rbx*2]
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401367e0
test rdi, rdi
je 0x14013687c
movzx ecx, word [rax]
call fcn.1402c1990
movzx ecx, ax
call fcn.140177840
mov r14, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140136879
mov rcx, qword [rsi + 8]
lea rax, [rsp + 0x20]
cmp rax, rcx
jae 0x14013685a
mov rdx, qword [rsi]
lea rax, [rsp + 0x20]
cmp rdx, rax
ja 0x14013685a
lea r14, [rsp + 0x20]
sub r14, rdx
sar r14, 3
cmp rcx, qword [rsi + 0x10]
jne 0x140136845
mov rcx, rsi
call fcn.1400bb350
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140136874
mov rax, qword [rsi]
mov rcx, qword [rax + r14*8]
mov qword [rdx], rcx
jmp 0x140136874
cmp rcx, qword [rsi + 0x10]
jne 0x140136868
mov rcx, rsi
call fcn.1400bb350
mov rax, qword [rsi + 8]
test rax, rax
je 0x140136874
mov qword [rax], r14
add qword [rsi + 8], 8
add rbx, rdi
cmp rbx, rbp
jae 0x14013689c
cmp word [rsp + rbx*2 + 0x30], 0
jne 0x140136893
inc rbx
cmp rbx, rbp
jb 0x140136881
jmp 0x14013689c
cmp rbx, rbp
jb 0x1401367d0
mov al, 1
mov r14, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401380b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x68
movzx eax, word [rdx + 0xb]
mov r12, rcx
mov rdi, rdx
imul eax, dword [rdx + 0x24]
mov ecx, eax
mov ebx, eax
call fcn.1402bd120
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov r13, rax
call fcn.1402c5760
xor ebp, ebp
xor r14b, r14b
movsd xmm0, qword [0x14041ed28]
mov ebx, ebp
movsd qword [r13], xmm0
mov ecx, dword [0x14041ed30]
mov dword [r13 + 8], ecx
movzx edx, word [rdi + 0xe]
mov dword [rsp + 0xb0], edx
cmp byte [rdi + 0x10], bl
jbe 0x14013821d
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r15
nop word [rax + rax]
mov eax, dword [rdi + 0x24]
mov rsi, qword [r12 + 8]
mov qword [rsp + 0x40], rbp
movzx r15d, word [rsi + 0x54]
imul eax, ebx
add eax, edx
xor edx, edx
cdqe
mov dword [rsp + 0xa8], ebp
add rax, qword [r12 + 0x10]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], rdx
imul rax, r15
imul r15d, dword [rdi + 0x24]
mov dword [rsp + 0x50], eax
shr rax, 0x20
mov dword [rsp + 0x54], eax
cmp qword [rsi + 0x70], rdx
jne 0x1401381b2
xor r9d, r9d
mov qword [rsp + 0x30], rbp
lea rcx, [rsi + 0x24]
lea r8d, [r9 + 3]
mov edx, 0x100003
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1401381b2
mov qword [rsi + 0x70], rax
mov rcx, qword [rsi + 0x70]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0xa8]
mov r8d, r15d
mov rdx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, word [rsi + 0x54]
xor edx, edx
mov r8d, eax
mov eax, dword [rsp + 0xa8]
div ecx
test r8d, r8d
je 0x14013820a
cmp eax, dword [rdi + 0x24]
jne 0x140138210
movzx eax, byte [rdi + 0x10]
mov edx, dword [rsp + 0xb0]
inc ebx
inc r14b
cmp ebx, eax
jl 0x140138130
jmp 0x140138210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x60]
mov rcx, r13
call fcn.1402bd0e0
cmp r14b, byte [rdi + 0x10]
sete al
add rsp, 0x68
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x14013afa0
Capabilities:
Enumerate process modules

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x2a8
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, qword [rsp + 0x300]
mov rsi, r8
mov r14, rdx
mov ebp, ecx
lea r8, [rsp + 0x38]
mov edx, 8
mov rcx, rbx
mov r15, r9
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14013b00b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._5d_OpenProcessToken_failed_with__d_r_n
mov edx, ebp
mov r8d, eax
call fcn.1402bd818
jmp 0x14013b0bd
mov rdx, qword [0x14041eee8]
mov rcx, rsi
call fcn.140200d00
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.14011a000
test al, al
je 0x14013b0bd
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x14013b08a
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x80]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x14013b08a
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.140200d00
mov dil, 1
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x50]
mov r9d, 0x30
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [0x140430cb0]
test eax, eax
jne 0x14013b0bd
mov edx, dword [rsp + 0x78]
mov dword [r14], edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402bcad0
add rsp, 0x2a8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14013e280
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov r9, qword [rdx]
lea r8, str.notepad.exe___s_
lea rcx, [rsp + 0xe0]
mov edx, 0x400
call fcn.1402c06b8
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.1402c5760
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14013e352
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.1402bcad0
add rsp, 0x8f8
ret
xor al, al
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.1402bcad0
add rsp, 0x8f8
ret

Function at 0x14013eaa0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rsi, rcx
call qword [rax]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x188
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x14013ebcf
movsxd rbp, eax
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
xor r9d, r9d
mov r8, rbp
mov rcx, rax
mov edx, 0x199
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14013ebcf
mov qword [rsp + 0x40], rbx
test rax, rax
jne 0x14013eb1f
mov ebx, eax
mov qword [rsp + 0x28], rax
lea rax, [0x14034d1a0]
mov qword [rsp + 0x20], rax
jmp 0x14013eb6b
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14013eb23
xor eax, eax
mov qword [rsp + 0x28], rax
test ebx, ebx
jne 0x14013eb46
lea rax, [0x14034d1a0]
mov qword [rsp + 0x20], rax
jmp 0x14013eb6b
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1402028a0
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
inc eax
movsxd r9, ebx
mov r8, rdi
movsxd rdx, eax
call fcn.1402c06dc
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.140203bb0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
cmp dword [rsp + 0x28], 0
jle 0x14013eb98
mov rcx, qword [rsp + 0x20]
call fcn.1402bd0e0
test bl, bl
mov rbx, qword [rsp + 0x40]
je 0x14013ebcf
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
xor r9d, r9d
mov r8, rbp
mov rcx, rax
mov edx, 0x182
call qword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x14013f770
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov byte [r11 + 0x18], r8b
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x80], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
movzx ebp, r8b
mov r13, rdx
mov rbx, rcx
lea rax, vtable.Core::ByteArray.0
mov qword [r11 - 0x58], rax
xor r15d, r15d
mov dword [r11 - 0x50], r15d
mov qword [r11 - 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14020c740
mov rsi, qword [rsp + 0x70]
test al, al
je 0x14013f98e
mov word [rsp + 0x30], 0xbbef
mov word [rsp + 0xd8], 0xfeff
mov rdi, rsi
mov ebx, dword [rsp + 0x68]
cmp ebx, 3
jl 0x14013f81a
movzx eax, word [rsi]
cmp ax, word [rsp + 0x30]
jne 0x14013f81a
cmp byte [rsi + 2], 0xbf
jne 0x14013f81a
mov r15d, 0xfde9
lea rdi, [rsi + 3]
add ebx, 0xfffffffd
jmp 0x14013f84f
cmp ebx, 2
jl 0x14013f849
movzx eax, word [rsi]
cmp ax, word [rsp + 0xd8]
jne 0x14013f835
lea rdi, [rsi + 2]
add ebx, 0xfffffffe
jmp 0x14013f83b
cmp byte [rsi + 1], 0
jne 0x14013f849
xor r12b, r12b
mov r14, rdi
movsxd rax, ebx
shr rax, 1
jmp 0x14013f8c4
mov r15d, 0x4e4
xor r14d, r14d
xor r12b, r12b
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, ebx
mov r8, rdi
xor edx, edx
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebp, eax
test eax, eax
jle 0x14013f8b5
inc ebp
movsxd rcx, ebp
add rcx, rcx
call fcn.1402bd120
mov r14, rax
test rax, rax
je 0x14013f8b5
mov r12b, 1
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rdi
xor edx, edx
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rcx, eax
xor r15d, r15d
mov word [r14 + rcx*2], r15w
jmp 0x14013f8bc
mov eax, dword [rsp + 0xd0]
movzx ebp, byte [rsp + 0xd0]
test eax, eax
jle 0x14013f974
mov rbx, r14
cdqe
lea rdi, [r14 + rax*2]
mov rdx, r14
lea rsi, [0x14034d1a0]
nop
movzx ecx, word [rbx]
add rbx, 2
cmp cx, 0xa
je 0x14013f8f2
cmp rbx, rdi
jne 0x14013f969
mov rax, rbx
sub rax, rdx
sar rax, 1
cmp cx, 0xa
jne 0x14013f904
dec rax
test rax, rax
je 0x14013f963
cmp word [rdx + rax*2 - 2], 0xd
jne 0x14013f914
dec rax
test rax, rax
je 0x14013f963
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140201010
movzx eax, byte [0x14043124a]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.1400eac70
nop
cmp dword [rsp + 0x48], 0
jle 0x14013f963
mov rcx, qword [rsp + 0x40]
call fcn.1402bd0e0
mov rdx, rbx
cmp rbx, rdi
jb 0x14013f8e0
mov rsi, qword [rsp + 0x70]
test r14, r14
je 0x14013f986
test r12b, r12b
je 0x14013f986
mov rcx, r14
call fcn.1402bd0e0
mov rbx, qword [rsp + 0xc0]
test bpl, bpl
je 0x14013f99d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test rsi, rsi
je 0x14013f9b2
mov r8, rsi
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401428f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rdi, [r8 + 7]
and rdi, 0xfffffffffffffff8
mov r8, rdi
call fcn.140142990
mov rbx, rax
test rax, rax
jne 0x14014291d
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9d, dword [rax + 8]
mov qword [rsp + 0x30], rsi
mov rsi, qword [rax + 0x10]
add rsi, qword [rax]
mov r8d, 0x1000
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140142960
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x40]
mov rdx, rdi
add r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140142972
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
add qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401440e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rsi
mov rbx, rcx
lea rsi, [0x1404310f0]
mov qword [rsp + 0x60], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp byte [0x140430b9a], 0
jne 0x140144125
mov ebx, 2
jmp 0x1401441e0
mov rcx, rbx
call fcn.140144200
mov rdi, rax
test rax, rax
jne 0x14014413d
lea ebx, [rax + 4]
jmp 0x1401441e0
cmp byte [rax + 0x28], 0
jne 0x14014414d
mov ebx, 6
jmp 0x1401441e0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xor ebx, ebx
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x28]
call fcn.140144b70
lea r8, [rdi + 0x48]
lea rdx, [rdi + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140144cc0
nop
lea r9, [rsp + 0x58]
lea edx, [rbx + 5]
lea r8d, [rbx + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401441a4
lea rcx, [rsp + 0x28]
call fcn.140144af0
mov ebx, 0xa
jmp 0x1401441e0
mov r8, qword [rdi + 0x20]
mov r9, qword [rdi]
mov eax, dword [r8]
mov dword [r9], eax
movzx eax, byte [r8 + 4]
mov byte [r9 + 4], al
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x58]
mov edx, 5
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rsp + 0x28]
call fcn.140144af0
mov byte [rdi + 0x28], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140144af0
Capabilities:
Resume thread

Disassembly:
push rsi
sub rsp, 0x20
mov qword [rsp + 0x38], rdi
mov rdi, qword [rcx]
mov rsi, rcx
cmp rdi, qword [rcx + 8]
je 0x140144b42
mov qword [rsp + 0x30], rbx
nop dword [rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
cmp rdi, qword [rsi + 8]
jne 0x140144b10
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsi]
mov rdi, qword [rsp + 0x38]
test rcx, rcx
je 0x140144b61
call fcn.14021ae20
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
add rsp, 0x20
pop rsi
ret
Function at 0x140144b70
Capabilities:
Enumerate threads

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x140144c8a
mov dword [rsp + 0x30], 0x1c
xor eax, eax
mov qword [rsp + 0x34], rax
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140144c8a
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x3c], eax
jne 0x140144c74
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x38]
cmp ecx, eax
je 0x140144c74
mov rax, qword [rdi + 8]
lea rdx, [rsp + 0x38]
cmp rdx, rax
jae 0x140144c52
mov rdx, qword [rdi]
lea r8, [rsp + 0x38]
cmp rdx, r8
ja 0x140144c52
lea rsi, [rsp + 0x38]
sub rsi, rdx
sar rsi, 2
cmp rax, qword [rdi + 0x10]
jne 0x140144c3f
mov rcx, rdi
call fcn.1400bb0b0
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140144c6f
mov eax, dword [rax + rsi*4]
mov dword [rcx], eax
jmp 0x140144c6f
cmp rax, qword [rdi + 0x10]
jne 0x140144c64
mov rcx, rdi
call fcn.1400bb0b0
mov ecx, dword [rsp + 0x38]
mov rax, qword [rdi + 8]
test rax, rax
je 0x140144c6f
mov dword [rax], ecx
add qword [rdi + 8], 4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140144bf0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140144cc0
Capabilities:
Suspend thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push r14
push r15
sub rsp, 0x500
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rbx, qword [rcx]
mov r15, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, qword [rcx + 8]
je 0x140144de2
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rdi
xor ebp, ebp
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rcx, [rsp + 0x28]
xor edx, edx
mov r8d, 0x4c8
mov qword [rsp + 0x20], rbp
call fcn.1402c5760
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140144dc9
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rbp
sub rdx, rax
sar rdx, 3
test rdx, rdx
je 0x140144da2
mov r8, qword [rsp + 0x118]
nop dword [rax]
cmp r8, qword [rax]
je 0x140144d93
inc rcx
add rax, 8
cmp rcx, rdx
jb 0x140144d80
jmp 0x140144da2
mov rax, qword [r15]
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x118], rcx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
cmp rbx, qword [r14 + 8]
jne 0x140144d10
jmp 0x140144dd2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x520]
mov rdi, qword [rsp + 0x528]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0x530]
add rsp, 0x500
pop r15
pop r14
pop rsi
ret
Function at 0x140145a20
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x5a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rsp + 0x590], rax
mov rsi, rcx
xor ebx, ebx
movsd xmm0, qword [0x14034c070]
movsd qword [rsp + 0x58], xmm0
mov eax, dword [0x14034c078]
mov dword [rsp + 0x60], eax
movzx eax, word [0x14034c07c]
mov word [rsp + 0x64], ax
mov edx, 0x104
lea rcx, [r11 - 0x438]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [rsp + 0x170]
mov word [rsp + 0x60], ax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100081
lea r8d, [rbx + 3]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140145b5c
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x560000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140145b53
cmp dword [rsp + 0x40], 0x20
jb 0x140145b53
mov r9d, dword [rsp + 0x78]
lea r8, str.DosDevicesPhysicalDrive_d
mov edx, 0x104
lea rcx, [rsp + 0x380]
call fcn.1402c06b8
mov ecx, 0x2a8
call fcn.1402bcb4c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140145b53
mov r8, rsi
lea rdx, [rsp + 0x380]
mov rcx, rax
call fcn.140145730
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.1402bcad0
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret