Function at 0x419275
Capabilities:
Encode data using xor

Disassembly:
cmp dword [ecx], 0xffffffff
je 0x4192e7
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov ebx, ecx
push 0x1006c792
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
lea ecx, [esp + 0x10]
push 8
push 2
push ecx
push dword [ebx]
call eax
test eax, eax
jg 0x4192ec
cmp dword [ebx], 0xffffffff
je 0x4192ec
push 0xea8d1240
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push 2
push dword [ebx]
call eax
push 0xa3d60213
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push dword [ebx]
call eax
mov dword [ebx], 0xffffffff
jmp 0x419640
xor eax, eax
ret 4
test eax, eax
jle 0x419640
movzx eax, byte [esp + 0x11]
mov ecx, eax
not cl
or cl, 0x7f
add cl, al
inc cl
movzx eax, cl
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
cmp cl, 0x7f
je 0x4193b6
cmp eax, 0x7e
jne 0x419445
mov word [esp], 0
push 0x1006c792
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
mov ecx, esp
push 8
push 2
push ecx
push dword [ebx]
call eax
test eax, eax
setg dl
jg 0x41938f
cmp dword [ebx], 0xffffffff
je 0x41938f
push 0xea8d1240
push dword [0x44726c]
mov esi, edx
call fcn.0043ae20
add esp, 8
push 2
push dword [ebx]
call eax
push 0xa3d60213
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push dword [ebx]
call eax
mov edx, esi
mov dword [ebx], 0xffffffff
movzx eax, word [esp]
rol ax, 8
movzx eax, ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x11], 0
jns 0x4194ba
jmp 0x41944e
mov dword [esp + 4], 0
mov dword [esp], 0
push 0x1006c792
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
mov ecx, esp
push 8
push 8
push ecx
push dword [ebx]
call eax
test eax, eax
setg dl
jg 0x419429
cmp dword [ebx], 0xffffffff
je 0x419429
push 0xea8d1240
push dword [0x44726c]
mov esi, edx
call fcn.0043ae20
add esp, 8
push 2
push dword [ebx]
call eax
push 0xa3d60213
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push dword [ebx]
call eax
mov edx, esi
mov dword [ebx], 0xffffffff
mov eax, dword [esp]
mov ecx, dword [esp + 4]
bswap ecx
bswap eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp byte [esp + 0x11], 0
jns 0x4194ba
jmp 0x41944e
xor edx, edx
cmp byte [esp + 0x11], 0
jns 0x4194ba
mov edi, edx
lea esi, [esp + 0x20]
push 0x1006c792
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push 8
push 4
push esi
push dword [ebx]
call eax
test eax, eax
setg al
jg 0x419636
cmp dword [ebx], 0xffffffff
mov edx, edi
je 0x4194bc
push 0xea8d1240
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push 2
push dword [ebx]
call eax
push 0xa3d60213
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push dword [ebx]
call eax
mov edx, edi
mov dword [ebx], 0xffffffff
xor eax, eax
test dl, dl
je 0x419640
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
push eax
call fcn.00408770
add esp, 4
mov dword [esp + 0x24], eax
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x2c], ebx
jmp 0x419501
add edi, ecx
mov ecx, dword [esp + 0x30]
adc ecx, 0
test eax, eax
jle 0x419594
mov esi, dword [esp + 0x18]
cmp edi, esi
mov eax, ecx
sbb eax, dword [esp + 0x1c]
jae 0x419594
mov dword [esp + 0x30], ecx
sub esi, edi
cmp esi, 0xffff
jl 0x419526
mov esi, 0xffff
mov ebx, dword [esp + 0x24]
add ebx, edi
push 0x1006c792
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push 8
push esi
push ebx
mov ebx, dword [esp + 0x38]
push dword [ebx]
call eax
test eax, eax
jg 0x419554
cmp dword [ebx], 0xffffffff
jne 0x41955e
mov ecx, eax
test eax, eax
jg 0x4194f0
xor ecx, ecx
jmp 0x4194f0
push 0xea8d1240
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push 2
push dword [ebx]
call eax
push 0xa3d60213
push dword [0x44726c]
call fcn.0043ae20
add esp, 8
push dword [ebx]
call eax
mov dword [ebx], 0xffffffff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
or ecx, eax
setne cl
mov edx, dword [esp + 0x28]
and dl, cl
cmp dl, 1
jne 0x4195e7
mov edi, ebx
xor ecx, ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x24]
mov esi, ecx
and esi, 3
movzx ebx, byte [esp + esi + 0x20]
xor byte [eax + ecx], bl
add ecx, 1
adc edx, 0
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov esi, edx
sbb esi, dword [esp + 0x1c]
jb 0x4195c0
mov ebx, edi
mov ecx, dword [esp + 0x24]
mov byte [ecx + eax], 0
cmp byte [ebx + 5], 0
je 0x419606
mov eax, esp
mov ecx, ebx
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0041a870
jmp 0x419615
mov eax, esp
mov ecx, ebx
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0041a700
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 8]
mov dword [edx + 8], eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [edx + 4], ecx
mov dword [edx], eax
mov al, 1
jmp 0x419642
mov edx, edi
test dl, dl
jne 0x4194c4
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4