Function at 0x4ba0d0
Capabilities:
Encode data using xor
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a27
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x4fb614]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x6c], edi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x68], esi
call fcn.004b8800
movzx eax, word [esi]
mov ecx, 0x454e
cmp ax, cx
je 0x4ba812
mov ecx, 0x454c
cmp ax, cx
je 0x4ba812
mov ecx, 0x5a4d
cmp ax, cx
jne 0x4ba812
mov esi, dword [esi + 0x3c]
add esi, dword [ebp - 0x68]
cmp dword [esi], 0x4550
jne 0x4ba812
mov eax, 0xe0
cmp word [esi + 0x14], ax
jne 0x4ba1ad
mov eax, 0x10b
cmp word [esi + 0x18], ax
jne 0x4ba1ad
lea eax, [ebp - 0x5d]
mov byte [ebp - 0x5d], 0
push eax
mov edx, esi
lea ecx, [ebp - 0x64]
call fcn.004bd5e0
add esp, 4
lea ecx, [edi + 0x10]
push eax
call fcn.004bd830
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x4ba1a9
push 0x10c
push eax
call fcn.004cf4f2
add esp, 8
xor dl, dl
jmp 0x4ba1e4
mov ecx, esi
call fcn.004ba0b0
test al, al
je 0x4ba3c4
lea eax, [ebp - 0x5d]
mov byte [ebp - 0x5d], 1
push eax
mov edx, esi
lea ecx, [ebp - 0x64]
call fcn.004bd5e0
add esp, 4
lea ecx, [edi + 0x10]
push eax
call fcn.004bd830
lea ecx, [ebp - 0x64]
call fcn.004bd150
mov dl, 1
mov eax, dword [edi + 0x10]
mov ecx, eax
mov dword [ebp - 0x64], eax
add eax, 0x18
mov dword [ebp - 0x60], ecx
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x68]
mov byte [edi + 0x24], dl
lea edx, [esi + 4]
push dword [ecx + 0x3c]
mov ecx, dword [eax + 0x3c]
call fcn.004ba840
mov ecx, dword [ebp - 0x60]
mov edi, eax
add esp, 4
mov eax, dword [ecx + 0x54]
cmp edi, eax
je 0x4ba220
cmova eax, edi
mov edi, eax
mov dword [ecx + 0x54], edi
push edi
call fcn.004cf500
add esp, 4
mov esi, eax
push edi
push dword [ebp - 0x68]
push esi
call fcn.004d1d90
mov eax, dword [ebp - 0x6c]
add esp, 0xc
push dword [eax + 8]
call fcn.004cf4b8
mov edx, dword [ebp - 0x6c]
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [edx + 0xc], edi
mov dword [edx + 8], esi
mov dword [edx + 0x18], esi
mov ecx, dword [esi + 0x3c]
add ecx, esi
xor esi, esi
mov dword [edx + 0x1c], ecx
movzx edi, word [eax + 0x14]
mov eax, dword [edx + 0x10]
add edi, 0x18
add edi, ecx
mov dword [ebp - 0x64], esi
mov dword [edx + 0x20], edi
movzx eax, word [eax + 6]
mov dword [ebp - 0x68], eax
test eax, eax
je 0x4ba39e
xor edx, edx
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x28], dl
mov eax, 0xf
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x2c]
movsx ecx, byte [ecx]
add ecx, 0xeb52ebe
mov eax, ecx
imul ecx, ecx, 0xbcf5
shr eax, 0xc
xor al, 7
mov byte [edx], al
sub ecx, 0x40cc4cc1
mov eax, ecx
imul ecx, ecx, 0xbcf5
shr eax, 0xc
xor al, 0x9f
mov byte [edx + 1], al
sub ecx, 0x40cc4cc1
mov eax, ecx
shr eax, 0xc
xor al, 0xa1
mov byte [edx + 2], al
imul eax, ecx, 0xbcf5
mov ecx, edx
sub eax, 0x40cc4cc1
shr eax, 0xc
xor al, 0x43
mov byte [edx + 3], al
mov eax, edi
cmp dword [ebp - 0x18], 0x10
jb 0x4ba360
mov esi, dword [ebp - 0x2c]
mov ecx, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4ba320
test dl, dl
je 0x4ba31c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4ba320
add eax, 2
add ecx, 2
test dl, dl
jne 0x4ba300
xor eax, eax
jmp 0x4ba325
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x18]
test eax, eax
mov eax, esi
sete byte [ebp - 0x5d]
inc ecx
cmp ecx, 0x1000
jb 0x4ba34d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ba837
push ecx
push esi
call fcn.004cf4f2
mov al, byte [ebp - 0x5d]
add esp, 8
mov esi, dword [ebp - 0x64]
jmp 0x4ba38a
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4ba380
test dl, dl
je 0x4ba37c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4ba380
add eax, 2
add ecx, 2
test dl, dl
jne 0x4ba360
xor eax, eax
jmp 0x4ba385
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4ba3b1
inc esi
add edi, 0x28
mov dword [ebp - 0x64], esi
cmp esi, dword [ebp - 0x68]
jb 0x4ba280
mov eax, dword [ebp - 0x6c]
xor cl, cl
or dword [eax + 0x28], 1
mov byte [eax + 0x25], cl
xor eax, eax
jmp 0x4ba817
mov eax, dword [ebp - 0x6c]
mov cl, 1
or dword [eax + 0x28], 1
mov byte [eax + 0x25], cl
xor eax, eax
jmp 0x4ba817
mov ax, word [esi + 0x18]
lea edx, [ebp - 0x60]
push 2
lea ecx, [ebp - 0xbc]
mov word [ebp - 0x60], ax
call fcn.004b8370
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 8
lea edx, [ebp - 0x2c]
mov byte [ebp - 0x24], 0
mov eax, 0xf
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
movsx ecx, byte [ecx]
add ecx, 0x2f11148
mov eax, ecx
imul ecx, ecx, 0xc0f5
shr eax, 6
xor al, 0x69
mov byte [edx], al
add ecx, 0x263e3441
mov eax, ecx
imul ecx, ecx, 0xc0f5
shr eax, 6
xor al, 0xd8
mov byte [edx + 1], al
add ecx, 0x263e3441
mov eax, ecx
imul ecx, ecx, 0xc0f5
shr eax, 6
xor al, 0xa8
mov byte [edx + 2], al
add ecx, 0x263e3441
mov eax, ecx
imul ecx, ecx, 0xc0f5
shr eax, 6
xor al, 0x26
mov byte [edx + 3], al
add ecx, 0x263e3441
mov eax, ecx
imul ecx, ecx, 0xc0f5
shr eax, 6
xor al, 0x7b
mov byte [edx + 4], al
add ecx, 0x263e3441
mov eax, ecx
imul ecx, ecx, 0xc0f5
shr eax, 6
xor al, 0xc5
mov byte [edx + 5], al
add ecx, 0x263e3441
mov eax, ecx
shr eax, 6
xor al, 0xde
mov byte [edx + 6], al
imul eax, ecx, 0xc0f5
add eax, 0x263e3441
shr eax, 6
xor al, 0x28
mov byte [edx + 7], al
mov eax, edx
lea ecx, [ebp - 0xdc]
push eax
call fcn.004b7340
mov dword [ebp - 0x64], eax
mov cx, word [esi + 0x14]
lea edx, [ebp - 0x60]
mov word [ebp - 0x60], cx
lea ecx, [ebp - 0xac]
push 2
call fcn.004b8370
add esp, 4
push 0x30
mov byte [ebp - 4], 4
call fcn.004aa4a0
mov edx, eax
mov dword [ebp - 0x4c], 0x20
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0x2f
mov dword [ebp - 0x5c], edx
mov edi, 0x4f53c0
mov esi, 0x20
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov byte [edx + 0x20], 0
movsx ecx, byte [edx]
add ecx, 0x2f11148
sub edi, edx
nop dword [eax + eax]
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xd8f5
shr eax, 6
xor al, byte [edi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x263e3441
sub esi, 1
jne 0x4ba530
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xcc]
call fcn.004b7340
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x44], esi
push 0x30
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 7
call fcn.004aa4a0
mov edx, eax
mov dword [ebp - 0x30], 0x2f
mov dword [ebp - 0x34], 0x24
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x20], esi
mov byte [edx + 0x24], 0
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x44], edx
jb 0x4ba5b0
movsx ecx, byte [edx]
jmp 0x4ba5b6
movsx ecx, byte [eax]
lea edx, [ebp - 0x44]
mov edi, 0x4f5710
add ecx, 0x2f11148
sub edi, edx
mov esi, 0x24
nop dword [eax + eax]
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xdcf5
shr eax, 6
xor al, byte [edi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x263e3441
sub esi, 1
jne 0x4ba5d0
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
mov dword [ebp - 0x7c], 0x4efc60
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
mov eax, dword [0x4fdaa8]
mov dword [ebp - 0x60], eax
mov eax, 0x4f45fc
inc eax
cmp byte [eax], 0
jne 0x4ba612
sub eax, 0x4f45fc
mov dword [ebp - 0x70], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x74], ecx
test ecx, ecx
jne 0x4ba62e
xor edi, edi
jmp 0x4ba639
push ecx
call fcn.004d4296
add esp, 4
mov edi, eax
mov dword [ebp - 0x78], edi
mov ecx, 0x4f45fc
inc ecx
cmp byte [ecx], 0
jne 0x4ba641
sub ecx, 0x4f45fc
inc ecx
push ecx
push 0x4f45fc
push edi
call fcn.004d1d90
add esp, 0xc
mov dword [ebp - 0x8c], 0x4efc60
mov eax, 0x4f5184
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x4ba670
sub eax, 0x4f5184
mov dword [ebp - 0x80], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x84], ecx
test ecx, ecx
jne 0x4ba68f
xor esi, esi
jmp 0x4ba69a
push ecx
call fcn.004d4296
add esp, 4
mov esi, eax
mov dword [ebp - 0x88], esi
mov ecx, 0x4f5184
inc ecx
cmp byte [ecx], 0
jne 0x4ba6a5
sub ecx, 0x4f5184
inc ecx
push ecx
push 0x4f5184
push esi
call fcn.004d1d90
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0x64]
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x9c]
call fcn.004b6a00
push ecx
push 0
push 0x1ed
push dword [ebp - 0x68]
mov byte [ebp - 4], 0xc
push dword [eax + 4]
mov ecx, dword [ebp - 0x60]
call fcn.004c3d30
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], 0x4efc60
test eax, eax
je 0x4ba722
push eax
call fcn.004d427b
add esp, 4
test esi, esi
je 0x4ba72f
push esi
call fcn.004d427b
add esp, 4
test edi, edi
je 0x4ba73c
push edi
call fcn.004d427b
add esp, 4
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x4ba770
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ba766
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ba837
push edx
push ecx
call fcn.004cf4f2
add esp, 8
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.004b73b0
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x4ba7c1
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ba7b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ba837
push edx
push ecx
call fcn.004cf4f2
add esp, 8
lea ecx, [ebp - 0xac]
call fcn.004b73b0
lea ecx, [ebp - 0xdc]
call fcn.004b73b0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4ba807
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ba7fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ba837
push edx
push ecx
call fcn.004cf4f2
add esp, 8
lea ecx, [ebp - 0xbc]
call fcn.004b73b0
mov eax, 0xfffffff7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cf4aa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004d4192
int3