Function at 0x4136e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44173b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x4580f8]
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x25c], esi
test eax, eax
je 0x41375a
push dword [esi + 4]
push 0
push eax
call fcn.00420da0
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x41375a
push eax
call fcn.0041f332
add esp, 4
push 0x8c
call fcn.0041f375
push 0x8c
push 0
push eax
mov dword [esi], eax
call fcn.00420da0
add esp, 0x10
mov dword [esi + 4], 0x8c
mov dword [esi + 8], 0
lea ecx, [ebp - 0x258]
movzx eax, byte [edi + 0xcd]
push eax
call fcn.004147d0
xor edi, edi
mov dword [ebp - 0x248], eax
mov ecx, dword [eax + 8]
cmp ecx, 2
jae 0x4137ab
mov edx, ecx
jmp 0x4137b9
mov edx, 2
mov eax, edx
cmp eax, ecx
jae 0x4137b9
lea edi, [ecx - 2]
mov eax, dword [esi + 8]
mov dword [ebp - 0x244], eax
cmp eax, dword [esi + 4]
jae 0x4137fa
test edx, edx
je 0x4137fa
mov eax, dword [ebp - 0x248]
dec edx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x244]
mov eax, dword [eax]
mov al, byte [edi + eax]
inc edi
mov byte [esi + ecx], al
mov esi, dword [ebp - 0x25c]
inc dword [esi + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x244], eax
cmp eax, dword [esi + 4]
jb 0x4137c7
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x413820
push dword [ebp - 0x254]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x258]
call fcn.0041f332
add esp, 0x10
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x248], 6
lea ecx, [edx + 0xd4]
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413840
sub ecx, edi
je 0x4138ef
mov edi, edx
mov dword [ebp - 0x244], 0
lea esi, [edx + 0xd4]
add edi, 0xce
movsx eax, byte [esi]
push eax
call fcn.004231a0
cmp al, 0x41
mov edx, 0x30
mov ecx, 0x37
cmovl ecx, edx
sub al, cl
shl al, 4
mov byte [ebp - 0x25d], al
movsx eax, byte [esi + 1]
push eax
call fcn.004231a0
add esp, 8
lea esi, [esi + 2]
cmp al, 0x41
mov edx, 0x30
mov ecx, 0x37
cmovl ecx, edx
mov dl, byte [ebp - 0x25d]
sub dl, cl
add dl, al
mov eax, dword [ebp - 0x244]
xor dl, byte [eax + 0x449838]
mov byte [eax + edi], dl
inc eax
mov dword [ebp - 0x244], eax
cmp eax, 6
jl 0x413867
mov eax, dword [edi]
mov esi, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x20], eax
mov ax, word [edi + 4]
mov word [ebp - 0x1c], ax
jmp 0x41391c
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x20]
call fcn.004132b0
mov ecx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x20]
lea edi, [ecx + 0xce]
mov dword [edi], eax
mov dword [ebp - 0x244], eax
mov ax, word [ebp - 0x1c]
mov word [edi + 4], ax
movzx eax, byte [ecx + 0xd3]
push eax
movzx eax, byte [ecx + 0xd2]
push eax
movzx eax, byte [ecx + 0xd1]
push eax
movzx eax, byte [ecx + 0xd0]
push eax
movzx eax, byte [ecx + 0xcf]
push eax
movzx eax, byte [edi]
push eax
lea eax, [ecx + 0xd4]
push str._02x_02x_02x_02x_02x_02x
push eax
call fcn.004015f0
add esp, 0x20
lea ecx, [ebp - 0x258]
push dword [ebp - 0x244]
call fcn.004147d0
mov ecx, eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], eax
mov edx, dword [ecx + 8]
cmp eax, dword [esi + 4]
jae 0x4139bb
xor edi, edi
test edx, edx
je 0x4139bb
mov eax, dword [ecx]
dec edx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x244]
mov al, byte [edi + eax]
inc edi
mov byte [esi + ecx], al
mov esi, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x248]
inc dword [esi + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x244], eax
cmp eax, dword [esi + 4]
jb 0x413988
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x4139e1
push dword [ebp - 0x254]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x258]
call fcn.0041f332
add esp, 0x10
mov edi, dword [ebp - 0x24c]
lea ecx, [ebp - 0x270]
push dword [edi + 0xf0]
call fcn.00414870
push ecx
push 0
lea eax, [ebp - 0x270]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004148d0
push dword [ebp - 0x1f]
lea ecx, [ebp - 0x258]
call fcn.004147d0
mov ecx, eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x244], eax
mov edx, dword [ecx + 8]
cmp eax, dword [esi + 4]
jae 0x413a79
xor edi, edi
nop dword [eax]
test edx, edx
je 0x413a73
mov eax, dword [ecx]
dec edx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x244]
mov al, byte [edi + eax]
inc edi
mov byte [esi + ecx], al
mov esi, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x248]
inc dword [esi + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x244], eax
cmp eax, dword [esi + 4]
jb 0x413a40
mov edi, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x413a9f
push dword [ebp - 0x254]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x258]
call fcn.0041f332
add esp, 0x10
push dword [edi + 0xe4]
lea ecx, [ebp - 0x258]
call fcn.00414870
xor edi, edi
mov dword [ebp - 0x248], eax
mov ecx, dword [eax + 8]
cmp ecx, 0xb
jae 0x413ac4
mov edx, ecx
jmp 0x413ad2
mov edx, 0xb
mov eax, edx
cmp eax, ecx
jae 0x413ad2
lea edi, [ecx - 0xb]
mov eax, dword [esi + 8]
mov dword [ebp - 0x244], eax
cmp eax, dword [esi + 4]
jae 0x413b13
test edx, edx
je 0x413b13
mov eax, dword [ebp - 0x248]
dec edx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x244]
mov eax, dword [eax]
mov al, byte [edi + eax]
inc edi
mov byte [esi + ecx], al
mov esi, dword [ebp - 0x25c]
inc dword [esi + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x244], eax
cmp eax, dword [esi + 4]
jb 0x413ae0
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x413b39
push dword [ebp - 0x254]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x258]
call fcn.0041f332
add esp, 0x10
push ecx
push 8
lea eax, [ebp - 0x270]
mov ecx, esi
push eax
call fcn.004148d0
push dword [ebp - 0x1e]
lea ecx, [ebp - 0x258]
call fcn.004147d0
mov edi, dword [esi + 8]
mov dword [ebp - 0x248], eax
mov edx, dword [eax + 8]
cmp edi, dword [esi + 4]
jae 0x413ba5
mov dword [ebp - 0x244], 0
test edx, edx
je 0x413ba5
mov eax, dword [eax]
dec edx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x244]
inc dword [ebp - 0x244]
mov al, byte [esi + eax]
mov esi, dword [ebp - 0x25c]
mov byte [edi + ecx], al
mov eax, dword [ebp - 0x248]
inc dword [esi + 8]
mov edi, dword [esi + 8]
cmp edi, dword [esi + 4]
jb 0x413b73
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x413bcb
push dword [ebp - 0x254]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x258]
call fcn.0041f332
add esp, 0x10
mov ecx, dword [ebp - 0x24c]
mov eax, 0x66666667
imul dword [ecx + 0xec]
lea ecx, [ebp - 0x258]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.00414870
xor edi, edi
mov dword [ebp - 0x248], eax
mov ecx, dword [eax + 8]
cmp ecx, 0xf
jae 0x413c06
mov edx, ecx
jmp 0x413c14
mov edx, 0xf
mov eax, edx
cmp eax, ecx
jae 0x413c14
lea edi, [ecx - 0xf]
mov eax, dword [esi + 8]
mov dword [ebp - 0x244], eax
cmp eax, dword [esi + 4]
jae 0x413c55
test edx, edx
je 0x413c55
mov eax, dword [ebp - 0x248]
dec edx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x244]
mov eax, dword [eax]
mov al, byte [edi + eax]
inc edi
mov byte [esi + ecx], al
mov esi, dword [ebp - 0x25c]
inc dword [esi + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x244], eax
cmp eax, dword [esi + 4]
jb 0x413c22
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x413c7b
push dword [ebp - 0x254]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x258]
call fcn.0041f332
add esp, 0x10
push dword [ebp - 0x1d]
lea ecx, [ebp - 0x258]
call fcn.004147d0
mov edi, dword [esi + 8]
mov ecx, esi
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], eax
mov edx, dword [eax + 8]
cmp edi, dword [esi + 4]
jae 0x413cda
test edx, edx
je 0x413cda
mov eax, dword [eax]
dec edx
mov esi, dword [ebp - 0x244]
mov ecx, dword [ecx]
inc dword [ebp - 0x244]
mov al, byte [esi + eax]
mov esi, dword [ebp - 0x25c]
mov byte [edi + ecx], al
mov ecx, esi
mov eax, dword [ebp - 0x248]
inc dword [esi + 8]
mov edi, dword [esi + 8]
cmp edi, dword [esi + 4]
jb 0x413ca6
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x413d00
push dword [ebp - 0x254]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x258]
call fcn.0041f332
add esp, 0x10
push ecx
push 0x10
lea eax, [ebp - 0x270]
mov ecx, esi
push eax
call fcn.004148d0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x258]
call fcn.004147d0
mov edi, dword [esi + 8]
mov dword [ebp - 0x248], eax
mov edx, dword [eax + 8]
cmp edi, dword [esi + 4]
jae 0x413d72
mov dword [ebp - 0x244], 0
nop word [eax + eax]
test edx, edx
je 0x413d72
mov eax, dword [eax]
dec edx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x244]
inc dword [ebp - 0x244]
mov al, byte [esi + eax]
mov esi, dword [ebp - 0x25c]
mov byte [edi + ecx], al
mov eax, dword [ebp - 0x248]
inc dword [esi + 8]
mov edi, dword [esi + 8]
cmp edi, dword [esi + 4]
jb 0x413d40
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x413d98
push dword [ebp - 0x254]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x258]
call fcn.0041f332
add esp, 0x10
push ecx
push 0x18
lea eax, [ebp - 0x270]
mov ecx, esi
push eax
call fcn.004148d0
push dword [ebp - 0x1b]
lea ecx, [ebp - 0x258]
call fcn.004147d0
mov edi, dword [esi + 8]
mov dword [ebp - 0x248], eax
mov edx, dword [eax + 8]
cmp edi, dword [esi + 4]
jae 0x413e04
mov dword [ebp - 0x244], 0
test edx, edx
je 0x413e04
mov eax, dword [eax]
dec edx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x244]
inc dword [ebp - 0x244]
mov al, byte [esi + eax]
mov esi, dword [ebp - 0x25c]
mov byte [edi + ecx], al
mov eax, dword [ebp - 0x248]
inc dword [esi + 8]
mov edi, dword [esi + 8]
cmp edi, dword [esi + 4]
jb 0x413dd2
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x413e2a
push dword [ebp - 0x254]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x258]
call fcn.0041f332
add esp, 0x10
mov edi, dword [ebp - 0x24c]
xorps xmm0, xmm0
add edi, 0x3c
mov ecx, esi
push 0
push 0
push edi
movups xmmword [edi], xmm0
mov dword [ebp - 0x264], edi
mov word [edi + 0x10], 0
call fcn.00414a10
push 0xe
mov edx, edi
or ecx, 0xffffffff
call fcn.004168a0
add esp, 4
lea ecx, [ebp - 0x20]
xor eax, 0x571422f6
push eax
call fcn.00414870
mov ecx, eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x248], eax
mov edx, dword [ecx + 8]
cmp eax, dword [esi + 4]
jae 0x413ec9
xor edi, edi
nop dword [eax]
test edx, edx
je 0x413ec3
mov eax, dword [ecx]
dec edx
mov ecx, dword [esi]
mov esi, dword [ebp - 0x248]
mov al, byte [edi + eax]
inc edi
mov byte [esi + ecx], al
mov esi, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x244]
inc dword [esi + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x248], eax
cmp eax, dword [esi + 4]
jb 0x413e90
mov edi, dword [ebp - 0x264]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x413ee6
push dword [ebp - 0x1c]
push 0
push eax
call fcn.00420da0
push dword [ebp - 0x20]
call fcn.0041f332
add esp, 0x10
push 0
push 0
push edi
mov ecx, esi
call fcn.00414a10
push 0x12
mov edx, edi
or ecx, 0xffffffff
call fcn.004168a0
mov ecx, dword [ebp - 0x24c]
add esp, 4
not eax
xor eax, 0xa8ebdd09
push 0
push ecx
mov dword [ecx + 0x24], eax
mov ecx, esi
push 0x456fc8
call fcn.00414ab0
mov eax, dword [ebp - 0x24c]
push ecx
add eax, 0x28
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x240]
call fcn.00414e80
push 0
push 0
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00414a10
push ecx
push edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x240]
call fcn.00414f40
mov eax, dword [ebp - 0x24c]
mov ecx, esi
push 0x8c
push edi
mov dword [eax + 0x14], 0
call fcn.00414930
mov edx, dword [ebp - 0x24c]
mov ecx, esi
lea edx, [edx + 0x84]
call fcn.00414c80
mov esi, dword [ebp - 0x270]
test esi, esi
je 0x413fa8
push dword [ebp - 0x26c]
push 0
push esi
call fcn.00420da0
push esi
call fcn.0041f332
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret