Function at 0x4050e5
Capabilities:
Encode data using xor

Disassembly:
push 0x174
mov eax, 0x42e4a9
call fcn.0041a90a
mov dword [ebp - 4], 1
mov ax, word [0x439508]
mov word [ebp - 0x110], ax
push 0x38
pop ebx
test ah, ah
je 0x405127
xor ecx, ecx
xor edx, edx
mov eax, ecx
div ebx
add dl, 0x39
xor byte [ebp + ecx - 0x110], dl
inc ecx
cmp ecx, 2
jl 0x405111
lea eax, [ebp - 0x110]
push eax
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x10c]
call fcn.0040452b
pop ecx
mov byte [ebp - 4], 2
xor ecx, ecx
mov eax, dword [str.ZUKE]
mov dword [ebp - 0x118], eax
mov al, byte [0x439104]
mov byte [ebp - 0x114], al
xor edx, edx
mov eax, ecx
div ebx
add dl, 0x39
xor byte [ebp + ecx - 0x118], dl
inc ecx
cmp ecx, 5
jl 0x405159
lea eax, [ebp - 0x118]
push eax
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0xf4]
call fcn.0040452b
pop ecx
push 0x48
mov byte [ebp - 4], 3
call fcn.00419f96
mov esi, eax
pop ecx
mov dword [ebp - 0x118], esi
push 0x48
push 0
push esi
mov byte [ebp - 4], 4
call fcn.0041bd20
sub esp, 0xc
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004042fc
lea eax, [ebp - 0x10d]
mov ecx, esi
push eax
call fcn.0040280f
mov ebx, eax
mov byte [ebp - 4], 3
cmp byte [ebp - 0x10d], 0
mov dword [ebp - 0x118], ebx
je 0x405527
cmp byte [0x439507], 0
lea edi, [ebp - 0x1c]
mov esi, str.TUAcQP_0D_b:
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x405210
push 0x38
pop esi
push 0xc
xor ecx, ecx
pop ebx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x39
xor byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, ebx
jl 0x4051f8
mov ebx, dword [ebp - 0x118]
sub esp, 0x18
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.004042c3
mov ecx, ebx
call fcn.00411624
test al, al
je 0x405527
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov byte [ebp - 4], 5
xor edi, edi
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x38]
push 0xc
cdq
pop ecx
idiv ecx
inc dword [0x4417d0]
test eax, eax
jle 0x40551f
inc dword [0x4417c8]
lea eax, [ebp - 0x64]
push 4
push edi
push eax
mov ecx, ebx
call fcn.00411965
push 5
push edi
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00411965
push 8
push edi
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.00411965
push 2
push edi
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.00411965
push 3
push edi
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 9
push eax
mov ecx, ebx
call fcn.00411965
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x138]
mov edx, dword [0x4417d0]
call fcn.004027a8
mov esi, eax
push 0x438f44
lea edx, [ebp + 8]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x180]
call fcn.0040452b
pop ecx
push 0xc
pop ecx
push esi
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x168]
push eax
push dword [ebp - 0x117]
call fcn.00404891
push 1
push 0x438f40
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xd
call fcn.004044c7
push eax
lea ecx, [ebp - 0x34]
call fcn.0040428a
mov byte [ebp - 4], 0xe
xor ecx, ecx
mov eax, dword [0x4393d0]
mov dword [ebp - 0x120], eax
mov al, byte [0x4393d4]
push 0x38
mov byte [ebp - 0x11c], al
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x39
xor byte [ebp + ecx - 0x120], dl
inc ecx
cmp ecx, 5
jl 0x405353
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404870
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040428a
lea ecx, [ebp - 0x34]
call fcn.00402616
lea ecx, [ebp - 0x168]
call fcn.00402616
lea ecx, [ebp - 0x180]
call fcn.00402616
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x13
call fcn.00402616
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xdc]
push eax
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x150]
call fcn.00404a9d
add esp, 0x10
push eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x14
push eax
mov ecx, 0x441d00
call fcn.0040d8d4
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0x13
call fcn.00402616
sub esp, 0x18
mov ecx, esp
push 0x441dd8
call fcn.004042fc
push 0x7e
pop edx
lea ecx, [ebp - 0x150]
call fcn.00407ad7
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x1c]
call fcn.004070fb
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0x17
call fcn.00402616
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp esi, eax
je 0x4054c2
mov ebx, eax
push esi
lea ecx, [ebp - 0x34]
call fcn.004042fc
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x64]
call fcn.00404221
cmp eax, 0xffffffff
je 0x4054a9
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x440900
push eax
call fcn.00404221
cmp eax, 0xffffffff
jne 0x4054a9
push 0x438f48
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x138]
call fcn.0040452b
pop ecx
push eax
mov ecx, 0x440900
mov byte [ebp - 4], 0x19
call fcn.0040444b
lea ecx, [ebp - 0x138]
call fcn.00402616
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x17
call fcn.00402616
add esi, 0x18
cmp esi, ebx
jne 0x405446
mov ebx, dword [ebp - 0x118]
lea ecx, [ebp - 0x1c]
call fcn.004043bd
lea ecx, [ebp - 0x7c]
call fcn.00402616
lea ecx, [ebp - 0x94]
call fcn.00402616
lea ecx, [ebp - 0xac]
call fcn.00402616
lea ecx, [ebp - 0xc4]
call fcn.00402616
lea ecx, [ebp - 0xdc]
call fcn.00402616
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00402616
mov eax, dword [ebx + 0x3c]
inc edi
sub eax, dword [ebx + 0x38]
push 0xc
cdq
pop ecx
idiv ecx
cmp edi, eax
jl 0x405265
lea ecx, [ebp - 0x4c]
call fcn.00402616
test ebx, ebx
je 0x40553c
mov ecx, ebx
call fcn.00403107
push 0x48
push ebx
call fcn.00419fc6
pop ecx
pop ecx
lea ecx, [ebp - 0xf4]
call fcn.00402616
lea ecx, [ebp - 0x10c]
call fcn.00402616
lea ecx, [ebp + 8]
call fcn.00402616
lea ecx, [ebp + 0x20]
call fcn.00402616
call fcn.0041a8b9
ret