Function at 0x1003f850
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebx
push edi
push esi
sub esp, 0x15c
mov eax, dword [esp + 0x170]
mov dword [esp + 0x150], eax
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0x154], ecx
add eax, 0x13
mov dword [esp + 0x158], eax
mov eax, dword [0x1005e368]
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x14c]
add eax, 0xfe4da126
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x148]
mov eax, dword [eax]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x144]
cmp eax, 1
sete al
mov byte [esp + 0x143], al
mov cl, byte [esp + 0x143]
xor eax, eax
test cl, 1
mov dword [esp + 0x13c], eax
jne 0x1004035e
jmp 0x1003f8e0
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x154]
mov esi, dword [esp + 0x150]
mov edx, dword [esp + 0x158]
mov dword [esp + 0x134], eax
mov dl, byte [edx + eax]
mov byte [esp + 0x13b], dl
mov edi, 0x13
xor edx, edx
div edi
mov eax, dword [esp + 0x134]
mov edi, edx
mov dh, byte [esp + 0x13b]
mov bl, byte [esi + edi]
mov bh, dh
xor bh, 0xff
mov dl, bl
and dl, bh
xor bl, 0xff
and dh, bl
or dl, dh
mov byte [ecx + eax], dl
xor ecx, ecx
sub ecx, eax
xor eax, eax
sub eax, 1
add ecx, eax
xor eax, eax
sub eax, ecx
cmp eax, 0x14
mov dword [esp + 0x13c], eax
jne 0x1003f8e0
mov eax, dword [0x1005fc60]
mov dword [esp + 0x12c], eax
mov eax, dword [0x1005fc5c]
mov dword [esp + 0x130], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x128], eax
mov ecx, dword [esp + 0x128]
mov eax, dword [esp + 0x12c]
add eax, ecx
mov dword [esp + 0x124], eax
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x12c]
imul eax, ecx
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x120]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x11e], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x11f], al
mov dl, byte [esp + 0x11f]
mov cl, byte [esp + 0x11e]
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x1003f9fc
jmp 0x10040368
mov eax, dword [0x1005fc60]
mov ecx, dword [0x1005fc5c]
mov dword [esp + 0x114], ecx
mov ecx, eax
sub ecx, 0x50fb3cfc
sub ecx, 1
add ecx, 0x50fb3cfc
imul eax, ecx
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x118]
and eax, 1
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x110]
cmp eax, 0
sete al
mov byte [esp + 0x10f], al
mov eax, dword [esp + 0x114]
cmp eax, 0xa
setl al
mov byte [esp + 0x10e], al
mov dl, byte [esp + 0x10e]
mov cl, byte [esp + 0x10f]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x10d], al
mov al, byte [esp + 0x10d]
test al, 1
jne 0x1003fa93
jmp 0x100403b7
mov eax, dword [0x1005fc60]
mov dword [esp + 0x104], eax
mov eax, dword [0x1005fc5c]
mov dword [esp + 0x108], eax
mov ecx, dword [esp + 0x108]
mov eax, dword [esp + 0x104]
mov edx, eax
sub edx, 0x9a69844a
sub edx, 1
add edx, 0x9a69844a
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x101], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x102], cl
xor al, 0xff
mov byte [esp + 0x103], al
mov al, byte [esp + 0x103]
mov cl, byte [esp + 0x102]
xor cl, 0xff
mov byte [esp + 0xfe], cl
mov cl, 1
xor cl, 1
mov byte [esp + 0xff], cl
and al, 0xff
mov byte [esp + 0x100], al
mov cl, byte [esp + 0xff]
mov al, byte [esp + 0x101]
and al, cl
mov byte [esp + 0xfd], al
mov cl, byte [esp + 0xff]
mov al, byte [esp + 0x102]
mov dl, byte [esp + 0xfe]
and dl, 0xff
mov byte [esp + 0xfb], dl
and al, cl
mov byte [esp + 0xfc], al
mov dl, byte [esp + 0xff]
mov ah, byte [esp + 0xfe]
mov cl, byte [esp + 0x103]
mov dh, byte [esp + 0xfc]
mov ch, byte [esp + 0xfb]
mov bl, byte [esp + 0xfd]
mov al, byte [esp + 0x100]
or al, bl
or ch, dh
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x1003fbaf
jmp 0x100403b7
mov eax, dword [0x1005fc60]
mov dword [esp + 0xf0], eax
mov eax, dword [0x1005fc5c]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xf0]
add eax, 0xad5297eb
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
sub ecx, 1
sub ecx, 0xad5297eb
imul eax, ecx
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xe8]
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0xe6], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xe7], al
mov cl, byte [esp + 0xe7]
mov al, byte [esp + 0xe6]
and al, cl
mov byte [esp + 0xe5], al
mov al, byte [esp + 0xe5]
mov dl, byte [esp + 0xe7]
mov cl, byte [esp + 0xe6]
xor cl, dl
or al, cl
test al, 1
jne 0x1003fc63
jmp 0x1004038d
mov eax, dword [0x1005fc60]
mov dword [esp + 0xd8], eax
mov ecx, dword [0x1005fc5c]
mov dword [esp + 0xdc], ecx
sub eax, 0x36e44d1f
sub eax, 1
mov dword [esp + 0xe0], eax
mov ecx, dword [esp + 0xdc]
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xe0]
add edx, 0x36e44d1f
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0xd5], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0xd6], cl
xor al, 0xff
mov byte [esp + 0xd7], al
mov al, byte [esp + 0xd5]
mov dl, byte [esp + 0xd7]
mov cl, byte [esp + 0xd6]
xor cl, 0xff
mov byte [esp + 0xd1], cl
mov cl, 1
xor cl, 0
mov byte [esp + 0xd2], cl
and dl, 0
mov byte [esp + 0xd3], dl
and al, cl
mov byte [esp + 0xd4], al
mov al, byte [esp + 0xd2]
mov dl, byte [esp + 0xd1]
mov cl, byte [esp + 0xd7]
mov bl, byte [esp + 0xd4]
mov ah, byte [esp + 0xd3]
mov dh, byte [esp + 0xd6]
mov ch, dl
and ch, 0
and dh, al
or ah, bl
or ch, dh
xor ah, ch
mov byte [esp + 0xce], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0xcf], cl
or al, 0
mov byte [esp + 0xd0], al
mov al, byte [esp + 0xce]
mov dl, byte [esp + 0xd0]
mov cl, byte [esp + 0xcf]
and cl, dl
or al, cl
mov byte [esp + 0xcd], al
mov al, byte [esp + 0xcd]
test al, 1
jne 0x1003fd94
jmp 0x100403bc
mov eax, dword [0x1005e368]
mov dword [eax - 0x1b25eda], 1
mov eax, dword [0x1005fc60]
mov ecx, dword [0x1005fc5c]
mov dword [esp + 0xc4], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
mov dword [esp + 0xc8], eax
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
cmp eax, 0
sete ah
cmp ecx, 0xa
setl dl
mov al, ah
xor al, 0xff
mov byte [esp + 0xc0], al
mov cl, dl
xor cl, 0xff
mov byte [esp + 0xc1], cl
mov ch, 1
xor ch, 1
mov byte [esp + 0xc2], ch
and al, 0xff
and ah, ch
and cl, 0xff
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0xc3], al
mov cl, byte [esp + 0xc1]
mov al, byte [esp + 0xc0]
or al, cl
xor al, 0xff
mov byte [esp + 0xbf], al
mov al, byte [esp + 0xc2]
or al, 1
mov byte [esp + 0xbe], al
mov al, byte [esp + 0xc3]
mov dl, byte [esp + 0xbe]
mov cl, byte [esp + 0xbf]
and cl, dl
or al, cl
mov byte [esp + 0xbd], al
mov al, byte [esp + 0xbd]
test al, 1
jne 0x1003fe7b
jmp 0x100403bc
mov eax, dword [0x1005fc60]
mov dword [esp + 0xb4], eax
mov eax, dword [0x1005fc5c]
mov dword [esp + 0xb8], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
add eax, ecx
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xb4]
imul eax, ecx
and eax, 1
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0xa8]
cmp eax, 0
sete al
mov byte [esp + 0xa5], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0xa6], cl
and al, cl
mov byte [esp + 0xa7], al
mov al, byte [esp + 0xa7]
mov dl, byte [esp + 0xa6]
mov cl, byte [esp + 0xa5]
xor cl, dl
or al, cl
test al, 1
jne 0x1003ff28
jmp 0x1004038d
mov eax, dword [0x1005fc60]
mov dword [esp + 0x98], eax
mov ecx, dword [0x1005fc5c]
mov dword [esp + 0x9c], ecx
add eax, 0x874e7399
sub eax, 1
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa0]
sub eax, 0x874e7399
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
imul eax, ecx
and eax, 1
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x90]
cmp eax, 0
sete al
mov byte [esp + 0x8d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x8e], cl
and al, cl
mov byte [esp + 0x8f], al
mov al, byte [esp + 0x8f]
mov dl, byte [esp + 0x8e]
mov cl, byte [esp + 0x8d]
xor cl, dl
or al, cl
mov byte [esp + 0x8c], al
mov al, byte [esp + 0x8c]
test al, 1
jne 0x1003ffe3
jmp 0x100403df
mov eax, dword [0x1005fc60]
mov dword [esp + 0x80], eax
mov ecx, dword [0x1005fc5c]
mov dword [esp + 0x84], ecx
sub eax, 0x65c51087
sub eax, 1
add eax, 0x65c51087
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x80]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x7b], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x7c], al
xor cl, 0xff
mov byte [esp + 0x7d], cl
xor al, 0xff
mov byte [esp + 0x7e], al
mov al, 1
xor al, 1
mov byte [esp + 0x7f], al
mov ah, byte [esp + 0x7f]
mov dl, byte [esp + 0x7c]
mov ch, byte [esp + 0x7e]
mov cl, byte [esp + 0x7b]
mov al, byte [esp + 0x7d]
and al, 0xff
and cl, ah
and ch, 0xff
mov byte [esp + 0x78], ch
and dl, ah
mov byte [esp + 0x79], dl
or al, cl
mov byte [esp + 0x7a], al
mov al, byte [esp + 0x7a]
mov dl, byte [esp + 0x79]
mov cl, byte [esp + 0x78]
or cl, dl
xor al, cl
mov byte [esp + 0x77], al
mov cl, byte [esp + 0x7e]
mov al, byte [esp + 0x7d]
or al, cl
xor al, 0xff
mov byte [esp + 0x76], al
mov al, byte [esp + 0x77]
mov cl, byte [esp + 0x76]
mov dl, byte [esp + 0x7f]
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x100400c3
jmp 0x100403df
mov eax, dword [0x1005fc60]
mov dword [esp + 0x68], eax
mov ecx, dword [0x1005fc5c]
mov dword [esp + 0x6c], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x68]
imul eax, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
and eax, 1
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x60]
cmp ecx, 0
sete cl
mov byte [esp + 0x5e], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x5f], al
mov cl, byte [esp + 0x5f]
mov al, byte [esp + 0x5e]
mov dl, al
and dl, cl
mov byte [esp + 0x5c], dl
xor al, cl
mov byte [esp + 0x5d], al
mov cl, byte [esp + 0x5d]
mov al, byte [esp + 0x5c]
or al, cl
test al, 1
jne 0x10040144
jmp 0x10040368
mov eax, dword [0x1005fc60]
mov dword [esp + 0x54], eax
mov eax, dword [0x1005fc5c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
mov ecx, eax
add ecx, 0x7f5b8cd8
sub ecx, 1
sub ecx, 0x7f5b8cd8
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x53], al
mov eax, dword [esp + 0x58]
cmp eax, 0xa
setl al
mov byte [esp + 0x52], al
mov cl, byte [esp + 0x52]
mov al, byte [esp + 0x53]
and al, cl
mov byte [esp + 0x51], al
mov al, byte [esp + 0x51]
mov dl, byte [esp + 0x52]
mov cl, byte [esp + 0x53]
xor cl, dl
or al, cl
mov byte [esp + 0x50], al
mov al, byte [esp + 0x50]
test al, 1
jne 0x100401bc
jmp 0x100403b2
mov eax, dword [0x1005fc60]
mov dword [esp + 0x44], eax
mov ecx, dword [0x1005fc5c]
mov dword [esp + 0x48], ecx
add eax, 0x27a29bba
sub eax, 1
sub eax, 0x27a29bba
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x41], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x42], cl
and al, cl
mov byte [esp + 0x43], al
mov cl, byte [esp + 0x42]
mov al, byte [esp + 0x41]
xor al, cl
mov byte [esp + 0x40], al
mov cl, byte [esp + 0x40]
mov al, byte [esp + 0x43]
or al, cl
mov byte [esp + 0x3f], al
mov al, byte [esp + 0x3f]
test al, 1
jne 0x10040239
jmp 0x100403e4
mov eax, dword [0x1005fc60]
mov ecx, dword [0x1005fc5c]
mov dword [esp + 0x34], ecx
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp eax, 0
sete al
mov byte [esp + 0x33], al
mov cl, byte [esp + 0x33]
mov eax, dword [esp + 0x34]
cmp eax, 0xa
setl al
mov byte [esp + 0x30], al
xor cl, 0xff
mov byte [esp + 0x31], cl
xor al, 0xff
mov byte [esp + 0x32], al
mov al, 1
xor al, 1
mov byte [esp + 0x2f], al
mov dl, byte [esp + 0x2f]
mov ah, byte [esp + 0x32]
mov cl, byte [esp + 0x31]
mov dh, byte [esp + 0x30]
mov bl, byte [esp + 0x33]
mov al, cl
and al, 0xff
and bl, dl
mov ch, ah
and ch, 0xff
and dh, dl
or al, bl
or ch, dh
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0x2e], al
mov al, byte [esp + 0x2e]
test al, 1
jne 0x100402d8
jmp 0x100403e4
mov eax, dword [0x1005fc60]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [0x1005fc5c]
mov dword [esp + 0x20], ecx
sub eax, 0xc614c09
sub eax, 1
add eax, 0xc614c09
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x1d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x1e], cl
and al, cl
mov byte [esp + 0x1f], al
mov cl, byte [esp + 0x1e]
mov al, byte [esp + 0x1d]
xor al, cl
mov byte [esp + 0x1c], al
mov cl, byte [esp + 0x1c]
mov al, byte [esp + 0x1f]
or al, cl
mov byte [esp + 0x1b], al
mov al, byte [esp + 0x1b]
test al, 1
jne 0x10040359
jmp 0x100403b2
jmp 0x1004035e
add esp, 0x15c
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1005e368]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, 0xfe4da126
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [eax], 1
jmp 0x1003f9fc
mov eax, dword [0x1005e368]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0xfe4da126
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x1003fc63
jmp 0x100401bc
jmp 0x1003fa93
mov eax, dword [0x1005e368]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0xfe4da126
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1003fd94
jmp 0x1003ffe3
jmp 0x10040239