joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fcdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.0040c980
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.0040c9a0
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00422230
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x42c]
mov dword [edx + 0x30], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.004072d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x459690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ffa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
add ecx, 0x220
call fcn.0040c980
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 0x220
call fcn.0040c9a0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
call fcn.0050ceb0
add esp, 0x10
cmp eax, dword [ebp - 0x10]
je 0x459774
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00454670
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
push ecx
push str.Failed_writing_to_file
lea edx, [ebp - 0x40]
push edx
call fcn.0045d020
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
call fcn.00510ea9
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x7c]
call fcn.004543e0
push 0x5a43cc
lea eax, [ebp - 0x7c]
push eax
call fcn.00518aed
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00407340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x45bbb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
call fcn.00407600
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
call fcn.00414e20
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x811c9dc5
mov dword [ebp - 0x1c], 0x1000193
mov dword [ebp - 4], 0x811c9dc5
mov dword [ebp - 8], 0
jmp 0x45bbf6
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x45bc19
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
imul ecx, dword [ebp - 4], 0x1000193
mov dword [ebp - 4], ecx
jmp 0x45bbed
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x4605f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5503b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00459960
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.spdlog::sinks::simple_file_sink_class_std::mutex_.0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx], 5
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0xa
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.004072d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x30], 0
movzx eax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004594a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4613f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x461424
mov eax, 1
jmp 0x461426
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x461430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 8
lea eax, [ebp + 0xc]
push eax
push 0xb
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x461464
mov eax, 1
jmp 0x461466
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x461470
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x461488
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
sar ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
shl edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4614e0
mov eax, 1
jmp 0x4614e2
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4614f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 8
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x46152f
mov eax, 1
jmp 0x461531
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x461540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x461578
mov eax, 1
jmp 0x46157a
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x461aa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x461ac1
xor eax, eax
jmp 0x461af1
mov edx, dword [ebp - 4]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x461aef
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov eax, dword [ebp - 8]
jmp 0x461af1
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x462180
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x400
lea eax, [ebp - 4]
push eax
push 0x5b6350
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ecx, 2
imul eax, ecx, 0
add eax, 0x5b6350
mov esp, ebp
pop ebp
ret
Function at 0x462240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x589cf0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
add ecx, dword [ebp - 8]
and ecx, 0xffff
mov word [ebp - 4], cx
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x462420
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55056e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
mov eax, dword [0x5b6b50]
and eax, 1
jne 0x46247c
mov ecx, dword [0x5b6b50]
or ecx, 1
mov dword [0x5b6b50], ecx
mov dword [ebp - 4], 0
mov ecx, 0x5b6b54
call fcn.0040b500
push 0x556290
call fcn.0050c189
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x5b6b54
call fcn.0040aef0
movzx edx, al
test edx, edx
je 0x462591
xor eax, eax
mov word [ebp - 0x824], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x822]
push ecx
call fcn.0050c840
add esp, 0xc
lea edx, [ebp - 0x824]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004622f0
add esp, 8
test eax, eax
jne 0x462503
movzx edx, word [ebp - 0x18]
push edx
movzx eax, word [ebp - 0x14]
push eax
call fcn.00462240
movzx ecx, ax
push ecx
call fcn.004621b0
movzx edx, ax
push edx
call fcn.00462180
push eax
push str._s_d_d_d_d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
jmp 0x46252d
call fcn.00462240
movzx ecx, ax
push ecx
call fcn.004621b0
movzx edx, ax
push edx
call fcn.00462180
push eax
push str._s_d_d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov dword [ebp - 0x1c], 0x1505
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x24], 0
je 0x462563
mov edx, dword [ebp - 0x1c]
shl edx, 5
add edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
jmp 0x462534
movzx eax, word [ebp - 0x18]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0x589cf4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, 0x5b6b54
call fcn.0040b710
mov ecx, 0x5b6b54
call fcn.0040b760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x463310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5506eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6d4
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0xc8]
call fcn.00463280
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040b710
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x463476
xor edx, edx
mov word [ebp - 0x6e0], dx
push 0x616
push 0
lea eax, [ebp - 0x6de]
push eax
call fcn.0050c840
add esp, 0xc
mov dword [ebp - 0x10], 0x30c
mov dword [ebp - 0x10], 0x30c
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x6e0]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push str.UninstallString
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x4633e6
lea edx, [ebp - 0x6e0]
push edx
lea ecx, [ebp - 0x8c]
call fcn.0040b710
mov dword [ebp - 0x10], 0x30c
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x6e0]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push str.DisplayIcon
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x46342e
lea ecx, [ebp - 0x6e0]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.0040b710
mov dword [ebp - 0x10], 0x30c
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x6e0]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x589d58
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x463476
lea eax, [ebp - 0x6e0]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040b710
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0xc8]
push edx
mov ecx, dword [ebp + 8]
call fcn.004634c0
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc8]
call fcn.0042bb60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x463900
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55075b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb1c
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x463947
mov eax, dword [ebp - 0x10]
jmp 0x463aee
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x463980
mov eax, dword [ebp - 0x10]
jmp 0x463aee
cmp dword [ebp - 0x1c], 0
jbe 0x463ad3
mov dword [ebp - 0x18], 0
jmp 0x46399c
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
jae 0x463ad1
mov dword [ebp - 0x24], 0x208
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0xb28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x463abd
xor eax, eax
mov word [ebp - 0x718], ax
push 0x616
push 0
lea ecx, [ebp - 0x716]
push ecx
call fcn.0050c840
add esp, 0xc
lea edx, [ebp - 0xb28]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x589e44
lea ecx, [ebp - 0x718]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x718]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x100]
push ecx
call fcn.00463310
add esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp - 0xac], 0
jne 0x463aa9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp - 0xc4]
push edx
call fcn.0040b4a0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x54]
push eax
call fcn.004635f0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x90]
call fcn.0040b5c0
lea ecx, [ebp - 0x54]
call fcn.0040b670
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x100]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00463e10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.0042bb60
jmp 0x463acc
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
jmp 0x463aee
jmp 0x463993
jmp 0x463ae2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
jmp 0x463aee
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4655e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46567d
xor ecx, ecx
mov word [ebp - 0x62c], cx
push 0x616
push 0
lea edx, [ebp - 0x62a]
push edx
call fcn.0050c840
add esp, 0xc
mov dword [ebp - 0xc], 0x30c
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push str.DisplayName
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46567d
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b530
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
jmp 0x465691
mov ecx, dword [ebp + 8]
call fcn.0040b500
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4674d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor bl, bl
mov byte [ebp - 4], bl
mov esi, dword [edi + 8]
test esi, esi
je 0x4674fe
push dword [esi]
call fcn.004677c0
mov esi, dword [esi + 4]
xor bl, al
pop ecx
test esi, esi
jne 0x4674ea
mov byte [ebp - 4], bl
push dword [ebp - 4]
push edi
call fcn.004675ac
pop ecx
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4677c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor dl, dl
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4677ec
push esi
cmp dword [ecx], 4
je 0x4677e4
mov eax, dword [ecx + 4]
dec eax
js 0x4677e4
mov esi, dword [ecx + 8]
xor dl, byte [esi + eax]
dec eax
jns 0x4677de
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x4677d0
pop esi
mov al, dl
pop ebp
ret

Function at 0x468ea9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x5b0760], 0
jne 0x468ebd
call fcn.00468fb9
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 0x1e
jbe 0x468ece
or eax, 0xffffffff
jmp 0x468fb4
push ebx
push edi
mov edi, dword [ebp + 0x14]
push esi
push 0
push edi
call fcn.0050c840
add esp, 0xc
cmp byte [esi + 0x5b0cea], 0
jne 0x468eef
push esi
call fcn.00469012
pop ecx
lea eax, [esi - 2]
xor ebx, ebx
imul edx, eax, 0x1f
mov dword [ebp - 4], ebx
add edx, 0x5b0968
mov dword [ebp - 8], edx
cmp dword [ebp + 8], ebx
jbe 0x468fb0
mov dword [ebp - 0x10], 0xff
mov eax, dword [ebp + 0x10]
movzx ecx, byte [ebx + eax]
movzx eax, byte [edi]
xor ecx, eax
mov al, byte [ecx + 0x5b0868]
mov ecx, 0xff
mov byte [ebp + 0xf], al
cmp al, cl
je 0x468f5f
xor ecx, ecx
inc ecx
cmp esi, ecx
jbe 0x468f5f
movzx eax, al
lea ebx, [esi - 1]
mov dword [ebp - 0xc], eax
add ebx, edx
movzx eax, byte [ebx]
add eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x10]
mov al, byte [edx + 0x5b0768]
xor byte [ecx + edi], al
inc ecx
dec ebx
cmp ecx, esi
jb 0x468f43
mov ebx, dword [ebp - 4]
lea eax, [esi - 1]
push eax
lea eax, [edi + 1]
push eax
push edi
call fcn.0050c1a0
mov cl, byte [ebp + 0xf]
mov eax, 0xff
add esp, 0xc
cmp cl, al
je 0x468f9b
mov eax, dword [ebp - 8]
movzx ecx, cl
movzx eax, byte [eax]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov al, byte [edx + 0x5b0768]
mov byte [esi + edi - 1], al
jmp 0x468fa0
mov byte [esi + edi - 1], 0
mov edx, dword [ebp - 8]
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, dword [ebp + 8]
jb 0x468f13
pop edi
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469012
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x80], 1
mov esi, ecx
test edi, edi
je 0x469095
mov ecx, 0xff
push ebx
mov dword [ebp + esi*4 - 0x7c], 1
mov ebx, esi
test esi, esi
je 0x469073
mov eax, dword [ebp + ebx*4 - 0x80]
xor edx, edx
movzx eax, byte [eax + 0x5b0868]
add eax, esi
div ecx
movzx eax, byte [edx + 0x5b0768]
xor eax, dword [ebp + ebx*4 - 0x84]
mov dword [ebp + ebx*4 - 0x80], eax
dec ebx
jne 0x46904d
mov eax, dword [ebp - 0x80]
xor edx, edx
movzx eax, byte [eax + 0x5b0868]
add eax, esi
div ecx
inc esi
movzx eax, byte [edx + 0x5b0768]
mov dword [ebp - 0x80], eax
cmp esi, edi
jb 0x46903f
xor ecx, ecx
pop ebx
lea eax, [edi - 2]
imul edx, eax, 0x1f
mov eax, dword [ebp + ecx*4 - 0x80]
mov al, byte [eax + 0x5b0868]
mov byte [edx + ecx + 0x5b0968], al
inc ecx
cmp ecx, edi
jbe 0x46909b
mov ecx, dword [ebp - 4]
mov byte [edi + 0x5b0cea], 1
xor ecx, ebp
pop edi
pop esi
call fcn.0050b792
mov esp, ebp
pop ebp
ret
Function at 0x4892a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4892e9
mov al, byte [esi]
push eax
call fcn.004879c0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x4892c7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x494fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f1], 0
je 0x495043
cmp dword [edi + 0x1c0], 0
je 0x49500d
push esi
push 1
push edi
call fcn.0048fe10
push dword [edi + 0x154]
mov eax, dword [edi + 0x1c0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0048fe10
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x495043
push dword [edi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x55c930
push 2
push eax
call fcn.0050ceb0
push dword [edi + 0x150]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0050ceb0
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x495050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f1], 0
jne 0x49507d
cmp dword [edi + 0x158], 0
je 0x49515c
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x100
push eax
call sym.XFPDFEditor.exe_curl_mvsnprintf
lea esi, [ebp - 0x108]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4950a2
sub esi, ecx
mov ecx, dword [edi + 0x158]
test ecx, ecx
je 0x4950d8
cmp byte [edi + 0xcb7], al
jne 0x4950d8
lea edx, [ebp - 0x108]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4950c3
mov byte [edi + 0xcb7], 1
mov byte [ebp + esi - 0x108], 0xa
inc esi
cmp byte [edi + 0x6f1], 0
je 0x49515b
cmp dword [edi + 0x1c0], 0
je 0x49512f
push 1
push edi
call fcn.0048fe10
push dword [edi + 0x154]
lea eax, [ebp - 0x108]
push esi
push eax
mov eax, dword [edi + 0x1c0]
push 0
push edi
call eax
push 0
push edi
call fcn.0048fe10
add esp, 0x24
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret
push dword [edi + 0x150]
push 1
push 2
push 0x55c930
call fcn.0050ceb0
push dword [edi + 0x150]
lea eax, [ebp - 0x108]
push 1
push esi
push eax
call fcn.0050ceb0
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0050b792
mov esp, ebp
pop ebp
ret