Function at 0x38596810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0x4550
jne 0x38597258
cmp dword [edi + 0xdc14], 0x800
jb 0x38597258
movzx eax, word [edi + 6]
cmp eax, 5
ja 0x38596846
cmp eax, 3
jae 0x3859686a
mov eax, dword [edi + 0x1c]
cmp eax, 0x20000
ja 0x38596857
cmp eax, 0x15000
jae 0x3859686a
mov eax, dword [edi + 0x20]
sub eax, 0x3000
cmp eax, 0x5000
ja 0x38597258
cmp dword [edi + 0xdc1c], 0x300
ja 0x38597258
mov eax, 0x2000
test word [edi + 0x16], ax
je 0x38597258
cmp dword [edi + 0x78], 0
je 0x38597258
cmp dword [edi + 0x7c], 0
je 0x38597258
cmp dword [edi + 0x58], 0
jne 0x38597258
cmp dword [edi + 0xa0], 0
je 0x38597258
cmp dword [edi + 0xa4], 0
je 0x38597258
cmp dword [edi + 0x88], 0
jne 0x38597258
cmp dword [edi + 0x8c], 0
jne 0x38597258
push 0x8000
push edi
call 0x37fbac60
add esp, 8
test eax, eax
jne 0x38597258
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push edi
call 0x37fb91e0
add esp, 0xc
test eax, eax
jne 0x38597258
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x38597258
cmp eax, 0xa
ja 0x38597258
mov eax, dword [edi + 0x94d1]
sub eax, 0x15000
cmp eax, 0xb000
ja 0x38597258
mov edx, dword [edi + 0x28]
mov esi, 0x1800
mov ecx, dword [edi + 0x94cd]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x24], 0x2000
cmp eax, esi
jae 0x38596954
mov esi, eax
mov eax, dword [edi + 0x94c9]
sub eax, edx
add eax, ecx
cmp eax, 0x2000
jae 0x38596968
mov dword [ebp - 0x24], eax
push 0x800
lea ebx, [edi + 0x1400]
push 0
push ebx
mov dword [ebp - 8], ebx
call 0x37ac5010
lea eax, [edi + 0x1680]
add esp, 0xc
mov dword [ebp - 0x20], eax
xor edx, edx
mov eax, 0x2000
xor ecx, ecx
sub eax, esi
mov esi, dword [ebp - 0x24]
add esi, 0x1ffc
mov dword [ebp - 0x40], eax
cmp eax, esi
jae 0x38597258
lea esp, [esp]
mov esi, dword [eax + edi + 0x1400]
cmp esi, 0x83ec8b55
je 0x385969ef
cmp esi, 0xc25de58b
je 0x385969cf
cmp esi, 0xc35de58b
jne 0x385969fb
test ecx, 0x100
je 0x385969fb
add eax, 4
and ecx, 0xfffffeff
mov dword [ebx + edx*8 + 4], eax
inc edx
cmp edx, 0x50
jb 0x385969fb
or ecx, 1
jmp 0x385969fb
mov dword [ebx + edx*8], eax
or ecx, 0x100
add eax, 4
test cl, 1
jne 0x38596a11
mov esi, dword [ebp - 0x24]
inc eax
mov edi, dword [ebp + 8]
add esi, 0x1ffc
cmp eax, esi
jb 0x385969b0
cmp edx, 6
jb 0x38597258
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], ecx
mov esi, dword [ebx + ecx*8]
lea eax, [ebx + ecx*8]
mov dword [ebp - 0x48], eax
test esi, esi
je 0x38596c7c
lea eax, [ecx*8 + 4]
mov ecx, dword [ebx + ecx*8 + 4]
add eax, ebx
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x38596c7c
cmp esi, dword [ebp - 0x40]
jb 0x38596c6c
cmp esi, ecx
jae 0x38596c6c
mov eax, dword [ebp - 0x24]
add eax, 0x1ff1
cmp ecx, eax
jae 0x38596c6c
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], edx
lea esp, [esp]
lea eax, [esi + edi]
lea edx, [eax + 0x1400]
mov dword [ebp - 0x18], eax
movzx eax, byte [edx]
mov dword [ebp - 0x44], edx
movzx ecx, word [eax*2 + 0x7428fa8]
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + eax + 0x74291a8]
test edi, edi
jne 0x38596ab8
push edx
call 0x37e8c7b0
mov edx, dword [ebp - 0x44]
add esp, 4
mov edi, eax
cmp edi, 0xffffffff
je 0x38596c69
mov dl, byte [edx]
inc dword [ebp - 0x28]
movzx ecx, dl
add ecx, 0xfffffff1
cmp ecx, 0xf0
ja 0x38596bfd
movzx eax, byte [ecx + 0x7b339ac]
jmp dword [eax*4 + 0x7b33994]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.38596780
mov ecx, dword [ebp - 0x10]
add esp, 0x1c
test eax, eax
mov eax, dword [ebp - 0xc]
jne 0x38596c2a
or eax, 1
mov dword [ebp - 0xc], eax
jmp 0x38596c2a
and dl, 0xf0
cmp dl, 0x70
jne 0x38596c24
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x14]
push ebx
movsx eax, byte [ecx + 0x1401]
add eax, edi
add eax, esi
push 1
push eax
jmp 0x38596b3f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test al, 1
jne 0x38596c69
add esi, edi
mov edi, dword [ebp + 8]
cmp esi, dword [ecx]
jb 0x38596a80
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
test ecx, ecx
je 0x38596c64
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x34]
add eax, 4
mov edi, edi
cmp byte [eax], 0
jne 0x38596c56
inc ebx
add eax, 5
sub ecx, 1
jne 0x38596c50
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 8]
add dword [ebp - 0x30], edx
jmp 0x38596c6c
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 0x50
jb 0x38596a27
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x96
jb 0x38597258
imul eax, dword [ebp - 0x34], 0x64
xor edx, edx
div ecx
cmp eax, 2
jb 0x38597258
cmp eax, 7
ja 0x38597586
push 0x800
push edi
call 0x37fbac60
add esp, 8
test eax, eax
jne 0x38597258
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0xb
push edi
call 0x37fbae60
add esp, 0x10
test eax, eax
jne 0x38597258
cmp dword [ebp - 0x38], 0x1000
jb 0x38597258
mov ebx, dword [ebp - 0x38]
xor esi, esi
mov edi, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov byte [ebp - 1], dl
lea esp, [esp]
movzx eax, byte [edi + esi]
add edi, esi
movzx ecx, word [eax*2 + 0x7428fa8]
movzx eax, byte [edi + 1]
movzx ecx, byte [ecx + eax + 0x74291a8]
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x38596d35
push edi
call 0x37e8c7b0
mov edx, dword [ebp - 0xc]
mov ecx, eax
mov ebx, dword [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x10], ecx
cmp ecx, 0xffffffff
je 0x38596fee
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, 0x1000
ja 0x38596fee
mov edi, dword [ebp - 0x2c]
movzx eax, byte [edi + esi]
add eax, 0xffffffcb
cmp eax, 0xb6
ja 0x38596f05
movzx eax, byte [eax + 0x7b33ad8]
jmp dword [eax*4 + 0x7b33ab4]
and edx, 0xfffffffe
mov dword [ebp - 0xc], edx
jmp 0x38596f4b
test dl, 1
jne 0x38596fee
add esi, ecx
cmp esi, ebx
jae 0x38596fdf
lea eax, [ebx - 0xf]
cmp esi, eax
jbe 0x38596fe5
lea eax, [ebx - 2]
cmp esi, eax
ja 0x38596fdf
mov cl, byte [edi + esi]
movzx eax, cl
add eax, 0xffffffcb
cmp eax, 0xb6
ja 0x38596fcb
movzx eax, byte [eax + 0x7b33ba4]
jmp dword [eax*4 + 0x7b33b90]
mov al, cl
and al, 0xf0
cmp al, 0x70
je 0x38596fe5
cmp al, 0x50
je 0x38596fe5
and cl, 0xf8
cmp cl, 0x58
je 0x38596fe5
or edx, 0x40
mov dword [ebp - 0xc], edx
test dl, 0x40
je 0x38596d00
mov ebx, dword [ebp - 8]
test dl, 0x20
je 0x3859712f
cmp dword [ebp - 0x14], 0x1e
ja 0x38597586
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xdc14]
mov ecx, dword [esi + 0x94d1]
cmp eax, ecx
jb 0x38597132
sub eax, ecx
cmp dword [esi + 0x94d5], eax
ja 0x38597132
push ecx
push esi
call 0x37ac5fb0
mov edi, eax
add esp, 8
mov dword [ebp - 0x28], edi
test edi, edi
je 0x38597132
push dword [esi + 0x94d1]
push edi
push dword [esi + 0x94d5]
push esi
call 0x37e6d7f0
mov ecx, dword [esi + 0x94d1]
add esp, 0x10
cmp eax, ecx
jne 0x38597123
lea eax, [ecx - 3]
xor esi, esi
test eax, eax
je 0x38597084
mov edx, 0xec8b
cmp byte [edi + esi], 0x55
jne 0x3859707f
cmp word [edi + esi + 1], dx
je 0x38597084
inc esi
cmp esi, eax
jb 0x38597072
cmp esi, eax
je 0x38597120
xor edx, edx
mov dword [ebp - 0x30], 0
lea eax, [ecx - 0xf]
mov dword [ebp - 0x34], edx
cmp esi, eax
jae 0x385970f9
mov ebx, dword [ebp + 8]
movzx eax, byte [edi + esi]
add edi, esi
movzx ecx, word [eax*2 + 0x7428fa8]
movzx eax, byte [edi + 1]
movzx eax, byte [ecx + eax + 0x74291a8]
test eax, eax
jne 0x385970cc
push edi
call 0x37e8c7b0
mov edx, dword [ebp - 0x34]
add esp, 4
cmp eax, 0xffffffff
jne 0x385970d8
mov eax, 1
jmp 0x385970e4
inc edx
cmp byte [edi], 0xeb
mov dword [ebp - 0x34], edx
jne 0x385970e4
inc dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
add esi, eax
mov eax, dword [ebx + 0x94d1]
sub eax, 0xf
cmp esi, eax
jb 0x385970a2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp + 8]
push edi
push esi
call 0x37ac5ff0
mov ecx, dword [ebp - 0x34]
add esp, 8
test ecx, ecx
je 0x38597132
imul eax, dword [ebp - 0x30], 0x64
xor edx, edx
div ecx
cmp eax, 2
jae 0x38597586
jmp 0x38597132
mov esi, dword [ebp + 8]
push edi
push esi
call 0x37ac5ff0
add esp, 8
jmp 0x38597132
mov esi, dword [ebp + 8]
cmp dword [esi + 0x94f9], 0x800
jb 0x38597258
mov eax, dword [esi + 0xdc14]
mov ecx, dword [esi + 0x94fd]
sub eax, 0x800
cmp ecx, eax
ja 0x38597258
push 0x800
push ebx
push ecx
push esi
call 0x37e6d7f0
add esp, 0x10
cmp eax, 0x800
jne 0x38597258
mov ebx, dword [ebp + 8]
lea edx, [esi + 0x1404]
mov eax, 0xffffebfc
mov esi, edx
sub eax, ebx
mov dword [ebp + 8], eax
jmp 0x38597190
mov edi, dword [esi - 4]
mov eax, edi
xor eax, 0x41564441
mov dword [ebp - 0x10], eax
je 0x385971af
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x32334950
je 0x38597261
mov eax, edi
xor eax, 0x41454c4f
mov dword [ebp - 0x10], eax
je 0x385971cb
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x32335455
je 0x38597261
mov eax, edi
xor eax, 0x4c454853
mov dword [ebp - 0x10], eax
je 0x385971e7
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x2e32334c
je 0x38597261
mov eax, edi
xor eax, 0x74666f53
mov dword [ebp - 0x10], eax
je 0x385971ff
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x65726177
je 0x38597261
mov eax, edi
xor eax, 0x54464f53
mov dword [ebp - 0x10], eax
je 0x38597217
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x45524157
je 0x38597261
mov eax, edi
xor eax, 0x70747468
mov dword [ebp - 0x10], eax
je 0x3859722f
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x322f2f3a
je 0x38597261
mov eax, edi
xor eax, 0x61636f4c
mov dword [ebp - 0x10], eax
je 0x38597247
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x6572466c
je 0x38597261
mov eax, dword [ebp + 8]
inc esi
add eax, esi
cmp eax, 0x7f8
jb 0x38597190
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea esi, [ebx + 0x1408]
xor edi, edi
mov dword [ebp + 8], ecx
add ebx, 0x140c
cmp edi, 0x7e0
jae 0x3859757d
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
xor ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, 0x6f0061
mov ecx, dword [ebp + 8]
ja 0x38597456
cmp dword [ebp - 0xc], 0x6f0061
je 0x3859742a
cmp dword [ebp - 0xc], 0x630073
ja 0x38597370
je 0x3859732d
cmp dword [ebp - 0xc], 0x61002f
je 0x385972da
cmp dword [ebp - 0xc], 0x63003a
jne 0x3859741e
mov ecx, dword [edx]
xor ecx, eax
cmp ecx, 0x64006d
jmp 0x38597431
mov ecx, dword [edx]
xor ecx, eax
cmp ecx, 0x6c006f
jne 0x3859741b
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x73002f
jne 0x3859741b
mov ecx, dword [ebx]
xor ecx, eax
cmp ecx, 0x610065
mov ecx, dword [ebp + 8]
jne 0x3859741e
add dword [ebp - 8], 0xf
add edi, 0xf
inc dword [ebp - 8]
add ebx, 0xf
add esi, 0xf
inc ecx
add edx, 0xf
mov dword [ebp + 8], ecx
inc edi
inc ebx
inc esi
inc edx
jmp 0x38597274
mov ecx, dword [edx]
xor ecx, eax
cmp ecx, 0x650068
jne 0x3859741b
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x65006d
mov ecx, dword [ebp + 8]
jne 0x3859741e
add dword [ebp - 8], 0xb
add edi, 0xb
inc dword [ebp - 8]
add ebx, 0xb
add esi, 0xb
inc ecx
add edx, 0xb
mov dword [ebp + 8], ecx
inc edi
inc ebx
inc esi
inc edx
jmp 0x38597274
cmp dword [ebp - 0xc], 0x650073
je 0x38597395
cmp dword [ebp - 0xc], 0x690062
jne 0x3859741e
mov ecx, dword [edx]
xor ecx, eax
cmp ecx, 0x67006e
jmp 0x38597431
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], 8
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub dword [ebp - 0x3c], 1
jne 0x385973a2
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x7b32b0c
mov dword [ebp - 0x34], 0x1c
mov eax, dword [ebp - 0x38]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
mov eax, dword [ebp - 0x10]
jne 0x38597403
mov ecx, dword [ebp - 0x3c]
add dword [ebp - 0x38], 4
add ecx, 4
sub dword [ebp - 0x34], 4
mov dword [ebp - 0x3c], ecx
jae 0x385973c1
mov ecx, dword [ebp + 8]
add edi, 0x1f
add dword [ebp - 8], 0x1f
add ebx, 0x1f
inc dword [ebp - 8]
add esi, 0x1f
inc ecx
add edx, 0x1f
inc edi
mov dword [ebp + 8], ecx
inc ebx
inc esi
inc edx
jmp 0x38597274
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], 8
lea ecx, [ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub dword [ebp - 0x3c], 1
jne 0x38597410
mov ecx, dword [ebp + 8]
inc dword [ebp - 8]
inc edi
inc ebx
inc esi
inc edx
jmp 0x38597274
mov ecx, dword [edx]
xor ecx, eax
cmp ecx, 0x6c
mov ecx, dword [ebp + 8]
jne 0x3859741e
add dword [ebp - 8], 7
add edi, 7
inc dword [ebp - 8]
add ebx, 7
add esi, 7
inc ecx
add edx, 7
mov dword [ebp + 8], ecx
inc edi
inc ebx
inc esi
inc edx
jmp 0x38597274
cmp dword [ebp - 0xc], 0x75002f
ja 0x38597558
je 0x38597549
cmp dword [ebp - 0xc], 0x6f0067
je 0x3859752a
cmp dword [ebp - 0xc], 0x72002f
jne 0x3859741e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], 7
lea esp, [esp]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub dword [ebp - 0x3c], 1
jne 0x38597490
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], 0x7b32b2c
mov dword [ebp - 0x38], 0x16
nop
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
mov eax, dword [ebp - 0x10]
jne 0x38597500
mov ecx, dword [ebp - 0x3c]
add dword [ebp - 0x2c], 4
add ecx, 4
sub dword [ebp - 0x38], 4
mov dword [ebp - 0x3c], ecx
jae 0x385974b0
mov eax, dword [ebp - 0x2c]
mov cx, word [ecx]
cmp cx, word [eax]
mov eax, dword [ebp - 0x10]
jne 0x38597500
mov ecx, dword [ebp + 8]
add edi, 0x1b
add dword [ebp - 8], 0x1b
add ebx, 0x1b
inc dword [ebp - 8]
add esi, 0x1b
inc ecx
add edx, 0x1b
inc edi
mov dword [ebp + 8], ecx
inc ebx
inc esi
inc edx
jmp 0x38597274
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], 7
lea ebx, [ebx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub dword [ebp - 0x3c], 1
jne 0x38597510
inc dword [ebp - 8]
inc edi
mov ecx, dword [ebp + 8]
inc ebx
inc esi
inc edx
jmp 0x38597274
mov ecx, dword [edx]
xor ecx, eax
cmp ecx, 0x67006f
jne 0x3859741b
mov ecx, dword [esi]
xor ecx, eax
cmp ecx, 0x65006c
jmp 0x38597347
mov ecx, dword [edx]
xor ecx, eax
cmp ecx, 0x6c0072
jmp 0x38597431
cmp dword [ebp - 0xc], 0x7a6f6d40
jne 0x3859741e
mov ecx, dword [edx]
xor ecx, eax
cmp ecx, 0x616c6c69
jne 0x3859741b
mov ecx, dword [ebp + 8]
jmp 0x38597436
cmp ecx, 1
jbe 0x38597258
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret