Function at 0x10033820
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov eax, dword [esi + 0x4548]
mov ecx, dword [esi + 0x454c]
mov edx, eax
mov edi, ecx
sub edx, 1
sbb edi, 0
mov dword [esi + 0x4548], edx
test ecx, ecx
mov dword [esi + 0x454c], edi
jg 0x10033861
jl 0x10033857
test eax, eax
ja 0x10033861
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 0x14f50]
test eax, eax
jne 0x10033ca0
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x100339b8
mov eax, dword [esi + 0x54]
mov byte [esi + 0x14f5c], 0
test eax, eax
je 0x100338a2
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], ecx
mov dword [esi], ecx
mov byte [esi + 0x14f5c], 1
jmp switch.0x1003393a
mov eax, dword [esi + 0x98]
mov edx, dword [esi + 0x58]
mov ebx, dword [esi + 0x14f48]
mov ebp, dword [esi + 0x5c]
xor edi, edi
mov ecx, 3
test eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
jbe 0x10033931
cmp ecx, 3
jne 0x10033931
mov ecx, dword [esi + 0x4578]
mov edx, dword [esi + 0x64]
sub eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x60]
push ecx
mov ecx, 0x20
call fcn.1003a5b0
mov edx, dword [esi + 0x60]
mov ecx, dword [esp + 0x20]
push eax
push edx
push ebp
lea edx, [esp + 0x3c]
push ecx
mov eax, ebp
push edx
push ebx
sar eax, 0x1f
push 0
call dword [esi + 0x4574]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add edi, eax
add ebx, eax
add ecx, eax
mov eax, dword [esp + 0x14]
adc ebp, 0
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
cmp edi, eax
jb 0x100338cb
cmp ecx, 3
mov dword [esp + 0x28], edi
ja case.default.0x1003393a
jmp dword [ecx*4 + 0x10033cd8]
mov eax, edi
and eax, 0xffff
mov dword [esi + 0x14f50], eax
je 0x10033978
mov ebx, dword [esi + 0x58]
add ebx, eax
mov dword [esi + 0x58], ebx
mov edi, dword [esi + 0x5c]
adc edi, 0
xor eax, eax
test ecx, ecx
sete al
test ecx, ecx
sete cl
mov dword [esi + 0x5c], edi
mov dword [esi + 0x54], eax
mov byte [esi + 0x14f5c], cl
jmp case.default.0x1003393a
mov dword [esi + 0x54], 1
jmp 0x1003398b
mov dword [esi + 0x14f50], 0xffffffff
mov byte [esi + 0x14f5c], 1
mov eax, dword [esi + 0x14f50]
test eax, eax
ja 0x10033b5c
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x100339ae
mov byte [esi + 0x14f5c], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x14f48]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x28]
push 0
push edx
mov edx, dword [esi + 0x14f60]
push eax
push ecx
push edx
call ebx
cmp eax, 1
jne 0x100339f2
mov eax, dword [esp + 0x28]
and eax, 0xffff
mov dword [esi + 0x14f50], eax
jmp 0x100339fc
mov dword [esi + 0x14f50], 0xffffffff
mov eax, dword [esi + 0x14f50]
test eax, eax
mov eax, dword [esi + 0x4ed8]
ja 0x10033a21
test eax, eax
jne 0x10033a29
mov byte [esi + 0x14f5c], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
test eax, eax
je 0x10033b5c
mov eax, dword [esi + 0x14f50]
test eax, eax
ja 0x10033b5c
mov eax, dword [esi + 0x4e2e]
cmp eax, 0xffffffff
je 0x10033a51
mov ecx, dword [esi + 0x4edc]
inc ecx
cmp ecx, eax
jg 0x10033c2b
call fcn.1002c4f0
mov eax, dword [esi + 0x4e2e]
cmp eax, 0xffffffff
jne 0x10033a92
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10033a7f
mov edx, dword [esi + 0x4edc]
push esi
add edx, 2
push 0
push edx
call fcn.10031d20
add esp, 0xc
jmp 0x10033acd
mov eax, dword [esi + 0x4edc]
push 0x1006161c
add eax, 2
push 0
push eax
jmp 0x10033ac1
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10033ab0
mov ecx, dword [esi + 0x4edc]
inc eax
push esi
add ecx, 2
push eax
push ecx
call fcn.10031d20
add esp, 0xc
jmp 0x10033acd
mov edx, dword [esi + 0x4edc]
inc eax
push 0x1006161c
add edx, 2
push eax
push edx
push 1
push 0
call fcn.1002fa40
add esp, 0x14
cmp eax, 1
jne 0x10033ba0
mov eax, dword [esi + 0x4edc]
lea edi, [esi + 0x14f64]
add eax, 2
push eax
push edi
call fcn.100347f0
add esp, 8
test eax, eax
je 0x10033b4e
push edi
call fcn.1002c4a0
add esp, 4
test eax, eax
jne 0x10033b4e
mov edx, dword [esi + 0x98]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esi + 0x14f48]
push ecx
mov ecx, dword [esi + 0x14f60]
push edx
push eax
push ecx
call ebx
cmp eax, 1
jne 0x10033b44
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x10033b44
and eax, 0xffff
mov dword [esi + 0x14f50], eax
mov eax, dword [esi + 0x4edc]
inc eax
mov dword [esi + 0x4edc], eax
jmp 0x10033b4e
mov dword [esi + 0x14f50], 0
mov eax, dword [esi + 0x4ed8]
test eax, eax
jne 0x10033a29
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10033c35
mov edi, dword [esi + 0x14f50]
test edi, edi
jbe 0x10033c35
mov ecx, dword [esi + 0x4548]
mov eax, dword [esi + 0x454c]
add ecx, 1
adc eax, 0
xor edx, edx
cmp edx, eax
jl 0x10033bb9
jg 0x10033b93
cmp edi, ecx
jbe 0x10033bb9
mov edx, dword [esi + 0x4548]
inc edx
mov dword [esp + 0x14], edx
jmp 0x10033bbd
cmp eax, 2
jne 0x10033c2b
mov dword [esi], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov dword [esp + 0x14], edi
mov ecx, dword [esi + 0x4578]
mov edx, dword [esi + 0x64]
mov ebx, dword [esi + 0x58]
mov edi, dword [esi + 0x5c]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
push eax
mov eax, dword [esi + 0x60]
push ecx
mov ecx, 0x20
call fcn.1003a5b0
mov edx, dword [esi + 0x60]
push eax
push edx
mov edx, dword [esi + 0x14f48]
push edi
lea ecx, [esp + 0x28]
push ebx
mov eax, edi
push ecx
push edx
sar eax, 0x1f
push 2
call dword [esi + 0x4574]
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x10033c35
cmp eax, 2
jg 0x10033c35
mov dword [esi + 0x14f50], 0xffffffff
mov byte [esi + 0x14f5c], 1
mov dword [esi], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 0x4ee0]
mov edi, dword [esi + 0x14f48]
test eax, eax
mov dword [esi + 0x14f4c], edi
je 0x10033ca0
mov ecx, dword [esi + 0x4548]
mov eax, dword [esi + 0x454c]
mov ebx, dword [esi + 0x14f50]
add ecx, 1
adc eax, 0
xor edx, edx
cmp edx, eax
jl 0x10033c78
jg 0x10033c6f
cmp ebx, ecx
jbe 0x10033c78
mov eax, dword [esi + 0x4548]
inc eax
jmp 0x10033c7a
mov eax, ebx
mov ecx, eax
dec eax
test ecx, ecx
je 0x10033ca0
lea ebp, [eax + 1]
call fcn.10034ce0
xor edx, edx
mov ebx, eax
mov dl, byte [edi]
xor ebx, edx
push ebx
call fcn.10034d10
add esp, 4
mov byte [edi], bl
inc edi
dec ebp
jne 0x10033c84
mov eax, dword [esi + 0x14f4c]
mov edx, dword [esp + 0x24]
pop edi
movzx cx, byte [eax]
mov word [edx], cx
mov ecx, dword [esi + 0x14f4c]
mov eax, dword [esi + 0x14f50]
inc ecx
dec eax
mov dword [esi + 0x14f4c], ecx
mov dword [esi + 0x14f50], eax
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x10
ret