Function at 0x407d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e390
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x62acc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x270]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], 0
call fcn.0042f5c0
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [esi]
mov dword [ebp - 0x258], edi
test eax, eax
je 0x407d9f
push eax
call fcn.00503e53
add esp, 4
push 0
push 0
push 0
lea eax, [esi + 4]
mov dword [esi + 4], edi
push ebx
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x254], eax
mov dword [esi], edi
call fcn.0042f640
test eax, eax
je 0x407dcd
mov esi, 1
jmp 0x408090
mov ebx, dword [ebp - 0x268]
cmp dword [ebp - 0x24c], edi
je 0x407ece
push 0x631380
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00503df9
lea edx, [ebp - 0x118]
add esp, 0xc
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x407e01
sub edx, ecx
xor ecx, ecx
test edx, edx
jle 0x407e20
mov al, cl
add al, 0x64
xor byte [ebp + ecx - 0x118], al
inc ecx
cmp ecx, edx
jl 0x407e10
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x24c]
call fcn.00430480
mov edi, eax
add esp, 8
mov dword [ebp - 0x258], edi
test edi, edi
jne 0x407e67
mov eax, dword [esi]
test eax, eax
je 0x407e50
push eax
call fcn.00503e53
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], 0
mov esi, 2
jmp 0x408090
lea eax, [ebp - 0x248]
push eax
push 0
push edi
call fcn.00430250
add esp, 0xc
test eax, eax
je 0x407ec0
push edi
call fcn.004302b0
add esp, 4
push edi
test al, al
je 0x407e92
call fcn.0042f840
jmp 0x407e97
call fcn.00435390
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x407ea9
push eax
call fcn.00503e53
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], 0
mov esi, 3
jmp 0x408090
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x250], eax
jmp 0x407ed0
xor eax, eax
add eax, 3
add eax, ebx
push eax
call fcn.00503e6e
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x407f2d
test edi, edi
je 0x407f07
push edi
call fcn.004302b0
add esp, 4
push edi
test al, al
je 0x407eff
call fcn.0042f840
jmp 0x407f04
call fcn.00435390
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x407f16
push eax
call fcn.00503e53
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], 0
mov esi, 4
jmp 0x408090
mov eax, ebx
cdq
push edx
push eax
push ecx
lea ecx, [ebp - 0x270]
call fcn.0042f7c0
test eax, eax
je 0x407f89
test edi, edi
je 0x407f63
push edi
call fcn.004302b0
add esp, 4
push edi
test al, al
je 0x407f5b
call fcn.0042f840
jmp 0x407f60
call fcn.00435390
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x407f72
push eax
call fcn.00503e53
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], 0
mov esi, 5
jmp 0x408090
cmp dword [ebp - 0x24c], 0
je 0x408014
mov eax, dword [esi]
push dword [ebp - 0x250]
mov byte [ebx + eax], 0xd
mov eax, dword [esi]
mov byte [ebx + eax + 1], 0xa
add ebx, 2
mov eax, dword [esi]
add eax, ebx
push eax
push 0
push edi
call fcn.00430b40
add esp, 0x10
test eax, eax
je 0x40800e
cmp eax, 0x600
je 0x40800e
test edi, edi
je 0x407fe8
push edi
call fcn.004302b0
add esp, 4
push edi
test al, al
je 0x407fe0
call fcn.0042f840
jmp 0x407fe5
call fcn.00435390
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x407ff7
push eax
call fcn.00503e53
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], 0
mov esi, 6
jmp 0x408090
add ebx, dword [ebp - 0x250]
mov eax, dword [esi]
mov byte [ebx + eax], 0
mov esi, dword [esi]
cmp byte [esi], 0
je 0x40806d
mov edi, dword [ebp - 0x254]
mov al, byte [esi]
cmp al, 0xd
je 0x408031
cmp al, 0xa
jne 0x408037
mov byte [esi], 0
inc esi
jmp 0x408027
test al, al
je 0x408067
mov dword [ebp - 0x254], esi
cmp al, 0xa
je 0x408051
test al, al
je 0x408051
mov al, byte [esi + 1]
inc esi
cmp al, 0xd
jne 0x408041
push ecx
push dword [edi]
lea eax, [ebp - 0x254]
mov ecx, edi
push eax
call fcn.0040cac0
cmp byte [esi], 0
jne 0x408027
mov edi, dword [ebp - 0x258]
test edi, edi
je 0x40808e
push edi
call fcn.004302b0
add esp, 4
push edi
test al, al
je 0x408086
call fcn.0042f840
jmp 0x40808b
call fcn.00435390
add esp, 4
xor esi, esi
lea ecx, [ebp - 0x270]
call fcn.0042f5f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe8dc
mov esp, ebp
pop ebp
ret 8