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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov ebp, dword [esp + 0xa4]
mov dword [esp + 8], 0x9ed6a2a1
mov dword [esp + 0xc], 0xa2a0aca8
lea ebx, [esp + 0x10]
mov byte [esp + 0x10], 0x48
mov dword [esp + 0x11], 0
lea eax, [esp + 8]
mov edi, 0x6f
nop
nop
nop
nop
nop
movzx edx, byte [eax]
lea esi, [edx + edx]
not esi
add esi, edx
and esi, 0xdf
and edx, 0x20
or edx, esi
mov ecx, edi
and ecx, 0x4f
xor ecx, edx
add cl, 0x30
mov byte [eax], cl
inc eax
dec edi
cmp edi, 0x62
jne 0x40e960
lea eax, [esp + 0x87]
lea esi, [esp + 8]
mov edx, esi
mov ecx, 2
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x8f]
xor edx, edx
xor ecx, ecx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
movzx ecx, byte [esp + 0x10]
mov byte [esp + 0x8f], cl
mov dword [esp + 8], 0x19ab1b51
mov dword [esp + 0xc], 0x65da67aa
mov dword [esp + 0x10], 0x61d063cf
mov dword [esp + 0x14], 0x6d1d6fdc
mov dword [esp + 0x18], 0x69ed6b30
mov dword [esp + 0x1c], 0x75dd77d8
mov dword [esp + 0x20], 0x71127332
mov dword [esp + 0x24], 0x7dce7fdf
mov dword [esp + 0x28], 0x79ce7bcc
mov dword [esp + 0x2c], 0x45eb47cf
mov dword [esp + 0x30], 0x41fe43eb
mov dword [esp + 0x34], 0x4dff4ff7
mov dword [esp + 0x38], 0x493b4bfe
mov dword [esp + 0x3c], 0x552557f0
mov dword [esp + 0x40], 0x51eb53ed
mov dword [esp + 0x44], 0x5d2d5fe9
mov dword [esp + 0x48], 0x59eb5bf6
mov dword [esp + 0x4c], 0xa515a7e6
mov dword [esp + 0x50], 0xa119a3d7
mov dword [esp + 0x54], 0xad1aaf1e
mov dword [esp + 0x58], 0xa918ab07
mov dword [esp + 0x5c], 0xb507b705
mov dword [esp + 0x60], 0xb119b318
mov dword [esp + 0x64], 0xbdadbf1c
mov dword [esp + 0x68], 0xb9babbaa
mov word [esp + 0x6c], 0
nop
mov ecx, edx
add cl, 0x3b
xor cl, byte [esp + edx + 8]
add cl, 0xd9
mov byte [esp + edx + 8], cl
inc edx
cmp edx, 0x66
jne 0x40ea90
mov dword [esp + 0x74], 0xc1a5c795
mov dword [esp + 0x78], 0xcda9c350
mov dword [esp + 0x7c], 0xcfcc
mov byte [esp + 0x80], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x51
xor dl, byte [esp + ecx + 0x74]
add dl, 0x6b
mov byte [esp + ecx + 0x74], dl
inc ecx
cmp ecx, 0xd
jne 0x40ead0
lea ecx, [esp + 4]
lea edx, [esp + 0x74]
push 0
push ecx
push 8
push eax
push esi
push edx
push ebp
call fcn.0040f490
add esp, 0x1c
test al, al
je 0x40ec14
mov word [esp + 8], 0x565b
mov byte [esp + 0xa], 0xce
mov word [esp + 0xb], 0
mov edx, 0xedb29e52
nop
movzx eax, byte [esp + edx + 0x124d61b6]
mov ebx, eax
mov edi, eax
and ebx, edx
mov eax, ebx
or al, 0xfd
inc al
mov ecx, ebx
and cl, 0x5d
mul cl
mov ecx, eax
mov eax, edi
add cl, al
mov eax, ebx
shr al, 1
and al, 1
or bl, 2
mul bl
add al, al
sub cl, al
movzx eax, cl
add eax, edx
add al, 0x66
mov byte [esp + edx + 0x124d61b6], al
inc edx
cmp edx, 0xedb29e57
jne 0x40eb20
xor ecx, ecx
mov eax, dword [esp + 4]
nop
nop
nop
movzx edx, byte [eax + ecx]
mov dh, byte [esp + ecx + 8]
test dl, dl
je 0x40eb81
inc ecx
cmp dl, dh
je 0x40eb70
mov bl, 1
cmp dl, dh
je 0x40edc1
mov dword [esp + 8], 0xa59790a1
mov dword [esp + 0xc], 0x25b4b6af
mov dword [esp + 0x10], 0
xor ecx, ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, ecx
and edi, 0x16
mov ebx, edx
xor ebx, 0xcb
add ebx, edi
xor bl, byte [esp + edx + 8]
add bl, 9
mov byte [esp + edx + 8], bl
inc edx
add ecx, 2
cmp edx, 0xc
jne 0x40ebb0
movzx ebx, byte [esp + 8]
mov ecx, eax
test bl, bl
je 0x40ec1b
mov edx, esi
mov edi, eax
mov ecx, eax
jmp 0x40ebf7
movzx ebx, byte [edx]
test bl, bl
je 0x40ec1b
mov bh, byte [edi]
test bh, bh
je 0x40edbf
inc edi
inc edx
lea ebp, [ecx + 1]
cmp bh, bl
je 0x40ec0e
mov ecx, ebp
mov edi, ebp
je 0x40ebf0
mov edx, esi
jmp 0x40ebf0
xor ebx, ebx
jmp 0x40edca
test ecx, ecx
je 0x40edbf
mov dword [esp], eax
mov dword [esp + 8], 0x1e110412
mov dword [esp + 0xc], 0x7101c127
mov dword [esp + 0x10], 0xd9dc0a0d
mov dword [esp + 0x14], 0x7a0e1876
mov dword [esp + 0x18], 0xf1d4300b
mov byte [esp + 0x1c], 0
mov ecx, 0x610935dc
mov edx, 0x9ef6cb23
nop
nop
nop
movzx edi, byte [esp + ecx - 0x610935d4]
lea ebx, [ecx - 0x33]
lea esi, [edx + 0x61093533]
xor esi, ebx
and esi, edi
xor esi, ebx
not esi
and esi, ebx
mov ebx, esi
and ebx, 2
mov ebp, esi
or ebp, 0xfffffffd
inc ebp
mov eax, esi
and eax, 0x610935fd
imul eax, ebp
or esi, 2
imul esi, ebx
lea ebx, [eax + edi]
sub ebx, esi
add ebx, ecx
sub esi, eax
sub esi, edi
add esi, edx
and esi, 0x80
and ebx, 0x7f
sub ebx, esi
mov byte [esp + ecx - 0x610935d4], bl
inc ecx
dec edx
cmp ecx, 0x610935f1
jne 0x40ec60
movzx edx, byte [esp + 8]
mov eax, dword [esp]
mov ecx, eax
test dl, dl
je 0x40ed04
lea ebp, [esp + 8]
mov esi, ebp
mov edi, eax
mov ecx, eax
jmp 0x40ece7
movzx edx, byte [esi]
test dl, dl
je 0x40ed04
mov dh, byte [edi]
test dh, dh
je 0x40edbf
inc edi
inc esi
lea ebx, [ecx + 1]
cmp dh, dl
je 0x40ecfe
mov ecx, ebx
mov edi, ebx
je 0x40ece0
mov esi, ebp
jmp 0x40ece0
test ecx, ecx
je 0x40edbf
mov edi, ecx
mov dword [esp + 8], 0x2ae9c2
mov edx, 0x47
mov esi, 0x4ef6dab8
movzx eax, byte [esp + edx - 0x3f]
mov ecx, edx
xor ecx, esi
and ecx, eax
xor ecx, esi
lea eax, [ecx + ecx]
not eax
add eax, ecx
mov ebx, eax
and ebx, 0x1c
add ebx, ebx
xor eax, 0x63
sub ebx, eax
mov byte [esp + edx - 0x3f], bl
inc edx
dec esi
cmp edx, 0x4b
jne 0x40ed20
mov ecx, edi
add ecx, 0x13
movzx ebx, byte [esp + 8]
test bl, bl
je 0x40ed90
lea esi, [esp + 8]
mov edi, esi
mov edx, ecx
mov dword [esp + 0x70], ecx
mov eax, dword [esp]
jmp 0x40ed77
movzx ebx, byte [edi]
test bl, bl
je 0x40ed94
mov bh, byte [ecx]
test bh, bh
je 0x40edbf
inc ecx
inc edi
lea ebp, [edx + 1]
cmp bh, bl
je 0x40ed8a
mov edx, ebp
mov ecx, ebp
je 0x40ed70
mov edi, esi
jmp 0x40ed70
mov edx, ecx
jmp 0x40ed9c
test edx, edx
mov ecx, dword [esp + 0x70]
je 0x40edbf
mov byte [0x451964], 1
push edx
push ecx
push 0x100
push 0x451966
call fcn.0040e690
add esp, 0x10
mov eax, dword [esp + 4]
mov bl, 1
jmp 0x40edc1
xor ebx, ebx
push eax
call fcn.0043f710
add esp, 4
mov eax, ebx
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret