Function at 0x100358c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xa0
mov ecx, dword [0x107ab964]
push ebx
mov ebx, dword [esp + 0xa8]
push ebp
mov eax, dword [ecx]
push esi
push edi
push ebx
call dword [eax + 0x20]
mov ebp, eax
cmp ebp, 0x6000
mov dword [esp + 0x14], ebp
jle 0x100359cb
mov edx, dword [0x107ab964]
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
push ecx
push ebx
push edx
call fcn.1000fc50
add esp, 0xc
test eax, eax
je 0x100359cb
mov edi, dword [esp + 0x60]
push 0
push 0
push 0
push 0
push 0x2000
mov dword [esp + 0x2c], edi
call sub.platform.dll_Ordinal_24
mov esi, eax
add esp, 0x14
test esi, esi
je 0x100359cb
mov ecx, dword [0x107ab964]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push 0x2000
push 0x2000
push edi
push ebp
push ebx
push ecx
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x100359c2
cmp dword [esp + 0x10], 0x2000
jne 0x100359c2
xor eax, eax
mov ebx, 0xb990
mov edx, 0x80fc0000
mov cl, 0x36
cmp dword [eax + esi], 0xe8
jne 0x100359ba
cmp dword [eax + esi + 4], 0xef835f00
jne 0x100359ba
cmp dword [eax + esi + 8], 0x83f78b05
jne 0x100359ba
cmp dword [eax + esi + 0xc], 0x90901dc6
jne 0x100359ba
cmp word [eax + esi + 0x10], bx
jne 0x100359ba
cmp dword [eax + esi + 0x14], edx
jne 0x100359ba
cmp byte [eax + esi + 0x18], cl
je 0x100359d8
inc eax
cmp eax, 0x1fce
jl 0x10035980
push esi
call sub.platform.dll_Ordinal_27
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa0
ret
mov bl, byte [eax + esi + 0x19]
cmp eax, 0x1fce
jge 0x100359c2
test bl, bl
je 0x100359c2
mov ecx, dword [esp + 0x88]
lea edx, [eax + edi + 0x2000]
cmp edx, ecx
ja 0x100359c2
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, dword [0x107ab964]
push esi
push 0x2000
lea edx, [eax + edi + 0x1e]
mov eax, dword [esp + 0xc4]
push 0x2000
push edx
push ebp
push eax
push ecx
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x100359c2
cmp dword [esp + 0x10], 0x2000
jne 0x100359c2
xor eax, eax
mov cl, byte [eax + esi]
xor cl, bl
mov byte [eax + esi], cl
mov edi, dword [esp + 0x10]
inc eax
cmp eax, edi
jl 0x10035a38
lea edx, [edi - 0x50]
xor ebp, ebp
xor ecx, ecx
xor eax, eax
test edx, edx
jle 0x10035ac0
mov bl, 0x8b
cmp word [eax + esi], 0x8789
jne 0x10035aae
cmp word [eax + esi + 5], 0x6800
jne 0x10035aae
cmp dword [eax + esi + 9], 0x6a0000
jne 0x10035aae
cmp word [eax + esi + 0xd], 0x97ff
jne 0x10035aae
cmp dword [eax + esi + 0x11], 0x87890000
jne 0x10035aae
cmp word [eax + esi + 0x18], 0x8300
jne 0x10035aae
cmp byte [eax + esi + 0x1a], 0xbf
jne 0x10035aae
cmp dword [eax + esi + 0x1e], 0x840f0000
jne 0x10035aae
cmp word [eax + esi + 0x24], 0
jne 0x10035aae
cmp byte [eax + esi + 0x26], bl
je 0x10035ab5
inc eax
cmp eax, edx
jl 0x10035a58
jmp 0x10035ac0
mov ecx, dword [eax + esi + 0x1b]
mov ebp, dword [eax + esi + 7]
sub ecx, 0x1e
cmp eax, edx
jge 0x100359c2
cmp ecx, 0x100
jbe 0x100359c2
lea edx, [ecx + 4]
cmp edi, edx
jle 0x100359c2
cmp ebp, 0x1000
jle 0x100359c2
cmp ebp, 0x4000
jge 0x100359c2
mov edi, dword [ecx + esi]
mov ebx, dword [esp + 0x6c]
push esi
sub edi, ebx
call sub.platform.dll_Ordinal_27
add esp, 4
test edi, edi
je 0x100359cb
cmp edi, dword [esp + 0x88]
jae 0x100359cb
mov ebx, dword [esp + 0xb4]
mov eax, dword [0x107ab964]
push edi
push ebx
push eax
call fcn.10029b30
add esp, 0xc
test eax, eax
je 0x100359cb
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push edx
mov dword [esp + 0x24], ecx
push eax
mov byte [esp + 0x2c], cl
mov ecx, dword [0x107ab964]
push ebx
push ecx
call fcn.10010a00
add esp, 0x10
test eax, eax
je 0x100359cb
mov eax, dword [esp + 0x38]
cmp eax, ebp
jb 0x100359cb
mov esi, dword [esp + 0x3c]
sub esi, ebp
add esi, eax
test esi, esi
jle 0x100359cb
cmp dword [esp + 0x14], esi
jl 0x100359cb
push 0
push 0
push 0
push 0
push ebp
call sub.platform.dll_Ordinal_24
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100359cb
mov eax, dword [esp + 0x14]
mov ecx, dword [0x107ab964]
lea edx, [esp + 0x10]
push 1
push edx
push edi
push ebp
push ebp
push esi
push eax
push ebx
push ecx
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x10035c4f
cmp ebp, dword [esp + 0x10]
jne 0x10035c4f
mov edx, dword [esp + 0x18]
mov eax, dword [0x107ab964]
push edx
push ebx
push eax
call fcn.1000fe50
add esp, 0xc
test eax, eax
jle 0x10035c4f
cmp eax, dword [esp + 0x14]
jge 0x10035c4f
mov ecx, dword [0x107ab964]
push ebp
push ebp
push edi
push eax
push ebx
push ecx
call fcn.10029d90
push edi
mov ebx, eax
call sub.platform.dll_Ordinal_27
add esp, 0x1c
test ebx, ebx
je 0x100359cb
mov edx, dword [esp + 0xb4]
mov eax, dword [0x107ab964]
push ebp
push esi
push edx
push eax
call fcn.100014d0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
push edi
jmp 0x100359c3