joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140115240
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov rsi, rcx
xor r14b, r14b
call fcn.1400ff8a0
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140115442
mov eax, dword [0x140347f48]
movsd xmm0, qword [0x140347f40]
lea rcx, [rbp + 0x2b0]
mov dword [rbp + 0x158], eax
movzx eax, word [0x140347f4c]
mov edx, 0x104
movsd qword [rbp + 0x150], xmm0
mov word [rbp + 0x15c], ax
xor eax, eax
mov qword [rsp + 0x5f8], r15
mov qword [rbp + 0x162], rax
mov qword [rbp + 0x16a], rax
mov qword [rbp + 0x172], rax
mov qword [rbp + 0x17a], rax
mov qword [rbp + 0x182], rax
mov qword [rbp + 0x18a], rax
mov qword [rbp + 0x192], rax
mov qword [rbp + 0x19a], rax
mov qword [rbp + 0x1a2], rax
mov dword [rbp + 0x1aa], eax
mov word [rbp + 0x1ae], ax
mov word [rbp + 0x160], bx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [rbp + 0x2b0]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
lea rcx, [rbp + 0x150]
xor r9d, r9d
mov edx, 0x100081
mov dword [rsp + 0x28], ebx
mov word [rbp + 0x158], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140115431
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1b0]
xor r8d, r8d
mov edx, 0x560000
mov rcx, r15
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140115428
cmp dword [rsp + 0x44], 0x20
jb 0x140115428
mov r9d, dword [rbp + 0x1b8]
lea r8, str.DosDevicesPhysicalDrive_d
lea edx, [rbx + 0x28]
lea rcx, [rbp + 0x160]
call fcn.1402bd1f8
lea r8, [rbp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0xff
call fcn.1402b96f8
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, 0x1fe
mov edx, 0x22e04c
mov rcx, rdi
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140115428
cmp byte [rsp + 0x40], bl
mov r14b, 1
setne al
mov byte [rsi], al
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x5f8]
cmp byte [rsi], bl
movzx eax, r14b
setne bl
mov dword [0x140419c1c], ebx
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140115580
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1401156a3
mov qword [rsp + 0x38], rsi
lea edx, [rsi + 0xe]
lea rcx, [rsp + 0x30]
call fcn.1401ff260
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r9d, [rsi + 0xe]
lea r8, [0x1403528f0]
mov rcx, qword [rsp + 0x30]
call fcn.1402bd21c
lea edx, [rsi + 0xe]
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140115616
mov qword [rsp + 0x28], rsi
test ebx, ebx
jne 0x140115637
lea rax, [0x140348ca0]
mov qword [rsp + 0x20], rax
jmp 0x14011565e
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x28]
inc eax
movsxd rdx, eax
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140200570
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x28], 0
jle 0x140115690
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x38], 0
jle 0x1401156b2
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
jmp 0x1401156b2
mov rdx, qword [0x14041a158]
mov rcx, rdi
call fcn.1401fd200
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401156e0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
xor bl, bl
lea rcx, [rax - 0x30]
call fcn.140115580
nop
mov edx, 0x131
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140115856
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140115856
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r15d, 1
test rax, rax
je 0x1401157ee
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f01ff
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401157b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1401157ee
movzx ebx, r15b
jmp 0x1401157ee
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401157e5
movzx ebx, bl
cmp dword [rsp + 0x80], r14d
cmove ebx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test bl, bl
je 0x140115856
xor dil, dil
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140115854
lea rdx, [0x14041c480]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140115832
call rax
movzx edi, dil
test eax, eax
cmovns edi, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test dil, dil
je 0x140115854
movzx ecx, r15b
call fcn.1401bd230
test al, al
je 0x140115862
call fcn.1401109b0
jmp 0x140115862
xor bl, bl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp dword [rsp + 0x50], 0
jle 0x140115873
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
movzx eax, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140115890
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea rcx, [rsp + 0x20]
call fcn.140115580
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14011594d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140115949
lea rdx, [0x14041c468]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14011591f
call rax
movzx ebx, bl
mov ecx, 1
test eax, eax
cmovns ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
je 0x140115949
mov cl, 1
call fcn.1401bd230
test al, al
je 0x14011593c
call fcn.1401109b0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14011594d
xor bl, bl
jmp 0x14011594f
mov bl, 1
cmp dword [rsp + 0x28], 0
jle 0x140115960
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x140117850
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
movzx ebx, cl
call fcn.140117dd0
test al, al
je 0x1401179a5
lea rcx, [rsp + 0x48]
call fcn.140117c60
nop
xor edi, edi
test bl, bl
jne 0x140117902
mov edx, 0x134
xor ecx, ecx
lea r8d, [rdi + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140117902
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80
lea r8d, [rdi + 3]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140117902
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, ebp
jne 0x140117902
mov bl, 1
jmp 0x140117991
xor sil, sil
nop word [rax + rax]
lea r8, [0x140352b50]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x140117953
mov sil, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x140117910
mov edx, 0x133
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14011798f
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140117b60
test al, al
je 0x14011798f
test sil, sil
je 0x1401178fb
mov cl, 1
call fcn.1401179c0
movzx ebx, al
jmp 0x140117991
xor bl, bl
cmp dword [rsp + 0x50], 0
jle 0x1401179a2
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1401179c0
Capabilities:
Start service
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r15
sub rsp, 0x50
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor bl, bl
xor dil, dil
movzx ebp, cl
test cl, cl
je 0x1401179fd
call fcn.140117dd0
test al, al
jne 0x1401179fa
mov cl, 1
call fcn.140117e40
jmp 0x1401179fd
mov dil, 1
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x140117b39
lea rdx, [0x140352b28]
mov r8d, 0x30
mov rcx, rax
mov qword [rsp + 0x80], r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x140117b28
mov bl, 1
test bpl, bpl
je 0x140117a53
test dil, dil
je 0x140117ae3
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r12
xor r12d, r12d
mov esi, r12d
nop dword [rax]
nop word [rax + rax]
lea r8, [0x140352b50]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rdi, rax
test rax, rax
je 0x140117ab0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x140117a70
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rsi, qword [rsp + 0x70]
test eax, eax
jne 0x140117ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, bl
cmp eax, 0x426
cmovne ebx, r12d
mov r12, qword [rsp + 0x78]
test bpl, bpl
je 0x140117b1f
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140117b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140117b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__d_r_n
mov edx, eax
call fcn.1402ba358
xor bl, bl
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14, qword [rsp + 0x80]
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
Function at 0x140117b60
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rbx, rdx
mov rsi, rcx
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 rdi, rax
test rax, rax
je 0x140117c45
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1400d2ff0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140201da0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140117bf5
test al, 0x10
je 0x140117bf5
cmp dword [rsp + 0x30], 0
jle 0x140117c16
mov rcx, qword [rsp + 0x28]
call fcn.1402b9c20
jmp 0x140117c16
cmp dword [rsp + 0x30], 0
jle 0x140117c06
mov rcx, qword [rsp + 0x28]
call fcn.1402b9c20
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call fcn.140208920
movzx ebx, al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
cmp dword [rsp + 0x40], 0
jle 0x140117c42
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140118260
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rsp + 0x290], rax
movzx edi, cl
lea rcx, [rsp + 0x20]
call fcn.140118380
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140118341
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1401182f0
lea rdx, [0x140352d58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401182e7
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test dil, dil
je 0x140118341
xor edx, edx
lea rcx, [0x140110e10]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140118341
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140118341
mov cl, 1
call fcn.1401bd230
mov ecx, 0xd05
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1401109b0
nop
cmp dword [rsp + 0x28], 0
jle 0x140118352
mov rcx, qword [rsp + 0x20]
call fcn.1402b9c20
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret

Function at 0x1401183b0
Capabilities:
Get file size

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
movzx ebx, cl
call fcn.1401180c0
test al, al
jne 0x1401183dc
mov al, 1
jmp 0x140118482
lea rcx, [rsp + 0x48]
call fcn.140118380
nop
test bl, bl
jne 0x14011845f
mov edx, 0x134
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14011845f
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80
lea r8d, [rax + 3]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14011845f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jne 0x14011845f
mov bl, 1
jmp 0x14011846e
mov cl, 1
call fcn.140118260
call fcn.140118170
movzx ebx, al
cmp dword [rsp + 0x50], 0
jle 0x14011847f
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1401184a0
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 0x1401185ef
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 0x1401185ef
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.140118380
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.1400d2ff0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140201da0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14011855a
test al, 0x10
je 0x14011855a
cmp dword [rsp + 0x30], 0
jle 0x14011857b
mov rcx, qword [rsp + 0x28]
call fcn.1402b9c20
jmp 0x14011857b
cmp dword [rsp + 0x30], 0
jle 0x14011856b
mov rcx, qword [rsp + 0x28]
call fcn.1402b9c20
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.140208780
mov rdi, rax
test rax, rax
je 0x1401185bb
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 0x1401185bd
xor bl, bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
cmp dword [rsp + 0x40], 0
jle 0x1401185d9
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x50], 0
jle 0x1401185ea
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
movzx eax, bl
jmp 0x1401185f1
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 0x14011ebc0
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 0x14011ecee
lea rax, [0x140348ca0]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
call fcn.14014ffd0
test al, al
jne 0x14011ec1b
cmp dword [rsp + 0x40], 0
jle 0x14011ec14
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
xor al, al
jmp 0x14011ecf0
cmp dword [rsp + 0x44], 0
jle 0x14011ecdd
lea r8, str.HMP
lea rcx, [rsp + 0x38]
call fcn.140200130
lea rdx, [rsp + 0x38]
mov rcx, qword [rbx + 0xa8]
call fcn.140111790
mov eax, dword [0x14042c9e0]
test al, 1
jne 0x14011ec80
or eax, 1
mov dword [0x14042c9e0], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x14042c9e8], rax
mov qword [0x14042c9f0], 0xffffffff80000002
lea rcx, [0x1403017d0]
call fcn.1402bb344
lea rdx, [0x14034ee50]
lea rcx, [0x14042c9e8]
call fcn.1400eb8d0
mov rbx, rax
test rax, rax
je 0x14011ecdd
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 0x14011ecee
mov rcx, qword [rsp + 0x38]
call fcn.1402b9c20
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140134cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x20
cmp word [rdx + 0x10], 0x14
mov rsi, rdx
je 0x140134cca
add rsp, 0x20
pop rsi
jmp fcn.1401fc460
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 0x140134da0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140418a10]
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 0x140134df0
test rdi, rdi
je 0x140134e8c
movzx ecx, word [rax]
call fcn.1402be4d0
movzx ecx, ax
call fcn.140175c00
mov r14, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140134e89
mov rcx, qword [rsi + 8]
lea rax, [rsp + 0x20]
cmp rax, rcx
jae 0x140134e6a
mov rdx, qword [rsi]
lea rax, [rsp + 0x20]
cmp rdx, rax
ja 0x140134e6a
lea r14, [rsp + 0x20]
sub r14, rdx
sar r14, 3
cmp rcx, qword [rsi + 0x10]
jne 0x140134e55
mov rcx, rsi
call fcn.1400bb350
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140134e84
mov rax, qword [rsi]
mov rcx, qword [rax + r14*8]
mov qword [rdx], rcx
jmp 0x140134e84
cmp rcx, qword [rsi + 0x10]
jne 0x140134e78
mov rcx, rsi
call fcn.1400bb350
mov rax, qword [rsi + 8]
test rax, rax
je 0x140134e84
mov qword [rax], r14
add qword [rsi + 8], 8
add rbx, rdi
cmp rbx, rbp
jae 0x140134eac
cmp word [rsp + rbx*2 + 0x30], 0
jne 0x140134ea3
inc rbx
cmp rbx, rbp
jb 0x140134e91
jmp 0x140134eac
cmp rbx, rbp
jb 0x140134de0
mov al, 1
mov r14, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1402b9610
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret