Function at 0x415070
Capabilities:
Encode data using xor
Get system firmware table
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473a76
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x493018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
test edx, edx
je 0x415298
mov dword [ebp - 0x410], 0
lea esi, [ecx + 1]
mov dword [ebp - 0x40c], 0xf
mov byte [ebp - 0x420], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4150c5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x420]
call fcn.00401ed0
push 0x50
lea eax, [ebp - 0x400]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0044f430
add esp, 0xc
lea ecx, [ebp - 0x400]
call fcn.004178c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x40c], 0x10
mov eax, dword [ebp - 0x410]
cmovae ecx, dword [ebp - 0x420]
add eax, ecx
push eax
push ecx
lea eax, [ebp - 0x3b0]
push eax
lea ecx, [ebp - 0x400]
call fcn.00419d90
lea ecx, [ebp - 0x400]
call fcn.00417800
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x40c]
cmp edx, 0x10
jb 0x41517d
mov ecx, dword [ebp - 0x420]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415173
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41543a
push edx
push ecx
call fcn.00437a20
add esp, 8
cmp dword [ebp - 0x39c], 8
lea eax, [ebp - 0x3b0]
push 0x487d64
cmovae eax, dword [ebp - 0x3b0]
push eax
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0xf
mov byte [ebp - 0x420], 0
call fcn.00456d10
mov esi, eax
add esp, 8
test esi, esi
je 0x4151e3
push 2
push 0
push esi
call fcn.00456755
push esi
call fcn.00452e77
add esp, 0x10
cmp eax, 0x1c2
je 0x415233
push esi
call fcn.004530f8
add esp, 4
push str.load_encryption_key:File_open_error_n
call fcn.00402270
add esp, 4
mov byte [ebp - 0x401], 0
mov edx, dword [ebp - 0x39c]
cmp edx, 8
jb 0x41528d
mov ecx, dword [ebp - 0x3b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415283
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41543f
jmp 0x415283
push 0x1c3
lea eax, [ebp - 0x1d4]
push 0
push eax
call fcn.0044f430
push 0
push 0
push esi
call fcn.00456755
push esi
push 0x1c2
lea eax, [ebp - 0x1d4]
push 1
push eax
call fcn.004570e5
push esi
call fcn.004530f8
add esp, 0x2c
lea ecx, [ebp - 0x1d4]
call fcn.00415450
mov byte [ebp - 0x401], al
jmp 0x4151f7
push edx
push ecx
call fcn.00437a20
add esp, 8
mov al, byte [ebp - 0x401]
jmp 0x41541f
push 0x1c3
lea eax, [ebp - 0x398]
push 0
push eax
call fcn.0044f430
add esp, 0xc
call fcn.00405410
mov ecx, eax
cmp byte [ecx + 0x1c2], 0
je 0x41531d
movaps xmm2, xmmword [0x489100]
lea eax, [ecx + 0x20]
mov esi, 7
mov edx, 0x1c0
lea eax, [eax + 0x40]
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x60]
pxor xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [eax - 0x50]
pxor xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [eax - 0x40]
pxor xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
sub esi, 1
jne 0x4152d2
xor byte [edx + ecx], 0x2e
inc edx
cmp edx, 0x1c3
jb 0x415310
mov edx, 0x4992a0
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x415324
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
push 0
push 0
push 0
push 0x52534d42
call edi
mov esi, eax
push esi
call fcn.00457427
add esp, 4
mov dword [ebp - 0x408], eax
push esi
push eax
push 0
push 0x52534d42
call edi
mov edx, dword [ebp - 0x408]
mov ecx, dword [edx + 4]
lea esi, [edx + 8]
add ecx, 8
add ecx, edx
cmp esi, ecx
jae 0x415400
nop dword [eax]
mov al, byte [esi + 1]
cmp al, 4
jb 0x415400
cmp byte [esi], 1
jne 0x415390
cmp al, 0x19
jae 0x4153b9
movzx eax, al
add eax, esi
cmp eax, ecx
jae 0x4153b0
nop dword [eax]
cmp byte [eax], 0
jne 0x4153ab
cmp byte [eax + 1], 0
je 0x4153b0
inc eax
cmp eax, ecx
jb 0x4153a0
lea esi, [eax + 2]
cmp esi, ecx
jb 0x415380
jmp 0x415400
mov dh, 1
xor edi, edi
mov al, dh
mov byte [ebp - 0x401], al
test dh, dh
jne 0x4153cd
test al, al
je 0x4153fa
mov dl, byte [esi + edi + 8]
xor ecx, ecx
inc edi
movzx eax, dh
test dl, dl
cmove ecx, eax
movzx eax, byte [ebp - 0x401]
mov dh, cl
xor ecx, ecx
cmp dl, 0xff
cmove ecx, eax
mov al, cl
mov byte [ebp - 0x401], al
cmp edi, 0x10
jl 0x4153c5
mov edx, dword [ebp - 0x408]
push edx
call fcn.00456dea
push 0
push str.default_key:_d_n
call fcn.00402270
add esp, 0xc
mov ecx, 0x4992a0
call fcn.00415450
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004379df
mov esp, ebp
pop ebp
ret
call fcn.0045279a
call fcn.0045279a
int3