joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40108d
Capabilities:
Encode data using xor

Disassembly:
pop ebx
mov ecx, 0x49e
xor byte [ecx + ebx], 0x57
loop 0x401093
jmp 0x4010a1
Function at 0x402ad8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
xor eax, eax
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xffffffff
push edx
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x402b36
push eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp + 0xc]
push eax
push 0x455a15
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0x10
mov eax, 1
jmp 0x402c1e
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
cmp dword [ebp - 0x18], 0
jge 0x402b68
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 8], 0
je 0x402c09
test eax, eax
jne 0x402c09
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x402bff
mov dword [ebp - 0xc], 0x100
mov byte [ebp - 0x118], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x118]
push edx
push ebx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x402bff
push esi
call fcn.0044676c
pop ecx
push eax
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.00446968
add esp, 0xc
test eax, eax
jne 0x402bf9
lea edx, [ebp - 0x118]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.004032ac
add esp, 0xc
test eax, eax
jne 0x402bff
inc dword [ebp - 0x14]
cmp dword [edi + 0x308], 0
je 0x402bf9
mov dword [ebp - 0x10], 1
jmp 0x402bff
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x402b81
cmp dword [ebp - 0x10], 0
jne 0x402b36
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
sete al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c28
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402d4c
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
cmp dword [ebp - 8], 0
je 0x402d43
test eax, eax
jne 0x402d43
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x402d39
mov dword [ebp - 0xc], 0x100
mov byte [ebp - 0x110], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x110]
push edx
push ebx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x402d39
push esi
xor eax, eax
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x210]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x110]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x210]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push eax
push edx
call fcn.004466dc
add esp, 8
push 0x455a33
lea ecx, [ebp - 0x210]
push ecx
call fcn.004466dc
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
lea edx, [ebp - 0x210]
push edx
push esi
call fcn.00402ad8
add esp, 0xc
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x402c9b
cmp dword [ebp - 0x10], 0
jne 0x402c58
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402d54
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402e4b
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
cmp dword [ebp - 8], 0
je 0x402e42
test eax, eax
jne 0x402e42
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x402e38
mov dword [ebp - 0xc], 0x100
mov byte [ebp - 0x110], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x110]
push edx
push ebx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x402e38
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x110]
push ecx
push edi
push esi
call fcn.00402e54
add esp, 0x14
test eax, eax
je 0x402e32
lea eax, [ebp - 0x110]
push eax
push edi
push esi
call fcn.004032ac
add esp, 0xc
cmp dword [esi + 0x308], 0
je 0x402e32
mov dword [ebp - 0x10], 1
jmp 0x402e38
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x402dc3
cmp dword [ebp - 0x10], 0
jne 0x402d84
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402e54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov edi, eax
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x10c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x10c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [ebp + 0x10]
push eax
push edx
call fcn.004466dc
add esp, 8
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test ebx, ebx
je 0x402ec6
xor eax, eax
jmp 0x402f26
mov dword [ebp - 0xc], 0x100
mov byte [ebp - 0x10c], 0
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10c]
push ecx
lea eax, [ebp - 8]
push eax
push 0
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
test ebx, ebx
jne 0x402f24
push esi
call fcn.0044676c
pop ecx
push eax
push esi
lea edx, [ebp - 0x10c]
push edx
call fcn.00446968
add esp, 0xc
test eax, eax
jne 0x402f24
mov eax, 1
jmp 0x402f26
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402f30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402ff0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
cmp dword [ebp - 8], 0
je 0x402f8b
test eax, eax
je 0x402f96
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x402ff0
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x402fe7
mov dword [ebp - 0xc], 0x100
mov byte [ebp - 0x10c], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10c]
push edx
push ebx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x402fe7
mov eax, dword [ebp + 0x10]
push eax
lea edx, [ebp - 0x10c]
push edx
push edi
push esi
call fcn.00402ff8
add esp, 0x10
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x402f9d
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402ff8
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
push esi
push edi
lea esi, [ebp - 0x118]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp + 0x10], 0
je 0x403048
mov eax, dword [ebp + 0x10]
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.004466dc
add esp, 8
lea ecx, [ebp - 4]
lea eax, [ebp - 0x118]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x403178
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0x18], edx
push 0
push 0
push 0
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
jne 0x40316f
xor edi, edi
cmp edi, dword [ebp - 8]
jae 0x403165
mov dword [ebp - 0xc], 0x100
mov byte [ebx + 0x108], 0
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x118]
push eax
push edx
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push ecx
push 0
push eax
lea esi, [ebx + 0x108]
push esi
push edi
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
jne 0x403165
mov edx, dword [ebp + 0x14]
push edx
call fcn.0044676c
pop ecx
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push esi
call fcn.00446968
add esp, 0xc
test eax, eax
jne 0x40315b
push esi
lea ecx, [ebp - 0x218]
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
push str.DELETING__s_s__s_
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0x14
cmp dword [ebx + 0x308], 0
je 0x40315b
push esi
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegDeleteValueA
test eax, eax
je 0x403152
push esi
push str.cant_delete_value__s
lea edx, [ebp - 0x218]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
jmp 0x40315b
mov dword [ebp - 0x18], 1
jmp 0x403165
inc edi
cmp edi, dword [ebp - 8]
jb 0x4030a5
cmp dword [ebp - 0x18], 0
jne 0x40306c
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403180
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test ebx, ebx
je 0x4031b5
mov eax, ebx
jmp 0x4032a5
push 0
push 0
push 0
lea edx, [ebp - 8]
push 0
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
mov ebx, eax
test ebx, ebx
je 0x4031ec
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
jmp 0x4032a5
xor esi, esi
mov ebx, 0xe8
cmp esi, dword [ebp - 8]
jae 0x40329a
mov dword [ebp - 0xc], 0x100
mov byte [edi + 0x108], 0
mov dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x114]
push eax
push edx
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push ecx
push 0
push eax
lea edx, [edi + 0x108]
push edx
push esi
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x40329a
mov eax, dword [ebp + 0x10]
push eax
call fcn.0044676c
pop ecx
push eax
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [edi + 0x108]
push ecx
call fcn.00446968
add esp, 0xc
test eax, eax
jne 0x40328b
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x114]
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
jmp 0x40329a
mov ebx, 0xe8
inc esi
cmp esi, dword [ebp - 8]
jb 0x4031fc
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4032ac
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, eax
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x100]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x100]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [ebp + 0x10]
push eax
push edx
call fcn.004466dc
add esp, 8
lea ecx, [ebp - 0x100]
push ecx
push str.DELETING__s
lea eax, [ebp - 0x200]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
cmp dword [esi + 0x308], 0
jne 0x403320
xor eax, eax
jmp 0x40337f
lea edx, [ebp - 0x100]
push edx
push 0x80000002
call sub.SHLWAPI.DLL_SHDeleteKeyA
mov ebx, eax
test ebx, ebx
je 0x40335a
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.004038c0
add esp, 8
lea edx, [ebp - 0x100]
push edx
push 0x80000002
call sub.SHLWAPI.DLL_SHDeleteKeyA
mov ebx, eax
test ebx, ebx
je 0x40337d
lea eax, [ebp - 0x100]
lea edx, [ebp - 0x200]
push eax
push str.cant_delete_key__s
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov eax, ebx
jmp 0x40337f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403388
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
push ebx
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x10]
mov ebx, eax
jae 0x403506
mov eax, dword [ebx]
sub eax, 2
je 0x40341a
dec eax
je 0x403441
dec eax
je 0x4033df
push 0x104
lea edx, [ebp - 0x24c]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x455a7e
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004466dc
add esp, 8
jmp 0x403466
push 0x104
lea eax, [ebp - 0x24c]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x455a80
lea edx, [ebp - 0x24c]
push edx
call fcn.004466dc
add esp, 8
push 0x455a8b
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004466dc
add esp, 8
jmp 0x403466
push 0x104
lea eax, [ebp - 0x24c]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x455a8d
lea edx, [ebp - 0x24c]
push edx
call fcn.004466dc
add esp, 8
jmp 0x403466
push 0x104
lea ecx, [ebp - 0x24c]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x455a93
lea eax, [ebp - 0x24c]
push eax
call fcn.004466dc
add esp, 8
lea edx, [ebp - 0x24c]
push edx
call fcn.0044676c
pop ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 4]
push ecx
lea eax, [ebp - 0x24c]
push eax
call fcn.004466dc
add esp, 8
lea edx, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x24c]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4034f9
lea eax, [ebp - 0x24c]
add eax, dword [ebp - 4]
push esi
mov esi, eax
push edi
xor eax, eax
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x24c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00403640
add esp, 8
lea ecx, [ebp - 0x144]
push ecx
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x4034a3
inc edi
add ebx, 8
cmp edi, dword [ebp + 0x10]
jb 0x4033a4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x10c]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x455a9f
lea edx, [ebp - 0x10c]
push edx
call fcn.004466dc
add esp, 8
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0044676c
pop ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + eax - 0x10c]
mov dword [ebp - 4], eax
jmp 0x40362d
push 0x2c
push ebx
call fcn.00446865
add esp, 8
mov esi, eax
test eax, eax
je 0x403577
mov byte [esi], 0
push esi
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
lea esi, [ebp - 0x18c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x18c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x455aa5
push eax
call fcn.004466dc
mov edx, dword [ebp - 4]
add esp, 8
lea ecx, [ebp - 0x18c]
lea eax, [ebp - 0x10c]
mov byte [edx], 0
push ecx
push eax
call fcn.004466dc
add esp, 8
lea edx, [ebp - 0x18c]
mov byte [ebp - 0x18c], 0
push edx
lea ecx, [ebp - 0x10c]
push ecx
push 0x455aaa
push edi
call fcn.00403180
add esp, 0x10
cmp byte [ebp - 0x18c], 0
je 0x40360c
lea eax, [ebp - 0x18c]
push eax
push edi
call fcn.00403640
add esp, 8
lea edx, [ebp - 0x10c]
push edx
push 0x455b2c
push str.SoftwareMicrosoftWindowsCurrentVersionSetupSetupXCatalogs_
push edi
call fcn.00402ff8
add esp, 0x10
test esi, esi
je 0x403636
lea ebx, [esi + 1]
cmp byte [ebx], 0
jne 0x403563
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403640
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ebx
push str.DELETING_FILE__s
lea eax, [ebp - 0x100]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
cmp dword [esi + 0x308], 0
je 0x40368c
push ebx
call fcn.00448d98
pop ecx
test eax, eax
je 0x40368c
push 0x80
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
push ebx
call fcn.00448d98
pop ecx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403694
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff8a8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 1
push 0x104
lea eax, [ebp - 0x250]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x455b5f
lea edx, [ebp - 0x250]
push edx
call fcn.004466dc
add esp, 8
push 0x455b61
lea ecx, [ebp - 0x250]
push ecx
call fcn.004466dc
add esp, 8
lea eax, [ebp - 0x250]
push eax
call fcn.0044676c
pop ecx
mov esi, eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x250]
or ecx, 0xffffffff
lea esi, [ebp - 0x358]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x250]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push str.OEM
push eax
call fcn.004466dc
add esp, 8
push 0x455b6b
lea edx, [ebp - 0x250]
push edx
call fcn.004466dc
add esp, 8
lea ecx, [ebp - 0x148]
push ecx
lea eax, [ebp - 0x250]
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
lea edx, [ebp + esi - 0x358]
mov dword [ebp - 8], edx
jmp 0x403859
test byte [ebp - 0x148], 0x10
jne 0x403847
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
lea eax, [ebp - 0x11c]
push eax
lea edx, [ebp - 0x358]
push edx
call fcn.004466dc
add esp, 8
push 0x455b70
lea ecx, [ebp - 0x358]
push ecx
call fcn.00448550
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x403847
xor esi, esi
jmp 0x4037d0
push edi
lea eax, [ebp - 0x758]
push eax
call fcn.00446871
add esp, 8
test eax, eax
je 0x4037d0
mov esi, 1
jmp 0x4037e8
lea eax, [ebp - 0x758]
push eax
push 0x455b72
push ebx
call fcn.00448584
add esp, 0xc
inc eax
jne 0x4037b5
push ebx
call fcn.004481fc
pop ecx
test esi, esi
je 0x403847
lea edx, [ebp - 0x358]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403640
add esp, 8
lea eax, [ebp - 0x358]
push eax
call fcn.0044676c
pop ecx
sub eax, 3
mov dl, 0x50
movsx ecx, byte [ebp + eax - 0x358]
test byte [ecx*2 + str.________________________________H], 1
jne 0x40382d
add edx, 0x20
mov byte [ebp + eax - 0x358], dl
lea eax, [ebp - 0x358]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00403640
add esp, 8
lea ecx, [ebp - 0x148]
push ecx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_FindNextFileA
mov ebx, eax
cmp dword [ebp - 4], 0xffffffff
je 0x403867
test ebx, ebx
jne 0x40376a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push str.STS:__s
lea eax, [ebp - 0x20c]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push esi
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x403a01
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
jne 0x403a01
cmp dword [ebp - 8], 0
jne 0x403945
push esi
push edi
call fcn.00403870
add esp, 8
xor eax, eax
jmp 0x403a01
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x4039f6
mov dword [ebp - 0xc], 0x100
mov byte [ebp - 0x10c], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10c]
push edx
push ebx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x4039f6
push esi
push edi
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
lea esi, [ebp - 0x20c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x20c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x455b7d
push eax
call fcn.004466dc
add esp, 8
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004466dc
add esp, 8
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004038c0
add esp, 8
push esi
push edi
call fcn.00403870
add esp, 8
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x403950
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a08
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
xor eax, eax
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xffffffff
push edx
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x403a66
push eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp + 0xc]
push eax
push 0x455b7f
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0x10
mov eax, 1
jmp 0x403b91
xor edx, edx
lea eax, [edi + 0x208]
mov byte [eax], 0
inc edx
inc eax
cmp edx, 0x100
jb 0x403a6e
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
cmp dword [ebp - 0x18], 0
jge 0x403aad
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 8], 0
je 0x403b7c
test eax, eax
jne 0x403b7c
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x403b72
mov dword [ebp - 0xc], 0x100
mov byte [ebp - 0x118], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x118]
push edx
push ebx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x403b72
push esi
call fcn.0044676c
pop ecx
push eax
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.00446968
add esp, 0xc
test eax, eax
jne 0x403b68
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push str._s_s0000Device_Parameters
push eax
call fcn.00449890
add esp, 0x10
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x218]
push edx
push str.PortName
push ecx
push edi
call fcn.00403180
add esp, 0x10
lea eax, [ebp - 0x115]
push eax
call fcn.0044cde0
pop ecx
mov byte [edi + eax + 0x207], 1
inc dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x403aca
cmp dword [ebp - 0x10], 0
jne 0x403a7b
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x18]
sete al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret