joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100046928
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, edx
lea rdx, [0x100004558]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
jne 0x100046967
mov eax, 0x80004005
jmp 0x1000469cc
lea r8, [0x100004570]
lea rcx, [rsp + 0x60]
mov r9d, edi
mov edx, pe_nt_image_headers64
call fcn.10003aab0
xor r8d, r8d
mov ecx, 1
and qword [rsp + 0x40], r8
lea rax, [rsp + 0x50]
lea r11, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], r8d
mov word [rsp + 0x28], cx
and qword [rsp + 0x20], r8
mov edx, ecx
mov r9d, 0xc94703ea
mov rcx, rbx
mov qword [rsp + 0x50], r11
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.10007a3b0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x100046fc4
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
lea rax, [rcx - 0x40]
neg rcx
mov rbx, r8
sbb rsi, rsi
xor r14d, r14d
mov edi, 1
and rsi, rax
mov edx, 0x959
mov rcx, qword [rsi + 8]
cmp dword [rsp + 0x60], r14d
je 0x100047084
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r13, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, rbx
or r12d, 0xffffffff
movsxd rbp, eax
mov edx, ebp
call fcn.100016600
cmp rax, r14
je 0x10004707a
mov rax, qword [rbx]
mov dword [rax - 8], ebp
mov rax, qword [rbx]
mov word [rax + rbp*2], r14w
mov rdx, qword [rbx]
cmp rdx, r14
je 0x10004707a
lea r8d, [rbp + 1]
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
mov r12d, eax
call fcn.1000166e4
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r11, eax
mov rax, qword [rbx]
mov dword [rax - 8], r11d
mov rax, qword [rbx]
mov word [rax + r11*2], r14w
cmp r12d, ebp
jge 0x1000470c6
mov edi, r14d
jmp 0x100047094
mov r8, qword [r8]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, eax
cmp eax, r14d
jne 0x1000470c6
or ecx, 0xffffffff
lea rbx, [rsi + 0x40]
call qword [sym.imp.USER32.dll_MessageBeep]
lea r8, [rbx - 0x40]
neg rbx
sbb rcx, rcx
mov edx, 0x959
and rcx, r8
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x10004a930
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
mov esi, 0x21
mov edx, esi
add rcx, 0x60
call fcn.100016600
mov r8d, esi
mov rdx, rax
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rbx + 0x60]
call fcn.1000166e4
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbx + 0x60]
mov dword [rcx - 8], eax
movsxd rcx, eax
mov rax, qword [rbx + 0x60]
xor esi, esi
mov word [rax + rcx*2], si
mov rcx, qword [rbx + 0x50]
cmp rcx, rsi
jne 0x10004a9a8
mov rax, 0xffffffff80004003
jmp 0x10004aa80
lea r8, [rbx + 0x68]
add rcx, 0x280
lea rdx, [rbx + 0x60]
call fcn.10001cff8
cmp eax, esi
jge 0x10004aa67
lea rcx, [rsp + 0x50]
call fcn.100042078
nop
lea rdx, [0x100002dec]
lea rcx, [rsp + 0x40]
call fcn.100017e84
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0xf73a
mov r9d, 0xf75b
mov r8d, 0xf692
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.1000420cc
movsxd rbx, eax
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
lea rax, [0x1000a1170]
cmp rcx, rax
je 0x10004aa48
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, esi
jg 0x10004aa48
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
cmp ebx, esi
jge 0x10004aa5b
lea rcx, [rsp + 0x50]
call fcn.1000420a4
mov rax, rbx
jmp 0x10004aa80
lea rcx, [rsp + 0x50]
call fcn.1000420a4
jmp 0x10004aa7e
mov edx, 1
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_EndDialog]
cmp eax, esi
jne 0x10004aa7e
xor eax, eax
jmp 0x10004aa80
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10004f868
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [rsp + 0x180]
mov qword [rcx], r8
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
mov byte [rcx + 0x19], 0
and qword [rcx + 0x20], 0
and qword [rcx + 0xc8], 0
or dword [rcx + 0xec], 0xffffffff
mov dword [rcx + 0xe8], eax
mov rbx, rcx
mov byte [rcx + 0xd1], r9b
mov qword [rcx + 0xd8], rdx
call fcn.10004f928
test eax, eax
js 0x10004f8f0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
setae cl
mov byte [rbx + 0xd0], cl
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.10007a3b0
add rsp, 0x150
pop rbx
ret

Function at 0x100050774
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x140], rax
and qword [rcx], 0
and qword [rcx + 8], 0
or dword [rcx + 0x14], 0xffffffff
mov rbx, rcx
mov byte [rcx + 0x18], 0
call fcn.100050800
test eax, eax
js 0x1000507ca
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
setae cl
mov byte [rbx + 0x10], cl
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.10007a3b0
add rsp, 0x150
pop rbx
ret
Function at 0x100064a28
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
cvttsd2si ebp, qword [rcx]
mov r12, rdx
mov dil, r8b
mov r8d, 0x88888889
xor r9d, r9d
mov r14d, 0x400
mov eax, r8d
imul ebp
mov eax, r8d
xor r8d, r8d
lea esi, [rbp + rdx]
sar esi, 5
mov ecx, esi
shr ecx, 0x1f
add esi, ecx
mov ecx, esi
imul esi
imul ecx, ecx, 0xffffffc4
lea r13d, [rsi + rdx]
lea edx, [r9 + 0x1e]
sar r13d, 5
add ebp, ecx
mov ecx, r14d
mov eax, r13d
shr eax, 0x1f
add r13d, eax
mov eax, r13d
imul eax, eax, 0xffffffc4
add esi, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rdx, qword [0x1000a1180]
mov qword [rsp + 0x60], rdx
lea rcx, [rsp + 0x60]
mov edx, eax
mov ebx, eax
call fcn.100016600
mov r9d, ebx
mov edx, 0x1e
mov ecx, r14d
mov r8, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea rcx, [rsp + 0x60]
call fcn.1000166e4
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r14d, r14d
movsxd rcx, eax
mov dword [rbx - 8], eax
mov word [rbx + rcx*2], r14w
cmp dil, r14b
je 0x100064b40
cmp ebp, 0x1e
jl 0x100064aff
inc esi
lea rdx, [0x100003db0]
mov r8d, esi
mov rcx, r12
call fcn.10001646c
cmp eax, r14d
lea rcx, [rbx - 0xc]
lea rax, [0x1000a1170]
jne 0x100064b5f
cmp rcx, rax
je 0x100064b39
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r14d
jg 0x100064b39
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 0x80004005
jmp 0x100064b79
lea rdx, [0x100006008]
mov r9d, r13d
mov r8, rbx
mov rcx, r12
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], esi
call fcn.10001646c
jmp 0x100064b11
cmp rcx, rax
je 0x100064b77
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r14d
jg 0x100064b77
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x100065efc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [r11 + 0x18]
mov r9d, 4
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and eax, 0x80004005
add rsp, 0x38
ret

Function at 0x100065f3c
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
test rdx, rdx
jne 0x100065f4c
mov eax, 0x80004003
jmp 0x100065f7d
mov rcx, qword [rcx]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
and eax, 0x80004005
add rsp, 0x38
ret
Function at 0x100065f88
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
test rdx, rdx
jne 0x100065fa9
mov eax, 0x80004003
jmp 0x100065fe5
test r8, r8
je 0x100065fa2
mov rbx, qword [rcx]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
xor r8d, r8d
lea eax, [rax + rax + 2]
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and eax, 0x80004005
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x100065ffc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, rbp
jne 0x100066022
mov eax, 0x80004003
jmp 0x1000660a8
mov rcx, qword [rcx]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
je 0x10006604d
mov eax, 0x80004005
jmp 0x1000660a8
mov edx, dword [rsp + 0x58]
mov rcx, rsi
call fcn.100016600
lea rcx, [rsp + 0x58]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call fcn.1000166e4
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
neg ebx
mov dword [rcx - 8], eax
mov rcx, qword [rsi]
movsxd rdx, eax
sbb eax, eax
mov word [rcx + rdx*2], bp
and eax, 0x80004005
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x100069f44
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rdi, rcx
lea rdx, [0x100004558]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
jne 0x100069fba
mov rcx, qword [rdi]
lea rsi, [0x1000a1170]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x100069fb0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100069fb0
mov rcx, qword [rdi]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 0x80004005
jmp 0x10006a0a7
mov rax, qword [0x1000a1180]
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x50], rax
call fcn.100069b40
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 8], 0
mov r9, qword [rdi]
mov edx, 0x400
lea rcx, [rsp + 0x60]
je 0x10006a002
and dword [rsp + 0x28], 0
lea r8, [0x100006528]
mov qword [rsp + 0x20], rbx
call fcn.10003aab0
jmp 0x10006a013
and dword [rsp + 0x20], 0
lea r8, [0x100006548]
call fcn.10003aab0
xor r8d, r8d
mov ecx, 1
lea rax, [rsp + 0x60]
and qword [rsp + 0x40], r8
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], r8d
mov word [rsp + 0x28], cx
and qword [rsp + 0x20], r8
mov edx, ecx
mov r9d, 0xc94703ea
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [rbx - 0xc]
lea rsi, [0x1000a1170]
or ebx, 0xffffffff
cmp rcx, rsi
je 0x10006a081
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10006a081
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rdi]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006a0a5
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10006a0a5
mov rcx, qword [rdi]
sub rcx, 0xc
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.10007a3b0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10006a0d4
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, rcx
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor esi, esi
cmp rax, rsi
jne 0x10006a115
mov eax, 0x80004003
jmp 0x10006a2e2
lea rdx, [0x100006560]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, esi
jne 0x10006a2e0
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1000068c0]
lea rcx, [0x1000021c8]
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov ebx, eax
jge 0x10006a173
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x10006a16c
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, ebx
jmp 0x10006a2e2
mov rax, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x38], rcx
cmp rax, rsi
je 0x10006a19f
mov r9, qword [rax]
lea r8, [rsp + 0x38]
lea rdx, [0x100006570]
mov rcx, rax
call qword [r9]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov rdx, qword [rdi]
xor r8d, r8d
call qword [rax + 0x28]
cmp eax, esi
mov ebx, eax
jge 0x10006a1d3
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x10006a1c1
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x10006a16c
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x10006a16c
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 4]
call qword [rax + ILFree]
cmp eax, esi
mov ebx, eax
jl 0x10006a1b1
mov rax, qword [0x1000a1180]
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov edx, ebx
mov qword [rsp + 0x40], rax
call fcn.100016600
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x50]
mov r10, qword [rcx]
mov r8d, ebx
mov rdx, rax
mov dword [rsp + 0x20], 4
call qword [r10 + 0x18]
cmp eax, esi
mov ebx, eax
jge 0x10006a26f
mov rcx, qword [rsp + 0x40]
lea rdx, [0x1000a1170]
add rcx, 0xfffffffffffffff4
cmp rcx, rdx
je 0x10006a256
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, esi
jg 0x10006a256
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x10006a1c1
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x10006a1c1
lea rcx, [rsp + 0x40]
call fcn.1000166e4
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rdi
movsxd rdx, eax
mov dword [rbx - 8], eax
mov word [rbx + rdx*2], si
lea rdx, [rsp + 0x40]
call fcn.10001c054
lea rcx, [rbx - 0xc]
lea rdx, [0x1000a1170]
cmp rcx, rdx
je 0x10006a2c0
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, esi
jg 0x10006a2c0
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x10006a2d0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x10006a2e0
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.10007a3b0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1000710c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4f0
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rsi, rcx
test rdx, rdx
je 0x1000712ab
mov rax, qword [0x1000a1180]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
test rcx, rcx
je 0x100071289
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x28]
call fcn.10001c054
mov rbx, qword [rsp + 0x28]
lea rdx, [0x100006684]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wfopen]
mov rdi, rax
test rax, rax
jne 0x10007113e
lea rcx, [rbx - 0xc]
jmp 0x10007128d
mov edx, 0x14
lea rcx, [rsp + 0x50]
mov r9, rax
lea r8d, [rdx - 0x13]
call qword [sym.imp.msvcrt.dll_fread]
cmp dword [rsp + 0x50], 0x46464952
jne 0x10007127e
cmp dword [rsp + 0x58], 0x45564157
jne 0x10007127e
mov edx, 0x12
lea rcx, [rsp + 0x38]
mov r9, rdi
lea r8d, [rdx - 0x11]
call qword [sym.imp.msvcrt.dll_fread]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
and qword [rsp + 0x4d0], 0
and dword [rsp + 0x4d8], 0
mov r11d, 0x5c
lea rcx, [rsp + 0x70]
mov rdx, rbx
mov word [rsp + 0x4c8], r11w
call fcn.100017cc4
test eax, eax
je 0x10007122e
xor eax, eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x4d8], eax
je 0x1000711ee
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x20]
jmp 0x1000711f3
mov qword [rsp + 0x20], rax
movzx ecx, word [rsp + 0x48]
pxor xmm1, xmm1
pxor xmm0, xmm0
sub rax, rcx
sub rax, 0x12
cvtsi2ss xmm1, rax
mov eax, dword [rsp + 0x40]
cvtsi2ss xmm0, rax
divss xmm1, xmm0
unpcklps xmm1, xmm1
cvtps2pd xmm1, xmm1
movsd qword [rsp + 0x30], xmm1
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x38], rax
mov rcx, qword [rsp + 0x4d0]
and dword [rsp + 0x4d8], 0
test rcx, rcx
je 0x100071258
cmp rcx, 0xffffffffffffffff
je 0x100071258
call qword [sym.imp.KERNEL32.dll_FindClose]
and qword [rsp + 0x4d0], 0
lea rcx, [rbx - 0xc]
lea rax, [0x1000a1170]
cmp rcx, rax
je 0x10007127a
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x10007127a
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
jmp 0x1000712b0
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
jmp 0x100071258
lea rcx, [rax - 0xc]
lea rax, [0x1000a1170]
cmp rcx, rax
je 0x1000712ab
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x1000712ab
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 0x80004003
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.10007a3b0
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100079490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov r14d, 1
shr eax, 4
mov ebx, r8d
mov rsi, rcx
add ax, r14w
lea r8d, [r14 + 5]
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov r12, rax
cmp rax, r13
je 0x100079606
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x100079606
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, r13
je 0x100079606
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x10007953c
cmp rdi, r11
jae 0x100079606
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x100079526
cmp rdi, r11
jae 0x100079606
cmp word [rdi], r13w
je 0x100079606
mov rax, qword [rsi]
movzx ebx, word [rdi]
mov ecx, r14d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x10007956e
mov edx, ebx
mov rcx, rsi
call fcn.100079704
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x10007958f
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
add ecx, r14d
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call sub.msvcrt.dll_memcpy_s
cmp eax, r13d
je 0x1000795de
cmp eax, 0xc
je 0x1000795d3
cmp eax, 0x16
je 0x1000795c8
cmp eax, 0x22
je 0x1000795c8
cmp eax, 0x50
je 0x1000795de
mov ecx, 0x80004005
call fcn.100016990
int3
mov ecx, 0x80070057
call fcn.100016990
int3
mov ecx, 0x8007000e
call fcn.100016990
int3
cmp ebx, r13d
jl 0x1000795fb
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1000795fb
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, r14d
mov word [rdi + rcx], r13w
jmp 0x100079608
mov ecx, 0x80070057
call fcn.100016990
int3
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x100079ea4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, SysAllocStringByteLen
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x100079f37
cmp dword [rsp + 0x24], 5
jb 0x100079f51
jmp 0x100079f4d
cmp dword [rsp + 0x30], esi
jne 0x100079f51
cmp dword [rsp + 0x24], 4
ja 0x100079f4d
jne 0x100079f51
cmp dword [rsp + 0x28], 0
jbe 0x100079f51
mov byte [rbx + 0x18], sil
lea rax, [0x100002040]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.100013840
movzx ecx, byte [0x1000a2a18]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000a2a18], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10007a3b0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x10007a3b0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1000a1108]
jne 0x10007a3cb
rol rcx, 0x10
test cx, 0xffff
jne 0x10007a3c7
ret 0
ror rcx, 0x10
jmp 0x10007aa30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000a1fa0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1000a2098]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10007aab5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000a1fa0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x10007aad7
mov rax, qword [rsp + 0x88]
mov qword [0x1000a2098], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000a2038], rax
mov rax, qword [0x1000a2098]
mov qword [0x1000a1f10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000a2020], rax
mov dword [0x1000a1f00], 0xc0000409
mov dword [0x1000a1f04], 1
mov rax, qword [0x1000a1108]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000a1110]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000020d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret