joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45f496
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x45f496
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45f496
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45f496
mov ecx, dword [ebp + 0x10]
push ebx
push eax
lea eax, [ebx + 1]
push eax
call fcn.0044f3e0
push eax
call fcn.0055bfb0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ebx
call fcn.00458960
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x45f4a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c485
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x45f607
mov dword [ebp - 4], ebx
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x45f61d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push dword [ebp + 8]
push dword [esi]
push str._s_d._s
push eax
call fcn.0042c6c0
mov esi, dword [ebp - 0x10]
add esp, 0x14
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
cmp edi, 0xffffffff
je 0x45f5e4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x45f5dd
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0xa]
push eax
mov dword [ebp + 0x10], 0
call fcn.0044f3e0
push 0
lea ecx, [ebp + 0x10]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 8], eax
test eax, eax
je 0x45f5c1
cmp dword [ebp + 0x10], ebx
jne 0x45f5c1
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00458960
mov byte [ebp - 4], 3
test edi, edi
je 0x45f5a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.00429660
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
jl 0x45f627
mov ebx, dword [ebp + 8]
mov dword [ecx - 0xc], 0
mov eax, dword [eax]
mov byte [eax], 0
jmp 0x45f5df
xor ebx, ebx
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
test edi, edi
je 0x45f5ef
push edi
call eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45f607
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00429b00
push 0x80070057
call fcn.00429b00
int3
Function at 0x460d10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c52e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [edi], vtable.KProductConfig.0
xor ecx, ecx
mov dword [edi + 4], eax
mov dword [ebp - 4], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 7
mov word [edi + 4], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], 7
mov word [edi + 0x1c], cx
lea esi, [edi + 0x34]
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x2c], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
call fcn.00557fd4
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 4]
mov byte [ebp - 4], 3
mov word [edi + 0x3c], 0
mov byte [edi + 0x3e], 0
cmp ecx, ebx
je 0x460dde
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x460dd7
mov ebx, dword [ebx]
push eax
push ebx
call fcn.0042e2d0
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x1c]
cmp ecx, eax
je 0x460df0
push 0
push eax
call fcn.0042e2d0
mov ecx, edi
call fcn.00443e70
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x460e2d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x460e23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x460e53
push edx
push ecx
call fcn.00558004
add esp, 8
mov dword [edi], vtable.KOemRWConfig.0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret 4
call fcn.00566a14
int3
Function at 0x462ae0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598c2d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x462b25
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push dword [0x63ca80]
lea eax, [ebp - 0x10]
push eax
call fcn.00448eb0
add esp, 0xc
push dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0
call ebx
push str..new
lea eax, [ebp + 8]
push edi
push eax
call fcn.004297b0
add esp, 0xc
push dword [eax]
call ebx
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462b7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..old
lea eax, [ebp + 8]
push edi
push eax
call fcn.004297b0
add esp, 0xc
push dword [eax]
call ebx
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462bac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x462bc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463ad0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ca4d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
test eax, eax
jne 0x463b8e
mov dword [ebp - 4], eax
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x463ba0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
lea eax, [ebp + 0xc]
push str._s_d__x
push eax
call fcn.0042c6c0
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00567464
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x463b6b
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [edi], eax
test eax, eax
jne 0x463b76
jmp 0x463b71
mov dword [edi], 0
mov eax, dword [ebp + 0x10]
inc dword [eax]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x463b8e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
int3

Function at 0x463ef0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cafd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
cmp dword [ebp + 0x14], esi
mov edi, 0x20006
mov eax, 0x20206
mov dword [ebp - 4], esi
cmovne edi, eax
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], esi
push eax
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x463f5e
mov esi, dword [ebp + 0x14]
and edi, 0x300
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0
test eax, eax
je 0x463f6a
xor ebx, ebx
jmp 0x463fa8
mov edi, dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0x463fa8
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Registry_delete_value_failed
push str.15_t_RegLog_t_ws:__x___ws___ws
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonapponlyonekregaux.cpp
push str._INFO_
push 0x63cbb0
call fcn.0046bb20
add esp, 0x20
test esi, esi
je 0x463fb3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cb46
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 2
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x464152
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov byte [ebp - 4], 1
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x464041
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x18], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x20219
mov dword [ebp - 0x10], 0
mov eax, 0x20019
cmovne eax, ecx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x464135
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4640a5
cmp eax, 2
jne 0x464127
mov ecx, esi
call fcn.00429bc0
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x464148
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x4640d5
push edx
mov ecx, esi
call fcn.00429e50
mov edi, dword [esi]
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x464127
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x464115
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x464148
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x464148
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x464135
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00429b00
push 0x80004005
call fcn.00429b00
int3
Function at 0x464280
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cbbd
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
test eax, eax
jne 0x46432e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x464306
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x464303
lea esi, [eax + 1]
jmp 0x46432e
mov ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Registry_write_failed
push str.15_t_RegLog_t_ws:__x___ws___ws
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonapponlyonekregaux.cpp
push str._INFO_
push 0x63cbb0
call fcn.0046bb20
add esp, 0x20
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46433c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x464350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cbbd
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
test eax, eax
jne 0x46441c
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4643f2
mov edx, dword [ebp + 0x14]
lea ecx, [edx + 2]
mov dword [ebp - 0x14], ecx
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4643c0
sub edx, dword [ebp - 0x14]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4643f2
lea esi, [eax + 1]
jmp 0x46441c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Registry_write_failed
push str.15_t_RegLog_t_ws:__x___ws___ws
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonapponlyonekregaux.cpp
push str._INFO_
push 0x63cbb0
call fcn.0046bb20
add esp, 0x20
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x46442a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x464440
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.0055c530
add esp, 0xc
test edi, edi
je 0x464555
cmp word [edi], 0
je 0x464555
lea eax, [ebp - 0x210]
push eax
push 0x10008
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46455a
jmp 0x4644b0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x464527
test esi, esi
jne 0x464536
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.00464440
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4644b0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
mov eax, 0x3f2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00557e89
mov esp, ebp
pop ebp
ret

Function at 0x464570
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
sub eax, 0
je 0x4645ad
sub eax, 1
jne 0x464594
mov eax, dword [ecx]
sub eax, 0
je 0x4645a4
sub eax, 1
je 0x4645a4
sub eax, 1
je 0x46459b
mov eax, 0xde
pop ebp
ret
mov dword [ebp + 0x10], ecx
pop ebp
jmp fcn.004652e0
mov dword [ebp + 0x10], ecx
pop ebp
jmp fcn.00464c60
mov dword [ebp + 0x10], ecx
pop ebp
jmp fcn.00464440
Function at 0x4645c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x20a
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0055c530
push 0x20a
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0055c530
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0055c530
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x630]
add esp, 0x24
mov dword [ebp - 0x634], 0x104
push eax
push 1
push 0
push 0
push 0x80000003
call edi
test eax, eax
je 0x464661
lea eax, [ebp - 0x630]
push eax
push 1
push 0
push 0
push 0x80000003
call edi
test eax, eax
jne 0x4647ca
push ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x634]
mov ebx, 1
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4647bd
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0056b39c
push 0x5b4804
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0056b327
push dword [ebp - 0x638]
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0056b327
add esp, 0x24
lea eax, [ebp - 0x62c]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000003
call edi
test eax, eax
je 0x46471b
lea eax, [ebp - 0x62c]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000003
call edi
test eax, eax
jne 0x464785
mov eax, dword [esi + 4]
sub eax, 0
je 0x464763
sub eax, 1
jne 0x464779
mov eax, dword [esi]
sub eax, 0
je 0x46474e
sub eax, 1
je 0x46474e
sub eax, 1
jne 0x464779
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x62c]
call fcn.004652e0
jmp 0x464776
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x62c]
call fcn.00464c60
jmp 0x464776
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x62c]
call fcn.00464440
add esp, 0xc
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x634]
mov dword [ebp - 0x634], 0x104
push ecx
lea ecx, [ebp - 0x628]
mov eax, ebx
push ecx
push eax
push dword [ebp - 0x630]
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x464693
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00557e89
mov esp, ebp
pop ebp
ret
Function at 0x46a110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d347
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24c], 0
mov eax, dword [esi]
test eax, eax
jne 0x46a2a3
mov dword [ebp - 0x230], eax
push 0x208
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x24c], 1
call fcn.0055c530
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x46a1bd
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a1b0
jmp 0x46a20b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x46a222
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0055c530
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x46a222
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a200
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0042e2d0
push str._version.dll
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00438a20
mov edx, dword [ebp - 0x21c]
add esp, 0xc
cmp edx, 8
jb 0x46a279
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46a26f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a2bd
push edx
push ecx
call fcn.00558004
add esp, 8
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x248]
mov dword [esi], eax
call fcn.0042aad0
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3