joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f060
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov edx, 0x435
mov ebp, r13d
mov r15, r8
mov r14d, 0x200
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140094b74
lea r8d, [rdi + 1]
mov rdx, rax
mov rcx, rsi
mov r12, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
movzx ecx, word [rbx]
test cx, cx
je 0x14000f1ab
lea esi, [r13 + 0x30]
cmp r13w, cx
jae 0x14000f104
nop
cmp cx, 0x20
ja 0x14000f104
movzx ecx, word [rbx + 2]
add rbx, 2
cmp r13w, cx
jb 0x14000f0f0
movzx eax, word [rbx]
test ax, ax
je 0x14000f1ab
cmp ax, si
jne 0x14000f12d
movzx ecx, word [rbx + 2]
cmp cx, 0x78
je 0x14000f125
cmp cx, 0x58
jne 0x14000f12d
movzx eax, word [rbx + 4]
add rbx, 4
movzx ecx, ax
call fcn.1400a0a30
test eax, eax
je 0x14000f1a8
movzx ecx, word [rbx]
call fcn.1400a13c8
mov edi, eax
add rbx, 2
add eax, 0xffffffbf
mov ecx, 0x37
cmp eax, 5
cmova ecx, esi
sub edi, ecx
movzx ecx, word [rbx]
call fcn.1400a0a30
test eax, eax
je 0x14000f184
movzx ecx, word [rbx]
shl edi, 4
call fcn.1400a13c8
add edi, eax
add rbx, 2
add eax, 0xffffffbf
cmp eax, 5
ja 0x14000f181
add edi, 0xffffffc9
jmp 0x14000f184
add edi, 0xffffffd0
cmp word [rbx], 0x20
ja 0x14000f1a8
test r14d, r14d
je 0x14000f1a8
mov eax, ebp
dec r14d
inc ebp
mov byte [rax + r15], dil
movzx ecx, word [rbx]
test cx, cx
jne 0x14000f0e8
jmp 0x14000f1ab
mov ebp, r13d
mov rcx, r12
call fcn.140062970
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000f810
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov r14, qword [rcx]
mov ebx, edx
test r8b, r8b
je 0x14000f838
xor eax, eax
jmp 0x14000fa1b
mov r9, qword [rcx + 8]
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x120], rsi
xor edx, edx
mov qword [rsp + 0x20], 0
call fcn.140019d60
mov rsi, rax
test rax, rax
je 0x14000fa0e
lea rcx, [rax + 0x20]
mov qword [rsp + 0x128], rdi
lea r9, [0x1400e27b8]
xor r8d, r8d
call fcn.140018f60
lea ecx, [rbx - 0x9c49]
mov dword [rsi + 0x254], 0x1100
test ecx, 0xfffffffc
jne 0x14000f8ab
cmp ebx, 0x9c4b
je 0x14000f8ab
mov dword [rsi + 0x254], 0x1900
mov r9, rsi
mov dword [rsi + 0x25c], 0xaf
lea r8, [0x14003e4b0]
mov edx, 0xaf
mov rcx, r14
call fcn.140018880
mov rdi, qword [rsi + 0x10]
lea rax, [rsi + 0x10]
cmp rdi, rax
je 0x14000f9f9
sub ebx, 0x9c49
je 0x14000f952
sub ebx, 1
je 0x14000f941
cmp ebx, 2
jne 0x14000f9e2
xorps xmm0, xmm0
mov dword [rbp - 0x60], 0x70
xor eax, eax
lea rcx, [rbp - 0x60]
mov qword [rbp + 4], rax
mov dword [rbp + 0xc], eax
lea rax, [0x1400e2bc8]
movups xmmword [rbp - 0x4c], xmm0
mov qword [rbp - 0x48], rax
mov rax, qword [rdi + 0x28]
movups xmmword [rbp - 0x3c], xmm0
mov qword [rbp - 0x40], rax
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp - 0x30], 1
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
jmp 0x14000f9d2
mov rdx, qword [rdi + 0x28]
mov rcx, r14
call fcn.14001af50
jmp 0x14000f9e2
mov rax, qword [rdi + 0x28]
lea rcx, [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x30], 0x70
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x34], 0x400
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14000f9e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x14000f9e2
lea rax, str.open
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14000f9e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
je 0x14000f9f9
mov rcx, qword [0x1400e1230]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, 0x270
mov rcx, rsi
call fcn.140062970
mov rdi, qword [rsp + 0x128]
mov rsi, qword [rsp + 0x120]
mov eax, 1
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140012bf0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbx, rcx
test edx, edx
jne 0x140012cf1
cmp edi, 1
jne 0x140012cae
mov rcx, qword [rcx + 0x20]
mov edx, 0x83
mov qword [rsp + 0x30], rsi
call qword [sym.imp.USER32.dll_GetDlgItem]
test rax, rax
je 0x140012c3d
mov rdx, qword [rbx + 0x38]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx + 0x20]
mov edx, 0x404
call qword [sym.imp.USER32.dll_GetDlgItem]
test rax, rax
je 0x140012c64
mov rdx, qword [rbx + 0x38]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rbx + 0x20]
mov edx, 0x447
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x140012ca9
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd r8, eax
xor r9d, r9d
mov edx, 0x150
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbx + 0x38]
mov dword [rcx], eax
mov rsi, qword [rsp + 0x30]
test byte [rbx + 0x30], 4
mov r8, rdi
mov rcx, qword [rbx + 0x20]
je 0x140012cd4
mov rdx, rdi
call qword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor r9d, r9d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140016930
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0xa0
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx eax, word [rdx + 0x18]
mov rbp, rcx
sub ax, 0x46
mov ecx, 0xffdf
mov rsi, rdx
test cx, ax
jne 0x140016b2f
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140016b2f
mov qword [rsp + 0xb8], rbx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbp
mov qword [rsp + 0xc0], rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rdi, rax
mov ebx, 0x15
lea rcx, [rax + 0x101d8]
mov rax, qword [rax + 0x10428]
test rax, rax
jne 0x140016a08
mov rax, qword [0x1400e1228]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
mov qword [rcx + 0x10], rax
lea rax, [rdi + 0x10228]
mov qword [rcx + 0x20], rax
mov dword [rcx], 0x50
mov qword [rcx + 8], rbp
mov word [rcx + 0x30], 0x100
mov dword [rcx + 0x18], 0x10001
call qword [sym.imp.COMDLG32.dll_FindTextW]
mov qword [rdi + 0x10428], rax
cmp dword [rdi + 0x10430], 0
jne 0x140016a20
cmp dword [rdi + 0x10434], 0
mov ecx, DispGetParam
cmove ebx, ecx
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x140016a33
and ebx, 0xffffffef
or ebx, 0x40
mov r9d, dword [rdi + 0x10434]
xor eax, eax
mov r8d, dword [rdi + 0x10430]
xor edx, edx
mov rcx, qword [rdi + 0x10428]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x10428]
test rcx, rcx
je 0x140016b15
test bl, 0x40
je 0x140016b15
call qword [sym.imp.USER32.dll_GetTopWindow]
mov rbx, rax
test rax, rax
je 0x140016b15
nop dword [rax]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140016afb
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1b
jb 0x140016afb
mov r8d, reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, str.Edit
lea rcx, [rsp + 0x40]
call fcn.14009b63c
test eax, eax
jne 0x140016afb
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetFocus]
mov r9, 0xffffffffffffffff
xor r8d, r8d
mov edx, 0xb1
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
test rax, rax
jne 0x140016a90
mov rax, qword [rsi]
mov rbx, qword [rsp + 0xb8]
mov qword [rdi + 0x130], rax
mov rdi, qword [rsp + 0xc0]
cmp word [rsi + 0x18], 0x72
jne 0x140016b64
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rcx, rbp
or dword [rax + 0x101f0], 8
mov rdx, qword [rsi]
mov qword [rax + 0x130], rdx
lea rdx, [rax + 0x101d8]
call fcn.140016850
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140094850
mov rbp, qword [rsp + 0xc8]
add rsp, 0xa0
pop rsi
ret
Function at 0x140018c40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x30], 0
mov rbx, rdx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140018d45
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018d35
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x105
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140018d2a
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x40]
mov r9, rbx
lea r8, [0x1400c5bf0]
mov qword [rsp + 0x20], rax
mov edx, 0x105
lea rcx, [rsp + 0x250]
call fcn.140001040
lea rdx, [rsp + 0x250]
mov rcx, 0xffffffff80000000
call fcn.140018c40
test eax, eax
jne 0x140018d2a
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x105
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140018cd0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140094850
add rsp, 0x470
pop rbx
ret
Function at 0x140019fa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbp, rcx
xor edi, edi
mov rcx, rdx
mov esi, edi
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140019ff9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
mov edx, 0x184
mov r8d, eax
mov rcx, rbp
call fcn.140091750
xor eax, eax
jmp 0x14001a08d
test al, 0x10
je 0x14001a023
mov rdi, rbx
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14001a010
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], si
je 0x14001a08a
test rdi, rdi
je 0x14001a052
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, [0x1400c5bf0]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140001040
lea rdx, [rsp + 0x30]
jmp 0x14001a055
mov rdx, rbx
mov rcx, rsi
call fcn.140093ef0
mov rsi, rax
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14001a070
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x14001a028
mov rax, rsi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001a5f0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x300
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x2b8
call fcn.1400b1140
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4010
lea r8, [rsp + 0x30]
mov edx, 0x20
lea rcx, str.a.txt
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rsp + 0x30]
mov rdi, rax
test rcx, rcx
je 0x14001a65c
call qword [sym.imp.USER32.dll_DestroyIcon]
mov r9, rdi
xor r8d, r8d
mov edx, 0x1003
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x2b8
call fcn.1400b1140
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4011
lea r8, [rsp + 0x30]
mov edx, 0x20
lea rcx, str.a.txt
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rsp + 0x30]
mov rdi, rax
test rcx, rcx
je 0x14001a6ba
call qword [sym.imp.USER32.dll_DestroyIcon]
mov r9, rdi
mov edx, 0x1003
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140094850
mov rbx, qword [rsp + 0x318]
add rsp, 0x300
pop rdi
ret
Function at 0x14001b530
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, str.SoftwareBlizzard_EntertainmentWarcraft_III
xor r8d, r8d
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b5f3
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallPath
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov dword [rsp + 0x48], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001b5e6
cmp eax, 0xea
je 0x14001b5e6
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.InstallPathX
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov dword [rsp + 0x48], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001b5e6
cmp eax, 0xea
jne 0x14001b5e8
mov bl, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14001c5b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, rcx
mov rbx, r8
mov ecx, 0x2000
mov rdi, rdx
call fcn.140094b74
mov rsi, rax
call fcn.140001030
xor r14d, r14d
mov qword [rsp + 0x28], rbx
mov r9, rdi
mov qword [rsp + 0x20], r14
mov r8d, 0xfff
mov rdx, rsi
mov rcx, qword [rax]
or rcx, 1
call fcn.1400a05c4
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
test eax, eax
js 0x14001c622
cdqe
cmp rax, 0xfff
ja 0x14001c622
je 0x14001c622
lea rbx, [rsi + rax*2]
jmp 0x14001c631
lea rbx, [rsi + 0x1ffe]
mov word [rsi + 0x1ffe], r14w
xor edx, edx
mov rcx, rsi
call fcn.1400945e0
mov rdi, rax
test rax, rax
je 0x14001c66e
mov rcx, qword [rbp + 0x418]
lea r9, [rsp + 0x68]
mov r8, rbx
mov qword [rsp + 0x20], r14
sub r8, rsi
mov rdx, rax
sar r8, 1
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call fcn.140062970
mov rcx, rsi
call fcn.140062970
mov rbp, qword [rsp + 0x58]
sub rbx, rsi
sar rbx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14001cbb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
push rdi
push r14
sub rsp, 0xa8
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rdx
mov r14, rcx
test rdx, rdx
je 0x14001cdd4
cmp qword [rdx + 0x20], 0
je 0x14001cdd4
mov qword [r11 + 0x18], rbx
lea r8, str.RT_TEXT_FILE
mov rbx, qword [0x1400e1228]
mov edx, 0x110
mov rcx, rbx
mov qword [r11 - 0x18], rsi
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14001ccbf
mov rdx, rax
mov qword [rsp + 0xd8], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001ccb7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14001ccb7
cmp ebp, 4
jbe 0x14001ccb7
mov ecx, dword [rax]
mov edx, 8
mov dword [rsp + 0x40], ecx
mov r8d, ecx
mov rcx, qword [0x1400e1230]
add ebp, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001ccb7
lea r8, [rsi + 4]
mov r9d, ebp
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14004bf10
cmp eax, 1
je 0x14001ccea
mov rcx, qword [0x1400e1230]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [rsp + 0x40], 0
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140094850
add rsp, 0xa8
pop r14
pop rdi
ret
mov rax, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
xor r9d, r9d
lea rax, str._____s_r_n
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea edx, [r9 + 0x40]
call fcn.140021250
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov edi, dword [rsp + 0x40]
sub rsi, rax
sub rdi, rsi
mov rbp, rbx
add rdi, rbx
cmp rbx, rdi
jae 0x14001cdbd
cmp byte [rbx], 0x2d
jne 0x14001cd60
cmp byte [rbx + 1], 0x2d
jne 0x14001cd60
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400a1550
test eax, eax
je 0x14001cd6a
inc rbx
cmp rbx, rdi
jb 0x14001cd41
jmp 0x14001cdbd
lea rcx, [rsi + rbx]
test rcx, rcx
je 0x14001cdbd
add rdi, rsi
mov rdx, rcx
cmp rcx, rdi
jae 0x14001cd96
nop
cmp byte [rdx], 0x2d
lea rax, [rdx + 1]
jne 0x14001cd8e
cmp byte [rax], 0x2d
je 0x14001cd96
mov rdx, rax
cmp rax, rdi
jb 0x14001cd80
call fcn.1400942b0
mov rbx, rax
test rax, rax
je 0x14001cdbd
mov r8, rax
lea rdx, [0x1400c7b50]
mov rcx, r14
call fcn.14001c6a0
mov rcx, rbx
call fcn.140062970
mov rcx, qword [0x1400e1230]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14001ccb7
mov r9, qword [rdx]
xor r8d, r8d
mov edx, 0x11f
call fcn.14001c6d0
jmp 0x14001cccf
Function at 0x1400207c0
Capabilities:
Get common file path
Read file on windows

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x270
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp byte [rcx + 0x442], 0
mov rbp, rcx
jne 0x1400209e5
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x18], r14
xor r14d, r14d
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [rsp + 0x40]
mov rcx, rbp
lea rdx, [0x1400c7f78]
call fcn.14001c6a0
mov rcx, qword [0x1400e1230]
mov esi, 0x200
mov edx, 8
mov dword [rsp + 0x30], r14d
mov edi, r14d
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400209b8
mov rcx, qword [rbp + 0x428]
lea r9, [rsp + 0x30]
mov r8d, esi
mov qword [rsp + 0x20], r14
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020905
nop dword [rax + rax]
add edi, dword [rsp + 0x30]
cmp dword [rsp + 0x30], 0x200
jne 0x140020905
lea eax, [rdi - 1]
cmp byte [rax + rbx], 0xa
je 0x1400208fc
mov rcx, qword [0x1400e1230]
add esi, 0x200
mov r9d, esi
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1400208e5
mov rcx, qword [rbp + 0x428]
lea r9, [rsp + 0x30]
mov edx, edi
mov r8d, 0x200
add rdx, rax
mov qword [rsp + 0x20], r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140020880
jmp 0x140020905
mov rcx, qword [0x1400e1230]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400209b8
test rbx, rbx
je 0x1400209b8
xor edx, edx
mov rcx, rbx
call fcn.140094350
mov rcx, qword [0x1400e1230]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1400209b8
movzx eax, word [rdi]
mov rbx, rdi
cmp r14w, ax
jae 0x140020954
nop dword [rax]
cmp ax, 0x20
ja 0x140020954
movzx eax, word [rdi + 2]
add rdi, 2
cmp r14w, ax
jb 0x140020940
movzx eax, word [rdi]
mov r8, rdi
test ax, ax
je 0x1400209b0
cmp ax, 0x3b
je 0x1400209b0
cmp ax, 0x20
jbe 0x140020976
movzx eax, word [r8 + 2]
add r8, 2
jmp 0x140020965
test ax, ax
je 0x140020983
mov word [r8], r14w
add r8, 2
movzx eax, word [r8]
cmp r14w, ax
jae 0x1400209a5
nop dword [rax]
cmp ax, 0x20
ja 0x1400209a5
movzx eax, word [r8 + 2]
add r8, 2
cmp r14w, ax
jb 0x140020990
mov rdx, rdi
mov rcx, rbp
call fcn.140020370
mov rcx, rbx
call fcn.140062970
cmp byte [rbp + 0x442], r14b
je 0x140020800
mov r14, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x268]
mov rsi, qword [rsp + 0x290]
mov rbx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140094850
add rsp, 0x270
pop rbp
ret
Function at 0x140023010
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x360
mov rax, qword [0x1400db800]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
xor edx, edx
mov word [rsp + 0x40], r14w
mov r8d, 0xfe
lea rcx, [rsp + 0x42]
mov rbp, r9
call fcn.1400b1140
xor edx, edx
mov word [rsp + 0x140], r14w
mov r8d, 0x206
lea rcx, [rsp + 0x142]
call fcn.1400b1140
mov dword [rsp + 0x38], 0x100
mov dword [rsp + 0x3c], 0x208
test rbx, rbx
jne 0x1400230a3
lea edx, [rbx + 0x2e]
mov rcx, rsi
call fcn.1400969a4
test rax, rax
lea rbx, str..txt
cmovne rbx, rax
xor edx, edx
mov rcx, rbx
call fcn.1400944a0
mov qword [rdi + 0x20], rax
mov r9d, 1
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400231f0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400231f0
cmp word [rsp + 0x40], r14w
je 0x1400231f0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400944a0
mov qword [rdi + 0x10], rax
lea r9d, [rbx + 1]
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400231b2
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x140]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400231a7
cmp word [rsp + 0x140], r14w
je 0x1400231a7
xor edx, edx
lea rcx, [rsp + 0x140]
call fcn.1400944a0
mov qword [rdi + 0x18], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbp, rbp
je 0x1400231d2
mov r9, rbp
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rdi
call fcn.140023210
test al, al
je 0x1400231d2
mov al, 1
jmp 0x1400231f2
lea r9, str.open
mov rdx, rsi
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.140023210
test al, al
setne al
jmp 0x1400231f2
xor al, al
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140094850
add rsp, 0x360
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret