joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c570
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000c5e4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000c5ff
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000c5ff
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000c5ff
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000c64e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000c570
cmp byte [0x140025458], 0
jne 0x14000c699
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c689
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140025458], 1
mov qword [0x140025450], rax
jmp 0x14000c6a0
mov rax, qword [0x140025450]
mov byte [0x140025458], 1
jmp 0x14000c6a0
mov rax, qword [0x140025450]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000c6bf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
invalid
Function at 0x14000c620
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000c5e4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000c5ff
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000c5ff
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000c5ff
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000c64e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000c570
cmp byte [0x140025458], 0
jne 0x14000c699
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c689
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140025458], 1
mov qword [0x140025450], rax
jmp 0x14000c6a0
mov rax, qword [0x140025450]
mov byte [0x140025458], 1
jmp 0x14000c6a0
mov rax, qword [0x140025450]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000c6bf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
invalid
Function at 0x14000d300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x140023020]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000d377
call fcn.14000b450
mov ebx, eax
jmp 0x14000d49c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000d398
call fcn.14000b450
jmp 0x14000d490
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000d3bb
call fcn.14000b450
jmp 0x14000d490
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000d3dd
mov ebx, 0x8007000e
jmp 0x14000d492
mov ecx, eax
test eax, eax
je 0x14000d41a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000d410
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000d41a
lea rcx, [rsp + 0x70]
call fcn.14000b420
mov rax, qword [rsp + 0x70]
jmp 0x14000d424
mov ecx, 0x80070216
call fcn.1400061d0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000d43c
test rax, rax
jne 0x14000d448
mov ebx, 0x8007000e
jmp 0x14000d492
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000d46d
call fcn.14000b450
jmp 0x14000d490
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000d110
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000d4b3
lea rcx, [rsp + 0x70]
call fcn.14000b400
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140018cd0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
Function at 0x14000da50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
movzx edx, word [rcx + 0x4c]
mov rbx, rcx
lea r8, [0x14001abc8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000da80
lea rcx, [rbx + 0x318]
mov rdx, rax
call fcn.1400169f0
movzx edx, word [rbx + 0x50]
lea r8, [0x14001abc8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000daa7
lea rcx, [rbx + 0x310]
mov rdx, rax
call fcn.1400169f0
movzx edx, word [rbx + 0x54]
lea r8, [0x14001abc8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000dace
lea rcx, [rbx + 0x328]
mov rdx, rax
call fcn.1400169f0
movzx edx, word [rbx + 0x58]
lea r8, [0x14001abc8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000daf5
lea rcx, [rbx + 0x320]
mov rdx, rax
call fcn.1400169f0
lea r8, [0x14001abc8]
mov edx, 0x9d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14000db22
lea rcx, [rbx + 0x330]
mov rdx, rax
add rsp, 0x20
pop rbx
jmp fcn.1400169f0
add rsp, 0x20
pop rbx
ret
Function at 0x14000e610
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [rsp + 0x60], 0
mov rdi, rcx
jne 0x14000e7ed
cmp r8d, 1
jne 0x14000e692
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 8]
mov qword [rcx + 0x60], 0
mov qword [rcx + 0x68], rdx
mov rcx, qword [rcx + 8]
lea edx, [r8 - 0x15]
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov rcx, qword [rdi + 8]
mov edx, 0xffffffec
bts eax, 0x13
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, rdi
call fcn.140001c20
mov rcx, rdi
call fcn.140001000
mov rcx, rdi
call fcn.140001270
mov rax, qword [rsp + 0x58]
mov qword [rax], 0
mov eax, 1
add rsp, 0x20
pop rdi
ret
cmp r8d, 0xf
je 0x14000e67b
cmp r8d, 2
je 0x14000e67b
cmp r8d, 0x200
jne 0x14000e72b
mov rax, qword [rsp + 0x50]
movss xmm1, dword [0x140025278]
movzx ecx, ax
shr rax, 0x10
movzx edx, ax
movaps xmm0, xmm1
movd xmm2, ecx
mulss xmm0, dword [0x14001c390]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x14000e71c
movaps xmm0, xmm1
mulss xmm0, dword [0x14001c3f0]
comiss xmm0, xmm2
jbe 0x14000e71c
movd xmm2, edx
movaps xmm0, xmm1
mulss xmm0, dword [0x14001c460]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x14000e71c
mulss xmm1, dword [0x14001c480]
comiss xmm1, xmm2
jbe 0x14000e71c
mov dword [rdi + 0x12d0], 1
jmp 0x14000e673
mov dword [rdi + 0x12d0], 0
jmp 0x14000e673
cmp r8d, 0x202
jne 0x14000e7ed
mov rax, qword [rsp + 0x50]
movss xmm1, dword [0x140025278]
movzx ecx, ax
shr rax, 0x10
movzx edx, ax
movaps xmm0, xmm1
movd xmm2, ecx
mulss xmm0, dword [0x14001c32c]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x14000e67b
movaps xmm0, xmm1
mulss xmm0, dword [0x14001c3e4]
comiss xmm0, xmm2
jbe 0x14000e67b
movd xmm2, edx
movaps xmm0, xmm1
mulss xmm0, dword [0x14001c460]
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x14000e67b
mulss xmm1, dword [0x14001c480]
comiss xmm1, xmm2
jbe 0x14000e67b
lea rdx, str.Lenovo_Active_Protection_System_Help
lea rcx, str.HH_Parent
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x14000e7da
lea rcx, [0x140001260]
mov r8, rdi
xor edx, edx
call qword [sym.imp.MSVCR110.dll__beginthread]
jmp 0x14000e67b
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_SwitchToThisWindow]
jmp 0x14000e67b
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400108f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp dword [rsp + 0x70], 0
mov rbx, rcx
jne 0x140010b2a
cmp r8d, 1
jne 0x140010930
mov r9, qword [rsp + 0x60]
call fcn.140010d10
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp r8d, 0xf
jne 0x140010953
call fcn.140010e00
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp r8d, 2
jne 0x1400109b1
mov rcx, qword [rcx + 8]
mov edx, 0x3e9
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rbx
mov rdx, rax
mov qword [rbx + 0x58], rax
call fcn.140015000
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_ReleaseDC]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor edi, edi
mov rax, qword [rsp + 0x68]
mov qword [rax], rdi
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp r8d, 0x14
jne 0x1400109d2
mov rax, qword [rsp + 0x68]
mov qword [rax], 1
lea eax, [r8 - 0x13]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp r8d, 5
jne 0x140010a7d
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDC]
mov rdx, qword [rbx + 0x60]
mov rcx, rax
mov qword [rbx + 0x58], rax
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
xor edi, edi
test eax, eax
jne 0x140010a0d
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x140010999
mov rcx, qword [rsp + 0x60]
mov rax, rcx
movzx edx, cx
shr rax, 0x10
movzx r8d, ax
call fcn.1400152d0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.OPENGL32.dll_wglMakeCurrent]
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbx + 8]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
lea rcx, [0x140014db0]
mov r8, rbx
xor edx, edx
mov dword [rbx + 0x298], edi
call qword [sym.imp.MSVCR110.dll__beginthread]
mov rax, qword [rsp + 0x68]
mov qword [rax], rdi
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp r8d, 0x202
jne 0x140010ade
mov ecx, dword [rcx + 0x298]
xor edi, edi
test ecx, ecx
je 0x140010abc
dec ecx
je 0x140010a9e
dec ecx
je 0x140010abc
dec ecx
jne 0x140010ac6
mov rax, qword [rsp + 0x68]
mov dword [rbx + 0x298], edi
mov qword [rax], rdi
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov dword [rbx + 0x298], 1
mov rax, qword [rsp + 0x68]
mov qword [rax], rdi
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp r8d, 0x113
jne 0x140010b07
mov r8, r9
call fcn.140010b40
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp r8d, 0xfb8
jne 0x140010b2a
cmp dword [rcx + 0x2b8], 0
je 0x140010997
call fcn.140014df0
mov rdi, rax
jmp 0x140010999
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400113b0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x1228
call fcn.140019860
sub rsp, rax
mov rax, qword [0x140023020]
xor rax, rsp
mov qword [rsp + 0x1210], rax
lea rdx, [rsp + 0xa40]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x440]
mov r8d, 0x100
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x640]
lea r9, [rsp + 0x840]
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x440]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR110.dll__wsplitpath]
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.MSVCR110.dll__wmakepath]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0xa40]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.140011870
xor eax, eax
mov rcx, qword [rsp + 0x1210]
xor rcx, rsp
call fcn.140018cd0
add rsp, 0x1228
ret
Function at 0x140013ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
lea rax, [rsp + 0x68]
mov rdi, rcx
lea rdx, str.SoftwareLenovoTpShocks
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013fef
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, str.AllowAllUser
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013fa7
cmp dword [rsp + 0x60], ebx
je 0x140013f73
mov rcx, qword [rsp + 0x68]
mov dword [rdi + 0x754], ebx
mov dword [0x140025280], ebx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001402a
call fcn.140016820
mov rcx, qword [rsp + 0x68]
mov dword [0x140025280], 1
test eax, eax
setne bl
mov dword [rdi + 0x740], ebx
mov dword [rdi + 0x754], 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001402a
mov dword [rdi + 0x754], 1
call fcn.140016820
mov rcx, qword [rsp + 0x68]
test eax, eax
mov dword [0x140025280], 1
setne bl
mov dword [rdi + 0x740], ebx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.open__reg_failed.
call fcn.140017c00
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001402a
mov dword [rdi + 0x754], 1
call fcn.140016820
mov rcx, qword [rsp + 0x68]
test eax, eax
mov dword [0x140025280], 1
setne bl
mov dword [rdi + 0x740], ebx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.open__reg_failed.
call fcn.140017c00
lea rcx, [rdi + 0x6f8]
call fcn.14000dd80
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x140016820
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140023020]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rax, [rbp - 0x29]
xor ebx, ebx
mov word [rbp - 0x2d], 0x500
mov qword [rbp - 0x39], rax
mov dword [rbp - 0x49], ebx
mov dword [rbp - 0x31], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x41]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400168a8
mov r9d, dword [rbp - 0x49]
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x49]
lea edx, [rbx + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400168af
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400168af
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400169cc
mov edx, dword [rbp - 0x49]
mov ecx, 0x40
mov qword [rsp + 0x118], rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r9d, dword [rbp - 0x49]
mov rcx, qword [rbp - 0x41]
mov rdi, rax
lea rax, [rbp - 0x49]
mov edx, 2
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140016928
lea rax, [rbp - 0x39]
lea rcx, [rbp - 0x31]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov r8d, 0x20
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140016947
test rdi, rdi
je 0x140016936
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400169c4
test rdi, rdi
je 0x1400169a9
mov qword [rsp + 0x110], rsi
mov esi, ebx
cmp dword [rdi], ebx
jbe 0x140016998
mov qword [rsp + 0x120], r14
mov r14d, 1
nop dword [rax + rax]
mov rcx, qword [rbp - 0x39]
mov edx, esi
add rdx, rdx
mov rdx, qword [rdi + rdx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
cmovne ebx, r14d
inc esi
cmp esi, dword [rdi]
jb 0x140016970
mov r14, qword [rsp + 0x120]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x110]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400169b8
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x118]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140018cd0
mov rbx, qword [rsp + 0x128]
add rsp, 0x100
pop rbp
ret
Function at 0x1400169f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rcx
xor ecx, ecx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140016ad1
mov edx, esi
xor ecx, ecx
mov qword [rsp + 0x40], rbp
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call sub.MSVCR110.dll_memcpy
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rbp, qword [rsp + 0x50]
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x140016a9a
lea rdx, [rbx + 8]
lea rax, vtable.Gdiplus::Image.0
mov rcx, rbp
mov qword [rdx], 0
mov qword [rbx], rax
call qword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [rbx + 0x10], eax
jmp 0x140016a9c
xor ebx, ebx
mov rcx, rsi
mov qword [r14], rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x40]
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140016ae0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x258
mov rax, qword [0x140023020]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ecx, ecx
call qword [sym.imp.MSVCR110.dll__time64]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call qword [sym.imp.MSVCR110.dll__localtime64]
lea rcx, str.BuildTexture_start_n
mov r9d, dword [rax]
mov r8d, dword [rax + 4]
mov qword [rsp + 0x20], rcx
lea rdx, str.the_time_is__2d:_2d__S_r_n
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR110.dll__swprintf]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140018cd0
add rsp, 0x258
ret
Function at 0x140017970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x152
mov rbx, rcx
lea r8, [rcx + 0x70]
mov rcx, qword [rcx + 0x68]
lea r9d, [rdx - 0x4e]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbx + 0x68]
mov edx, 0x153
lea r9d, [rdx - 0x4f]
lea r8, [rbx + 0x278]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbx + 0x68]
mov edx, 0x154
lea r9d, [rdx - 0x50]
lea r8, [rbx + 0x480]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbx + 0x68]
mov edx, 0x155
lea r9d, [rdx - 0x51]
lea r8, [rbx + 0x688]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbx + 0x68]
mov edx, 0x156
lea r9d, [rdx - 0x52]
lea r8, [rbx + 0x890]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbx + 0x68]
mov edx, 0x157
lea r9d, [rdx - 0x53]
lea r8, [rbx + 0xa98]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbx + 0x68]
mov edx, 0x158
lea r9d, [rdx - 0x54]
lea r8, [rbx + 0xca0]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbx + 0x68]
mov edx, 0x159
lea r9d, [rdx - 0x55]
lea r8, [rbx + 0xea8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbx + 0x68]
mov edx, 0x14f
lea r9d, [rdx - 0x4b]
lea r8, [rbx + 0x10b0]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbx + 0x68]
mov edx, 0x150
lea r9d, [rdx - 0x4c]
lea r8, [rbx + 0x12b8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [0x14001abc8]
mov edx, 0x12e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140017aa2
lea rcx, [rbx + 0x14c0]
mov rdx, rax
call fcn.1400169f0
lea r8, [0x14001abc8]
mov edx, 0x130
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140017aca
lea rcx, [rbx + 0x14c8]
mov rdx, rax
call fcn.1400169f0
lea r8, [0x14001abc8]
mov edx, 0x12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140017af2
lea rcx, [rbx + 0x14d0]
mov rdx, rax
call fcn.1400169f0
lea r8, [0x14001abc8]
mov edx, 0x12c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140017b1a
lea rcx, [rbx + 0x14d8]
mov rdx, rax
call fcn.1400169f0
lea r8, [0x14001abc8]
mov edx, 0x12f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140017b47
lea rcx, [rbx + 0x14e0]
mov rdx, rax
add rsp, 0x20
pop rbx
jmp fcn.1400169f0
add rsp, 0x20
pop rbx
ret
Function at 0x140017c00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x4e0
mov rax, qword [0x140023020]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
xor eax, eax
lea rcx, [rsp + 0x50]
mov word [rsp + 0x50], ax
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
mov word [rsp + 0x5e], ax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x5e]
movzx edx, word [rsp + 0x5c]
movzx r10d, word [rsp + 0x5a]
movzx r11d, word [rsp + 0x58]
movzx ebx, word [rsp + 0x56]
movzx r9d, word [rsp + 0x52]
movzx r8d, word [rsp + 0x50]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
lea rdx, str._04d__02d__02d___02d:_02d:_02d._03d___05d_
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCR110.dll_sprintf]
mov rdx, qword [rsp + 0x4f0]
lea r8, [rsp + 0x4f8]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCR110.dll_vsprintf]
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0x60]
lea rdx, str._s__s__n
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.MSVCR110.dll_sprintf]
lea r8, [rsp + 0xd0]
lea rdx, str._s__n
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCR110.dll_sprintf]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140018cd0
add rsp, 0x4e0
pop rbx
ret