joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400034d4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
test cx, cx
je 0x14000358c
cmp cx, 1
je 0x140003585
jbe 0x140003593
cmp cx, 3
ja 0x140003593
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x14000357f
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PendingFileRenameOperations
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x40]
test eax, eax
cmovne ecx, ebx
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, dword [rsp + 0x40]
jmp 0x140003593
call fcn.140002f88
jmp 0x140003591
call fcn.140003040
mov ebx, eax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140003930
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r15, rcx
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x140003b3f
lea rdx, str.SHBrowseForFolder
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x140003b29
mov edx, 0xc3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x140003b29
lea rdx, str.SHGetPathFromIDList
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x140003b29
cmp byte [0x14000cba0], bl
lea rdi, [0x14000cba0]
mov ebp, 0x104
jne 0x140003a42
mov rdx, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
nop dword [rax + rax]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdi + rdx], bl
jne 0x140003a06
add rdx, rdi
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevA]
nop dword [rax + rax]
mov r14, rax
cmp byte [rax], 0x5c
jne 0x140003a42
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevA]
nop dword [rax + rax]
cmp byte [rax], 0x3a
je 0x140003a42
mov byte [r14], bl
lea rax, [0x14000c850]
mov byte [0x14000ca60], bl
mov qword [rsp + 0x48], rax
lea rax, [0x140003900]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x60], rdi
movabs r10, 0xf8943f41765bb270
lea rcx, [rsp + 0x30]
mov rax, r12
call qword [0x140009680]
mov r14, rax
test rax, rax
je 0x140003b0d
movabs r10, 0xa6d536591253a870
mov rcx, rax
mov rdx, rdi
mov rax, r13
call qword [0x140009680]
cmp byte [0x14000cba0], bl
je 0x140003af2
lea rcx, [0x14000ca60]
sub rdi, rcx
lea rax, [rbp + 0x7ffffefa]
test rax, rax
je 0x140003ae5
mov al, byte [rdi + rcx]
test al, al
je 0x140003ae5
mov byte [rcx], al
inc rcx
sub rbp, 1
jne 0x140003ac7
test rbp, rbp
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], bl
movabs r10, 0xce709ee7125b9070
mov rax, qword [rsp + 0xb0]
mov rcx, r14
call qword [0x140009680]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
cmp byte [0x14000ca60], bl
setne bl
mov eax, ebx
jmp 0x140003b60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov edx, 0x4c1
jmp 0x140003b44
mov edx, 0x4c2
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov rcx, r15
call fcn.1400061b8
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004100
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]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14000419d
test al, 0x10
jne 0x14000419d
xor ebx, ebx
cmp dword [0x14000d600], ebx
jne 0x140004180
test byte [0x14000cd18], 1
jne 0x140004180
mov r8, qword [0x14000c828]
lea r9, [0x140006670]
mov qword [rsp + 0x28], 6
mov edx, 0x7d3
mov qword [rsp + 0x20], rbx
mov qword [0x14000d830], rdi
call fcn.140006484
sub rax, 6
je 0x140004180
sub rax, 1
je 0x140004199
cmp rax, 0x832
jne 0x140004180
mov dword [0x14000d600], 1
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov ebx, 1
mov eax, ebx
jmp 0x1400041a2
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400041b4
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 0x1400042af
lea rdx, [rsp + 0x50]
call fcn.140004fa8
test eax, eax
je 0x140004364
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 0x140004230
mov al, byte [r8 + rcx]
test al, al
je 0x140004230
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140004211
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000de64], 0x20
je 0x14000429c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x14000428b
sub ecx, 1
je 0x140004282
sub ecx, 1
je 0x140004279
cmp ecx, 1
jne 0x14000429c
lea r8, [0x1400099f8]
jmp 0x140004292
lea r8, str.alpha
jmp 0x140004292
lea r8, str.mips
jmp 0x140004292
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.14000882c
lea r8, [0x140009760]
mov edx, edi
mov rcx, rbx
call fcn.14000882c
jmp 0x1400042ee
lea rbx, [0x14000d610]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x1400042e0
mov al, byte [r9 + rcx]
test al, al
je 0x1400042e0
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x1400042c1
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.140005ea0
test eax, eax
jne 0x140004319
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x140004338
mov dword [0x14000cd00], 1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140005b18
test eax, eax
je 0x140004345
and dword [0x14000d544], 0
mov eax, 1
jmp 0x140004366
call fcn.140006564
mov dword [0x14000d544], eax
jmp 0x140004364
cmp dword [0x14000cd00], 0
je 0x140004364
and dword [0x14000cd00], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400013e0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004394
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 0x140004416
cmp dword [0x14000cd04], 0
mov rdi, rbx
jne 0x1400043f4
cmp dword [0x14000de60], 0
jne 0x1400043f4
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rbx, rbx
jne 0x1400043bc
mov eax, dword [0x14000cd00]
mov ebx, 1
test eax, eax
je 0x1400044bf
cmp dword [0x14000cd04], 0
jne 0x1400044bf
cmp dword [0x14000de60], 0
jne 0x1400044bf
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 0x14000447b
mov al, byte [r8 + rcx]
test al, al
je 0x14000447b
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x14000445d
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x14000de64], 0x20
mov byte [rax], 0
je 0x14000449c
lea rcx, [rsp + 0x40]
call fcn.1400088c4
lea rcx, [0x140009830]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.1400026b8
mov eax, dword [0x14000cd00]
cmp word [0x14000de78], bx
je 0x14000452f
test eax, eax
je 0x14000452f
cmp byte [0x14000c7d0], 0
je 0x14000452f
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]
nop dword [rax + rax]
test eax, eax
jne 0x14000452f
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000c7d0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and dword [0x14000cd00], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400013e0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x1400046b0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
cmp word [0x14000cd18], di
jne 0x140004705
cmp dword [0x14000cd04], edi
jne 0x1400046f8
call fcn.140005698
test eax, eax
je 0x140004804
cmp word [0x14000cd18], di
jne 0x140004705
call fcn.140004560
test eax, eax
je 0x140004804
call fcn.140004ee8
test eax, eax
je 0x140004804
call fcn.1400051ec
test eax, eax
je 0x140004804
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.14000882c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140004797
lea rdx, str.DecryptFileA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140004797
movabs r10, 0xd1e917fd76db3a70
xor edx, edx
lea rcx, [0x14000d610]
call qword [0x140009680]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
cmp dword [0x14000cd04], edi
jne 0x140004841
cmp dword [0x14000de60], edi
jne 0x140004841
mov edx, 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x140004828
mov edx, 0x4f0
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
xor ecx, ecx
call fcn.1400061b8
call fcn.140006564
mov dword [0x14000d544], eax
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400013e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.140005b18
test eax, eax
je 0x140004804
lea rcx, [0x14000d610]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x14000485f
mov edx, 0x4bc
jmp 0x1400047e0
cmp dword [0x14000cd0c], edi
jne 0x1400048fb
lea rax, [0x14000d040]
mov ecx, 0x28
mov dword [rax], 1
lea rax, [rax + 0x20]
sub rcx, 1
jne 0x140004877
test byte [0x14000cd18], 1
jne 0x1400048c9
test byte [0x14000de64], 1
jne 0x1400048c9
mov eax, dword [0x14000c1ac]
lea r9, [0x140004970]
neg eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
sbb rdx, rdx
xor r8d, r8d
add rdx, 0x7d5
call fcn.140006484
test rax, rax
jmp 0x1400048d0
call fcn.140004bb0
test eax, eax
jne 0x1400048e1
mov dword [0x14000d544], 0x8007042b
jmp 0x140004804
lea rcx, [0x140006de0]
call fcn.140007b48
test eax, eax
je 0x140004804
mov dword [0x14000d544], edi
mov eax, dword [0x14000d028]
test al, 0x40
jne 0x140004917
test al, al
js 0x140004917
movzx ecx, word [0x14000de78]
call fcn.1400034d4
jmp 0x140004919
mov eax, edi
mov dword [0x14000de7c], eax
mov eax, dword [0x14000cd04]
test eax, eax
jne 0x140004944
cmp dword [0x14000de60], edi
jne 0x140004944
call fcn.1400071b0
test eax, eax
je 0x140004804
mov eax, dword [0x14000cd04]
cmp word [0x14000cd18], di
jne 0x140004956
test eax, eax
jne 0x140004956
call fcn.140004e04
mov eax, 1
jmp 0x140004806
Function at 0x140004bb0
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.140005110
mov r8d, 0xa
mov dword [0x14000d568], 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 [0x14000d560], rax
test rax, rax
je 0x140004df1
mov rcx, qword [0x14000c828]
test rcx, rcx
je 0x140004c76
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 [0x14000c828]
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.140007db8
test eax, eax
jne 0x140004c89
mov edx, 0x4ba
jmp 0x140004d54
lea rax, [0x14000d56c]
mov qword [rsp + 0x40], rax
lea r9, [0x140008610]
mov dword [rsp + 0x38], 1
lea rax, [0x1400086c0]
mov qword [rsp + 0x30], rax
lea r8, [fcn.1400083b0]
lea rax, [fcn.140008110]
mov qword [rsp + 0x28], rax
lea rdx, [0x140008390]
lea rax, [0x140008750]
lea rcx, [0x1400080f0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140004d48
lea rax, [0x14000d560]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x140009760]
and qword [rsp + 0x28], 0
lea rax, [0x140008180]
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 0x140004d75
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
nop dword [rax + rax]
test eax, eax
jne 0x140004d75
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.1400061b8
xor ebx, ebx
mov rcx, qword [0x14000d560]
test rcx, rcx
je 0x140004d95
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
and qword [0x14000d560], 0
test ebx, ebx
jne 0x140004dbf
cmp dword [0x14000d5fc], ebx
jne 0x140004dbf
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4f8
xor ecx, ecx
call fcn.1400061b8
test byte [0x14000cd18], 1
jne 0x140004def
test byte [0x14000de64], 1
jne 0x140004def
mov rcx, qword [0x14000c828]
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 0x140004fa8
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 [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ebx, ebx
mov r14, rcx
mov esi, ebx
sub r14, rdx
mov rdi, rdx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140003658
inc esi
mov edx, 0x104
mov rcx, rdi
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005021
mov al, byte [r14 + rcx]
test al, al
je 0x140005021
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005002
test rdx, rdx
lea rax, [rcx - 1]
lea r8, [rsp + 0x20]
mov edx, 0x104
cmovne rax, rcx
mov rcx, rdi
mov byte [rax], bl
call fcn.14000882c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400050df
cmp esi, 0x190
jl 0x140004fdf
mov r9, rdi
lea rdx, [0x1400099dc]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop dword [rax + rax]
test eax, eax
je 0x1400050b4
mov rcx, rdi
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400013e0
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, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14000506f
mov dword [0x14000cd00], 1
mov ebx, 1
jmp 0x1400050b4

Function at 0x140005110
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 0x1400051c9
test rsi, rsi
je 0x1400051c9
test eax, eax
je 0x1400051e1
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 0x1400051e1
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 0x1400051cb
Function at 0x140005ea0
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 0x140005ebb
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 0x140005f25
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b5
xor ecx, ecx
call fcn.1400061b8
call fcn.140006564
mov dword [0x14000d544], 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
lea rax, [rdi - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x140005f6b
sub rdx, rbx
mov r8, rbp
sub r8, rsi
mov rcx, rsi
lea rax, [rdx + rbx]
test rax, rax
je 0x140005f5b
mov al, byte [r8 + rcx]
test al, al
je 0x140005f5b
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x140005f3f
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
jmp 0x140005f72
test edi, edi
je 0x140005f72
mov byte [rsi], 0
lea r8, str.TMP4351_.TMP
mov edx, edi
mov rcx, rsi
call fcn.14000882c
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 0x140005f02
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 0x140005f02
test al, 0x10
je 0x140005f02
and dword [0x14000d544], 0
mov eax, 1
jmp 0x140005f0f

Function at 0x140006484
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]
nop dword [rax + rax]
test rax, rax
je 0x14000651f
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000651f
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x1400064f6
and qword [rsp + 0x20], rax
jmp 0x1400064fb
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 0x140006543
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4fb
xor ecx, ecx
call fcn.1400061b8
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 0x14000658c
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 0x1400065e0
mov al, byte [r9 + rcx]
test al, al
je 0x1400065e0
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400065c1
test r8, r8
lea rax, [rcx - 1]
lea r8, [0x140009808]
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call fcn.14000882c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140006632
test al, 0x10
jne 0x140006632
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
nop dword [rax + rax]
jmp 0x140006645
lea rcx, [0x140009808]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400013e0
add rsp, 0x148
ret