Function at 0x40ba80
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x526500]
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
push esi
push edi
cmp eax, ebp
je 0x40b82d
mov ecx, dword [eax + 0xc]
push eax
mov dword [0x526500], ecx
call fcn.00437e42
mov eax, dword [0x526500]
add esp, 4
cmp eax, ebp
jne 0x40b812
mov eax, dword [0x526518]
mov dword [0x526504], ebp
cmp eax, ebp
je 0x40b85a
lea esp, [esp]
mov edx, dword [eax]
push eax
mov dword [0x526518], edx
call fcn.00437e42
mov eax, dword [0x526518]
add esp, 4
cmp eax, ebp
jne 0x40b840
mov dword [0x52651c], ebp
call fcn.0040b7d0
mov ebx, dword [0x5264f8]
mov dword [esp + 0x10], ebx
cmp ebx, ebp
je 0x40b946
jmp 0x40b884
mov ebx, dword [esp + 0x10]
mov eax, 0xbfff
and word [ebx + 0x14], ax
push 0x38
call fcn.00437d78
mov esi, ebx
mov ecx, 0xe
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
mov ebx, dword [ebx + 8]
add esp, 4
mov dword [esp + 0x14], eax
nop
and byte [ebx + 0xf], 0xf7
push 0x188
call fcn.00437d78
mov ebp, eax
push 0x52651c
mov ecx, 0x62
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
push 0x526518
push ebp
mov dword [ebp + 8], esi
call fcn.0040b770
add esp, 0x10
cmp dword [esi + 8], 0
jne 0x40b8f2
mov dword [esi + 8], ebp
mov eax, ebp
jmp 0x40b8f6
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x10]
mov dword [ebp + 4], ecx
mov dword [eax + 4], ebp
mov ebx, dword [ebx + 4]
mov dword [esp + 0x18], ebp
cmp ebx, dword [edx + 8]
jne 0x40b8b0
cmp dword [0x526500], 0
mov eax, dword [esp + 0x14]
jne 0x40b923
mov dword [0x526500], eax
jmp 0x40b92c
mov ecx, dword [0x526504]
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x10]
mov dword [0x526504], eax
mov eax, dword [edx + 0xc]
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40b880
mov ebx, dword [0x526510]
cmp ebx, ebp
je 0x40b99c
cmp dword [ebx + 8], ebp
jne 0x40b984
and byte [ebx + 0xf], 0xf7
push 0x188
call fcn.00437d78
push 0x52651c
mov edi, eax
mov ecx, 0x62
mov esi, ebx
push 0x526518
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [eax + 4], eax
call fcn.0040b770
add esp, 0x10
mov ebx, dword [ebx]
cmp ebx, ebp
jne 0x40b950
mov eax, dword [0x526524]
pop edi
pop esi
pop ebp
mov dword [0x526520], eax
pop ebx
add esp, 0xc
ret
mov ecx, dword [0x526524]
pop edi
pop esi
pop ebp
mov dword [0x526520], ecx
pop ebx
add esp, 0xc
ret
sub esp, 0x20
push esi
xor esi, esi
cmp dword [0x526528], esi
jne 0x40c1fe
cmp dword [0x512c60], esi
push ebx
push ebp
push edi
mov dword [0x526528], 1
mov byte [esp + 0x13], 0
mov ebx, 0x464c60
jle 0x40be40
mov dword [esp + 0x2c], esi
lea esp, [esp]
mov al, byte [ebx + 0x21b]
cmp al, 0xff
je 0x40bca9
cmp al, 0xfe
je 0x40bca9
cmp al, 0xfd
je 0x40bca9
xor ecx, ecx
cmp al, 2
setne cl
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
dec ecx
and ecx, 0x38
add ecx, 7
movzx edx, cx
mov dword [esp + 0x28], edx
nop
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
lea ebx, [ebx]
cmp byte [ebx + 0x21b], 2
jne 0x40bb21
mov eax, dword [esp + 0x20]
add eax, ecx
jmp 0x40bb28
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx]
cmp byte [ebx + eax*2 + 0x21c], 0xff
jne 0x40bb40
cmp byte [ebx + eax*2 + 0x21d], 0xff
je 0x40bc6a
movzx eax, byte [esp + 0x18]
mov ecx, dword [0x512c68]
mov byte [ecx + 0x24], al
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x512c68]
push 0x80012040
push ecx
mov byte [edx + 0x25], al
call fcn.00409690
add esp, 8
test eax, eax
je 0x40bc6a
mov eax, dword [0x512c68]
test byte [eax + 0x30], 0x1f
jne 0x40bc6a
mov eax, dword [eax + 0x2c]
cmp eax, 0x200
jb 0x40bc6a
cmp eax, 0x2000
ja 0x40bc6a
push 0x188
call fcn.00437d78
push 0x188
mov ebp, eax
push 0
push ebp
call fcn.00437ed0
mov dl, byte [esp + 0x23]
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x24]
mov byte [ebp + 0xe], cl
mov dword [ebp + 4], ebp
mov byte [ebp + 0xc], dl
mov byte [ebp + 0xd], al
mov edx, dword [0x512c68]
mov eax, dword [edx + 0x28]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 0
mov ecx, dword [0x512c68]
mov edx, dword [ecx + 0x2c]
mov dword [ebp + 0x20], edx
mov esi, dword [0x512c68]
add esi, 0x30
lea edi, [ebp + 0x24]
mov ecx, 0x19
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
cmp byte [ebx + 0x21b], 2
jne 0x40bc2d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov dl, byte [ebx + eax*2 + 0x21c]
mov byte [ebp + 0x12], dl
mov al, byte [ebx + eax*2 + 0x21d]
mov byte [ebp + 0x11], al
jmp 0x40bc4c
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx]
mov cl, byte [ebx + eax*2 + 0x21c]
mov byte [ebp + 0x12], cl
mov dl, byte [ebx + eax*2 + 0x21d]
mov byte [ebp + 0x11], dl
cmp dword [0x526510], 0
jne 0x40bc5d
mov dword [0x526510], ebp
jmp 0x40bc64
mov eax, dword [0x526514]
mov dword [eax], ebp
mov dword [0x526514], ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
cmp ax, word [esp + 0x28]
jbe 0x40bb10
mov eax, dword [esp + 0x18]
add dword [esp + 0x20], 0x40
add dword [esp + 0x24], 8
inc eax
mov dword [esp + 0x18], eax
cmp ax, 0xf
jbe 0x40bb00
jmp 0x40be1b
movzx cx, byte [ebx + 0x216]
movzx edx, cx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], esi
jmp 0x40bcc2
xor esi, esi
movzx ax, byte [ebx + 0x214]
movzx ecx, ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], esi
jmp 0x40bce0
movzx edx, byte [esp + 0x18]
mov eax, dword [0x512c68]
mov byte [eax + 0x24], dl
movzx edx, byte [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x512c68]
push 0x80012040
push eax
mov byte [ecx + 0x25], dl
call fcn.00409690
add esp, 8
test eax, eax
je 0x40be07
mov ecx, 0xff
cmp word [esp + 0x14], cx
je 0x40be07
mov eax, dword [0x512c68]
test byte [eax + 0x30], 0x1f
jne 0x40bdf3
mov eax, dword [eax + 0x2c]
cmp eax, 0x200
jb 0x40bdf3
cmp eax, 0x2000
ja 0x40bdf3
push 0x188
call fcn.00437d78
push 0x188
mov ebp, eax
push 0
push ebp
call fcn.00437ed0
movzx eax, byte [esp + 0x28]
movzx ecx, byte [esp + 0x24]
mov dl, byte [esp + 0x23]
mov byte [ebp + 0xe], cl
mov dword [ebp + 4], ebp
mov byte [ebp + 0xc], dl
mov byte [ebp + 0xd], al
mov edx, dword [0x512c68]
mov eax, dword [edx + 0x28]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 0
mov ecx, dword [0x512c68]
mov edx, dword [ecx + 0x2c]
mov dword [ebp + 0x20], edx
mov esi, dword [0x512c68]
add esi, 0x30
lea edi, [ebp + 0x24]
mov ecx, 0x19
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x512c68]
movzx ecx, byte [eax + 0x94]
mov byte [ebp + 0x12], cl
mov edx, dword [0x512c68]
movzx eax, byte [edx + 0x95]
add esp, 0x10
mov byte [ebp + 0x11], al
cmp dword [0x526510], 0
jne 0x40bde5
mov dword [0x526510], ebp
jmp 0x40bded
mov ecx, dword [0x526514]
mov dword [ecx], ebp
mov dword [0x526514], ebp
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp ax, word [esp + 0x28]
jbe 0x40bce0
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp ax, word [esp + 0x24]
jbe 0x40bcc0
mov al, byte [esp + 0x13]
inc al
mov byte [esp + 0x13], al
movzx eax, al
add ebx, 0x2b80
xor esi, esi
cmp eax, dword [0x512c60]
mov dword [esp + 0x2c], eax
jl 0x40bac0
mov ebx, dword [0x526510]
mov dword [esp + 0x28], ebx
cmp ebx, esi
je 0x40c12b
mov dl, byte [ebx + 0xd]
mov eax, dword [0x512c68]
mov byte [eax + 0x24], dl
mov cl, byte [ebx + 0xe]
mov edx, dword [0x512c68]
mov byte [edx + 0x25], cl
mov eax, dword [ebx + 0x18]
mov ecx, dword [0x512c68]
mov dword [ecx + 0x28], eax
movzx edx, byte [ebx + 0xc]
push 0x80012410
push edx
call fcn.00409690
add esp, 8
test eax, eax
je 0x40c11d
mov edi, dword [0x512c68]
add edi, 0x2c
mov eax, 0xaa55
cmp word [edi + 0x1fe], ax
jne 0x40c11d
lea esi, [edi + 0x34]
mov dword [esp + 0x2c], 0xffff
mov eax, edi
cmp edi, esi
jae 0x40c11d
mov cx, word [esp + 0x2c]
xor cx, word [eax]
add eax, 2
cmp eax, esi
jb 0x40bec4
test cx, cx
jne 0x40c11d
movzx ebp, word [edi]
test bp, bp
je 0x40bf13
lea edx, [edi + 0x200]
mov dword [esp + 0x2c], 0xffff
mov eax, edi
cmp edi, edx
jae 0x40c11d
mov cx, word [esp + 0x2c]
lea esp, [esp]
xor cx, word [eax]
add eax, 2
cmp eax, edx
jb 0x40bf00
test cx, cx
jne 0x40c11d
cmp bp, 2
ja 0x40c11d
mov ecx, dword [edi + 0x26]
cmp ecx, dword [ebx + 0x20]
jb 0x40c11d
lea edx, [ecx - 1]
test ecx, edx
jne 0x40c11d
movzx eax, word [edi + 0x2a]
cmp ax, 1
jbe 0x40c11d
cmp byte [edi + 6], 0
lea edx, [edi + 6]
mov dword [esp + 0x2c], edx
je 0x40c11d
movzx edx, word [edi + 0x2c]
cmp dx, ax
jae 0x40c11d
test ecx, 0xfffe07ff
jne 0x40c11d
test bp, bp
je 0x40bfbc
mov ecx, dword [esi]
and eax, 0xff7f
and edx, 0xff7f
mov word [edi + 0x2a], ax
mov word [edi + 0x2c], dx
mov dword [edi + 0x26], ecx
cmp ecx, dword [ebx + 0x20]
jb 0x40c11d
lea esi, [ecx - 1]
test ecx, esi
jne 0x40c11d
cmp ax, 1
jbe 0x40c11d
cmp dx, ax
jae 0x40c11d
test ecx, 0xffe007ff
jne 0x40c11d
mov al, byte [edi + 0x2c]
mov byte [ebx + 0x10], al
mov esi, dword [0x5264f8]
test esi, esi
je 0x40c00f
mov ebp, dword [esp + 0x2c]
lea ecx, [esi + 0x18]
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bff5
test dl, dl
je 0x40bff1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bff5
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bfd5
xor eax, eax
jmp 0x40bffa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c007
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x40bfd0
jmp 0x40c00f
test esi, esi
jne 0x40c097
push 0x38
call fcn.00437d78
push 0x38
mov esi, eax
push 0
push esi
call fcn.00437ed0
add esp, 0x10
cmp dword [0x526524], 8
jl 0x40c033
or word [esi + 0x14], 0x10
inc dword [0x526524]
mov ecx, dword [ebx + 0x18]
mov dword [esi], ecx
mov edx, dword [ebx + 0x1c]
mov dword [esi + 4], edx
mov eax, dword [edi + 0x26]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
mov cl, byte [edi + 0x2a]
mov edx, esi
sub edx, eax
mov byte [esi + 0x16], cl
mov dword [esi + 8], ebx
add edx, 0x18
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x40c060
cmp dword [0x5264f8], 0
jne 0x40c084
mov dword [0x5264f8], esi
mov dword [0x5264fc], esi
jmp 0x40c11a
mov eax, dword [0x5264fc]
mov dword [eax + 0xc], esi
mov dword [0x5264fc], esi
jmp 0x40c11a
mov ebp, dword [esi + 8]
mov ecx, dword [ebx + 0x20]
mov eax, ebp
cmp ecx, dword [ebp + 0x20]
je 0x40c0a9
or word [esi + 0x14], 4
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov ebx, dword [esi + 4]
cmp ebx, ecx
jb 0x40c0c3
ja 0x40c0be
mov ebx, dword [esi]
cmp ebx, edx
jbe 0x40c0c3
mov dword [esi], edx
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, dword [edi + 0x26]
je 0x40c0d0
or word [esi + 0x14], 8
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
cmp edx, eax
je 0x40c0e9
lea ebx, [ebx]
mov ecx, edx
mov edx, dword [ecx + 4]
cmp edx, eax
jne 0x40c0e0
mov dl, byte [eax + 0x10]
mov ebx, dword [esp + 0x28]
cmp dl, byte [ebx + 0x10]
jae 0x40c106
mov ecx, eax
mov eax, dword [eax + 4]
cmp eax, ebp
je 0x40c106
mov dl, byte [eax + 0x10]
cmp dl, byte [ebx + 0x10]
jb 0x40c0f5
mov dword [ebx + 4], eax
mov dword [ecx + 4], ebx
mov eax, dword [esi + 8]
mov cl, byte [ebx + 0x10]
cmp cl, byte [eax + 0x10]
ja 0x40c11a
mov dword [esi + 8], ebx
mov dword [ebx + 8], esi
mov ebx, dword [ebx]
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x40be52
mov esi, dword [0x5264f8]
mov dword [esp + 0x2c], 0
test esi, esi
je 0x40c1d1
mov edi, dword [esi + 8]
mov ebx, 2
xor cl, cl
mov eax, edi
lea ebp, [ebx - 1]
mov dl, byte [eax + 0x10]
cmp dl, cl
je 0x40c166
jae 0x40c15f
or word [esi + 0x14], bx
jmp 0x40c163
or word [esi + 0x14], bp
mov cl, byte [eax + 0x10]
mov eax, dword [eax + 4]
inc cl
cmp eax, edi
jne 0x40c150
cmp cl, byte [esi + 0x16]
je 0x40c178
or word [esi + 0x14], bp
movzx eax, word [esi + 0x14]
mov cl, byte [edi + 0x11]
test al, 0x1f
mov edx, 0
sete dl
mov ebp, edx
xor edx, edx
cmp cl, byte [edi + 0x10]
sete dl
cmp ebp, edx
jne 0x40c19d
cmp byte [edi + 0x12], 0xff
jne 0x40c1aa
inc dword [esp + 0x2c]
or eax, 0x8000
mov word [esi + 0x14], ax
test ebp, ebp
je 0x40c1b7
push edi
call fcn.0040b6d0
add esp, 4
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x40c141
cmp dword [esp + 0x2c], esi
je 0x40c1d1
push esi
push 0x10
push str.There_is_a_disagreement_between_this_application_and_the_driver_as_to_which_stripe_groups_are_valid.__It_is_suggested_that_you_reboot_the_system.__If_the_problem_persists__please_call_your_support_representative.
call fcn.0041765b
mov esi, dword [0x526510]
pop edi
pop ebp
pop ebx
test esi, esi
je 0x40c1f5
mov edi, edi
cmp dword [esi + 8], 0
jne 0x40c1ef
push esi
call fcn.0040b6d0
add esp, 4
mov esi, dword [esi]
test esi, esi
jne 0x40c1e0
pop esi
add esp, 0x20
jmp 0x40b800
pop esi
add esp, 0x20
ret