joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008d520
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1890]
test rcx, rcx
je 0x14008d603
mov eax, dword [rbx]
test eax, eax
je 0x14008d603
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x14008d55f
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x14008d57d
mov r8d, 0x7fff
lea rdx, [rbx + 0x189c]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x14008d57d
mov word [rbx + 0x189c], si
test byte [rbx], 4
je 0x14008d596
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x14008d5d4
mov rcx, qword [rbx + 0x1890]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14008d5d4
movzx r9d, byte [rbx + 0x1850]
lea rdx, [rbx + 0x11a9c]
mov ecx, dword [rsp + 0x30]
call fcn.14005cb10
test eax, eax
jne 0x14008d5d4
mov word [rbx + 0x11a9c], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x14008d603
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1189a]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x14008de50
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11cd8
call fcn.1400bc4c0
sub rsp, rax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14008df0a
xor r9d, r9d
mov byte [rsp + 0x18a0], dl
lea rcx, [0x1400e70b8]
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x1038], rcx
lea rdx, [rsp + 0x20]
xorps xmm0, xmm0
mov byte [rsp + 0x1871], r9b
lea rcx, [0x14008e750]
mov dword [rsp + 0x1874], r9d
mov qword [rsp + 0x1878], r9
movdqa xmmword [rsp + 0x1880], xmm0
mov dword [rsp + 0x1890], r9d
mov qword [rsp + 0x18a8], r9
mov qword [rsp + 0x18b0], r9
mov qword [rsp + 0x1898], rax
mov dword [rsp + 0x18a4], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1878], 0
je 0x14008df0a
mov rax, qword [0x1400faa58]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14008df0a
mov edx, 1
call fcn.1400016e0
mov eax, 1
add rsp, 0x11cd8
ret
Function at 0x14008df20
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
movzx r14d, dl
mov rbx, rcx
jne 0x14008df4a
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1400faa58]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.14008e4f0
cmp byte [rbx], 0
mov rbp, rax
je 0x14008df81
test rax, rax
jne 0x14008df8a
jmp 0x14008e022
test rbp, rbp
jne 0x14008e01d
test rdi, rdi
je 0x14008e01d
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016e0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14008dfff
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rsi + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x14008dfff
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016e0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x14008dfd0
mov rax, qword [0x1400faa58]
mov rsi, qword [rsp + 0x38]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x14008e01d
mov edx, 1
call fcn.1400016e0
cmp byte [rbx], 0
je 0x14008e036
xor r9d, r9d
mov r8, rbp
movzx edx, r14b
mov rcx, rbx
call fcn.14008e060
jmp 0x14008e042
movzx edx, r14b
mov rcx, rbx
call fcn.14008e250
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14008e250
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x11ce0
call fcn.1400bc4c0
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx edi, dl
mov rbx, rcx
je 0x14008e414
xor edx, edx
call fcn.14008e430
test eax, eax
jne 0x14008e290
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
mov qword [rsp + 0x11cf0], rbp
mov qword [rsp + 0x11cf8], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1400faa58]
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.14008e4f0
mov ecx, dword [0x1401032b4]
xor ebp, ebp
test rax, rax
mov dword [rsp + 0x30], ebp
lea rax, [0x1400e70b8]
mov dword [rsp + 0x1884], ebp
cmovne ecx, ebp
mov qword [rsp + 0x1048], rax
mov dword [0x1401032b4], ecx
mov qword [rsp + 0x1888], rbp
mov qword [rsp + 0x1890], rbp
mov qword [rsp + 0x18b8], rbp
mov qword [rsp + 0x18c0], rbp
test dil, dil
je 0x14008e31a
mov byte [rsp + 0x1881], bpl
test ecx, ecx
je 0x14008e322
mov byte [rsp + 0x1881], 1
mov rax, qword [0x1401032c0]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1898], rax
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x18a0], ecx
lea rcx, [0x14008e610]
mov qword [rsp + 0x18a8], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x1888]
test rax, rax
je 0x14008e3d8
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rcx, [0x14008cda0]
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_EnumWindows]
mov r10, qword [rsp + 0x28]
test r10, r10
je 0x14008e3a0
mov rcx, qword [rsp + 0x1888]
call fcn.14008db60
mov qword [rsp + 0x1888], r10
jmp 0x14008e3a8
mov r10, qword [rsp + 0x1888]
mov rcx, r10
call fcn.14008ba80
mov rcx, qword [rsp + 0x1888]
call fcn.14008db60
mov rcx, qword [0x1400faa58]
mov ecx, dword [rcx + 0x74]
cmp ecx, 0xffffffff
jle 0x14008e404
mov edx, 1
call fcn.1400016e0
jmp 0x14008e404
mov eax, dword [0x1401032b4]
test eax, eax
je 0x14008e404
cmp eax, 1
mov dword [0x1401032b4], ebp
setg al
test al, al
je 0x14008e404
mov rcx, rsi
call fcn.14008db60
xor edx, edx
mov rcx, rbx
call fcn.14008e250
mov rsi, qword [rsp + 0x11cf8]
mov rbp, qword [rsp + 0x11cf0]
mov eax, 1
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
Function at 0x1400ab0fc
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400aaed0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400aaed0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400aaed0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400aaed0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400aaed0
cmp dword [rcx + 0x84], 0xe
jbe 0x1400aaed0
cmp dword [rcx + 0xf8], esi
je 0x1400aaed0
mov ecx, r14d
call fcn.1400ab018
mov ecx, 2
call fcn.1400b4334
nop
cmp byte [0x1400fda40], 0
jne 0x1400aaf9a
mov r15d, 1
mov eax, r15d
xchg dword [0x1400fda34], eax
test ebx, ebx
jne 0x1400aaf43
mov rdi, qword [0x1400fa018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400fda38]
cmp rcx, rax
je 0x1400aaf3a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140015d70]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400fdc80]
jmp 0x1400aaf4f
cmp ebx, r15d
jne 0x1400aaf55
lea rcx, [0x1400fdc98]
call fcn.1400b0f50
nop
test ebx, ebx
jne 0x1400aaf6c
lea rdx, [0x1400c2f30]
lea rcx, [0x1400c2f10]
call fcn.1400b12e8
lea rdx, [0x1400c2f40]
lea rcx, [0x1400c2f38]
call fcn.1400b12e8
movzx eax, byte [0x1400fda40]
test esi, esi
cmove eax, r15d
mov byte [0x1400fda40], al
jmp 0x1400aaf9a
mov ecx, 2
call fcn.1400b4388
test esi, esi
jne 0x1400aafb1
mov ecx, r14d
call fcn.1400aafcc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400aae60
Function at 0x140003e04
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 5]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 5
jb 0x140003e0a
mov rax, rcx
ret

Function at 0x140003e20
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x30]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x18
jb 0x140003e26
mov rax, rcx
ret

Function at 0x140003e44
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xa]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 5
jb 0x140003e4a
mov rax, rcx
ret
Function at 0x140001738
Capabilities:
Hash data via wincrypt

Disassembly:
insb byte [rdi], dx
cmp dword [rax], eax
add bh, bh
jmp qword [sym.imp.OLEAUT32.dll_SysStringByteLen]
invalid
invalid

Function at 0x140001740
Capabilities:
Hash data via wincrypt

Disassembly:
insb byte [rdi], dx
cmp dword [rax], eax
add bh, bh
jmp qword [sym.imp.OLEAUT32.dll_SysStringByteLen]
invalid
invalid

Function at 0x1400033e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
lea rax, [fcn.1400033e0]
mov qword [rsp + 0x30], 0x7d0b50e7
mov qword [rsp + 0x18], 0xf8e24cb
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x28]
add rcx, qword [rsp + 0x28]
mov qword [rsp + 0x28], rcx
cmp word [rax], 0x5a4d
je 0x140003433
jmp 0x140003482
mov rax, qword [rsp + 0x10]
add rsp, 0x38
ret
mov eax, 0xcad71ea
mov ecx, eax
mov rdx, qword [rsp + 0x10]
add rdx, 0x3c
mov qword [rsp], rdx
mov rdx, qword [rsp + 0x18]
and rdx, 0x626c19d0
mov qword [rsp + 8], rdx
cmp rcx, qword [rsp + 0x18]
je 0x140003482
mov eax, 0x6ee8ed0e
mov ecx, eax
cmp rcx, qword [rsp + 8]
je 0x140003482
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x10]
movsxd rax, dword [rax]
cmp dword [rcx + rax], 0x4550
je 0x140003429
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
shl rax, cl
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
imul rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x10]
add rax, 0xfffffffffffff000
and rax, 0xfffffffffffff000
mov qword [rsp + 0x20], rax
jmp 0x140003402
Function at 0x1416d0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1416d01df
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 0x1416d0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416d006f
add dl, dl
jne 0x1416d0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416d00f6
xor eax, eax
add dl, dl
jne 0x1416d00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416d01ad
add dl, dl
jne 0x1416d00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416d00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416d00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416d00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416d00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1416d007e
mov eax, 1
add dl, dl
jne 0x1416d0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416d0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416d00fb
sub eax, ebx
mov ebx, 1
jne 0x1416d014c
mov ecx, 1
add dl, dl
jne 0x1416d012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416d013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416d0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416d007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1416d0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416d0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416d015d
cmp eax, 0x7d00
jae 0x1416d019b
cmp eax, 0x500
jb 0x1416d0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416d007e
cmp eax, 0x7f
ja 0x1416d019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416d007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416d01d2
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 0x1416d007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001d2e0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14001d31a
mov qword [rsp + 0x30], 0
jmp 0x14001d32f
mov edx, 0x200
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jbe 0x14001d359
mov rax, qword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
test eax, eax
jne 0x14001d359
mov rax, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x48
ret

Function at 0x140022030
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
jne 0x14002204a
xor eax, eax
jmp 0x1400220a8
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 5
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp qword [rsp + 0x20], 0
je 0x140022080
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x140022084
xor eax, eax
jmp 0x1400220a8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400220a3
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1400220a8
mov eax, 1
add rsp, 0x38
ret

Function at 0x1400224f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx r9d, word [0x1400d0bc0]
mov r8, qword [rsp + 0x50]
mov edx, 5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002254c
mov r9w, 0x409
mov r8, qword [rsp + 0x50]
mov edx, 5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002256b
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
jmp 0x140022574
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x140022580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx r9d, word [0x1400d0bc0]
mov r8, qword [rsp + 0x50]
mov edx, 5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400225dc
mov r9w, 0x409
mov r8, qword [rsp + 0x50]
mov edx, 5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400225fb
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
jmp 0x140022604
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x140022610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx r9d, word [0x1400d0bc0]
mov r8, qword [rsp + 0x50]
mov edx, 5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002266c
mov r9w, 0x409
mov r8, qword [rsp + 0x50]
mov edx, 5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002268b
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
jmp 0x140022694
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x1400226a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x80]
mov word [rdx + rax], cx
xor edx, edx
mov eax, dword [rsp + 0x78]
mov ecx, 0x10
div ecx
inc eax
mov dword [rsp + 0x34], eax
movzx eax, word [rsp + 0x34]
movzx r9d, word [0x1400d0bc0]
mov r8d, eax
mov edx, 6
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x180]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14002273e
movzx eax, word [rsp + 0x34]
mov r9w, 0x409
mov r8d, eax
mov edx, 6
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x180]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14002274d
xor eax, eax
jmp 0x1400228be
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x180]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140022778
xor eax, eax
jmp 0x1400228be
mov dword [rsp + 0x3c], 0
xor edx, edx
mov eax, dword [rsp + 0x78]
mov ecx, 0x10
div ecx
mov eax, edx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x30], 0
jmp 0x1400227a7
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10
jge 0x1400228ba
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
test eax, eax
je 0x1400228a7
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x1400227df
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x38], eax
jmp 0x1400227e7
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x48], eax
jne 0x140022892
mov rax, qword [rsp + 0x88]
dec rax
mov r9, rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov rax, qword [rsp + 0x88]
dec rax
movsxd rcx, dword [rsp + 0x20]
cmp rax, rcx
jae 0x14002285b
mov rax, qword [rsp + 0x88]
dec rax
mov qword [rsp + 0x50], rax
jmp 0x140022865
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x88], rax
xor eax, eax
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov word [rcx + rdx*2], ax
mov dword [rsp + 0x3c], 1
jmp 0x1400228ba
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x28], rax
jmp 0x1400228b5
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
jmp 0x14002279d
mov eax, dword [rsp + 0x3c]
add rsp, 0x68
ret
Function at 0x14002a250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002a27a
xor eax, eax
jmp 0x14002a27f
mov eax, 1
add rsp, 0x38
ret

Function at 0x14002a3d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx r9d, word [0x1400d0bc0]
mov r8, qword [rsp + 0x50]
mov edx, 5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002a42c
mov r9w, 0x409
mov r8, qword [rsp + 0x50]
mov edx, 5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002a44b
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
jmp 0x14002a454
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x14002b0d0
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x68], 0
mov rax, qword [rsp + 0xb0]
add rax, 0x448
mov rcx, rax
call fcn.140042eb0
mov rax, qword [rsp + 0xb0]
add rax, 0x428
mov rcx, rax
call fcn.14002a250
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x14002b120
jmp 0x14002b2fb
mov rax, qword [rsp + 0xb0]
add rax, 0x428
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov dx, 0x5c
mov rcx, qword [rsp + 0x70]
call sub.VCRUNTIME140.dll_wcsrchr
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14002b165
mov dword [rsp + 0x20], 0xffffffff
jmp 0x14002b17f
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
inc eax
mov rcx, qword [rsp + 0xb0]
add rcx, 0x428
mov r8d, eax
lea rdx, [rsp + 0x30]
call fcn.140022440
nop
lea rax, str.wbxLog.wbt
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14002b1c8
mov dword [rsp + 0x24], 0
jmp 0x14002b1d7
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x24], eax
lea r8, str.wbxLog.wbt
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
call fcn.140021730
mov eax, dword [rsp + 0x28]
inc eax
mov rcx, qword [rsp + 0xb0]
add rcx, 0x428
mov r8d, eax
lea rdx, [rsp + 0x38]
call fcn.140022440
nop
lea rax, str.Log.zip
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14002b22d
mov dword [rsp + 0x2c], 0
jmp 0x14002b23c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x2c], eax
lea r8, str.Log.zip
mov edx, dword [rsp + 0x2c]
lea rcx, [rsp + 0x38]
call fcn.140021730
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x428]
mov qword [rsp + 0x80], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call fcn.14002d2e0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xb0]
add rax, 0x448
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.140042e20
nop
lea rcx, [rsp + 0x38]
call fcn.1400202f0
nop
lea rcx, [rsp + 0x30]
call fcn.1400202f0
add rsp, 0xa8
ret