Function at 0x4dab90
Capabilities:
Delete file
Enumerate pe sections
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a995d
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x32c]
mov esi, edx
lea edx, [esp + 0x1c]
xor ebx, ebx
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x3c], ebx
call fcn.00404460
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x328], ebx
call fcn.00404460
mov byte [esp + 0x324], 1
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x324], 2
mov ecx, dword [esp + 0x1c]
push 0x5c
push ecx
call fcn.0057b53f
add esp, 8
cmp eax, ebx
je 0x4dac8d
sub eax, dword [esp + 0x1c]
sar eax, 1
cmp eax, 0xffffffff
je 0x4dac8d
add eax, 1
lea ecx, [esp + 0x30]
lea edx, [esp + 0x1c]
call fcn.00403560
lea edi, [esp + 0x28]
mov byte [esp + 0x324], 3
call fcn.004035d0
mov byte [esp + 0x324], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4dac8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x84], ebx
mov ebp, dword [esp + 0x28]
push ebp
lea edi, [esp + 0x88]
call fcn.004dc000
cmp eax, ebx
jge 0x4dad69
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x4daceb
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x88], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x4daceb
push eax
call esi
mov dword [esp + 0x84], ebx
lea eax, [ebp - 0x10]
mov byte [esp + 0x324], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4dad0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x324], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dad37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x324], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4dad62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4db337
push 4
push ebx
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
mov dword [esp + 0x34], edi
mov edx, dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
push edx
call ebp
cmp eax, 0xffffffff
jne 0x4dae0a
call fcn.004129d0
cmp eax, ebx
jge 0x4dae10
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x4dade9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x88], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x4dade9
push eax
call esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x324], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4dad03
mov edi, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov eax, edi
lea esi, [esp + 0x54]
mov byte [esp + 0x324], 6
call fcn.004d0300
cmp eax, ebx
jge 0x4dae81
mov eax, dword [esp + 0x54]
xor esi, esi
cmp eax, ebx
je 0x4dae4b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x4dae4b
call fcn.004129d0
mov esi, eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4dae69
push eax
call ebp
test eax, eax
jne 0x4dae69
cmp esi, ebx
jl 0x4dae69
call fcn.004129d0
cmp edi, ebx
je 0x4dae70
push edi
call ebp
lea esi, [esp + 0x84]
call fcn.004dc140
jmp 0x4dade9
push 0x3c
lea ecx, [esp + 0x29c]
push ebx
push ecx
call fcn.00580260
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 8]
mov dword [esp + 0x2a0], 0x51554432
mov word [esp + 0x2a4], 3
mov word [esp + 0x2a6], bx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x2a8], ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x2ac], edx
mov ecx, dword [eax + 0x1c]
add esp, 0xc
mov dword [esp + 0x2a4], ecx
mov edx, dword [eax + 0x20]
push ebx
lea eax, [esp + 0x30]
push eax
push 0x40
lea ecx, [esp + 0x2a0]
mov dword [esp + 0x2b4], edx
mov edx, dword [esp + 0x90]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x4daf07
call fcn.004129d0
mov edx, dword [esp + 0x58]
cmp edx, 0x30
mov dword [esp + 0x30], 0x40
jb 0x4db1b8
mov esi, dword [esp + 0x54]
cmp dword [esi], 0x51505955
jne 0x4db1b8
cmp word [esi + 4], 2
jne 0x4db1b8
mov eax, dword [esi + 0x2c]
add eax, 0x30
cmp eax, edx
ja 0x4db1b8
mov ecx, dword [esp + 0x20]
cmp byte [ecx + 0x30], 0
jne 0x4db1ac
jmp 0x4daf5d
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
cmp eax, edx
jae 0x4db1ac
movzx ecx, byte [esi + eax + 0xb]
movzx edi, byte [esi + eax + 0xa]
add esi, eax
add ecx, edi
cmp byte [esi], 0xd1
lea ecx, [ecx + ecx + 0xc]
jne 0x4db1ac
add eax, ecx
cmp eax, edx
mov dword [esp + 0x2c], eax
ja 0x4db1ac
xor edi, edi
push 0x7e
lea edx, [esp + 0x29a]
push edi
push edx
mov word [esp + 0x2a0], di
call fcn.00580260
movzx ebx, byte [esi + 0xa]
mov al, byte [esi + 0xb]
add esp, 0xc
cmp al, 0x3e
lea ecx, [esi + ebx*2 + 0xc]
lea ebp, [esi + 0xc]
movzx eax, al
jb 0x4dafc5
mov eax, 0x3e
push eax
push ecx
lea eax, [esp + 0x29c]
push eax
call fcn.0057a8a1
add esp, 0xc
call fcn.004dc450
cmp eax, edi
je 0x4db19a
push edi
lea ecx, [esp + 0x298]
push ecx
push ebx
push eax
mov eax, ebp
call fcn.004d95d0
cmp eax, edi
je 0x4db19a
mov edx, dword [esp + 0x20]
sub esp, 8
mov eax, esp
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], esp
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov eax, dword [edx + 8]
push ecx
mov dword [esp + 0x24], edi
call fcn.004dfcb0
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x4db1ac
mov edx, dword [esp + 0x20]
sub esp, 8
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov eax, dword [edx + 8]
mov dword [esp + 0x58], esp
lea edx, [esp + 0x20]
push edx
push ecx
mov dword [esp + 0x28], 0
call fcn.004dfdd0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4db1ac
mov edx, dword [esp + 0x20]
mov edi, dword [edx + 8]
movzx eax, byte [esi + 0xa]
push 1
lea edx, [esp + 0x1c]
push edx
movzx edx, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 4]
push ecx
mov ecx, dword [esi + 6]
push edx
movzx edx, byte [esi + 0xb]
push ecx
lea eax, [esi + eax*2 + 0xc]
push edx
push eax
mov dword [esp + 0x38], 0
call fcn.004dff00
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4db1ac
cmp dword [ecx + 8], 0
jbe 0x4db0bb
test byte [ecx + 0xe], 0x80
jne 0x4db0bb
cmp eax, 2
jne 0x4db0bb
add dword [esp + 0x38], 1
movzx ecx, byte [esi + 3]
mov dl, byte [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x46], eax
mov word [esp + 0x4a], ax
mov dword [esp + 0x42], eax
mov eax, dword [esi + 6]
mov byte [esp + 0x49], cl
mov cl, byte [esi + 0xb]
mov byte [esp + 0x4b], cl
mov dword [esp + 0x40], eax
mov al, byte [esi + 0xa]
movzx cx, cl
mov byte [esp + 0x48], dl
movzx dx, al
add cx, dx
mov edx, dword [esp + 0x84]
push 0
add cx, 8
mov byte [esp + 0x4e], al
add cx, cx
lea eax, [esp + 0x7c]
push eax
mov word [esp + 0x46], cx
push 0x10
lea ecx, [esp + 0x48]
push ecx
push edx
mov word [esp + 0x50], 0x7747
call edi
test eax, eax
jne 0x4db137
call fcn.004129d0
mov ecx, dword [esp + 0x84]
push 0
lea eax, [esp + 0x84]
push eax
add ebx, ebx
push ebx
push ebp
push ecx
call edi
test eax, eax
jne 0x4db158
call fcn.004129d0
movzx eax, byte [esi + 0xb]
mov ecx, dword [esp + 0x84]
push 0
lea edx, [esp + 0x80]
push edx
add eax, eax
push eax
lea eax, [esp + 0x2a0]
push eax
push ecx
call edi
test eax, eax
jne 0x4db184
call fcn.004129d0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov dword [edx + 4], eax
movzx ecx, word [esp + 0x3e]
add eax, ecx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x30], 0
mov eax, dword [esp + 0x2c]
je 0x4daf55
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [esp + 0x34]
xor ebx, ebx
lea esi, [esp + 0x54]
call fcn.004d04e0
cmp edi, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4db1d2
push edi
call esi
mov dword [esp + 0x34], ebx
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x84]
call fcn.004dbf90
mov eax, dword [esp + 0x4c]
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
call ebp
cmp eax, 0xffffffff
jne 0x4db205
call fcn.004129d0
jmp 0x4db20c
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x28], eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
mov ebx, str..conv
call fcn.00412480
mov eax, dword [eax]
add esp, 8
push 0
push 0x80
push 4
push 0
push 7
push closesocket
push eax
call ebp
cmp eax, 0xffffffff
jne 0x4db246
call fcn.004129d0
jmp 0x4db24d
test eax, eax
je 0x4db24d
push eax
call esi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4db26d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
xor edi, edi
test eax, eax
je 0x4db289
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x4db289
call fcn.004129d0
mov edi, eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4db2a1
push eax
call esi
test eax, eax
jne 0x4db2a1
test edi, edi
jl 0x4db2a1
call fcn.004129d0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4db2ac
push eax
call esi
lea esi, [esp + 0x84]
call fcn.004dc140
mov byte [esp + 0x324], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4db2e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x324], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4db308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x324], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4db333
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.005787fd
add esp, 0x314
ret 4