Function at 0x10040830
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, 0x108
mov eax, dword [esp + 0x11c]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x118]
mov dword [esp + 0x100], eax
mov eax, dword [0x10064c80]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x104]
mov ecx, dword [0x10064c7c]
mov dword [esp + 0xf4], ecx
mov ecx, eax
add ecx, 0xba52bb06
sub ecx, 1
sub ecx, 0xba52bb06
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0xfb], al
mov eax, dword [esp + 0xf4]
cmp eax, 0xa
setl al
mov byte [esp + 0xf3], al
mov al, byte [esp + 0xfb]
xor al, 0xff
mov byte [esp + 0xf2], al
mov al, byte [esp + 0xf3]
mov ah, byte [esp + 0xfb]
mov ch, byte [esp + 0xf2]
mov dl, al
xor dl, 0xff
mov byte [esp + 0xec], dl
mov cl, 1
xor cl, 0
mov byte [esp + 0xed], cl
and ch, 0
mov byte [esp + 0xee], ch
and ah, cl
mov byte [esp + 0xef], ah
and dl, 0
mov byte [esp + 0xf0], dl
and al, cl
mov byte [esp + 0xf1], al
mov dl, byte [esp + 0xed]
mov ah, byte [esp + 0xec]
mov cl, byte [esp + 0xf2]
mov dh, byte [esp + 0xf1]
mov ch, byte [esp + 0xf0]
mov bl, byte [esp + 0xef]
mov al, byte [esp + 0xee]
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 0x10040960
jmp 0x10041159
mov eax, dword [esp + 0xfc]
add eax, 0x1a
mov dword [esp + 0xe4], eax
mov eax, dword [0x10063354]
add eax, 0x1d5ba688
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0xe8]
cmp dword [eax], 1
sete al
mov byte [esp + 0xdb], al
mov eax, dword [0x10064c80]
mov dword [esp + 0xdc], eax
mov eax, dword [0x10064c7c]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xdc]
sub eax, 0x571c551b
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xd4]
sub eax, 1
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd0]
add edx, 0x571c551b
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete dh
cmp eax, 0xa
setl ch
mov al, dh
xor al, 0xff
mov cl, ch
xor cl, 0xff
mov bl, 1
xor bl, 0
mov byte [esp + 0xcd], bl
mov dl, al
and dl, 0
and dh, bl
mov ah, cl
and ah, 0
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0xce], dl
or al, cl
xor al, 0xff
mov byte [esp + 0xcf], al
mov al, byte [esp + 0xce]
mov cl, byte [esp + 0xcf]
mov dl, byte [esp + 0xcd]
or dl, 0
and cl, dl
or al, cl
test al, 1
jne 0x10040a63
jmp 0x10041159
mov cl, byte [esp + 0xdb]
xor eax, eax
test cl, 1
mov dword [esp + 0xc8], eax
jne 0x10040b2b
jmp 0x10040a81
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x100]
mov esi, dword [esp + 0xfc]
mov edx, dword [esp + 0xe4]
mov dword [esp + 0xc0], eax
mov dl, byte [edx + eax]
mov byte [esp + 0xc7], dl
mov edi, 0x1a
xor edx, edx
div edi
mov eax, dword [esp + 0xc0]
mov edi, edx
mov dh, byte [esp + 0xc7]
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, 0xfdae4652
add eax, 1
sub eax, 0xfdae4652
cmp eax, 0x16
mov dword [esp + 0xc8], eax
jne 0x10040a81
mov eax, dword [0x10063354]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xbc]
add eax, 0x1d5ba688
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb8]
mov dword [eax], 1
jmp 0x10040b2b
mov eax, dword [0x10064c80]
mov dword [esp + 0xb0], eax
mov eax, dword [0x10064c7c]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb0]
sub eax, 0xcd49513a
sub eax, 1
add eax, 0xcd49513a
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0xa7], cl
cmp eax, 0xa
setl al
mov byte [esp + 0xa8], al
xor cl, 0xff
mov byte [esp + 0xa9], cl
xor al, 0xff
mov byte [esp + 0xaa], al
mov al, 1
xor al, 1
mov byte [esp + 0xab], al
mov al, byte [esp + 0xa9]
and al, 0xff
mov byte [esp + 0xa6], al
mov cl, byte [esp + 0xab]
mov al, byte [esp + 0xa8]
mov dl, byte [esp + 0xaa]
mov ah, byte [esp + 0xa7]
and ah, cl
mov byte [esp + 0xa3], ah
and dl, 0xff
mov byte [esp + 0xa4], dl
and al, cl
mov byte [esp + 0xa5], al
mov dl, byte [esp + 0xab]
mov ah, byte [esp + 0xaa]
mov cl, byte [esp + 0xa9]
mov dh, byte [esp + 0xa5]
mov ch, byte [esp + 0xa4]
mov bl, byte [esp + 0xa3]
mov al, byte [esp + 0xa6]
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 0x10040c49
jmp 0x1004117d
mov eax, dword [0x10064c80]
mov dword [esp + 0x94], eax
mov ecx, dword [0x10064c7c]
mov dword [esp + 0x98], ecx
sub eax, 0x726faeb6
sub eax, 1
add eax, 0x726faeb6
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x94]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x91], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x92], cl
xor al, 0xff
mov byte [esp + 0x93], al
mov cl, byte [esp + 0x91]
mov ah, byte [esp + 0x93]
mov al, byte [esp + 0x92]
xor al, 0xff
mov byte [esp + 0x8c], al
mov dl, 1
xor dl, 0
mov byte [esp + 0x8d], dl
and ah, 0
mov byte [esp + 0x8e], ah
and cl, dl
mov byte [esp + 0x8f], cl
and al, 0
mov byte [esp + 0x90], al
mov cl, byte [esp + 0x8f]
mov al, byte [esp + 0x8e]
mov ah, byte [esp + 0x8d]
mov dl, byte [esp + 0x92]
and dl, ah
mov byte [esp + 0x8a], dl
or al, cl
mov byte [esp + 0x8b], al
mov al, byte [esp + 0x8d]
mov dl, byte [esp + 0x8c]
mov cl, byte [esp + 0x93]
mov ah, byte [esp + 0x8b]
mov dh, byte [esp + 0x8a]
mov ch, byte [esp + 0x90]
or ch, dh
xor ah, ch
mov byte [esp + 0x87], ah
or cl, dl
xor cl, 0xff
mov byte [esp + 0x88], cl
or al, 0
mov byte [esp + 0x89], al
mov al, byte [esp + 0x87]
mov dl, byte [esp + 0x89]
mov cl, byte [esp + 0x88]
and cl, dl
or al, cl
test al, 1
jne 0x10040d98
jmp 0x1004117d
mov eax, dword [0x10064c80]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [0x10064c7c]
mov dword [esp + 0x78], ecx
add eax, 0x3ac91158
sub eax, 1
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
sub ecx, 0x3ac91158
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x77], al
mov ah, byte [esp + 0x77]
mov ecx, dword [esp + 0x78]
cmp ecx, 0xa
setl dl
mov al, ah
xor al, 0xff
mov byte [esp + 0x73], al
mov cl, dl
xor cl, 0xff
mov byte [esp + 0x74], cl
mov ch, 1
xor ch, 1
mov byte [esp + 0x75], 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 + 0x76], al
mov cl, byte [esp + 0x74]
mov al, byte [esp + 0x73]
or al, cl
mov byte [esp + 0x72], al
mov al, byte [esp + 0x76]
mov dl, byte [esp + 0x75]
mov cl, byte [esp + 0x72]
xor cl, 0xff
or dl, 1
and cl, dl
or al, cl
test al, 1
jne 0x10040e4e
jmp 0x10041178
mov eax, dword [0x10064c80]
mov dword [esp + 0x64], eax
mov eax, dword [0x10064c7c]
mov dword [esp + 0x68], eax
xor eax, eax
sub eax, 1
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
add eax, ecx
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
imul eax, edx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x5d], al
cmp ecx, 0xa
setl cl
mov byte [esp + 0x5e], cl
and al, cl
mov byte [esp + 0x5f], al
mov cl, byte [esp + 0x5e]
mov al, byte [esp + 0x5d]
xor al, cl
mov byte [esp + 0x5c], al
mov cl, byte [esp + 0x5c]
mov al, byte [esp + 0x5f]
or al, cl
mov byte [esp + 0x5b], al
mov al, byte [esp + 0x5b]
test al, 1
jne 0x10040ed0
jmp 0x10041178
mov eax, dword [0x10064c80]
mov dword [esp + 0x4c], eax
mov ecx, dword [0x10064c7c]
mov dword [esp + 0x50], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x47], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x48], al
xor cl, 0xff
mov byte [esp + 0x49], cl
xor al, 0xff
mov byte [esp + 0x4a], al
mov al, 1
xor al, 1
mov byte [esp + 0x4b], al
mov cl, byte [esp + 0x4a]
mov al, byte [esp + 0x49]
mov bl, byte [esp + 0x4b]
mov ch, byte [esp + 0x48]
mov dh, byte [esp + 0x47]
mov dl, al
and dl, 0xff
and dh, bl
mov ah, cl
and ah, 0xff
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x45], dl
or al, cl
xor al, 0xff
mov byte [esp + 0x46], al
mov al, byte [esp + 0x4b]
or al, 1
mov byte [esp + 0x44], al
mov al, byte [esp + 0x45]
mov dl, byte [esp + 0x44]
mov cl, byte [esp + 0x46]
and cl, dl
or al, cl
mov byte [esp + 0x43], al
mov al, byte [esp + 0x43]
test al, 1
jne 0x10040f8c
jmp 0x10041182
mov eax, dword [0x10064c80]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x10064c7c]
mov dword [esp + 0x34], ecx
sub eax, 0x9a69eea9
sub eax, 1
add eax, 0x9a69eea9
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x34]
cmp eax, 0xa
setl al
mov byte [esp + 0x32], al
mov cl, byte [esp + 0x32]
mov al, byte [esp + 0x33]
and al, cl
mov byte [esp + 0x31], al
mov al, byte [esp + 0x31]
mov dl, byte [esp + 0x32]
mov cl, byte [esp + 0x33]
xor cl, dl
or al, cl
test al, 1
jne 0x10041005
jmp 0x10041187
mov eax, dword [0x10064c80]
mov dword [esp + 0x24], eax
mov ecx, dword [0x10064c7c]
mov dword [esp + 0x28], ecx
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
mov byte [esp + 0x1f], cl
cmp eax, 0xa
setl al
mov byte [esp + 0x20], al
xor cl, 0xff
mov byte [esp + 0x21], cl
xor al, 0xff
mov byte [esp + 0x22], al
mov al, 1
xor al, 1
mov byte [esp + 0x23], al
mov al, byte [esp + 0x22]
mov dl, byte [esp + 0x23]
mov cl, byte [esp + 0x1f]
mov ah, byte [esp + 0x21]
and ah, 0xff
mov byte [esp + 0x1c], ah
and cl, dl
mov byte [esp + 0x1d], cl
and al, 0xff
mov byte [esp + 0x1e], al
mov cl, byte [esp + 0x22]
mov al, byte [esp + 0x21]
mov ah, byte [esp + 0x1e]
mov dh, byte [esp + 0x1d]
mov dl, byte [esp + 0x1c]
mov bl, byte [esp + 0x23]
mov ch, byte [esp + 0x20]
and ch, bl
or dl, dh
or ah, ch
xor dl, ah
mov byte [esp + 0x1a], dl
or al, cl
mov byte [esp + 0x1b], al
mov cl, byte [esp + 0x23]
mov al, byte [esp + 0x1b]
xor al, 0xff
or cl, 1
and al, cl
mov byte [esp + 0x19], al
mov cl, byte [esp + 0x19]
mov al, byte [esp + 0x1a]
or al, cl
test al, 1
jne 0x100410d9
jmp 0x10041187
mov eax, dword [0x10064c80]
mov dword [esp + 0x10], eax
mov eax, dword [0x10064c7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
sub ecx, 1
add eax, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
imul eax, ecx
and eax, 1
cmp eax, 0
sete al
mov byte [esp + 0xb], al
mov al, byte [esp + 0xb]
mov ecx, dword [esp + 0x14]
cmp ecx, 0xa
setl cl
mov byte [esp + 9], cl
and al, cl
mov byte [esp + 0xa], al
mov cl, byte [esp + 9]
mov al, byte [esp + 0xb]
xor al, cl
mov byte [esp + 8], al
mov cl, byte [esp + 8]
mov al, byte [esp + 0xa]
or al, cl
test al, 1
jne 0x1004114f
jmp 0x10041182
add esp, 0x108
pop esi
pop edi
pop ebx
ret
mov eax, dword [0x10063354]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add eax, 0x1d5ba688
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
jmp 0x10040960
jmp 0x10040e4e
jmp 0x10040c49
jmp 0x10040f8c
jmp 0x10041005