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, 0x2748
call fcn.00444790
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2690], eax
mov byte [ebp - 0x2688], 4
mov byte [ebp - 0x2687], 8
mov byte [ebp - 0x2686], 0
mov byte [ebp - 0x2685], 0
mov byte [ebp - 0x2684], 0xc8
mov byte [ebp - 0x2683], 0
mov byte [ebp - 0x2682], 0
mov byte [ebp - 0x2681], 0
mov byte [ebp - 0x2680], 0x18
mov byte [ebp - 0x267f], 0x61
mov byte [ebp - 0x267e], 0xe
mov byte [ebp - 0x267d], 0
mov byte [ebp - 0x267c], 0x22
mov byte [ebp - 0x267b], 0
mov byte [ebp - 0x267a], 0
mov byte [ebp - 0x2679], 0
mov byte [ebp - 0x2678], 0x90
mov byte [ebp - 0x2677], 0x66
mov byte [ebp - 0x2676], 0xe
mov byte [ebp - 0x2675], 0
mov byte [ebp - 0x2674], 0xe8
mov byte [ebp - 0x2673], 2
mov byte [ebp - 0x2672], 0
mov byte [ebp - 0x2671], 0
mov byte [ebp - 0x2670], 0
mov byte [ebp - 0x266f], 0
mov byte [ebp - 0x266e], 0
mov byte [ebp - 0x266d], 0
mov byte [ebp - 0x266c], 0
mov byte [ebp - 0x266b], 0
mov byte [ebp - 0x266a], 0
mov byte [ebp - 0x2669], 0
push 0x2658
push 0x51d4c0
lea ecx, [ebp - 0x2664]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x2658
lea edx, [ebp - 0x2688]
push edx
push 0x64
lea eax, [ebp - 0x2664]
push eax
call fcn.00402d28
add esp, 0x10
mov byte [ebp - 0x2714], 0x14
mov byte [ebp - 0x2713], 0x28
mov byte [ebp - 0x2712], 0x30
mov byte [ebp - 0x2711], 0x60
mov byte [ebp - 0x2710], 0xc8
mov byte [ebp - 0x270f], 0x30
mov byte [ebp - 0x270e], 0
mov byte [ebp - 0x270d], 0
mov byte [ebp - 0x270c], 0x18
mov byte [ebp - 0x270b], 0x61
mov byte [ebp - 0x270a], 0xe
mov byte [ebp - 0x2709], 0
mov byte [ebp - 0x2708], 0x22
mov byte [ebp - 0x2707], 0
mov byte [ebp - 0x2706], 0
mov byte [ebp - 0x2705], 0
mov byte [ebp - 0x2704], 0x90
mov byte [ebp - 0x2703], 0x66
mov byte [ebp - 0x2702], 0xe
mov byte [ebp - 0x2701], 0
mov byte [ebp - 0x2700], 0xe8
mov byte [ebp - 0x26ff], 2
mov byte [ebp - 0x26fe], 0
mov byte [ebp - 0x26fd], 0
mov byte [ebp - 0x26fc], 8
mov byte [ebp - 0x26fb], 0
mov byte [ebp - 0x26fa], 0
mov byte [ebp - 0x26f9], 0
mov byte [ebp - 0x26f8], 0x80
mov byte [ebp - 0x26f7], 0x60
mov byte [ebp - 0x26f6], 0x30
mov byte [ebp - 0x26f5], 0
mov byte [ebp - 0x2734], 0x14
mov byte [ebp - 0x2733], 0x28
mov byte [ebp - 0x2732], 0x30
mov byte [ebp - 0x2731], 0x60
mov byte [ebp - 0x2730], 0xc8
mov byte [ebp - 0x272f], 0x30
mov byte [ebp - 0x272e], 0
mov byte [ebp - 0x272d], 0
mov byte [ebp - 0x272c], 0x18
mov byte [ebp - 0x272b], 0x61
mov byte [ebp - 0x272a], 0xe
mov byte [ebp - 0x2729], 0
mov byte [ebp - 0x2728], 0x22
mov byte [ebp - 0x2727], 0
mov byte [ebp - 0x2726], 0
mov byte [ebp - 0x2725], 0
mov byte [ebp - 0x2724], 0x90
mov byte [ebp - 0x2723], 0x66
mov byte [ebp - 0x2722], 0xe
mov byte [ebp - 0x2721], 0
mov byte [ebp - 0x2720], 0xe8
mov byte [ebp - 0x271f], 2
mov byte [ebp - 0x271e], 0
mov byte [ebp - 0x271d], 0
mov byte [ebp - 0x271c], 0
mov byte [ebp - 0x271b], 0
mov byte [ebp - 0x271a], 0
mov byte [ebp - 0x2719], 0
mov byte [ebp - 0x2718], 0x80
mov byte [ebp - 0x2717], 0x60
mov byte [ebp - 0x2716], 0x30
mov byte [ebp - 0x2715], 0
push 0x20
lea ecx, [ebp - 0x262e]
push ecx
lea edx, [ebp - 0x2714]
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 - 0x2734]
push edx
lea eax, [ebp - 0x2714]
push eax
call fcn.00402a00
add esp, 0x14
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2738], ecx
cmp dword [ebp - 0x2738], 0xfa000
jle 0x4021fc
mov dword [ebp - 0x2738], 0xfa000
mov edx, dword [ebp - 0x2738]
push edx
lea eax, [ebp - 0x2714]
push eax
push 0x64
mov ecx, dword [ebp + 8]
push ecx
call fcn.004030c1
add esp, 0x10
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x2738]
mov dword [ebp - 0x26f4], edx
cmp dword [ebp - 0x26f4], 0x9c4000
jbe 0x40223d
mov dword [ebp - 0x26f4], 0x9c4000
cmp dword [ebp - 0x26f4], 0
jbe 0x402271
mov eax, dword [ebp - 0x26f4]
push eax
lea ecx, [ebp - 0x2734]
push ecx
mov dx, word [ebp - 0x2630]
push edx
mov eax, dword [ebp - 0x2690]
add eax, dword [ebp - 0x2738]
push eax
call fcn.00402d28
add esp, 0x10
mov edx, dword [ebp - 0x263a]
and edx, 0xff
test edx, edx
je 0x4022d5
mov eax, dword [ebp - 0x264c]
mov dword [ebp - 0x273c], eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x80
push 0x64
mov edx, dword [ebp - 0x2690]
add edx, dword [ebp - 0x273c]
push edx
mov eax, dword [ebp - 0x2690]
add eax, dword [ebp - 0x273c]
push eax
call fcn.00402af1
add esp, 0x14
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x20
mov edx, dword [ebp - 0x2690]
add edx, dword [ebp - 0x273c]
push edx
call fcn.00402be2
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26e4], eax
mov ecx, dword [ebp - 0x26e4]
mov edx, dword [ebp - 0x26e4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x26e0], edx
push pe_nt_image_headers32
mov eax, dword [ebp - 0x26e0]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x402318
mov ecx, dword [ebp - 0x26e0]
cmp dword [ecx], 0x4550
je 0x40231f
xor eax, eax
jmp 0x4029aa
mov edx, dword [ebp - 0x26e0]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x26e0]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x268c], edx
mov dword [ebp - 0xc], 0x28
mov eax, dword [ebp - 0x268c]
sub eax, dword [ebp - 0x26e4]
mov ecx, dword [ebp - 0x26e0]
xor edx, edx
mov dx, word [ecx + 6]
mov ecx, dword [ebp - 0xc]
imul ecx, edx
add eax, ecx
mov dword [ebp - 0x26e8], eax
mov edx, dword [ebp - 0x26e8]
mov dword [ebp - 0x26cc], edx
mov dword [ebp - 0x2668], 0
mov word [ebp - 0x26d4], 0
jmp 0x40239b
mov ax, word [ebp - 0x26d4]
add ax, 1
mov word [ebp - 0x26d4], ax
mov ecx, dword [ebp - 0x26d4]
and ecx, 0xffff
mov edx, dword [ebp - 0x26e0]
xor eax, eax
mov ax, word [edx + 6]
cmp ecx, eax
jae 0x40246a
mov ecx, dword [ebp - 0x26d4]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26d4]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x268c]
mov ecx, dword [eax + ecx + 0xc]
mov eax, dword [ebp - 0x268c]
add ecx, dword [eax + edx + 0x10]
cmp dword [ebp - 0x26cc], ecx
jae 0x40242d
mov ecx, dword [ebp - 0x26d4]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26d4]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x268c]
mov ecx, dword [eax + ecx + 0xc]
mov eax, dword [ebp - 0x268c]
add ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x26cc], ecx
mov ecx, dword [ebp - 0x26d4]
and ecx, 0xffff
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26e0]
mov eax, dword [ebp - 0x268c]
mov edx, dword [edx + 0x88]
cmp edx, dword [eax + ecx + 0xc]
jne 0x402465
mov eax, dword [ebp - 0x26d4]
and eax, 0xffff
mov dword [ebp - 0x2668], eax
jmp 0x402389
lea ecx, [ebp - 0x26c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x26cc]
xor edx, edx
div dword [ebp - 0x26c4]
mov dword [ebp - 0x26d0], eax
mov eax, dword [ebp - 0x26cc]
xor edx, edx
div dword [ebp - 0x26c4]
test edx, edx
je 0x4024ac
mov edx, dword [ebp - 0x26d0]
add edx, 1
mov dword [ebp - 0x26d0], edx
mov eax, dword [ebp - 0x26d0]
imul eax, dword [ebp - 0x26c4]
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 0x455534
push str.Error_in_VirtualAlloc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4029aa
mov ecx, dword [ebp - 0x26e8]
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 - 0x26dc], 0
mov dword [ebp - 0x2698], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x26d4], 0
jmp 0x402546
mov cx, word [ebp - 0x26d4]
add cx, 1
mov word [ebp - 0x26d4], cx
mov edx, dword [ebp - 0x26d4]
and edx, 0xffff
mov eax, dword [ebp - 0x26e0]
xor ecx, ecx
mov cx, word [eax + 6]
cmp edx, ecx
jge 0x402607
mov edx, dword [ebp - 0x26d4]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x268c]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x26dc], ecx
mov edx, dword [ebp - 0x26d4]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x268c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x14]
mov dword [ebp - 0x2698], ecx
mov edx, dword [ebp - 0x26d4]
and edx, 0xffff
imul edx, edx, 0x28
mov eax, dword [ebp - 0x268c]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x2698]
push eax
mov ecx, dword [ebp - 0x26dc]
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 - 0x26dc]
push edx
call fcn.00402d28
add esp, 0x10
jmp 0x402534
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x26e4], eax
mov ecx, dword [ebp - 0x26e4]
mov edx, dword [ebp - 0x26e4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x26e0], edx
mov eax, dword [ebp - 0x26e0]
add eax, 0xf8
mov dword [ebp - 0x268c], eax
mov ecx, dword [ebp - 0x26e4]
mov dword [0x520140], ecx
cmp dword [ebp - 0x2668], 0
je 0x4026a7
call fcn.004114c4
cmp eax, 1
jne 0x4026a7
mov edx, dword [ebp - 0x2668]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x268c]
mov ecx, dword [eax + edx + 0xc]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2668]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x268c]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebp - 0x2668]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x268c]
mov eax, dword [edx + ecx + 0x14]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2668]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x268c]
mov dword [edx + ecx + 0x14], eax
mov eax, dword [ebp - 0x26e0]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x26f0], ecx
cmp dword [ebp - 0x26f0], 0
jne 0x4026f1
push 0x8000
push 0
mov edx, dword [ebp - 0x26e4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x455554
push str.Error_in_GetImgDirEntryRVA
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4029aa
mov eax, dword [ebp - 0x26e0]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x26e0]
add ecx, dword [edx + 0x34]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x26e0]
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 - 0x26e4]
mov dword [ebp - 8], eax
jmp 0x40275a
push 0x8000
push 0
mov ecx, dword [ebp - 0x26e4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x455578
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 [0x520140]
mov dword [ebp - 0x269c], eax
mov ecx, dword [ebp - 0x269c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x26a0], eax
cmp dword [ebp - 0x26a0], 0
jne 0x4027bf
mov edx, dword [ebp - 0x269c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x26a0], eax
cmp dword [ebp - 0x26a0], 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 - 0x26e4]
mov dword [ebp - 0x2744], edx
jmp 0x4027fa
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x26e4]
mov dword [ebp - 0x2744], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x26e4]
mov dword [ebp - 0x2740], eax
mov ecx, dword [ebp - 0x2744]
cmp dword [ecx], 0
je 0x4028eb
mov dword [ebp - 0x2748], 0x80000000
mov edx, dword [ebp - 0x2744]
mov eax, dword [edx]
and eax, dword [ebp - 0x2748]
test eax, eax
je 0x40285d
mov ecx, dword [ebp - 0x2744]
mov edx, dword [ecx]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x26a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2740]
mov dword [ecx], eax
jmp 0x402890
mov edx, dword [ebp - 0x2744]
mov eax, dword [edx]
add eax, dword [ebp - 0x26e4]
mov dword [ebp - 0x26d8], eax
mov ecx, dword [ebp - 0x26d8]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x26a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2740]
mov dword [ecx], eax
cmp dword [ebp - 0x2740], 0
jne 0x4028c8
push 0x8000
push 0
mov edx, dword [ebp - 0x26e4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x455598
push str.Error_in_set_FuncAddr.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4029aa
mov eax, dword [ebp - 0x2740]
add eax, 4
mov dword [ebp - 0x2740], eax
mov ecx, dword [ebp - 0x2744]
add ecx, 4
mov dword [ebp - 0x2744], ecx
jmp 0x40280c
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x40275a
mov eax, dword [ebp - 0x26e4]
push eax
mov ecx, dword [ebp - 0x26e0]
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 - 0x26e0]
mov ecx, dword [eax + 0x80]
add ecx, dword [ebp - 0x26e4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x26e0]
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 - 0x26e0]
mov eax, dword [edx + 0xa0]
add eax, dword [ebp - 0x26e4]
mov dword [ebp - 0x26a4], eax
mov ecx, dword [ebp - 0x2637]
and ecx, 0xff
test ecx, ecx
je 0x402995
mov edx, dword [ebp - 0x26e0]
mov eax, dword [edx + 0xa4]
push eax
push 0
mov ecx, dword [ebp - 0x26a4]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [0x51fb20], edx
mov eax, 1
jmp 0x4029aa
jmp 0x4028eb
mov esp, ebp
pop ebp
ret