joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e36d0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rbp, r9
mov rdi, r8
mov r15d, edx
mov r14, rcx
mov ecx, 0xf
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov rbx, rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rdx, rax
xor r9d, r9d
mov r8, rbx
mov ecx, 0x800
call fcn.140119998
mov rbx, rax
call fcn.140121d48
mov rcx, rax
test rax, rax
je 0x1400e38bb
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rsi, 0xffffffffffffffff
xor r12d, r12d
test rbx, rbx
je 0x1400e3781
cmp rbx, 0x10000
jae 0x1400e3772
movzx edx, bx
lea rcx, [rsp + 0x50]
call fcn.140017950
jmp 0x1400e3792
mov r8, rsi
inc r8
cmp word [rbx + r8*2], r12w
jne 0x1400e3775
jmp 0x1400e3784
mov r8d, r12d
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140017f80
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov rax, qword [r14]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x86400000
xor r9d, r9d
mov rbx, qword [rsp + 0x50]
mov r8, rbx
mov edx, 0x188
mov rcx, r14
call qword [rax + 0xb0]
test eax, eax
jne 0x1400e37e4
xor dil, dil
jmp 0x1400e3880
mov r9, rbp
mov r8, rdi
mov edx, r15d
mov rcx, r14
call fcn.1400e38d0
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_SetCapture]
mov rcx, rax
call fcn.14011b5e0
mov rcx, qword [r14 + 0x40]
mov r9d, 1
mov r8, rcx
lea edx, [r9 + 0x1f]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [0x140229e28], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
xor r8d, r8d
lea rdx, [0x1400e3e10]
lea ecx, [r8 + 2]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140229e30], rax
mov edx, 2
mov rcx, r14
call fcn.14011eec4
mov rcx, qword [0x140229e30]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x140229e30], r12
mov qword [0x140229e28], r12
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0xc0]
mov dil, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400e3898
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov ecx, 0x80004005
call fcn.1400180c0
int3
Function at 0x1400f0920
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
shr r8d, 3
test r8d, r8d
je 0x1400f0a99
mov qword [rsp + 0x10], rbx
lea r10, [r9 + 4]
mov qword [rsp + 0x18], rbp
lea r9, [rdx + 4]
mov qword [rsp + 0x20], rsi
mov ebx, 0xff
mov qword [rsp], rdi
mov esi, 0xfff
mov r11d, r8d
mov edi, 0x3ff
mov ebp, 0x3fff
lea r8d, [rbx - 0x3f]
nop word [rax + rax]
movzx eax, word [r9 - 4]
lea r10, [r10 + 0xe]
movzx edx, word [r9 - 2]
lea r9, [r9 + 0x10]
ror dx, 8
movzx ecx, dx
shl dx, 4
shr cx, 6
xor cx, ax
and cx, r8w
xor cx, ax
shl ax, 0xa
shr cx, 6
or cx, ax
ror cx, 8
mov word [r10 - 0x12], cx
movzx ecx, word [r9 - 0x10]
ror cx, 8
movzx eax, cx
shl cx, 6
shr ax, 0xa
and ax, 0xf
or ax, dx
ror ax, 8
mov word [r10 - 0x10], ax
movzx edx, word [r9 - 0xe]
movzx eax, dx
shr dx, 8
shl ax, 8
ror ax, 8
and ax, 0x3f
ror dx, 8
or ax, cx
ror ax, 8
mov word [r10 - 0xe], ax
movzx ecx, word [r9 - 0xc]
ror cx, 8
movzx eax, cx
shl cx, 0xa
shr ax, 6
and ax, bx
or dx, ax
ror dx, 8
mov word [r10 - 0xc], dx
movzx edx, word [r9 - 0xa]
ror dx, 8
movzx eax, dx
shl dx, 0xc
shr ax, 4
and ax, di
or ax, cx
ror ax, 8
mov word [r10 - 0xa], ax
movzx ecx, word [r9 - 8]
ror cx, 8
movzx eax, cx
shl cx, 0xe
shr ax, 2
and ax, si
or ax, dx
ror ax, 8
mov word [r10 - 8], ax
movzx eax, word [r9 - 6]
ror ax, 8
and ax, bp
or ax, cx
ror ax, 8
mov word [r10 - 6], ax
sub r11, 1
jne 0x1400f0970
mov rdi, qword [rsp]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
add rsp, 8
ret
Function at 0x1400f8580
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x90], esi
xor edx, edx
lea rcx, str.MJEFrame
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x1400f86c9
call fcn.140047a40
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
test rax, rax
lea rdx, [rax + 0x20c]
jne 0x1400f85d0
lea rdx, [0x1401acff0]
lea rcx, [rsp + 0x98]
call fcn.14000a4d0
mov dword [rsp + 0x90], 3
lea rcx, [rsp + 0x98]
call fcn.140043d80
lea r8, str.Media_Editor.exe
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xa0]
call fcn.14003f3a0
nop
mov byte [rsp + 0x68], 1
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], 0xffffffff
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x20
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov r8b, 1
xor edx, edx
mov rcx, rax
call fcn.140052a00
nop
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400f8692
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400f8688
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400f8692
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400f86c9
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400f86bf
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400f86c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [r14]
mov edi, dword [rax - 0x10]
inc edi
lea rax, str.MESharedPlayData
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor edx, edx
lea rcx, [rdx - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
je 0x1400f8736
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
je 0x1400f8736
movsxd r8, edi
add r8, r8
mov rdx, qword [r14]
mov rcx, rax
call fcn.1401535f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edx, edx
lea rcx, str.MJEFrame
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x1400f876f
nop word [rax + rax]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea rcx, str.MJEFrame
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x1400f8750
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87d0
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test rbx, rbx
je 0x1400f8791
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x14010ff40
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov qword [rcx + 8], rdx
lea r14d, [r9 + 1]
mov dword [rcx + 0x10], ebx
mov eax, ebx
mov dword [rcx + 0x14], r9d
xchg dword [0x140229e78], eax
cmp r14d, dword [rcx]
mov ebp, r9d
mov rsi, rdx
mov rdi, rcx
cmovge r14d, dword [rcx]
cmp r14d, 1
jne 0x14010ffa1
test r9d, r9d
js 0x1401100bc
mov rax, qword [rsi]
xor r8d, r8d
mov edx, ebx
mov rcx, rsi
call qword [rax]
inc ebx
cmp ebx, ebp
jle 0x14010ff83
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
jle 0x1401100bc
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r13
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [rdi]
lea r13d, [r14 - 1]
sub eax, r14d
movsxd rbp, r14d
mov dword [rdi + 0x18], eax
mov rcx, 0xffffffffffffffff
mov eax, 0x18
dec rbp
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.140017d70
mov r12, rax
mov r14d, ebx
test rbp, rbp
jle 0x140110090
mov qword [rsp + 0x70], r15
lea rsi, [rax + 0x10]
mov r15, rbp
nop dword [rax]
nop word [rax + rax]
movsxd rcx, r14d
lea r8, [0x1401100d0]
mov qword [rsp + 0x28], rbx
mov qword [rsi - 8], rdi
mov dword [rsi], r14d
lea rdx, [rcx + rcx*2]
mov dword [rsp + 0x20], ebx
lea r9, [r12 + rdx*8]
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi - 0x10], rax
test rax, rax
jne 0x140110047
dec dword [rdi]
inc r14d
add rsi, 0x18
sub r15, 1
jne 0x140110010
mov r15, qword [rsp + 0x70]
mov edx, r13d
mov rcx, rdi
call fcn.1401100f0
mov rcx, qword [rdi + 0x48]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, r12
mov rcx, qword [rbx]
test rcx, rcx
je 0x140110084
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 0x18
sub rbp, 1
jne 0x140110076
jmp 0x1401100aa
mov edx, r13d
mov rcx, rdi
call fcn.1401100f0
mov rcx, qword [rdi + 0x48]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r12
call fcn.140017d60
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140111150
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1401111c8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1401111c8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1401111c8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1401111bc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401111da
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1401111aa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1401111ca
Function at 0x14011b560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14011b5be
call fcn.1401247a8
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14011b5be
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14011b5c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.1401116a8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14011c030
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor ebp, ebp
mov rcx, qword [rcx + 0xd0]
mov rbx, rdx
test rcx, rcx
jne 0x14011c0df
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
test eax, eax
js 0x14011c104
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x14011c090
mov edx, edi
mov rcx, rbx
call fcn.140017f20
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x14011c104
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov word [rax + rdi*2], bp
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14011c0bc
mov eax, ebp
jmp 0x14011c0c9
movsxd rdx, dword [rcx - 0xc]
call fcn.14015d120
test eax, eax
js 0x14011c104
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14011c104
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x14011c0ef
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [case.0x14012952d.0]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.1400180c0
int3
Function at 0x14011c5e0
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 r14
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14011c699
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14011c699
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14011c699
test rdi, rdi
je 0x14011c699
xor r14d, r14d
xor esi, esi
call fcn.1401247a8
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14011c679
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14011c699
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.140141218
mov edi, eax
test eax, eax
je 0x14011c695
mov rcx, rbx
call fcn.14011c2a8
mov eax, edi
jmp 0x14011c69b
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 r14
ret

Function at 0x14011d590
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.14013f858
mov rdi, rax
test rax, rax
je 0x14011d60c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14011d607
cmp dword [rbx], 0x40
jb 0x14011d607
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14011d607
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14011d610
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401222b4
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 r14
sub rsp, 0x20
mov rbx, qword [rcx + 0x100]
xor r14d, r14d
mov rdi, rcx
mov rsi, qword [rcx + 0xf8]
cmp qword [rcx + 0xf0], r14
je 0x14012231b
call fcn.1401247a8
mov rdx, qword [rdi + 0xf0]
lea r8d, [r14 + 5]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14012231b
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rsi, rsi
je 0x14012232c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov eax, 1
test rbx, rbx
je 0x140122371
mov edx, 0xffff
lea rcx, [rbx + 0xc]
cmp word [rbx + 2], dx
jne 0x140122350
movzx r8d, word [rbx + 0x12]
movzx edx, word [rbx + 0x14]
jmp 0x14012235b
movzx edx, word [rcx]
mov rcx, rbx
movzx r8d, word [rbx + 0xa]
test dword [rcx], 0x1801
jne 0x14012236e
test r8w, r8w
jne 0x14012236e
test dx, dx
je 0x140122371
mov eax, r14d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14012238c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x1401223cb
cmp dword [rcx + 0xe8], 0
jne 0x1401223cb
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.1401247a8
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14012240f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14012240f
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.140122744
jmp 0x140122411
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140122428
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.1401247a8
mov r8d, 5
mov rdx, rbx
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140122492
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140122492
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.1401224ac
jmp 0x140122494
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14012c650
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, r9
mov rbx, r8
and qword [r9], 0
mov r14, qword [rbp + 0x40]
and dword [r14], 0
cmp qword [rcx + 0xb0], 0
je 0x14012c728
xor r8d, r8d
call fcn.14012cac8
mov rsi, rax
test rax, rax
je 0x14012c7d7
mov qword [rbp - 0x20], rsi
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x40]
mov dword [r14], ecx
test eax, eax
jne 0x14012c70c
call fcn.140017d70
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012c70c
lea ebx, [rax + 1]
jmp 0x14012c71a
mov rcx, qword [rdi]
call fcn.140017d60
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14012c7d5
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdx
lea rdx, [rbp + 0x40]
mov rax, qword [rax + 0x108]
call qword [case.0x14012952d.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x14012c758
xor ebx, ebx
jmp 0x14012c7b4
shr ecx, 1
mov dword [r14], ecx
call fcn.140017d70
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x14012c7b0
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x14012c7ec
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x14012c7ec
movsxd r9, ecx
movzx edx, word [rax + r9*2 + 2]
test ecx, ecx
js 0x14012c7ec
cmp ecx, dword [rax - 0x10]
jg 0x14012c7ec
shl dl, 4
sub dl, 0x51
add dl, byte [rax + r9*2]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x14012c771
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14012c7d5
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14012952d.0]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.1400180c0
int3
Function at 0x14012c7f8
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14012c873
xor r8d, r8d
call fcn.14012cac8
mov rsi, rax
test rax, rax
je 0x14012c86f
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14012c86f
mov eax, dword [rsp + 0x30]
jmp 0x14012c889
mov eax, edi
jmp 0x14012c889
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14012c89c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f68]
mov eax, 0x2068
call fcn.1401514a0
sub rsp, rax
mov rax, qword [0x14021b668]
xor rax, rsp
mov qword [rbp + 0x1f50], rax
mov r12, r9
mov r10, r8
mov rdi, rdx
mov r14, qword [rbp + 0x1fd0]
mov qword [rsp + 0x38], rdx
xor r13d, r13d
cmp qword [rcx + 0xb0], r13
je 0x14012ca49
xor r8d, r8d
mov rdx, r10
call fcn.14012cac8
mov rsi, rax
test rax, rax
jne 0x14012c90f
mov rdx, r14
jmp 0x14012ca81
call fcn.140121d48
mov rcx, rax
test rax, rax
je 0x14012caba
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14012952d.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x30], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test eax, eax
jne 0x14012c9e5
mov edx, dword [rsp + 0x30]
shr edx, 1
lea ecx, [rax + 1]
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14012c98e
lea rcx, [rsp + 0x38]
call fcn.140017f20
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test rbx, rbx
jne 0x14012c9be
mov eax, r13d
jmp 0x14012c9d2
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14015d120
test eax, eax
js 0x14012caaf
cmp eax, dword [rbx - 0xc]
jg 0x14012caaf
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], r13w
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x14012ca1a
lea rcx, [rbx - 0x18]
call fcn.140018d10
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14012ca89
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x14012ca3a
mov rdx, r14
mov rcx, rdi
call fcn.140018c80
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14012ca89
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14012952d.0]
jmp 0x14012ca89
lea r8, [0x1401acff0]
test r14, r14
cmovne r8, r14
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140018c80
mov rax, rdi
mov rcx, qword [rbp + 0x1f50]
xor rcx, rsp
call fcn.140151370
add rsp, 0x2068
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.1400180c0
nop
mov ecx, 0x80004005
call fcn.1400180c0
int3