Function at 0x435730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x38
mov dword [ebp - 0x3e0], eax
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004a7560
push 0x1000
mov dword [ebp - 0x41c], 0x3c
call fcn.004a5340
push 0x1000
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], 0x800
call fcn.004a5340
add esp, 0x14
mov dword [ebp - 0x3f0], eax
push str.Wininet.dll
mov dword [ebp - 0x3ec], 0x800
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x4357ee
push dword [ebp - 0x40c]
call fcn.004a7190
push dword [ebp - 0x3f0]
mov dword [ebp - 0x40c], 0
call fcn.004a7190
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret
push str.InternetCrackUrlW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
jne 0x4358f5
push dword [ebp - 0x40c]
call fcn.004a7190
mov ecx, dword [0x520340]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov esi, 0xe
idiv esi
add esp, 4
cmp edx, 5
jne 0x435856
mov eax, ecx
sub eax, 0
je 0x43584c
dec eax
je 0x435840
inc ecx
mov dword [0x520340], ecx
jmp 0x435856
mov dword [0x520340], 0
jmp 0x435856
mov dword [0x520340], 2
mov dword [ebp - 0x40c], 0
call fcn.00439ae0
test al, al
jne 0x4358d4
mov eax, dword [0x520340]
mov ecx, eax
sub ecx, 0
je 0x4358ca
dec ecx
je 0x43589f
push dword [ebp - 0x3f0]
inc eax
mov dword [0x520340], eax
call fcn.004a7190
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x3f0]
mov dword [0x520340], 0
call fcn.004a7190
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret
mov dword [0x520340], 2
push dword [ebp - 0x3f0]
call fcn.004a7190
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
lea edx, [ebp - 0x41c]
push edx
push 0
push dword [eax - 0xc]
push eax
call ecx
test eax, eax
jne 0x435a18
mov ebx, dword [0x520340]
mov eax, ebx
imul eax, ebx
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 0xf
jne 0x43593a
xor esi, esi
mov edi, ebx
lea ebx, [ebx]
inc esi
dec edi
cmp esi, 0xf6
jb 0x435930
push dword [ebp - 0x40c]
call fcn.004a7190
push dword [ebp - 0x3f0]
mov dword [ebp - 0x40c], 0
call fcn.004a7190
mov esi, dword [0x520340]
add esp, 8
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 3
jne 0x435a05
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x435982
mov dword [0x520340], esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x40c]
mov ecx, edi
call fcn.00402b60
push dword [ebp - 0x3f0]
mov ecx, ebx
call fcn.00402b60
movzx eax, word [ebp - 0x404]
mov ecx, dword [ebp - 0x3e0]
push dword [ebp - 0x40c]
mov dword [ecx], eax
call fcn.004a7190
push dword [ebp - 0x3f0]
mov dword [ebp - 0x40c], 0
call fcn.004a7190
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.004a63c4
mov esp, ebp
pop ebp
ret