Function at 0x4026f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x436008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], edi
mov eax, dword [edi + 0x10]
cmp eax, 0x1227
je 0x402723
cmp eax, 0x1222
je 0x402723
mov esi, 1
jmp 0x402725
xor esi, esi
cmp dword [edi + 0x60], 0
mov dword [ebp - 0x40], esi
jne 0x402742
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
test esi, esi
mov dword [ebp - 0x14], 0x10005ac
mov eax, 0x8000
mov dword [ebp - 0x10], 0x10444655
mov ecx, 0x800
cmovne ecx, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x50], ecx
div ecx
mov dword [ebp - 0x48], edx
mov edx, eax
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], edx
je 0x402787
inc edx
mov dword [ebp - 0x3c], edx
jmp 0x40278a
mov dword [ebp - 0x48], ecx
mov ecx, edi
push 0x2710
test esi, esi
je 0x402815
push 0
push 0
push 0
push 0
push 0
mov dl, 0x41
call fcn.00402060
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x4028c7
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x38], eax
test edx, edx
jle 0x402c2c
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x30], ecx
nop
lea esi, [eax + 1]
mov dword [ebp - 0x4c], esi
cmp dword [ebp - 0x4c], edx
mov esi, dword [ebp - 0x48]
cmovl esi, dword [ebp - 0x50]
cmp dword [ebp - 0x40], 0
je 0x4028da
push ecx
lea eax, [ebp - 0x28]
push eax
push esi
push ecx
mov ecx, edi
call fcn.00402190
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x2c], ecx
jmp 0x402ab3
push 1
lea eax, [ebp - 0x21]
mov byte [ebp - 0x21], 0
push eax
push 0
push 0
push 5
mov dl, 0xa1
call fcn.00402060
add esp, 0x18
cmp eax, 1
jne 0x402b5e
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [ebp - 0x21]
mov eax, ecx
sub eax, 2
je 0x4027ba
sub eax, 8
je 0x402885
cmp dword [0x4486b4], 0
je 0x402874
push ecx
push str.Unexpected_state__d__issuing_ABORT_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401090
add esp, 0xc
push 0x2710
push 0
push 0
push 0
push 0
push 6
jmp 0x4028b6
cmp dword [0x4486b4], 0
je 0x4028a7
push str.DFU_ERROR__issuing_CLRSTATUS_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401090
add esp, 8
push 0x2710
push 0
push 0
push 0
push 0
push 4
mov dl, 0x21
mov ecx, edi
call fcn.00402060
mov ecx, 0xfffffffa
add esp, 0x18
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
xor edx, edx
test esi, esi
jle 0x402904
mov edi, dword [ebp - 0x30]
movzx ecx, byte [edi + edx]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4315a0]
cmp edx, esi
jl 0x4028e3
mov edi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
cmp dword [ebp - 0x4c], edx
jne 0x402a95
lea eax, [esi + 0x10]
cmp eax, dword [ebp - 0x50]
jle 0x402942
push 0x2710
push esi
push ecx
push 0
push dword [ebp - 0x38]
mov dl, 0x21
mov ecx, edi
push 1
call fcn.00402060
add esp, 0x18
mov dword [ebp - 0x28], eax
cmp eax, esi
jne 0x402b5e
add dword [ebp - 0x34], esi
xor esi, esi
mov eax, ebx
shr ebx, 8
not eax
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
not eax
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
not eax
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
not eax
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
xor eax, 0xffffffac
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
xor eax, 5
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
movzx eax, bl
shr ebx, 8
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
xor eax, 1
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
xor eax, 0x55
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
xor eax, 0x46
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
xor eax, 0x44
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
mov eax, ebx
shr ebx, 8
xor eax, 0x10
movzx eax, al
xor ebx, dword [eax*4 + 0x4315a0]
lea eax, [esi + 0x10]
push eax
mov dword [ebp - 0x44], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ecx, eax
mov dword [ebp - 0x54], ecx
test esi, esi
jle 0x402a3a
push esi
push dword [ebp - 0x30]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x54]
add esp, 0xc
movq xmm0, qword [ebp - 0x18]
mov dl, 0x21
mov eax, dword [ebp - 0x10]
movq qword [ecx + esi], xmm0
mov dword [ecx + esi + 8], eax
mov eax, ebx
shr eax, 8
mov byte [ecx + esi + 0xd], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + esi + 0xe], al
mov eax, ebx
push 0x2710
shr eax, 0x18
mov byte [ecx + esi + 0xc], bl
mov byte [ecx + esi + 0xf], al
mov esi, dword [ebp - 0x44]
push esi
push ecx
push 0
push dword [ebp - 0x38]
mov ecx, edi
push 1
call fcn.00402060
push dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x1c
jmp 0x402ab0
push 0x2710
push esi
push ecx
push 0
push eax
push 1
mov dl, 0x21
mov ecx, edi
call fcn.00402060
add esp, 0x18
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], esi
jne 0x402b5e
cmp dword [ebp - 0x40], 0
jne 0x402b74
cmp dword [edi + 0x60], 0
je 0x402cd7
xor eax, eax
mov dl, 0xa1
push 0x2710
push 6
mov dword [ebp - 0x20], eax
mov ecx, edi
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 3
call fcn.00402060
add esp, 0x18
cmp eax, 6
jne 0x402cbf
xor ecx, ecx
cmp byte [ebp - 0x1c], 5
mov dword [ebp - 0x2c], ecx
je 0x402b7c
xor eax, eax
nop dword [eax]
inc eax
cmp dword [edi + 0x60], 0
mov dword [ebp - 0x44], eax
je 0x402b4b
xor eax, eax
mov dl, 0xa1
push 0x2710
push 6
mov dword [ebp - 0xc], eax
mov ecx, edi
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 3
call fcn.00402060
add esp, 0x18
cmp eax, 6
jne 0x402b4b
cmp byte [ebp - 8], 5
je 0x402b7c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x44]
cmp eax, 0x14
jl 0x402b10
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x402cda
mov edx, dword [ebp - 0x34]
mov ecx, dword [edi + 0x74]
add edx, esi
mov dword [ebp - 0x34], edx
test ecx, ecx
je 0x402be6
movd xmm1, edx
mov eax, edx
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
mov dword [ebp - 0x68], 6
mov dword [ebp - 0x74], str.Uploading
mov dword [ebp - 0x78], edx
addsd xmm1, qword [eax*8 + 0x432de0]
mov eax, dword [ebp + 8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x432de0]
lea eax, [ebp - 0x78]
push eax
push edi
divsd xmm1, xmm0
mulsd xmm1, qword [0x432db8]
movsd qword [ebp - 0x70], xmm1
call ecx
add esp, 8
jmp 0x402c0f
cmp dword [0x4486b4], 0
je 0x402c0f
push dword [ebp + 8]
push edx
push dword [ebp - 0x28]
push 0x4379a0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401090
add esp, 0x14
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
cmp eax, edx
jl 0x4027e0
mov esi, dword [ebp - 0x40]
cmp dword [ebp + 0xc], 0
je 0x402cac
test esi, esi
jne 0x402cac
push 0x2710
push esi
push dword [ebp - 0x58]
mov ecx, edi
push esi
push edx
push 1
mov dl, 0x21
call fcn.00402060
add esp, 0x18
nop
cmp dword [edi + 0x60], 0
je 0x40272e
xor eax, eax
mov dl, 0xa1
push 0x2710
push 6
mov dword [ebp - 0xc], eax
mov ecx, edi
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 3
call fcn.00402060
add esp, 0x18
cmp eax, 6
jne 0x402ced
inc esi
cmp esi, 2
jl 0x402c50
mov eax, dword [edi + 0x60]
test eax, eax
je 0x402cac
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0
push 0x22000c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
mov ecx, 0xfffffff9
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
or ecx, 0xffffffff
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xfffffff9
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042eb3e
mov esp, ebp
pop ebp
ret