joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100020b5c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rcx
mov ecx, dword [rcx + 0x28]
mov r9d, ecx
imul r9d, dword [rdi + 0x18]
xor eax, eax
lea r8, [0x100029eb0]
mov rdx, r8
cmp dword [rdx], 0
je 0x100020bac
cmp dword [rdx], r9d
jae 0x100020ba8
inc eax
add rdx, 4
cmp eax, 0x1a
jb 0x100020b91
jmp 0x100020bac
mov r9d, dword [r8 + rax*4]
mov dword [rsp + 0x28], ecx
mov eax, dword [rdi + 0x2c]
mov dword [rsp + 0x20], eax
mov r8, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x58]
call fcn.1000097e0
nop
mov rax, rdi
mov qword [rsp + 0x30], rax
and dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 1
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
test rax, rax
je 0x100020c94
lea rcx, [rsp + 0x30]
call fcn.10000e46c
test eax, eax
je 0x100020c94
mov rdx, qword [rsp + 0x50]
mov rax, rdx
neg rax
sbb rcx, rcx
and rcx, qword [rsp + 0x48]
je 0x100020c25
mov rcx, qword [rcx + 0x10]
neg rdx
sbb rax, rax
and rax, qword [rsp + 0x48]
jne 0x100020c3b
lea r8, [0x10003a238]
jmp 0x100020c3f
lea r8, [rax + 8]
mov r8, qword [r8]
mov rdx, rcx
lea rcx, [rsp + 0x58]
call fcn.10000c924
test eax, eax
je 0x100020c5a
mov rax, qword [rsp + 0x30]
jmp 0x100020bf1
mov edx, 0x8007000e
lea rcx, [rsp + 0x30]
call fcn.10001c3a0
lea rcx, [rsp + 0x98]
mov rdx, rax
mov r8d, 0x20
call sub.msvcrt.dll_memcpy
lea rdx, [0x100030eb8]
lea rcx, [rsp + 0x98]
call sub.msvcrt.dll__CxxThrowException
int3
mov rax, qword [rsp + 0x60]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x10], rax
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x18], eax
mov eax, dword [rsp + 0x74]
mov dword [rdi + 0x1c], eax
mov eax, dword [rsp + 0x78]
mov dword [rdi + 0x20], eax
mov eax, dword [rsp + 0x7c]
mov dword [rdi + 0x24], eax
mov eax, dword [rsp + 0x80]
mov dword [rdi + 0x28], eax
mov eax, dword [rsp + 0x84]
mov dword [rdi + 0x2c], eax
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x100020d00
lea rbx, [rcx - 8]
lea r9, [0x10000e2f8]
mov r8d, dword [rbx]
mov edx, 0x20
call fcn.10000e7ec
mov rcx, rbx
call qword [case.0x10000aeca.0]
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x30], rax
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x58]
call fcn.10000e2b0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret

Function at 0x100021a20
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0xb0]
test rcx, rcx
jne 0x100021a3f
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100021a60
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RegDeleteKeyExW]
test eax, eax
je 0x100021a53
mov ecx, eax
jmp 0x100021a35
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
add rsp, 0x28
ret
Function at 0x100021a6c
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x3c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1000390b0]
xor rax, rsp
mov qword [rsp + 0x3b8], rax
mov rbx, rdx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rsi, [0x1000298a0]
mov qword [rsp + 0x58], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x60], rbx
lea rcx, [0x100029918]
mov qword [rsp + 0x58], rcx
lea r8d, [rax - 1]
movsxd rcx, r8d
test r8d, r8d
js 0x100021af9
cmp word [rbx + rcx*2], 0x2f
je 0x100021af9
cmp word [rbx + rcx*2], 0x5c
je 0x100021af9
dec r8d
sub rcx, 1
jns 0x100021ae2
inc r8d
sub eax, r8d
mov r9d, eax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.100003ca0
mov qword [rsp + 0x80], rsi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0x21
mov edx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
lea rdx, [rcx + rdx*2]
mov r8d, dword [rsp + 0x4c]
lea rcx, [rsp + 0x80]
call fcn.100004990
lea rbx, [0x1000297b8]
mov qword [rsp + 0x80], rbx
mov r9d, 0xf003f
mov r8, qword [rsp + 0x88]
mov rdx, rdi
lea rcx, [rsp + 0xe0]
call fcn.100008b20
nop
mov dword [rsp + 0x40], 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x190]
test rcx, rcx
jne 0x100021baf
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100021bed
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x1a0]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100021c3d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rcx, [rsp + 0xe0]
call fcn.1000032d0
nop
mov rdx, qword [rsp + 0x88]
mov rcx, rdi
call fcn.100021a20
mov edi, eax
mov qword [rsp + 0x80], rbx
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x100021c36
lea rax, [rsp + 0x98]
cmp rcx, rax
je 0x100021c36
call qword [sym.imp.msvcrt.dll_free]
nop
mov eax, edi
jmp 0x100021cd3
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0xe0]
call fcn.100021a6c
test eax, eax
jne 0x100021b85
lea rcx, [rsp + 0xe0]
call fcn.1000032d0
nop
mov qword [rsp + 0x80], rbx
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x100021c90
lea rax, [rsp + 0x98]
cmp rcx, rax
je 0x100021c90
call qword [sym.imp.msvcrt.dll_free]
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x58], rsi
xor eax, eax
jmp 0x100021cd3
mov rcx, qword [rsp + 0x3b8]
xor rcx, rsp
call fcn.100001c80
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1000225f0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rcx, [0x10003a1e4]
movzx esi, r9w
mov rbp, r8
mov edi, edx
call fcn.100022dc4
test al, al
jne 0x10002265e
mov rcx, rbx
call fcn.1000225a0
test eax, eax
je 0x100022663
and qword [rsp + 0x40], 0
movzx r8d, word [rbx + 0x68]
mov rcx, qword [rbx + 0x60]
mov qword [rsp + 0x38], rbp
and dword [rsp + 0x30], 0
mov edx, 1
mov r9d, edi
mov word [rsp + 0x28], si
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x100022a08
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rdi
sub rsp, 0x60
xor ebx, ebx
mov dword [rax - 0x28], 0x14
lea rax, [rax - 0x28]
mov qword [rsp + 0x30], rax
mov dword [rax + 8], ebx
mov qword [rax + 0xc], rbx
mov dword [rax + 0x14], ebx
mov dword [rax + 0x18], ebx
lea rax, [rsp + 0x48]
mov rdi, rcx
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 8]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
cmp eax, ebx
jne 0x100022a70
cmp dword [rsp + 0x40], 0x14
jne 0x100022a70
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.100022998
mov bl, al
mov al, bl
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

Function at 0x100022a88
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
lea rax, [r11 - 0x18]
mov rdi, rcx
xor ebx, ebx
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleState
xor r8d, r8d
lea r9d, [rbx + 2]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100022b01
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 3]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [rbx + 1]
movzx ecx, bl
cmp eax, ebx
cmove ecx, edx
mov bl, cl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x100022b20
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x1f0
mov rax, qword [0x1000390b0]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
cmp dword [rcx], 2
mov rbx, rcx
jne 0x100022d3b
cmp dword [rcx + 0x10], 0
jle 0x100022d3b
mov r9d, dword [rcx + 0x14]
xor edi, edi
xor esi, esi
and dword [rsp + 0x5c], esi
lea r13d, [rdi + 0x10]
lea r8, str._08x
lea rcx, [rsp + 0x80]
xor ebp, ebp
mov rdx, r13
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x54], rsi
mov dword [rsp + 0x64], r9d
mov dword [rsp + 0x60], ebp
call fcn.10000974c
test eax, eax
js 0x100022bc4
lea r8, [rsp + 0x80]
lea rdx, str.SoftwareMicrosoftWindows_SearchTracingEventThrottleLastReported
lea rcx, [rsp + 0x50]
call fcn.100022a08
mov ebp, dword [rsp + 0x60]
mov rsi, qword [rsp + 0x54]
mov edi, dword [rsp + 0x50]
jmp 0x100022bc6
xor al, al
test al, al
je 0x100022bdd
cmp edi, dword [rbx]
jne 0x100022bdd
cmp rsi, qword [rbx + 4]
jne 0x100022bdd
cmp ebp, dword [rbx + 0x10]
je 0x100022d3b
mov r9d, dword [rbx + 0x14]
lea r8, [0x10002f278]
lea rcx, [rsp + 0xc0]
mov rdx, r13
call fcn.10000974c
test eax, eax
js 0x100022d3b
mov r9d, dword [rbx + 0x10]
lea r8, [0x10002f1d0]
lea rcx, [rsp + 0xa0]
mov rdx, r13
call fcn.10000974c
test eax, eax
js 0x100022d3b
mov rax, qword [rbx + 4]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
imul rax, rax, 0x2710
mov dword [rsp + 0x68], eax
shr rax, 0x20
mov dword [rsp + 0x6c], eax
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x100022d3b
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x100022d3b
lea rax, [rsp + 0xe0]
lea r8, [rsp + 0x50]
xor r9d, r9d
xor edx, edx
mov ecx, 0x800
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jle 0x100022d3b
lea rax, [0x100029ba0]
lea rdx, str.Windows_Search_Service
xor ecx, ecx
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x98], rax
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x100022d3b
and qword [rsp + 0x40], 0
mov ecx, 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov word [rsp + 0x28], cx
and qword [rsp + 0x20], 0
lea edx, [rcx - 2]
lea r8d, [rcx - 3]
mov rcx, rbx
mov r9d, 0x800003f7
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.100001c80
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x100022f30
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 0x18]
mov r8, rcx
mov r9d, 0x10
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x20], rdx
and qword [r11 - 0x28], 0
lea rdx, str.SoftwareMicrosoftWindows_SearchTracing
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x60], 4
call qword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
add rsp, 0x48
ret

Function at 0x1000243b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbp, r8
mov esi, edx
mov rbx, rcx
call sub.KERNEL32.dll_GetLastError
mov r12d, eax
test sil, 2
je 0x1000243e7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test sil, 1
je 0x10002448f
mov rdx, qword [rbx + 0xc0]
test rdx, rdx
je 0x10002448f
and dword [rsp + 0x28], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov r8, rbp
repne scasb al, byte [rdi]
mov eax, dword [rbx + 0xc8]
not rcx
add rax, rdx
mov edx, 9
lea r9d, [rcx - 1]
lea rdi, [rcx - 1]
mov ecx, 0x4e4
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [rbx + 0xc8]
movsxd r13, eax
lea rax, [rcx + r13*2]
cmp rax, 0x7ffe2
jbe 0x10002445a
mov rcx, rbx
call fcn.100024904
mov eax, dword [rbx + 0xc8]
mov r9d, edi
mov r8, rbp
add rax, qword [rbx + 0xc0]
mov edx, 9
mov ecx, 0x4e4
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
add dword [rbx + 0xc8], eax
test sil, 8
je 0x1000244b0
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, [0x10002f7fc]
mov r8, rbp
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
test sil, 4
je 0x1000244d1
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, [0x10002f7fc]
mov r8, rbp
add rcx, 0x30
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, r12d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
Function at 0x1000244fc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov edi, r9d
mov rsi, r8
mov r12d, edx
mov rbx, rcx
call sub.KERNEL32.dll_GetLastError
mov r13d, eax
test r12b, 2
je 0x100024537
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebp, 1
test bpl, r12b
je 0x1000245f7
cmp qword [rbx + 0xc0], 0
je 0x1000245f7
test edi, edi
jne 0x10002456c
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, rbp
mov rdi, rcx
mov ecx, dword [rbx + 0xc8]
add edi, edi
mov edx, 0x7ffe2
lea eax, [rcx + rdi]
cmp eax, edx
jbe 0x1000245d9
cmp edi, edx
jbe 0x10002458b
cmp ecx, 0x10
je 0x100024597
xor ebp, ebp
mov rcx, rbx
call fcn.100024904
test ebp, ebp
jne 0x1000245d9
lea rdx, str.d:win7sp1_gdrendusermssearch2common_tracer_tracmain.h
lea rcx, [rsp + 0x40]
mov r9d, 0x80070057
mov r8d, 0xe6
call fcn.10001c3e0
lea rcx, [rsp + 0x20]
mov r8d, 0x20
mov rdx, rax
call sub.msvcrt.dll_memcpy
lea rdx, [0x100030eb8]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__CxxThrowException
int3
mov ecx, dword [rbx + 0xc8]
mov r8d, edi
mov rdx, rsi
add rcx, qword [rbx + 0xc0]
call sub.msvcrt.dll_memcpy
add dword [rbx + 0xc8], edi
test r12b, 8
je 0x100024618
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, [0x10002f800]
mov r8, rsi
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
test r12b, 4
je 0x100024639
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, [0x10002f800]
mov r8, rsi
add rcx, 0x30
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, r13d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
Function at 0x100024904
Capabilities:
Copy file
Delete file

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rbx, rcx
mov edx, dword [rcx + 0x50]
sub edx, dword [rcx + 0x48]
mov r8, qword [rcx + 0x48]
add rcx, 0x60
call fcn.1000230f4
lea r8, [0x10002f7f0]
mov edx, 1
lea rcx, [rbx + 0x60]
call fcn.100023178
mov edx, dword [rbx + 0x38]
sub edx, dword [rbx + 0x30]
mov r8, qword [rbx + 0x30]
lea rcx, [rbx + 0x60]
call fcn.100023178
lea r8, str..xml
mov edx, 4
lea rcx, [rbx + 0x60]
call fcn.100023178
lea rdx, [0x10002f838]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.100024664
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000249ab
cmp rcx, 0xffffffffffffffff
je 0x1000249ab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xc0]
test rcx, rcx
je 0x1000249ca
mov eax, dword [rbx + 0xcc]
test eax, eax
je 0x1000249ca
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
xor r8d, r8d
mov rdx, qword [rbx + 0x78]
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [rbx + 0xa8]
cmp dword [rbx + 0xac], eax
jne 0x100024a78
mov eax, dword [rbx + 0xac]
test eax, eax
jne 0x1000249fb
xor esi, esi
jmp 0x100024a28
mov ecx, dword [rbx + 0xb0]
mov rsi, rcx
imul rsi, rsi, 0x53
add rsi, qword [rbx + 0xb8]
dec eax
mov dword [rbx + 0xac], eax
lea eax, [rcx + 1]
xor edx, edx
div dword [rbx + 0xa8]
mov dword [rbx + 0xb0], edx
mov edx, dword [rbx + 0x50]
sub edx, dword [rbx + 0x48]
mov r8, qword [rbx + 0x48]
lea rcx, [rbx + 0x60]
call fcn.1000230f4
lea r8, [0x10002f7f0]
mov edx, 1
lea rcx, [rbx + 0x60]
call fcn.100023178
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
mov r8, rsi
lea rcx, [rbx + 0x60]
call fcn.100023178
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r9, qword [rbx + 0x90]
mov eax, dword [rbx + 0xa8]
cmp dword [rbx + 0xac], eax
je 0x100024aef
mov edx, dword [rbx + 0xb4]
imul rdx, rdx, 0x53
mov rax, qword [rbx + 0xb8]
mov byte [rdx + rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r9
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
cmp ecx, 0x52
ja 0x100024ad3
mov r8d, ecx
mov ecx, dword [rbx + 0xb4]
imul rcx, rcx, 0x53
add rcx, qword [rbx + 0xb8]
mov rdx, r9
call sub.msvcrt.dll_memcpy
inc dword [rbx + 0xac]
mov eax, dword [rbx + 0xb4]
inc eax
xor edx, edx
div dword [rbx + 0xa8]
mov dword [rbx + 0xb4], edx
mov rdx, qword [rbx + 0xc0]
lea rdi, [rdx + 0x10]
lea rcx, [rdx + 0x80000]
cmp rdi, rcx
jae 0x100024b1a
sub rcx, rdi
dec rcx
shr rcx, 2
inc rcx
mov eax, 0x200020
rep stosd dword [rdi], eax
movdqu xmm0, xmmword [str._r_n__LOG_]
movdqu xmmword [rdx + 0x7fff0], xmm0
mov dword [rbx + 0xc8], 0x10
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x100024cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x100024d86
test rdx, rdx
je 0x100024d86
xor r9d, r9d
lea rdx, [0x10002fac8]
lea esi, [r9 + 1]
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x100024d07
xor ebx, ebx
jmp 0x100024d16
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
lea rdx, [0x10002fac8]
xor r9d, r9d
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x100024d3d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rbx, rbx
je 0x100024d7b
test rax, rax
je 0x100024d7b
mov ecx, 0xfecdfecd
cmp dword [rbx], ecx
jne 0x100024d75
cmp dword [rax], ecx
jne 0x100024d75
mov rdx, qword [rbx + 0x1c]
cmp rdx, qword [rax + 0x1c]
jne 0x100024d6c
mov rdx, qword [rbx + 0x24]
cmp rdx, qword [rax + 0x24]
jne 0x100024d6c
xor eax, eax
jmp 0x100024d71
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100024d77
xor esi, esi
mov eax, esi
jmp 0x100024d88
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x100025948
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1000259b3
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x1000259d3
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140ea1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ea11df
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 0x140ea1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ea106f
add dl, dl
jne 0x140ea1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ea10f6
xor eax, eax
add dl, dl
jne 0x140ea10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ea11ad
add dl, dl
jne 0x140ea10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ea10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ea107e
mov eax, 1
add dl, dl
jne 0x140ea1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ea10fb
sub eax, ebx
mov ebx, 1
jne 0x140ea114c
mov ecx, 1
add dl, dl
jne 0x140ea112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ea113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ea1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ea107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ea1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ea1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ea115d
cmp eax, 0x7d00
jae 0x140ea119b
cmp eax, 0x500
jb 0x140ea1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ea107e
cmp eax, 0x7f
ja 0x140ea119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ea107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ea11d2
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 0x140ea107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001050
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 0x180001083
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 0x1800010c7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1800010c2
cmp rbx, r11
jae 0x1800010c7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1800010b0
cmp rbx, r11
jb 0x1800010cb
xor eax, eax
jmp 0x1800010d7
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