Function at 0x408930
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bf0b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2f0
mov eax, dword [0x443010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x248]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push 0x104
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0xc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x24c], 0x5c3a63
nop dword [eax]
lea eax, [ebp - 0x24c]
push eax
call esi
cmp eax, 3
je 0x4089f5
mov al, byte [ebp - 0x24c]
inc al
mov byte [ebp - 0x24c], al
cmp al, 0x7a
jle 0x4089d0
jmp 0x408b75
push 0x104
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x250]
push eax
push 0x104
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x24
xorps xmm0, xmm0
mov dword [ebp - 0x2c0], 0
push str.___volume__with_serial_number:_
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x2bc], 0
movups xmmword [ebp - 0x2d0], xmm0
call fcn.0040dfc0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2d0]
cmp dword [ebp - 0x2bc], 0x10
lea eax, [ebp - 0x24c]
mov ecx, dword [ebp - 0x2c0]
lea esi, [ebp - 0x2e0]
cmovae edx, dword [ebp - 0x2d0]
sub esp, 8
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x2d4], eax
mov eax, esp
push ecx
mov dword [ebp - 0x2e0], 0xb0000000
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x2dc], 0x20000004
push edx
mov dword [eax], 2
mov dword [eax + 4], esi
call fcn.0040f650
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x408adf
mov eax, dword [eax]
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, eax
call fcn.0040f7f0
add esp, 4
mov ecx, eax
push 0x40d710
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0x2e8]
cmp ecx, 0x10
jb 0x408b39
mov edx, dword [ebp - 0x2fc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408b2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408b2f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041adfa
add esp, 8
mov ecx, dword [ebp - 0x2bc]
cmp ecx, 0x10
jb 0x408b75
mov edx, dword [ebp - 0x2d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408b6b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408b6b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041adfa
add esp, 8
push 0x5c
lea eax, [ebp - 0x2b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push eax
call fcn.00419fd0
mov eax, dword [ebp - 0x250]
add esp, 4
bswap eax
mov dword [ebp - 0x2a0], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2a8], 0x20
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2a4], 0
push eax
mov dword [ebp - 0x260], 4
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.00419eb0
mov cl, byte [edi + 0xc]
lea eax, [ebp - 0x34]
mov dl, byte [edi + 0xd]
add esp, 8
mov esi, 0x10
nop
xor cl, byte [eax]
lea eax, [eax + 2]
xor dl, byte [eax - 1]
sub esi, 1
jne 0x408bf0
mov byte [edi + 0xc], cl
mov byte [edi + 0xd], dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041abe3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret