joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400020f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140007c50]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
lea rax, [rsp + 0x38]
lea rdx, str.ddeexecApplication
mov r9d, 0x20019
xor r8d, r8d
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rbx, rsi
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1400021b0
movzx eax, byte [rsp + 0x50]
cmp dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x38]
cmove eax, esi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1400021b0
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.14000165c
mov rbx, rax
cmp rax, rsi
jne 0x14000228f
mov rdx, qword [0x1400090d0]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x14000228f
movzx eax, byte [rsp + 0x50]
cmp dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x40]
cmove eax, esi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x14000228f
lea rdx, str..exe
lea rcx, [rsp + 0x50]
call fcn.1400014f8
cmp rax, rsi
jne 0x140002257
lea rax, [rsp + 0x50]
mov ecx, esi
cmp word [rsp + 0x50], si
je 0x140002250
add rax, 2
inc ecx
cmp word [rax], si
jne 0x140002245
mov eax, ecx
lea rax, [rsp + rax*2 + 0x50]
lea rcx, [rsp + 0x258]
cmp rax, rcx
jae 0x14000228f
mov word [rax], si
cmp si, 0x5c
je 0x140002281
lea rcx, [rsp + 0x50]
cmp rax, rcx
jbe 0x140002281
sub rax, 2
cmp word [rax], 0x5c
jne 0x14000226d
lea rcx, [rax + 2]
xor edx, edx
call fcn.14000165c
mov rbx, rax
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x14000229f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rsi
cmp rcx, rsi
je 0x1400022b4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140005a74
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400022dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x340
mov rax, qword [0x140007c50]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea rdx, str.open
xor esi, esi
mov rbx, rcx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x38], 0xc8
call fcn.1400017a4
cmp eax, esi
jne 0x14000243c
lea rdx, str.edit
mov rcx, rbx
call fcn.1400017a4
cmp eax, esi
jne 0x14000243c
mov rcx, rbx
cmp rbx, rsi
je 0x140002370
mov eax, esi
cmp word [rbx], si
je 0x140002370
add rcx, 2
inc eax
cmp word [rcx], si
jne 0x140002347
cmp eax, 0x104
jbe 0x140002370
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x140002369
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140002451
lea rcx, [rsp + 0x110]
mov r8d, 0x10c
mov rdx, rbx
call fcn.1400015a4
lea rdx, [0x140007908]
lea rcx, [rsp + 0x110]
mov r8d, 0x10c
call fcn.140001628
lea r11, [rsp + 0x30]
lea rdx, [rsp + 0x110]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x140002359
movzx eax, byte [rsp + 0x40]
cmp dword [rsp + 0x3c], 1
mov rcx, qword [rsp + 0x30]
cmove eax, esi
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov byte [rsp + 0x40], al
lea rax, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x140002359
lea rdx, str.open
lea rcx, [rsp + 0x40]
call fcn.1400017a4
cmp eax, esi
jne 0x14000243c
lea rdx, str.edit
lea rcx, [rsp + 0x40]
call fcn.1400017a4
cmp eax, esi
je 0x140002359
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x14000244c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.140005a74
mov rbx, qword [rsp + 0x358]
add rsp, 0x340
pop rsi
ret
Function at 0x140003158
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov eax, dword [rcx + 0x10]
xor ebp, ebp
xor edi, edi
mov rbx, rcx
lea r14d, [rbp + 1]
cmp dword [rcx + 0x14], eax
jne 0x1400032da
mov edx, 0x802
xor ecx, ecx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400032ea
xor edx, edx
mov r8d, 0x802
mov rcx, rax
call sub.MSVCR90.dll_memset
mov rcx, qword [rbx + 0x30]
lea r9, [rbx + 0x10]
mov r8d, 0x800
mov rdx, rdi
test rcx, rcx
jne 0x1400031e1
mov rcx, qword [rbx]
and qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400032dd
jmp 0x1400031ef
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400032dd
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x1400032dd
cmp dword [rbx + 0x20], ebp
jne 0x140003224
cmp byte [rdi], 0xff
jne 0x14000320a
cmp byte [rdi + 1], 0xfe
je 0x140003219
cmp byte [rdi], 0xfe
jne 0x14000321d
cmp byte [rdi + 1], 0xff
jne 0x14000321d
mov dword [rbx + 0x28], r14d
mov dword [rbx + 0x24], r14d
mov r12d, r14d
mov dword [rbx + 0x20], r14d
cmp dword [rbx + 0x24], ebp
je 0x14000322e
shr eax, 1
mov dword [rbx + 0x10], eax
cmp dword [rbx + 0x28], ebp
je 0x14000325f
mov eax, dword [rbx + 0x10]
lea eax, [rax + rax - 2]
test eax, eax
je 0x14000325f
lea r8d, [rax - 1]
lea rdx, [rdi + 1]
shr r8d, 1
add r8d, r14d
mov cl, byte [rdx - 1]
mov al, byte [rdx]
mov byte [rdx - 1], al
mov byte [rdx], cl
add rdx, 2
sub r8, r14
jne 0x14000324c
cmp dword [rbx + 0x24], ebp
je 0x140003275
mov rcx, qword [rbx + 0x18]
call fcn.1400034bc
mov qword [rbx + 0x18], rdi
xor edi, edi
jmp 0x1400032c6
mov eax, dword [0x140009174]
test r14b, al
jne 0x140003299
or eax, r14d
mov dword [0x140009174], eax
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, eax
mov dword [0x140009170], eax
jmp 0x14000329f
mov ecx, dword [0x140009170]
mov rax, qword [rbx + 0x18]
mov r9d, dword [rbx + 0x10]
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbx + 0x10], eax
test eax, eax
je 0x1400032dd
test r12d, r12d
je 0x1400032d5
cmp dword [rbx + 0x24], ebp
je 0x1400032d5
mov eax, r14d
jmp 0x1400032d7
xor eax, eax
mov dword [rbx + 0x14], eax
mov ebp, r14d
test rdi, rdi
je 0x1400032ea
mov rcx, rdi
call fcn.1400034bc
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x140003514
Capabilities:
Download url
Parse url
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x4410
call fcn.140006288
sub rsp, rax
mov rax, qword [0x140007c50]
xor rax, rsp
mov qword [rsp + 0x4400], rax
xor ebx, ebx
mov rdi, rcx
lea rcx, [rsp + 0x48]
lea r8d, [rbx + 0x60]
xor edx, edx
mov dword [rsp + 0x40], ebx
call sub.MSVCR90.dll_memset
cmp rdi, rbx
je 0x1400036c2
cmp word [rdi], bx
je 0x1400036c2
lea r8d, [rbx + 7]
lea rcx, str.http:__
mov rdx, rdi
call qword [sym.imp.MSVCR90.dll__wcsnicmp]
cmp eax, ebx
je 0x1400035b0
lea r8d, [rbx + 8]
lea rcx, str.https:__
mov rdx, rdi
call qword [sym.imp.MSVCR90.dll__wcsnicmp]
cmp eax, ebx
je 0x1400035b0
lea r8d, [rbx + 6]
lea rcx, str.ftp:__
mov rdx, rdi
call qword [sym.imp.MSVCR90.dll__wcsnicmp]
cmp eax, ebx
jne 0x1400036c2
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [rax], bx
je 0x1400035c2
add rax, 2
lea r9, [rsp + 0xb0]
mov r8, rax
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
cmp eax, ebx
je 0x1400036c2
lea rax, [rsp + 0x2c0]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x2360]
xor edx, edx
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x1310]
mov rcx, rdi
mov word [rsp + 0x2360], bx
mov word [rsp + 0x2c0], bx
mov word [rsp + 0x1310], bx
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x40], 0x68
mov dword [rsp + 0x60], 0x825
mov dword [rsp + 0x90], 0x825
mov dword [rsp + 0xa0], 0x825
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
cmp eax, ebx
je 0x14000368f
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x33b0]
lea rcx, [rsp + 0x40]
mov edx, 0x80000000
mov dword [rsp + 0x30], 0x825
call qword [sym.imp.WININET.dll_InternetCreateUrlW]
cmp eax, ebx
je 0x1400036c2
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x33b0]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, ebx
jl 0x1400036c2
lea rcx, [rsp + 0xb0]
call fcn.1400058c0
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x4400]
xor rcx, rsp
call fcn.140005a74
mov rbx, qword [rsp + 0x4428]
add rsp, 0x4410
pop rdi
ret

Function at 0x140003b54
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rsp + 0x70]
mov rbx, r9
mov rdi, r8
mov qword [rax - 0x20], rsi
lea r9, [rax - 0x18]
xor ebp, ebp
xor r8d, r8d
mov qword [rax - 0x28], rbx
mov dword [rax - 0x18], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebp
cmovle ecx, eax
cmp ecx, ebp
jl 0x140003bd8
mov edx, dword [rsp + 0x30]
cmp rsi, rbp
jne 0x140003bad
cmp rbx, rbp
jmp 0x140003bc8
cmp rbx, rbp
je 0x140003bd1
cmp edx, 1
je 0x140003bbc
cmp edx, 2
jne 0x140003bd1
cmp dword [rsi], 2
jb 0x140003bca
mov eax, dword [rsi]
cmp word [rax + rbx - 2], bp
je 0x140003bd1
mov ecx, 0x8000ffff
jmp 0x140003bd8
cmp rdi, rbp
je 0x140003bd8
mov dword [rdi], edx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ecx
add rsp, 0x40
pop rdi
ret
Function at 0x140003eb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov rsi, rdx
mov rbp, rcx
mov qword [r11 + 0x20], r12
mov dword [r11 + 8], r12d
mov rdi, r12
cmp rcx, r12
je 0x14000402b
cmp word [rcx], r12w
je 0x14000402b
cmp rdx, r12
je 0x14000402b
cmp qword [rdx], r12
jne 0x14000402b
mov rdx, qword [str.SOFTWAREMicrosoftSharedXMLAlternateProgIDs]
lea rax, [r11 + 0x20]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
cmp ebx, 0x80070002
je 0x140004019
cmp ebx, r12d
jl 0x140004030
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x70], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r12d
cmovle ebx, eax
mov eax, r12d
cmp ebx, r12d
cmovge eax, dword [rsp + 0x70]
mov dword [rsp + 0x70], eax
cmp ebx, 0x80070002
je 0x140004019
cmp eax, 1
je 0x140003f9d
cmp eax, 2
jne 0x140004019
mov eax, dword [rsp + 0x60]
cmp eax, 2
jbe 0x140004019
cmp ebx, r12d
jl 0x140004030
add eax, 2
xor ecx, ecx
mov edx, eax
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
cmp rax, r12
jne 0x140003fcf
mov ebx, 0x8007000e
jmp 0x140004030
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, rax
call sub.MSVCR90.dll_memset
mov rcx, qword [rsp + 0x78]
add dword [rsp + 0x60], 0xfffffffe
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov r9, rdi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.140003b54
mov ebx, eax
cmp eax, 0x80070002
je 0x140004019
cmp dword [rsp + 0x70], 1
je 0x14000401e
cmp dword [rsp + 0x70], 2
je 0x14000401e
mov ebx, r12d
jmp 0x140004030
cmp eax, r12d
jl 0x140004030
mov qword [rsi], rdi
mov rdi, r12
jmp 0x140004030
mov ebx, 0x80070057
mov rcx, rdi
call fcn.1400034bc
mov rcx, qword [rsp + 0x78]
cmp rcx, r12
je 0x140004048
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004150
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
xor r14d, r14d
mov r12, rdx
mov rdi, rcx
mov qword [r11 - 0x40], r14
mov rsi, r14
mov dword [r11 + 0x18], r14d
mov rbp, r14
mov dword [r11 + 8], r14d
mov dword [r11 + 0x20], r14d
cmp rcx, r14
je 0x140004334
cmp word [rcx], r14w
je 0x140004334
cmp rdx, r14
je 0x140004334
cmp qword [rdx], r14
jne 0x140004334
mov rdx, qword [str.SOFTWAREMicrosoftSharedXMLProgIDs]
lea rax, [r11 - 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r13d, 0x80070000
movzx ebx, ax
or ebx, r13d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x140004267
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r13d
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x140004267
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov r13d, eax
lea rdx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
cmp rax, r14
je 0x140004324
or r9, 0xffffffffffffffff
mov r8, rdi
mov rdx, r13
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
cmp eax, 0x50
jne 0x14000432b
mov ebx, 0x8007007a
jmp 0x140004339
cmp ebx, 0x80070002
jne 0x140004339
lea rdx, [rsp + 0x90]
mov rcx, rdi
call fcn.140004058
cmp eax, r14d
mov ebx, eax
jl 0x140004339
cmp dword [rsp + 0x90], r14d
je 0x140004339
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, rdi
call fcn.1400049d8
cmp eax, r14d
jl 0x1400042f0
mov edx, dword [rsp + 0x80]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
cmp rax, r14
je 0x1400042f0
lea r8, [rsp + 0x80]
mov rdx, rax
mov rcx, rdi
call fcn.1400049d8
cmp eax, r14d
jge 0x1400042f0
mov rcx, rbp
call fcn.1400034bc
mov rbp, r14
mov rdx, rdi
cmp rbp, r14
lea r8, [rsp + 0x98]
cmovne rdx, rbp
mov rcx, 0xffffffff80000000
call fcn.140004880
cmp eax, r14d
mov ebx, eax
jl 0x140004339
cmp dword [rsp + 0x98], r14d
je 0x140004339
jmp 0x14000421b
mov ebx, 0x8007000e
jmp 0x140004339
mov qword [r12], rsi
mov rsi, r14
jmp 0x140004339
mov ebx, 0x80070057
mov rcx, rsi
call fcn.1400034bc
mov rcx, rbp
call fcn.1400034bc
mov rcx, qword [rsp + 0x38]
cmp rcx, r14
je 0x140004359
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004758
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x50], esi
cmp rcx, rsi
je 0x140004861
cmp word [rcx], 0x2e
jne 0x140004861
cmp rdx, rsi
jne 0x14000478f
mov ebx, 0x80070057
jmp 0x140004876
lea rax, [rsp + 0x68]
mov qword [rdx], rsi
mov rdx, rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
cmp ebx, esi
jl 0x140004866
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x60], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov eax, dword [rsp + 0x60]
cmp ebx, esi
cmovge eax, dword [rsp + 0x60]
cmp ebx, esi
jl 0x140004866
cmp eax, 1
je 0x140004821
cmp eax, 2
je 0x140004821
mov ebx, 0x8000ffff
jmp 0x140004866
mov edx, dword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi], rax
cmp rax, rsi
jne 0x14000483c
mov ebx, 0x8007000e
jmp 0x140004866
mov word [rax], si
mov r9, qword [rdi]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140003b54
mov ebx, eax
jmp 0x140004866
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x140004876
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004904
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140007c50]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x30], 0x201
lea edx, [rsi + 3]
mov edi, esi
call qword [sym.imp.SHLWAPI.dll_UrlIsW]
cmp eax, esi
je 0x14000497c
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x402
call sub.MSVCR90.dll_memset
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
lea r9, [rsp + 0x40]
cmp eax, esi
cmovl r9, rsi
cmp r9, rsi
jne 0x14000497f
mov r9, rbx
lea r8, str._SystemRoot__system32NOTEPAD.EXE
lea rdx, str.open
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
mov ecx, 0x80004005
cmovle edi, ecx
mov eax, edi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140005a74
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400049d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
xor r12d, r12d
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov qword [r11 - 0x38], r12
mov qword [r11 - 0x30], r12
mov dword [r11 + 0x20], r12d
mov dword [r11 + 8], r12d
cmp rcx, r12
je 0x140004bfd
cmp word [rcx], r12w
je 0x140004bfd
cmp r8, r12
je 0x140004bfd
lea rax, [r11 - 0x38]
mov rdx, rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [r11 - 0x48], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r14d, 0x80070000
movzx ebx, ax
or ebx, r14d
cmp eax, r12d
cmovle ebx, eax
cmp ebx, r12d
jl 0x140004b5f
mov rdx, qword [str.CurVer]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
cmp eax, r12d
cmovle ebx, eax
cmp ebx, r12d
jl 0x140004b5f
mov rcx, qword [rsp + 0x38]
xor edx, edx
cmp rsi, r12
je 0x140004afa
mov eax, dword [rdi]
lea r8, [rsp + 0x88]
mov r9, rsi
add eax, eax
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.140003b54
cmp eax, r12d
mov ebx, eax
jl 0x140004bbe
cmp dword [rsp + 0x88], 1
je 0x140004ae5
cmp dword [rsp + 0x88], 2
jne 0x140004b54
cmp dword [rsp + 0x70], 2
jbe 0x140004b54
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140004bbc
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x88], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
cmp eax, r12d
cmovle ebx, eax
mov eax, r12d
cmp ebx, r12d
cmovge eax, dword [rsp + 0x88]
cmp ebx, r12d
jl 0x140004bbe
cmp eax, 1
je 0x140004b4b
cmp eax, 2
jne 0x140004b54
mov eax, dword [rsp + 0x70]
cmp eax, 2
ja 0x140004b5b
mov ebx, 0x80004005
jmp 0x140004bbe
shr eax, 1
jmp 0x140004bbc
lea rdx, str.InfoPath.Document
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll__wcsicmp]
cmp eax, r12d
jne 0x140004bbe
cmp rsi, r12
je 0x140004baa
mov edx, dword [rdi]
lea r8, str.InfoPath.Document.1
or r9, 0xffffffffffffffff
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
cmp eax, 0x50
jne 0x140004b9b
mov ebx, 0x8007007a
jmp 0x140004bbe
lea rcx, str.InfoPath.Document.1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x140004bb9
lea rcx, str.InfoPath.Document.1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ebx, r12d
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x140004beb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, r14d
cmp eax, r12d
cmovle ecx, eax
mov rax, qword [rsp + 0x30]
cmp ecx, r12d
cmovge rax, r12
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x38]
cmp rcx, r12
je 0x140004c02
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004c02
mov ebx, 0x80070057
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004c18
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140007c50]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor esi, esi
mov rdi, r8
mov dword [rsp + 0x38], 0x201
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
cmp rcx, rsi
je 0x140004d8e
cmp word [rcx], si
je 0x140004d8e
cmp r8, rsi
je 0x140004d8e
lea rax, [rsp + 0x38]
mov dword [r8], esi
mov r9, rdx
mov qword [rsp + 0x28], rax
mov r8, rcx
lea rax, [rsp + 0x50]
lea edx, [rsi + 2]
lea ecx, [rsi + 0x20]
mov word [rsp + 0x50], si
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov ebp, 0x80070000
cmp eax, esi
mov ebx, eax
jl 0x140004d52
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, ebp
cmp eax, esi
cmovle ebx, eax
cmp ebx, esi
jl 0x140004d52
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rcx, [rsp + 0x40]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, ax
or ecx, ebp
cmp eax, esi
cmovle ecx, eax
cmp ecx, esi
jl 0x140004d52
mov rdx, qword [str.UseURL]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, ebp
cmp eax, esi
cmovle ecx, eax
mov eax, esi
cmp ecx, esi
setge al
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x140004d7c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, ebp
cmp eax, esi
cmovle ecx, eax
mov rax, qword [rsp + 0x30]
cmp ecx, esi
cmovge rax, rsi
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x40]
cmp rcx, rsi
je 0x140004d93
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004d93
mov ebx, 0x80070057
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140005a74
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret