Function at 0x10004090
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034684
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x10048434]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
cmp dword [ebp + 0xc], 0x44d
mov dword [ebp - 0x468], ebx
jne 0x1000458b
mov dword [ebp - 4], ebx
mov eax, dword [0x6bdaf0]
push 0x44d
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x48]
test eax, eax
je 0x1000458b
mov ecx, dword [eax + 0x1fc]
test ecx, ecx
js 0x1000458b
cmp ecx, dword [eax + 0x210]
ja 0x1000458b
mov esi, dword [eax + ecx*4 + 0x214]
mov eax, dword [0x6bdaf0]
push 0x2711
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, eax
call fcn.10003dc0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x88]
mov edx, eax
mov dword [ebp - 0xa0], ebx
mov ecx, edx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], bl
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004160
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.100034e0
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x90]
cmp edi, 2
jb 0x10004235
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0xf
cmp edi, 1
jb 0x10004c9f
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push ecx
inc eax
lea ecx, [ebp - 0xcc]
push eax
call fcn.100034e0
lea eax, [ebp - 0xcc]
mov ebx, 1
push eax
lea ecx, [ebp - 0xa0]
call fcn.10003780
mov edx, dword [ebp - 0xb8]
cmp edx, 0x10
jb 0x1000422f
mov ecx, dword [ebp - 0xcc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10004225
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ca4
push edx
push ecx
call fcn.1001405e
add esp, 8
mov edi, dword [ebp - 0x90]
push 9
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x88]
push str.DropList_
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.100034e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
mov esi, dword [ebp - 0x74]
mov eax, esi
cmovae ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x78]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x100042b6
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
lea esi, [eax + edx]
push esi
call fcn.10015c90
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x100042cf
mov byte [ebp - 0x468], 0
lea ecx, [ebp - 0x88]
push dword [ebp - 0x468]
push edi
call fcn.10003c20
mov edx, dword [ebp - 0x74]
mov eax, edx
mov ecx, dword [ebp - 0x78]
sub eax, ecx
mov edi, dword [ebp - 0xa0]
cmp eax, 4
jb 0x10004308
lea eax, [ecx + 4]
cmp edx, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
mov dword [eax + ecx], 0x6e69622e
mov byte [eax + ecx + 4], 0
jmp 0x10004329
push 4
push str..bin
mov byte [ebp - 0x468], 0
lea ecx, [ebp - 0x88]
push dword [ebp - 0x468]
push 4
call fcn.10003c20
push 0xb8
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.10016210
cmp dword [ebp - 0x74], 0x10
lea esi, [ebp - 0x88]
mov dword [ebp - 0x464], 0x10041c20
cmovae esi, dword [ebp - 0x88]
mov dword [ebp - 0x3ec], 0
mov dword [ebp - 0x3cc], 0
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0
add esp, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x454]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
xorps xmm0, xmm0
mov dword [ebp - 0x3f8], 0x58
or ebx, 2
movlpd qword [ebp - 0x45c], xmm0
push eax
lea ecx, [ebp - 0x3f4]
mov dword [ebp - 0x468], ebx
call fcn.10003650
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x464]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x464]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x468], eax
lea ecx, [ebp - 0x454]
call fcn.10003390
sub esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x454]
push esi
call fcn.100032d0
test eax, eax
jne 0x1000443a
mov eax, dword [ebp - 0x464]
lea ecx, [ebp - 0x464]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
push ecx
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001d60
mov eax, dword [ebp - 0x464]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x464]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x468], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x464]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x458], 0
lea eax, [ebp - 0x88]
je 0x100045a9
cmp dword [ebp - 0x74], 0x10
cmovae eax, dword [ebp - 0x88]
push eax
push str._s_does_not_exist
call fcn.10006850
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x40
push eax
push 0x40
push 4
push 0x49b50a
call esi
mov dword [0x49b50b], 0xff00ff00
mov eax, dword [0x6bdaf0]
mov dword [ebp - 0x46c], eax
push dword [ebp - 0x468]
mov ecx, dword [ebp - 0x46c]
call dword [0x10057aac]
lea eax, [ebp - 0x68]
mov dword [0x49b50b], 0xffffaaaa
push eax
push dword [ebp - 0x68]
push 4
push 0x49b50a
call esi
lea ecx, [ebp - 0x464]
call fcn.10004cb0
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x10004540
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10004536
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ca4
push edx
push ecx
call fcn.1001405e
add esp, 8
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x1000458b
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10004581
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ca4
push ecx
push edi
call fcn.1001405e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001401b
mov esp, ebp
pop ebp
ret 0x28
cmp dword [ebp - 0x74], 0x10
push 0x10041bb8
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.10018d7c
mov esi, eax
add esp, 8
test esi, esi
jne 0x10004635
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push str.Failed_to_open__s
call fcn.10006850
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x40
push eax
push 0x40
push 4
push 0x49b50a
call esi
mov dword [0x49b50b], 0xffff0000
mov eax, dword [0x6bdaf0]
mov dword [ebp - 0x46c], eax
push dword [ebp - 0x468]
mov ecx, dword [ebp - 0x46c]
call dword [0x10057aac]
jmp 0x100044e4
push esi
push 0x2e0
lea eax, [ebp - 0x3ac]
push 1
push eax
call fcn.1001e7f3
add esp, 0x10
cmp eax, 0x2e0
je 0x10004776
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
push str.Failed_to_read__s
call fcn.10006850
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x40
push eax
push 0x40
push 4
push 0x49b50a
call edi
mov dword [0x49b50b], 0xffff0000
mov eax, dword [0x6bdaf0]
mov dword [ebp - 0x46c], eax
push dword [ebp - 0x468]
mov ecx, dword [ebp - 0x46c]
call dword [0x10057aac]
lea eax, [ebp - 0x68]
mov dword [0x49b50b], 0xffffaaaa
push eax
push dword [ebp - 0x68]
push 4
push 0x49b50a
call edi
push esi
call fcn.1001921b
add esp, 4
lea ecx, [ebp - 0x464]
call fcn.10004cb0
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x10004724
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000471a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ca4
push edx
push ecx
call fcn.1001405e
add esp, 8
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x1000458b
mov edx, dword [ebp - 0xa0]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000476f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ca4
push ecx
push edx
jmp 0x10004583
push esi
call fcn.1001921b
add esp, 4
lea ecx, [ebp - 0x454]
call fcn.100031e0
test eax, eax
jne 0x100047b8
mov eax, dword [ebp - 0x464]
lea ecx, [ebp - 0x464]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
push ecx
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001d60
xorps xmm0, xmm0
mov dword [ebp - 0xac], 0
xor ecx, ecx
movq qword [ebp - 0xb4], xmm0
xor eax, eax
mov dword [ebp - 0x68], ecx
xor esi, esi
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 8
xor edi, edi
mov dword [ebp - 0x468], 0x1964
nop
cmp edi, 0x40
jge 0x100048a9
mov edx, dword [ebp + edi*8 - 0x2cc]
mov ebx, dword [ebp + edi*8 - 0x2c8]
movzx eax, dx
mov dword [ebp - 0xa8], edx
mov ecx, eax
mov dword [ebp - 0xa4], ebx
test ax, ax
je 0x100048a3
cmp ax, word [ebp - 0x468]
jae 0x100048a3
mov eax, dword [ebp - 0x68]
cmp eax, esi
je 0x10004852
nop dword [eax]
cmp word [eax], cx
je 0x1000484e
add eax, 8
cmp eax, esi
jne 0x10004840
jmp 0x10004852
cmp eax, esi
jne 0x100048a3
mov eax, 0x1c6
cmp dx, ax
je 0x100048a3
cmp esi, dword [ebp - 0x46c]
je 0x10004875
mov dword [esi], edx
mov dword [esi + 4], ebx
add esi, 8
mov dword [ebp - 0xb0], esi
inc edi
jmp 0x10004800
lea eax, [ebp - 0xa8]
push eax
push esi
lea ecx, [ebp - 0xb4]
call fcn.10005340
mov eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x68], eax
inc edi
jmp 0x10004800
mov eax, dword [0x6bdaf0]
xor edi, edi
push 0x2711
mov dword [ebp - 0x470], edi
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword fs:[0x2c]
mov ebx, eax
mov edx, dword [0x1008e038]
mov dword [ebp - 0xa4], ebx
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1008eb30]
cmp ecx, dword [edx + 4]
jle 0x10004920
push 0x1008eb30
call fcn.100141c2
add esp, 4
cmp dword [0x1008eb30], 0xffffffff
jne 0x10004920
push 0x10034b30
mov dword [0x1008eb34], 0x10041c34
call fcn.1001459d
push 0x1008eb30
call fcn.10014178
add esp, 8
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push eax
push 0x40
push 4
add ebx, 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004952
lea eax, [ebp - 0x6c]
mov dword [ebx], 5
push eax
push dword [ebp - 0x6c]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [ebp - 0x68]
mov ecx, 0x5b8113
cmp ebx, esi
je 0x10004a09
cmp edi, 6
je 0x10004a09
mov ax, word [ebx]
push 8
mov word [ebp - 0x70], ax
mov dword [ebp - 0x6e], 0
mov word [ebp - 0x6a], 0
call ecx
mov ecx, dword [ebp - 0x70]
add esp, 4
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x468], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, 0x5b8113
push 0x678
call eax
add esp, 4
mov ecx, eax
sub esp, 8
mov eax, 0x40c9ee
mov dword [esp + 4], 0
mov dword [esp], 0
push dword [ebp - 0x468]
push 0
call eax
mov ecx, dword [ebp - 0xa4]
push edi
push dword [ebp - 0x470]
mov edx, dword [ecx]
push eax
call dword [edx + 0x94]
mov edx, dword [ebp - 0x470]
lea eax, [edi + 1]
add ebx, 8
cmp edx, 6
cmovne eax, edi
xor ecx, ecx
mov edi, eax
cmp edx, 6
lea eax, [edx + 1]
cmovne ecx, eax
mov dword [ebp - 0x470], ecx
jmp 0x10004955
xorps xmm0, xmm0
mov dword [ebp - 0xb8], 0
xor edi, edi
movq qword [ebp - 0xc0], xmm0
xor esi, esi
mov dword [ebp - 0x468], edi
xor ebx, ebx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 4], 9
xor edx, edx
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x6c], ebx
nop dword [eax + eax]
cmp edx, 0x40
jge 0x10004af1
mov dword [ebp - 0xa4], eax
test ax, ax
je 0x10004ae8
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10004ae8
mov edx, edi
cmp edx, esi
je 0x10004a96
cmp word [edx], ax
jne 0x10004a89
mov cx, word [edx + 2]
cmp cx, word [ebp - 0x38a]
je 0x10004a92
add edx, 4
cmp edx, esi
jne 0x10004a77
jmp 0x10004a96
cmp edx, esi
jne 0x10004ae5
cmp esi, ebx
je 0x10004ab4
mov edx, dword [ebp - 0x6c]
mov dword [esi], eax
add esi, 4
mov eax, dword [ebp - 0x38c]
inc edx
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0x6c], edx
jmp 0x10004a50
lea eax, [ebp - 0xa4]
push eax
push esi
lea ecx, [ebp - 0xc0]
call fcn.100051e0
mov edi, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0xbc]
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x468], edi
mov edx, dword [ebp - 0x6c]
inc edx
mov dword [ebp - 0x6c], edx
jmp 0x10004a50
push 0
lea eax, [ebp - 0x64]
push 0x10041be4
push eax
call fcn.100055a0
mov eax, dword [0x6bdaf0]
add esp, 0xc
mov ecx, dword [eax + 0x28]
push 0x578
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, eax
test ecx, ecx
je 0x10004b30
mov eax, dword [ecx]
lea edx, [ebp - 0x64]
push 0
push edx
call dword [eax + 0x80]
nop word [eax + eax]
cmp edi, esi
je 0x10004b9a
movzx eax, word [edi]
mov word [ebp - 0x6c], ax
xor eax, eax
mov word [ebp - 0x6a], ax
movzx eax, word [edi + 2]
mov word [ebp - 0x470], ax
xor eax, eax
mov word [ebp - 0x46e], ax
lea eax, [ebp - 0x64]
push dword [ebp - 0x470]
push dword [ebp - 0x6c]
push str.X:_d_Y:_d
push eax
call fcn.100055a0
mov eax, dword [0x6bdaf0]
add esp, 0x10
mov ecx, dword [eax + 0x28]
push 0x578
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, eax
test ecx, ecx
je 0x10004b95
mov eax, dword [ecx]
lea edx, [ebp - 0x64]
push 0
push edx
call dword [eax + 0x80]
add edi, 4
jmp 0x10004b30
mov ecx, dword [ebp - 0x468]
test ecx, ecx
je 0x10004bd1
sub ebx, ecx
mov eax, ecx
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x10004bc7
mov ecx, dword [ecx - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ca4
push ebx
push ecx
call fcn.1001405e
add esp, 8
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x10004c0b
mov ecx, dword [ebp - 0x46c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10004c01
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ca4
push ecx
push edx
call fcn.1001405e
add esp, 8
lea ecx, [ebp - 0x464]
call fcn.10004cb0
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x10004c49
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10004c3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ca4
push edx
push ecx
call fcn.1001405e
add esp, 8
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x1000458b
mov edx, dword [ebp - 0xa0]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000476f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004ca4
jmp 0x1000476f
call fcn.10003800
call fcn.1001eec0
int3