Function at 0x411240
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov esi, dword [ebx]
lea edx, [eax - 0x10]
sub esi, 0x10
cmp edx, esi
je 0x4112d2
mov ecx, dword [esi + 0xc]
lea edi, [esi + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x4112c7
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x4112c7
push edx
call fcn.0040c780
add esp, 4
mov dword [ebp - 0x14], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4112c0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4112d2
push dword [edx + 4]
mov ecx, ebx
push eax
call fcn.0040c8c0
lea ecx, [ebp - 0xb4]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.0040a1d0
mov byte [ebp - 4], 3
call fcn.00438044
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4118a5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 6
call fcn.00438044
mov ecx, eax
mov byte [ebp - 4], 5
test ecx, ecx
je 0x4118af
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x3c], edi
push 0x40
mov byte [ebp - 4], 7
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.004101e0
test eax, eax
je 0x4117f0
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x14]
xor edx, edx
add edx, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x34], edx
adc ecx, 0
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jg 0x4113f0
jl 0x411382
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
test eax, eax
jae 0x4113f6
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff0
lea ecx, [ebx + 4]
call fcn.004103b0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 8
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [ebx + 8]
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
not dword [ebp - 0x20]
lea eax, [ebp - 0x14]
not dword [ebp - 0x1c]
push 0
push eax
push 8
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor eax, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp + 0x10], ecx
jmp 0x4113f3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
add edx, 0xffffffe8
mov dword [ebp - 0x34], edx
adc dword [ebp - 0x30], 0xffffffff
cmp ecx, dword [ebp - 0x30]
ja 0x4117d4
jb 0x411413
cmp eax, edx
jae 0x4117d4
push 0
push ecx
push eax
lea ecx, [ebx + 4]
call fcn.004103b0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x2c]
push 0
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x40]
mov eax, ecx
mov dword [ebp - 0x10], ecx
shr eax, 0x18
shr ecx, 0x10
xor al, cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xf]
xor byte [ebp - 0xe], al
xor al, cl
mov byte [ebp - 0xf], al
not cl
mov byte [ebp - 0x10], cl
mov eax, dword [ebp - 0x10]
add eax, 0xfffcea1c
push 1
push eax
mov dword [ebp - 0x10], eax
call fcn.00563978
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call fcn.00563978
mov ecx, eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x4114c0
push 0
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0055acc0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
xor edx, edx
test ecx, ecx
je 0x411507
mov ebx, dword [ebp - 0x28]
mov esi, edx
mov edi, ecx
nop
mov al, byte [esi + 0x5c5f40]
xor ecx, ecx
xor byte [edx + ebx], al
inc edx
cmp esi, 0x17
lea eax, [esi + 1]
cmovne ecx, eax
mov esi, ecx
cmp edx, edi
jb 0x4114e0
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
xor eax, eax
add ecx, dword [ebp - 0x24]
adc eax, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x84], ecx
mov ecx, dword [edx + 4]
adc eax, 0
mov dword [ebp - 0x80], eax
mov eax, dword [edx]
mov dword [ebp - 0xb4], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0xac], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [edx + 0x38]
mov dword [ebp - 0xa0], eax
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [edx + 0x40]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
add edx, 0x44
jne 0x411577
xor ecx, ecx
jmp 0x411590
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411580
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x9c]
call fcn.0040c8c0
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x28]
add ecx, 0x46
mov edx, dword [eax - 0xc]
lea edx, [ecx + edx*2]
test edx, edx
jne 0x4115b7
xor ecx, ecx
jmp 0x4115d0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4115c0
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.0040c8c0
mov eax, dword [ebp - 0xac]
add dword [ebx + 0x30], eax
mov eax, dword [ebp - 0xa8]
adc dword [ebx + 0x34], eax
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0xb0]
adc edx, dword [ebp - 0x80]
mov dword [ebp - 0x24], eax
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x2c], edx
sbb edx, dword [ebp - 0x90]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x88], edx
push eax
call fcn.0040b7a0
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x10], ecx
test ecx, ecx
js 0x4118b9
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, dword [ebp - 0x10]
or ecx, edx
jge 0x411671
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0040c850
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push eax
call fcn.00562f18
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x4118b9
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp dword [eax - 4], 1
mov edx, dword [eax - 0xc]
lea ecx, [edx + edx]
mov dword [ebp - 0x1c], ecx
jle 0x4116c1
push edx
lea ecx, [ebp - 0x18]
call fcn.0040c500
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
or edx, 0xffffffff
or eax, 0xffffffff
test ecx, ecx
je 0x4116fc
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, edx
shrd edx, eax, 8
movzx ecx, cl
shr eax, 8
xor edx, dword [ecx*8 + 0x5c5740]
xor eax, dword [ecx*8 + 0x5c5744]
sub edi, 1
jne 0x4116d1
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebx + 0x60]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
cmp ecx, dword [ebx + 0x64]
je 0x411715
mov dword [ecx], edx
mov dword [ecx + 4], eax
add dword [ebx + 0x60], 8
jmp 0x411722
lea eax, [ebp - 0x4c]
push eax
push ecx
lea ecx, [ebx + 0x5c]
call fcn.00412250
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x20]
cmp eax, dword [ebx + 0x28]
je 0x411741
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, eax
call fcn.0040b350
add dword [ebx + 0x24], 0x68
jmp 0x41174e
lea edx, [ebp - 0xb4]
push edx
push eax
call fcn.004123b0
add dword [ebx + 0x10], 1
push dword [ebp - 0x28]
adc dword [ebx + 0x14], 0
call fcn.0055de73
push dword [ebp - 0x14]
call fcn.0055de73
mov edx, dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp + 0x18]
mov eax, edx
or eax, ecx
je 0x411781
cmp dword [ebx + 0x14], ecx
ja 0x4117b9
jb 0x411781
cmp dword [ebx + 0x10], edx
jae 0x4117b9
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4117a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x30]
ja 0x4117d4
mov eax, dword [ebp - 0x24]
jb 0x411413
cmp eax, dword [ebp - 0x34]
jmp 0x41140d
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4117d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4117e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0
mov ebx, 1
jmp 0x4117f2
xor ebx, ebx
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41180a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411824
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41183e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x98]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41185b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411878
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x411890
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.004027b0
push 0x80004005
call fcn.004027b0
push 0x80070057
call fcn.004027b0
int3