joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400221e0
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x1400221e0
sub rsp, 0x38
cmp dword [0x140120eb4], 0
je 0x1400221f4
xor eax, eax
jmp 0x140022453
cmp qword [0x140120ea8], 0
je 0x14002220a
mov rax, qword [0x140120ea8]
jmp 0x140022453
mov r8d, 0x48
xor edx, edx
lea rcx, [0x140120e50]
call fcn.140002e96
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [0x140120e50], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call sub.KERNEL32.dll_LoadLibraryExW
mov qword [0x140120e58], rax
cmp qword [0x140120e58], 0
jne 0x1400222c0
mov dword [0x140120eb4], 1
cmp qword [0x140120e58], 0
je 0x14002226c
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_FreeLibrary
mov qword [0x140120e60], 0
mov qword [0x140120e68], 0
mov qword [0x140120e70], 0
mov qword [0x140120e78], 0
mov qword [0x140120e80], 0
mov qword [0x140120e88], 0
mov qword [0x140120e90], 0
xor eax, eax
jmp 0x140022453
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e60], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e68], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e70], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e78], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e80], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e88], rax
lea rdx, str.SymFromName
mov rcx, qword [0x140120e58]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140120e90], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140002e96
mov eax, 0xc
mov word [rsp + 0x28], ax
cmp qword [0x140120e60], 0
je 0x1400223c4
cmp qword [0x140120e68], 0
je 0x1400223c4
cmp qword [0x140120e80], 0
je 0x1400223c4
cmp qword [0x140120e88], 0
je 0x1400223c4
cmp qword [0x140120e90], 0
jne 0x1400223c9
jmp 0x14002224c
lea rcx, [rsp + 0x28]
call qword [0x140120e60]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x1400223e3
jmp 0x14002224c
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x140120e50]
call qword [0x140120e68]
test eax, eax
jne 0x1400223fe
jmp 0x14002224c
cmp qword [0x140120e78], 0
je 0x14002243e
cmp qword [0x140120e70], 0
je 0x14002243e
call qword [0x140120e78]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x140120e70]
lea rax, [0x140120e50]
mov qword [0x140120ea8], rax
mov rax, qword [0x140120ea8]
add rsp, 0x38
ret
Function at 0x140022500
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x80], 0
jne 0x14002252d
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002254d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1400226c6
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x140022584
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1400226c6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x1400225a2
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1400226c6
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x1400225ce
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1400226aa
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call fcn.140001168
test eax, eax
jne 0x1400226a5
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x140022633
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x140022635
jmp 0x1400226aa
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x14002267b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x14002267d
jmp 0x1400226aa
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140022697
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x1400226c6
jmp 0x1400225c4
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1400226c6
add rsp, 0x78
ret
Function at 0x140023340
Capabilities:
Parse pe header

Disassembly:
jmp 0x140023340
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140002e96
jmp 0x140023388
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x1400233a7
jmp 0x14002344b
cmp dword [rsp + 0x68], 0x1000
jne 0x1400233cc
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x1400233cc
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x1400233ce
jmp 0x140023373
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140023404
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x140023404
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x140023409
jmp 0x140023373
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x140023373
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x14002344d
xor eax, eax
add rsp, 0x88
ret

Function at 0x140023a00
Capabilities:
Parse pe header

Disassembly:
jmp 0x140023a00
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140002e96
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x140023a4a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
cmp dword [rsp + 0x60], 0x1000
jne 0x140023a6f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x140023a6f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x140023a80
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023aa7
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140023adb
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x140023af6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023b12
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x140023b12
add rsp, 0x78
ret
Function at 0x140023dc0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140023dc0
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jne 0x140023de7
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023e04
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023e72
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140023e38
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023e72
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x140023e53
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x140023e72
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x50]
jmp 0x140023e72
add rsp, 0x48
ret
Function at 0x1408cbaf0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1408cbafd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1408cbb0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1408cbaf5
lea eax, [rcx + 1]
jmp 0x1408cbb1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1408cbb2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1408cbb14
sub eax, 3
jb 0x1408cbb4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1408cbb9d
sar eax, 1
movsxd rbp, eax
jb 0x1408cbb84
jmp 0x1408cbb5c
add ebx, ebx
jne 0x1408cbb5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408cbb84
inc ecx
add ebx, ebx
jne 0x1408cbb6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408cbb84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1408cbb7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1408cbb6c
add ecx, 2
jmp 0x1408cbb89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1408cbab2
jmp 0x1408cbafd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x8c2000]
mov eax, dword [rdi]
or eax, eax
je 0x1408cbbfd
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8cb000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1408cbbad
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1408cbbf7
mov qword [rbx], rax
add rbx, 8
jmp 0x1408cbbcd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1408cbc41
cmp al, 0xef
ja 0x1408cbc29
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1408cbc09
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1408cbc18
mov eax, dword [rdi]
add rdi, 4
jmp 0x1408cbc18
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1408cbcc0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1408cbcc0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1408cbcb0
sub rsp, 0xffffffffffffff80
jmp 0x140001125
Function at 0x1004013f6
Capabilities:
Create directory
Get file attributes

Disassembly:
push rbp
push rdi
sub rsp, 0xa8
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0x80]
mov eax, 0
mov ecx, 0x10
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp - 0x80]
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call sub.cygwin1.dll_stat
cmp eax, 0xffffffff
jne 0x100401472
mov edx, 0x1c0
mov rcx, qword [rbp + 0x20]
call sub.cygwin1.dll_mkdir
cmp eax, 0xffffffff
jne 0x10040145d
lea rax, str.Error_creating_directory
mov rcx, rax
call sub.cygwin1.dll_perror
mov eax, 0xffffffff
jmp 0x10040148a
mov rdx, qword [rbp + 0x20]
lea rax, str.Folder___s__created_successfully._n
mov rcx, rax
call sub.cygwin1.dll_printf
jmp 0x100401485
mov rdx, qword [rbp + 0x20]
lea rax, str.Folder___s__already_exists._n
mov rcx, rax
call sub.cygwin1.dll_printf
mov eax, 0
add rsp, 0xa8
pop rdi
pop rbp
ret

Function at 0x100401494
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov r8d, eax
mov rdx, qword [rbp + 0x10]
lea rax, str.ProgramFiles
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x1004014d1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x18]
jbe 0x1004014d8
mov eax, 0
jmp 0x1004014dd
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x100401ad1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov dword [rbp - 4], 0
mov dword [rbp - 8], 0
mov qword [rbp - 0x10], 0
jmp 0x100401bd8
mov eax, dword [rbp - 4]
add eax, 1
cdq
shr edx, 0x18
add eax, edx
movzx eax, al
sub eax, edx
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov eax, dword [rbp - 8]
add eax, edx
cdq
shr edx, 0x18
add eax, edx
movzx eax, al
sub eax, edx
mov dword [rbp - 8], eax
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
movzx eax, byte [rax]
mov byte [rbp - 0x11], al
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
mov edx, dword [rbp - 4]
movsxd rcx, edx
mov rdx, qword [rbp + 0x20]
add rdx, rcx
movzx eax, byte [rax]
mov byte [rdx], al
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rdx, rax
movzx eax, byte [rbp - 0x11]
mov byte [rdx], al
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 8]
movsxd rcx, eax
mov rax, qword [rbp + 0x20]
add rax, rcx
movzx eax, byte [rax]
add eax, edx
movzx edx, al
mov rax, qword [rbp + 0x20]
add rax, rdx
movzx eax, byte [rax]
mov byte [rbp - 0x12], al
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp - 0x10]
add rdx, rcx
xor al, byte [rbp - 0x12]
mov byte [rdx], al
add qword [rbp - 0x10], 1
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x18]
jb 0x100401b04
nop
nop
add rsp, 0x20
pop rbp
ret
Function at 0x140001e60
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x140005098]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov esi, ecx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setbuf]
call sub.tiff.dll_TIFFGetVersion
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str._s_n_n
mov rcx, rax
call fcn.140001880
mov rdi, qword [str.usage:_tiff2rgba___c_comp____r_rows____b____n____8__input..._output]
test rdi, rdi
je 0x140001f14
mov qword [rsp + 0x248], r14
xor ebx, ebx
lea r14, str.usage:_tiff2rgba___c_comp____r_rows____b____n____8__input..._output
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, [0x140003668]
mov rcx, rax
call fcn.140001880
mov rdi, qword [r14 + rbx*8 + 8]
lea rbx, [rbx + 1]
test rdi, rdi
jne 0x140001ee1
mov r14, qword [rsp + 0x248]
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140810058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408101df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140810089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14081006f
add dl, dl
jne 0x140810096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408100f6
xor eax, eax
add dl, dl
jne 0x1408100a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408101ad
add dl, dl
jne 0x1408100b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408100c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408100d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408100dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408100ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14081007e
mov eax, 1
add dl, dl
jne 0x140810106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140810113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408100fb
sub eax, ebx
mov ebx, 1
jne 0x14081014c
mov ecx, 1
add dl, dl
jne 0x14081012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14081013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140810123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14081007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140810168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140810175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14081015d
cmp eax, 0x7d00
jae 0x14081019b
cmp eax, 0x500
jb 0x140810196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14081007e
cmp eax, 0x7f
ja 0x14081019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14081007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408101d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14081007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140006270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400062a3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400062e9
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400062e4
nop
cmp rbx, rcx
jae 0x1400062e9
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x1400062d0
cmp rbx, rcx
jb 0x1400062ed
xor eax, eax
jmp 0x1400062f9
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000ee90
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14000ed00
nop
cmp qword [rax + 0x18], 8
jb 0x14000eec6
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp qword [rsp + 0x40], 8
jb 0x14000eee4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
cmp ebx, 0xffffffff
je 0x14000ef05
test bl, 0x10
je 0x14000ef05
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f5ff0
add rsp, 0x50
pop rbx
ret
Function at 0x14000f2a0
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov rsi, rcx
lea rcx, [rsp + 0x28]
call fcn.14000ed60
nop
cmp qword [rsp + 0x38], 0
je 0x14000f2fc
lea rcx, [rsp + 0x28]
call fcn.14000f150
mov rdi, rax
shr rax, 0x27
not eax
test al, 1
jne 0x14000f381
cmp qword [rbx + 0x18], 8
jb 0x14000f306
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x14000f310
mov rsi, qword [rsi]
mov r8d, 3
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14000f377
lea edx, [rax + 0x5c]
lea rcx, str.C:_btvsts3480private_softgrid_sharedinclude_shared_file_utils.hpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x14000f340
inc rax
jmp 0x14000f347
lea rax, str.C:_btvsts3480private_softgrid_sharedinclude_shared_file_utils.hpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or rdi, rbx
movabs rax, 0x192500000000
or rdi, rax
jmp 0x14000f381
movabs rdi, 0x8000000000
cmp qword [rsp + 0x40], 8
jb 0x14000f394
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x40], 7
xor eax, eax
mov qword [rsp + 0x38], rax
mov word [rsp + 0x28], ax
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f5ff0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14000f480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rbx, rcx
mov byte [rdx], 0
xor esi, esi
mov qword [r11 - 0x40], rsi
mov qword [r11 - 0x38], rsi
mov qword [r11 - 0x38], 7
mov qword [r11 - 0x40], rsi
mov word [rsp + 0x28], si
lea r8d, [rsi + 1]
lea rdx, [0x140144360]
lea rcx, [r11 - 0x50]
call fcn.140007c60
nop
lea r8, [rsp + 0x28]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14000e520
nop
cmp qword [rsp + 0x40], 8
jb 0x14000f506
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
lea rcx, [rsp + 0x48]
call fcn.14000e5d0
cmp qword [rsp + 0x58], 0
je 0x14000f5a2
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000f59f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [rbx - 2]
cmp ecx, 1
jbe 0x14000f5a2
mov edx, MsiPreviewDialogW
lea rcx, str.C:_btvsts3480private_softgrid_sharedinclude_shared_file_utils.hpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x14000f573
inc rax
jmp 0x14000f57a
lea rax, str.C:_btvsts3480private_softgrid_sharedinclude_shared_file_utils.hpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
shl rax, 0x34
or rbx, rax
movabs rax, 0x1e2500000000
or rbx, rax
jmp 0x14000f5ac
mov byte [rdi], 1
movabs rbx, 0x8000000000
cmp qword [rsp + 0x60], 8
jb 0x14000f5bf
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400f5ff0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret