Function at 0x4050b5
Capabilities:
Encode data using xor

Disassembly:
push 0x174
mov eax, 0x42d4c9
call fcn.0041992a
mov dword [ebp - 4], 1
mov ax, word [0x43855c]
mov word [ebp - 0x110], ax
push 0x39
pop ebx
test ah, ah
je 0x4050f7
xor ecx, ecx
xor edx, edx
mov eax, ecx
div ebx
add dl, 0x30
xor byte [ebp + ecx - 0x110], dl
inc ecx
cmp ecx, 2
jl 0x4050e1
lea eax, [ebp - 0x110]
push eax
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x10c]
call fcn.004044fb
pop ecx
mov byte [ebp - 4], 2
xor ecx, ecx
mov eax, dword [str.SBJ4]
mov dword [ebp - 0x118], eax
mov al, byte [0x438028]
mov byte [ebp - 0x114], al
xor edx, edx
mov eax, ecx
div ebx
add dl, 0x30
xor byte [ebp + ecx - 0x118], dl
inc ecx
cmp ecx, 5
jl 0x405129
lea eax, [ebp - 0x118]
push eax
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0xf4]
call fcn.004044fb
pop ecx
push 0x48
mov byte [ebp - 4], 3
call fcn.00418fbb
mov esi, eax
pop ecx
mov dword [ebp - 0x118], esi
push 0x48
push 0
push esi
mov byte [ebp - 4], 4
call fcn.0041ad40
sub esp, 0xc
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004042cc
lea eax, [ebp - 0x10d]
mov ecx, esi
push eax
call fcn.004027df
mov ebx, eax
mov byte [ebp - 4], 3
cmp byte [ebp - 0x10d], 0
mov dword [ebp - 0x118], ebx
je 0x4054f7
cmp byte [0x438613], 0
lea edi, [ebp - 0x1c]
mov esi, str._HlWZYQI_gPFVFSYOd9
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x4051e0
push 0x39
pop esi
push 0xc
xor ecx, ecx
pop ebx
xor edx, edx
mov eax, ecx
div esi
add dl, 0x30
xor byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, ebx
jl 0x4051c8
mov ebx, dword [ebp - 0x118]
sub esp, 0x18
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.00404293
mov ecx, ebx
call fcn.0041071c
test al, al
je 0x4054f7
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 [0x4407d0]
test eax, eax
jle 0x4054ef
inc dword [0x4407c8]
lea eax, [ebp - 0x64]
push 4
push edi
push eax
mov ecx, ebx
call fcn.00410a5d
push 5
push edi
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00410a5d
push 8
push edi
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.00410a5d
push 2
push edi
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 8
push eax
mov ecx, ebx
call fcn.00410a5d
push 3
push edi
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 9
push eax
mov ecx, ebx
call fcn.00410a5d
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x138]
mov edx, dword [0x4407d0]
call fcn.00402778
mov esi, eax
push 0x437f90
lea edx, [ebp + 8]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x180]
call fcn.004044fb
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.00404861
push 1
push 0x437f8c
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xd
call fcn.00404497
push eax
lea ecx, [ebp - 0x34]
call fcn.0040425a
mov byte [ebp - 4], 0xe
xor ecx, ecx
mov eax, dword [0x438038]
mov dword [ebp - 0x120], eax
mov al, byte [0x43803c]
push 0x39
mov byte [ebp - 0x11c], al
pop esi
xor edx, edx
mov eax, ecx
div esi
add dl, 0x30
xor byte [ebp + ecx - 0x120], dl
inc ecx
cmp ecx, 5
jl 0x405323
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x34]
call fcn.00404840
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040425a
lea ecx, [ebp - 0x34]
call fcn.004025e6
lea ecx, [ebp - 0x168]
call fcn.004025e6
lea ecx, [ebp - 0x180]
call fcn.004025e6
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x13
call fcn.004025e6
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.00404a6d
add esp, 0x10
push eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x14
push eax
mov ecx, 0x440d00
call fcn.0040cc61
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0x13
call fcn.004025e6
sub esp, 0x18
mov ecx, esp
push 0x440dd8
call fcn.004042cc
push 0x7e
pop edx
lea ecx, [ebp - 0x150]
call fcn.004075bc
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x1c]
call fcn.004070a0
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0x17
call fcn.004025e6
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp esi, eax
je 0x405492
mov ebx, eax
push esi
lea ecx, [ebp - 0x34]
call fcn.004042cc
push 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x64]
call fcn.004041f1
cmp eax, 0xffffffff
je 0x405479
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x43f900
push eax
call fcn.004041f1
cmp eax, 0xffffffff
jne 0x405479
push 0x437f94
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x138]
call fcn.004044fb
pop ecx
push eax
mov ecx, 0x43f900
mov byte [ebp - 4], 0x19
call fcn.0040441b
lea ecx, [ebp - 0x138]
call fcn.004025e6
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x17
call fcn.004025e6
add esi, 0x18
cmp esi, ebx
jne 0x405416
mov ebx, dword [ebp - 0x118]
lea ecx, [ebp - 0x1c]
call fcn.0040438d
lea ecx, [ebp - 0x7c]
call fcn.004025e6
lea ecx, [ebp - 0x94]
call fcn.004025e6
lea ecx, [ebp - 0xac]
call fcn.004025e6
lea ecx, [ebp - 0xc4]
call fcn.004025e6
lea ecx, [ebp - 0xdc]
call fcn.004025e6
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.004025e6
mov eax, dword [ebx + 0x3c]
inc edi
sub eax, dword [ebx + 0x38]
push 0xc
cdq
pop ecx
idiv ecx
cmp edi, eax
jl 0x405235
lea ecx, [ebp - 0x4c]
call fcn.004025e6
test ebx, ebx
je 0x40550c
mov ecx, ebx
call fcn.004030d7
push 0x48
push ebx
call fcn.00418feb
pop ecx
pop ecx
lea ecx, [ebp - 0xf4]
call fcn.004025e6
lea ecx, [ebp - 0x10c]
call fcn.004025e6
lea ecx, [ebp + 8]
call fcn.004025e6
lea ecx, [ebp + 0x20]
call fcn.004025e6
call fcn.004198d9
ret