Function at 0x471400
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5663eb
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x288], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4714d4
push str.fromurl
push str.start
push str.eventloadname_ssender_s
push dword [0x5ba980]
call fcn.00445510
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
xor eax, eax
movlpd qword [ebp - 0x74], xmm0
movaps xmm0, xmmword [0x595410]
add esp, 0x10
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
movups xmmword [ebp - 0x3c], xmm0
lea ecx, [edi + 0x158]
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push ecx
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x74]
push esi
call fcn.0047eec0
test eax, eax
jne 0x4714db
push str.request
push str.fail
push str.eventloadname_ssender_s
push dword [0x5ba980]
call fcn.00445510
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.0047ee20
xor eax, eax
jmp 0x471829
lea esi, [ebp - 0x20]
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x20], 0x696e696d
lea ecx, [esi + 1]
mov dword [ebp - 0x1c], 0x706f70
mov al, byte [esi]
inc esi
test al, al
jne 0x4714f3
sub esi, ecx
xor eax, eax
nop
mov byte [ebp + eax - 0x17c], al
inc eax
cmp eax, 0x100
jb 0x471500
xor bh, bh
mov word [ebp - 0x7c], 0
xor edi, edi
nop dword [eax]
mov eax, edi
mov bl, byte [ebp + edi - 0x17c]
xor edx, edx
lea ecx, [ebp - 0x17c]
div esi
mov al, byte [ebp + edx - 0x20]
add al, bl
add bh, al
movzx eax, bh
add ecx, eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x17c], al
inc edi
mov byte [ecx], bl
cmp edi, 0x100
jb 0x471520
mov ebx, dword [ebp - 0x288]
mov byte [ebp - 0x7a], 1
mov edi, dword [ebx + 0x15c]
mov esi, dword [ebx + 0x158]
sub edi, esi
je 0x4715dc
mov bl, byte [ebp - 0x7b]
mov dl, byte [ebp - 0x7c]
inc dl
lea ecx, [ebp - 0x17c]
mov byte [ebp - 0x7c], dl
lea esi, [esi + 1]
movzx eax, dl
add ecx, eax
add bl, byte [ebp + eax - 0x17c]
mov byte [ebp - 0x7b], bl
mov dl, byte [ecx]
movzx eax, bl
mov al, byte [ebp + eax - 0x17c]
mov byte [ecx], al
movzx eax, byte [ebp - 0x7b]
mov byte [ebp + eax - 0x17c], dl
mov dl, byte [ebp - 0x7c]
mov bl, byte [ebp - 0x7b]
movzx ecx, dl
movzx eax, bl
mov cl, byte [ebp + ecx - 0x17c]
add cl, byte [ebp + eax - 0x17c]
movzx eax, cl
mov al, byte [ebp + eax - 0x17c]
xor byte [esi - 1], al
sub edi, 1
jne 0x471574
mov ebx, dword [ebp - 0x288]
xor esi, esi
lea eax, [ebp - 0x20]
push esi
push esi
push 0xffffffffffffffff
push eax
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0x28], xmm0
push esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x47163a
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00481079
add esp, 4
lea ecx, [edi*2 + 2]
mov esi, eax
mov dword [ebp - 0x24], esi
push ecx
push 0
push esi
call fcn.005219d0
add esp, 0xc
xor eax, eax
test esi, esi
je 0x47165d
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], edi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
xor eax, eax
mov word [esi + edi*2], ax
mov eax, edi
mov byte [ebp - 4], 1
lea eax, [esi + eax*2]
xor edx, edx
mov dword [ebp - 0x294], 0
mov word [ebp - 0x2a4], dx
mov ecx, 7
mov dword [ebp - 0x290], ecx
cmp esi, eax
je 0x47169d
sub eax, esi
lea ecx, [ebp - 0x2a4]
sar eax, 1
push eax
push esi
call fcn.00410900
mov ecx, dword [ebp - 0x290]
cmp ecx, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x158]
lea eax, [ebp - 0x2a4]
cmovae eax, dword [ebp - 0x2a4]
push eax
mov eax, dword [ebx + 0x15c]
sub eax, ecx
push eax
push ecx
call fcn.004b3050
add esp, 0xc
mov eax, str.root.xml
shr eax, 0x10
push 0
push str.root.xml
test eax, eax
je 0x4716f6
lea edi, [ebx + 4]
mov ecx, edi
call fcn.004bcf10
test al, al
jne 0x471772
xor edi, edi
jmp 0x4717b9
call fcn.004ab020
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x47170f
xor edi, edi
jmp 0x4717b9
push ebx
call fcn.004ab020
push eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x28c], eax
test eax, eax
jne 0x47172d
xor edi, edi
jmp 0x4717b9
mov edi, dword [ebp - 0x288]
push 0
push ebx
add edi, 4
call fcn.004ab020
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
mov ecx, edi
call fcn.004bd5c0
test al, al
jne 0x471762
xor edi, edi
jmp 0x4717b9
mov ebx, dword [ebp - 0x288]
mov dword [ebx + 0x144], 0
push 0x20c
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.005219d0
add esp, 0xc
lea eax, [ebp - 0x284]
mov ecx, edi
push eax
call fcn.004bcd20
lea ecx, [ebp - 0x284]
call fcn.004bce70
test al, al
jne 0x4717a9
xor edi, edi
jmp 0x4717b9
lea eax, [ebp - 0x284]
mov ecx, ebx
push eax
call fcn.004718c0
mov edi, eax
mov edx, dword [ebp - 0x290]
cmp edx, 8
jb 0x4717f5
mov ecx, dword [ebp - 0x2a4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4717eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471847
push edx
push ecx
call fcn.00497cc1
add esp, 8
xor eax, eax
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 7
mov word [ebp - 0x2a4], ax
test esi, esi
je 0x47181f
push esi
call fcn.0041f3e0
add esp, 4
lea ecx, [ebp - 0x74]
call fcn.0047ee20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497cb0
mov esp, ebp
pop ebp
ret 4
call fcn.00524999
int3