Function at 0x1004ea80
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0xdc
mov eax, dword [esp + 0xf0]
mov dword [esp + 0xd0], eax
mov ecx, dword [esp + 0xec]
mov dword [esp + 0xd4], ecx
add eax, 0x1f
mov dword [esp + 0xd8], eax
mov eax, dword [0x10067388]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xcc]
add eax, 0x4f010f27
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xc8]
mov eax, dword [eax]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xc4]
cmp eax, 1
sete al
mov byte [esp + 0xc3], al
mov cl, byte [esp + 0xc3]
xor eax, eax
test cl, 1
mov dword [esp + 0xbc], eax
jne 0x1004efe0
jmp 0x1004eb10
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xd4]
mov esi, dword [esp + 0xd0]
mov edx, dword [esp + 0xd8]
mov dword [esp + 0xb4], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xbb], dl
mov edi, 0x1f
xor edx, edx
div edi
mov eax, dword [esp + 0xb4]
mov edi, edx
mov dh, byte [esp + 0xbb]
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
add eax, 0x6e879a44
add eax, 1
sub eax, 0x6e879a44
cmp eax, 6
mov dword [esp + 0xbc], eax
jne 0x1004eb10
mov eax, dword [0x10068c10]
mov dword [esp + 0xac], eax
mov eax, dword [0x10068c0c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xac]
add eax, 0x583f8a07
sub eax, 1
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
sub ecx, 0x583f8a07
imul eax, ecx
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa4]
and ecx, 1
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0xa3], al
mov al, byte [esp + 0xa3]
test al, 1
jne 0x1004ec15
jmp 0x1004f11d
mov eax, dword [0x10068c10]
mov ecx, dword [0x10068c0c]
mov dword [esp + 0x9c], ecx
mov ecx, eax
add ecx, 0x934430ce
sub ecx, 1
sub ecx, 0x934430ce
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0xa2], al
mov al, byte [esp + 0xa2]
mov ecx, dword [esp + 0x9c]
cmp ecx, 0xa
setl cl
mov byte [esp + 0x97], cl
xor al, 0xff
mov byte [esp + 0x98], al
xor cl, 0xff
mov byte [esp + 0x99], cl
mov cl, 1
xor cl, 1
mov byte [esp + 0x9a], cl
and al, 0xff
mov byte [esp + 0x9b], al
mov al, byte [esp + 0x99]
mov dl, byte [esp + 0x9a]
mov cl, byte [esp + 0xa2]
and cl, dl
mov byte [esp + 0x95], cl
and al, 0xff
mov byte [esp + 0x96], al
mov cl, byte [esp + 0x96]
mov ah, byte [esp + 0x95]
mov al, byte [esp + 0x9b]
mov ch, byte [esp + 0x9a]
mov dl, byte [esp + 0x97]
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x94], al
mov al, byte [esp + 0x94]
mov dl, byte [esp + 0x9a]
mov ah, byte [esp + 0x99]
mov cl, byte [esp + 0x98]
or cl, ah
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
mov byte [esp + 0x93], al
mov al, byte [esp + 0x93]
test al, 1
jne 0x1004ed2a
jmp 0x1004f165
mov eax, dword [0x10068c10]
mov dword [esp + 0x88], eax
mov eax, dword [0x10068c0c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x88]
sub eax, 0xdf2a0fc8
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
sub ecx, 1
add ecx, 0xdf2a0fc8
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x83], al
mov cl, byte [esp + 0x83]
mov eax, dword [esp + 0x8c]
cmp eax, 0xa
setl al
mov byte [esp + 0x80], al
xor cl, 0xff
mov byte [esp + 0x81], cl
xor al, 0xff
mov byte [esp + 0x82], al
mov al, 1
xor al, 0
mov byte [esp + 0x7f], al
mov dl, byte [esp + 0x7f]
mov ah, byte [esp + 0x82]
mov cl, byte [esp + 0x81]
mov dh, byte [esp + 0x80]
mov bl, byte [esp + 0x83]
mov al, cl
and al, 0
and bl, dl
mov ch, ah
and ch, 0
and dh, dl
or al, bl
or ch, dh
xor al, ch
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x1004ee01
jmp 0x1004f165
mov eax, dword [0x10068c10]
mov dword [esp + 0x70], eax
mov ecx, dword [0x10068c0c]
mov dword [esp + 0x74], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x6d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x6e], cl
and al, cl
mov byte [esp + 0x6f], al
mov cl, byte [esp + 0x6e]
mov al, byte [esp + 0x6d]
xor al, cl
mov byte [esp + 0x6c], al
mov cl, byte [esp + 0x6c]
mov al, byte [esp + 0x6f]
or al, cl
mov byte [esp + 0x6b], al
mov al, byte [esp + 0x6b]
test al, 1
jne 0x1004ee78
jmp 0x1004f142
mov eax, dword [0x10067388]
add eax, 0x4f010f27
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
mov dword [eax], 1
mov eax, dword [0x10068c10]
mov dword [esp + 0x5c], eax
mov eax, dword [0x10068c0c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5c]
sub eax, 0xcb2e694d
sub eax, 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
add eax, 0xcb2e694d
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
imul eax, ecx
and eax, 1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x50]
cmp ecx, 0
sete cl
cmp eax, 0xa
setl dl
mov al, cl
and al, dl
xor cl, dl
or al, cl
test al, 1
jne 0x1004eefa
jmp 0x1004f142
mov eax, dword [0x10068c10]
mov dword [esp + 0x44], eax
mov ecx, dword [0x10068c0c]
mov dword [esp + 0x48], ecx
add eax, 0x798bf164
sub eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
sub edx, 0x798bf164
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x3f], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x40], al
xor cl, 0xff
mov byte [esp + 0x41], cl
xor al, 0xff
mov byte [esp + 0x42], al
mov al, 1
xor al, 0
mov byte [esp + 0x43], al
mov cl, byte [esp + 0x43]
mov al, byte [esp + 0x40]
mov dl, byte [esp + 0x42]
mov ah, byte [esp + 0x3f]
mov ch, byte [esp + 0x41]
and ch, 0
mov byte [esp + 0x3b], ch
and ah, cl
mov byte [esp + 0x3c], ah
and dl, 0
mov byte [esp + 0x3d], dl
and al, cl
mov byte [esp + 0x3e], al
mov cl, byte [esp + 0x3e]
mov al, byte [esp + 0x3d]
mov ah, byte [esp + 0x3c]
mov dl, byte [esp + 0x3b]
or dl, ah
mov byte [esp + 0x39], dl
or al, cl
mov byte [esp + 0x3a], al
mov cl, byte [esp + 0x3a]
mov al, byte [esp + 0x39]
xor al, cl
mov byte [esp + 0x38], al
mov al, byte [esp + 0x38]
mov dl, byte [esp + 0x43]
mov ah, byte [esp + 0x42]
mov cl, byte [esp + 0x41]
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x1004efdb
jmp 0x1004f11d
jmp 0x1004efe0
mov eax, dword [0x10068c10]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [0x10068c0c]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x2c]
cmp eax, 0xa
setl al
mov byte [esp + 0x2a], al
mov dl, byte [esp + 0x2a]
mov cl, byte [esp + 0x2b]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x29], al
mov al, byte [esp + 0x29]
test al, 1
jne 0x1004f04d
jmp 0x1004f16a
mov eax, dword [0x10068c10]
mov dword [esp + 0x20], eax
mov eax, dword [0x10068c0c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
cmp eax, 0xa
setl al
mov byte [esp + 0x15], al
mov ah, cl
xor ah, 0xff
mov byte [esp + 0x16], ah
xor al, 0xff
mov byte [esp + 0x17], al
mov dl, 1
xor dl, 1
mov byte [esp + 0x18], dl
and ah, 0xff
mov byte [esp + 0x19], ah
and cl, dl
mov byte [esp + 0x1a], cl
and al, 0xff
mov byte [esp + 0x1b], al
mov cl, byte [esp + 0x1b]
mov ah, byte [esp + 0x1a]
mov al, byte [esp + 0x19]
mov ch, byte [esp + 0x18]
mov dl, byte [esp + 0x15]
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x14], al
mov al, byte [esp + 0x18]
mov dl, byte [esp + 0x17]
mov cl, byte [esp + 0x16]
or cl, dl
xor cl, 0xff
mov byte [esp + 0x12], cl
or al, 1
mov byte [esp + 0x13], al
mov al, byte [esp + 0x14]
mov dl, byte [esp + 0x13]
mov cl, byte [esp + 0x12]
and cl, dl
or al, cl
test al, 1
jne 0x1004f113
jmp 0x1004f16a
add esp, 0xdc
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x10067388]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add eax, 0x4f010f27
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [eax], 1
jmp 0x1004ec15
mov eax, dword [0x10067388]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x4f010f27
mov dword [esp], eax
mov eax, dword [esp]
mov dword [eax], 1
jmp 0x1004ee78
jmp 0x1004ed2a
jmp 0x1004f04d