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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
mov ecx, dword [ebp + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x41e340
sar eax, 1
mov ebx, dword [edi + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41e360
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x41e37e
mov eax, 0xffffffff
jmp 0x41e387
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.0040c4b0
add esp, 4
mov esi, eax
mov dword [esp + 8], 0x69a66bd8
mov dword [esp + 0xc], 0x6dcb6ff9
mov dword [esp + 0x10], 0x51fe53cb
mov dword [esp + 0x14], 0x559d57b0
mov dword [esp + 0x18], 0x59ce5bcc
mov dword [esp + 0x1c], 0x5dcc5ff3
mov dword [esp + 0x20], 0x41ed43c9
mov dword [esp + 0x24], 0x45d447d1
mov dword [esp + 0x28], 0x49ff4ba4
mov dword [esp + 0x2c], 0x4dda4fe3
mov dword [esp + 0x30], 0x319d33d8
mov dword [esp + 0x34], 0x359f37a2
mov dword [esp + 0x38], 0x39863ba1
mov word [esp + 0x3c], 0x3f38
mov dword [esp + 0x3e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x39
ja 0x41e463
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x4af50d17
and eax, 0xcaf50d17
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
not ecx
or eax, ecx
sub ecx, eax
lea eax, [edx + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x8d
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x3a
jb 0x41e420
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x41e491
add ecx, 2
mov eax, esi
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 0x41e480
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41e4c1
lea edx, [esp + 0xa]
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 0x41e4b0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41e4f1
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 0x41e4e0
mov word [eax], 0
mov ebp, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x41e500
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41e520
mov ebx, dword [edi]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x41e540
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x41e564
mov eax, 0xffffffff
jmp 0x41e56d
add ecx, edx
lea eax, [ecx*2 + 0x1c]
mov dword [esp + 0x44], esi
push eax
call fcn.0040c4b0
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x41e5a2
add ebp, 2
mov eax, edi
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x41e590
mov word [eax], 0x2f
mov dword [esp + 8], 0xe921ebd5
mov dword [esp + 0xc], 0xed1aef10
mov dword [esp + 0x10], 0xf100f307
mov dword [esp + 0x14], 0xf519f705
mov dword [esp + 0x18], 0xf908fb05
mov dword [esp + 0x1c], 0xfdcfff0d
mov dword [esp + 0x20], 0x83fc
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1b
ja 0x41e633
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov ebp, ecx
xor ebp, 0xb475c327
add ecx, ecx
and ecx, 0x68eb864e
mov esi, ecx
and esi, ebp
xor ecx, ebp
lea ecx, [ecx + esi*2]
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0x3d
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1c
jb 0x41e5f0
add eax, 2
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x41e661
add ecx, 2
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 0x41e650
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41e691
lea edx, [esp + 0xa]
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 0x41e680
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41e6c1
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 0x41e6b0
mov word [eax], 0
mov dword [esp + 8], 0x2126277e
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x41e73b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov eax, dword [esp]
movzx eax, byte [esp + eax + 8]
mov edx, ecx
xor edx, 0xde5e8c39
and ecx, 0xde5e8c39
lea ecx, [edx + ecx*2]
mov edx, ecx
and edx, eax
mov esi, ecx
xor esi, eax
not eax
or ecx, eax
sub eax, ecx
add eax, edx
lea eax, [esi + eax*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xe3
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x41e6f0
lea eax, [esp + 8]
push 0
push 0
push 0
push 0xc00000
push eax
mov esi, dword [esp + 0x58]
push esi
push edi
push dword [esp + 0x78]
call fcn.004215b0
add esp, 0x20
mov ebx, eax
jmp dword [0x44a164]