Function at 0x4370d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x4370ef
push 0xffffffffffffff9a
pop eax
jmp 0x4372da
push esi
mov esi, dword [eax + 0x9c]
cmp esi, ebx
jne 0x4370fe
push 0xffffffffffffff9a
jmp 0x437104
cmp dword [esi], ebx
jne 0x43710a
push 0xffffffffffffff9c
pop eax
jmp 0x4372d9
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
jne 0x437118
xor eax, eax
jmp 0x4372d9
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
cmp ecx, eax
mov dword [esi + 0x14], ecx
jbe 0x437133
cmp dword [esi + 0x8c], ebx
jne 0x437133
mov dword [esi + 0x14], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x58]
add eax, edx
cmp ecx, eax
jbe 0x43714a
cmp dword [esi + 0x8c], ebx
je 0x43714a
mov dword [esi + 0x14], eax
push edi
jmp 0x4372c3
cmp dword [esi + 8], ebx
jne 0x43720f
mov eax, dword [esi + 0x58]
cmp eax, ebx
jbe 0x43720f
mov edi, 0x4000
cmp eax, edi
mov dword [ebp - 8], edi
jae 0x437175
mov dword [ebp - 8], eax
mov edi, eax
mov eax, dword [esi + 0x88]
add eax, dword [esi + 0x3c]
push ebx
push eax
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x70]
add esp, 0x10
test eax, eax
jne 0x4372d1
push edi
push dword [esi]
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x64]
add esp, 0x10
cmp eax, edi
jne 0x4372d1
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], ebx
je 0x437201
test edi, edi
jbe 0x4371ff
mov eax, dword [esi]
mov edx, dword [ebp + 8]
lea edi, [eax + ebx]
add edx, 0xa4
mov eax, edx
call fcn.004369d7
xor byte [edi], al
mov eax, dword [esi]
movsx eax, byte [eax + ebx]
push eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xb0]
mov ecx, edx
call fcn.004369ee
mov ecx, dword [esi]
add esp, 4
mov byte [ebx + ecx], al
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x4371c0
mov edi, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
cmp dword [esi + 0x84], ebx
je 0x437270
cmp dword [esi + 0x8c], ebx
jne 0x437270
mov eax, dword [esi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [esi + 4]
push 2
push eax
call fcn.00437c07
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jl 0x437247
cmp dword [esi + 0x1c], 0
je 0x437247
push 0xfffffffffffffffd
pop ebx
mov edi, dword [esi + 0x18]
sub edi, dword [ebp - 8]
push edi
push dword [ebp - 0xc]
push dword [esi + 0x50]
call fcn.004379e3
sub dword [esi + 0x5c], edi
add dword [ebp - 4], edi
add esp, 0xc
cmp ebx, 1
mov dword [esi + 0x50], eax
je 0x4372cc
test ebx, ebx
jne 0x4372d6
jmp 0x4372c3
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x43727c
cmp dword [esi + 0x58], ebx
je 0x4372cc
mov edi, dword [esi + 0x14]
cmp edi, eax
jb 0x437285
mov edi, eax
xor eax, eax
cmp edi, ebx
jbe 0x43729c
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
inc eax
cmp eax, edi
jb 0x43728b
push edi
push dword [esi + 0x10]
push dword [esi + 0x50]
call fcn.004379e3
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 0x10], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add esp, 0xc
add dword [ebp - 4], edi
mov dword [esi + 0x50], eax
cmp dword [esi + 0x14], ebx
ja 0x437150
mov eax, dword [ebp - 4]
jmp 0x4372d8
or eax, 0xffffffff
jmp 0x4372d8
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret