Function at 0x4037eb
Capabilities:
Create process on windows
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00405732
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x41733d
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 0x80000301
push 0
push dword [ebp + 8]
push 0x20002
push 0
push dword [0x417728]
push 2
mov ebx, 0x60
mov eax, 0x4087e0
call fcn.00405a60
add esp, 0x1c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4038c2
call fcn.004043f0
push 0x80000301
push 0
push dword [0x41772c]
push 1
mov ebx, 0x18
mov eax, 0x40a6e0
call fcn.00405a60
add esp, 0x10
push 0x80000301
push 0
push 0x417724
push 0
push 0
push 0
push ioctlsocket
push 0
push 0x404f40
push 3
mov ebx, 0
mov eax, 0x40a680
call fcn.00405a60
add esp, 0x28
jmp 0x404385
cmp dword [ebp - 4], 1
jne 0x404385
push reloc.WS2_32.dll_connect
push 0
lea eax, [ebp - 8]
push eax
push 0x80000301
push 0
push dword [ebp + 8]
push 0x20002
push 0
push dword [0x417728]
push 3
mov ebx, 0x54
mov eax, 0x408700
call fcn.00405a60
add esp, 0x28
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x417398
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40392a
mov eax, 0x417240
push eax
push 3
mov ebx, 0x190
call fcn.00406c50
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x403962
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40395e
imul eax, dword [ebx]
jmp 0x403953
mov ecx, eax
test ecx, ecx
je 0x403981
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40397a
push ebx
push eax
call fcn.00405744
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403968
call fcn.00405744
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.00401021
mov eax, 0
cmp eax, ecx
jl 0x4039ab
push 1
call fcn.00405738
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x4039d1
push eax
mov ebx, eax
call fcn.004010de
inc eax
push eax
call fcn.00405732
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4039e2
push ebx
call fcn.00405744
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 4
mov eax, 2
call fcn.004059e0
add esp, 8
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
call fcn.00401021
mov dword [ebp - 0x1c], ecx
sub ecx, 0
jle 0x403a9a
cmp ecx, 1
jle 0x403a1a
mov ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x403a9a
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [edi], 1
add edi, 4
mov eax, ecx
sub eax, dword [ebp - 0x14]
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x403a48
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
add edi, 8
mov ecx, dword [ebp - 0x14]
mov ebx, edi
push edi
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403a65
push ebx
call fcn.00405744
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x403a54
pop edi
mov eax, dword [ebp - 0x14]
shl eax, 2
mov esi, edi
add esi, eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 0
sub ecx, dword [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
sub edi, dword [ebp - 0x18]
push edi
push dword [ebp - 0x18]
call fcn.00405756
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
jmp 0x403a9c
xor eax, eax
push 0x4173a0
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x403b13
push 0x80000301
push 0
push dword [0x417724]
push 1
mov ebx, 0x18
mov eax, 0x40a6e0
call fcn.00405a60
add esp, 0x10
push 0x80000301
push 0
push 0x41772c
push 0
push 0
push 0
push ioctlsocket
push 0
push 0x404fa6
push 3
mov ebx, 0
mov eax, 0x40a680
call fcn.00405a60
add esp, 0x28
jmp 0x404385
push 0x4173a5
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x403be2
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403b3f
mov eax, 0x417240
push eax
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
push 0x4173ae
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040219d
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403bae
mov eax, 0x417240
push eax
push 2
mov ebx, 0x138
call fcn.00406350
add esp, 0x1c
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404450
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403bdd
push ebx
call fcn.00405744
add esp, 4
jmp 0x404385
push 0x4173b8
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x403cb6
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403c0e
mov eax, 0x417240
push eax
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
push 0x4173c1
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040219d
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403c7d
mov eax, 0x417240
push eax
push 2
mov ebx, 0x138
call fcn.00406350
add esp, 0x1c
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.00404583
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403cb1
push ebx
call fcn.00405744
add esp, 4
jmp 0x404385
push 0x4173cb
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x403d8a
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403ce2
mov eax, 0x417240
push eax
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
push 0x4173d4
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040219d
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403d51
mov eax, 0x417240
push eax
push 2
mov ebx, 0x138
call fcn.00406350
add esp, 0x1c
mov dword [ebp - 0x34], eax
push 1
lea eax, [ebp - 0x34]
push eax
call fcn.00404583
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403d85
push ebx
call fcn.00405744
add esp, 4
jmp 0x404385
push 0x4173de
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x403e8b
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403db6
mov eax, 0x417240
push eax
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
push 0x4173e7
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040219d
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403e25
mov eax, 0x417240
push eax
push 2
mov ebx, 0x138
call fcn.00406350
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
push 0x417240
push 0x417240
push dword [ebp - 0x34]
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x403e76
push 6
call fcn.00405738
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403e86
push ebx
call fcn.00405744
add esp, 4
jmp 0x404385
push 0x4173f6
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x404011
push 0
mov ebx, 0x104
call fcn.004062b0
add esp, 4
mov dword [ebp - 0x14], eax
push str._bz.ini
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403ee1
push ebx
call fcn.00405744
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403ef4
mov eax, 0x417240
push eax
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
push 0x4173ff
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 0x20]
fstp qword [ebp - 0x30]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.0040219d
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403f63
mov eax, 0x417240
push eax
push 2
mov ebx, 0x138
call fcn.00406350
add esp, 0x1c
mov dword [ebp - 0x3c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x403f8c
mov eax, 0x417240
push eax
push 1
mov ebx, 0x198
call fcn.004065d0
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x403fb2
push ebx
call fcn.00405744
add esp, 4
push htons
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x403fc5
mov eax, 0x41733d
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x403fd9
mov eax, 0x417240
push eax
push 2
mov ebx, 0x26c
call fcn.00406690
add esp, 0x1c
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x403ffc
push ebx
call fcn.00405744
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40400c
push ebx
call fcn.00405744
add esp, 4
jmp 0x404385
push 0x417409
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x4040e2
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40403d
mov eax, 0x417240
push eax
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
push 0x417412
push 1
mov ebx, 0x130
call fcn.00406e50
add esp, 0x10
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040219d
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4040ac
mov eax, 0x417240
push eax
push 2
mov ebx, 0x138
call fcn.00406350
add esp, 0x1c
mov dword [ebp - 0x34], eax
push 1
lea eax, [ebp - 0x34]
push eax
call fcn.00404a13
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4040dd
push ebx
call fcn.00405744
add esp, 4
jmp 0x404385
push 0x41741c
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x404105
call fcn.004043f0
jmp 0x404385
push 0x417425
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x40424b
call fcn.004043f0
push 0
mov ebx, 0x104
call fcn.004062b0
add esp, 4
mov dword [ebp - 0x14], eax
push str._bz.ini
push dword [ebp - 0x14]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404160
push ebx
call fcn.00405744
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x404173
mov eax, 0x417240
push eax
push 1
mov ebx, 0x244
call fcn.00406e70
add esp, 0x10
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404196
push ebx
call fcn.00405744
add esp, 4
push 0
mov ebx, 0x104
call fcn.004062b0
add esp, 4
mov dword [ebp - 0x14], eax
push 0
mov ebx, 0x108
call fcn.00406110
add esp, 4
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push 0x41729a
push dword [ebp - 0x14]
mov ecx, 3
call fcn.00401149
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4041eb
push ebx
call fcn.00405744
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4041fb
push ebx
call fcn.00405744
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0x417240
push 0x4172b1
push dword [ebp - 0x1c]
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x404236
push 6
call fcn.00405738
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404246
push ebx
call fcn.00405744
add esp, 4
jmp 0x404385
push 0x41742a
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x4042c7
mov dword [ebp - 0x14], esp
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 1
push 0x13
call dword [0x41777c]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40429e
push 6
call fcn.00405738
add esp, 4
mov dword [ebp - 0x14], esp
push 0
call dword [0x417780]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4042c2
push 6
call fcn.00405738
add esp, 4
jmp 0x404385
push 0x41742f
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x404343
mov dword [ebp - 0x14], esp
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 1
push 0x13
call dword [0x41777c]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40431a
push 6
call fcn.00405738
add esp, 4
mov dword [ebp - 0x14], esp
push 1
call dword [0x417780]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40433e
push 6
call fcn.00405738
add esp, 4
jmp 0x404385
push 0x417434
push dword [ebp - 0x10]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x404385
mov dword [ebp - 0x14], esp
push 0
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404385
push 6
call fcn.00405738
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x404395
push ebx
call fcn.00405744
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4043b3
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4043af
imul eax, dword [ebx]
jmp 0x4043a4
mov ecx, eax
test ecx, ecx
je 0x4043d2
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4043cb
push ebx
push eax
call fcn.00405744
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4043b9
call fcn.00405744
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4043ea
push ebx
call fcn.00405744
add esp, 4
mov esp, ebp
pop ebp
ret 4