Function at 0x403b00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2118
call fcn.00462300
mov eax, dword [esp + 0x2128]
push ebx
push ebp
push esi
push 0x475540
push eax
mov byte [esp + 0x16], 0
call fcn.00462171
mov ebx, eax
xor esi, esi
add esp, 8
cmp ebx, esi
jne 0x403b3e
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2118
ret 0x18
mov ecx, dword [esp + 0x2138]
push 0x47553c
push ecx
call fcn.00462171
mov ebp, eax
add esp, 8
cmp ebp, esi
mov dword [esp + 0x14], ebp
jne 0x403b75
push ebx
call fcn.00461f17
add esp, 4
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
add esp, 0x2118
ret 0x18
lea edx, [esp + 0x10]
mov dword [esp + 0x10], esi
push edx
push 0x475610
push 0x475048
call fcn.0046232f
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
jne 0x403bb4
push 2
push esi
push ebx
call fcn.004620c5
push ebx
call fcn.00461f6d
push ebx
mov dword [esp + 0x24], eax
call fcn.004624aa
add esp, 0x14
mov eax, dword [esp + 0x10]
push edi
push eax
call fcn.00460f61
mov ecx, dword [esp + 0x18]
push ebx
mov edi, eax
push ecx
push 1
push edi
call fcn.0046148b
mov ecx, dword [esp + 0x28]
add esp, 0x14
cmp eax, ecx
je 0x403bdf
mov byte [esp + 0x12], 1
test ecx, ecx
jle 0x403c20
push 8
lea edx, [esi + edi]
push str.GEBATAD_00536576
push edx
call fcn.00462370
add esp, 0xc
test eax, eax
je 0x403c05
mov ecx, dword [esp + 0x14]
inc esi
cmp esi, ecx
jl 0x403be3
jmp 0x403c20
mov eax, dword [esp + 0x14]
lea ecx, [esi + edi + 8]
push eax
push str._08ld
push ecx
call fcn.0046120f
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jne 0x403c29
mov byte [esp + 0x12], 1
push ebp
push ecx
push 1
push edi
call fcn.00461573
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp eax, ecx
je 0x403c43
mov byte [esp + 0x12], 1
push ebx
call fcn.00461f17
push edi
call fcn.00461a52
push ebp
push 1
lea edx, [esp + 0x2144]
push 4
push edx
call fcn.00461573
add esp, 0x18
cmp eax, 1
je 0x403c6e
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x2134]
mov ecx, dword [esp + 0x2130]
push ebp
push eax
push 4
push ecx
call fcn.00461573
mov ecx, dword [esp + 0x2144]
add esp, 0x10
cmp eax, ecx
je 0x403c99
mov byte [esp + 0x12], 1
mov ebp, dword [esp + 0x212c]
xor ebx, ebx
test ecx, ecx
jle 0x403d61
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x2140]
test al, al
je 0x403d03
mov esi, dword [ebp + ebx*4]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x403cee
lea edx, [esi + ecx - 1]
mov al, byte [edx]
cmp al, 0x5c
je 0x403cee
cmp al, 0x2f
je 0x403cee
cmp al, 0x3a
je 0x403cee
dec ecx
dec edx
test ecx, ecx
jg 0x403cda
lea eax, [esi + ecx]
lea edx, [esp + 0x24]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403cf7
jmp 0x403d17
mov eax, dword [ebp + ebx*4]
lea edx, [esp + 0x24]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403d0d
xor eax, eax
mov cl, byte [esp + eax + 0x24]
xor cl, 0x55
mov byte [esp + eax + 0x24], cl
inc eax
cmp eax, 0x104
jl 0x403d19
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push 1
push 0x104
push eax
call fcn.00461573
mov ecx, dword [esp + 0x2144]
add esp, 0x10
cmp eax, 1
jne 0x403d5c
inc ebx
cmp ebx, ecx
jl 0x403caa
jmp 0x403d61
mov byte [esp + 0x12], 1
test ecx, ecx
mov dword [esp + 0x1c], 0
jle 0x403e7d
mov ebx, dword [esp + 0x2130]
sub ebx, ebp
mov edx, dword [ebp]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 4
push str..jpg
mov byte [esp + 0x1b], 0
lea ecx, [ecx + edx - 4]
push ecx
call fcn.0046e100
add esp, 0xc
test eax, eax
jne 0x403dab
mov byte [esp + 0x13], 1
mov edx, dword [ebp]
push 0x475540
push edx
call fcn.00462171
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x403e78
mov eax, dword [ebx + ebp]
xor ecx, ecx
test eax, eax
jle 0x403e4e
mov eax, dword [ebx + ebp]
lea edi, [ecx + 0x2000]
cmp edi, eax
mov esi, 0x2000
jle 0x403de7
sub eax, ecx
mov esi, eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x128]
push eax
push esi
push 1
push ecx
call fcn.0046148b
add esp, 0x10
cmp eax, esi
jne 0x403e49
mov al, byte [esp + 0x13]
test al, al
jne 0x403e22
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x128]
push edx
push esi
push 1
push eax
call fcn.00461573
jmp 0x403e37
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x128]
push ecx
push esi
push 1
push edx
call fcn.004014e0
add esp, 0x10
cmp eax, esi
jne 0x403e49
mov eax, dword [ebx + ebp]
mov ecx, edi
cmp ecx, eax
jl 0x403dd1
jmp 0x403e4e
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x20]
push eax
call fcn.00461f17
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2138]
add esp, 4
inc eax
add ebp, 4
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x403d7a
jmp 0x403e7d
mov byte [esp + 0x12], 1
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00461f17
mov al, byte [esp + 0x16]
add esp, 4
neg al
pop edi
pop esi
pop ebp
pop ebx
sbb eax, eax
add esp, 0x2118
ret 0x18