Function at 0x423f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x60], edx
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x68], edx
mov edx, dword [ebp + 0x2c]
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp + 0x30]
mov dword [ebp - 0x70], edx
mov edx, dword [ebp + 0x34]
mov dword [ebp - 0x74], edx
mov edx, dword [ebp + 0x38]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x9c], edx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x84], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x88], edi
test eax, eax
je 0x423b44
mov dword [eax], 0
test ecx, ecx
je 0x423b4e
mov dword [ecx], 0xffffffff
test ebx, ebx
je 0x423b58
mov dword [ebx], 0
test edi, edi
je 0x423b62
mov dword [edi], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x423b6f
mov dword [eax], 0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x423b7c
mov dword [eax], 0
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x423b89
mov dword [eax], 0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x423b96
mov dword [eax], 0
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x423ba3
mov dword [eax], 0xffffffff
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x423bad
mov byte [eax], 0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x423bba
mov dword [eax], 0xffffffff
test edx, edx
je 0x423bc4
mov dword [edx], 0
xor ebx, ebx
xor edi, edi
nop dword [eax + eax]
movzx eax, byte [edi + 0x54a2a4]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 3
jb 0x423bd0
xor eax, eax
mov dword [ebp - 0x3c], ebx
cmp ebx, 5
ja 0x4240d3
xor edi, edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], eax
cmp ebx, 4
jg 0x423c7c
cmp ebx, 2
jg 0x423c2e
xor ebx, ebx
nop
movzx eax, byte [edi + 0x54a2a8]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 3
jb 0x423c10
mov dword [ebp - 0x48], ebx
jmp 0x423c4f
xor ebx, ebx
movzx eax, byte [edi + 0x54a2ac]
mov ecx, esi
push eax
call fcn.00403b80
lea ecx, [ebx + ebx]
inc edi
or eax, ecx
mov ebx, eax
cmp edi, 4
jb 0x423c30
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x20]
add eax, 0x62
push ecx
push eax
mov dword [ebp - 0x48], eax
call fcn.004a09d0
add esp, 8
test eax, eax
je 0x423ced
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ecx
movzx ecx, word [ebp - 0x18]
mov edx, dword [ebp - 0x44]
jmp 0x423cd9
mov dword [ebp - 0x44], eax
nop
movzx eax, byte [edi + 0x54a2b0]
mov ecx, esi
push eax
call fcn.00403b80
mov edx, dword [ebp - 0x44]
inc edi
lea ecx, [edx + edx]
or eax, ecx
mov dword [ebp - 0x44], eax
cmp edi, 2
jb 0x423c80
xor ebx, ebx
xor edi, edi
movzx eax, byte [edi + 0x54a2b4]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 2
jb 0x423ca4
mov edx, dword [ebp - 0x44]
mov ecx, ebx
mov eax, edx
mov dword [ebp - 0x40], ebx
sub eax, 0
je 0x423cd6
sub eax, 1
jne 0x423cdc
add ecx, 7
jmp 0x423cd9
add ecx, 0xa
mov dword [ebp - 0x40], ecx
mov eax, edx
sub eax, 0
je 0x423d00
sub eax, 1
jne 0x423ced
cmp ecx, 2
jge 0x423d05
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
cmp ecx, 5
jl 0x423ced
xor edi, edi
xor ebx, ebx
nop dword [eax]
movzx eax, byte [edi + 0x54a2b8]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 0xe
jb 0x423d10
inc ebx
xor edi, edi
mov dword [ebp - 0x8c], ebx
movzx eax, byte [edi + 0x54a2c8]
mov ecx, esi
push eax
call fcn.00403b80
mov ecx, dword [ebp - 0x54]
inc edi
add ecx, ecx
or eax, ecx
mov dword [ebp - 0x54], eax
cmp edi, 4
jb 0x423d32
cmp eax, 0xb
jg 0x423ced
xor edi, edi
xor ebx, ebx
nop word [eax + eax]
movzx eax, byte [edi + 0x54a2cc]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 5
jb 0x423d60
mov dword [ebp - 0x90], ebx
cmp ebx, 0x1e
mov ebx, dword [ebp - 0x3c]
jg 0x423ced
xor edi, edi
cmp ebx, 3
jg 0x423db2
xor ebx, ebx
movzx eax, byte [edi + 0x54a2d4]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 3
jb 0x423d94
mov dword [ebp - 0x64], ebx
jmp 0x423dd3
xor ebx, ebx
movzx eax, byte [edi + 0x54a2d8]
mov ecx, esi
push eax
call fcn.00403b80
lea ecx, [ebx + ebx]
inc edi
or eax, ecx
mov ebx, eax
cmp edi, 4
jb 0x423db4
mov dword [ebp - 0x64], eax
xor edi, edi
xor ebx, ebx
nop word [eax + eax]
movzx eax, byte [edi + 0x54a2dc]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 5
jb 0x423de0
mov dword [ebp - 0x94], ebx
cmp ebx, 0x17
jg 0x423ced
xor edi, edi
xor ebx, ebx
nop dword [eax]
movzx eax, byte [edi + 0x54a2e4]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 5
jb 0x423e10
mov dword [ebp - 0x98], ebx
mov ebx, dword [ebp - 0x3c]
mov eax, ebx
sub eax, 0
je 0x423e61
sub eax, 1
je 0x423e91
xor edi, edi
xor ebx, ebx
movzx eax, byte [edi + 0x54a2ec]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 4
jb 0x423e42
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x3c]
cmp ebx, 5
jl 0x423e81
mov eax, dword [ebp - 0x4c]
shr eax, 3
and eax, 1
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.004a0a60
add esp, 0xc
mov dword [ebp - 0x48], eax
cmp ebx, 3
ja case.default.0x423e8a
jmp dword [ebx*4 + 0x4240e4]
push 0x49
mov ecx, esi
call fcn.00403b80
mov dword [ebp - 0x4c], eax
jmp switch.0x00423e8a
xor edi, edi
xor ebx, ebx
movzx eax, byte [edi + 0x54a2f0]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 0x11
jb 0x423ea3
mov dword [ebp - 0x50], ebx
jmp 0x423f55
xor edi, edi
xor ebx, ebx
nop dword [eax + eax]
movzx eax, byte [edi + 0x54a304]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 0x10
jb 0x423ed0
mov dword [ebp - 0x50], ebx
jmp 0x423f55
xor edi, edi
xor ebx, ebx
movzx eax, byte [edi + 0x54a314]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 0xd
jb 0x423ef2
mov dword [ebp - 0x50], ebx
jmp 0x423f55
xor edi, edi
xor ebx, ebx
movzx eax, byte [edi + 0x54a324]
mov ecx, esi
push eax
call fcn.00403b80
add ebx, ebx
inc edi
or ebx, eax
cmp edi, 0xc
jb 0x423f14
mov dword [ebp - 0x50], ebx
jmp 0x423f55
xor edi, edi
xor ebx, ebx
movzx eax, byte [edi + 0x54a330]
mov ecx, esi
push eax
call fcn.00403b80
lea ecx, [ebx + ebx]
inc edi
or eax, ecx
mov ebx, eax
cmp edi, 0xb
jb 0x423f36
mov dword [ebp - 0x50], eax
xor edi, edi
xor ebx, ebx
nop dword [eax]
movzx eax, byte [edi + 0x54a33c]
mov ecx, esi
push eax
call fcn.00403b80
lea ecx, [ebx + ebx]
inc edi
or eax, ecx
movzx ebx, ax
cmp edi, 0x10
jb 0x423f60
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x78], ebx
call fcn.00403b30
mov ebx, dword [ebp - 0x3c]
xor esi, esi
nop
movzx eax, byte [esi + 0x54a33c]
lea ecx, [ebp - 0x34]
push 0
push eax
call fcn.00403c50
inc esi
cmp esi, 0x10
jb 0x423f90
lea eax, [ebp - 8]
mov dword [ebp - 0x3c], 0
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403c20
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x38]
cdq
sub eax, edx
mov dx, word [ebp - 0x3c]
sar eax, 1
test eax, eax
jle 0x423fe1
xor dx, word [ecx]
lea ecx, [ecx + 2]
dec eax
test eax, eax
jg 0x423fd6
mov eax, dword [ebp - 0x78]
cmp ax, dx
jne 0x423ced
mov edx, dword [ebp - 0x48]
lea eax, [edx - 0x61]
cmp eax, 0xe
ja case.0x423fff.98
movzx eax, byte [eax + 0x4240fc]
jmp dword [eax*4 + 0x4240f4]
or dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x424013
mov dword [eax], edx
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x42401f
mov eax, dword [ebp - 0x44]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x42402e
mov eax, dword [ebp - 0x40]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x424040
mov eax, dword [ebp - 0x8c]
mov dword [ecx], eax
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x42404d
mov eax, dword [ebp - 0x54]
inc eax
mov dword [esi], eax
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x42405d
mov eax, dword [ebp - 0x90]
inc eax
mov dword [ecx], eax
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x42408c
mov ecx, dword [ebp - 0x64]
add ecx, 0x7d5
cmp ebx, 3
jg 0x42408a
cmp ecx, 0x7dd
jge 0x42408a
lea eax, [edx + 0x62]
cmp eax, 0x62
jb 0x424087
cmp eax, 0x67
jbe 0x42408a
add ecx, 8
mov dword [esi], ecx
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x42409b
mov eax, dword [ebp - 0x94]
mov dword [edx], eax
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x4240aa
mov eax, dword [ebp - 0x98]
mov dword [edx], eax
mov edx, dword [ebp - 0x70]
test edx, edx
je 0x4240b6
mov eax, dword [ebp - 0x4c]
mov byte [edx], al
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4240bf
mov dword [eax], ebx
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x4240ce
mov eax, dword [ebp - 0x50]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret