Function at 0x10004740
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
add eax, 0x5da
mov dword [esp + 4], eax
add dword [esp + 0x40], 0xfffffba6
lea eax, [ecx - 0x3239]
mov dword [esp + 0x3c], eax
lea eax, [edx + 0x413]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
add eax, 0x555
mov dword [esp], eax
mov eax, dword [esp + 0x14]
push esi
add eax, 0xffffce32
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
lea eax, [edi - 0x730]
mov dword [esp + 0x50], eax
lea esi, [edi - 0x16b]
lea eax, [ecx + 0x2a4]
mov dword [esp + 0x10], esi
lea ecx, [eax + 0x7f]
mov dword [esp + 0x38], eax
lea eax, [edx + 0x15f]
cmp eax, ecx
jg 0x10004863
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x178]
mov edx, dword [ecx + 0x1c4]
mov ecx, dword [eax + 0x110]
add edx, 0x6c6c327d
mov dword [ecx + 8], edx
mov edx, dword [eax + 0x128]
cmp edx, 0x355c
ja 0x10004801
mov ecx, dword [eax + 0x108]
add edx, 0xffffcb23
mov dword [ecx + 0x194], edx
cmp dword [eax + 0x44], 0x2f82
jb 0x10004817
mov ecx, 0xfffffe18
sub ecx, eax
add dword [eax + 0x188], ecx
mov ecx, dword [eax + 0x84]
xor ecx, 0x30
cmp ecx, 0x2dae
je 0x100049a4
mov esi, 0x2dae
sub esi, ecx
nop dword [eax]
nop word [eax + eax]
mov edx, dword [eax + 0x10c]
mov ecx, dword [edx + 0x7c]
xor dword [eax + 0x8c], ecx
inc dword [edx + 0x7c]
sub esi, 1
jne 0x10004840
lea eax, [edi - 0x2a4]
pop edi
pop esi
add esp, 0xc
ret
push ebx
push ebp
mov ebp, dword [esp + 0x54]
mov ecx, dword [ebp + 0x1b4]
imul ecx, dword [ebp + 0x190]
mov eax, dword [ebp + 0xd8]
and eax, dword [esp + 0x44]
mov edx, dword [ebp + 0x128]
or edx, dword [esp + 0x4c]
imul ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1e8]
and esi, dword [ebp + 0x178]
and edi, 0x310f
mov ebx, dword [ebp + 0x134]
imul ebx, dword [esp + 0x38]
push eax
push ebp
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push esi
push edi
mov edi, dword [esp + 0x70]
sub ebx, 0x31ce
push ebx
lea eax, [ecx + edi]
xor eax, 0x2f82
push eax
lea eax, [ecx + 0x2d9d]
push eax
call fcn.10008a00
mov ecx, dword [ebp + 0x174]
mov edx, eax
mov esi, dword [ebp + 0x188]
xor ecx, 0x31b0
mov ebx, dword [esp + 0x34]
mov eax, dword [ebp + 0x160]
push ecx
and eax, edx
mov ecx, esi
xor ecx, edx
mov edx, dword [esp + 0x78]
or ecx, dword [ebp + 0x84]
sub eax, edx
push ecx
mov ecx, dword [ebp + 0xa4]
and ecx, ebx
add ecx, dword [ebp + 0x1a4]
push ecx
push eax
mov eax, edx
sub eax, dword [ebp + 0xac]
add eax, ebx
push eax
mov eax, dword [ebp + 0x178]
xor eax, 0x32ca
push eax
lea eax, [ebx - 0x3372]
and ebx, 0x2231
push eax
mov eax, dword [ebp + 0x134]
imul eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
add ebx, 0xffffff58
push eax
mov eax, dword [ebp + 0x1b8]
xor eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x6c]
or eax, 0x31ce
sub eax, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x84]
add eax, ebx
push eax
mov eax, dword [ebp + 0x15c]
or eax, 0x3233
imul eax, edi
push eax
mov eax, dword [esp + 0xa0]
and esi, edx
and esi, dword [esp + 0xa8]
add eax, edi
push eax
push esi
call fcn.100013b0
add esp, 0x64
pop ebp
pop ebx
lea eax, [edi - 0x2a4]
pop edi
pop esi
add esp, 0xc
ret