joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4083d6
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
push dword [edi + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x408420
mov ecx, dword [edi + 4]
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40ff31
Capabilities:
Check if file exists

Disassembly:
push 0x240
mov eax, 0x58813b
call fcn.0042d9c2
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.0040fc25
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ff63
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x58e754
call fcn.004071bd
push 0x58e758
mov ecx, esi
call fcn.004071bd
push 0x58e62c
mov ecx, esi
call fcn.004071bd
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.0040715f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40ffb8
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410069
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00444fb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x1c
lea eax, [ebp - 0x24c]
push eax
push 0x40faf7
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x410028
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004071bd
push 0x58e62c
mov ecx, esi
call fcn.004071bd
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.0040715f
cmp dword [esi + 0x14], 8
jb 0x410071
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x410089
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x58e754
call fcn.004071bd
push 0x58e758
mov ecx, esi
call fcn.004071bd
push 0x58e62c
mov ecx, esi
call fcn.004071bd
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040fc84
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040b2bd
lea ecx, [ebp - 0x248]
call fcn.00406942
lea ecx, [ebp - 0x230]
call fcn.00406942
call fcn.0042d96c
ret
Function at 0x411209
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x588332
call fcn.0042d9c2
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41122a
push dword [esi + 0x1c]
call fcn.00459f07
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00410671
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004544df
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4112ae
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00410671
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00410671
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00406942
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00406942
sub edi, 1
jns 0x411258
mov ecx, esi
call fcn.004110e8
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00406942
call fcn.0042d96c
ret

Function at 0x4112c7
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x588332
call fcn.0042d9c2
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4112e8
push dword [esi + 0x1c]
call fcn.00459f07
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00410671
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004544df
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41136c
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00410671
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00410671
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00406942
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00406942
sub edi, 1
jns 0x411316
mov ecx, esi
call fcn.0041117f
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00406942
call fcn.0042d96c
ret
Function at 0x4131e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x5887a6
call fcn.0042d9c2
mov edi, ecx
mov dword [ebp - 0xd0], edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00413b77
lea ecx, [edi + 8]
call fcn.00413b77
lea ecx, [edi + 0x10]
call fcn.00413b77
lea ecx, [edi + 0x18]
call fcn.00413b77
movzx eax, word [ebp + 0x24]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x413354
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413354
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0xc8], ebx
jne 0x413274
test edi, edi
je 0x413354
cmp dword [ebp + 0x1c], ebx
jbe 0x41330e
lea eax, [ebp + 0xc]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], ebx
call fcn.00404f69
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.00419b67
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041a4ea
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00419d55
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.0044d5ad
push esi
push ebx
push eax
mov dword [ebp - 0xcc], eax
call fcn.00444fb0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0x40]
push eax
push edi
push esi
push dword [ebp - 0xc8]
call fcn.0041b4c4
add esp, 0x20
lea ecx, [ebp - 0x40]
call fcn.0040688e
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.0040688e
jmp 0x413310
mov esi, ebx
push edi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.0040679a
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp - 0x28]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404f69
mov ecx, dword [ebp - 0xd0]
call fcn.00413366
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.0040688e
lea ecx, [ebp + 0xc]
call fcn.0040688e
mov al, bl
call fcn.0042d96c
ret 0x20
Function at 0x413e86
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x588899
call fcn.0042d9c2
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x430], ebx
mov esi, ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x428]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
call fcn.004071bd
push ebx
lea ecx, [ebp - 0x428]
call fcn.004071bd
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x413fa0
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00444fb0
add esp, 0xc
mov dword [ebp - 0x438], 0x200
lea eax, [ebp - 0x438]
mov dword [ebp - 0x43c], 1
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x43c]
push eax
push esi
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413f87
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x413f98
push dword [ebp - 0x42c]
call edi
test esi, esi
jne 0x41408a
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
cmovae eax, dword [ebp - 0x428]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x428]
call fcn.004071bd
push dword [ebp - 0x430]
lea ecx, [ebp - 0x428]
call fcn.004071bd
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41408a
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00444fb0
add esp, 0xc
mov dword [ebp - 0x434], 0x200
xor eax, eax
inc eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414079
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x41408a
push dword [ebp - 0x42c]
call edi
lea ecx, [ebp - 0x428]
call fcn.00406942
mov eax, esi
call fcn.0042d96c
ret
Function at 0x414520
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6041f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x41453f
xor eax, eax
jmp 0x4145bb
push esi
push edi
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00444fb0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x414575
xor eax, eax
jmp 0x4145b9
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4145a4
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040dac8
pop ecx
pop ecx
test al, al
jne 0x4145aa
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414584
jmp 0x4145b0
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042d205
mov esp, ebp
pop ebp
ret

Function at 0x414759
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6041f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00444fb0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0041470e
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x4147d8
cmp dword [ebp - 0x118], ebx
jbe 0x41481e
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x41481e
cmp eax, 6
jne 0x414803
cmp byte [ebp - 6], 1
jne 0x4147fe
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x4147fa
sub eax, 1
je 0x4147f6
push 7
jmp 0x414800
push 5
jmp 0x414800
push 3
jmp 0x414800
push 4
pop ebx
jmp 0x41481e
push 0xa
pop ecx
cmp eax, ecx
jne 0x41481b
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x41481e
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042d205
mov esp, ebp
pop ebp
ret
Function at 0x41482f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x6041f8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x78]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x44
push 0
push eax
call fcn.00444fb0
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test esi, esi
je 0x414920
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x414874
sub ecx, edx
sar ecx, 1
je 0x414920
call fcn.00414bb1
test eax, eax
je 0x414920
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x414920
lea ecx, [ebp - 0x20]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x414920
cmp dword [ebp - 0x20], edi
je 0x414920
push ebx
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x78], 0x44
push str.__s___s
push eax
mov dword [ebp - 0x70], str.winsta0default
call fcn.0040d6ae
add esp, 0x10
lea ecx, [ebp - 0x34]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push edi
push edi
push 0x20
push edi
push edi
push edi
push eax
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x20]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.00406942
mov al, bl
jmp 0x414922
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d205
mov esp, ebp
pop ebp
ret
Function at 0x414933
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp + 8], esi
jne 0x414951
xor eax, eax
jmp 0x414ad5
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x414ab6
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 0x13
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ecx, ecx
inc ecx
test eax, eax
je 0x41498a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x4149aa
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push esi
push 0x2000000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x414ab6
mov eax, dword [ebp - 4]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x414ab6
push esi
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x414ab6
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
pop edi
push edi
push esi
push eax
call fcn.00444fb0
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4149f6
sub ecx, edx
mov dword [ebp - 0x6c], edi
sar ecx, 1
xor eax, eax
inc eax
mov dword [ebp - 0x64], str.WinSta0Default
push ebx
mov word [ebp - 0x3c], ax
lea ebx, [ecx + 0x64]
cmp dword [ebp + 0xc], esi
je 0x414a36
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x414a25
sub ecx, edx
sar ecx, 1
add ebx, ecx
lea eax, [ebx + ebx]
push eax
mov dword [ebp - 0x14], eax
call fcn.0044d5ad
mov edi, eax
pop ecx
test edi, edi
je 0x414aad
cmp dword [ebp + 0xc], esi
je 0x414a65
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x58edcc
push ebx
push edi
call fcn.00414cbe
add esp, 0x14
jmp 0x414a77
push dword [ebp + 8]
push 0x58e8f4
push ebx
push edi
call fcn.00414cbe
add esp, 0x10
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov word [eax + edi - 2], cx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0xc]
push 0x420
push esi
push esi
push esi
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
neg eax
push edi
sbb esi, esi
neg esi
call fcn.00449ba4
pop ecx
push dword [ebp - 0xc]
call sub.USERENV.dll_DestroyEnvironmentBlock
pop ebx
cmp dword [ebp - 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x414ac7
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x414ad2
push dword [ebp - 4]
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414bb1
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x5889ea
call fcn.0042d9c2
push 0x228
xor esi, esi
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.00444fb0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x414cb8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0x72
push 0x65
push 0x72
push 0x6f
push 0x6c
push 0x70
push 0x78
push 0x65
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push str._c_c_c_c_c_c_c_c.exe
push eax
call fcn.0040d6ae
add esp, 0x28
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 1
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x414c93
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.004071bd
cmp dword [ebp - 0x18], 0
je 0x414c86
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040dac8
pop ecx
pop ecx
test al, al
jne 0x414c99
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414c3b
jmp 0x414c9f
mov esi, dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00406942
lea ecx, [ebp - 0x28]
call fcn.00406942
mov eax, esi
call fcn.0042d96c
ret
Function at 0x417567
Capabilities:
Check if file exists

Disassembly:
push 0x234
mov eax, 0x588ed4
call fcn.0042d9c2
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x1a
push eax
push ebx
call fcn.00417a0b
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x417597
sub ecx, edx
sar ecx, 1
je 0x417632
push 0x58e62c
mov ebx, 0x104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0045ab94
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0045ab94
push 0x58e62c
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0045ab94
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417624
and dword [ebp - 0x21c], eax
and dword [ebp - 4], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00419200
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x240]
call fcn.00407fca
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004042de
call fcn.0042d96c
ret 8
Function at 0x41763a
Capabilities:
Check if file exists

Disassembly:
push 0xc7c
mov eax, 0x588f12
call fcn.0042d9c2
mov esi, ecx
mov dword [ebp - 0xc88], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.00444fb0
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00444fb0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00444fb0
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00444fb0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00444fb0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00444fb0
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
mov ecx, esi
call fcn.00417a0b
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00452e28
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00447ab0
add esp, 0x14
test eax, eax
jne 0x417730
mov ecx, esi
jmp 0x41789f
xor ecx, ecx
mov esi, 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00452e28
push str.Local
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.0045ab94
add esp, 0x18
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
cmovne esi, ecx
push 0x104
push eax
call fcn.00452e28
push str.LocalLow
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0045ab94
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
xor ecx, ecx
test eax, eax
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc84], ecx
push 0x104
push eax
call fcn.00452e28
push str.Roaming
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.0045ab94
add esp, 0x18
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x417899
cmp dword [ebp - 0xc84], 0
je 0x417899
test ecx, ecx
je 0x417899
push ebx
lea eax, [ebp - 0x420]
push eax
push 0x58f184
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0040e5b6
add esp, 0x14
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417885
and dword [ebp - 0xc5c], eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00419200
pop ecx
pop ecx
lea ecx, [ebp - 0xc80]
mov byte [ebp - 4], 0
call fcn.00407fca
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc58]
call fcn.004042de
jmp 0x4178ac
mov ecx, dword [ebp - 0xc88]
push ebx
lea eax, [ebp - 0xc58]
push eax
call fcn.00417567
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.004044d6
lea ecx, [ebp - 0xc58]
call fcn.00406942
mov eax, edi
call fcn.0042d96c
ret 8