Function at 0x4521e2
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff44c
push ebx
push esi
push edi
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
mov ebx, 0x4a6420
lea eax, [ebx + 0x1f]
call fcn.0046c404
mov dword [ebp - 0xc], eax
cmp edi, 0xffffffff
jne 0x452268
mov edi, dword [ebp - 0xc]
xor esi, esi
cmp edi, esi
jle 0x452268
push esi
lea eax, [ebx + 0x1f]
push eax
lea edx, [ebp - 0x2b0]
push edx
call fcn.00497dc4
add esp, 0xc
lea ecx, [ebx + 0xb]
lea edx, [ebx + 0x2b]
lea eax, [ebp - 0x2b0]
push ecx
lea ecx, [ebp - 0x260]
push pe_nt_image_headers32
call fcn.0046c0c4
push dword [ebp + 0xc]
lea eax, [ebp - 0x260]
push eax
call fcn.00494e18
add esp, 8
test eax, eax
jne 0x452263
mov edi, esi
jmp 0x452268
inc esi
cmp edi, esi
jg 0x452218
cmp dword [ebp + 8], 0
je 0x452281
push 0x4f
lea eax, [ebp - 0x60]
push dword [ebp + 8]
push eax
call fcn.00495044
add esp, 0xc
jmp 0x452292
push edi
lea edx, [ebx + 0x1f]
push edx
lea ecx, [ebp - 0x60]
push ecx
call fcn.00497dc4
add esp, 0xc
lea edx, [ebx + 0x2b]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
call fcn.0046bee8
cmp byte [ebp - 6], 0
je 0x4522d7
xor esi, esi
cmp esi, dword [ebp - 0xc]
jge 0x4522d7
push esi
lea eax, [ebx + 0x1f]
push eax
lea edx, [ebp - 0x300]
push edx
call fcn.00497dc4
add esp, 0xc
lea edx, [ebx + 0x30]
lea eax, [ebp - 0x300]
xor ecx, ecx
call fcn.0046bff0
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x4522ad
xor ecx, ecx
mov cl, byte [ebp - 6]
lea edx, [ebx + 0x30]
lea eax, [ebp - 0x60]
call fcn.0046bff0
lea edx, [ebx + 0x38]
lea eax, [ebp - 0x60]
call fcn.0046c3a0
lea edx, [ebx + 0x40]
lea eax, [ebp - 0x60]
call fcn.0046c3a0
lea edx, [ebx + 0x4a]
lea eax, [ebp - 0x60]
xor ecx, ecx
call fcn.0046bff0
cmp dword [ebp - 4], 0
je 0x4523e8
push 0x6b
push dword [ebp - 4]
call sub.USER32.DLL_IsDlgButtonChecked
mov ecx, eax
lea edx, [ebx + 0x4a]
lea eax, [ebp - 0x60]
call fcn.0046bff0
push 0x66
push dword [ebp - 4]
call sub.USER32.DLL_IsDlgButtonChecked
test eax, eax
je 0x452360
push 0x400
lea eax, [ebp - 0x700]
push eax
push 0x67
push dword [ebp - 4]
call sub.USER32.DLL_GetDlgItemTextA
lea ecx, [ebp - 0x700]
lea edx, [ebx + 0x38]
lea eax, [ebp - 0x60]
call fcn.0046bee8
push 0x68
push dword [ebp - 4]
call sub.USER32.DLL_IsDlgButtonChecked
test eax, eax
je 0x4523e8
push 0x69
push dword [ebp - 4]
call sub.USER32.DLL_GetDlgItem
mov edi, eax
push edi
call sub.USER32.DLL_GetWindowTextLengthA
add eax, 0xa
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
call fcn.00493640
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov eax, edi
call fcn.0046e4a8
lea edx, [ebx + 0x40]
lea eax, [ebp - 0x60]
mov ecx, esi
call fcn.0046bf34
push esi
call fcn.00493478
cmp byte [ebp - 5], 0
pop ecx
je 0x4523c6
lea eax, [ebx + 0x6f]
call fcn.0046c55c
test al, al
jne 0x4523e8
lea edx, [ebp - 0xb00]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0xb00]
lea edx, [ebx + 0x6f]
lea eax, [ebp - 0x60]
call fcn.0046bee8
cmp byte [ebp - 5], 0
jne 0x45295e
mov eax, dword [0x4bb9b8]
call fcn.00450c24
mov esi, eax
mov eax, esi
call fcn.0040eda0
mov ecx, eax
lea edx, [ebx + 0x76]
lea eax, [ebp - 0x60]
call fcn.0046bee8
push esi
call fcn.00493478
pop ecx
mov eax, dword [0x4bb9c4]
call fcn.00450c24
mov esi, eax
mov eax, esi
call fcn.0040eda0
mov ecx, eax
lea edx, [ebx + 0x80]
lea eax, [ebp - 0x60]
call fcn.0046bee8
push esi
call fcn.00493478
pop ecx
cmp dword [0x4b996c], 0
sete cl
and ecx, 1
lea edx, [ebx + 0x118]
lea eax, [ebp - 0x60]
call fcn.0046bff0
mov ecx, 0x4b72d4
lea edx, [ebx + 0x11f]
lea eax, [ebp - 0x60]
call fcn.0046bee8
lea edx, [ebx + 0x129]
lea eax, [ebp - 0x60]
call fcn.0046c3a0
mov ecx, 0x4b9971
lea edx, [ebx + 0x12d]
lea eax, [ebp - 0x60]
call fcn.0046bee8
mov ecx, 0x4b9d71
lea edx, [ebx + 0x141]
lea eax, [ebp - 0x60]
call fcn.0046bee8
mov ecx, 0x4b82d4
lea edx, [ebx + 0x149]
lea eax, [ebp - 0x60]
call fcn.0046bee8
cmp byte [0x4b82d4], 0
je 0x4524c6
lea esi, [ebx + 0xb]
jmp 0x4524d2
mov eax, dword [0x4c7c64]
call fcn.0040eda0
mov esi, eax
push esi
call fcn.00494e94
pop ecx
inc eax
push eax
lea edx, [ebx + 0x151]
lea eax, [ebp - 0x60]
mov ecx, esi
call fcn.0046c030
cmp dword [0x4b8f90], 0x80000000
jne 0x452518
cmp dword [0x4b8f8c], 0
jne 0x452518
lea eax, [ebx + 0x371]
push eax
lea edx, [ebp - 0xb34]
push edx
call fcn.00494e64
add esp, 8
jmp 0x45252f
push dword [0x4b8f90]
push dword [0x4b8f8c]
lea eax, [ebp - 0xb34]
call fcn.0040b974
lea ecx, [ebp - 0xb34]
lea edx, [ebx + 0x165]
lea eax, [ebp - 0x60]
call fcn.0046bee8
xor ecx, ecx
mov cl, byte [0x4b908b]
lea edx, [ebx + 0x178]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b9088]
lea edx, [ebx + 0x181]
lea eax, [ebp - 0x60]
call fcn.0046bff0
lea edx, [ebx + 0x18d]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4b8f6c]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8f81]
lea edx, [ebx + 0x19a]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8f80]
lea edx, [ebx + 0x1a1]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8fc1]
lea edx, [ebx + 0x1a7]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8fc0]
lea edx, [ebx + 0x1b1]
lea eax, [ebp - 0x60]
call fcn.0046bff0
lea edx, [ebx + 0x1b6]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4b8f74]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8f7e]
lea edx, [ebx + 0x1bc]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b908a]
lea edx, [ebx + 0x1bf]
lea eax, [ebp - 0x60]
call fcn.0046bff0
lea edx, [ebx + 0x1c4]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4b8f68]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8fbd]
lea edx, [ebx + 0x1cd]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8f7d]
lea edx, [ebx + 0x1d7]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8f7c]
lea edx, [ebx + 0x1e2]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b9089]
lea edx, [ebx + 0x1eb]
lea eax, [ebp - 0x60]
call fcn.0046bff0
lea edx, [ebx + 0x1f0]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4b8f64]
call fcn.0046bff0
lea edx, [ebx + 0x1f7]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4b6ed0]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4ba171]
lea edx, [ebx + 0x23f]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4ba172]
lea edx, [ebx + 0x24a]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b9552]
lea edx, [ebx + 0x257]
lea eax, [ebp - 0x60]
call fcn.0046bff0
push 0x4b8ad5
lea eax, [ebp - 0xbb4]
push eax
call fcn.00494e64
add esp, 8
lea edx, [ebp - 0xbb4]
push edx
call fcn.00494e94
pop ecx
mov edx, eax
inc edx
xor eax, eax
cmp edx, eax
jle 0x45272c
mov ecx, eax
add cl, 0x49
xor byte [ebp + eax - 0xbb4], cl
inc eax
cmp edx, eax
jg 0x45271b
push edx
lea ecx, [ebp - 0xbb4]
lea eax, [ebp - 0x60]
lea edx, [ebx + 0x202]
call fcn.0046c030
xor ecx, ecx
mov cl, byte [0x4b8b55]
lea edx, [ebx + 0x20b]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8fbe]
lea edx, [ebx + 0x21a]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8fb0]
lea edx, [ebx + 0x225]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b9014]
lea edx, [ebx + 0x233]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4b8fc2]
lea edx, [ebx + 0x260]
lea eax, [ebp - 0x60]
call fcn.0046bff0
lea edx, [ebx + 0x270]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4b954c]
call fcn.0046bff0
mov ecx, 0x4b8fc3
lea edx, [ebx + 0x27f]
lea eax, [ebp - 0x60]
call fcn.0046bee8
lea edx, [ebx + 0x2aa]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4c7c6c]
call fcn.0046bff0
lea edx, [ebx + 0x2b7]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4c7c70]
call fcn.0046bff0
lea edx, [ebx + 0x2c0]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4c7c74]
call fcn.0046bff0
lea edx, [ebx + 0x2ca]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4c7c78]
call fcn.0046bff0
mov eax, 0x4b9020
call fcn.00413a48
mov ecx, eax
lea edx, [ebx + 0x2e0]
lea eax, [ebp - 0x60]
call fcn.0046bff0
mov eax, 0x4b904c
call fcn.00413a48
mov ecx, eax
lea edx, [ebx + 0x2ef]
lea eax, [ebp - 0x60]
call fcn.0046bff0
cmp dword [0x4b8fa8], 1
sete cl
and ecx, 1
lea edx, [ebx + 0x2fd]
lea eax, [ebp - 0x60]
call fcn.0046bff0
cmp dword [0x4b8fa8], 2
sete cl
and ecx, 1
lea edx, [ebx + 0x30d]
lea eax, [ebp - 0x60]
call fcn.0046bff0
lea edx, [ebx + 0x31b]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4b9554]
call fcn.0046bff0
lea edx, [ebx + 0x321]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4b9558]
call fcn.0046bff0
lea edx, [ebx + 0x327]
lea eax, [ebp - 0x60]
mov ecx, dword [0x4b955c]
call fcn.0046bff0
cmp dword [0x4b8f84], 3
sete cl
and ecx, 1
lea edx, [ebx + 0x32d]
lea eax, [ebp - 0x60]
call fcn.0046bff0
cmp dword [0x4b8f84], 2
sete cl
and ecx, 1
lea edx, [ebx + 0x336]
lea eax, [ebp - 0x60]
call fcn.0046bff0
cmp dword [0x4b8f84], 5
sete cl
and ecx, 1
lea edx, [ebx + 0x340]
lea eax, [ebp - 0x60]
call fcn.0046bff0
xor ecx, ecx
mov cl, byte [0x4c7c7e]
lea edx, [ebx + 0x34e]
lea eax, [ebp - 0x60]
call fcn.0046bff0
mov ecx, 0x4b914c
lea edx, [ebx + 0x35a]
lea eax, [ebp - 0x60]
call fcn.0046bee8
push 0xc0
mov ecx, 0x4b908c
lea edx, [ebx + 0x365]
lea eax, [ebp - 0x60]
call fcn.0046c030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc