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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov esi, 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 0x414f60
mov edx, eax
and edx, 0x36
mov ebx, dword [esi + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x414f80
sar eax, 1
xor eax, 0x1b
add eax, edx
sar ecx, 1
add ecx, eax
jns 0x414f9f
mov ecx, 0xffffffff
jmp 0x414fa1
add ecx, ecx
push ecx
call fcn.00408f60
add esp, 4
mov dword [esp + 0xc], 0xb1428f70
mov dword [esp + 0x10], 0xb557b321
mov dword [esp + 0x14], 0xb95ab757
mov dword [esp + 0x18], 0xbd7dbb98
mov dword [esp + 0x1c], 0xa12abf24
mov dword [esp + 0x20], 0xa54ca347
mov dword [esp + 0x24], 0xa94da731
mov dword [esp + 0x28], 0xad44ab39
mov dword [esp + 0x2c], 0x515baf8c
mov dword [esp + 0x30], 0x55c653b7
mov dword [esp + 0x34], 0x59bd57c0
mov dword [esp + 0x38], 0x5db35bb6
mov dword [esp + 0x3c], 0x41a25fc9
mov word [esp + 0x40], 0x4340
mov dword [esp + 0x42], 0
mov byte [esp + 0x46], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x3a
ja 0x415070
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
add edx, 0xa138025d
xor edx, ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0x2f
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], dl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x3b
jb 0x415040
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov edi, eax
test dx, dx
je 0x4150a1
add ecx, 2
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x415090
mov word [edi], 0
movzx ecx, word [esp + 0xc]
test cx, cx
je 0x4150d1
lea edx, [esp + 0xe]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4150c0
mov word [edi], 0
movzx ecx, word [ebx]
test cx, cx
mov dword [esp + 8], eax
je 0x415101
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x4150f0
mov word [edi], 0
mov ebp, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x415110
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 0x415130
mov ebx, dword [esi]
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 0x415150
mov edi, eax
sar edi, 1
sar ecx, 1
sar edx, 1
xor edi, 1
and eax, 2
add eax, ecx
add eax, edi
lea ecx, [edx + eax]
add ecx, 0xd
test ecx, ecx
jns 0x41517e
mov eax, 0xffffffff
jmp 0x415187
add eax, edx
lea eax, [eax*2 + 0x1a]
push eax
call fcn.00408f60
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x4151b2
add ebp, 2
mov eax, edi
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x4151a0
mov word [eax], 0x2f
mov dword [esp + 0xc], 0x31f93f0d
mov dword [esp + 0x10], 0x35c633b8
mov dword [esp + 0x14], 0xc9c837d3
mov dword [esp + 0x18], 0xcd31cb3d
mov dword [esp + 0x1c], 0xc130cf3d
mov dword [esp + 0x20], 0xc5f3c335
mov dword [esp + 0x24], 0xc7c4
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1b
ja 0x415230
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0x140e2675
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0xb7
mov edx, dword [esp]
mov byte [esp + edx + 0xc], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1c
jb 0x415200
add eax, 2
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x415263
add ecx, 2
mov esi, dword [esp + 8]
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 0x415250
jmp 0x415267
mov esi, dword [esp + 8]
mov word [eax], 0
movzx ecx, word [esp + 0xc]
test cx, cx
je 0x415291
lea edx, [esp + 0xe]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x415280
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x4152c1
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 0x4152b0
mov word [eax], 0
mov dword [esp + 0xc], 0xe3e2e1da
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x41531e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0xc7620ba8
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xb8
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x4152f0
lea eax, [esp + 0xc]
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x78]
call fcn.004178e0
add esp, 0x20
mov ebx, eax
jmp dword [0x43dbac]