joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d3ce
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x4fa151
call fcn.0041c61c
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x42d4c5
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x42d44a
lea eax, [ebp - 0x218]
push eax
call fcn.00497313
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004078c0
and dword [ebp - 4], 0
push 0x503374
call fcn.00497313
pop ecx
push eax
push 0x503374
lea ecx, [ebp - 0x230]
call fcn.0040e650
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0042d031
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x42d4b6
call fcn.0040e4d0
mov eax, edi
jmp 0x42d577
or dword [ebp - 4], 0xffffffff
call fcn.0040e4d0
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x42d575
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x42d50c
lea eax, [ebp - 0x218]
push eax
call fcn.00497313
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004078c0
mov esi, 0x503374
mov dword [ebp - 4], 1
push esi
call fcn.00497313
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.0040e650
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0042d031
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.0040e4d0
test esi, esi
je 0x42d575
mov eax, esi
jmp 0x42d577
xor eax, eax
call fcn.0041c5d7
ret 4
Function at 0x42d57f
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x428], eax
xor edi, edi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push 9
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov esi, edi
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42d5d2
xor eax, eax
jmp 0x42d6d1
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, edi
push 0x104
push eax
push edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42d6be
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42d6a4
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.0048faf0
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42d69c
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.0049198d
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call edi
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x42d60e
push dword [ebp - 0x418]
call edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041bf36
mov esp, ebp
pop ebp
ret 4
Function at 0x42e015
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x428], eax
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x418], ebx
push ebx
push eax
mov esi, ebx
mov dword [ebp - 0x41c], ebx
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x109
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42e160
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x42e13a
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42e12c
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
push eax
call fcn.0048faf0
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e124
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.0049198d
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call edi
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x42e096
push dword [ebp - 0x418]
call edi
test esi, esi
jne 0x42e255
xor ebx, ebx
lea eax, [ebp - 0x418]
push eax
push 9
push ebx
push 0x504f98
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e255
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
jmp 0x42e239
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42e22b
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.0048faf0
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e223
push dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
call fcn.0049198d
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call edi
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x42e195
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf36
mov esp, ebp
pop ebp
ret 4
Function at 0x42e3d5
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x4fa29e
call fcn.0041c61c
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x42e440
lea eax, [ebp - 0x218]
push eax
call fcn.00497313
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.004078c0
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.00497313
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.0040e650
xor ebx, ebx
cmp word [esi], bx
jne 0x42e47a
mov eax, ebx
jmp 0x42e481
push esi
call fcn.00497313
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.0040e650
mov esi, str..lnk
push esi
call fcn.00497313
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.0040e650
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x42e58f
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.0048faf0
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.0048faf0
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004972f1
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0042cd8c
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.00497313
pop ecx
test eax, eax
jne 0x42e57d
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004972f1
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x42e58f
xor esi, esi
inc esi
jmp 0x42e591
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.0040e4d0
mov eax, esi
call fcn.0041c5d7
ret 4
Function at 0x42e5a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x54d5b4]
test al, al
jne 0x42e642
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42e639
lea eax, [ebp - 0x20c]
push eax
call fcn.0049714d
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0049198d
pop ecx
pop ecx
test eax, eax
jne 0x42e631
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0049198d
pop ecx
pop ecx
test eax, eax
je 0x42e639
mov byte [0x54d5b4], bl
jmp 0x42e63f
mov bl, byte [0x54d5b4]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret
Function at 0x42f063
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42f0ce
lea eax, [ebp - 0x20c]
push 0x503374
push eax
call fcn.004a403b
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0042e650
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf36
mov esp, ebp
pop ebp
ret 4

Function at 0x42fabd
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 0x42fb9e
mov edi, dword [ebp + 8]
mov al, byte [esi + edi]
cmp al, 0x3d
jne 0x42fae1
inc edx
cmp edx, 2
jg 0x42fb1f
cmp al, 0x7f
ja 0x42fb1f
movzx eax, al
mov al, byte [eax + 0x505960]
cmp al, 0x7f
je 0x42fb1f
cmp al, 0x40
jae 0x42fafa
test edx, edx
jne 0x42fb1f
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x42fad4
test ecx, ecx
je 0x42fb9e
mov edi, dword [ebp + 0x14]
imul eax, ecx, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x42fb24
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x42fb21
push 0xffffffffffffffee
pop eax
jmp 0x42fba0
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x42fb98
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x505960]
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 0x42fb89
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x42fb74
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x42fb81
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x42fb89
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x42fb39
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 0x42fba4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x42fbb8
xor eax, eax
jmp 0x42fcf6
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x42fbe1
dec edx
sub edx, 1
jne 0x42fbe3
add eax, 2
jmp 0x42fbe3
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x42fbf6
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x42fcf5
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x42fc8c
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + 0x505920]
mov byte [edi], al
mov eax, edx
shr eax, 4
add eax, ecx
and eax, 0x3f
mov al, byte [eax + 0x505920]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
lea eax, [eax + edx*4]
and eax, 0x3f
mov al, byte [eax + 0x505920]
mov byte [edi + 2], al
mov al, byte [esi + 0x505920]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x42fc21
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x42fc8f
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x42fce8
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x42fca4
movzx ecx, byte [eax + 1]
jmp 0x42fca6
xor ecx, ecx
mov eax, edx
shl edx, 4
shr eax, 2
mov al, byte [eax + 0x505920]
mov byte [edi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + 0x505920]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x42fcdd
and ecx, 0xf
mov al, byte [ecx*4 + 0x505920]
mov byte [edi + 2], al
jmp 0x42fce1
mov byte [edi + 2], 0x3d
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42fd7b
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x42fdfb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x42fdfa
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x42feb3
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00497313
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c0ba
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.004972f1
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x42ff2d
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x42ff24
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42ff1a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42ff2b
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x42fef7
jmp 0x42ff2d
xor edi, edi
push esi
call fcn.0041c0c3
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ff3d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.004303c8
lea eax, [ebp - 0x20c]
push eax
call fcn.00497313
add esp, 0x14
test eax, eax
je 0x42fff5
lea eax, [ebp - 0x20c]
push 0x503374
push eax
call fcn.004a403b
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004a403b
lea eax, [ebp - 0x20c]
push 0x503374
push eax
call fcn.004a403b
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42ffce
lea eax, [ebp - 0x20c]
push eax
call fcn.0042feb3
pop ecx
cmp word [ebp - 0x20c], si
je 0x42ffe6
lea eax, [ebp - 0x20c]
push eax
call fcn.00497313
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004078c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf36
mov esp, ebp
pop ebp
ret

Function at 0x4300a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x54dc74]
test al, al
jne 0x430142
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x430139
lea eax, [ebp - 0x20c]
push eax
call fcn.0049714d
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0049198d
pop ecx
pop ecx
test eax, eax
jne 0x430131
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0049198d
pop ecx
pop ecx
test eax, eax
je 0x430139
mov byte [0x54dc74], bl
jmp 0x43013f
mov bl, byte [0x54dc74]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret
Function at 0x430150
Capabilities:
Check if file exists

Disassembly:
push 0xc54
mov eax, 0x4fa4d5
call fcn.0041c61c
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
and dword [ebp - 0xc60], 0
push esi
push 0
push eax
call fcn.0048faf0
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0048faf0
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0048faf0
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.0048faf0
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048faf0
push esi
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.0048faf0
xor eax, eax
mov dword [ebp - 0xc44], 7
add esp, 0x48
mov dword [ebp - 0xc48], esi
mov word [ebp - 0xc58], ax
push esi
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], esi
push eax
push esi
call fcn.004303c8
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004972f1
lea eax, [ebp - 0x218]
push eax
call fcn.00497313
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0048fc4a
add esp, 0x24
test eax, eax
jne 0x430254
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.0042ff3d
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00426d9e
push esi
push 1
jmp 0x4303b5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004972f1
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.004a403b
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.004972f1
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.004a403b
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.004972f1
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.004a403b
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x430392
cmp dword [ebp - 0xc5c], 0
je 0x430392
test ecx, ecx
je 0x430392
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s_s_
push eax
call fcn.00407bc0
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x430362
lea eax, [ebp - 0x420]
push eax
call fcn.0042feb3
pop ecx
cmp word [ebp - 0x420], 0
jne 0x430370
xor eax, eax
jmp 0x43037d
lea eax, [ebp - 0x420]
push eax
call fcn.00497313
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.004078c0
jmp 0x4303a1
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.0042ff3d
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00426d9e
xor eax, eax
push 0
inc eax
push eax
lea ecx, [ebp - 0xc58]
call fcn.0040e4d0
mov eax, edi
call fcn.0041c5d7
ret
Function at 0x43043b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x83c
mov eax, 0x4fa508
call fcn.0041c61c
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.0040ade0
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 0x4304cc
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.00426d9e
push 0
jmp 0x430609
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x82c]
call esi
test eax, eax
je 0x4304f9
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4304b7
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x43052c
push dword [ebp - 0x838]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x4304b7
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 0x43057e
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.00426d9e
jmp 0x430608
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0048faf0
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.00497313
pop ecx
mov ecx, edi
test eax, eax
je 0x43056d
lea eax, [ebp - 0x810]
push eax
call fcn.0040ade0
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.0040e4d0
mov eax, edi
call fcn.0041c5d7
ret