Function at 0x411000
Capabilities:
Create process on windows
Delete file
Self delete
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
push ebx
push esi
mov esi, ecx
test esi, esi
push edi
jne 0x411022
push 0x57
call sub.storm.dll_Ordinal_465
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x104
lea ecx, [ebp - 0x180]
call sym.War3.exe_G5
lea eax, [ebp - 0x180]
push eax
call sub.storm.dll_Ordinal_506
test eax, eax
je 0x411058
mov cl, byte [ebp + eax - 0x181]
cmp cl, 0x5c
lea eax, [ebp + eax - 0x181]
jne 0x411058
mov byte [eax], 0
mov byte [ebp - 0x784], 0
cmp byte [esi], 0
lea edi, [ebp - 0x784]
mov ebx, esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], ebx
je 0x411354
jmp 0x411080
mov ebx, dword [ebp - 0x1c]
nop
lea esp, [esp]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push ebx
call sub.storm.dll_Ordinal_266
test eax, eax
je 0x41140b
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x20]
push edx
push eax
call sub.storm.dll_Ordinal_251
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4110b3
cmp eax, 5
jb 0x411402
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.Prepatch.lst
push edx
call sub.storm.dll_Ordinal_268
test eax, eax
je 0x411328
mov eax, dword [ebp - 0x14]
push 0
push eax
call sub.storm.dll_Ordinal_265
push 0
push 0x139
mov ebx, eax
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsBattleNet.cpp
push ebx
mov dword [ebp - 0x24], ebx
call sub.storm.dll_Ordinal_401
mov ecx, dword [ebp - 0x14]
push 0
push 0
mov esi, eax
push ebx
push esi
push ecx
mov dword [ebp - 0x10], esi
call sub.storm.dll_Ordinal_269
test eax, eax
je 0x41130a
test ebx, ebx
mov edi, esi
mov dword [ebp - 4], edi
jbe 0x411307
lea ebx, [ebx]
mov edx, edi
sub edx, esi
cmp edx, ebx
mov byte [ebp - 0x280], 0
lea eax, [ebp - 0x280]
jae 0x411163
xor esi, esi
cmp esi, 0x100
jae 0x41115d
mov cl, byte [edi]
test cl, cl
je 0x41115d
cmp cl, 0xd
je 0x41115d
cmp cl, 0xa
je 0x41115d
inc eax
mov byte [eax - 1], cl
inc esi
inc edi
inc edx
cmp edx, ebx
mov byte [eax], 0
jb 0x411137
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], edi
mov eax, edi
sub eax, esi
cmp eax, ebx
jae 0x411183
mov ecx, eax
lea ecx, [ecx]
mov al, byte [edi]
cmp al, 0xd
je 0x41117a
cmp al, 0xa
jne 0x411180
inc edi
inc ecx
cmp ecx, ebx
jb 0x411170
mov dword [ebp - 4], edi
mov dl, 0x20
lea ecx, [ebp - 0x280]
mov byte [ebp - 0x384], 0
call sub.storm.dll_Ordinal_569
mov esi, eax
test esi, esi
je 0x4111cb
cmp byte [esi], 0x20
jne 0x4111aa
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4111a2
push esi
lea edx, [ebp - 0x180]
push edx
push str._s_s
lea eax, [ebp - 0x384]
push 0x104
push eax
call sub.storm.dll_Ordinal_578
add esp, 0x14
push 7
push str.delete
lea ecx, [ebp - 0x280]
push ecx
call sub.storm.dll_Ordinal_509
test eax, eax
jne 0x4111f8
test esi, esi
je 0x4111f8
lea edx, [ebp - 0x384]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
jmp 0x4112c3
push 8
push str.extract
lea eax, [ebp - 0x280]
push eax
call sub.storm.dll_Ordinal_509
test eax, eax
jne 0x4112c3
test esi, esi
je 0x4112c3
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push edx
call sub.storm.dll_Ordinal_268
test eax, eax
je 0x4112c3
mov eax, dword [ebp - 0x18]
push 0
push eax
call sub.storm.dll_Ordinal_265
push 0
push 0x165
mov edi, eax
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsBattleNet.cpp
push edi
call sub.storm.dll_Ordinal_401
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
mov ebx, eax
push ebx
push ecx
call sub.storm.dll_Ordinal_269
test eax, eax
je 0x4112a2
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea edx, [ebp - 0x384]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4112a2
push 0
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0
push 0x176
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsBattleNet.cpp
push ebx
call sub.storm.dll_Ordinal_403
mov ecx, dword [ebp - 0x18]
push ecx
call sub.storm.dll_Ordinal_253
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0x24]
push 8
push str.execute
lea edx, [ebp - 0x280]
push edx
call sub.storm.dll_Ordinal_509
test eax, eax
jne 0x4112f6
mov esi, dword [ebp - 8]
push accept
lea eax, [ebp - 0x384]
push eax
push esi
call sub.storm.dll_Ordinal_501
lea ecx, [esi + eax + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x10]
mov edx, edi
sub edx, ecx
cmp edx, ebx
mov esi, ecx
jb 0x411120
mov edi, dword [ebp - 8]
push 0
push 0x183
push str.E:Drive1_temp_buildwar3xengineSourceOsW32OsBattleNet.cpp
push esi
call sub.storm.dll_Ordinal_403
mov eax, dword [ebp - 0x14]
push eax
call sub.storm.dll_Ordinal_253
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
push ecx
call sub.storm.dll_Ordinal_252
push ebx
call sub.storm.dll_Ordinal_506
mov cl, byte [ebx + eax + 1]
test cl, cl
lea eax, [ebx + eax + 1]
mov dword [ebp - 0x1c], eax
jne 0x411078
lea eax, [ebp - 0x784]
cmp edi, eax
jne 0x411381
lea ecx, [ebp - 0x180]
push ecx
lea edx, [ebp - 0x384]
push str._s_bnupdate.exe
sub edx, edi
push edx
push edi
call sub.storm.dll_Ordinal_578
add esp, 0x10
push edi
call sub.storm.dll_Ordinal_506
lea eax, [edi + eax + 1]
mov dword [ebp - 8], eax
mov edi, eax
mov byte [edi], 0
mov al, byte [ebp - 0x784]
test al, al
lea esi, [ebp - 0x784]
je 0x411423
mov ebx, dword [sym.imp.kernel32.dll_CreateProcessA]
mov edi, edi
xor eax, eax
mov ecx, 0x11
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x180]
push eax
push 0
push 0x20
push 0
push 0
push 0
push esi
push 0
mov dword [ebp - 0x7c], 0x44
call ebx
test eax, eax
je 0x411417
mov ecx, dword [ebp - 0x34]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0x38]
push edx
call edi
push esi
call sub.storm.dll_Ordinal_506
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4113a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
push edx
call sub.storm.dll_Ordinal_252
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret