joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004754
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
cmp word [0x14000ed98], di
jne 0x1400047a9
cmp dword [0x14000ed84], edi
jne 0x14000479c
call fcn.14000570c
test eax, eax
je 0x14000489d
cmp word [0x14000ed98], di
jne 0x1400047a9
call fcn.140004604
test eax, eax
je 0x14000489d
call fcn.140004f68
test eax, eax
je 0x14000489d
call fcn.14000526c
test eax, eax
je 0x14000489d
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
lea r8, str.advapi32.dll
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14000897c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140004830
lea rdx, str.DecryptFileA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140004830
xor edx, edx
lea rcx, [0x14000f690]
call fcn.14000a010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
cmp dword [0x14000ed84], edi
jne 0x1400048da
cmp dword [0x14000fee0], edi
jne 0x1400048da
mov edx, 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x1400048c1
mov edx, 0x4f0
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
xor ecx, ecx
call fcn.140006228
call fcn.1400065d0
mov dword [0x14000f5c4], eax
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140008f50
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.140005b94
test eax, eax
je 0x14000489d
lea rcx, [0x14000f690]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x1400048f8
mov edx, 0x4bc
jmp 0x140004879
cmp dword [0x14000ed8c], edi
jne 0x140004978
lea rax, [0x14000f0c0]
mov ecx, 0x28
mov dword [rax], 1
lea rax, [rax + 0x20]
sub rcx, 1
jne 0x14000490c
test byte [0x14000ed98], 1
jne 0x140004994
test byte [0x14000fee4], 1
jne 0x140004994
mov eax, dword [0x14000e22c]
lea r9, [0x140004a00]
neg eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
sbb rdx, rdx
xor r8d, r8d
add rdx, 0x7d5
call fcn.1400064f0
test rax, rax
je 0x14000499d
lea rcx, [0x140006f20]
call fcn.140007ca8
test eax, eax
je 0x14000489d
mov dword [0x14000f5c4], edi
mov eax, dword [0x14000f0a8]
test al, 0x40
jne 0x1400049ac
test al, al
js 0x1400049ac
movzx ecx, word [0x14000fef8]
call fcn.140003550
jmp 0x1400049ae
call fcn.140004c30
test eax, eax
jne 0x14000495e
mov dword [0x14000f5c4], 0x8007042b
jmp 0x14000489d
mov eax, edi
mov dword [0x14000fefc], eax
mov eax, dword [0x14000ed84]
test eax, eax
jne 0x1400049d9
cmp dword [0x14000fee0], edi
jne 0x1400049d9
call fcn.1400072f0
test eax, eax
je 0x14000489d
mov eax, dword [0x14000ed84]
cmp word [0x14000ed98], di
jne 0x1400049eb
test eax, eax
jne 0x1400049eb
call fcn.140004e84
mov eax, 1
jmp 0x14000489f
Function at 0x140004c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor r8d, r8d
lea rcx, str.CABINET
xor edx, edx
call fcn.140005190
mov r8d, 0xa
mov dword [0x14000f5e8], eax
lea rdx, str.CABINET
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov qword [0x14000f5e0], rax
test rax, rax
je 0x140004e71
mov rcx, qword [0x14000e8a8]
test rcx, rcx
je 0x140004cf6
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
mov rcx, qword [0x14000e8a8]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
call fcn.140007f10
test eax, eax
jne 0x140004d09
mov edx, 0x4ba
jmp 0x140004dd4
lea rax, [0x14000f5ec]
mov qword [rsp + 0x40], rax
lea r9, [0x140008760]
mov dword [rsp + 0x38], 1
lea rax, [0x140008810]
mov qword [rsp + 0x30], rax
lea r8, [fcn.140008500]
lea rax, [fcn.140008250]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400084e0]
lea rax, [0x1400088a0]
lea rcx, [0x140008230]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140004dc8
lea rax, [0x14000f5e0]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x14000b760]
and qword [rsp + 0x28], 0
lea rax, [0x1400082c0]
lea rdx, str.MEMCAB
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDICopy]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140004df5
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
nop dword [rax + rax]
test eax, eax
jne 0x140004df5
mov edx, dword [0x14000f5ec]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000e8a8]
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
call fcn.140006228
xor ebx, ebx
mov rcx, qword [0x14000f5e0]
test rcx, rcx
je 0x140004e15
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
and qword [0x14000f5e0], 0
test ebx, ebx
jne 0x140004e3f
cmp dword [0x14000f67c], ebx
jne 0x140004e3f
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4f8
xor ecx, ecx
call fcn.140006228
test byte [0x14000ed98], 1
jne 0x140004e6f
test byte [0x14000fee4], 1
jne 0x140004e6f
mov rcx, qword [0x14000e8a8]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140005028
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor esi, esi
xor edi, edi
mov r14, rcx
mov rbx, rdx
sub r14, rdx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400036e8
inc esi
mov edx, 0x104
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400050a1
mov al, byte [r14 + rcx]
test al, al
je 0x1400050a1
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005082
test rdx, rdx
lea rax, [rcx - 1]
lea r8, [rsp + 0x20]
mov edx, 0x104
cmovne rax, rcx
mov rcx, rbx
mov byte [rax], dil
call fcn.14000897c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140005160
cmp esi, 0x190
jl 0x14000505f
mov r9, rbx
lea rdx, [0x14000ba0c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop dword [rax + rax]
test eax, eax
je 0x140005135
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008f50
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x1400050f0
mov dword [0x14000ed80], 1
mov edi, 1
jmp 0x140005135

Function at 0x140005190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov ebp, r8d
mov rdx, rcx
mov rdi, rcx
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ebx, eax
cmp eax, ebp
ja 0x140005249
test rsi, rsi
je 0x140005249
test eax, eax
je 0x140005261
mov r8d, 0xa
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140005261
mov r9d, ebx
mov edx, ebp
mov r8, rax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x14000524b
Function at 0x140005f24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x140005f3f
add edi, 0x14
mov ecx, 0x40
mov edx, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140005fa9
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4b5
xor ecx, ecx
call fcn.140006228
call fcn.1400065d0
mov dword [0x14000f5c4], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test edi, edi
je 0x140005ff1
cmp rbx, 0x7fffffff
ja 0x140005fee
mov edx, 0x7ffffffe
mov r8, rbp
sub rdx, rbx
mov rcx, rsi
sub r8, rsi
lea rax, [rdx + rbx]
test rax, rax
je 0x140005fe3
mov al, byte [r8 + rcx]
test al, al
je 0x140005fe3
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x140005fc7
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
lea r8, str.TMP4351_.TMP
mov edx, edi
mov rcx, rsi
call fcn.14000897c
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x140005f86
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140005f86
test al, 0x10
je 0x140005f86
and dword [0x14000f5c4], 0
mov eax, 1
jmp 0x140005f93

Function at 0x1400064f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [0x14000fef0]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
je 0x14000658b
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000658b
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x140006562
and qword [rsp + 0x20], rax
jmp 0x140006567
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
nop dword [rax + rax]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
jne 0x1400065af
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4fb
xor ecx, ecx
call fcn.140006228
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400065f8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rcx, str.kernelbase.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140006654
lea rdx, str.GetTempPath2A
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140006654
mov rdx, rdi
mov ecx, 0x104
call fcn.14000a010
mov edi, eax
jmp 0x14000666f
mov rdx, rdi
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
nop dword [rax + rax]
mov edi, eax
test rbx, rbx
je 0x14000667e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000f690]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1400066e8
mov al, byte [r9 + rcx]
test al, al
je 0x1400066e8
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400066c9
test r8, r8
lea rax, [rcx - 1]
lea r8, str.advpack.dll
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.14000897c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000673a
test al, 0x10
jne 0x14000673a
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop dword [rax + rax]
jmp 0x14000674d
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008f50
add rsp, 0x148
ret
Function at 0x1400070e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x170], rax
and dword [rsp + 0x50], 0
mov rbx, rcx
mov edi, 1
test rcx, rcx
jne 0x140007124
xor eax, eax
jmp 0x1400072c3
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rdx
mov rdx, rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
nop dword [rax + rax]
test eax, eax
je 0x140007256
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
cmp dword [0x14000ed88], 0
mov ebx, dword [rsp + 0x50]
jne 0x1400071d6
mov ecx, dword [0x14000fedc]
test dil, cl
je 0x1400071d6
test cl, 2
jne 0x1400071d6
mov eax, ebx
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, ebx
mov dword [0x14000fedc], ecx
test dword [0x14000fee4], 0x800
je 0x1400071ea
mov dword [0x14000f5c4], ebx
jmp 0x14000721f
call fcn.140002584
cmp eax, 2
je 0x140007215
mov eax, ebx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x140007207
test dil, bl
jne 0x140007215
test dword [0x14000fee4], 0x200
je 0x14000721f
jmp 0x1400071e2
mov dword [0x14000f5c4], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test dword [0x14000fee4], 0x400
je 0x1400072c1
cmp dword [rsp + 0x50], 0
jge 0x1400072c1
jmp 0x1400072bf
call fcn.1400065d0
mov dword [0x14000f5c4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x70]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
nop dword [rax + rax]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4c4
xor ecx, ecx
call fcn.140006228
xor edi, edi
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140008f50
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140007ca8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x140007d44
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140007d8e
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007d0e
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call fcn.14000a010
mov rcx, rbx
test eax, eax
je 0x140007d7e
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.1400036e8
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
jne 0x140007cda
jmp 0x140007d9a
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
jmp 0x140007d9a
mov dword [0x14000f5c4], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008f50
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400080ec
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
xor esi, esi
test eax, eax
js 0x14000815a
cmp al, 6
jb 0x14000815a
lea rcx, [0x14000b880]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x14000815a
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x14000815a
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call fcn.14000a010
mov rdx, rbx
mov dword [0x14000f5c4], esi
mov rcx, rdi
call fcn.140005854
test eax, eax
je 0x1400081f7
call fcn.140004754
mov ebx, eax
call fcn.140004434
test ebx, ebx
je 0x1400081f7
cmp byte [0x14000ed9a], sil
jne 0x1400081f7
mov ebx, dword [0x14000fedc]
test bl, 1
je 0x1400081f7
test bl, 2
jne 0x1400081a6
call fcn.140002584
cmp eax, 2
jne 0x1400081f7
test bl, 4
jne 0x1400081d6
mov dword [rsp + 0x28], 4
lea r8, [0x14000b760]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
xor ecx, ecx
call fcn.140006228
cmp eax, 6
jne 0x1400081f7
cmp word [0x14000fef8], si
jne 0x1400081f2
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
jmp 0x1400081f7
call fcn.140003424
mov rcx, qword [0x14000e8b0]
test rcx, rcx
je 0x14000820f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x14000f5c4]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140008500
Capabilities:
Create directory

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 r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea r13, [0x14000f0c0]
mov rsi, rcx
mov ebx, edx
mov rax, r13
lea rcx, [0x14000f5c0]
lea edi, [r15 + 1]
cmp dword [rax], edi
je 0x14000854a
add r15d, edi
add rax, 0x20
cmp rax, rcx
jl 0x14000853a
cmp r15d, 0x28
jne 0x14000857d
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000e8a8]
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDICopy
call fcn.140006228
or rax, 0xffffffffffffffff
jmp 0x140008736
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
jne 0x1400085d4
test ebx, 0x10b
jne 0x140008574
movsxd rdx, r15d
mov rcx, rdx
shl rcx, 5
and dword [rcx + r13], eax
mov rax, qword [0x14000f5e0]
and dword [rcx + r13 + 0x10], 0
mov qword [rcx + r13 + 8], rax
mov eax, dword [0x14000f5e8]
mov dword [rcx + r13 + 0x14], eax
mov dword [rcx + r13 + 4], edi
jmp 0x140008733
test bl, 8
je 0x1400085e2
or rcx, 0xffffffffffffffff
jmp 0x14000870d
mov eax, ebx
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x140008618
bt ebx, 0xa
jae 0x140008606
mov ebx, edi
jmp 0x140008628
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x140008628
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 3
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000870d
cmp ebx, 3
je 0x14000870d
cmp byte [rsi], 0
je 0x1400086e1
mov al, byte [rsi + 1]
lea rdi, [rsi + 2]
xor r14d, r14d
cmp al, 0x3a
jne 0x140008685
cmp byte [rdi], 0x5c
jne 0x140008685
lea rdi, [rsi + 3]
jmp 0x140008694
cmp byte [rsi], 0x5c
jne 0x140008698
cmp al, 0x5c
jne 0x140008698
mov r14d, 2
mov al, byte [rdi]
jmp 0x1400086dd
lea rdi, [rsi + 1]
jmp 0x1400086dd
cmp al, 0x5c
jne 0x1400086c9
cmp byte [rdi - 1], 0x3a
je 0x1400086c9
test r14d, r14d
je 0x1400086b2
dec r14d
jmp 0x1400086c9
xor edx, edx
mov byte [rdi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rdi, rax
mov al, byte [rax]
test al, al
jne 0x14000869e
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
movsxd rdx, r15d
mov rax, rdx
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x14000872f
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x140008733
or rdx, 0xffffffffffffffff
mov rax, rdx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret