Function at 0x10046810
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, 0x104
mov eax, dword [esp + 0x118]
mov dword [esp + 0xf8], eax
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xfc], ecx
add eax, 0x17
mov dword [esp + 0x100], eax
mov eax, dword [0x10069340]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0xf4]
add eax, 0x91cdde44
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xec]
cmp eax, 1
sete al
mov byte [esp + 0xeb], al
mov cl, byte [esp + 0xeb]
xor eax, eax
test cl, 1
mov dword [esp + 0xe4], eax
jne 0x1004694a
jmp 0x100468a0
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xfc]
mov esi, dword [esp + 0xf8]
mov edx, dword [esp + 0x100]
mov dword [esp + 0xdc], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xe3], dl
mov edi, 0x17
xor edx, edx
div edi
mov eax, dword [esp + 0xdc]
mov edi, edx
mov dh, byte [esp + 0xe3]
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, 0x3537909
add eax, 1
sub eax, 0x3537909
cmp eax, 7
mov dword [esp + 0xe4], eax
jne 0x100468a0
mov eax, dword [0x10069340]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xd8]
add eax, 0x91cdde44
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xd4]
mov dword [eax], 1
jmp 0x1004694a
mov eax, dword [0x1006acb0]
mov dword [esp + 0xd0], eax
mov eax, dword [0x1006acac]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
mov edx, ecx
sub edx, 0x6a171ab1
sub edx, 1
add edx, 0x6a171ab1
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0xca], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xcb], al
mov cl, byte [esp + 0xcb]
mov ah, byte [esp + 0xca]
mov dl, ah
xor dl, 0xff
mov byte [esp + 0xc5], dl
mov al, cl
xor al, 0xff
mov byte [esp + 0xc6], al
mov ch, 1
xor ch, 1
mov byte [esp + 0xc7], ch
and dl, 0xff
and ah, ch
and al, 0xff
and cl, ch
or dl, ah
mov byte [esp + 0xc8], dl
or al, cl
mov byte [esp + 0xc9], al
mov al, byte [esp + 0xc7]
mov dl, byte [esp + 0xc6]
mov cl, byte [esp + 0xc5]
mov ch, byte [esp + 0xc9]
mov ah, byte [esp + 0xc8]
xor ah, ch
mov byte [esp + 0xc2], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0xc3], cl
or al, 1
mov byte [esp + 0xc4], al
mov al, byte [esp + 0xc2]
mov dl, byte [esp + 0xc4]
mov cl, byte [esp + 0xc3]
and cl, dl
or al, cl
test al, 1
jne 0x10046a54
jmp 0x10046fb3
mov eax, dword [0x1006acb0]
mov dword [esp + 0xb4], eax
mov ecx, dword [0x1006acac]
mov dword [esp + 0xb8], ecx
add eax, 0xbb7c926f
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xbc]
sub eax, 1
sub eax, 0xbb7c926f
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
imul eax, ecx
and eax, 1
mov dword [esp + 0xac], eax
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0xac]
cmp eax, 0
sete al
mov byte [esp + 0xa9], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0xaa], cl
and al, cl
mov byte [esp + 0xab], al
mov al, byte [esp + 0xab]
mov dl, byte [esp + 0xaa]
mov cl, byte [esp + 0xa9]
xor cl, dl
or al, cl
mov byte [esp + 0xa8], al
mov al, byte [esp + 0xa8]
test al, 1
jne 0x10046b0f
jmp 0x10046fb3
mov eax, dword [0x1006acb0]
mov dword [esp + 0x9c], eax
mov ecx, dword [0x1006acac]
mov dword [esp + 0xa0], ecx
add eax, 0xfe65809d
sub eax, 1
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xa4]
sub eax, 0xfe65809d
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
imul eax, ecx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x94]
and eax, 1
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0xa0]
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
test al, 1
jne 0x10046bca
jmp 0x10046da2
mov eax, dword [0x1006acb0]
mov dword [esp + 0x84], eax
mov eax, dword [0x1006acac]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x84]
xor edx, edx
sub edx, 1
mov ecx, eax
add ecx, edx
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x83], al
mov eax, dword [esp + 0x88]
cmp eax, 0xa
setl al
mov byte [esp + 0x82], al
mov cl, byte [esp + 0x82]
mov al, byte [esp + 0x83]
mov dl, al
and dl, cl
mov byte [esp + 0x80], dl
xor al, cl
mov byte [esp + 0x81], al
mov cl, byte [esp + 0x81]
mov al, byte [esp + 0x80]
or al, cl
mov byte [esp + 0x7f], al
mov al, byte [esp + 0x7f]
test al, 1
jne 0x10046c60
jmp 0x10046da2
mov eax, dword [0x1006acb0]
mov dword [esp + 0x70], eax
mov ecx, dword [0x1006acac]
mov dword [esp + 0x74], ecx
add eax, 0xd3d4caef
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
sub eax, 1
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
sub ecx, 0xd3d4caef
imul eax, ecx
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x68]
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x62], cl
mov dl, al
xor dl, 0xff
mov byte [esp + 0x63], dl
xor cl, 0xff
mov byte [esp + 0x64], cl
mov cl, 1
xor cl, 0
mov byte [esp + 0x65], cl
and dl, 0
mov byte [esp + 0x66], dl
and al, cl
mov byte [esp + 0x67], al
mov ah, byte [esp + 0x67]
mov al, byte [esp + 0x66]
mov ch, byte [esp + 0x65]
mov dl, byte [esp + 0x62]
mov cl, byte [esp + 0x64]
and cl, 0
and dl, ch
or al, ah
or cl, dl
xor al, cl
mov byte [esp + 0x61], al
mov al, byte [esp + 0x61]
mov dl, byte [esp + 0x65]
mov ah, byte [esp + 0x64]
mov cl, byte [esp + 0x63]
or cl, ah
xor cl, 0xff
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x10046d29
jmp 0x10046fb8
mov eax, dword [0x1006acb0]
mov dword [esp + 0x54], eax
mov ecx, dword [0x1006acac]
mov dword [esp + 0x58], ecx
sub eax, 0x1d5fd32
sub eax, 1
add eax, 0x1d5fd32
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
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 dl, byte [esp + 0x52]
mov cl, byte [esp + 0x53]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x51], al
mov al, byte [esp + 0x51]
test al, 1
jne 0x10046d98
jmp 0x10046fb8
add esp, 0x104
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x1006acb0]
mov dword [esp + 0x44], eax
mov eax, dword [0x1006acac]
mov dword [esp + 0x48], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
mov ecx, eax
add ecx, edx
imul eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
and eax, 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
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 + 0x3b], al
mov al, byte [esp + 0x3b]
test al, 1
jne 0x10046e0c
jmp 0x10046fbd
mov eax, dword [0x1006acb0]
mov dword [esp + 0x34], eax
mov eax, dword [0x1006acac]
mov dword [esp + 0x2c], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
imul eax, ecx
and eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
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 0x10046e70
jmp 0x10046fc2
mov eax, dword [0x1006acb0]
mov dword [esp + 0x18], eax
mov ecx, dword [0x1006acac]
mov dword [esp + 0x1c], ecx
add eax, 0x38ebeb98
sub eax, 1
sub eax, 0x38ebeb98
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
imul eax, ecx
and eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp eax, 0
sete al
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x1c]
cmp eax, 0xa
setl al
mov byte [esp + 0x12], al
mov dl, byte [esp + 0x12]
mov cl, byte [esp + 0x13]
mov al, cl
and al, dl
xor cl, dl
or al, cl
mov byte [esp + 0x11], al
mov al, byte [esp + 0x11]
test al, 1
jne 0x10046ee7
jmp 0x10046fc2
mov eax, dword [0x1006acb0]
mov ecx, dword [0x1006acac]
mov dword [esp + 0xc], ecx
mov ecx, eax
sub ecx, 0x5a1c27b8
sub ecx, 1
add ecx, 0x5a1c27b8
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x10], al
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp ecx, 0xa
setl cl
mov byte [esp + 0xa], cl
xor al, 0xff
mov byte [esp + 0xb], al
mov cl, byte [esp + 0x10]
mov ah, byte [esp + 0xb]
mov al, byte [esp + 0xa]
xor al, 0xff
mov byte [esp + 5], al
mov dl, 1
xor dl, 0
mov byte [esp + 6], dl
and ah, 0
mov byte [esp + 7], ah
and cl, dl
mov byte [esp + 8], cl
and al, 0
mov byte [esp + 9], al
mov cl, byte [esp + 6]
mov al, byte [esp + 0xa]
and al, cl
mov byte [esp + 4], al
mov cl, byte [esp + 8]
mov al, byte [esp + 7]
or al, cl
mov byte [esp + 3], al
mov dl, byte [esp + 6]
mov ah, byte [esp + 5]
mov cl, byte [esp + 0xb]
mov al, byte [esp + 3]
mov dh, byte [esp + 4]
mov ch, byte [esp + 9]
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 0x10046fae
jmp 0x10046fbd
jmp 0x10046bca
jmp 0x10046a54
jmp 0x10046d29
jmp 0x10046e0c
jmp 0x10046e70