Function at 0x421860
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x88
mov eax, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
mov eax, 0xfffffffe
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x421880
mov ecx, 0xfffffffe
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x421890
sar eax, 1
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x3f
mov edi, 0xffffffff
test edx, edx
jns 0x4218b5
mov eax, 0xffffffff
jmp 0x4218be
add eax, ecx
lea eax, [eax*2 + 0x7e]
push eax
call fcn.00408590
add esp, 4
mov dword [esp], eax
mov dword [esp + 0x4c], 0x57eb49ea
mov dword [esp + 0x50], 0x53ff55eb
mov dword [esp + 0x54], 0x5f1151ee
mov dword [esp + 0x58], 0x5be85def
mov dword [esp + 0x5c], 0xa70b59e4
mov dword [esp + 0x60], 0xa31ea51c
mov dword [esp + 0x64], 0xaf02a1e9
mov dword [esp + 0x68], 0xabd6ade9
mov dword [esp + 0x6c], 0xb7cfa9d6
mov dword [esp + 0x70], 0xb3cbb5c8
mov dword [esp + 0x74], 0xbfc5b1ca
mov dword [esp + 0x78], 0xbbc3bdc2
mov dword [esp + 0x7c], 0x8722b9c5
mov dword [esp + 0x80], 0x832e852d
mov dword [esp + 0x84], 0x8f8e812e
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, eax
and ecx, 0x2c
mov ebx, eax
and ebx, 2
mov edx, ebx
xor edx, 2
imul edx, ecx
or ecx, 2
imul ecx, ebx
mov esi, eax
or esi, 0x91
mov ebx, edi
or ebx, 0x2e
and ebx, esi
not ebx
add ebx, edx
add ebx, ecx
xor bl, byte [esp + eax + 0x4c]
add bl, 0xda
mov byte [esp + eax + 0x4c], bl
inc eax
dec edi
cmp eax, 0x3c
jne 0x421950
mov dword [esp + 4], 0xd17bcf10
mov dword [esp + 8], 0xd563d364
mov dword [esp + 0xc], 0xd975d766
mov dword [esp + 0x10], 0xdd7ddb71
mov dword [esp + 0x14], 0xa17adf00
mov dword [esp + 0x18], 0xa504a307
mov dword [esp + 0x1c], 0xa911a707
mov dword [esp + 0x20], 0xad1eab04
mov dword [esp + 0x24], 0xb101af70
mov dword [esp + 0x28], 0xb508b301
mov dword [esp + 0x2c], 0xb911b75b
mov dword [esp + 0x30], 0xbd0ebb00
mov dword [esp + 0x34], 0x8110bf1b
mov dword [esp + 0x38], 0x85298335
mov dword [esp + 0x3c], 0x89288735
mov dword [esp + 0x40], 0x8d678b65
mov dword [esp + 0x44], 0x918e8f61
mov byte [esp + 0x48], 0
xor eax, eax
nop
nop
mov ecx, eax
add cl, 0x2d
xor cl, byte [esp + eax + 4]
add cl, 0x1f
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 0x45
jne 0x421a20
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
mov esi, dword [esp]
mov eax, esi
test dx, dx
je 0x421a71
add ecx, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421a60
mov word [eax], 0
movzx ecx, word [esp + 4]
test cx, cx
je 0x421aa1
lea edx, [esp + 6]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x421a90
mov word [eax], 0
movzx ecx, word [ebp]
test cx, cx
je 0x421ad2
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x421ac0
mov word [eax], 0
movzx ecx, word [esp + 0x4c]
test cx, cx
je 0x421b01
lea edx, [esp + 0x4e]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x421af0
mov word [eax], 0
mov eax, dword [esp + 0xa8]
mov ebx, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x421b20
sar eax, 1
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x421b40
sar ecx, 1
lea esi, [eax + ecx]
lea edx, [eax + ecx]
add edx, 0xa
lea ecx, [esi*2 + 0x14]
xor edx, 1
mov eax, dword [esp + 0xa4]
mov edi, dword [eax + 8]
mov eax, 0xfffffffe
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x421b70
and ecx, 2
add ecx, edx
sar eax, 1
add eax, ecx
jns 0x421b8d
mov eax, 0xffffffff
jmp 0x421b8f
add eax, eax
push eax
call fcn.00408590
add esp, 4
mov edi, eax
mov dword [esp + 4], 0xb1ed8ff5
mov dword [esp + 8], 0xb5deb3dc
mov dword [esp + 0xc], 0xb922b7d3
mov dword [esp + 0x10], 0xbdebbb2d
mov word [esp + 0x14], 0xbfbc
mov dword [esp + 0x16], 0
xor eax, eax
xor ebp, ebp
nop
nop
nop
movzx edx, byte [esp + ebp + 4]
mov esi, eax
and esi, 0x3a
mov ecx, ebp
xor ecx, 0xca167e1d
add ecx, esi
xor ecx, edx
mov edx, ecx
not edx
mov esi, 1
sub esi, ecx
not esi
and esi, 1
or edx, 0xfe
add edx, ecx
add edx, esi
add dl, 0x70
mov byte [esp + ebp + 4], dl
inc ebp
add eax, 2
cmp ebp, 0x16
jne 0x421bd0
movzx ecx, word [esp + 4]
mov eax, edi
test cx, cx
je 0x421c41
lea edx, [esp + 6]
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x421c30
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x421c71
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x421c60
mov word [eax], 0x5f
add eax, 2
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
movzx edx, word [ecx]
test dx, dx
je 0x421ca1
add ecx, 2
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421c90
mov word [eax], 0x5f
add eax, 2
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x421cd1
add ecx, 2
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421cc0
mov word [eax], 0
mov dword [esp + 4], 0xf7f609de
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 4]
mov esi, 1
sub esi, eax
lea ecx, [eax + 0xfe]
xor ecx, esi
and ecx, edx
xor ecx, esi
mov dl, 9
sub dl, cl
mov byte [esp + eax + 4], dl
mov ecx, eax
not ecx
or ecx, 1
add ecx, eax
xor eax, 1
lea eax, [eax + ecx*2]
add eax, 2
cmp eax, 6
jb 0x421cf0
lea eax, [esp + 4]
push 0
push 1
push 0
push eax
mov esi, dword [esp + 0x10]
push esi
push edi
push dword [esp + 0xb4]
call fcn.00421fe0
add esp, 0x1c
mov ebx, eax
jmp dword [0x446ec4]