Function at 0x5c4c70
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xe0]
cmp esi, 1
push edi
mov dword [esp + 0x18], esi
jl 0x5c4c8f
cmp esi, 0x1a
jle 0x5c4c98
call fcn.005bdce0
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 2
jg 0x5c529e
push esi
call fcn.005c4b80
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
je 0x5c529e
mov esi, dword [esp + 0xec]
push esi
push edi
call fcn.005c4c20
add esp, 8
test eax, eax
ja 0x5c4ce5
push edi
call fcn.005c4c00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
add esi, 0xec6
mov ecx, esi
mov ebp, ecx
mov edx, dword [ecx + 0x14]
imul edx, dword [ecx + 0x10]
imul edx, dword [ecx + 0xc]
imul edx, dword [ecx]
test eax, eax
jbe 0x5c4d21
mov edi, eax
mov ebx, dword [ecx + 0x2c]
add ecx, 0x18
imul ebx, dword [ecx + 0x10]
imul ebx, dword [ecx + 0xc]
imul ebx, dword [ecx]
cmp edx, ebx
jge 0x5c4d1a
mov ebp, ecx
dec edi
jne 0x5c4d03
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xe8]
test ecx, ecx
je 0x5c4d6d
mov ecx, dword [ebp + 8]
dec ecx
je 0x5c4d4c
dec ecx
je 0x5c4d45
dec ecx
je 0x5c4d3e
mov dx, word [ebp + 8]
jmp 0x5c4d51
mov edx, 2
jmp 0x5c4d51
mov edx, 5
jmp 0x5c4d51
mov edx, 6
mov ecx, esi
test eax, eax
jbe 0x5c4d6d
mov ebx, dword [ecx + 8]
mov esi, edx
and esi, 0xffff
cmp ebx, esi
je 0x5c4d6b
add ecx, 0x18
jmp 0x5c4d53
mov ebp, ecx
mov eax, dword [ebp + 8]
lea ecx, [eax - 1]
cmp ecx, 0xb
ja case.0x5c4d7c.4
jmp dword [ecx*4 + 0x5c52ac]
mov ecx, 6
mov esi, 0x69a498
lea edi, [esp + 0x2c]
mov dword [esp + 0x1c], 7
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x5c4dea
mov ecx, 6
mov esi, 0x69a4b8
lea edi, [esp + 0x2c]
mov dword [esp + 0x1c], 7
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x5c4dea
mov ecx, 6
mov esi, 0x69a4d8
jmp 0x5c4ddb
mov ecx, 6
mov esi, 0x69a4f8
jmp 0x5c4ddb
mov ecx, 6
mov esi, 0x69a518
lea edi, [esp + 0x2c]
mov dword [esp + 0x1c], 0xe
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x54], 0
lea edx, [eax + eax]
lea ecx, [eax - 1]
push edx
push 0x40
mov dword [esp + 0x60], ecx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x20]
mov eax, dword [ebp]
and esi, 0xffff
cmp esi, eax
jae 0x5c4ee5
mov al, byte [esp + 0x18]
add al, 0x40
movsx ecx, al
push ecx
push 0
push 0x25b
call fcn.005be950
add esp, 8
lea edx, [esp + 0x64]
push eax
push edx
call edi
push 0
push 0
push 0
lea eax, [esp + 0x78]
push 0x64
push eax
call fcn.005b6930
add esp, 0x20
push esi
push 0
push 0x25c
call fcn.005be950
add esp, 8
lea ecx, [esp + 0x64]
push eax
push ecx
call edi
mov edx, dword [ebp]
push esi
dec edx
lea eax, [esp + 0x70]
push edx
push eax
call fcn.005b6ab0
add esp, 0x18
test eax, eax
jne 0x5c4ec8
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
shl edx, 1
push edx
push ebx
push 0x14
push eax
push 0x7c018
push ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x5c4ed0
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ecx
test eax, eax
mov dword [esp + 0x20], ecx
je 0x5c4e1e
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c4f0e
mov edx, dword [esp + 0x14]
push edx
call fcn.005c4c00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
push 4
push 0x1000
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
jne 0x5c4f46
mov eax, dword [esp + 0x14]
push eax
call fcn.005c4c00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualLock]
test eax, eax
jne 0x5c4f7d
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005c4c00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
push 0
push 0
push 0
push 0x25e
call fcn.005be950
add esp, 8
push eax
call fcn.005b6ab0
mov edx, dword [0x6d9dc0]
add esp, 0xc
push str.bootsector
push str.BOOTSECTOR
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5c50bb
push eax
mov eax, dword [0x6d9dc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x5c50bb
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x5c50a4
mov ecx, dword [str.DYNAZIP_200]
mov edx, dword [0x69a558]
mov dword [0x69a53f], ecx
mov cx, word [0x69a55c]
mov dword [0x69a543], edx
mov dl, byte [0x69a55e]
mov word [0x69a547], cx
mov ecx, dword [str.FAT12]
mov byte [0x69a549], dl
mov edx, dword [0x69a564]
mov dword [0x69a54a], ecx
mov ecx, 0x80
mov esi, eax
mov edi, ebx
mov dword [0x69a54e], edx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0xb]
mov ecx, 6
lea esi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.005bd040
lea edi, [ebx + 0x24]
mov ecx, 6
mov esi, 0x69a538
mov dword [0x69a53b], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x14]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x5c5093
push eax
lea eax, [esp + 0x28]
push eax
push 0x200
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c5093
cmp dword [esp + 0x24], 0x200
je 0x5c509b
mov dword [esp + 0x10], 1
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x5c50ac
mov dword [esp + 0x10], 1
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c50c5
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x5c527c
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x37]
mov esi, eax
imul eax, dword [esp + 0x1c]
imul esi, ebp
and esi, 0xffff
and eax, 0xffff
lea edi, [eax + esi*2]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x28], eax
je 0x5c5277
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x5c5261
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ebp, 0xffff
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [esp + 0x36]
mov cl, 0xff
mov byte [ebx], al
mov byte [ebx + 1], cl
mov byte [ebx + 2], cl
mov byte [esi + ebx], al
mov eax, dword [esp + 0x1c]
mov byte [esi + ebx + 1], cl
mov byte [esi + ebx + 2], cl
xor ecx, ecx
and eax, 0xffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
lea eax, [eax + ebp*2]
mov ebp, 0x200
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jge 0x5c51d4
mov edi, dword [esp + 0x18]
lea esi, [ebx + ebp - 0x200]
mov ecx, 0x80
push 0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebp
jne 0x5c51b5
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push 0
push edx
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c51b5
cmp dword [esp + 0x24], 0x200
je 0x5c51bd
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc edx
add ebp, 0x200
test eax, eax
mov dword [esp + 0x20], edx
je 0x5c515d
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c5226
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005c4c00
mov esi, dword [esp + 0x1c]
add esp, 4
push 0x200
push esi
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret
mov edx, dword [esp + 0x14]
push edx
call fcn.005c4c00
mov esi, dword [esp + 0x1c]
add esp, 4
push 0x200
push esi
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push eax
call fcn.005c4c00
add esp, 4
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret