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

Disassembly:
push 0xffffffffffffffff
push 0x445f60
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 0x40a4e4
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, 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
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 0x40a8f8
mov eax, dword [esp + 0x14]
cmp eax, 0xb2
mov dword [esp + 0x1c], eax
jb 0x40a542
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edi
call ebp
test eax, eax
jne 0x40a512
push ebx
push ebx
lea edx, [esp + 0x44]
jmp 0x40a47c
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 0x40a58b
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 0x40a4be
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 0x40a61f
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 0x40a4be
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 0x40a66b
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 0x40a4be
mov edx, dword [esp + 0x38]
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
lea ecx, [esp + 0x20]
call fcn.0040ab60
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x34], ebx
call fcn.0040b500
push eax
mov ecx, esi
call fcn.00409c10
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040b500
push eax
call fcn.0042cfe8
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.00409fe0
push eax
lea ecx, [esp + 0x28]
call fcn.0040b3d0
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040b500
push eax
push ebx
push edi
call ebp
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push edx
call fcn.0040b500
push eax
mov eax, dword [esi]
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.0040b520
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
cmp ecx, eax
jae 0x40a760
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 0x40a7c4
mov eax, dword [esp + 0x1c]
cmp eax, 0xb3
je 0x40a784
cmp eax, 0xb4
je 0x40a784
cmp eax, 0xc4
je 0x40a784
cmp eax, 0xb5
jne 0x40a82d
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 0x40a7fb
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
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040ab80
xor al, al
jmp 0x40a8f8
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]
cmp eax, 0xb4
je 0x40a86d
cmp eax, 0xc4
je 0x40a86d
cmp eax, 0xb5
je 0x40a8e5
mov ecx, dword [esp + 0x38]
xor eax, eax
test ecx, ecx
jle 0x40a8e5
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 0x40a854
jmp 0x40a8e5
cmp eax, 0xb5
je 0x40a8e5
lea ecx, [esp + 0x40]
call fcn.004033b0
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.0040d930
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040d990
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0040d9f0
mov ecx, dword [esp + 0x38]
mov edx, dword [esi]
push eax
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.0040da50
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x40]
mov dword [esi + 8], eax
mov byte [esp + 0x30], 0
call fcn.00405620
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040ab80
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