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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov eax, dword [esp + 0xa8]
mov ebp, dword [esp + 0xa4]
mov eax, dword [eax + 4]
xor ecx, ecx
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x41be60
lea edx, [eax + ecx]
add edx, 0xfffffffe
add ecx, eax
mov esi, 1
sub esi, ecx
and esi, eax
not eax
and eax, edx
sub eax, esi
sar eax, 1
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx], 0
lea ecx, [ecx + 2]
jne 0x41be90
add eax, 0x21
lea edx, [ecx + ebp]
add edx, 0xfffffffe
add ecx, ebp
mov esi, 1
sub esi, ecx
and esi, ebp
mov ecx, ebp
not ecx
and ecx, edx
sub ecx, esi
sar ecx, 1
mov edx, ecx
and edx, eax
xor ecx, eax
lea eax, [ecx + edx*2]
add eax, 0x1e
test eax, eax
jns 0x41bed0
mov eax, 0xffffffff
jmp 0x41beda
lea eax, [ecx + edx*2]
lea eax, [eax*2 + 0x3c]
push eax
call fcn.00408770
add esp, 4
mov dword [esp], eax
mov dword [esp + 0x4c], 0x81398722
mov dword [esp + 0x50], 0x8d2d833d
mov dword [esp + 0x54], 0x89438f3e
mov dword [esp + 0x58], 0x953c8b39
mov dword [esp + 0x5c], 0x91399728
mov dword [esp + 0x60], 0x9d2e9328
mov dword [esp + 0x64], 0x99329f57
mov dword [esp + 0x68], 0x65669b5f
mov dword [esp + 0x6c], 0x619d6796
mov dword [esp + 0x70], 0x6d99639c
mov dword [esp + 0x74], 0x69976f92
mov dword [esp + 0x78], 0x75916b9a
mov dword [esp + 0x7c], 0x71d2778b
mov dword [esp + 0x80], 0x7dde73db
mov dword [esp + 0x84], 0x797e7fde
mov byte [esp + 0x88], 0
mov eax, 0x316bf261
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x316bf215]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0x1b
mov byte [esp + eax - 0x316bf215], cl
inc eax
cmp eax, 0x316bf29e
jne 0x41bf80
mov dword [esp + 4], 0x89078b28
mov dword [esp + 8], 0x85378704
mov dword [esp + 0xc], 0x813d830a
mov dword [esp + 0x10], 0x9d259f39
mov dword [esp + 0x14], 0x99269b38
mov dword [esp + 0x18], 0x952c9723
mov dword [esp + 0x1c], 0x9119932b
mov dword [esp + 0x20], 0x6de26f24
mov dword [esp + 0x24], 0x69d96bc8
mov dword [esp + 0x28], 0x65e067d9
mov dword [esp + 0x2c], 0x61d96397
mov dword [esp + 0x30], 0x7df27fe8
mov dword [esp + 0x34], 0x79c87bc7
mov dword [esp + 0x38], 0x75c177f5
mov dword [esp + 0x3c], 0x71c073c5
mov dword [esp + 0x40], 0x4dbb4f85
mov dword [esp + 0x44], 0x494a4bb9
mov byte [esp + 0x48], 0
mov esi, 0x7c9ec863
mov ecx, 0x6c26f9c
nop
nop
movzx edx, byte [esp + esi - 0x7c9ec85f]
lea ebx, [edx + edx]
not ebx
add ebx, edx
lea edi, [ecx - 0x6c26f00]
and edi, ecx
or edi, ebx
lea ebx, [ecx - 0x3613800]
and ebx, 0x300266d
mov eax, esi
and eax, 0x3c94c892
or eax, ebx
xor eax, edx
xor eax, 0x6d
lea ebx, [esi - 0x7c9ec800]
and ebx, edx
or ebx, eax
and ebx, edi
add bl, 0x11
mov byte [esp + esi - 0x7c9ec85f], bl
inc esi
dec ecx
cmp esi, 0x7c9ec8a8
jne 0x41c040
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
mov esi, dword [esp]
mov eax, esi
test dx, dx
je 0x41c0c1
add ecx, 2
mov eax, esi
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41c0b0
mov word [eax], 0
movzx ecx, word [esp + 4]
test cx, cx
je 0x41c0f1
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 0x41c0e0
mov word [eax], 0
movzx ecx, word [ebp]
test cx, cx
je 0x41c122
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 0x41c110
mov word [eax], 0
movzx ecx, word [esp + 0x4c]
test cx, cx
je 0x41c151
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 0x41c140
mov word [eax], 0
mov eax, dword [esp + 0xac]
mov ebx, dword [eax]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax], 0
lea eax, [eax + 2]
jne 0x41c170
lea edx, [ebx + eax]
add edx, 0xfffffffe
add eax, ebx
mov esi, 1
sub esi, eax
and esi, ebx
mov ecx, ebx
not ecx
and ecx, edx
sub ecx, esi
mov eax, dword [esp + 0xa8]
mov eax, dword [eax]
xor edx, edx
nop
nop
cmp word [eax + edx], 0
lea edx, [edx + 2]
jne 0x41c1a0
lea esi, [eax + edx]
add esi, 0xfffffffe
add edx, eax
mov edi, 1
sub edi, edx
and edi, eax
not eax
and eax, esi
sub eax, edi
mov edx, dword [esp + 0xa8]
mov edx, dword [edx + 8]
xor edi, edi
nop
nop
nop
cmp word [edx + edi], 0
lea edi, [edi + 2]
jne 0x41c1d0
sar ecx, 1
sar eax, 1
lea esi, [edx + edi]
add esi, 0xfffffffe
add edi, edx
mov ebp, 1
sub ebp, edi
and ebp, edx
not edx
and edx, esi
sub edx, ebp
sar edx, 1
add eax, ecx
lea ecx, [edx + eax]
add ecx, 0xb
test ecx, ecx
jns 0x41c20a
mov eax, 0xffffffff
jmp 0x41c213
add eax, edx
lea eax, [eax*2 + 0x16]
push eax
call fcn.00408770
add esp, 4
mov edi, eax
mov dword [esp + 4], 0xf353f1af
mov dword [esp + 8], 0xff4afd48
mov dword [esp + 0xc], 0xfb46f955
mov dword [esp + 0x10], 0xc7b1c577
mov dword [esp + 0x14], 0xc1c0
mov byte [esp + 0x18], 0
mov eax, 0xd4
mov ecx, 0x2b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0xd0]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0xdc
mov byte [esp + eax - 0xd0], dl
inc eax
dec ecx
cmp eax, 0xe9
jne 0x41c260
movzx ecx, word [esp + 4]
mov eax, edi
test cx, cx
je 0x41c2b1
lea edx, [esp + 6]
mov eax, edi
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 0x41c2a0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41c2e1
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 0x41c2d0
mov word [eax], 0x5f
add eax, 2
mov ecx, dword [esp + 0xa8]
mov ecx, dword [ecx]
movzx edx, word [ecx]
test dx, dx
je 0x41c311
add ecx, 2
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41c300
mov word [eax], 0x5f
add eax, 2
mov ecx, dword [esp + 0xa8]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x41c341
add ecx, 2
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41c330
mov word [eax], 0
mov dword [esp + 4], 0x696a6b8a
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov eax, 0x5d9e4d17
mov ecx, 0xe8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x5d9e4d13]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
mov esi, edx
and esi, 1
mov ebx, 1
sub ebx, edx
and ebx, 1
and edx, 0xfe
or edx, ebx
lea edx, [edx + esi*2]
add dl, 0x8c
mov byte [esp + eax - 0x5d9e4d13], dl
inc eax
dec ecx
cmp eax, 0x5d9e4d1e
jne 0x41c370
lea eax, [esp + 4]
push 0
push 1
push 0
push eax
mov esi, dword [esp + 0x10]
push esi
push edi
push dword [esp + 0xb8]
call fcn.0041c800
add esp, 0x1c
mov ebx, eax
jmp dword [0x441fac]