Function at 0x401f00
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.0041cd80
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26c0], eax
mov byte [ebp - 0x28], 4
mov byte [ebp - 0x27], 8
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0xc8
mov byte [ebp - 0x23], 0
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0x18
mov byte [ebp - 0x1f], 0x61
mov byte [ebp - 0x1e], 0xe
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0x22
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x18], 0x90
mov byte [ebp - 0x17], 0x66
mov byte [ebp - 0x16], 0xe
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0xe8
mov byte [ebp - 0x13], 2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
push 0x2658
push 0x59d1c8
lea ecx, [ebp - 0x2698]
push ecx
call fcn.0041c990
add esp, 0xc
push 0x2658
lea edx, [ebp - 0x28]
push edx
push 0x64
lea eax, [ebp - 0x2698]
push eax
call fcn.00402aa0
add esp, 0x10
mov byte [ebp - 0x2738], 0x14
mov byte [ebp - 0x2737], 0x28
mov byte [ebp - 0x2736], 0x30
mov byte [ebp - 0x2735], 0x60
mov byte [ebp - 0x2734], 0xc8
mov byte [ebp - 0x2733], 0x30
mov byte [ebp - 0x2732], 0
mov byte [ebp - 0x2731], 0
mov byte [ebp - 0x2730], 0x18
mov byte [ebp - 0x272f], 0x61
mov byte [ebp - 0x272e], 0xe
mov byte [ebp - 0x272d], 0
mov byte [ebp - 0x272c], 0x22
mov byte [ebp - 0x272b], 0
mov byte [ebp - 0x272a], 0
mov byte [ebp - 0x2729], 0
mov byte [ebp - 0x2728], 0x90
mov byte [ebp - 0x2727], 0x66
mov byte [ebp - 0x2726], 0xe
mov byte [ebp - 0x2725], 0
mov byte [ebp - 0x2724], 0xe8
mov byte [ebp - 0x2723], 2
mov byte [ebp - 0x2722], 0
mov byte [ebp - 0x2721], 0
mov byte [ebp - 0x2720], 8
mov byte [ebp - 0x271f], 0
mov byte [ebp - 0x271e], 0
mov byte [ebp - 0x271d], 0
mov byte [ebp - 0x271c], 0x80
mov byte [ebp - 0x271b], 0x60
mov byte [ebp - 0x271a], 0x30
mov byte [ebp - 0x2719], 0
mov byte [ebp - 0x2718], 0x14
mov byte [ebp - 0x2717], 0x28
mov byte [ebp - 0x2716], 0x30
mov byte [ebp - 0x2715], 0x60
mov byte [ebp - 0x2714], 0xc8
mov byte [ebp - 0x2713], 0x30
mov byte [ebp - 0x2712], 0
mov byte [ebp - 0x2711], 0
mov byte [ebp - 0x2710], 0x18
mov byte [ebp - 0x270f], 0x61
mov byte [ebp - 0x270e], 0xe
mov byte [ebp - 0x270d], 0
mov byte [ebp - 0x270c], 0x22
mov byte [ebp - 0x270b], 0
mov byte [ebp - 0x270a], 0
mov byte [ebp - 0x2709], 0
mov byte [ebp - 0x2708], 0x90
mov byte [ebp - 0x2707], 0x66
mov byte [ebp - 0x2706], 0xe
mov byte [ebp - 0x2705], 0
mov byte [ebp - 0x2704], 0xe8
mov byte [ebp - 0x2703], 2
mov byte [ebp - 0x2702], 0
mov byte [ebp - 0x2701], 0
mov byte [ebp - 0x2700], 0
mov byte [ebp - 0x26ff], 0
mov byte [ebp - 0x26fe], 0
mov byte [ebp - 0x26fd], 0
mov byte [ebp - 0x26fc], 0x80
mov byte [ebp - 0x26fb], 0x60
mov byte [ebp - 0x26fa], 0x30
mov byte [ebp - 0x26f9], 0
push 0x20
lea ecx, [ebp - 0x2662]
push ecx
lea edx, [ebp - 0x2738]
push edx
call fcn.0041c990
add esp, 0xc
movzx eax, byte [ebp - 0x266f]
test eax, eax
je 0x4021ca
mov ecx, dword [ebp + 0x1c]
push ecx
push 8
push 0x64
lea edx, [ebp - 0x2718]
push edx
lea eax, [ebp - 0x2738]
push eax
call fcn.00402920
add esp, 0x14
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x26f4], ecx
cmp dword [ebp - 0x26f4], 0xfa000
jle 0x4021e9
mov dword [ebp - 0x26f4], 0xfa000
mov edx, dword [ebp - 0x26f4]
push edx
lea eax, [ebp - 0x2738]
push eax
push 0x64
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402da0
add esp, 0x10
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x26f4]
mov dword [ebp - 0x26f8], edx
cmp dword [ebp - 0x26f8], 0x9c4000
jbe 0x40222a
mov dword [ebp - 0x26f8], 0x9c4000
cmp dword [ebp - 0x26f8], 0
jbe 0x40225e
mov eax, dword [ebp - 0x26f8]
push eax
lea ecx, [ebp - 0x2718]
push ecx
movzx edx, word [ebp - 0x2664]
push edx
mov eax, dword [ebp - 0x26c0]
add eax, dword [ebp - 0x26f4]
push eax
call fcn.00402aa0
add esp, 0x10
movzx edx, byte [ebp - 0x266e]
test edx, edx
je 0x4022bd
mov eax, dword [ebp - 0x2680]
mov dword [ebp - 0x273c], eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x80
push 0x64
mov edx, dword [ebp - 0x26c0]
add edx, dword [ebp - 0x273c]
push edx
mov eax, dword [ebp - 0x26c0]
add eax, dword [ebp - 0x273c]
push eax
call fcn.00402990
add esp, 0x14
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x20
mov edx, dword [ebp - 0x26c0]
add edx, dword [ebp - 0x273c]
push edx
call fcn.00402a00
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 - 0x3c], edx
push 0xf8
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, 1
je 0x4022f7
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x4022fe
xor eax, eax
jmp 0x4028b3
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x26f0], edx
mov dword [ebp - 4], 0x28
mov eax, dword [ebp - 0x26f0]
sub eax, dword [ebp - 0x26ec]
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 6]
imul edx, dword [ebp - 4]
add eax, edx
mov dword [ebp - 0x26b8], eax
mov eax, dword [ebp - 0x26b8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x26ac], 0
xor ecx, ecx
mov word [ebp - 0x38], cx
jmp 0x40235f
mov dx, word [ebp - 0x38]
add dx, 1
mov word [ebp - 0x38], dx
movzx eax, word [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 6]
cmp eax, edx
jae 0x4023e5
movzx eax, word [ebp - 0x38]
imul eax, eax, 0x28
movzx ecx, word [ebp - 0x38]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26f0]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0x26f0]
add eax, dword [edx + ecx + 0x10]
cmp dword [ebp - 0x30], eax
jae 0x4023ba
movzx eax, word [ebp - 0x38]
imul eax, eax, 0x28
movzx ecx, word [ebp - 0x38]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26f0]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [ebp - 0x26f0]
add eax, dword [edx + ecx + 0x10]
mov dword [ebp - 0x30], eax
movzx eax, word [ebp - 0x38]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x26f0]
mov ecx, dword [ecx + 0x88]
cmp ecx, dword [edx + eax + 0xc]
jne 0x4023e0
movzx edx, word [ebp - 0x38]
mov dword [ebp - 0x26ac], edx
jmp 0x402353
lea eax, [ebp - 0x26e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
xor edx, edx
div dword [ebp - 0x26e0]
mov dword [ebp - 0x26a0], eax
mov eax, dword [ebp - 0x30]
xor edx, edx
div dword [ebp - 0x26e0]
test edx, edx
je 0x402421
mov ecx, dword [ebp - 0x26a0]
add ecx, 1
mov dword [ebp - 0x26a0], ecx
mov edx, dword [ebp - 0x26a0]
imul edx, dword [ebp - 0x26e0]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
push 0x40
push 0x1000
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x40246c
push 0x10
push 0x4a46f8
push str.Error_in_VirtualAlloc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4028b3
mov eax, dword [ebp - 0x26b8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041cec0
add esp, 0xc
mov dword [ebp - 0x269c], 0
mov dword [ebp - 0x26b4], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov word [ebp - 0x38], ax
jmp 0x4024b2
mov cx, word [ebp - 0x38]
add cx, 1
mov word [ebp - 0x38], cx
movzx edx, word [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax + 6]
cmp edx, ecx
jge 0x40254e
movzx edx, word [ebp - 0x38]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x26f0]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x269c], ecx
movzx edx, word [ebp - 0x38]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x26f0]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x14]
mov dword [ebp - 0x26b4], ecx
movzx edx, word [ebp - 0x38]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x26f0]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x26b4]
push eax
mov ecx, dword [ebp - 0x269c]
push ecx
call fcn.0041cec0
add esp, 0xc
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x2662]
push eax
movzx ecx, word [ebp - 0x2664]
push ecx
mov edx, dword [ebp - 0x269c]
push edx
call fcn.00402aa0
add esp, 0x10
jmp 0x4024a6
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 - 0x3c], edx
mov eax, dword [ebp - 0x3c]
add eax, 0xf8
mov dword [ebp - 0x26f0], eax
mov ecx, dword [ebp - 0x26ec]
mov dword [0x59fdb8], ecx
cmp dword [ebp - 0x26ac], 0
je 0x4025e8
call fcn.00415a10
cmp eax, 1
jne 0x4025e8
mov edx, dword [ebp - 0x26ac]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x26f0]
mov ecx, dword [eax + edx + 0xc]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x26ac]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x26f0]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebp - 0x26ac]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26f0]
mov eax, dword [edx + ecx + 0x14]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x26ac]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x26f0]
mov dword [edx + ecx + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
jne 0x402629
push 0x8000
push 0
mov edx, dword [ebp - 0x26ec]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x4a4718
push str.Error_in_GetImgDirEntryRVA
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4028b3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x3c]
add ecx, dword [edx + 0x34]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x40265a
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x26ec]
mov dword [ebp - 8], eax
jmp 0x402689
push 0x8000
push 0
mov ecx, dword [ebp - 0x26ec]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x4a473c
push str.Error_in_Get_ImportDesc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4028b3
mov edx, 1
test edx, edx
je 0x402822
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4026ad
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
jne 0x4026ad
jmp 0x402822
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
add eax, dword [0x59fdb8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x26a4], eax
cmp dword [ebp - 0x26a4], 0
jne 0x4026e5
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x26a4], eax
cmp dword [ebp - 0x26a4], 0
jne 0x4026f8
jmp 0x402814
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x402713
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
add edx, dword [ebp - 0x26ec]
mov dword [ebp - 0x2744], edx
jmp 0x402725
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x26ec]
mov dword [ebp - 0x2744], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x26ec]
mov dword [ebp - 0x2740], eax
mov ecx, dword [ebp - 0x2744]
cmp dword [ecx], 0
je 0x402814
mov dword [ebp - 0x2748], 0x80000000
mov edx, dword [ebp - 0x2744]
mov eax, dword [edx]
and eax, dword [ebp - 0x2748]
je 0x402786
mov ecx, dword [ebp - 0x2744]
mov edx, dword [ecx]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x26a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2740]
mov dword [ecx], eax
jmp 0x4027b9
mov edx, dword [ebp - 0x2744]
mov eax, dword [edx]
add eax, dword [ebp - 0x26ec]
mov dword [ebp - 0x26a8], eax
mov ecx, dword [ebp - 0x26a8]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x26a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2740]
mov dword [ecx], eax
cmp dword [ebp - 0x2740], 0
jne 0x4027f1
push 0x8000
push 0
mov edx, dword [ebp - 0x26ec]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x10
push 0x4a475c
push str.Error_in_set_FuncAddr.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4028b3
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 0x402737
mov edx, dword [ebp - 8]
add edx, 0x14
mov dword [ebp - 8], edx
jmp 0x402689
mov eax, dword [ebp - 0x26ec]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00401300
add esp, 8
movzx edx, byte [ebp - 0x266c]
test edx, edx
je 0x40286a
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x80]
add ecx, dword [ebp - 0x26ec]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x84]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041ce40
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xa0]
add eax, dword [ebp - 0x26ec]
mov dword [ebp - 0x26b0], eax
movzx ecx, byte [ebp - 0x266b]
test ecx, ecx
je 0x4028a5
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xa4]
push eax
push 0
mov ecx, dword [ebp - 0x26b0]
push ecx
call fcn.0041ce40
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [0x59f828], edx
mov eax, 1
mov esp, ebp
pop ebp
ret