Function at 0x10003830
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100299f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
mov eax, dword [0x10035a8c]
push ebx
push esi
push edi
mov esi, ecx
push 0x1002b599
lea ecx, [esp + 0x10]
mov dword [esp + 0x2b0], eax
mov dword [esp + 0x20], esi
call fcn.10002a00
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x10]
push str._SD__downloader_state:_Get_share_directory__s
push ecx
mov dword [esp + 0x2c8], 0
call fcn.100029a0
add esp, 0xc
push 0x63
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
mov edx, dword [esp + 0x18]
push edx
call fcn.10007550
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x20]
push str._SD__downloader_state:_Get_share_file_name__s
push ecx
call fcn.100029a0
add esp, 0x1c
push 0x66
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
mov edx, dword [esp + 0x18]
push edx
call fcn.10007550
mov edi, dword [ebp + 0x10]
push edi
lea eax, [esp + 0x20]
push str._SD__downloader_state:_Get_local_file_name__s
push eax
call fcn.100029a0
add esp, 0x1c
push 0x69
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10007550
add esp, 0x10
mov ecx, esi
call fcn.10003330
test eax, eax
jne 0x10003974
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x2bc], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000396d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x10003bd0
push esi
lea ecx, [esp + 0x14]
call fcn.10002a00
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c4], 1
call fcn.10003680
mov eax, dword [eax]
push 0x1002b7d4
push eax
call fcn.10012f21
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100039cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x100039ea
mov eax, edi
mov edx, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100039d4
mov edi, esi
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100039e0
jmp 0x10003a1c
mov edi, esi
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100039f0
mov ax, word [0x1002b7d4]
mov word [edi], ax
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003a06
mov edi, esi
sub eax, ecx
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10003a14
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x10]
push str._SD__downloader_state:_Get_file_save_path__s
push ecx
call fcn.100029a0
add esp, 0xc
push 0x7a
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
mov edx, dword [esp + 0x18]
push edx
call fcn.10007550
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
lea edx, [esp + 0x1bc]
push str.GetShareFile.exe__s__s___s_
push edx
call fcn.10013033
lea eax, [esp + 0x1c4]
push eax
lea ecx, [esp + 0x34]
push str._SD__downloader_state:_Get_command_line__s
push ecx
call fcn.100029a0
add esp, 0x30
push 0x81
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
mov edx, dword [esp + 0x18]
push edx
call fcn.10007550
add esp, 0x10
push 0
push 2
mov dword [esp + 0x80], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0x78]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10003b7c
lea edi, [esp + 0x9c]
mov esi, str.explorer.exe
mov ecx, 0xd
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10003bf3
lea edi, [esp + 0x9c]
mov esi, str.Explorer.exe
mov ecx, 0xd
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10003bf3
lea edi, [esp + 0x9c]
mov esi, str.Explorer.EXE
mov ecx, 0xd
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10003bf3
lea edi, [esp + 0x9c]
mov esi, str.EXPLORER.EXE
mov ecx, 0xd
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10003bf3
lea ecx, [esp + 0x78]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10003b01
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2bc], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10003ba2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x2bc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003bcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2ac]
call fcn.1001291b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x80]
push edx
xor ebx, ebx
push ebx
push 0x1f0fff
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x10003b7c
push 0x9f
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__downloader_state:_Open_process_explorer_ok.
call fcn.10007550
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp dword [esp + 0x18], ebx
je 0x10003b7c
push 0xa3
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__downloader_state:_get_process_token_ok.
call fcn.10007550
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c0]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x10003d2c
push 0xaa
push 0x5c
push str..Downloader.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__downloader_state:_create_process__ok_with_the_token.
call fcn.10007550
mov edx, dword [esp + 0x30]
add esp, 0x10
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
je 0x10003d30
call fcn.10001b40
lea ecx, [esp + 0xc]
call fcn.10001b40
jmp 0x10003bcb
lea ecx, [esp + 0x10]
call fcn.10001b40
lea ecx, [esp + 0xc]
call fcn.10001b40
xor eax, eax
jmp 0x10003bd0