joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400030c4
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000d608]
jmp 0x14000312e
cmp dword [0x14000cd04], 0
mov rdi, rbx
jne 0x140003118
cmp dword [0x14000de60], 0
jne 0x140003118
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
jne 0x1400030ec
mov eax, dword [0x14000cd00]
mov ebx, 1
test eax, eax
je 0x1400031cd
cmp dword [0x14000cd04], 0
jne 0x1400031cd
cmp dword [0x14000de60], 0
jne 0x1400031cd
lea r8, [0x14000d610]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000318f
mov al, byte [r8 + rcx]
test al, al
je 0x14000318f
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x140003171
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x14000de64], 0x20
mov byte [rax], 0
je 0x1400031b0
lea rcx, [rsp + 0x40]
call fcn.14000745c
lea rcx, [0x1400097c0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.140001f00
mov eax, dword [0x14000cd00]
cmp word [0x14000de78], bx
je 0x14000322b
test eax, eax
je 0x14000322b
cmp byte [0x14000c7d0], 0
je 0x14000322b
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000322b
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000c7d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [0x14000cd00], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140007c20
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x140004478
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rbx, rcx
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
mov qword [rsp + 0x68], rax
mov esi, 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
mov rdx, rcx
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400045d3
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x14000cd08], 0
mov edi, dword [rsp + 0x50]
jne 0x14000454a
mov ecx, dword [0x14000de5c]
test sil, cl
je 0x14000454a
test cl, 2
jne 0x14000454a
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, edi
mov dword [0x14000de5c], ecx
test dword [0x14000de64], 0x800
je 0x14000455e
mov dword [0x14000d544], edi
jmp 0x1400045a8
cmp dword [0x14000d540], 0
jne 0x14000459e
movzx ecx, word [0x14000de78]
mov ebx, dword [0x14000de7c]
call fcn.140002174
cmp ebx, eax
jne 0x14000459e
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x140004590
test sil, dil
jne 0x14000459e
test dword [0x14000de64], 0x200
je 0x1400045a8
jmp 0x140004556
mov dword [0x14000d544], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x14000de64], 0x400
je 0x140004641
cmp dword [rsp + 0x50], 0
jge 0x140004641
jmp 0x14000463f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
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]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4c4
xor ecx, ecx
call fcn.140004a70
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140007c20
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004768
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rbp, rcx
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x1400048f2
lea rdx, str.SHBrowseForFolder
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x1400048e2
mov edx, 0xc3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x1400048e2
lea rdx, str.SHGetPathFromIDList
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x1400048e2
cmp byte [0x14000cba0], bl
lea r13, [0x14000cba0]
jne 0x140004845
mov rdx, r13
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdx + r13], bl
jne 0x140004815
add rdx, r13
mov rcx, r13
call qword [sym.imp.USER32.dll_CharPrevA]
mov rsi, rax
cmp byte [rax], 0x5c
jne 0x140004845
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_CharPrevA]
cmp byte [rax], 0x3a
je 0x140004845
mov byte [rsi], bl
lea rax, [0x14000c850]
mov byte [0x14000ca60], bl
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
lea rax, [0x140004740]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x58], rax
mov rax, r12
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x60], r13
call qword [vtable.H_MA8HI.0]
mov rsi, rax
test rax, rax
je 0x1400048cc
mov rcx, rax
mov rdx, r13
mov rax, r15
call qword [vtable.H_MA8HI.0]
cmp byte [0x14000cba0], bl
je 0x1400048c0
mov r8, r13
lea rcx, [0x14000ca60]
mov edx, 0x104
call fcn.140001008
mov rcx, rsi
mov rax, r14
call qword [vtable.H_MA8HI.0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [0x14000ca60], bl
setne bl
mov eax, ebx
jmp 0x140004913
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x1400048f7
mov edx, 0x4c2
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov rcx, rbp
call fcn.140004a70
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004cc0
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]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp eax, ebp
ja 0x140004d4f
test rsi, rsi
je 0x140004d4f
test eax, eax
je 0x140004d66
mov r8d, 0xa
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140004d66
mov r9d, ebx
mov edx, ebp
mov r8, rax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_memcpy_s]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
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 0x140004d51

Function at 0x140004e00
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004e97
shr eax, 4
not eax
and eax, 1
je 0x140004e97
xor ebx, ebx
cmp dword [0x14000d600], ebx
jne 0x140004e80
test byte [0x14000cd18], 1
jne 0x140004e80
mov r8, qword [0x14000c828]
lea r9, [0x140003680]
mov qword [rsp + 0x28], 6
mov edx, 0x7d3
mov qword [rsp + 0x20], rbx
mov qword [0x14000d830], rdi
call fcn.140007304
sub rax, 6
je 0x140004e80
sub rax, 1
je 0x140004e93
cmp rax, 0x832
jne 0x140004e80
mov dword [0x14000d600], 1
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, 1
mov eax, ebx
jmp 0x140004e9c
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140004fa0
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 r14d, r14d
lea r13, [0x14000d040]
mov ebx, edx
mov rsi, rcx
mov rax, r13
lea edi, [r14 + 1]
cmp dword [rax], edi
je 0x140004fea
add r14d, edi
lea rcx, [0x14000d540]
add rax, 0x20
cmp rax, rcx
jl 0x140004fd3
cmp r14d, 0x28
jne 0x14000501d
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004a70
or rax, 0xffffffffffffffff
jmp 0x1400051b8
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14000506e
test ebx, 0x10b
jne 0x140005014
movsxd rdx, r14d
mov rcx, rdx
shl rcx, 5
and dword [rcx + r13], eax
mov rax, qword [0x14000d560]
and dword [rcx + r13 + 0x10], 0
mov qword [rcx + r13 + 8], rax
mov eax, dword [0x14000d568]
mov dword [rcx + r13 + 0x14], eax
mov dword [rcx + r13 + 4], edi
jmp 0x1400051b5
test bl, 8
je 0x14000507c
or rcx, 0xffffffffffffffff
jmp 0x14000518f
mov eax, ebx
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x1400050b2
bt ebx, 0xa
jae 0x1400050a0
mov ebx, edi
jmp 0x1400050c2
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x1400050c2
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]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000518f
cmp ebx, 3
je 0x14000518f
cmp byte [rsi], 0
je 0x140005169
mov al, byte [rsi + 1]
lea rdi, [rsi + 2]
xor r15d, r15d
cmp al, 0x3a
jne 0x140005119
cmp byte [rdi], 0x5c
jne 0x140005119
lea rdi, [rsi + 3]
jmp 0x140005128
cmp byte [rsi], 0x5c
jne 0x14000512c
cmp al, 0x5c
jne 0x14000512c
mov r15d, 2
mov al, byte [rdi]
jmp 0x140005165
lea rdi, [rsi + 1]
jmp 0x140005165
cmp al, 0x5c
jne 0x140005157
cmp byte [rdi - 1], 0x3a
je 0x140005157
test r15d, r15d
je 0x140005146
dec r15d
jmp 0x140005157
xor edx, edx
mov byte [rdi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
mov al, byte [rax]
test al, al
jne 0x140005132
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]
mov rcx, rax
movsxd rdx, r14d
mov rax, rdx
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x1400051b1
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x1400051b5
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
Function at 0x140005940
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.140004cc0
mov r8d, 0xa
mov dword [0x14000d568], eax
lea rdx, str.CABINET
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14000d560], rax
test rax, rax
je 0x140005b39
mov rcx, qword [0x14000c828]
test rcx, rcx
je 0x1400059dc
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14000c828]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140005814
test eax, eax
jne 0x1400059ef
mov edx, 0x4ba
jmp 0x140005aa8
lea rax, [0x14000d56c]
mov qword [rsp + 0x40], rax
lea r9, [0x1400051e0]
mov dword [rsp + 0x38], 1
lea rax, [0x1400053c0]
mov qword [rsp + 0x30], rax
lea r8, [fcn.140004fa0]
lea rax, [fcn.140005350]
mov qword [rsp + 0x28], rax
lea rdx, [0x140005470]
lea rax, [0x140005280]
lea rcx, [0x140005450]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
mov rdi, rax
test rax, rax
je 0x140005a9c
lea rax, [0x14000d560]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x1400096f0]
and qword [rsp + 0x28], 0
lea rax, [0x140005480]
lea rdx, str.MEMCAB
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDICopy]
mov ebx, eax
test eax, eax
je 0x140005ac9
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
test eax, eax
jne 0x140005ac9
mov edx, dword [0x14000d56c]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004a70
xor ebx, ebx
mov rcx, qword [0x14000d560]
test rcx, rcx
je 0x140005ae3
call qword [sym.imp.KERNEL32.dll_FreeResource]
and qword [0x14000d560], 0
test ebx, ebx
jne 0x140005b0d
cmp dword [0x14000d5fc], ebx
jne 0x140005b0d
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4f8
xor ecx, ecx
call fcn.140004a70
test byte [0x14000cd18], 1
jne 0x140005b37
test byte [0x14000de64], 1
jne 0x140005b37
mov rcx, qword [0x14000c828]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140005d44
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ebx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140001144
mov r8, rbp
mov edx, 0x104
mov rcx, rdi
inc esi
call fcn.140001008
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rdi
call fcn.1400073cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005e23
cmp esi, 0x190
jl 0x140005d6f
mov r9, rdi
lea rdx, [0x14000996c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x140005dfe
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007c20
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140005dcb
mov dword [0x14000cd00], 1
mov ebx, 1
jmp 0x140005dfe
Function at 0x140005e4c
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x140005f41
lea rdx, [rsp + 0x50]
call fcn.140005d44
test eax, eax
je 0x140005fed
lea rbx, [0x14000d610]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005ec8
mov al, byte [r8 + rcx]
test al, al
je 0x140005ec8
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005ea9
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000de64], 0x20
je 0x140005f2e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x140005f1d
sub ecx, 1
je 0x140005f14
sub ecx, 1
je 0x140005f0b
cmp ecx, 1
jne 0x140005f2e
lea r8, [0x140009988]
jmp 0x140005f24
lea r8, str.alpha
jmp 0x140005f24
lea r8, str.mips
jmp 0x140005f24
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.1400073cc
lea r8, [0x1400096f0]
mov edx, edi
mov rcx, rbx
call fcn.1400073cc
jmp 0x140005f80
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140005f72
mov al, byte [r9 + rcx]
test al, al
je 0x140005f72
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x140005f53
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.14000648c
test eax, eax
jne 0x140005fa5
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140005fd3
mov dword [0x14000cd00], 1
test esi, esi
je 0x140005ff1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1400065b0
test eax, eax
jne 0x140005ff1
cmp dword [0x14000cd00], eax
je 0x140005fed
and dword [0x14000cd00], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x140005fed
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
xor eax, eax
jmp 0x140005ffd
and dword [0x14000d544], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140007c20
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000648c
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 rdi, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1400064a7
add ebx, 0x14
mov ecx, 0x40
mov edx, ebx
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x140006519
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b5
xor ecx, ecx
call fcn.140004a70
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [0x14000d544], ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
call fcn.140001008
lea r8, str.TMP4351_.TMP
mov edx, ebx
mov rcx, rsi
call fcn.1400073cc
and qword [rsp + 0x30], 0
mov ebp, 1
mov dword [rsp + 0x28], 0x4000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbx, 0xffffffffffffffff
je 0x1400064e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400064e8
test al, 0x10
je 0x1400064e8
and dword [0x14000d544], 0
mov eax, ebp
jmp 0x140006504
Function at 0x140006fb0
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 [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x140007037
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140007075
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007006
mov edx, dword [rbx + 4]
lea r9, [rax + 1]
mov ecx, dword [rbx]
add r9, r8
mov rax, rbp
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
test eax, eax
je 0x14000706b
call qword [sym.imp.KERNEL32.dll_FreeResource]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.140001144
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x140006fe2
jmp 0x140007081
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x140007081
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007c20
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edx, 0x104
lea r9, [0x14000d610]
lea rax, [rsp + 0x20]
mov r8d, edx
sub r9, rax
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x140007290
mov al, byte [r9 + rcx]
test al, al
je 0x140007290
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x140007271
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.1400073cc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400072d6
test al, 0x10
jne 0x1400072d6
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1400072e3
lea rcx, str.advpack.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007c20
add rsp, 0x148
ret
Function at 0x140007304
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 [0x14000de70]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140007387
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140007387
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x14000736a
and qword [rsp + 0x20], rax
jmp 0x14000736f
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp rbx, 0xffffffffffffffff
jne 0x1400073ab
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4fb
xor ecx, ecx
call fcn.140004a70
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