Function at 0x401af0
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push esi
push edi
push 0x4042f8
lea eax, [ebp - 0x80]
push eax
call sub.KERNEL32.dll_lstrcpyA
push str.Wbczu.dat
lea eax, [ebp - 0x80]
push eax
call sub.KERNEL32.dll_lstrcatA
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x80]
push eax
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401b40
mov eax, 0x40412c
pop edi
pop esi
leave
ret
mov dword [ebp - 0x84], eax
push 0
push 0
push 0
call sub.KERNEL32.dll_HeapCreate
or eax, eax
jne 0x401b69
push dword [ebp - 0x84]
call sub.KERNEL32.dll_CloseHandle
mov eax, 0x4040b3
pop edi
pop esi
leave
ret
mov dword [ebp - 0x8c], eax
push 0
push dword [ebp - 0x84]
call sub.KERNEL32.dll_GetFileSize
cmp eax, 0
ja 0x401b92
push dword [ebp - 0x84]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edi
pop esi
leave
ret
mov dword [ebp - 0x98], eax
push eax
push 8
push dword [ebp - 0x8c]
call sub.KERNEL32.dll_HeapAlloc
or eax, eax
jne 0x401bc9
push dword [ebp - 0x8c]
call sub.KERNEL32.dll_HeapDestroy
push dword [ebp - 0x84]
call sub.KERNEL32.dll_CloseHandle
mov eax, 0x4040b3
pop edi
pop esi
leave
ret
mov dword [ebp - 0x90], eax
mov esi, eax
push 0
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x98]
push esi
push dword [ebp - 0x84]
call sub.KERNEL32.dll_ReadFile
push dword [ebp - 0x98]
push 8
push dword [ebp - 0x8c]
call sub.KERNEL32.dll_HeapAlloc
mov dword [ebp - 0x94], eax
mov edi, eax
call fcn.00401ca4
lea esi, [0x404378]
cmp byte [0x404378], 0
jne 0x401c21
lea esi, [0x40403c]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401c75
mov dword [ebp - 0x88], eax
push 0
lea eax, [ebp - 0xa0]
push eax
push edi
push dword [ebp - 0x94]
push dword [ebp - 0x88]
call sub.KERNEL32.dll_WriteFile
push dword [ebp - 0x88]
call sub.KERNEL32.dll_FlushFileBuffers
push dword [ebp - 0x88]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x8c]
call sub.KERNEL32.dll_HeapDestroy
push dword [ebp - 0x84]
call sub.KERNEL32.dll_CloseHandle
push 0x8f
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x80]
push eax
call sub.KERNEL32.dll_DeleteFileA
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x401d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
push 0x40189e
push 0x190
push 0
call sub.KERNEL32.dll_FindResourceA
push eax
push 0
call sub.KERNEL32.dll_LoadResource
push eax
call sub.KERNEL32.dll_LockResource
mov esi, eax
lodsd eax, dword [esi]
mov dword [ebp - 4], eax
cmp eax, 0x65646f63
jne 0x401d77
push 0
push 0
push 0
call sub.KERNEL32.dll_HeapCreate
or eax, eax
je 0x401d77
mov dword [ebp - 0xc], eax
lodsd eax, dword [esi]
push eax
push 8
push dword [ebp - 0xc]
call sub.KERNEL32.dll_HeapAlloc
or eax, eax
je 0x401d6f
mov dword [ebp - 8], eax
push dword [ebp - 8]
push esi
call fcn.00402090
add esp, 8
push dword [ebp - 8]
call fcn.00401d87
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_HeapDestroy
mov eax, 0x4040c2
cmp dword [ebp - 4], 0
jne 0x401d84
xor eax, eax
pop esi
leave
ret