joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180056290
Capabilities:
Hash data with crc32

Disassembly:
push r13
push r14
sub rsp, 0x38
mov r13, qword [0x180103648]
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdi
mov rdi, rcx
mov qword [rsp + 0x28], r12
test rdx, rdx
jne 0x1800562d9
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1800562d0
test r13, r13
je 0x1800562e5
inc dword [r13 + 0x3b0]
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x58], rax
mov r14, rax
lea r12, [rax + rbx]
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
mov byte [r12], 0
xor esi, esi
mov rdi, r14
cmp r14, r12
jae 0x1800564aa
mov qword [rsp + 0x20], r15
movzx eax, byte [rdi]
cmp al, 0xa
je 0x1800564f4
cmp al, 0xd
je 0x1800564f4
mov rbx, rdi
cmp rdi, r12
jae 0x180056353
nop
movzx eax, byte [rbx]
cmp al, 0xa
je 0x180056353
cmp al, 0xd
je 0x180056353
inc rbx
cmp rbx, r12
jb 0x180056340
mov byte [rbx], 0
movzx eax, byte [rdi]
cmp al, 0x3b
je 0x180056493
cmp al, 0x5b
jne 0x18005647a
cmp rbx, rdi
jbe 0x18005647a
cmp byte [rbx - 1], 0x5d
lea r14, [rbx - 1]
jne 0x18005647a
lea rsi, [rdi + 1]
mov byte [r14], 0
mov r8, r14
mov rcx, rsi
sub r8, rsi
mov edx, 0x5d
call sub.VCRUNTIME140.dll_memchr
mov r15, rax
test rax, rax
je 0x1800563c2
lea rcx, [rax + 1]
mov edx, 0x5b
sub r14, rcx
mov r8, r14
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1800563c2
mov byte [r15], 0
jmp 0x1800563cc
lea rsi, str.Window
mov rax, rdi
movzx r9d, byte [rsi]
lea r11, [rax + 1]
mov r10, qword [0x180103648]
mov r14d, 0xffffffff
lea r8, [rsi + 1]
mov eax, r14d
test r9b, r9b
je 0x180056426
nop dword [rax]
cmp r9b, 0x23
jne 0x180056403
cmp byte [r8], r9b
jne 0x180056403
cmp byte [r8 + 1], r9b
cmove eax, r14d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
lea rcx, [0x180083450]
inc r8
xor eax, dword [rcx + rdx*4]
test r9b, r9b
jne 0x1800563f0
mov r8d, dword [r10 + 0x2f08]
xor ecx, ecx
not eax
test r8d, r8d
jle 0x180056450
mov r9, qword [r10 + 0x2f10]
lea rdx, [r9 + 8]
cmp dword [rdx], eax
je 0x180056456
inc ecx
add rdx, 0x30
cmp ecx, r8d
jl 0x180056441
xor esi, esi
xor ebp, ebp
jmp 0x180056493
movsxd rax, ecx
lea rsi, [rax + rax*2]
shl rsi, 4
add rsi, r9
je 0x180056452
mov rax, qword [rsi + 0x10]
mov r8, r11
mov rdx, rsi
mov rcx, r13
call rax
mov rbp, rax
jmp 0x180056493
test rsi, rsi
je 0x180056493
test rbp, rbp
je 0x180056493
mov r9, rdi
mov r8, rbp
mov rdx, rsi
mov rcx, r13
call qword [rsi + 0x18]
lea rdi, [rbx + 1]
cmp rdi, r12
jb 0x180056323
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
test r14, r14
je 0x1800564da
mov rax, qword [0x180103648]
test rax, rax
je 0x1800564da
dec dword [rax + 0x3b0]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [r13 + 0x2eec], 1
add rsp, 0x38
pop r14
pop r13
ret
inc rdi
jmp 0x180056323
Function at 0x180056500
Capabilities:
Write file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov rbx, qword [0x180103648]
xor r15d, r15d
mov r14, rcx
mov dword [rbx + 0x2ef0], r15d
test rcx, rcx
je 0x18005662b
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
lea rdi, [rbx + 0x2ef8]
mov dword [rbx + 0x2ef0], r15d
mov ecx, dword [rdi + 4]
test ecx, ecx
jns 0x180056564
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
mov rcx, rdi
test eax, eax
cmovg edx, eax
call fcn.180057610
mov dword [rdi], r15d
cmp dword [rdi + 4], r15d
jne 0x18005657a
mov edx, 8
mov rcx, rdi
call fcn.180057610
movsxd rcx, dword [rdi]
mov ebp, r15d
mov rax, qword [rdi + 8]
mov byte [rcx + rax], r15b
inc dword [rdi]
cmp dword [rbx + 0x2f08], r15d
jle 0x1800565c5
mov rsi, r15
nop word [rax + rax]
mov r9, qword [rbx + 0x2f10]
mov r8, rdi
add r9, rsi
mov rcx, rbx
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add rsi, 0x30
cmp ebp, dword [rbx + 0x2f08]
jl 0x1800565a0
mov eax, dword [rdi]
lea rdx, [0x1800d4290]
test eax, eax
lea rdi, [0x18010352c]
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f00]
cmove ecx, r15d
test rax, rax
movsxd rsi, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.180034580
mov rbp, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x180056621
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x180061c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x180061e21
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x180061d00
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.180061650
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.180060c50
mov dword [rbx + 0x80], 0
jmp 0x180061e0d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.18005fa70
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18007b550
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18007b58a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18007b58f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18007b5d8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18007f840]
cmp byte [rcx + rax], 0
je 0x18007b5d8
dec r8
sub rdx, 1
jne 0x18007b5be
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400042c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
mov r11, qword [rsi + 0x30]
test r11, r11
je 0x1400042fe
mov ebx, ecx
movsxd rax, dword [r11 + 0x3c]
mov edi, dword [rax + r11 + 0x88]
test edi, edi
jne 0x140004310
mov rsi, qword [rsi]
mov r11, qword [rsi + 0x30]
test r11, r11
jne 0x1400042e2
pop rbx
mov rax, r11
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx ecx, word [rsi + 0x5a]
test cx, cx
je 0x1400043e5
mov rax, qword [rsi + 0x60]
lea r10d, [rcx - 1]
xor r9d, r9d
lea rdx, [rax + 1]
add r10, rdx
jmp 0x14000433c
add rdx, 1
movsx eax, byte [rax]
ror r9d, 0xd
mov ecx, eax
lea r8d, [rax + r9 - 0x20]
add eax, r9d
cmp cl, 0x61
mov r9d, r8d
cmovl r9d, eax
mov rax, rdx
cmp r10, rdx
jne 0x140004338
lea r12, [r11 + rdi]
mov ebp, dword [r12 + 0x20]
mov edi, dword [r12 + 0x18]
add rbp, r11
test edi, edi
je 0x1400042f2
xor r10d, r10d
nop dword [rax + rax]
mov edx, dword [rbp + r10*4]
xor eax, eax
add rdx, r11
nop word [rax + rax]
movsx r8d, byte [rdx]
ror eax, 0xd
add rdx, 1
add eax, r8d
test r8b, r8b
jne 0x140004390
add eax, r9d
cmp eax, ebx
je 0x1400043b8
add r10, 1
cmp rdi, r10
jne 0x140004380
jmp 0x1400042f2
mov eax, dword [r12 + 0x24]
lea edx, [r10 + r10]
pop rbx
pop rsi
pop rdi
add rax, r11
pop rbp
movzx eax, word [rax + rdx]
mov edx, dword [r12 + 0x1c]
pop r12
shl eax, 2
cdqe
add rax, r11
mov eax, dword [rax + rdx]
add r11, rax
mov rax, r11
ret
xor r9d, r9d
jmp 0x14000435f
Function at 0x1400011e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rcx, str.Defraggler.exe_process_is_running__please_close_it_and_run_df.exe_again._n
call fcn.14005e0d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400074f0
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x40
lea rcx, str.Shutting_down..._n
call fcn.14005f508
lea rbx, str.OnFinishOperation
lea rdx, str.Initializing_system_shutdown
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], 0x327
mov dword [rsp + 0x3c], 1
call fcn.14000b580
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test eax, eax
jne 0x14000757a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.InitiateSystemShutdown_failed_with_error:_0x_08x
lea rcx, [rsp + 0x30]
mov r8d, eax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], 0x32e
mov dword [rsp + 0x3c], 1
call fcn.14000b580
add rsp, 0x40
pop rbx
ret
Function at 0x14001a6e0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, qword [rsp + 0x40]
cmp qword [rbx], 0
je 0x14001a74f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a76b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001a76b
mov rcx, qword [rbx]
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
call rax
add rsp, 0x30
pop rbx
ret
cmp dword [rbx + 8], 0
je 0x14001a76b
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x14001a780
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, qword [rbp + 0x1a0]
mov rsi, qword [rbp + 0x1a8]
xor eax, eax
mov r9d, dword [rdi + 8]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov r8, rsi
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
call fcn.14001a910
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14001a8d5
xor ebx, ebx
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001a893
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14001a780
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x14001a8d5
xor ebx, ebx
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14001a840
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001a8a8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x50], ebx
test rcx, rcx
je 0x14001a8c2
mov rdx, qword [rdi]
mov r8, rsi
call fcn.14001a6e0
jmp 0x14001a8ce
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x14001a8e0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14005e0b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001b420
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rcx, [rax - 0x30]
call fcn.14001b2f0
nop
mov rcx, qword [rsp + 0x38]
cmp dword [rcx - 0x10], ebx
jg 0x14001b495
lea rdx, str.Unknown_version
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.14001e210
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14001b48d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, rdi
jmp 0x14001b5d0
lea rdx, [rsp + 0x30]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
movsxd rdi, eax
test eax, eax
jg 0x14001b4e5
lea rdx, str.Unknown_version
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call fcn.14001e210
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14001b48d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, rdi
jmp 0x14001b5d0
mov qword [rsp + 0x40], rbx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14001e390
mov rbx, qword [rsp + 0x40]
mov r9, rbx
mov r8d, edi
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x50]
lea rdx, [0x14012cb44]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + 0xc]
movzx r9d, word [rcx + 8]
movzx r8d, word [rcx + 0xa]
mov dword [rsp + 0x20], eax
lea rdx, str._d__d__d
lea rcx, [rsp + 0x48]
call fcn.14001e360
mov rdi, qword [rsp + 0x48]
lea rcx, [rdi - 0x18]
call fcn.14001e5d0
add rax, 0x18
mov rsi, qword [rsp + 0x70]
mov qword [rsi], rax
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi - 8], eax
dec eax
test eax, eax
jg 0x14001b5a4
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x40]
call fcn.14005e57c
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14001b5cd
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, rsi
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14001e000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14001e02d
add rsp, 0x28
ret
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001e078
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [rsp + 0x40]
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x14001e073
cmp rbx, r11
jae 0x14001e078
dec ecx
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x14001e062
cmp rbx, r11
jb 0x14001e084
xor eax, eax
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x14001eeb0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r9 + 1]
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 8]
xor ecx, ecx
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
xor eax, eax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [0x14001ef50]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov qword [rdi], rax
call fcn.14005f3d0
mov rbx, rax
test rax, rax
je 0x14001ef2f
mov rcx, qword [rsp + 0x40]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rbx
test rcx, rcx
je 0x14001ef42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140059230
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r15, r9
mov rax, r8
mov r14, rdx
mov rsi, rcx
mov r12, qword [rbp + 0x250]
mov r13, qword [rbp + 0x258]
mov qword [rsp + 0x40], 7
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14001a1b0
nop
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140059306
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + rdi*2 - 2], 0x5c
je 0x1400592fd
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + rdi*2 - 2], 0x2f
je 0x1400592fd
lea rax, [rsp + 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + rdi*2 - 2], 0x3a
jne 0x140059306
lea rdx, [0x14010bf88]
jmp 0x14005930d
lea rdx, [0x14010bf80]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x28]
call fcn.140017ce0
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
jne 0x14005937f
mov qword [r14], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14005936f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14005936f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14005d4c0
mov dword [rsi], ebx
mov qword [rsi + 8], rax
jmp 0x14005944a
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x54]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x54]
mov rcx, r15
call fcn.14001a580
mov edx, dword [rbp - 0x80]
bt edx, 0xa
jae 0x1400593b5
mov dword [r12], ebx
mov dword [r13], ebx
jmp 0x14005943f
test dl, 0x10
je 0x1400593cc
mov dword [r12], 3
mov dword [r13], 3
jmp 0x1400593dc
mov dword [r12], 2
mov dword [r13], 2
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x54]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x50]
call fcn.14001a580
nop
mov edx, dword [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.140058f40
mov dword [r12 + 4], eax
cmp qword [rsp + 0x68], 8
jb 0x140059436
mov rcx, qword [rsp + 0x50]
call fcn.14005e094
mov eax, dword [r12 + 4]
mov dword [r13 + 4], eax
mov dword [rsi], ebx
call fcn.14005d4c0
mov qword [rsi + 8], rax
cmp qword [rsp + 0x40], 8
jb 0x14005945c
mov rcx, qword [rsp + 0x28]
call fcn.14005e094
mov rax, rsi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14005e0b0
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140059da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, r8
mov rbx, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x140059de4
mov rcx, qword [rdx]
jmp 0x140059de7
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x140059e07
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.140059b90
jmp 0x140059f48
xor r13d, r13d
bt eax, 0xa
jae 0x140059f02
cmp qword [rbx + 0x18], 8
jb 0x140059e20
mov rdx, qword [rbx]
jmp 0x140059e23
mov rdx, rbx
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.14001a580
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x68], 8
jb 0x140059ea4
mov rcx, qword [rsp + 0x50]
call fcn.14005e094
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
cmp rdi, 0xffffffffffffffff
jne 0x140059ecf
mov r8, r12
mov rdx, rbx
mov rcx, rsi
call fcn.140059b90
nop
jmp 0x140059f48
mov rcx, rbx
call fcn.140058ab0
test al, al
jne 0x140059ef9
mov edx, ebp
mov rcx, rbx
call fcn.140058f40
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140059f48
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x140059f15
mov dword [r12], r13d
call fcn.14005d4c0
mov qword [r12 + 8], rax
mov edx, ebp
mov rcx, rbx
test bpl, 0x10
mov dword [rsp + 0x40], 3
jne 0x140059f30
mov dword [rsp + 0x40], 2
call fcn.140058f40
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov eax, dword [rcx]
mov dword [rsi], eax
mov eax, dword [rcx + 4]
mov dword [rsi + 4], eax
mov rax, rsi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005e0b0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret