joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18016c890
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18016ce20
mov qword [rsp + 0x28], 0
cmp qword [0x18051c820], 0
jne 0x18016c8d8
cmp qword [0x18051c818], 0
je 0x18016c8d8
mov rax, qword [0x18051c818]
mov qword [0x18051c820], rax
cmp qword [0x18051c820], 0
je 0x18016c97e
mov rax, qword [0x18051c820]
cmp qword [rax + 0x10], 0
je 0x18016c97e
mov rax, qword [0x18051c820]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18016c97e
mov rax, qword [0x18051c820]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18016c97e
mov rax, qword [0x18051c820]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18016c944
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18016c94b
xor eax, eax
jmp 0x18016caf9
mov rax, qword [0x18051c820]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.180186390
mov rax, qword [rsp + 0x28]
jmp 0x18016caf9
mov rax, qword [0x18051c818]
mov qword [0x18051c820], rax
jmp 0x18016c9a0
mov rax, qword [0x18051c820]
mov rax, qword [rax + 8]
mov qword [0x18051c820], rax
cmp qword [0x18051c820], 0
je 0x18016c9ed
cmp qword [0x18051c820], 0
je 0x18016c9eb
mov rax, qword [0x18051c820]
cmp qword [rax + 0x10], 0
je 0x18016c9eb
mov rax, qword [0x18051c820]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18016c9eb
mov rax, qword [0x18051c820]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18016c9eb
jmp 0x18016c91c
jmp 0x18016c98e
mov rcx, qword [rsp + 0x60]
call fcn.18016ef80
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18016cb00
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18016caf7
mov rax, qword [rsp + 0x48]
mov qword [0x18051c820], rax
mov rax, qword [0x18051c820]
mov dword [rax], 0x52727464
mov rax, qword [0x18051c820]
mov qword [rax + 0x10], 0
mov rax, qword [0x18051c820]
mov rcx, qword [0x18051c818]
mov qword [rax + 8], rcx
mov rax, qword [0x18051c820]
mov qword [0x18051c818], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18051c820]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18016caa8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18016cae2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18016ca9e
mov rax, qword [0x18051c820]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18016c91c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18016d810
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18016d857
xor al, al
jmp 0x18016d8f9
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 0x18016d881
xor al, al
jmp 0x18016d8f9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18016d8f1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18016d8f1
mov al, 1
jmp 0x18016d8f9
jmp 0x18016d8f7
xor al, al
add rsp, 0x78
ret

Function at 0x18016dc00
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18051c818]
mov qword [rsp + 0x28], rax
jmp 0x18016dc20
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18016dc4f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18016dc4d
call sub.KERNEL32.dll_GetLastError
jmp 0x18016dc51
jmp 0x18016dc12
xor eax, eax
add rsp, 0x38
ret
Function at 0x18016e4f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18051c830], eax
je 0x18016e51d
mov eax, 0x10dd
jmp 0x18016e736
cmp dword [0x18051c834], 0
je 0x18016e531
mov eax, dword [0x18051c834]
jmp 0x18016e736
cmp qword [rsp + 0x78], 0
jne 0x18016e543
mov eax, 0x57
jmp 0x18016e736
cmp qword [rsp + 0x70], 0
jne 0x18016e555
mov eax, 6
jmp 0x18016e736
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x18016e587
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x18051c834], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18051c838], rax
mov eax, dword [rsp + 0x20]
jmp 0x18016e736
mov ecx, 0x30
call fcn.1801690ac
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18016e5f9
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x18051c834], eax
cmp qword [rsp + 0x30], 0
je 0x18016e5e4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.1801690e8
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18051c838], rax
mov eax, dword [rsp + 0x20]
jmp 0x18016e736
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.18016e4c0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.18016e4c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x18016e656
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x18016e673
mov dword [rsp + 0x20], 9
cmp dword [0x18051c828], 0
je 0x18016e66e
jmp 0x18016e5ba
jmp 0x18016e5b0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x18016e6a0
mov dword [rsp + 0x20], 9
cmp dword [0x18051c828], 0
je 0x18016e69b
jmp 0x18016e5ba
jmp 0x18016e5b0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18016e6d7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18016e5b0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x18051c848]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x18051c848], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x18016e740
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18051c830], eax
je 0x18016e75b
mov eax, 0x10dd
jmp 0x18016e880
mov rax, qword [0x18051c848]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18016e805
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18016e7d0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18016e7d0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18016cf60
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.1801690e8
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18016e767
mov qword [0x18051c848], 0
call fcn.18016d9c0
mov rax, qword [0x18051c840]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18016e869
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, send
mov rcx, qword [rsp + 0x48]
call fcn.1801690e8
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18016e821
mov qword [0x18051c840], 0
mov dword [0x18051c830], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18016edb0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18051c834], 0
je 0x18016edcd
mov eax, dword [0x18051c834]
jmp 0x18016ee93
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18016ede0
xor eax, eax
jmp 0x18016ee93
mov ecx, send
call fcn.1801690ac
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18016ee4e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18016ee33
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, send
mov rcx, qword [rsp + 0x38]
call fcn.1801690e8
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18051c834], eax
mov qword [0x18051c838], 0
mov eax, dword [rsp + 0x20]
jmp 0x18016ee93
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18016ee68
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18016ee09
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18051c840]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18051c840], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18016ef90
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 0x18016efbd
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 0x18016efdd
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18016f156
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 0x18016f014
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18016f156
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18016f032
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18016f156
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 0x18016f05e
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 0x18016f13a
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.18019b590
test eax, eax
jne 0x18016f135
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0xc], 0
je 0x18016f0c3
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x48]
cmp dword [rcx + rax + 0x10], 0
jne 0x18016f0c5
jmp 0x18016f13a
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 0x18016f10b
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x727444
je 0x18016f10d
jmp 0x18016f13a
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18016f127
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 0x18016f156
jmp 0x18016f054
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18016f156
add rsp, 0x78
ret
Function at 0x18016f160
Capabilities:
Parse pe header

Disassembly:
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.180186390
jmp 0x18016f1a8
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 0x18016f1c7
jmp 0x18016f26b
cmp dword [rsp + 0x68], 0x1000
jne 0x18016f1ec
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18016f1ec
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18016f1ee
jmp 0x18016f193
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18016f224
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x18016f224
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18016f229
jmp 0x18016f193
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 0x18016f193
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x18016f26d
xor eax, eax
add rsp, 0x88
ret

Function at 0x18016f4c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180186390
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x18016f50a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18016f5d2
cmp dword [rsp + 0x60], 0x1000
jne 0x18016f52f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x18016f52f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x18016f540
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18016f5d2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18016f567
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18016f5d2
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 0x18016f59b
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18016f5d2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18016f5b6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x18016f5d2
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x18016f5d2
add rsp, 0x78
ret
Function at 0x180181d80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor ebx, ebx
mov r11, rdx
mov r9, rcx
mov r10d, ebx
cmp r8, 8
jb 0x180181dc7
mov rcx, r8
shr rcx, 3
imul rax, rcx, 0xfffffffffffffff8
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r9]
add r9, 8
xor rax, qword [r11]
add r11, 8
or r10, rax
sub rcx, 1
jne 0x180181db0
mov rdx, r10
shr rdx, 0x20
or edx, r10d
mov eax, edx
mov ecx, edx
shr eax, 8
or eax, edx
shr ecx, 0x10
and eax, 0xff00
or eax, ecx
movzx ecx, dl
shr eax, 8
or eax, ecx
test r8, r8
je 0x180181ec7
cmp r8, 8
jb 0x180181ea3
mov rdx, r8
lea r10, [r11 + 4]
and rdx, 0xfffffffffffffff8
mov rcx, r9
sub rcx, r11
xorps xmm4, xmm4
xorps xmm3, xmm3
nop word [rax + rax]
movd xmm2, dword [rcx + r10 - 4]
xorps xmm0, xmm0
movd xmm1, dword [r10 - 4]
lea r10, [r10 + 8]
punpcklbw xmm2, xmm0
add rbx, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [r10 - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + r10 - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp rbx, rdx
jb 0x180181e20
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
or eax, ecx
cmp rbx, r8
jae 0x180181ec7
sub r9, r11
lea r10, [rbx + r11]
sub r8, rbx
nop dword [rax]
movzx edx, byte [r10 + r9]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
xor edx, ecx
or eax, edx
sub r8, 1
jne 0x180181eb0
mov rbx, qword [rsp + 8]
test eax, eax
sete al
ret

Function at 0x1801a42e8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1801a41bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801a41bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801a41bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801a41bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801a41bf
cmp dword [rcx + 0x84], 0xe
jbe 0x1801a41bf
cmp dword [rcx + 0xf8], 0
je 0x1801a41bf
mov ecx, ebx
call fcn.1801a4260
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1801a4050
cmp dword [rbp + 0x20], 0
je 0x1801a420c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1801a4214
int3
xor r8d, r8d
xor edx, edx
jmp 0x1801a4158

Function at 0x1801b4fe4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1801b5004
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180192a4c
or eax, 0xffffffff
jmp 0x1801b5006
xor eax, eax
add rsp, 0x28
ret
Function at 0x140ec2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ec21df
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 0x140ec2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ec206f
add dl, dl
jne 0x140ec2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ec20f6
xor eax, eax
add dl, dl
jne 0x140ec20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ec21ad
add dl, dl
jne 0x140ec20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ec20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ec207e
mov eax, 1
add dl, dl
jne 0x140ec2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ec20fb
sub eax, ebx
mov ebx, 1
jne 0x140ec214c
mov ecx, 1
add dl, dl
jne 0x140ec212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ec213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ec2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ec207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ec2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ec2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ec215d
cmp eax, 0x7d00
jae 0x140ec219b
cmp eax, 0x500
jb 0x140ec2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ec207e
cmp eax, 0x7f
ja 0x140ec219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ec207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ec21d2
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 0x140ec207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001cca0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x20], r8
mov rax, rdx
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
call fcn.140060170
mov rcx, rax
call fcn.140122fc0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
lea rcx, [rsp + 0x40]
call fcn.140060f20
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x14001cd32
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
add rsp, 0x88
ret
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x70], rcx
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rcx]
xor rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
movabs rcx, 0x100000001b3
mov qword [rsp + 0x80], rcx
movabs rcx, 0x100000001b3
imul rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x14001ccf4

Function at 0x14001cec0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
call qword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
nop
add rsp, 0x28
ret

Function at 0x140086e9e
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
lea rdx, [0x1401c9b38]
call fcn.1400881fe
lea rdx, str.EBWebViewx64EmbeddedBrowserWebView.dll
mov rcx, rsi
call fcn.1400881fe
mov rcx, rsi
call fcn.1400882de
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140086f28
mov rcx, rsi
call fcn.1400882de
mov rsi, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rax
mov edx, 0x100021
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140086f2c
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x140086f4e
xor eax, eax
jmp 0x140086f55
lea rcx, str.WebView2:_skipped_inaccessible
mov rbx, qword [sym.imp.kernel32.dll_OutputDebugStringA]
call rbx
mov rcx, rsi
call qword [sym.imp.kernel32.dll_OutputDebugStringW]
lea rcx, [0x1401c9b9e]
call rbx
cmp rdi, 0xffffffffffffffff
setne al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret