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

Disassembly:
push 0xffffffffffffffff
push 0x446f78
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 0x40a043
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, 0x4672d8
call fcn.00427794
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
push str.SDC_Header::Load______short_read_on_random_value
jmp 0x40a2a8
mov eax, dword [esp + 0x14]
cmp eax, 0xb2
mov dword [esp + 0x1c], eax
jb 0x40a09e
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edi
call ebp
test eax, eax
jne 0x40a06e
push ebx
push ebx
lea edx, [esp + 0x28]
jmp 0x409ffc
mov eax, dword [esp + 0x14]
mov ecx, 0x4672d8
push eax
push str.load__ranval___________
call fcn.00427794
mov ecx, eax
call fcn.00427d6b
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
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 0x40a0e7
push str.SDC_Header::Load______short_read_on_header_size
mov ecx, 0x4672d8
call fcn.00427794
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
push str.SDC_Header::Load______short_read_on_header_size
jmp 0x40a2a8
mov eax, dword [esp + 0x18]
mov ecx, 0x4672d8
push eax
push str.load__header_size______
call fcn.00427794
mov ecx, eax
call fcn.00427d6b
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00409c70
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 0x40a17b
push str.SDC_Header::Load______short_read_on_header
mov ecx, 0x4672d8
call fcn.00427794
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
push str.SDC_Header::Load______short_read_on_header
jmp 0x40a2a8
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 0x40a1c7
push str.SDC_Header::Load______short_read_on_filenames_size
mov ecx, 0x4672d8
call fcn.00427794
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
push str.SDC_Header::Load______short_read_on_filenames_size
jmp 0x40a2a8
mov edx, dword [esp + 0x34]
mov ecx, 0x4672d8
push edx
push str.load__filenames_size___
call fcn.00427794
mov ecx, eax
call fcn.00427d6b
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
mov eax, dword [esp + 0x34]
mov ecx, esi
push eax
call fcn.00409bb0
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 0x40a24b
push str.SDC_Header::Load______short_read_on_filenames
mov ecx, 0x4672d8
call fcn.00427794
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
push str.SDC_Header::Load______short_read_on_filenames
jmp 0x40a2a8
mov eax, dword [esp + 0x1c]
cmp eax, 0xb3
je 0x40a268
cmp eax, 0xb4
je 0x40a268
cmp eax, 0xc4
jne 0x40a302
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 0x40a2ce
push str.SDC_Header::Load______short_read_on_CRC
mov ecx, 0x4672d8
call fcn.00427794
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
push str.SDC_Header::Load______short_read_on_CRC
mov ecx, 0x467338
call fcn.00427794
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
xor al, al
jmp 0x40a3ac
mov eax, dword [ebx]
mov ecx, 0x4672d8
push eax
push str.load__CRC___
call fcn.00427794
mov ecx, eax
call fcn.004275cc
push 0x403350
push 0xa
mov ecx, eax
call fcn.00427550
mov ecx, eax
call fcn.00403330
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, 0xb4
je 0x40a337
cmp eax, 0xc4
je 0x40a337
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, ebx
jle 0x40a3aa
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 0x40a31e
jmp 0x40a3aa
lea ecx, [esp + 0x1c]
call fcn.0040d3c0
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.0040d9d0
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0040da30
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.0040da90
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
push eax
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.0040daf0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.004099f0
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