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

Disassembly:
push 0xffffffffffffffff
push 0x446fa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x38]
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 0x40a484
push ebx
push ebx
lea edx, [esp + 0x44]
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
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 0x40a898
mov eax, dword [esp + 0x14]
cmp eax, 0xb2
mov dword [esp + 0x1c], eax
jb 0x40a4e2
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edi
call ebp
test eax, eax
jne 0x40a4b2
push ebx
push ebx
lea edx, [esp + 0x44]
jmp 0x40a41c
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 0x40a52b
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 0x40a45e
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 0x40a5bf
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 0x40a45e
mov dword [esi + 0x18], eax
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x40]
push 4
push ecx
push edi
mov dword [esp + 0x4c], ebx
call ebp
cmp dword [esp + 0x10], 1
jae 0x40a60b
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 0x40a45e
mov edx, dword [esp + 0x38]
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
lea ecx, [esp + 0x20]
call fcn.0040ab00
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x34], ebx
call fcn.0040b4a0
push eax
mov ecx, esi
call fcn.00409bb0
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040b4a0
push eax
call fcn.0042e02a
mov edx, dword [esp + 0x40]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x40]
push eax
push eax
push edx
mov ecx, esi
call fcn.00409f80
push eax
lea ecx, [esp + 0x28]
call fcn.0040b370
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040b4a0
push eax
push ebx
push edi
call ebp
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push edx
call fcn.0040b4a0
push eax
mov eax, dword [esi]
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.0040b4c0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jae 0x40a700
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 0x40a764
mov eax, dword [esp + 0x1c]
cmp eax, 0xb3
je 0x40a724
cmp eax, 0xb4
je 0x40a724
cmp eax, 0xc4
je 0x40a724
cmp eax, 0xb5
jne 0x40a7cd
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 0x40a79b
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
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040ab20
xor al, al
jmp 0x40a898
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]
cmp eax, 0xb4
je 0x40a80d
cmp eax, 0xc4
je 0x40a80d
cmp eax, 0xb5
je 0x40a885
mov ecx, dword [esp + 0x38]
xor eax, eax
test ecx, ecx
jle 0x40a885
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 + 0x38]
cmp eax, ecx
jl 0x40a7f4
jmp 0x40a885
cmp eax, 0xb5
je 0x40a885
lea ecx, [esp + 0x40]
call fcn.0040d3c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov edx, dword [esi]
push 5
push eax
push ecx
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x40], 1
call fcn.0040d9d0
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040da30
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0040da90
mov ecx, dword [esp + 0x38]
mov edx, dword [esi]
push eax
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.0040daf0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x40]
mov dword [esi + 8], eax
mov byte [esp + 0x30], 0
call fcn.004099f0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040ab20
mov al, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc