joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013da48
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 0x14013da82
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14013da87
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 0x14013dad0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14013dad0
dec r8
sub rdx, 1
jne 0x14013dab6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18032a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18032a1df
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 0x18032a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18032a06f
add dl, dl
jne 0x18032a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18032a0f6
xor eax, eax
add dl, dl
jne 0x18032a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18032a1ad
add dl, dl
jne 0x18032a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18032a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18032a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18032a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18032a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18032a07e
mov eax, 1
add dl, dl
jne 0x18032a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18032a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18032a0fb
sub eax, ebx
mov ebx, 1
jne 0x18032a14c
mov ecx, 1
add dl, dl
jne 0x18032a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18032a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18032a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18032a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18032a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18032a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18032a15d
cmp eax, 0x7d00
jae 0x18032a19b
cmp eax, 0x500
jb 0x18032a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18032a07e
cmp eax, 0x7f
ja 0x18032a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18032a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18032a1d2
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 0x18032a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400035f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov dword [rsp + 0xc], 0
jmp 0x14000361f
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0xc], 0x100
jge 0x140003639
movsxd rax, dword [rsp + 0xc]
movzx ecx, byte [rsp + 0xc]
mov byte [rsp + rax + 0x20], cl
jmp 0x140003615
mov dword [rsp + 0x18], 0
mov dword [rsp + 4], 0
jmp 0x140003655
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x1400036e8
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 0x18]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x1c], eax
movsxd rcx, dword [rsp + 4]
xor edx, edx
mov rax, rcx
div qword [rsp + 0x138]
mov rax, rdx
mov rcx, qword [rsp + 0x130]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x1c]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x18], eax
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 0x18]
movsxd rcx, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 0x18]
movzx ecx, byte [rsp]
mov byte [rsp + rax + 0x20], cl
jmp 0x14000364b
mov dword [rsp + 8], 0
mov dword [rsp + 0x10], 0
mov dword [rsp + 0x14], 0
jmp 0x14000370c
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
movsxd rax, dword [rsp + 0x14]
cmp rax, qword [rsp + 0x148]
jae 0x1400037e5
mov eax, dword [rsp + 8]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 8]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 0x10]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
movsxd rax, dword [rsp + 8]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + 1], al
movsxd rax, dword [rsp + 0x10]
movsxd rcx, dword [rsp + 8]
movzx eax, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 0x10]
movzx ecx, byte [rsp + 1]
mov byte [rsp + rax + 0x20], cl
movsxd rax, dword [rsp + 8]
movzx eax, byte [rsp + rax + 0x20]
movsxd rcx, dword [rsp + 0x10]
movzx ecx, byte [rsp + rcx + 0x20]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
movzx eax, byte [rsp + rax + 0x20]
movsxd rcx, dword [rsp + 0x14]
mov rdx, qword [rsp + 0x140]
movzx ecx, byte [rdx + rcx]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x14]
mov rdx, qword [rsp + 0x140]
mov byte [rdx + rcx], al
jmp 0x140003702
add rsp, 0x128
ret
Function at 0x14041579c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14043b160]
test rax, rax
je 0x1404157e6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1404157e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1404157e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1404157e6
cmp dword [rcx + 0x84], 0xe
jbe 0x1404157e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1404157e8
xor al, al
add rsp, 0x28
ret

Function at 0x14041b1a8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14041b007
xor ecx, ecx
call qword [0x14043b160]
test rax, rax
je 0x14041b007
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14041b007
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14041b007
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14041b007
cmp dword [rcx + 0x84], 0xe
jbe 0x14041b007
cmp dword [rcx + 0xf8], 0
je 0x14041b007
mov ecx, ebx
call fcn.14041b0c4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14041ae94
nop
cmp dword [rbp + 0x20], 0
je 0x14041b055
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14041b060
int3
xor r8d, r8d
xor edx, edx
jmp 0x14041af98
Function at 0x14092b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14092b1df
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 0x14092b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092b06f
add dl, dl
jne 0x14092b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092b0f6
xor eax, eax
add dl, dl
jne 0x14092b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092b1ad
add dl, dl
jne 0x14092b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14092b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14092b07e
mov eax, 1
add dl, dl
jne 0x14092b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092b0fb
sub eax, ebx
mov ebx, 1
jne 0x14092b14c
mov ecx, 1
add dl, dl
jne 0x14092b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14092b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14092b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14092b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092b15d
cmp eax, 0x7d00
jae 0x14092b19b
cmp eax, 0x500
jb 0x14092b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092b07e
cmp eax, 0x7f
ja 0x14092b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14092b1d2
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 0x14092b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800024d8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rsi, qword [rcx]
test rbx, rbx
je 0x18000254e
cmp qword [rbx], 0
je 0x180002541
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180002547
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002547
mov rdx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rsi
mov rdx, rdi
call rax
jmp 0x180002557
cmp dword [rbx + 8], 0
jne 0x18000254e
mov eax, 1
jmp 0x180002557
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180002708
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov r8, rdx
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.180002620
jmp 0x18000277a
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180002708
mov ebx, eax
test eax, eax
jne 0x1800027e3
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18000276b
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800027d1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov dword [rsp + 0x48], r14d
mov rcx, rdi
call fcn.1800024d8
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800027f3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.180016920
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180002d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.180018f90
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180002daf
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180002daf
call fcn.180002204
mov ebx, eax
jmp 0x180002eba
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180002dd0
call fcn.180002204
jmp 0x180002ea9
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180002dc6
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180002e0b
mov ebx, 0x8007000e
jmp 0x180002eab
mov ecx, eax
test eax, eax
je 0x180002e3d
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180002ef2
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180002e3d
lea rcx, [rsp + 0x70]
call fcn.180005858
jmp 0x180002e47
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180002e59
cmp qword [rsp + 0x70], rdi
je 0x180002e01
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x180002dc6
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180003ad4
mov ebx, eax
test rsi, rsi
je 0x180002eba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180002ed1
lea rcx, [rsp + 0x70]
call fcn.180005680
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180016920
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1800021d8
int3
Function at 0x180008360
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x298
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.180018f90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800084c1
cmp dword [rsp + 0x24], 6
mov qword [rsp + 0x290], rbx
ja 0x1800083c6
jne 0x18000846a
cmp dword [rsp + 0x28], 2
jb 0x18000846a
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x18000846a
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18000846a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000846a
movups xmm0, xmmword [0x180037ab8]
mov rcx, rax
movups xmm1, xmmword [0x180037ac8]
movups xmmword [rsp + 0x260], xmm0
movups xmmword [rsp + 0x270], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000846a
lea rcx, [rax + 6]
lea rdx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18000846a
cmp word [rbx + 2], ax
jbe 0x18000846a
movzx edx, word [rbx + 0x32]
movzx eax, word [rbx + 0x30]
movzx ecx, word [rbx + 0x36]
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1800084b9
xor edx, edx
lea rcx, [rsp + 0x144]
mov r8d, 0x118
call fcn.180018f90
lea rcx, [rsp + 0x140]
mov dword [rsp + 0x140], 0x11c
call rbx
mov rbx, qword [rsp + 0x290]
mov eax, dword [rsp + 0x24]
cmp eax, 5
jbe 0x1800084e4
mov al, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180016920
add rsp, 0x298
ret
jne 0x1800084ed
cmp dword [rsp + 0x28], 1
jae 0x1800084ca
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180016920
add rsp, 0x298
ret
Function at 0x180008510
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x298
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.180018f90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180008671
cmp dword [rsp + 0x24], 6
mov qword [rsp + 0x290], rbx
ja 0x180008576
jne 0x18000861a
cmp dword [rsp + 0x28], 2
jb 0x18000861a
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x18000861a
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18000861a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000861a
movups xmm0, xmmword [0x180037ab8]
mov rcx, rax
movups xmm1, xmmword [0x180037ac8]
movups xmmword [rsp + 0x260], xmm0
movups xmmword [rsp + 0x270], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000861a
lea rcx, [rax + 6]
lea rdx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18000861a
cmp word [rbx + 2], ax
jbe 0x18000861a
movzx edx, word [rbx + 0x32]
movzx eax, word [rbx + 0x30]
movzx ecx, word [rbx + 0x36]
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180008669
xor edx, edx
lea rcx, [rsp + 0x144]
mov r8d, 0x118
call fcn.180018f90
lea rcx, [rsp + 0x140]
mov dword [rsp + 0x140], 0x11c
call rbx
mov rbx, qword [rsp + 0x290]
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180016920
add rsp, 0x298
ret
Function at 0x180009270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x68], rax
call fcn.180005c04
test al, al
je 0x1800092ac
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180016920
add rsp, 0x70
pop rbx
ret
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.180006f60
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.18000a690
lea rcx, [rsp + 0x28]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x180009400
lea rcx, [rsp + 0x48]
call fcn.180005a50
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800121c0
test al, al
je 0x18000931a
lea rcx, [rsp + 0x48]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1800059ec
cmp ebx, 0xffffffff
jne 0x180009400
lea rcx, [rsp + 0x28]
call fcn.180005c10
cmp rax, 2
jbe 0x1800093fc
lea rcx, [rsp + 0x28]
call fcn.180005c10
mov r8, rax
lea rcx, [rsp + 0x28]
call fcn.180005a68
mov rdx, rax
mov rcx, rax
mov r9, qword [rax + 0x18]
cmp r9, 8
jb 0x18000936b
mov rcx, qword [rax]
cmp word [rcx + r8*2 - 2], 0x5c
je 0x180009391
lea rcx, [rsp + 0x28]
call fcn.180005c10
dec rax
cmp r9, 8
jb 0x18000938a
mov rdx, qword [rdx]
cmp word [rdx + rax*2], 0x2f
jne 0x1800093fc
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.18000a690
lea rcx, [rsp + 0x28]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x180009400
lea rcx, [rsp + 0x48]
call fcn.180005a50
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800121c0
test al, al
je 0x1800093ed
lea rcx, [rsp + 0x48]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1800059ec
cmp ebx, 0xffffffff
jne 0x180009400
xor bl, bl
jmp 0x180009402
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.1800059ec
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180016920
add rsp, 0x70
pop rbx
ret
Function at 0x180009430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x68], rax
call fcn.180005c04
test al, al
je 0x18000946c
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180016920
add rsp, 0x70
pop rbx
ret
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.180006f60
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.18000a690
lea rcx, [rsp + 0x28]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800094e5
lea rcx, [rsp + 0x48]
call fcn.180005a50
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800121c0
test al, al
je 0x1800094d6
lea rcx, [rsp + 0x48]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1800059ec
cmp ebx, 0xffffffff
je 0x1800094ee
test bl, 0x10
je 0x1800095c6
lea rcx, [rsp + 0x28]
call fcn.180005c10
cmp rax, 2
jbe 0x1800095c2
lea rcx, [rsp + 0x28]
call fcn.180005c10
mov r8, rax
lea rcx, [rsp + 0x28]
call fcn.180005a68
mov rdx, rax
mov rcx, rax
mov r9, qword [rax + 0x18]
cmp r9, 8
jb 0x18000952c
mov rcx, qword [rax]
cmp word [rcx + r8*2 - 2], 0x5c
je 0x180009552
lea rcx, [rsp + 0x28]
call fcn.180005c10
dec rax
cmp r9, 8
jb 0x18000954b
mov rdx, qword [rdx]
cmp word [rdx + rax*2], 0x2f
jne 0x1800095c2
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.18000a690
lea rcx, [rsp + 0x28]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800095bd
lea rcx, [rsp + 0x48]
call fcn.180005a50
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800121c0
test al, al
je 0x1800095ae
lea rcx, [rsp + 0x48]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1800059ec
cmp ebx, 0xffffffff
je 0x1800095c2
test bl, 0x10
je 0x1800095c6
xor bl, bl
jmp 0x1800095c8
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.1800059ec
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180016920
add rsp, 0x70
pop rbx
ret
Function at 0x1800095f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x68], rax
call fcn.180005c04
test al, al
je 0x18000962c
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180016920
add rsp, 0x70
pop rbx
ret
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.180006f60
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.18000a690
lea rcx, [rsp + 0x28]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800096a5
lea rcx, [rsp + 0x48]
call fcn.180005a50
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1800121c0
test al, al
je 0x180009696
lea rcx, [rsp + 0x48]
call fcn.1800059dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1800059ec
cmp ebx, 0xffffffff
je 0x1800096ae
test bl, 0x10
je 0x1800096ae
mov bl, 1
jmp 0x1800096b0
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.1800059ec
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180016920
add rsp, 0x70
pop rbx
ret