Function at 0x40a010
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x445f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x34]
mov esi, ecx
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x40a0a3
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push str.SDC_Header::Load______short_read_on_random_value
mov ecx, 0x464220
call fcn.004267aa
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
push str.SDC_Header::Load______short_read_on_random_value
jmp 0x40a308
mov eax, dword [esp + 0x14]
cmp eax, 0xb2
mov dword [esp + 0x1c], eax
jb 0x40a0fe
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edi
call ebp
test eax, eax
jne 0x40a0ce
push ebx
push ebx
lea edx, [esp + 0x28]
jmp 0x40a05c
mov eax, dword [esp + 0x14]
mov ecx, 0x464220
push eax
push str.load__ranval___________
call fcn.004267aa
mov ecx, eax
call fcn.00426d80
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push edi
mov dword [esp + 0x2c], ebx
call ebp
cmp dword [esp + 0x10], 1
jae 0x40a147
push str.SDC_Header::Load______short_read_on_header_size
mov ecx, 0x464220
call fcn.004267aa
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
push str.SDC_Header::Load______short_read_on_header_size
jmp 0x40a308
mov eax, dword [esp + 0x18]
mov ecx, 0x464220
push eax
push str.load__header_size______
call fcn.004267aa
mov ecx, eax
call fcn.00426d80
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00409cd0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ebx
push edx
mov edx, dword [esi + 0xc]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 3
push ecx
push edx
push edi
call ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jae 0x40a1db
push str.SDC_Header::Load______short_read_on_header
mov ecx, 0x464220
call fcn.004267aa
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
push str.SDC_Header::Load______short_read_on_header
jmp 0x40a308
mov dword [esi + 0x18], eax
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x3c]
push 4
push ecx
push edi
mov dword [esp + 0x48], ebx
call ebp
cmp dword [esp + 0x10], 1
jae 0x40a227
push str.SDC_Header::Load______short_read_on_filenames_size
mov ecx, 0x464220
call fcn.004267aa
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
push str.SDC_Header::Load______short_read_on_filenames_size
jmp 0x40a308
mov edx, dword [esp + 0x34]
mov ecx, 0x464220
push edx
push str.load__filenames_size___
call fcn.004267aa
mov ecx, eax
call fcn.00426d80
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
mov eax, dword [esp + 0x34]
mov ecx, esi
push eax
call fcn.00409c10
mov edx, dword [esp + 0x34]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ebx
push ecx
push edx
push eax
push edi
call ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
cmp ecx, eax
jae 0x40a2ab
push str.SDC_Header::Load______short_read_on_filenames
mov ecx, 0x464220
call fcn.004267aa
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
push str.SDC_Header::Load______short_read_on_filenames
jmp 0x40a308
mov eax, dword [esp + 0x1c]
cmp eax, 0xb3
je 0x40a2c8
cmp eax, 0xb4
je 0x40a2c8
cmp eax, 0xc4
jne 0x40a362
lea edx, [esp + 0x10]
push 0
lea ebx, [esi + 0x20]
push edx
push 4
push ebx
push edi
call ebp
cmp dword [esp + 0x10], 1
jae 0x40a32e
push str.SDC_Header::Load______short_read_on_CRC
mov ecx, 0x464220
call fcn.004267aa
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
push str.SDC_Header::Load______short_read_on_CRC
mov ecx, 0x464280
call fcn.004267aa
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
xor al, al
jmp 0x40a40c
mov eax, dword [ebx]
mov ecx, 0x464220
push eax
push str.load__CRC___
call fcn.004267aa
mov ecx, eax
call fcn.004265e2
push 0x403390
push 0xa
mov ecx, eax
call fcn.00426566
mov ecx, eax
call fcn.00403370
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, 0xb4
je 0x40a397
cmp eax, 0xc4
je 0x40a397
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, ebx
jle 0x40a40a
mov ecx, dword [esi]
mov dl, byte [esp + 0x14]
add ecx, eax
mov bl, byte [ecx]
xor bl, dl
inc eax
mov byte [ecx], bl
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jl 0x40a37e
jmp 0x40a40a
lea ecx, [esp + 0x1c]
call fcn.004033b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
push 5
push eax
push ecx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], ebx
call fcn.0040d930
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0040d990
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.0040d9f0
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
push eax
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.0040da50
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.00405620
mov al, 1
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4