joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d527
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x40d53c
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d55e
mov al, 1
jmp 0x40d5ef
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420e91
push esi
mov ebx, eax
push 0
push ebx
call fcn.00408010
push dword [ebp + 8]
push esi
push ebx
call fcn.0044b04b
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x40d59d
cmp eax, 0x2f
jne 0x40d5d9
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d5d2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40d5e0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x40d5d2
push ebx
mov ecx, eax
call fcn.0040d50a
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x40d58f
jmp 0x40d5e4
mov byte [ebp - 1], 0
push ebx
call fcn.004208bb
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40d689
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5fb090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.00438740
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40d6f4
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40d702
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403f1e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00420879
leave
ret
Function at 0x40d90f
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x3c
mov eax, 0x57ec0a
call fcn.00421459
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x40d932
xor al, al
jmp 0x40d9f2
lea edi, [ecx + 4]
cmp dword [edi + 0x10], 0
ja 0x40d955
lea eax, [ebp - 0x40]
push eax
call fcn.00412c6c
pop ecx
push eax
mov ecx, edi
call fcn.00403d93
lea ecx, [ebp - 0x40]
call fcn.00404086
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push edi
call fcn.00403c9c
xor edi, edi
lea ecx, [ebp - 0x28]
push str.Software_
mov dword [ebp - 4], edi
call fcn.00403ef7
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.00403ef7
test ebx, ebx
je 0x40d99d
push 0x5eea58
lea ecx, [ebp - 0x28]
call fcn.00403ef7
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403ef7
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], edi
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d9e8
test esi, esi
je 0x40d9d5
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x40d9df
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.00404086
mov al, 1
call fcn.00421403
ret 0xc
Function at 0x40dcce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5fb090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], ebx
ja 0x40dd26
lea eax, [ebp - 0x1c]
push eax
call fcn.00412c6c
pop ecx
lea ecx, [esi + 4]
push eax
call fcn.00403d93
lea ecx, [ebp - 0x1c]
call fcn.00404086
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x40dd31
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x40dd54
xor al, al
jmp 0x40de0d
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push 0x584870
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x40dd77
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dd4d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x40dda9
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x40dd4d
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40ddfc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40ddce
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call esi
mov bl, 1
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420879
leave
ret 0x10
Function at 0x40f39a
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x57efe9
call fcn.00421459
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.0040f0a4
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40f3cc
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x584a58
call fcn.00403ef7
push 0x584a5c
mov ecx, esi
call fcn.00403ef7
push 0x5eea58
mov ecx, esi
call fcn.00403ef7
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.00403e99
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40f421
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f4b9
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00438740
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040ef78
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 0x40f478
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00403ef7
push 0x5eea58
mov ecx, esi
call fcn.00403ef7
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.00403e99
cmp dword [esi + 0x14], 8
jb 0x40f4c1
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 0x40f4d9
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x584a58
call fcn.00403ef7
push 0x584a5c
mov ecx, esi
call fcn.00403ef7
push 0x5eea58
mov ecx, esi
call fcn.00403ef7
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040f103
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403310
lea ecx, [ebp - 0x248]
call fcn.00404086
lea ecx, [ebp - 0x230]
call fcn.00404086
call fcn.00421403
ret
Function at 0x410579
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x57f1b7
call fcn.00421459
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41059a
push dword [esi + 0x1c]
call fcn.0044c76a
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.0040fb6a
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0044b53d
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41061e
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040fb6a
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040fb6a
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.00404086
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00404086
sub edi, 1
jns 0x4105c8
mov ecx, esi
call fcn.00410458
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00404086
call fcn.00421403
ret

Function at 0x410637
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x57f1b7
call fcn.00421459
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x410658
push dword [esi + 0x1c]
call fcn.0044c76a
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.0040fb6a
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0044b53d
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4106dc
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040fb6a
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040fb6a
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.00404086
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00404086
sub edi, 1
jns 0x410686
mov ecx, esi
call fcn.004104ef
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00404086
call fcn.00421403
ret
Function at 0x4118f6
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.00421690
mov eax, dword [0x5fb090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.00438740
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00438740
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00402e29
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41198c
mov al, 1
jmp 0x411a95
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00438740
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00438740
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00438740
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x411a0e
mov bl, 2
jmp 0x411a8c
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00411aa4
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00411aa4
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411a4f
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.00412c45
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x411a70
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.00412c45
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420879
leave
ret
Function at 0x411c55
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5fb090]
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.00438740
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.00411c0a
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x411cd4
cmp dword [ebp - 0x118], ebx
jbe 0x411d1a
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x411d1a
cmp eax, 6
jne 0x411cff
cmp byte [ebp - 6], 1
jne 0x411cfa
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x411cf6
sub eax, 1
je 0x411cf2
push 7
jmp 0x411cfc
push 5
jmp 0x411cfc
push 3
jmp 0x411cfc
push 4
pop ebx
jmp 0x411d1a
push 0xa
pop ecx
cmp eax, ecx
jne 0x411d17
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x411d1a
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00420879
leave
ret

Function at 0x411d7c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x411e8d
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x411e8c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x411dab
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x411e8c
push 0x588822
push eax
call fcn.00421a37
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x411e8c
cmp dword [esi + 0x14], 0x10
jb 0x411de0
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x411e7a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411e7a
mov eax, dword [ebp - 0x10]
push 0x588822
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.00421a37
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x411e7a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x411e43
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.00402e29
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411e78
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.004020cc
mov bl, 1
push esi
call fcn.004208bb
pop ecx
test edi, edi
je 0x411e8c
push edi
call fcn.004208bb
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x412472
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x412e35
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5fb090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x412ebb
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00438740
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x412ebb
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x412eb0
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0044d7d1
pop ecx
pop ecx
test eax, eax
je 0x412ecb
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x412e90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00420879
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x412ebd

Function at 0x41303f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x5fb090]
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.00438740
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 0x413130
mov ecx, esi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x413084
sub ecx, edx
sar ecx, 1
je 0x413130
call fcn.004133bb
test eax, eax
je 0x413130
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x413130
lea ecx, [ebp - 0x20]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x413130
cmp dword [ebp - 0x20], edi
je 0x413130
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.0040cbc6
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.00404086
mov al, bl
jmp 0x413132
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420879
leave
ret
Function at 0x413141
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 0x41315f
xor eax, eax
jmp 0x4132e3
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x4132c4
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 0x413198
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x4131b8
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 0x4132c4
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 0x4132c4
push esi
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4132c4
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.00438740
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x413204
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 0x413244
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x413233
sub ecx, edx
sar ecx, 1
add ebx, ecx
lea eax, [ebx + ebx]
push eax
mov dword [ebp - 0x14], eax
call fcn.00446ec2
mov edi, eax
pop ecx
test edi, edi
je 0x4132bb
cmp dword [ebp + 0xc], esi
je 0x413273
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x584e78
push ebx
push edi
call fcn.004134c8
add esp, 0x14
jmp 0x413285
push dword [ebp + 8]
push 0x584bf8
push ebx
push edi
call fcn.004134c8
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.0043f608
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 0x4132d5
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x4132e0
push dword [ebp - 4]
call edi
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4133bb
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x57f545
call fcn.00421459
push 0x228
xor esi, esi
mov dword [ebp - 0x26c], 0x22c
lea eax, [ebp - 0x268]
push esi
push eax
call fcn.00438740
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4134c2
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.0040cbc6
add esp, 0x28
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 1
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41349d
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.00403ef7
cmp dword [ebp - 0x18], 0
je 0x413490
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.0040cd64
pop ecx
pop ecx
test al, al
jne 0x4134a3
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413445
jmp 0x4134a9
mov esi, dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00404086
lea ecx, [ebp - 0x28]
call fcn.00404086
mov eax, esi
call fcn.00421403
ret