joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431f90
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x431fa7
add esp, 0xfffffff0
call fcn.00403530
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419130
mov eax, dword [0x44ff20]
cmp word [eax + 2], 0
jne 0x431fcf
mov eax, dword [0x44ff20]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004334e4
mov eax, dword [0x44ffc4]
cmp word [eax + 2], 0
jne 0x431fe9
mov eax, dword [0x44ffc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004336dc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411428]
call fcn.004031f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411428]
call fcn.004031f4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b304]
call fcn.00420f4c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x432170
mov eax, dword [0x44fe4c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042131c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x433c8c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44fe4c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c018
test eax, eax
je 0x4320de
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004083d0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c040
test eax, eax
je 0x4320f2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
mov eax, dword [0x44fd54]
cmp byte [eax], 0
jne 0x432126
mov eax, ebx
call fcn.00432298
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00433e68
mov eax, ebx
call fcn.0043482c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x432166
call fcn.00403588
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432518
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x451b10]
cmp dword [eax + 0x30], 0
je 0x4325c2
cmp dword [ebx + 0x94], 0
jne 0x4325bc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4324a8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4325bc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x432582
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4325bc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413790
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x432591
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x433124
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x433159
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040404c
jmp 0x433166
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fb0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x434044
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x434085
mov eax, esi
call fcn.00447f2c
test al, al
je 0x434085
mov eax, dword [ebx + 0x84]
call fcn.00447ccc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x434085
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447ccc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x436fa0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403f5c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x436fef
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f168
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x451b90], 0
je 0x43f2b7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x44ffa8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43f2b7
mov eax, dword [0x451b94]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x451b90]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43f286
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x451b90]
call fcn.00413790
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43f27e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43f27e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43f27e
mov eax, dword [ebp - 0x14]
call fcn.00447ccc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43f27e
push ebp
call fcn.0043f124
pop ecx
test al, al
jne 0x43f27e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43f23a
mov eax, dword [ebp - 0x14]
call fcn.004467fc
dec eax
jle 0x43f27e
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403420
cmp byte [ebp - 1], 0
je 0x43f27e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43f27e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x451b94]
call fcn.0043e8f0
inc edi
dec ebx
jne 0x43f1cd
mov eax, dword [0x451b94]
cmp dword [eax + 8], 0
jle 0x43f29e
mov eax, dword [0x451b94]
call fcn.0043e980
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43f2b7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043ef8c
pop ecx
test al, al
jne 0x43f2b7
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x44289c
mov eax, esi
call fcn.0042a8c4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44289c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x44289c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4429db
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4428dc
cmp eax, 0x108
ja 0x4428dc
mov eax, esi
call fcn.0042a8c4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4429d2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4429db
jmp 0x4429d2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4429bb
cmp eax, 0x20a
ja 0x4429bb
test byte [esi + 0x50], 0x80
jne 0x44290e
sub eax, 0x203
je 0x44290b
sub eax, 3
je 0x44290b
sub eax, 3
jne 0x44290e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x442922
dec eax
je 0x442937
dec eax
je 0x442954
dec eax
je 0x442937
jmp 0x44295b
mov ecx, ebx
mov eax, dword [0x44ffa8]
mov eax, dword [eax]
mov edx, esi
call fcn.00433efc
jmp 0x4429d2
cmp byte [esi + 0x5d], 1
jne 0x44294d
mov eax, esi
mov si, 0xffed
call fcn.00403420
jmp 0x4429db
or word [esi + 0x54], 1
jmp 0x4429d2
and word [esi + 0x54], 0xfffe
jmp 0x4429d2
mov eax, dword [0x451b4c]
cmp byte [eax + 0x20], 0
je 0x4429d2
mov eax, dword [0x451b4c]
cmp dword [eax + 0x1c], 0
je 0x4429d2
mov eax, dword [ebx]
mov edx, dword [0x451b4c]
cmp eax, dword [edx + 0x1c]
jne 0x4429d2
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0042a808
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403420
jmp 0x4429db
cmp eax, 0xb00b
jne 0x4429d2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004411b8
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445e5c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x445e78
cmp dword [esi + 4], 0
je 0x445ea5
test byte [ebx + 0x55], 1
jne 0x445e97
mov eax, ebx
call fcn.00444a68
test eax, eax
jne 0x445e97
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x445fb5
mov edx, esi
mov eax, ebx
call fcn.00445980
jmp 0x445fb5
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x445fae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00447ccc
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00442784
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00445e5c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00447ccc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445fb5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c3c4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x450104]
cmp byte [eax + 0xc], 0
je 0x44c531
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c52a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x451ba0], 0
jne 0x44c418
push 0x44c538
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44c540
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451ba0], eax
cmp dword [0x44fd24], 0
jne 0x44c513
push 0x44c550
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44fd24], eax
cmp dword [0x44fd24], 0
je 0x44c513
push 0x44c55c
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451ba4], eax
push 0x44c56c
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451ba8], eax
push 0x44c580
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bac], eax
push 0x44c598
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bb0], eax
push 0x44c5b0
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bb4], eax
push 0x44c5c4
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bb8], eax
push 0x44c5dc
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bbc], eax
push 0x44c5f4
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bc0], eax
push 0x44c610
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bc4], eax
push 0x44c61c
mov eax, dword [0x44fd24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c531
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44cef8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040440c
mov eax, dword [ebp - 8]
call fcn.0040440c
mov eax, dword [ebp + 8]
call fcn.0040440c
xor eax, eax
push ebp
push 0x44cf9d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040441c
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.0040421c
push eax
mov eax, dword [ebp + 8]
call fcn.0040441c
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x44cf71
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cfa4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f80
lea eax, [ebp + 8]
call fcn.00403f5c
ret
Function at 0x4013af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401407
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401407
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4013f7
cmp esi, ecx
jae 0x401407
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4013e5
cmp esi, ecx
jae 0x401407
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x401409
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4016a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x106
lea eax, [ebp - 0x10c]
mov edi, edx
push 0
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40173f
mov eax, dword [0x410704]
test eax, eax
jne 0x40172f
push str.ChromeReprompt.txt
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
push 0x4094e0
lea eax, [ebp - 0x10c]
push eax
push 0x410704
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [0x410704]
add esp, 0x18
test eax, eax
je 0x40173f
push edi
push esi
push str._s_____s_n
push eax
call fcn.00401036
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00407ae6
leave
ret
Function at 0x4017ed
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
push esi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
mov ebx, edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
add esp, 0x20
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401861
push str.QueryFullProcessImageNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x401878
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40187f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401986
lea eax, [ebp - 0x648]
mov dword [ebp - 0x648], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4018a2
test esi, esi
je 0x401878
push esi
jmp 0x401872
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x41c], 0x104
push dword [ebp - 0x640]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x64c], eax
test eax, eax
je 0x4018ef
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x414]
push ecx
push edi
push eax
call ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 0x10
test eax, eax
jne 0x40194c
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push dword [ebp - 0x640]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x40193f
mov dword [ebp - 0x418], edi
call fcn.00401778
cmp eax, dword [ebp - 0x418]
je 0x401964
lea eax, [ebp - 0x648]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4018a2
jmp 0x40196a
mov edi, dword [ebp - 0x640]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401977
push esi
call ebx
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x401984
push eax
call ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407ae6
leave
ret
Function at 0x401995
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x408acb
call fcn.00408900
mov dword [ebp - 0x240], ecx
xor eax, eax
lea edi, [ebp - 0x230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], ax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x401b5b
push 0x409530
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x401b5b
lea ecx, [ebp - 0x218]
call fcn.004017ed
test eax, eax
je 0x401b5b
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x401b5b
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], edi
push eax
push 8
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401b50
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x234]
push eax
push edi
push edi
push 1
push dword [ebp - 0x238]
mov dword [ebp - 0x234], edi
call esi
test eax, eax
jne 0x401b40
push dword [ebp - 0x234]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x401b3c
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
push edi
push 1
push dword [ebp - 0x238]
call esi
test eax, eax
je 0x401b28
lea eax, [ebp - 0x23c]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x401b18
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x230]
call fcn.004045ad
push 0x4094a4
lea ecx, [ebp - 0x230]
call fcn.004045ad
push dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
call fcn.0040110c
neg eax
sbb esi, esi
inc esi
jmp 0x401b1a
xor esi, esi
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401b2a
xor esi, esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401b42
xor esi, esi
jmp 0x401b42
mov esi, edi
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b52
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b5d
mov esi, edi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x401b9e
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b95
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407e2f
pop ecx
pop ecx
mov eax, esi
call fcn.004088be
ret
Function at 0x401c8d
Capabilities:
Enumerate processes

Disassembly:
push 0x250
mov eax, 0x408b02
call fcn.00408900
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x25c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
je 0x401dd7
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401dcf
lea eax, [ebp - 0x224]
mov dword [ebp - 0x14], ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00404530
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
push esi
call fcn.00404a3b
lea ecx, [esi + 1]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00404c6c
mov edx, str.explorer.exe
lea ecx, [ebp - 0x14]
call fcn.004044e9
test al, al
je 0x401db0
push dword [ebp - 0x240]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x401e15
cmp edi, 0xffffffff
je 0x401e15
lea eax, [ebp - 0x24c]
push eax
push 0xa
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401da9
mov edx, dword [ebp - 0x254]
mov eax, 0x104
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x250]
lea eax, [ebp - 0x1c]
push eax
call fcn.00401ba6
add esp, 0xc
test eax, eax
jne 0x401ddf
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404a73
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401ce8
xor eax, eax
call fcn.004088be
ret
push dword [ebp - 0x25c]
push 1
push 1
push ebx
push 0x2000000
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x24c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call ebx
push edi
call ebx
xor ebx, ebx
test esi, esi
setne bl
lea ecx, [ebp - 0x14]
call fcn.00404a73
mov eax, ebx
jmp 0x401dd9