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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d830
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 0x410ede
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x410ed3
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x410ed3
push edx
call fcn.0040c4e0
add esp, 4
mov dword [ebp - 0x14], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x410ecc
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 0x410ede
push dword [eax - 0xc]
mov ecx, ebx
push eax
call fcn.0040c620
lea ecx, [ebp - 0xb4]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.00409ed0
mov byte [ebp - 4], 3
call fcn.00437ca1
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4114b6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 6
call fcn.00437ca1
mov ecx, eax
mov byte [ebp - 4], 5
test ecx, ecx
je 0x4114c0
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.0040ff00
test eax, eax
je 0x411401
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 0x410ffc
jl 0x410f8e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
test eax, eax
jae 0x411002
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff0
lea ecx, [ebx + 4]
call fcn.00410100
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 0x410fff
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 0x4113e5
jb 0x411020
cmp eax, edx
jae 0x4113e5
nop
push 0
push ecx
push eax
lea ecx, [ebx + 4]
call fcn.00410100
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.00562e6c
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call fcn.00562e6c
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 0x4110cd
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.0055a7b0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
xor edx, edx
test ecx, ecx
je 0x411117
mov ebx, dword [ebp - 0x28]
mov esi, edx
mov edi, ecx
nop dword [eax + eax]
mov al, byte [esi + 0x5c6320]
xor ecx, ecx
xor byte [ebx + edx], al
inc edx
cmp esi, 0x17
lea eax, [esi + 1]
cmovne ecx, eax
mov esi, ecx
cmp edx, edi
jb 0x4110f0
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 0x411187
xor ecx, ecx
jmp 0x4111a0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411190
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x9c]
call fcn.0040c620
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 0x4111c7
xor ecx, ecx
jmp 0x4111e0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4111d0
sub ecx, dword [ebp - 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.0040c620
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.0040b520
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 0x4114ca
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, dword [ebp - 0x10]
or ecx, edx
jge 0x411281
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0040c5b0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
push eax
call fcn.00562a38
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x4114ca
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
mov ecx, dword [eax - 0xc]
add ecx, ecx
cmp dword [eax - 4], 1
mov dword [ebp - 0x1c], ecx
jle 0x4112d2
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040c340
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 0x41130d
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 + 0x5c5b20]
xor eax, dword [ecx*8 + 0x5c5b24]
sub edi, 1
jne 0x4112e2
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 0x411326
mov dword [ecx], edx
mov dword [ecx + 4], eax
add dword [ebx + 0x60], 8
jmp 0x411333
lea eax, [ebp - 0x4c]
push eax
push ecx
lea ecx, [ebx + 0x5c]
call fcn.00411eb0
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x20]
cmp eax, dword [ebx + 0x28]
je 0x411352
lea ecx, [ebp - 0xb4]
push ecx
mov ecx, eax
call fcn.0040af50
add dword [ebx + 0x24], 0x68
jmp 0x41135f
lea edx, [ebp - 0xb4]
push edx
push eax
call fcn.00412010
add dword [ebx + 0x10], 1
push dword [ebp - 0x28]
adc dword [ebx + 0x14], 0
call fcn.0055d993
push dword [ebp - 0x14]
call fcn.0055d993
mov edx, dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp + 0x18]
mov eax, edx
or eax, ecx
je 0x411392
cmp dword [ebx + 0x14], ecx
ja 0x4113ca
jb 0x411392
cmp dword [ebx + 0x10], edx
jae 0x4113ca
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 0x4113b1
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 0x4113e5
mov eax, dword [ebp - 0x24]
jb 0x411020
cmp eax, dword [ebp - 0x34]
jmp 0x411019
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4113e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4113fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0
mov ebx, 1
jmp 0x411403
xor ebx, ebx
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41141b
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 0x411435
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 0x41144f
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 0x41146c
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 0x411489
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 0x4114a1
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.004027e0
push 0x80004005
call fcn.004027e0
push 0x80070057
call fcn.004027e0
int3