Function at 0x401eac
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Enumerate pe sections
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2750
call fcn.004428b0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2698], eax
mov byte [ebp - 0x2690], 4
mov byte [ebp - 0x268f], 8
mov byte [ebp - 0x268e], 0
mov byte [ebp - 0x268d], 0
mov byte [ebp - 0x268c], 0xc8
mov byte [ebp - 0x268b], 0
mov byte [ebp - 0x268a], 0
mov byte [ebp - 0x2689], 0
mov byte [ebp - 0x2688], 0x18
mov byte [ebp - 0x2687], 0x61
mov byte [ebp - 0x2686], 0xe
mov byte [ebp - 0x2685], 0
mov byte [ebp - 0x2684], 0x22
mov byte [ebp - 0x2683], 0
mov byte [ebp - 0x2682], 0
mov byte [ebp - 0x2681], 0
mov byte [ebp - 0x2680], 0x90
mov byte [ebp - 0x267f], 0x66
mov byte [ebp - 0x267e], 0xe
mov byte [ebp - 0x267d], 0
mov byte [ebp - 0x267c], 0xe8
mov byte [ebp - 0x267b], 2
mov byte [ebp - 0x267a], 0
mov byte [ebp - 0x2679], 0
mov byte [ebp - 0x2678], 0
mov byte [ebp - 0x2677], 0
mov byte [ebp - 0x2676], 0
mov byte [ebp - 0x2675], 0
mov byte [ebp - 0x2674], 0
mov byte [ebp - 0x2673], 0
mov byte [ebp - 0x2672], 0
mov byte [ebp - 0x2671], 0
push 0x2660
push 0x511e10
lea ecx, [ebp - 0x266c]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x2660
lea edx, [ebp - 0x2690]
push edx
push 0x64
lea eax, [ebp - 0x266c]
push eax
call fcn.00402b60
add esp, 0x10
mov byte [ebp - 0x271c], 0x14
mov byte [ebp - 0x271b], 0x28
mov byte [ebp - 0x271a], 0x30
mov byte [ebp - 0x2719], 0x60
mov byte [ebp - 0x2718], 0xc8
mov byte [ebp - 0x2717], 0x30
mov byte [ebp - 0x2716], 0
mov byte [ebp - 0x2715], 0
mov byte [ebp - 0x2714], 0x18
mov byte [ebp - 0x2713], 0x61
mov byte [ebp - 0x2712], 0xe
mov byte [ebp - 0x2711], 0
mov byte [ebp - 0x2710], 0x22
mov byte [ebp - 0x270f], 0
mov byte [ebp - 0x270e], 0
mov byte [ebp - 0x270d], 0
mov byte [ebp - 0x270c], 0x90
mov byte [ebp - 0x270b], 0x66
mov byte [ebp - 0x270a], 0xe
mov byte [ebp - 0x2709], 0
mov byte [ebp - 0x2708], 0xe8
mov byte [ebp - 0x2707], 2
mov byte [ebp - 0x2706], 0
mov byte [ebp - 0x2705], 0
mov byte [ebp - 0x2704], 8
mov byte [ebp - 0x2703], 0
mov byte [ebp - 0x2702], 0
mov byte [ebp - 0x2701], 0
mov byte [ebp - 0x2700], 0x80
mov byte [ebp - 0x26ff], 0x60
mov byte [ebp - 0x26fe], 0x30
mov byte [ebp - 0x26fd], 0
mov byte [ebp - 0x273c], 0x14
mov byte [ebp - 0x273b], 0x28
mov byte [ebp - 0x273a], 0x30
mov byte [ebp - 0x2739], 0x60
mov byte [ebp - 0x2738], 0xc8
mov byte [ebp - 0x2737], 0x30
mov byte [ebp - 0x2736], 0
mov byte [ebp - 0x2735], 0
mov byte [ebp - 0x2734], 0x18
mov byte [ebp - 0x2733], 0x61
mov byte [ebp - 0x2732], 0xe
mov byte [ebp - 0x2731], 0
mov byte [ebp - 0x2730], 0x22
mov byte [ebp - 0x272f], 0
mov byte [ebp - 0x272e], 0
mov byte [ebp - 0x272d], 0
mov byte [ebp - 0x272c], 0x90
mov byte [ebp - 0x272b], 0x66
mov byte [ebp - 0x272a], 0xe
mov byte [ebp - 0x2729], 0
mov byte [ebp - 0x2728], 0xe8
mov byte [ebp - 0x2727], 2
mov byte [ebp - 0x2726], 0
mov byte [ebp - 0x2725], 0
mov byte [ebp - 0x2724], 0
mov byte [ebp - 0x2723], 0
mov byte [ebp - 0x2722], 0
mov byte [ebp - 0x2721], 0
mov byte [ebp - 0x2720], 0x80
mov byte [ebp - 0x271f], 0x60
mov byte [ebp - 0x271e], 0x30
mov byte [ebp - 0x271d], 0
push 0x20
lea ecx, [ebp - 0x262e]
push ecx
lea edx, [ebp - 0x271c]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x263b]
and eax, 0xff
test eax, eax
je 0x4021dd
mov ecx, dword [ebp + 0x1c]
push ecx
push 8
push 0x64
lea edx, [ebp - 0x273c]
push edx
lea eax, [ebp - 0x271c]
push eax
call fcn.00402a00
add esp, 0x14
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2740], ecx
cmp dword [ebp - 0x2740], 0xfa000
jle 0x4021fc
mov dword [ebp - 0x2740], 0xfa000
mov edx, dword [ebp - 0x2740]
push edx
lea eax, [ebp - 0x271c]
push eax
push 0x64
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402e45
add esp, 0x10
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x2740]
mov dword [ebp - 0x26fc], edx
cmp dword [ebp - 0x26fc], 0x9c4000
jbe 0x40223d
mov dword [ebp - 0x26fc], 0x9c4000
cmp dword [ebp - 0x26fc], 0
jbe 0x402271
mov eax, dword [ebp - 0x26fc]
push eax
lea ecx, [ebp - 0x273c]
push ecx
mov dx, word [ebp - 0x2630]
push edx
mov eax, dword [ebp - 0x2698]
add eax, dword [ebp - 0x2740]
push eax
call fcn.00402b60
add esp, 0x10
mov edx, dword [ebp - 0x263a]
and edx, 0xff
test edx, edx
je 0x4022d5
mov eax, dword [ebp - 0x264c]
mov dword [ebp - 0x2744], eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x80
push 0x64
mov edx, dword [ebp - 0x2698]
add edx, dword [ebp - 0x2744]
push edx
mov eax, dword [ebp - 0x2698]
add eax, dword [ebp - 0x2744]
push eax
call fcn.00402a67
add esp, 0x14
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x20
mov edx, dword [ebp - 0x2698]
add edx, dword [ebp - 0x2744]
push edx
call fcn.00402ace
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26ec], eax
mov ecx, dword [ebp - 0x26ec]
mov edx, dword [ebp - 0x26ec]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x26e8], edx
push pe_nt_image_headers32
mov eax, dword [ebp - 0x26e8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x402318
mov ecx, dword [ebp - 0x26e8]
cmp dword [ecx], 0x4550
je 0x40231f
xor eax, eax
jmp 0x4029aa
mov edx, dword [ebp - 0x26e8]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x26e8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x2694], edx
mov dword [ebp - 0xc], 0x28
mov eax, dword [ebp - 0x2694]
sub eax, dword [ebp - 0x26ec]
mov ecx, dword [ebp - 0x26e8]
xor edx, edx
mov dx, word [ecx + 6]
mov ecx, dword [ebp - 0xc]
imul ecx, edx
add eax, ecx
mov dword [ebp - 0x26f0], eax
mov edx, dword [ebp - 0x26f0]
mov dword [ebp - 0x26d4], edx
mov dword [ebp - 0x2670], 0
mov word [ebp - 0x26dc], 0
jmp 0x40239b
mov ax, word [ebp - 0x26dc]
add ax, 1
mov word [ebp - 0x26dc], ax
mov ecx, dword [ebp - 0x26dc]
and ecx, 0xffff
mov edx, dword [ebp - 0x26e8]
xor eax, eax
mov ax, word [edx + 6]
cmp ecx, eax
jae 0x40246a
mov ecx, dword [ebp - 0x26dc]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26dc]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2694]
mov ecx, dword [eax + ecx + 0xc]
mov eax, dword [ebp - 0x2694]
add ecx, dword [eax + edx + 0x10]
cmp dword [ebp - 0x26d4], ecx
jae 0x40242d
mov ecx, dword [ebp - 0x26dc]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26dc]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2694]
mov ecx, dword [eax + ecx + 0xc]
mov eax, dword [ebp - 0x2694]
add ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x26d4], ecx
mov ecx, dword [ebp - 0x26dc]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26e8]
mov eax, dword [ebp - 0x2694]
mov edx, dword [edx + 0x88]
cmp edx, dword [eax + ecx + 0xc]
jne 0x402465
mov eax, dword [ebp - 0x26dc]
and eax, 0xffff
mov dword [ebp - 0x2670], eax
jmp 0x402389
lea ecx, [ebp - 0x26d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x26d4]
xor edx, edx
div dword [ebp - 0x26cc]
mov dword [ebp - 0x26d8], eax
mov eax, dword [ebp - 0x26d4]
xor edx, edx
div dword [ebp - 0x26cc]
test edx, edx
je 0x4024ac
mov edx, dword [ebp - 0x26d8]
add edx, 1
mov dword [ebp - 0x26d8], edx
mov eax, dword [ebp - 0x26d8]
imul eax, dword [ebp - 0x26cc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push 0x40
push 0x1000
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x4024f7
push 0x10
push 0x453544
push str.Error_in_VirtualAlloc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4029aa
mov ecx, dword [ebp - 0x26f0]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov dword [ebp - 0x26e4], 0
mov dword [ebp - 0x26a0], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x26dc], 0
jmp 0x402546
mov cx, word [ebp - 0x26dc]
add cx, 1
mov word [ebp - 0x26dc], cx
mov edx, dword [ebp - 0x26dc]
and edx, 0xffff
mov eax, dword [ebp - 0x26e8]
xor ecx, ecx
mov cx, word [eax + 6]
cmp edx, ecx
jge 0x402607
mov edx, dword [ebp - 0x26dc]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2694]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x26e4], ecx
mov edx, dword [ebp - 0x26dc]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2694]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x14]
mov dword [ebp - 0x26a0], ecx
mov edx, dword [ebp - 0x26dc]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2694]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x26a0]
push eax
mov ecx, dword [ebp - 0x26e4]
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x262e]
push eax
mov cx, word [ebp - 0x2630]
push ecx
mov edx, dword [ebp - 0x26e4]
push edx
call fcn.00402b60
add esp, 0x10
jmp 0x402534
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x26ec], eax
mov ecx, dword [ebp - 0x26ec]
mov edx, dword [ebp - 0x26ec]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x26e8], edx
mov eax, dword [ebp - 0x26e8]
add eax, 0xf8
mov dword [ebp - 0x2694], eax
mov ecx, dword [ebp - 0x26ec]
mov dword [0x514a4c], ecx
cmp dword [ebp - 0x2670], 0
je 0x4026a7
call fcn.0040f80f
cmp eax, 1
jne 0x4026a7
mov edx, dword [ebp - 0x2670]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2694]
mov ecx, dword [eax + edx + 0xc]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2670]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2694]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebp - 0x2670]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x2694]
mov eax, dword [edx + ecx + 0x14]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2670]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x2694]
mov dword [edx + ecx + 0x14], eax
mov eax, dword [ebp - 0x26e8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x26f8], ecx
cmp dword [ebp - 0x26f8], 0
jne 0x4026f1
push 0x8000
push 0
mov edx, dword [ebp - 0x26ec]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x453564
push str.Error_in_GetImgDirEntryRVA
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4029aa
mov eax, dword [ebp - 0x26e8]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x26e8]
add ecx, dword [edx + 0x34]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x26e8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x40272b
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x26ec]
mov dword [ebp - 8], eax
jmp 0x40275a
push 0x8000
push 0
mov ecx, dword [ebp - 0x26ec]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x453588
push str.Error_in_Get_ImportDesc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4029aa
mov edx, 1
test edx, edx
je 0x4028f9
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x40277e
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
jne 0x40277e
jmp 0x4028f9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [0x514a4c]
mov dword [ebp - 0x26a4], eax
mov ecx, dword [ebp - 0x26a4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x26a8], eax
cmp dword [ebp - 0x26a8], 0
jne 0x4027bf
mov edx, dword [ebp - 0x26a4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x26a8], eax
cmp dword [ebp - 0x26a8], 0
jne 0x4027cd
jmp 0x4029a5
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4027e8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
add edx, dword [ebp - 0x26ec]
mov dword [ebp - 0x274c], edx
jmp 0x4027fa
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x26ec]
mov dword [ebp - 0x274c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x26ec]
mov dword [ebp - 0x2748], eax
mov ecx, dword [ebp - 0x274c]
cmp dword [ecx], 0
je 0x4028eb
mov dword [ebp - 0x2750], 0x80000000
mov edx, dword [ebp - 0x274c]
mov eax, dword [edx]
and eax, dword [ebp - 0x2750]
test eax, eax
je 0x40285d
mov ecx, dword [ebp - 0x274c]
mov edx, dword [ecx]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x26a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2748]
mov dword [ecx], eax
jmp 0x402890
mov edx, dword [ebp - 0x274c]
mov eax, dword [edx]
add eax, dword [ebp - 0x26ec]
mov dword [ebp - 0x26e0], eax
mov ecx, dword [ebp - 0x26e0]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x26a8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2748]
mov dword [ecx], eax
cmp dword [ebp - 0x2748], 0
jne 0x4028c8
push 0x8000
push 0
mov edx, dword [ebp - 0x26ec]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x4535a8
push str.Error_in_set_FuncAddr.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4029aa
mov eax, dword [ebp - 0x2748]
add eax, 4
mov dword [ebp - 0x2748], eax
mov ecx, dword [ebp - 0x274c]
add ecx, 4
mov dword [ebp - 0x274c], ecx
jmp 0x40280c
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x40275a
mov eax, dword [ebp - 0x26ec]
push eax
mov ecx, dword [ebp - 0x26e8]
push ecx
call fcn.00401300
add esp, 8
mov edx, dword [ebp - 0x2638]
and edx, 0xff
test edx, edx
je 0x40294f
mov eax, dword [ebp - 0x26e8]
mov ecx, dword [eax + 0x80]
add ecx, dword [ebp - 0x26ec]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x26e8]
mov eax, dword [edx + 0x84]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x26e8]
mov eax, dword [edx + 0xa0]
add eax, dword [ebp - 0x26ec]
mov dword [ebp - 0x26ac], eax
mov ecx, dword [ebp - 0x2637]
and ecx, 0xff
test ecx, ecx
je 0x402995
mov edx, dword [ebp - 0x26e8]
mov eax, dword [edx + 0xa4]
push eax
push 0
mov ecx, dword [ebp - 0x26ac]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [0x514478], edx
mov eax, 1
jmp 0x4029aa
jmp 0x4028eb
mov esp, ebp
pop ebp
ret