Function at 0x416da0
Capabilities:
Enumerate files on windows
Enumerate processes
Get common file path
Get session user name
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f0922
mov eax, dword fs:[0]
push eax
sub esp, 0x74c
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x748], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x542c54]
xor eax, esp
push eax
lea eax, [esp + 0x760]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x658]
push ecx
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x416e02
or eax, 0xffffffff
jmp 0x4173ba
push 0x104
lea edx, [esp + 0x550]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x416dfa
push 0x104
xor ebp, ebp
lea eax, [esp + 0x449]
push ebp
push eax
mov dword [esp + 0x44], str.KISA
mov dword [esp + 0x48], str.SignKorea
mov dword [esp + 0x4c], str.yessign
mov dword [esp + 0x50], str.CrossCert
mov dword [esp + 0x54], str.TradeSign
mov dword [esp + 0x58], str.KICA
mov dword [esp + 0x5c], str.NCASign
mov byte [esp + 0x450], 0
call fcn.004cb5a0
push 3
lea ecx, [esp + 0x55c]
push ecx
lea edx, [esp + 0x458]
push edx
call fcn.004ce020
add esp, 0x18
call fcn.004bfb80
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x416ea2
push 0x80004005
call fcn.00402700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push str.C:Cert_info_log.log
lea ecx, [esp + 0x34]
mov dword [esp + 0x76c], ebp
call fcn.00403830
push str.Kernel32.dll
mov byte [esp + 0x76c], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push ebp
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x417120
lea ecx, [esp + 0x54]
push ecx
push esi
mov dword [esp + 0x5c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x417120
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edi, edi
lea edx, [esp + 0x78]
push str.explorer.exe
push edx
call fcn.004ceae2
add esp, 8
test eax, eax
jne 0x416f50
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call ebx
test eax, eax
je 0x416f50
cmp dword [esp + 0x14], edi
je 0x416fa8
lea edx, [esp + 0x54]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x416f20
mov eax, dword [esp + 0x30]
push eax
push ebp
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebp
je 0x417120
lea eax, [esp + 0x1c]
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x416fae
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], esi
jmp 0x417144
mov eax, dword [esp + 0x5c]
jmp 0x416f63
mov edx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebp
push 1
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call fcn.004cd70c
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
push edx
mov esi, eax
mov eax, dword [esp + 0x24]
push esi
push 1
push eax
call ebx
test eax, eax
jne 0x417019
push esi
call fcn.004cd871
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
push edi
call esi
xor esi, esi
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], esi
jmp 0x417144
mov eax, dword [esi]
lea edx, [esp + 0x20]
push edx
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidA
push esi
call fcn.004cd871
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.00403830
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0x76c], 2
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.Volatile_Environment
lea ecx, [esp + 0x1c]
call fcn.00416480
lea ecx, [esp + 0x18]
call fcn.00415590
lea ecx, [esp + 0x28]
call fcn.00425470
lea ecx, [esp + 0x18]
mov byte [esp + 0x768], 3
call fcn.00415590
push eax
push reloc.WS2_32.dll_closesocket
lea ecx, [esp + 0x30]
call fcn.004254c0
test eax, eax
je 0x4170fe
push 0x7f
lea ecx, [esp + 0x2c1]
push ebp
push ecx
mov byte [esp + 0x2c8], 0
call fcn.004cb5a0
add esp, 0xc
push 0x80
lea edx, [esp + 0x2c0]
push edx
push str.USERPROFILE
lea ecx, [esp + 0x34]
call fcn.004255b0
cmp eax, ebp
jne 0x4170e4
lea ecx, [esp + 0x28]
call fcn.004256e0
jmp 0x4170fe
lea eax, [esp + 0x2bc]
push eax
lea ecx, [esp + 0x28]
push 0x4f5db8
push ecx
call fcn.00403410
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x768], 2
call fcn.00425790
lea ecx, [esp + 0x18]
mov byte [esp + 0x768], 1
call fcn.00402da0
xor esi, esi
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x18], esi
jmp 0x417144
mov esi, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x341]
push 0
push edx
mov byte [esp + 0x348], 0
call fcn.004cb5a0
add esp, 0xc
xor edi, edi
jmp 0x417174
mov esi, dword [esp + 0x18]
cmp esi, 3
ja case.default.0x41717d
jmp dword [esi*4 + 0x4173e4]
mov eax, dword [esp + edi*4 + 0x38]
push eax
lea ecx, [esp + 0x448]
push ecx
push str._sProgram_FilesNPKI_sUser
lea edx, [esp + 0x348]
push edx
jmp 0x417216
mov eax, dword [esp + edi*4 + 0x38]
push eax
lea ecx, [esp + 0x448]
push ecx
push str._sProgram_Files__x86_NPKI_sUser
lea edx, [esp + 0x348]
push edx
jmp 0x417216
mov eax, dword [esp + edi*4 + 0x38]
push eax
lea ecx, [esp + 0x658]
push ecx
lea edx, [esp + 0x44c]
push edx
lea eax, [esp + 0x348]
push str._sUsers_sAppDataLocalLowNPKI_sUser
push eax
call fcn.004cd7d6
add esp, 0x14
jmp case.default.0x41717d
mov eax, dword [esp + 0x24]
cmp dword [eax - 4], 1
jle 0x417203
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x28]
call fcn.004029b0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + edi*4 + 0x38]
push edx
push eax
push str._sAppDataLocalLowNPKI_sUser
lea eax, [esp + 0x348]
push eax
call fcn.004cd7d6
add esp, 0x10
lea ecx, [esp + 0x33c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00403830
push str..
lea ecx, [esp + 0x24]
mov byte [esp + 0x76c], 4
call fcn.00415b50
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x774], 5
call fcn.0040ae40
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x17c]
push edx
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
cmp esi, 0xffffffff
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417299
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x768], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4172c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41731f
test byte [esp + 0x17c], 0x10
je 0x417305
lea ecx, [esp + 0x1a8]
push 0x4f4958
push ecx
call fcn.004cb8b7
add esp, 8
test eax, eax
je 0x417305
lea edx, [esp + 0x1a8]
push 0x4f7320
push edx
call fcn.004cb8b7
add esp, 8
test eax, eax
je 0x417305
inc dword [esp + 0x14]
lea eax, [esp + 0x17c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4172c5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x768], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417347
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, 7
jl 0x417170
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x417140
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x768], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41738b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x768], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4173b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x760]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x748]
xor ecx, esp
call fcn.004cb553
add esp, 0x758
ret