joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45857e
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d82a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push str..del
push esi
call fcn.004614d4
pop ecx
pop ecx
test eax, eax
je 0x4585b6
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x458645
push edi
xor edi, edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00462120
add esp, 0xc
lea eax, [ebp - 0x20c]
test edi, edi
jne 0x4585ea
push esi
push str._s.del
push eax
call fcn.00408c70
add esp, 0xc
jmp 0x4585fa
push edi
push esi
push str._s.del_d
push eax
call fcn.00408c70
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x458624
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x458624
cmp edi, 0xa
jge 0x458644
inc edi
jmp 0x4585b9
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00471667
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413a09
mov esp, ebp
pop ebp
ret

Function at 0x45c86c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x45c874
mov dword [edx*4 + 0x4deac0], ecx
inc edx
cmp edx, 0x100
jb 0x45c86f
mov esi, 0x800
jmp 0x45c8bd
mov ecx, dword [edx*4 + 0x4de6c0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x4deac0]
mov dword [edx*4 + 0x4deac0], ecx
inc edx
cmp edx, esi
jb 0x45c8a1
mov dword [0x4e0ac0], 0x4588c2
call fcn.0045cc7f
mov ecx, dword [0x4e0ac0]
test eax, eax
mov edx, 0x45895b
cmove ecx, edx
mov dword [0x4e0ac0], ecx
pop esi
ret

Function at 0x45cd36
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x45cd48
xor eax, eax
jmp 0x45cd6f
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.00471a48
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x45cd66
xor eax, eax
jmp 0x45cd6e
push dword [ebx]
call fcn.00471779
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x45cdc2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x45cdd4
xor eax, eax
jmp 0x45cdfb
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.004712e3
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x45cdf2
xor eax, eax
jmp 0x45cdfa
push dword [ebx]
call fcn.00471779
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x45d989
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x45d9aa
xor eax, eax
jmp 0x45daff
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp - 8], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x45d9d6
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x45d9d3
inc edx
cmp edx, ecx
jb 0x45d9c6
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x45dae3
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x45da0e
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x45da4b
cmp al, 0xff
je 0x45da4b
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x45dadc
dec ecx
shl esi, cl
and esi, 7
je 0x45d9ee
movzx eax, byte [esi + 0x4bbf30]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x4bbf28], 0
mov al, byte [ecx + 4]
je 0x45da35
test al, al
je 0x45da35
cmp al, 0xff
jne 0x45d9ee
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x45d9bd
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x45da78
add ebx, edi
add ebx, edx
jmp 0x45da7c
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x45dab2
movzx eax, byte [esi + 0x4bbf30]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x45daa1
cmp al, 0xff
jne 0x45dab2
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp + 0xc]
jmp 0x45da6c
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x45da40
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45e039
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4d82a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45e081
xor eax, eax
jmp 0x45e16b
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00462120
add esp, 0xc
mov dword [ebp - 0x41c], 0x104
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x4af804
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45e14d
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00462120
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.0046b1e2
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e07a
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0046b253
pop ecx
pop ecx
jmp 0x45e168
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0046b253
pop ecx
pop ecx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a09
mov esp, ebp
pop ebp
ret 4
Function at 0x45e17d
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4d82a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x208
push edi
push eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], edi
call fcn.00462120
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
add esp, 0xc
mov ebx, 0x20019
push eax
push ebx
push edi
push 0x4bc0d0
push SysReAllocString
call esi
test eax, eax
je 0x45e1ed
xor eax, eax
jmp 0x45e2bb
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push str.shell
push dword [ebp - 0x218]
call esi
test eax, eax
jne 0x45e1e6
lea eax, [ebp - 0x214]
push eax
push ebx
push edi
push str.opencommand
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x45e1e6
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], 1
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x4af804
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x214]
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0046b47c
mov edi, 0x4bbd28
push edi
push eax
call fcn.004614d4
add esp, 0xc
test eax, eax
je 0x45e1e6
lea esi, [eax + 2]
push edi
push esi
call fcn.004614d4
pop ecx
pop ecx
test eax, eax
je 0x45e1e6
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a09
mov esp, ebp
pop ebp
ret

Function at 0x45e2f1
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fa4
call fcn.00414200
mov eax, dword [0x4d82a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push edi
mov edi, 0x800
xor ebx, ebx
push edi
push ebx
push eax
call fcn.00462120
push edi
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.00462120
add esp, 0x18
lea eax, [ebp - 0x1fa4]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
push 0x4bc168
call fcn.0046b275
pop ecx
lea ecx, [ebp - 0x1fa4]
lea eax, [ecx + eax*2]
push eax
call fcn.0046b253
lea eax, [ebp - 0x1fa4]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0046b253
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0046b253
lea eax, [ebp - 0x1fa4]
push esi
push eax
call fcn.0046b1e2
add esp, 0x20
push 1
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x45e3c3
push ebx
push ebx
lea ecx, [ebp - 0x804]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
call fcn.0045704c
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00413a09
mov esp, ebp
pop ebp
ret 4
Function at 0x45edd4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
xor ecx, ecx
xor edx, edx
xor esi, esi
push edi
cmp dword [ebp + 0xc], ecx
jle 0x45eeb5
mov edi, dword [ebp + 8]
mov al, byte [esi + edi]
cmp al, 0x3d
jne 0x45edf8
inc edx
cmp edx, 2
jg 0x45ee36
cmp al, 0x7f
ja 0x45ee36
movzx eax, al
mov al, byte [eax + 0x4bc380]
cmp al, 0x7f
je 0x45ee36
cmp al, 0x40
jae 0x45ee11
test edx, edx
jne 0x45ee36
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x45edeb
test ecx, ecx
je 0x45eeb5
mov edi, dword [ebp + 0x14]
imul eax, ecx, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x45ee3b
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x45ee38
push 0xffffffffffffffee
pop eax
jmp 0x45eeb7
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x45eeaf
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x4bc380]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x45eea0
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x45ee8b
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x45ee98
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x45eea0
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x45ee50
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
pop ebx
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x45eebb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x83c
mov eax, 0x4adfff
call fcn.0047f4f6
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x848], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00404610
xor ecx, ecx
lea eax, [ebp - 0x82c]
push eax
push 0x20119
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 4], ecx
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
call esi
test eax, eax
je 0x45ef4c
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00455a38
push 0
jmp 0x45f089
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x45ef79
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45ef37
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x45efac
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x45ef37
lea eax, [ebp - 0x830]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x45effe
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.00455a38
jmp 0x45f088
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00462120
add esp, 0xc
mov dword [ebp - 0x840], 0x400
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x844]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x838]
call esi
push dword [ebp - 0x82c]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0046b275
pop ecx
mov ecx, edi
test eax, eax
je 0x45efed
lea eax, [ebp - 0x810]
push eax
call fcn.00404610
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00411240
mov eax, edi
call fcn.0047f4b1
ret
Function at 0x45f23d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x838
mov eax, 0x4ae067
call fcn.0047f4f6
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x844], esi
call fcn.00404610
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], esi
push eax
push 0x20119
push esi
push str.SoftWare
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x82c], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x45f2c8
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00455a38
push 0
jmp 0x45f3b7
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x45f2f1
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45f2b3
lea eax, [ebp - 0x82c]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x838]
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x45f338
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.00455a38
jmp 0x45f3b6
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00462120
add esp, 0xc
mov dword [ebp - 0x83c], 0x400
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x840]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0046b275
pop ecx
mov ecx, edi
test eax, eax
je 0x45f32a
lea eax, [ebp - 0x810]
push eax
call fcn.00404610
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00411240
mov eax, edi
call fcn.0047f4b1
ret
Function at 0x45f3cc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x4ae09a
call fcn.0047f4f6
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x828]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.00404610
xor ecx, ecx
lea eax, [ebp - 0x834]
push eax
push 0xf013f
push ecx
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45f450
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00455a38
push 0
jmp 0x45f54e
xor ecx, ecx
lea eax, [ebp - 0x830]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push esi
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
test eax, eax
je 0x45f484
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45f43b
xor ecx, ecx
lea eax, [ebp - 0x82c]
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push ebx
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x45f4bf
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x45f43b
push 0x800
xor ebx, ebx
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00462120
add esp, 0xc
mov dword [ebp - 0x838], 0x400
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x83c]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.0046b275
pop ecx
mov ecx, edi
test eax, eax
jne 0x45f541
lea eax, [ebp - 0x828]
push eax
call fcn.00455a38
jmp 0x45f54d
lea eax, [ebp - 0x810]
push eax
call fcn.00404610
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00411240
mov eax, edi
call fcn.0047f4b1
ret
Function at 0x45f563
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
mov eax, dword [0x4d82a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0xc28], ebx
mov dword [ebp - 0xc18], ebx
call fcn.00462120
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
jmp 0x45f65d
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45f64f
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc1c], 0x104
push eax
call fcn.00462120
add esp, 0xc
mov dword [ebp - 0xc20], 1
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.DisplayName
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45f643
push dword [ebp - 0xc24]
lea eax, [ebp - 0x414]
push eax
call fcn.004614d4
pop ecx
pop ecx
test eax, eax
jne 0x45f68b
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x45f5bd
push 0x4af804
mov ecx, esi
call fcn.00404610
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a09
mov esp, ebp
pop ebp
ret
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.00462120
add esp, 0xc
mov dword [ebp - 0xc1c], 0x400
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.UninstallString
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc14]
push eax
jmp 0x45f671
Function at 0x45f6dc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
mov ebx, 0xf013f
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x45f7b4
lea eax, [ebp - 8]
push eax
push ebx
push edi
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x45f735
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45f7b4
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x45f759
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45f7aa
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x45f777
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45f7a5
push dword [ebp + 0x18]
call fcn.0046b275
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x18]
push 1
push edi
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45f7bb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov ebx, 0xf013f
mov dword [ebp - 0xc], edi
push ebx
push edi
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45f878
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 8]
push edi
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x45f819
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45f877
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x45f83f
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
jmp 0x45f875
push dword [ebp + 0x14]
call fcn.0046b275
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x475f09
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00475bc9