joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140158960
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1401589a2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1401589e9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140158a42
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140158a00
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140158a83
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14017360a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14017360b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140158a50
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14000262c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002676
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002676
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.api_ms_win_crt_heap_l1_1_0.dll_free
jne 0x140002676
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002676
cmp dword [rcx + 0x84], 0xe
jbe 0x140002676
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002678
xor al, al
add rsp, 0x28
ret
Function at 0x180001260
Capabilities:
Access peb ldr_data
Create thread
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
cmp edx, 1
jne 0x18000135f
mov rax, qword gs:[0x60]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rdi
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180001307
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180001307
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x5bf9f6d9
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180001302
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1800012e0
cmp r8d, 0xd98671c7
je 0x18000130c
test r9d, r9d
jne 0x1800012c0
mov rax, qword [rax]
jmp 0x180001290
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, rsi
add rax, r10
call rax
xor eax, eax
lea r8, [0x1800010f0]
mov qword [rsp + 0x28], rax
mov r9, rsi
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
test rax, rax
je 0x18000135f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rsi
ret

Function at 0x1800060cc
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 0x18000613b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000613b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000613b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000613b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000613b
cmp dword [rcx + 0x84], 0xe
jbe 0x18000613b
cmp dword [rcx + 0xf8], 0
je 0x18000613b
mov ecx, ebx
call fcn.1800061ec
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.180005fc8
nop
cmp dword [rbp + 0x20], 0
je 0x180006189
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180006194
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800060cc
Function at 0x18000772c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180022600]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180007783
cmp word [rdx], r13w
jne 0x180007783
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180007788
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800078ad
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800078ce
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800077c1
mov rdx, r9
mov word [rbx], cx
jmp 0x1800077e8
cmp r9, r8
jae 0x1800077f8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800077a2
jmp 0x1800078ad
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800078a2
cmp dword [rsp + 0x80], esi
je 0x1800078a2
lea r8, [0x180022600]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18000787a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18000784a
mov word [rbx], r13w
jmp 0x1800078aa
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180007857
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800078aa
cmp word [rsp + 0x70], r13w
jne 0x180007887
cmp rbx, r14
je 0x180007844
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180006ec0
cmp word [rsp + 0x70], r13w
je 0x1800078ad
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180022600]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800078a7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800078ad
Function at 0x18000bf24
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000bf54
xor eax, eax
jmp 0x18000c017
mov rbp, rbx
cmp word [rax], si
je 0x18000bf79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000bf60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000bf5c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000be44
movsxd r14, eax
test eax, eax
jne 0x18000bfb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000bf4d
mov rcx, r14
call fcn.180009fb8
mov rdi, rax
test rax, rax
jne 0x18000bfd0
xor ecx, ecx
call fcn.180008888
jmp 0x18000bfac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000be44
test eax, eax
jne 0x18000c001
mov rcx, rdi
call fcn.180008888
jmp 0x18000c00b
xor ecx, ecx
call fcn.180008888
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000f444
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180006ec0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180006ec0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18000f594
cmp rax, 0xffffffffffffffff
je 0x18000f594
xor edi, edi
test rbp, rbp
jle 0x18000f53f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180008810
mov rbx, rax
test rax, rax
jne 0x18000f4cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18000f535
mov edx, 0x8000
mov ecx, r14d
call fcn.18000f2c8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800099f0
cmp eax, 0xffffffff
je 0x18000f515
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18000f4dc
mov edx, r15d
mov ecx, r14d
call fcn.18000f2c8
jmp 0x18000f535
cmp byte [rsi + 0x38], dil
je 0x18000f52c
cmp dword [rsi + 0x34], 5
jne 0x18000f52c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18000f535
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180008888
jmp 0x18000f5a8
jns 0x18000f5a8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180006ec0
cmp rax, 0xffffffffffffffff
jne 0x18000f560
cmp byte [rsi + 0x30], dil
je 0x18000f5a8
mov edi, dword [rsi + 0x2c]
jmp 0x18000f5a8
mov ecx, r14d
call fcn.18000c9f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18000f5a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18000f5a8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18000f5a1
mov eax, dword [rsi + 0x2c]
jmp 0x18000f5a6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180006ec0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180010090
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800100b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800100b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x40a480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x40a5e2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x40a5e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x40a5e2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x40a526
nop
cmp rdi, r11
jae 0x40a5e2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x40a510
cmp rdi, r11
jae 0x40a5e2
movzx eax, word [rdi]
test ax, ax
je 0x40a5e2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x40a55c
mov edx, ebx
mov rcx, rsi
call fcn.004034e0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x40a579
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.004c80e0
test eax, eax
je 0x40a5b8
cmp eax, 0xc
je 0x40a5b2
cmp eax, 0x16
je 0x40a5ac
cmp eax, 0x22
je 0x40a5ac
cmp eax, 0x50
je 0x40a5b8
call fcn.0049c5dc
int3
call fcn.0049c5dc
int3
call fcn.0049c594
int3
test ebx, ebx
js 0x40a5d7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x40a5d7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x40a5e4
mov ecx, 0x80070057
call fcn.004034c0
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x40a600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x40a633
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x40a677
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x40a672
cmp rbx, r11
jae 0x40a677
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x40a660
cmp rbx, r11
jb 0x40a67b
xor eax, eax
jmp 0x40a687
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x40b5e0
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0xa8], rbx
jne 0x40b65c
mov ecx, 0x918
call fcn.00490410
mov qword [rsp + 0x40], rax
test rax, rax
je 0x40b630
mov rdx, rdi
mov rcx, rax
call fcn.0044f4d0
mov rcx, rax
jmp 0x40b633
mov rcx, rbx
mov qword [rdi + 0xa8], rcx
test rcx, rcx
je 0x40b725
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0x84
call qword [rax + 0x268]
test eax, eax
je 0x40b725
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
call fcn.0049747c
cmp qword [rdi + 0xa8], rax
je 0x40b714
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov r11, qword [rdi + 0xa8]
test r11, r11
je 0x40b691
mov rbx, qword [r11 + 0x40]
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1d
jae 0x40b6bc
mov edx, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
cmp esi, eax
je 0x40b6eb
mov r8d, 1
mov edx, eax
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp esi, ebp
je 0x40b705
xor r8d, r8d
mov edx, ebp
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_InvalidateRect]
mov edx, 1
mov rcx, qword [rdi + 0xa8]
call fcn.00491e40
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x40ce30
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push rdi
mov eax, 0x20100
call fcn.004e6570
sub rsp, rax
mov rax, qword [0x00535d58]
xor rax, rsp
mov qword [rsp + 0x200f0], rax
lea rax, [rsp + 0x60]
lea rdx, str.SoftwareMicrosoftMediaPlayer
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cf0c
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20110], rbx
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
lea r9, [rsp + 0x54]
lea rdx, str.Installation_Directory
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 0xfffe
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cef6
mov eax, dword [rsp + 0x54]
cmp eax, 1
je 0x40cedd
cmp eax, 2
jne 0x40cef6
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x40cf25
test al, 1
jne 0x40cef6
shr rax, 1
cmp word [rsp + rax*2 + 0xee], di
je 0x40cf2d
test rbx, rbx
je 0x40cf04
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x20110]
mov rcx, qword [rsp + 0x200f0]
xor rcx, rsp
call fcn.004c7bc0
add rsp, 0x20100
pop rdi
ret
mov word [rsp + 0xf0], di
lea rax, [rsp + 0x58]
lea rdx, str.wmplayer.exe
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100f0]
mov r9d, 0x7fff
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x40cfdc
lea rax, [rsp + 0x58]
lea rdx, str.mplayer2.exe
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100f0]
mov r9d, 0x7fff
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x40cfdc
lea rax, [rsp + 0x58]
lea rdx, str.mplayer.exe
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100f0]
mov r9d, 0x7fff
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x40d060
xor edx, edx
lea rcx, [rsp + 0x80]
lea r8d, [rdx + 0x68]
call fcn.004cb030
xor eax, eax
lea rdx, [rsp + 0x100f0]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x80], 0x68
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
jmp 0x40cef9
Function at 0x40d079
Capabilities:
Create process on windows

Disassembly:
test rdx, rdx
je 0x40d1a2
push rbx
mov eax, 0x100f0
call fcn.004e6570
sub rsp, rax
mov rax, qword [0x00535d58]
xor rax, rsp
mov qword [rsp + 0x100e0], rax
mov rbx, rdx
mov r8, rdx
mov qword [rsp + 0x10100], rdi
lea rcx, [rsp + 0xe0]
xor edi, edi
mov edx, 0x7fff
mov dword [rsp + 0x50], edi
call fcn.004c8770
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x50], edi
je 0x40d107
lea r8, str.CPLUtl64.exe__x
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.004c8770
lea rcx, [rsp + 0xe0]
mov r8, rbx
mov edx, 0x7fff
call fcn.004c8820
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.004cb030
xor eax, eax
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x10100]
mov rcx, qword [rsp + 0x100e0]
xor rcx, rsp
call fcn.004c7bc0
add rsp, 0x100f0
pop rbx
ret 0

Function at 0x40d830
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40d8b9
mov ecx, 0x114
mov ebx, 1
call fcn.004c9010
test rax, rax
mov rdi, rax
je 0x40d92e
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.004cb030
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x40d894
lea ebx, [r11 + 1]
jmp 0x40d926
cmp r11d, 5
jne 0x40d926
cmp dword [rdi + 8], 0
jne 0x40d8aa
lea ebx, [r11 + 1]
jmp 0x40d926
cmp r11d, 5
jne 0x40d926
cmp dword [rdi + 8], ebx
lea eax, [r11 + 2]
jmp 0x40d923
cmp al, 4
jae 0x40d8ca
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x114
mov ebx, 2
call fcn.004c9010
test rax, rax
mov rdi, rax
je 0x40d92e
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.004cb030
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x40d926
cmp dword [rdi + 8], 0xa
jne 0x40d916
lea ebx, [r11 - 1]
jmp 0x40d926
cmp r11d, 4
jne 0x40d926
cmp dword [rdi + 8], 0x5a
mov eax, r11d
cmove ebx, eax
mov rcx, rdi
call fcn.004c90e0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x416dd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x00535d58]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp dword [0x0053fc14], 0
jne 0x416f2e
lea rax, [rsp + 0x38]
mov qword [rsp + 0x2a0], rdi
lea rdx, str.SoftwareMicrosoftPlus_ThemesCurrent
mov edi, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov dword [0x0053fc14], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416f26
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 0x104
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416f1b
mov rax, qword [str.Windows_Classic.theme]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x2b0], rbx
mov qword [rcx], rax
mov rax, qword [0x004f8138]
mov qword [rcx + 8], rax
mov rax, qword [0x004f8140]
mov qword [rcx + 0x10], rax
mov rax, qword [0x004f8148]
mov qword [rcx + 0x18], rax
mov rax, qword [0x004f8150]
mov qword [rcx + 0x20], rax
mov eax, dword [0x004f8158]
mov dword [rcx + 0x28], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jl 0x416f13
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x40]
movsxd rcx, eax
mov rax, rbx
sub rax, rcx
lea rcx, [rsp + rax*2 + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x0053fc10]
test eax, eax
cmove ecx, edi
mov dword [0x0053fc10], ecx
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2a0]
mov eax, dword [0x0053fc10]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.004c7bc0
add rsp, 0x2a8
ret