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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, 0x4e4c2c
mov ebx, dword [sym.imp.kernel32.dll_GetModuleHandleW]
push dword [0x4e4c4c]
call ebx
mov esi, eax
push dword [0x4e4c7c]
call ebx
mov ebx, eax
mov edx, dword [0x4e4c44]
mov ecx, esi
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 0x18], eax
mov edx, dword [0x4e4c58]
mov ecx, esi
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 8], eax
mov edx, dword [0x4e4c68]
mov ecx, esi
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 0x24], eax
mov edx, dword [0x4e4c74]
mov ecx, esi
mov dword [esp + 4], esi
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 0x20], eax
mov edx, dword [0x4e4c60]
mov ecx, ebx
mov dword [esp + 0x28], ebx
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [0x4e4c70]
mov ecx, esi
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 0x10], eax
mov edx, dword [0x4e4c6c]
mov ecx, esi
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 0x2c], eax
mov edx, dword [0x4e4c2c]
mov ecx, esi
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 0x1c], eax
mov edx, dword [0x4e4c64]
mov ecx, ebx
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 0x40], eax
push 0x84
push 0x40
mov esi, dword [esp + 0x34]
call esi
mov ebx, eax
mov eax, dword [esp + 4]
mov dword [ebx + 4], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x34], eax
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x78], ecx
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x64], esi
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x70], eax
mov edx, dword [0x4e4c54]
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x30], 0x4e4c2c
mov eax, dword [0x4e4c78]
mov dword [esp + 8], eax
mov edx, dword [0x4e4c84]
mov ecx, dword [esp + 4]
mov esi, ebx
push dword [0x4e4c34]
call fcn.0049cd80
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0xf], 0
mov eax, 0x40000
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], eax
test eax, eax
jne 0x49c6df
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x64]
push eax
push dword [edi + 0x14]
call ecx
test eax, eax
je 0x49c80c
mov edx, dword [esp + 0x30]
mov ebx, eax
mov ecx, eax
call fcn.0049ce29
mov eax, dword [esi + 0x7c]
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x34]
push ebx
push 5
call eax
test eax, eax
je 0x49c71d
mov eax, dword [esp + 0x30]
add eax, eax
mov edi, dword [esi + 0x30]
jmp 0x49c6d4
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x64]
push 0xb2
push dword [eax + 0x14]
call ecx
cmp dword [ebx], 0
je 0x49c80c
mov edi, eax
mov ecx, ebx
cmp dword [ecx + 0x3c], 0
je 0x49c7fd
mov ebx, esi
mov esi, ecx
mov ecx, edi
mov edx, 0xb2
call fcn.0049ce29
mov dword [esp + 4], esi
mov eax, dword [esi + 0x3c]
mov ecx, 0xfffffe9c
movzx edx, word [eax + ecx + 0x164]
test dx, dx
je 0x49c77a
mov word [edi + ecx + 0x164], dx
add ecx, 2
jne 0x49c760
xor ecx, ecx
xor edx, edx
dec edx
mov eax, ecx
cmp word [edi + edx*2 + 2], 0
lea edx, [edx + 1]
lea ecx, [ecx + 1]
jne 0x49c77f
test edx, edx
mov esi, ebx
je 0x49c7af
mov ecx, edi
movzx edx, word [ecx]
lea ebx, [edx - 0x41]
cmp bx, 0x1a
jae 0x49c7a6
add edx, 0x20
mov word [ecx], dx
add ecx, 2
dec eax
jne 0x49c797
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 8]
xor edx, edx
xor ebx, ebx
dec ebx
mov ecx, edx
cmp word [edi + ebx*2 + 2], 0
lea ebx, [ebx + 1]
lea edx, [edx + 1]
jne 0x49c7ba
xor edx, edx
test ebx, ebx
je 0x49c7e0
mov ebx, edi
imul edx, eax
movzx esi, word [ebx]
add edx, esi
add ebx, 2
dec ecx
jne 0x49c7d2
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x30]
cmp edx, dword [eax + 0x10]
mov ecx, dword [esp + 4]
je 0x49c7f8
mov eax, dword [esi + 0x30]
cmp edx, dword [eax + 0x5c]
jne 0x49c7fd
mov byte [esp + 0xf], 1
mov eax, dword [ecx]
cmp dword [ecx + eax], 0
lea ecx, [ecx + eax]
jne 0x49c73a
cmp byte [esp + 0xf], 0
lea edi, [esp + 0x30]
je 0x49c84f
mov eax, esi
mov esi, 9
mov ecx, dword [eax + 0x4c]
mov dword [esp + 4], ecx
mov ecx, edi
mov edx, 8
mov ebx, eax
call fcn.0049ce29
mov dword [esp + 0x30], 0xfd050f80
mov dword [esp + 0x34], 0xffffffff
push edi
push 0
call dword [esp + 0xc]
mov eax, ebx
dec esi
jne 0x49c81e
mov eax, dword [esp + 8]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
push esi
push 0x40
call dword [esp + 0x34]
mov edi, eax
mov edx, dword [esp + 8]
add edx, 8
mov ecx, eax
push esi
call fcn.0049ce69
add esp, 4
test esi, esi
je 0x49c883
xor eax, eax
xor dword [edi + eax], ebx
add eax, 4
cmp eax, esi
jb 0x49c879
push 0x20a
push 0x40
call dword [esp + 0x34]
mov esi, eax
mov al, byte [edi]
test al, al
je 0x49c8a8
xor ecx, ecx
movsx eax, al
mov word [esi + ecx*2], ax
mov al, byte [edi + ecx + 1]
inc ecx
test al, al
jne 0x49c898
push 0x20a
push 0x40
mov ebx, dword [esp + 0x20]
call dword [ebx + 0x64]
mov edi, eax
push 0x105
push eax
push 0
call dword [ebx + 0x54]
lea eax, [edi - 2]
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x49c8c6
mov word [eax], 0
cmp word [eax - 2], 0x5c
lea eax, [eax - 2]
jne 0x49c8d0
mov edx, edi
add edx, 0xfffffffe
xor eax, eax
dec eax
inc eax
cmp word [edx + 2], 0
lea edx, [edx + 2]
jne 0x49c8e7
xor ecx, ecx
cmp word [edx - 2], 0x5c
je 0x49c903
mov word [edx], 0x5c
xor ecx, ecx
inc ecx
test esi, esi
je 0x49c929
movzx ebx, word [esi]
test bx, bx
mov dword [esp + 4], ecx
je 0x49c92e
lea ecx, [edx + ecx*2]
xor edx, edx
mov word [ecx + edx*2], bx
movzx ebx, word [esi + edx*2 + 2]
inc edx
test bx, bx
jne 0x49c918
jmp 0x49c930
inc eax
mov edx, eax
jmp 0x49c936
xor edx, edx
add edx, dword [esp + 4]
add edx, eax
mov ebx, dword [esp + 0x18]
mov word [edi + edx*2], 0
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push 0x80000000
push edi
call dword [ebx + 0x44]
cmp eax, 0xffffffff
je 0x49cae8
mov esi, eax
push 0
push eax
call dword [ebx + 0x6c]
test eax, eax
je 0x49cae4
mov edi, eax
inc eax
push eax
push 0x40
call dword [ebx + 0x64]
push 0
lea ecx, [esp + 0x34]
push ecx
push edi
mov dword [esp + 0x20], eax
push eax
push esi
call dword [ebx + 0x70]
mov dword [esp + 0x20], edi
mov edi, eax
push esi
call dword [ebx + 0x68]
test edi, edi
je 0x49cae8
mov edx, dword [ebx + 0x30]
add edx, 0x30
mov esi, 4
lea edi, [esp + 0x30]
mov ecx, edi
push esi
call fcn.0049ce69
add esp, 4
mov edx, dword [ebx + 0x30]
add edx, 0xc
lea ecx, [edi + esi]
push esi
call fcn.0049ce69
add esp, 4
mov ecx, dword [esp + 0x20]
lea eax, [ecx - 8]
cmp eax, 8
je 0x49cae8
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 4], esi
mov esi, ebx
inc esi
add eax, 0xfffffff7
mov edx, esi
xor edi, edi
lea ecx, [esi + edi]
mov dword [esp + 8], ecx
mov ebx, 0xfffffff8
mov cl, byte [esp + ebx + 0x38]
cmp byte [edx + ebx + 8], cl
je 0x49ca1e
cmp cl, 0x3f
jne 0x49ca23
inc ebx
jne 0x49ca0f
jmp 0x49ca30
inc edx
cmp edi, eax
lea edi, [edi + 1]
jne 0x49ca03
jmp 0x49caf0
mov ebx, dword [esp + 8]
mov edi, dword [ebx]
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x30]
cmp eax, dword [ecx + 0x54]
lea eax, [ebx + 8]
mov dword [esp + 0x24], eax
bswap edi
mov esi, dword [esp + 4]
jne 0x49ca89
test esi, esi
jne 0x49ca89
mov eax, dword [ebx + 0x10]
add eax, 0x10
mov dword [esp + 0x1c], eax
push eax
push 0x40
call dword [edx + 0x64]
mov dword [esp + 4], eax
mov ecx, eax
mov esi, dword [esp + 0x24]
mov edx, esi
push edi
call fcn.0049ce69
add esp, 4
add dword [esp + 0x10], edi
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x20]
jmp 0x49cacd
test esi, esi
je 0x49cabd
mov ecx, dword [esp + 0x10]
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x1c]
ja 0x49cc1a
add ecx, esi
mov esi, dword [esp + 0x24]
mov edx, esi
push edi
call fcn.0049ce69
add esp, 4
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 8]
jmp 0x49cacd
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
sub eax, esi
add eax, ecx
cmp eax, 8
mov esi, dword [esp + 4]
jne 0x49c9f5
jmp 0x49caf4
push esi
call dword [ebx + 0x68]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 4]
test esi, esi
je 0x49cae8
mov dword [esp + 4], esi
add esi, 0x10
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 8]
and eax, 0xfffffffc
je 0x49cb1a
mov ecx, dword [ecx + 4]
xor edx, edx
xor dword [esi + edx], ecx
add edx, 4
cmp edx, eax
jb 0x49cb10
cmp dword [esp + 0x10], 0
mov edi, dword [esp + 0x18]
je 0x49cae8
mov eax, dword [esp + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
mov ebx, dword [eax + 0xc]
push ebx
push 0x40
call dword [edi + 0x64]
mov ecx, eax
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0xc]
push esi
mov esi, ecx
push ebx
push ecx
push 2
call dword [edi + 0x3c]
test eax, eax
jne 0x49cae8
xor eax, eax
dec eax
cmp byte [esi + eax + 0x91], 0
lea eax, [eax + 1]
jne 0x49cb5d
test eax, eax
mov ecx, 0
jne 0x49cb79
mov ecx, dword [esi + 0x160]
add ecx, esi
mov edi, dword [esi + 8]
mov edx, dword [0x4e4c34]
mov eax, dword [0x4e4c50]
mov dword [esp + 0x24], eax
mov eax, dword [edi + ecx + 0x12c1]
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x10], esi
je 0x49cc34
lea eax, [edi + ecx + 0x12c1]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
lea edi, [edi + ecx + 0x14bb]
xor eax, eax
mov dword [esp + 0x44], edi
mov dword [esp + 8], eax
xor eax, eax
xor ebx, ebx
dec ebx
mov esi, eax
cmp byte [edi + ebx + 1], 0
lea ebx, [ebx + 1]
lea eax, [eax + 1]
jne 0x49cbcd
test ebx, ebx
je 0x49cbf5
xor ebx, ebx
mov eax, edi
imul ebx, edx
movsx ecx, byte [eax]
movzx ecx, cx
add ebx, ecx
inc eax
dec esi
jne 0x49cbe4
jmp 0x49cbf7
xor ebx, ebx
cmp ebx, dword [esp + 0x24]
je 0x49cc40
mov eax, dword [esp + 8]
inc eax
add edi, 0x8a
cmp eax, dword [esp + 0x20]
jne 0x49cbc4
xor ebx, ebx
mov dword [esp + 0x14], 0
jmp 0x49cc62
mov eax, dword [esp + 0x1c]
sub eax, ecx
add ecx, esi
mov edx, dword [esp + 0x24]
push eax
call fcn.0049ce69
add esp, 4
jmp 0x49caf8
mov dword [esp + 0x14], 0
xor ebx, ebx
jmp 0x49cc6e
imul eax, dword [esp + 8], 0x8a
mov edx, dword [esp + 0x44]
mov ebx, dword [edx + eax + 0x86]
mov ecx, dword [esp + 0x14]
add ecx, dword [edx + eax + 0x82]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
lea eax, [edi + ecx + 0x3dd]
mov dword [esp + 8], eax
push 0x20a
push 0x40
call dword [esp + 0x34]
mov edi, eax
mov ecx, esi
add ecx, 0xf4
mov edx, eax
call fcn.0049ceb9
mov edx, edi
xor eax, eax
dec eax
mov ecx, edx
inc eax
cmp word [ecx], 0
lea ecx, [ecx + 2]
jne 0x49cc9c
lea esi, [ecx + 2]
mov edi, ecx
add esi, 0xfffffffe
cmp word [edx + eax*2], 0x5c
lea eax, [eax - 1]
lea ecx, [ecx - 2]
jne 0x49cca9
push 0x20a
push 0x40
mov eax, dword [esp + 0x20]
call dword [eax + 0x64]
xor ecx, ecx
dec ecx
cmp word [esi + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x49cccc
test ecx, ecx
je 0x49ccec
xor edx, edx
movzx esi, word [edi]
mov word [eax + edx*2], si
inc edx
add edi, 2
cmp ecx, edx
jne 0x49ccdd
push eax
mov eax, dword [esp + 0x1c]
call dword [eax + 0x34]
mov esi, eax
mov eax, dword [eax + 0x3c]
add esi, dword [esi + eax + 0x2c]
push ebx
push 0x40
call dword [esp + 0x34]
mov edi, eax
mov ecx, eax
mov edx, esi
push ebx
call fcn.0049ce69
add esp, 4
xor eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx + 0xcc4], eax
mov dword [ecx + 0xcc0], edi
lea ecx, [esp + 0x48]
mov dword [ecx], eax
push ecx
push dword [0x4e4c40]
push ebx
push esi
mov edi, dword [esp + 0x50]
call edi
mov ecx, esi
mov edx, dword [esp + 0x14]
push ebx
call fcn.0049ce69
add esp, 4
lea eax, [esp + 0x48]
push eax
push dword [eax]
push ebx
push esi
call edi
mov eax, dword [0x4e4c40]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x30]
push eax
push dword [esp + 8]
push dword [esp + 0x10]
push dword [esp + 0x1c]
call esi
add esp, 0x10
jmp 0x49cae8