Function at 0x405e30
Capabilities:
Accept command line arguments
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c9f7
mov eax, dword fs:[0]
push eax
mov eax, 0x21bc
call fcn.0042c2f0
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x21a0], edx
push 0
push 0x435334
mov dword [ebp - 0x21a8], 0
call fcn.004030b0
lea eax, [ebp - 0x21a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405f32
cmp dword [0x43ba80], 0
je 0x405f28
lea ecx, [ebp - 0x2028]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x405ec2
mov esi, dword [esi]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push 0x1ee
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_firefox_ca.cpp
push esi
push str._ERROR___s__s:_d_tProcessIdToSessionId_current_process_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x2014]
add esp, 0x18
cmp edx, 0x10
jb 0x405f22
mov ecx, dword [ebp - 0x2028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405f18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21a8], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x21b4], ebx
cmp ebx, 0xffffffff
jne 0x405fd8
cmp dword [0x43ba80], 0
je 0x40608f
lea ecx, [ebp - 0x2028]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x405f6f
mov esi, dword [esi]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push 0x1f8
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_firefox_ca.cpp
push esi
push str._ERROR___s__s:_d_tCreateToolhelp32Snapshot_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x2014]
add esp, 0x18
cmp edx, 0x10
jb 0x40608f
mov ecx, dword [ebp - 0x2028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405fc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406978
push edx
push ecx
call fcn.0040f6ee
add esp, 8
jmp 0x40608f
push 0x124
lea eax, [ebp - 0x2194]
push 0
push eax
call fcn.004136c0
add esp, 0xc
mov dword [ebp - 0x2198], 0x128
lea eax, [ebp - 0x2198]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x4060c0
cmp dword [0x43ba80], eax
je 0x40608b
lea ecx, [ebp - 0x2028]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40602b
mov esi, dword [esi]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push 0x204
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_firefox_ca.cpp
push esi
push str._ERROR___s__s:_d_tProcess32First_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x2014]
add esp, 0x18
cmp edx, 0x10
jb 0x40608b
mov ecx, dword [ebp - 0x2028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406081
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40697d
push edx
push ecx
call fcn.0040f6ee
add esp, 8
test ebx, ebx
je 0x406096
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f469
mov esp, ebp
pop ebp
ret
mov ecx, str.firefox.exe
lea eax, [ebp - 0x2174]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4060f0
test dl, dl
je 0x4060ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4060f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4060d0
xor eax, eax
jmp 0x4060f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40694d
mov dword [ebp - 0x21ac], eax
lea eax, [ebp - 0x21ac]
push eax
push dword [ebp - 0x2190]
call edi
test eax, eax
jne 0x4061a4
cmp dword [0x43ba80], eax
je 0x40694d
lea ecx, [ebp - 0x2028]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x40613b
mov esi, dword [esi]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push 0x217
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_firefox_ca.cpp
push esi
push str._ERROR___s__s:_d_tProcessIdToSessionId_firefox_process_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x2014]
add esp, 0x18
cmp edx, 0x10
jb 0x40694d
mov ecx, dword [ebp - 0x2028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406195
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
jmp 0x40694d
mov eax, dword [ebp - 0x21a8]
test eax, eax
je 0x4061ba
cmp eax, dword [ebp - 0x21ac]
jne 0x40694d
lea eax, [ebp - 0x2190]
push eax
lea eax, [ebp - 0x21c8]
push eax
call fcn.004086c0
xor ebx, ebx
mov dword [ebp - 0x21a4], ebx
mov dword [ebp - 0x219c], ebx
call fcn.00402800
push dword [ebp - 0x2190]
cmp eax, 0x3c
push ebx
sbb eax, eax
and eax, 0xfffff400
add eax, 0x1010
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40622a
call esi
push eax
push str.OpenProcessErr__d_
lea eax, [ebp - 0x2010]
push 0x1000
push eax
call fcn.00408bb0
add esp, 0x10
mov dword [ebp - 0x219c], ebx
jmp 0x406493
lea edx, [ebp - 0x2010]
mov ecx, edi
call fcn.00402a90
test eax, eax
je 0x406262
call esi
push eax
push str.GetProcessCommandLineWErr__d_
lea eax, [ebp - 0x2010]
push 0x1000
push eax
call fcn.00408bb0
add esp, 0x10
mov dword [ebp - 0x219c], ebx
jmp 0x40630d
lea eax, [ebp - 0x219c]
push eax
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x21a4], ebx
test ebx, ebx
jne 0x40630d
cmp dword [0x43ba80], eax
je 0x406303
lea ecx, [ebp - 0x2028]
call fcn.004011a0
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x4062a3
mov esi, dword [esi]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push 0x242
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_firefox_ca.cpp
push esi
push str._ERROR___s__s:_d_tCommandLineToArgvW_failed__LastError_d_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x2014]
add esp, 0x18
cmp edx, 0x10
jb 0x406303
mov ecx, dword [ebp - 0x2028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4062f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
mov dword [ebp - 0x219c], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x219c], 1
jl 0x406493
push 0x435a08
push 0
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_StrRStrIW]
test eax, eax
je 0x406493
mov edi, dword [ebp - 0x21a0]
mov ebx, edi
cmp dword [edi + 0x14], 8
jb 0x406348
mov ebx, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, 0xb
jb 0x40639a
add eax, 0xfffffff5
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
lea edi, [ebx + ecx*2]
mov esi, edi
sub esi, 0x435a08
cmp word [edi], 0x66
jne 0x4063d9
mov edx, 0xb
mov ecx, 0x435a08
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4063d9
add ecx, 2
sub edx, 1
jne 0x406376
sub edi, ebx
sar edi, 1
cmp edi, 0xffffffff
jne 0x406493
mov edi, dword [ebp - 0x21a0]
mov edx, dword [ebp - 0x21a4]
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4063a7
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004030b0
mov edx, dword [ebp - 0x21a0]
mov edi, edx
cmp dword [edx + 0x14], 8
jb 0x4063e5
mov edi, dword [edx]
mov eax, edi
mov ecx, dword [edx + 0x10]
lea ebx, [eax + ecx*2]
jmp 0x4063ef
cmp edi, ebx
je 0x406394
sub edi, 2
sub esi, 2
jmp 0x406366
mov eax, dword [edx + 0x10]
mov esi, edx
lea ebx, [edx + eax*2]
jb 0x4063f1
mov esi, dword [edx]
cmp esi, ebx
je 0x40640e
sub edi, esi
movzx eax, word [esi]
push eax
call fcn.004198b5
mov word [esi + edi], ax
add esp, 4
add esi, 2
cmp esi, ebx
jne 0x4063f7
cmp dword [0x43ba80], 0
je 0x406493
lea ecx, [ebp - 0x2028]
call fcn.004011a0
mov edx, dword [ebp - 0x21a0]
mov ecx, edx
cmp dword [edx + 0x14], 8
jb 0x406432
mov ecx, dword [edx]
cmp dword [eax + 0x14], 0x10
jb 0x40643a
mov eax, dword [eax]
push ecx
push 0x24f
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_firefox_ca.cpp
push eax
push str._DEBUG___s__s:_d_tstrFireFoxPath_S_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x2014]
add esp, 0x18
cmp edx, 0x10
jb 0x406493
mov ecx, dword [ebp - 0x2028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406489
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
xor eax, eax
mov dword [ebp - 0x2030], 0
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x202c], 7
mov word [ebp - 0x2040], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4064c0
sub ecx, edx
lea eax, [ebp - 0x2010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2040]
call fcn.004030b0
push ecx
lea edx, [ebp - 0x2040]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2070]
call fcn.00402e10
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x202c]
cmp edx, 8
jb 0x406542
mov ecx, dword [ebp - 0x2040]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406538
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
xor eax, eax
mov dword [ebp - 0x2030], 0
mov dword [ebp - 0x202c], 7
mov word [ebp - 0x2040], ax
cmp dword [0x43ba80], eax
je 0x4065f1
lea ecx, [ebp - 0x2028]
call fcn.004011a0
cmp dword [ebp - 0x205c], 0x10
lea ecx, [ebp - 0x2070]
cmovae ecx, dword [ebp - 0x2070]
cmp dword [eax + 0x14], 0x10
jb 0x406592
mov eax, dword [eax]
push ecx
push dword [ebp - 0x2190]
push 0x253
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_firefox_ca.cpp
push eax
push str._DEBUG___s__s:_d_tcmdline__d__s_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x2014]
add esp, 0x1c
cmp edx, 0x10
jb 0x4065f1
mov ecx, dword [ebp - 0x2028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4065e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
mov edi, dword [ebp - 0x219c]
xor esi, esi
test edi, edi
jle 0x4068f3
mov ebx, dword [ebp - 0x21a4]
nop word [eax + eax]
mov ecx, dword [ebx + esi*4]
mov eax, str._profile
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40663e
test dx, dx
je 0x40663a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40663e
add ecx, 4
add eax, 4
test dx, dx
jne 0x406618
xor eax, eax
jmp 0x406643
sbb eax, eax
or eax, 1
inc esi
test eax, eax
je 0x406651
cmp esi, edi
jl 0x406610
jmp 0x4068f3
cmp esi, 0xffffffff
je 0x4068f3
cmp esi, edi
jge 0x4068f3
mov edx, dword [ebx + esi*4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x2018], 0
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406687
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2028]
call fcn.004030b0
push ecx
lea edx, [ebp - 0x2028]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2058]
call fcn.00402e10
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2014]
cmp edx, 8
jb 0x406700
mov ecx, dword [ebp - 0x2028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4066f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
xor eax, eax
mov dword [ebp - 0x2018], 0
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
cmp dword [0x43ba80], eax
je 0x4067a9
lea ecx, [ebp - 0x2040]
call fcn.004011a0
cmp dword [ebp - 0x2044], 0x10
lea ecx, [ebp - 0x2058]
cmovae ecx, dword [ebp - 0x2058]
cmp dword [eax + 0x14], 0x10
jb 0x406750
mov eax, dword [eax]
push ecx
push 0x262
push str.D:qianliu_agentworkspace0mq_gitlab7538NetProxyInstCa_firefox_ca.cpp
push eax
push str._DEBUG___s__s:_d_tszProfileDir_s_n
push dword [0x43ba80]
call fcn.00402120
mov edx, dword [ebp - 0x202c]
add esp, 0x18
cmp edx, 0x10
jb 0x4067a9
mov ecx, dword [ebp - 0x2040]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40679f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
mov ecx, dword [0x43bea4]
xor edi, edi
mov dword [ebp - 0x21b8], ecx
mov ebx, ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x21b0], eax
cmp byte [eax + 0xd], 0
jne 0x4067ff
mov esi, eax
nop word [eax + eax]
lea eax, [ebp - 0x2058]
mov dword [ebp - 0x21b0], esi
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00408ad0
test al, al
je 0x4067ef
mov esi, dword [esi + 8]
jmp 0x4067f3
mov ebx, esi
mov esi, dword [esi]
movzx edi, al
xor edi, 1
cmp byte [esi + 0xd], 0
je 0x4067d0
cmp byte [ebx + 0xd], 0
jne 0x40681d
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x2058]
push eax
call fcn.00408ad0
test al, al
je 0x40689a
cmp dword [0x43bea8], 0x6666666
je 0x40696e
mov dword [ebp - 0x21c0], 0x43bea4
mov byte [ebp - 4], 6
push 0x28
mov dword [ebp - 0x21bc], 0
call fcn.0040f6fc
mov esi, eax
add esp, 4
mov dword [ebp - 0x21bc], esi
lea eax, [ebp - 0x2058]
mov byte [ebp - 4], 7
lea ecx, [esi + 0x10]
push eax
call fcn.004084b0
mov eax, dword [ebp - 0x21b8]
mov ecx, 0x43bea4
push esi
mov dword [esi], eax
push edi
push dword [ebp - 0x21b0]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], 0
mov dword [ebp - 0x21bc], 0
call fcn.00408880
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2044]
cmp edx, 0x10
jb 0x4068d8
mov ecx, dword [ebp - 0x2058]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4068ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
mov dword [ebp - 0x2048], 0
mov dword [ebp - 0x2044], 0xf
mov byte [ebp - 0x2058], 0
mov eax, dword [ebp - 0x21a4]
test eax, eax
je 0x406904
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x205c]
cmp edx, 0x10
jb 0x406941
mov ecx, dword [ebp - 0x2070]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406937
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406973
push edx
push ecx
call fcn.0040f6ee
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ebx, dword [ebp - 0x21b4]
lea eax, [ebp - 0x2198]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x40608b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4060c0
call fcn.00403200
call fcn.00415003
call fcn.00415003
call fcn.00415003
int3