Function at 0x41f2d0
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 0x41f2f0
mov edx, eax
sar edx, 1
xor edx, 0x1b
mov ebx, dword [edi + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41f310
and eax, 0x36
add edx, eax
sar ecx, 1
add ecx, edx
jns 0x41f32d
mov ecx, 0xffffffff
jmp 0x41f32f
add ecx, ecx
push ecx
call fcn.0040c640
add esp, 4
mov esi, eax
mov dword [esp + 0xc], 0x570249ec
mov dword [esp + 0x10], 0x53fd55e7
mov dword [esp + 0x14], 0x5fea51f1
mov dword [esp + 0x18], 0x5b175d3c
mov dword [esp + 0x1c], 0xa71a59e0
mov dword [esp + 0x20], 0xa310a509
mov dword [esp + 0x24], 0xaf07a11f
mov dword [esp + 0x28], 0xab18ad1f
mov dword [esp + 0x2c], 0xb7e9a9c8
mov dword [esp + 0x30], 0xb30eb519
mov dword [esp + 0x34], 0xbf17b10c
mov dword [esp + 0x38], 0xbb11bd0e
mov dword [esp + 0x3c], 0x8722b907
mov dword [esp + 0x40], 0x8584
mov byte [esp + 0x44], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x38
ja 0x41f400
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
mov edx, eax
not edx
or edx, 0x59af006e
add edx, eax
xor eax, 0x59af006e
lea eax, [eax + edx*2]
add eax, 2
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xda
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x39
jb 0x41f3c0
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x41f431
add ecx, 2
mov eax, esi
nop
nop
nop
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 0x41f420
mov word [eax], 0
movzx ecx, word [esp + 0xc]
test cx, cx
je 0x41f461
lea edx, [esp + 0xe]
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 0x41f450
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41f491
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 0x41f480
mov word [eax], 0
mov ebp, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x41f4a0
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 0x41f4c0
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 0x41f4e0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
mov dword [esp + 8], esi
jns 0x41f508
mov eax, 0xffffffff
jmp 0x41f511
add ecx, edx
lea eax, [ecx*2 + 0x1c]
push eax
call fcn.0040c640
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x41f542
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 0x41f530
mov word [eax], 0x2f
mov dword [esp + 0xc], 0xf3bff187
mov dword [esp + 0x10], 0xff42fd44
mov dword [esp + 0x14], 0xfb4cf955
mov dword [esp + 0x18], 0xc76fc577
mov dword [esp + 0x1c], 0xc374c177
mov dword [esp + 0x20], 0xcfb9cd7f
mov dword [esp + 0x24], 0xc9c8
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1b
ja 0x41f5e4
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0xc]
mov ebp, ecx
xor ebp, 0x4f25d6d4
mov esi, ecx
xor esi, 0x30da292b
or ecx, 0x4f25d6d4
and ecx, esi
lea ecx, [ecx*2]
add ecx, ebp
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
mov edx, ecx
xor edx, 0x24
and ecx, 0x5b
add ecx, ecx
sub ecx, edx
mov edx, dword [esp]
mov byte [esp + edx + 0xc], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1c
jb 0x41f590
add eax, 2
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x41f613
add ecx, 2
mov esi, dword [esp + 8]
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41f600
jmp 0x41f617
mov esi, dword [esp + 8]
mov word [eax], 0
movzx ecx, word [esp + 0xc]
test cx, cx
je 0x41f641
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 0x41f630
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41f671
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 0x41f660
mov word [eax], 0
mov dword [esp], 0xd1cecfe6
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 3
ja 0x41f6cc
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx]
mov edx, eax
xor edx, 0x5f65b8cd
and eax, 0xdf65b8cd
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
dec al
mov ecx, dword [esp + 4]
mov byte [esp + ecx], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 4
jb 0x41f690
mov eax, esp
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x78]
call fcn.004224f0
add esp, 0x20
mov ebx, eax
jmp dword [0x44b284]