Function at 0x47c580
Capabilities:
Check os version
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ccbd0
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x6c
cmp word [eax], 1
push ebx
push ebp
push esi
push edi
jne 0x47cbc5
mov ebx, dword [esp + 0x94]
mov edi, dword [ebx]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c5b8
mov ecx, dword [0x4f3d80]
sub eax, edx
lea edx, [ecx + ecx]
cmp eax, edx
jne 0x47cbc5
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c5d7
sub eax, edx
mov edx, eax
mov esi, edi
call fcn.004780e0
test al, al
je 0x47cbc5
mov esi, dword [ebx + 4]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c600
sub eax, edx
mov edx, eax
call fcn.00478120
test al, al
je 0x47cbc5
xor ebp, ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
mov esi, edi
push ebp
lea edi, [esp + 0x28]
lea eax, [esp + 0x4c]
mov byte [esp + 0x88], 1
call fcn.00478190
add esp, 4
test eax, eax
jne 0x47cbb3
mov esi, dword [esp + 0x4c]
mov bl, byte [esi]
mov edi, dword [esp + 0x24]
inc esi
dec edi
mov eax, ebp
je 0x47c678
lea esp, [esp]
xor bl, byte [eax + esi]
inc eax
cmp eax, edi
jb 0x47c670
push 0x4e3c9c
call fcn.0049be50
add esp, 4
push edi
push esi
mov ecx, eax
lea edx, [esp + 0x5c]
call fcn.004761e0
add esp, 8
test al, al
je 0x47cbb3
mov ecx, dword [esp + 0x58]
mov edx, dword [0x4ec780]
lea eax, [ecx + 1]
add edx, eax
mov dword [esp + 0x24], eax
mov al, bl
and al, 0x3f
mov byte [esp + 0x17], al
movsx ax, byte [ecx]
and bl, 0xc0
sub ax, 0x20
mov byte [esp + 0x16], bl
movzx ebx, ax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebp
mov ecx, dword [esp + 0x94]
mov byte [esp + 0x84], 3
mov esi, dword [ecx + 4]
push 1
lea edi, [esp + 0x24]
lea eax, [esp + 0x40]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov byte [esp + 0x74], 0
mov dword [esp + 0x78], ebp
mov dword [esp + 0x20], ebp
call fcn.00478190
add esp, 4
test eax, eax
jne 0x47cba1
mov edi, dword [esp + 0x20]
cmp edi, ebp
jbe 0x47c74c
jmp 0x47c740
mov ecx, dword [esp + 0x40]
xor byte [ecx + eax], bl
inc eax
cmp eax, edi
jb 0x47c740
lea edx, [esp + 0x60]
push edx
push 0x4e3c9c
call fcn.0049be50
mov esi, dword [esp + 0x48]
add esp, 4
push eax
push edi
push esi
push 4
push ebp
push ebp
push ebp
call fcn.00474fb0
add esp, 0x20
test al, al
jne 0x47c7df
cmp esi, ebp
je 0x47c792
mov eax, dword [esp + 0x3c]
push eax
push ebp
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
add esp, 4
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
push ecx
push ebp
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
add esp, 4
push edx
push ebp
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
push ebp
push 0x4e3c9c
call fcn.0049be50
add esp, 4
push eax
push edi
push esi
push 2
push ebp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00474fb0
mov edx, dword [0x4ec780]
push edx
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x48]
push 0x4e3f78
push eax
call fcn.004bc8b3
add esp, 0x2c
test eax, eax
jne 0x47cba1
mov ecx, dword [0x4ec780]
mov edx, dword [esp + 0x34]
push ecx
push 0x4e3f78
push edx
call fcn.004bc8b3
add esp, 0xc
test eax, eax
jne 0x47cba1
mov al, byte [esp + 0x16]
cmp al, 0x80
je 0x47c8a9
cmp al, 0x40
je 0x47c8a9
test al, al
jne 0x47cba1
movzx eax, byte [esp + 0x17]
cmp eax, dword [0x4ec3e8]
je 0x47c8fe
lea ecx, [esp + 0x3c]
call fcn.004138f0
lea ecx, [esp + 0x30]
call fcn.004138f0
lea ecx, [esp + 0x48]
call fcn.004138f0
lea ecx, [esp + 0x54]
call fcn.004138f0
mov eax, 2
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
test al, al
je 0x47c85c
mov esi, dword [esp + 0xa4]
mov ecx, 0x4f33d0
call fcn.0046a8c0
test al, al
je 0x47c85c
lea ecx, [esp + 0x3c]
call fcn.004138f0
lea ecx, [esp + 0x30]
call fcn.004138f0
lea ecx, [esp + 0x48]
call fcn.004138f0
lea ecx, [esp + 0x54]
call fcn.004138f0
mov eax, 1
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov esi, dword [esp + 0x28]
push 0x10
mov word [esp + 0x1c], 0
mov cl, byte [esi]
lea edx, [esp + 0x1c]
push ebp
push edx
mov byte [esp + 0x24], cl
call fcn.004bbb31
mov ecx, dword [esp + 0xa4]
add esp, 0xc
push 0x10
push ebp
inc esi
push esi
mov dword [ecx], eax
call fcn.004bbb31
mov edx, 0xfff
sub edx, eax
mov eax, dword [esp + 0x9c]
add esp, 0xc
mov esi, 0x4f3cdc
mov word [eax], dx
call fcn.00414760
movzx ecx, bx
and ecx, 0x80000001
jns 0x47c960
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x47ca4c
mov edx, dword [esp + 0x98]
xor ebx, ebx
cmp dword [edx], ebp
jle 0x47cb31
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
sub eax, ebp
mov dword [esp + 0x24], eax
jmp 0x47c994
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x15], 0
je 0x47c8c2
push 0
push 0x4e3c9c
call fcn.0049be50
mov ecx, dword [esp + 0x24]
add esp, 4
push eax
mov eax, dword [esp + 0x48]
push edi
push eax
push 1
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00474fb0
mov byte [esp + 0x35], al
add esp, 0x20
lea eax, [esp + 0x30]
call fcn.004146f0
mov ecx, dword [esp + 0x34]
cmp byte [eax + ecx - 1], 0xa
lea eax, [eax + ecx - 1]
jne 0x47c9ed
mov byte [eax], 0
mov esi, 0x4f3cdc
call fcn.00414720
lea edi, [esp + 0x30]
mov esi, eax
call fcn.00413a70
mov edx, dword [esp + 0xa0]
push 0
push 0xffffffffffffffff
mov dword [ebp], eax
mov eax, dword [esp + 0x2c]
push 1
mov dword [eax + ebp], edx
mov ecx, dword [ebp]
push 0x4d9a10
push 0x4ec3f4
push ecx
xor eax, eax
or ecx, 0xffffffff
call fcn.004a36d0
mov edx, dword [esp + 0xb0]
inc ebx
add esp, 0x18
add ebp, 4
cmp ebx, dword [edx]
jl 0x47c990
jmp 0x47cb31
mov eax, dword [esp + 0x98]
mov ebx, dword [eax]
dec ebx
cmp ebx, 0xffffffff
jle 0x47cb31
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x9c]
sub eax, ecx
lea ebp, [ecx + ebx*4]
mov dword [esp + 0x24], eax
jmp 0x47ca84
mov edi, dword [esp + 0x20]
cmp byte [esp + 0x15], 0
je 0x47c8c2
push 0
push 0x4e3c9c
call fcn.0049be50
mov edx, dword [esp + 0x48]
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push edi
push edx
push 1
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00474fb0
mov byte [esp + 0x35], al
add esp, 0x20
lea eax, [esp + 0x30]
call fcn.004146f0
mov ecx, dword [esp + 0x34]
cmp byte [eax + ecx - 1], 0xa
lea eax, [eax + ecx - 1]
jne 0x47cadd
mov byte [eax], 0
mov esi, 0x4f3cdc
call fcn.00414720
lea edi, [esp + 0x30]
mov esi, eax
call fcn.00413a70
mov edx, dword [esp + 0xa0]
push 0
push 0xffffffffffffffff
mov dword [ebp], eax
mov eax, dword [esp + 0x2c]
push 1
mov dword [eax + ebp], edx
mov ecx, dword [ebp]
push 0x4d9a10
push 0x4ec3f4
push ecx
xor eax, eax
or ecx, 0xffffffff
call fcn.004a36d0
dec ebx
add esp, 0x18
sub ebp, 4
cmp ebx, 0xffffffff
jg 0x47ca80
mov eax, dword [0x4f33d0]
mov edi, dword [esp + 0x2c]
mov byte [0x4f3ce8], 1
mov word [0x4f3cea], di
cmp eax, 1
je 0x47cb57
cmp eax, 3
je 0x47cb57
cmp eax, 4
jne 0x47cb97
mov esi, dword [esp + 0xa4]
mov ecx, 0x4f33d0
call fcn.0046a880
lea edx, [edi*4]
or edx, edi
add edx, edx
test al, al
mov eax, dword [esp + 0x90]
mov ecx, 0xfff
jne 0x47cb87
add edx, edx
add edx, edx
xor dx, word [eax]
and dx, cx
mov word [eax], dx
mov byte [0x4f3ce8], 0
mov edx, dword [esp + 0x8c]
mov byte [edx], 1
lea ecx, [esp + 0x3c]
call fcn.004138f0
lea ecx, [esp + 0x30]
call fcn.004138f0
lea ecx, [esp + 0x48]
call fcn.004138f0
lea ecx, [esp + 0x54]
call fcn.004138f0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret