joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140081994
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, CSocketFile::CSocketFile
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
lea rdi, [rbx + 8]
mov word [rdi], r14w
xor r8d, r8d
lea rdx, [0x1400b3e24]
mov rcx, rbx
call fcn.14000c844
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r14 + 0x1a]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x140081b6b
lea rax, [rsp + 0x60]
or r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp word [rax + r8*2], r14w
jne 0x140081a4b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14000c844
lea rdx, str.Microsoft_
mov rcx, rbx
call fcn.14008293c
lea rdx, [rsi + 0x28]
mov r9, r15
xor r8d, r8d
mov rcx, rbx
call fcn.140080420
lea rdx, [0x1400b7fe8]
mov rcx, rbx
call fcn.14008293c
cmp qword [rbx + 0x20], 8
jb 0x140081a9e
mov rcx, qword [rdi]
jmp 0x140081aa1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140081b16
cmp qword [rbx + 0x20], 8
jb 0x140081abe
mov rdx, qword [rdi]
jmp 0x140081ac1
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
nop dword [rax + rax]
test eax, eax
je 0x140081b16
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000cd5c
nop
cmp qword [rsp + 0x58], 8
jb 0x140081b6b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
jmp 0x140081b6b
cmp qword [rsi + 0x48], 8
jb 0x140081b23
mov rdx, qword [rsi + 0x30]
jmp 0x140081b27
lea rdx, [rsi + 0x30]
cmp qword [rbx + 0x20], 8
jb 0x140081b31
mov rdi, qword [rdi]
lea r9, [rbp + 0x170]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
xor r8d, r8d
lea rdx, [0x1400b3e24]
mov rcx, rbx
call fcn.14000c844
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.14008293c
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140093810
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140082120
Capabilities:
Delete file
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
lea r8, [rcx + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [rbp + 0x17]
call fcn.140080794
nop
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.140083514
nop
cmp qword [rbp + 0x37], 8
jb 0x140082191
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov r15d, 7
mov qword [rbp + 0x37], r15
xor edi, edi
mov qword [rbp + 0x2f], rdi
mov word [rbp + 0x1f], di
lea rdx, [0x1400b3e24]
mov rcx, rsi
call fcn.14000c7bc
test eax, eax
je 0x1400822b1
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.140080420
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
lea r8d, [r15 + 9]
lea rdx, str.RecoveryFilePath
lea rcx, [rbp - 0x39]
call fcn.14000c844
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x41]
lea rcx, [rsi + 0x60]
call fcn.1400826a0
mov rbx, qword [rax]
cmp qword [rbp - 0x19], 8
jb 0x14008221b
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
cmp rbx, qword [rsi + 0x68]
je 0x140082286
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, str.RecoveryFilePath
lea rcx, [rbp - 0x39]
call fcn.14000c844
nop
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x60]
call fcn.1400827ec
cmp qword [rax + 0x20], 8
jb 0x14008225e
mov rcx, qword [rax + 8]
jmp 0x140082262
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x19], 8
jb 0x140082286
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov ecx, 1
test eax, eax
cmove edi, ecx
cmp qword [rbp + 0xf], 8
jb 0x1400822c8
mov rcx, qword [rbp - 9]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140093810
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140083fc4
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor edi, edi
cmp dword [0x14010165c], edi
mov qword [rsp + 0x20], rdi
jne 0x140084008
mov eax, 0x80004005
jmp 0x14008415d
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
jbe 0x140084049
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140084153
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140086ec0
mov ebx, eax
test eax, eax
js 0x14008414e
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400840a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x1400840a5
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140084153
mov rcx, qword [0x140101650]
call sub.msvcrt.dll_free
mov qword [0x140101650], rdi
lea rcx, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
test rax, rax
je 0x140084109
lea r8, str.oPackage
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140009bd0
test eax, eax
js 0x140084109
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140086ec0
mov ebx, eax
test eax, eax
js 0x14008414e
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140084137
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [0x140101650]
call sub.msvcrt.dll_free
mov qword [0x140101650], rdi
xor edi, edi
jmp 0x140084153
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140093810
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140087410
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x10], 0
lea rax, [rcx - 0x18]
neg rax
lea rdx, [rcx + 8]
mov rdi, rcx
sbb rbx, rbx
and rbx, rdx
je 0x14008744d
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xcc], 0
je 0x1400875fa
mov rcx, qword [rdi + 0x78]
and dword [rdi + 0xcc], 0
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x14008748b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
and qword [rdi + 0x98], 0
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x1400874ac
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
and qword [rdi + 0xa0], 0
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x1400874ff
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400d08e0]
mov rax, qword [rax]
call qword [str._S_t_]
test eax, eax
js 0x1400874ff
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str._S_t_]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400874ff
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
and qword [rbp + 0x10], 0
and qword [rdi + 0xa8], 0
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x14008755a
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400d08e0]
mov rax, qword [rax]
call qword [str._S_t_]
test eax, eax
js 0x14008755a
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str._S_t_]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14008755a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
and qword [rbp + 0x10], 0
and qword [rdi + 0xb8], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x1400875b5
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400d08e0]
mov rax, qword [rax]
call qword [str._S_t_]
test eax, eax
js 0x1400875b5
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str._S_t_]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400875b5
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
and qword [rbp + 0x10], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x1400875d6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
and qword [rdi + 0xb0], 0
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x1400875fa
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x88]
call sub.msvcrt.dll_free
test rbx, rbx
je 0x14008760f
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
Function at 0x14008a680
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [rcx - 8]
mov rdi, rcx
neg rax
lea rdx, [rcx + 8]
sbb rbx, rbx
and rbx, rdx
je 0x14008a6b5
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xf8], 0
je 0x14008a785
and dword [rdi + 0xf8], 0
cmp dword [rdi + 0x100], 0
je 0x14008a6dd
xor edx, edx
lea rcx, [rdi - 8]
call fcn.14008b4dc
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x14008a6fe
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
and qword [rdi + 0xe8], 0
cmp dword [rdi + 0xfc], 0
je 0x14008a71a
mov rcx, qword [rdi + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0xf0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xb0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xc0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x14008a75f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
and qword [rdi + 0xd8], 0
mov rcx, qword [rdi + 0xe0]
test rcx, rcx
je 0x14008a780
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._S_t_]
and qword [rdi + 0xe0], 0
and qword [rdi + 0x38], 0
test rbx, rbx
je 0x14008a79a
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14008ab2c
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor edi, edi
lea rdx, [rcx + 0x10]
and dword [rbp + 0x38], edi
or r15, 0xffffffffffffffff
and dword [rbp + 0x48], edi
mov rax, rcx
and dword [rbp + 0x40], edi
mov rsi, rcx
neg rax
sbb rbx, rbx
and rbx, rdx
je 0x14008ab70
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x100], edi
jne 0x14008ab82
mov edi, 0x802a0035
jmp 0x14008ad46
mov rcx, qword [rsi + 0xf8]
test rcx, rcx
jne 0x14008ab98
mov edi, 0x80004005
jmp 0x14008ad55
cmp dword [rsi + 0x104], edi
jne 0x14008ad46
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14008ac13
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x14008ac09
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14008ad46
mov edi, 0x8000ffff
jmp 0x14008ad46
mov rax, qword [rsi]
lea rdx, [rbp + 0x40]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [str._S_t_]
mov edx, 1
mov rcx, rsi
call fcn.14008b4dc
mov edi, eax
test eax, eax
js 0x14008ad46
jmp 0x14008ac9f
mov edx, dword [rsi + 0xd4]
lea r9, [rbp + 0x48]
add rdx, qword [rsi + 0xc8]
mov r8d, r14d
and qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14008ac8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14008ad46
add dword [rsi + 0xd8], r14d
mov eax, dword [rbp + 0x48]
add dword [rsi + 0xd4], eax
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.14008b354
mov r14d, dword [rbp + 0x38]
test r14d, r14d
jne 0x14008ac40
mov ecx, dword [rsi + 0xd8]
mov eax, ecx
sub eax, dword [rsi + 0x54]
neg eax
sbb edi, edi
and edi, 0x802a0021
cmp ecx, dword [rsi + 0x54]
jne 0x14008ad46
xor edx, edx
mov rcx, rsi
call fcn.14008b4dc
mov edi, eax
test eax, eax
js 0x14008ad46
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rbp + 0x40]
lea r14, [rsi + 0xf0]
mov rcx, qword [rsi + 0xf8]
mov rdx, r14
or r15, 0xffffffffffffffff
mov dword [rbp + 0x50], eax
call fcn.140085d8c
mov edi, eax
test eax, eax
js 0x14008ad46
mov rcx, qword [r14]
lea rdx, [rbp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [str._S_t_]
mov edi, eax
test eax, eax
js 0x14008ad46
mov eax, dword [rbp + 0x40]
cmp dword [rbp + 0x50], eax
je 0x14008ad3c
mov edi, 0x80004005
jmp 0x14008ad46
mov dword [rsi + 0x104], 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x14008ad6a
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14008c370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
lea rdi, [0x1400d0980]
mov r9d, ecx
not r9d
mov r11, rdx
cmp r8d, 8
jb 0x14008c3c6
mov r10d, r8d
shr r10, 3
mov ebx, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub rbx, 1
jne 0x14008c39c
add r8d, 0xfffffff8
sub r10, 1
jne 0x14008c397
test r8d, r8d
je 0x14008c3eb
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
add r8d, 0xffffffff
jne 0x14008c3cb
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x14008d3c0
Capabilities:
Encrypt data using rc4 prga

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 r12
push r14
push r15
sub rsp, 0x20
mov ebp, dword [rcx + 0x38]
mov rdi, rcx
mov r9d, dword [rcx + 0x94]
mov esi, dword [rdi + 0x50]
mov edx, dword [rdi + 0x8c]
sub esi, edx
sub esi, r9d
jne 0x14008d40a
test edx, edx
jne 0x14008d419
test r9d, r9d
jne 0x14008d419
mov esi, ebp
jmp 0x14008d4a0
cmp esi, 0xffffffff
jne 0x14008d419
mov esi, 0xfffffffe
jmp 0x14008d4a0
mov ecx, dword [rdi + 0x38]
add ecx, 0xfffffefa
add ecx, ebp
cmp edx, ecx
jb 0x14008d4a0
mov rcx, qword [rdi + 0x48]
mov r8, rbp
lea rdx, [rcx + rbp]
call sub.msvcrt.dll_memcpy
mov r9d, dword [rdi + 0x6c]
mov rax, qword [rdi + 0x60]
sub dword [rdi + 0x90], ebp
sub dword [rdi + 0x8c], ebp
sub dword [rdi + 0x7c], ebp
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x14008d453
mov rax, qword [rdi + 0x58]
mov r9d, ebp
lea r8, [rax + rbp*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x14008d47e
add esi, ebp
mov r14, qword [rdi]
mov ecx, dword [r14 + 8]
test ecx, ecx
je 0x14008d560
mov edx, dword [rdi + 0x94]
mov r12d, dword [rdi + 0x8c]
add r12, rdx
add r12, qword [rdi + 0x48]
cmp ecx, esi
cmovbe esi, ecx
test esi, esi
je 0x14008d50f
mov rax, qword [r14 + 0x28]
sub ecx, esi
mov r15, qword [r14]
mov dword [r14 + 8], ecx
cmp dword [rax + 0x2c], 0
jne 0x14008d4f2
mov ecx, dword [r14 + 0x4c]
mov r8d, esi
mov rdx, r15
call fcn.14008eb70
mov dword [r14 + 0x4c], eax
mov r8d, esi
mov rdx, r15
mov rcx, r12
mov ebx, esi
call sub.msvcrt.dll_memcpy
add qword [r14], rbx
add dword [r14 + 0xc], esi
mov edx, dword [rdi + 0x94]
lea r9d, [rdx + rsi]
mov dword [rdi + 0x94], r9d
cmp r9d, 3
jb 0x14008d54a
mov eax, dword [rdi + 0x8c]
mov rdx, qword [rdi + 0x48]
mov ecx, dword [rdi + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x74]
mov dword [rdi + 0x68], r8d
cmp r9d, 0x106
jae 0x14008d560
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x14008d3ea
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14008eb70
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
mov r10, rdx
shr ecx, 0x10
test rdx, rdx
jne 0x14008eca9
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x14008ec6d
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r9d, eax
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 0xf]
add ecx, r9d
add r10, 0x10
add r9d, eax
add ecx, r9d
sub r11, 1
jne 0x14008ebb0
test edx, edx
je 0x14008ec83
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
sub edx, 1
jne 0x14008ec71
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r8d, r8d
jne 0x14008eb87
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret

Function at 0x140093bdc
Capabilities:
Print debug messages

Disassembly:
jmp 0x140093be8
push rbx
sub rsp, reloc.MFC42u.dll_Ordinal_1344
mov rax, qword [0x1400ff2b8]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140093c65
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140093c85
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140093810
add rsp, reloc.MFC42u.dll_Ordinal_1344
pop rbx
ret

Function at 0x140093fdc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140094028
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140094020
cmp dword [rcx + 0x3c], edx
jl 0x140094020
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140094020
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140094028
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14066f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14066f1df
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 0x14066f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14066f06f
add dl, dl
jne 0x14066f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14066f0f6
xor eax, eax
add dl, dl
jne 0x14066f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14066f1ad
add dl, dl
jne 0x14066f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14066f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14066f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14066f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14066f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14066f07e
mov eax, 1
add dl, dl
jne 0x14066f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14066f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14066f0fb
sub eax, ebx
mov ebx, 1
jne 0x14066f14c
mov ecx, 1
add dl, dl
jne 0x14066f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14066f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14066f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14066f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14066f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14066f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14066f15d
cmp eax, 0x7d00
jae 0x14066f19b
cmp eax, 0x500
jb 0x14066f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14066f07e
cmp eax, 0x7f
ja 0x14066f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14066f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14066f1d2
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 0x14066f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800023b0
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 0x1800023e3
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 0x180002426
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x180002421
cmp rbx, r11
jae 0x180002426
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x180002410
cmp rbx, r11
jb 0x18000242a
xor eax, eax
jmp 0x180002436
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