Function at 0x402430
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, eax
cmp edi, 0x38
mov ebx, ecx
jle 0x402447
pop edi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
push ebp
mov eax, esi
call fcn.004026f0
xor ecx, ecx
lea ebp, [esi + 8]
mov dword [esp + 0x10], 3
lea esp, [esp]
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1048]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x104c]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1050]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1054]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, dword [esp + 0xc]
xor dword [ebp - 8], eax
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1048]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x104c]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1050]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1054]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, dword [esp + 0xc]
xor dword [ebp - 4], eax
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1048]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x104c]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov dl, byte [edx + ebx]
mov eax, dword [esi + 0x1050]
mov byte [esp + eax + 0xc], dl
inc ecx
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1054]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, dword [esp + 0xc]
xor dword [ebp], eax
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1048]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x104c]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1050]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1054]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, dword [esp + 0xc]
xor dword [ebp + 4], eax
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1048]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x104c]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1050]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1054]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
xor edx, eax
mov eax, ecx
mov dword [ebp + 8], edx
cdq
idiv edi
mov eax, dword [esi + 0x1048]
inc ecx
add ebp, 0x18
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x104c]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1050]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov eax, ecx
cdq
idiv edi
mov eax, dword [esi + 0x1054]
inc ecx
mov dl, byte [edx + ebx]
mov byte [esp + eax + 0xc], dl
mov edx, dword [ebp - 0xc]
mov eax, dword [esp + 0xc]
xor edx, eax
mov eax, dword [esp + 0x10]
mov dword [ebp - 0xc], edx
dec eax
mov dword [esp + 0x10], eax
jne 0x402460
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
jmp 0x402680
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00402740
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esi + edi*4], ecx
mov dword [esi + edi*4 + 4], edx
add edi, 2
cmp edi, 0x12
jl 0x402680
lea edi, [esi + 0x4c]
mov ebp, 4
mov edi, edi
mov ebx, 0x80
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00402740
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [edi - 4], eax
mov dword [edi], ecx
add edi, 8
dec ebx
jne 0x4026b5
dec ebp
jne 0x4026b0
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 8
ret