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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
mov ebp, dword [eax]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [ebp + edx + 2], 0
lea edx, [edx + 2]
jne 0x41d6a0
mov ebx, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41d6c0
sar edx, 1
sar ecx, 1
lea eax, [edx + ecx]
add eax, 0x1b
test eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
jns 0x41d6ea
mov eax, 0xffffffff
jmp 0x41d6f4
lea eax, [edx + ecx]
lea eax, [eax*2 + 0x36]
push eax
call fcn.00409860
add esp, 4
mov dword [esp + 8], 0x83ce81dc
mov dword [esp + 0xc], 0x8725852b
mov dword [esp + 0x10], 0x8b268929
mov dword [esp + 0x14], 0x8fcb8dec
mov dword [esp + 0x18], 0x93269128
mov dword [esp + 0x1c], 0x97389531
mov dword [esp + 0x20], 0x9b33992b
mov dword [esp + 0x24], 0x9f309d33
mov dword [esp + 0x28], 0xe3b1e180
mov dword [esp + 0x2c], 0xe752e541
mov dword [esp + 0x30], 0xeb43e95c
mov dword [esp + 0x34], 0xef49ed42
mov dword [esp + 0x38], 0xf3aef143
mov dword [esp + 0x3c], 0xf5f4
mov byte [esp + 0x40], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
add cl, 0x20
xor cl, byte [esp + edx + 8]
add cl, 0x60
mov byte [esp + edx + 8], cl
inc edx
cmp edx, 0x39
jne 0x41d780
movzx ecx, word [ebp]
mov esi, eax
test cx, cx
je 0x41d7c2
add ebp, 2
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x41d7b0
mov dword [esp], eax
mov word [esi], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41d7f1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41d7e0
mov word [esi], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41d821
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41d810
mov word [esi], 0
mov esi, dword [edi]
mov eax, 0xfffffffe
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41d830
sar eax, 1
mov ecx, dword [esp + 0x68]
mov ebp, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41d850
inc eax
sar ecx, 1
mov edx, ecx
and edx, eax
add edx, edx
mov edi, dword [esp + 0x6c]
mov edi, dword [edi]
mov ebx, 0xfffffffe
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x41d870
xor ecx, eax
sar ebx, 1
add ecx, edx
lea eax, [ebx + ecx]
add eax, 0x12
test eax, eax
jns 0x41d892
mov eax, 0xffffffff
jmp 0x41d89b
add ecx, ebx
lea eax, [ecx*2 + 0x24]
push eax
call fcn.00409860
add esp, 4
mov ebx, eax
movzx eax, word [esi]
mov dword [esp + 4], ebx
test ax, ax
je 0x41d8d1
add esi, 2
mov ebx, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x41d8c0
mov word [ebx], 0x2f
mov dword [esp + 8], 0xcf8bc99b
mov dword [esp + 0xc], 0xc356cd44
mov dword [esp + 0x10], 0xc754c1a5
mov dword [esp + 0x14], 0xfb63c553
mov dword [esp + 0x18], 0xff6cf96b
mov dword [esp + 0x1c], 0xf3a1fd6b
mov word [esp + 0x20], 0xf1f0
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
mov eax, 0xa0def452
mov ecx, 0xad
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x5f210bb6]
mov esi, ecx
xor esi, eax
and esi, edx
xor esi, eax
add esi, 0xdba53a65
mov edx, esi
and edx, 1
xor esi, 1
lea edx, [esi + edx*2]
mov byte [esp + eax + 0x5f210bb6], dl
inc eax
dec ecx
cmp eax, 0xa0def472
jne 0x41d930
add ebx, 2
movzx eax, word [ebp]
test ax, ax
je 0x41d994
add ebp, 2
mov esi, dword [esp + 0x6c]
mov edx, dword [esp]
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x41d980
jmp 0x41d99b
mov esi, dword [esp + 0x6c]
mov edx, dword [esp]
mov word [ebx], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x41d9c1
lea ecx, [esp + 0xa]
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d9b0
mov word [ebx], 0
movzx eax, word [edi]
test ax, ax
je 0x41d9f1
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x41d9e0
mov word [ebx], 0
mov dword [esp + 8], 0x106072e
xor eax, eax
mov ecx, eax
add cl, 0x41
xor cl, byte [esp + eax + 8]
add cl, 0xbb
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jne 0x41da00
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
push edx
push dword [esp + 0x18]
push dword [esp + 0x78]
mov edi, edx
call fcn.00421800
add esp, 0x1c
mov byte [esp], al
jmp dword [0x447044]