joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
mov eax, 0x4c834b
call fcn.0043c4c0
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0042180b
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0042180b
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.0042a875
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x425f0c
push edi
push dword [ebp - 0x10]
call fcn.0042a521
pop ecx
pop ecx
test eax, eax
jne 0x425f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x425f0c
lea eax, [ebp - 0x14]
push eax
call fcn.0042a8f3
mov eax, dword [ebp - 0x14]
pop ecx
cmp dword [eax - 0xc], edi
je 0x425f0a
push eax
call fcn.00425e70
pop ecx
test eax, eax
je 0x425f0a
push edi
push dword [ebp - 0x10]
call fcn.0042a521
pop ecx
pop ecx
test eax, eax
jne 0x425f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x425f0c
mov ebx, edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004136c2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004136c2
mov eax, ebx
call fcn.0043c48e
ret

Function at 0x426276
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push 2
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 4]
push eax
push 0x4d68ec
push 1
push esi
push 0x4da13c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x42636f
mov eax, dword [ebp - 4]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4262d2
cmp word [edx], si
je 0x4262d2
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4262e9
cmp word [edi], si
je 0x4262e9
mov eax, dword [ebp - 4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test edi, edi
pop edi
je 0x426331
call fcn.0042a64e
test eax, eax
je 0x426331
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], esi
test ecx, ecx
je 0x426334
mov eax, dword [ecx]
lea edx, [ebp - 8]
push edx
push 0x4d3758
push ecx
call dword [eax]
mov ecx, dword [ebp - 8]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x426331
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
push edx
push 0x4d74ac
push ecx
call dword [eax]
test eax, eax
js 0x42635f
mov eax, dword [ebp - 0xc]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, ebx
not esi
shr esi, 0x1f
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42665f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
mov edi, dword [ebp + 8]
push ebx
push edi
call esi
test eax, eax
jne 0x42668f
inc eax
jmp 0x42672a
call fcn.00428db6
neg eax
lea ecx, [ebp - 0x408]
push ecx
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42672a
jmp 0x4266d8
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call fcn.0042665f
mov dword [ebp - 0x410], eax
pop ecx
pop ecx
test eax, eax
jne 0x426739
xor ecx, ecx
mov dword [ebp - 0x40c], 0x200
lea eax, [ebp - 0x418]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4266ba
push 0x4e8d28
push dword [ebp - 0x408]
call esi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c480
leave
ret
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x410]
jmp 0x42672a
Function at 0x426c92
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x244
mov eax, 0x4c8439
call fcn.0043c4f3
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.004727f6
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004053d0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x426db9
dec eax
mov ecx, esi
push eax
call fcn.0040d270
movzx eax, word [eax]
cmp eax, 0x5c
je 0x426d2c
cmp eax, 0x2f
je 0x426d2c
mov edi, 0x4e9380
push edi
call fcn.004727f6
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00405fe0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x426d36
mov eax, dword [esi]
push eax
call fcn.00425e70
mov edi, eax
mov dword [esp], str.config
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.0041488f
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x426d74
mov ecx, eax
call fcn.00406610
push esi
lea ecx, [ebp - 0x230]
call fcn.00406460
lea ecx, [ebp - 0x248]
call fcn.00406610
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x426db9
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00425e70
pop ecx
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x426e0e
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], ecx
cmp eax, 0x1000
jb 0x426e05
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00406d50
mov eax, dword [ebp - 0x24c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x250]
push eax
push ecx
call fcn.0043c464
pop ecx
pop ecx
mov eax, edi
call fcn.0043c4a2
ret
Function at 0x426e5d
Capabilities:
Acquire debug privileges

Disassembly:
push 0x2c
push 0x4f0ea0
call fcn.0043ccf0
xor esi, esi
mov ebx, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x426ef1
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x426ef1
xor edi, edi
inc edi
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x426ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
cmovne ebx, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00426f14
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42722e
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x244
mov eax, 0x4c84c4
call fcn.0043c4f3
mov esi, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.004727f6
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004053d0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x427355
dec eax
mov ecx, esi
push eax
call fcn.0040d270
movzx eax, word [eax]
cmp eax, 0x5c
je 0x4272c8
cmp eax, 0x2f
je 0x4272c8
mov edi, 0x4d3b94
push edi
call fcn.004727f6
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00405fe0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4272d2
mov eax, dword [esi]
push eax
call fcn.00425e70
mov edi, eax
mov dword [esp], str.config
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.0041488f
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x427310
mov ecx, eax
call fcn.00406610
push esi
lea ecx, [ebp - 0x230]
call fcn.00406460
lea ecx, [ebp - 0x248]
call fcn.00406610
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x427355
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.00425e70
pop ecx
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4273aa
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], ecx
cmp eax, 0x1000
jb 0x4273a1
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.00406d50
mov eax, dword [ebp - 0x24c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x250]
push eax
push ecx
call fcn.0043c464
pop ecx
pop ecx
mov eax, edi
call fcn.0043c4a2
ret

Function at 0x4276cd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427784
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], esi
push eax
push edi
call fcn.00427795
add esp, 0xc
test al, al
je 0x427784
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00464bd0
mov ecx, dword [ebp - 0x210]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x214]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push 0x4d38ac
push 0x104
push eax
call fcn.00438339
lea eax, [ebp - 0x20c]
push eax
call fcn.004727f6
add esp, 0x2c
mov ecx, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00413705
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c480
leave
ret
Function at 0x427795
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x42781c
push esi
push edi
call fcn.0043c472
pop ecx
mov esi, eax
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x427810
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x4e8e64
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x427810
cmp dword [ebp - 8], ebx
je 0x427810
mov ecx, dword [ebp - 0xc]
mov bl, 1
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test esi, esi
je 0x42781b
push esi
call fcn.0043c47b
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x427a08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
je 0x427a3a
push esi
push dword [ebp + 8]
call fcn.00427822
push esi
call fcn.0042a8b5
add esp, 0xc
jmp 0x427aa0
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004727f6
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004053d0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x427a75
xor al, al
jmp 0x427ac8
dec eax
mov ecx, esi
push eax
call fcn.0040d270
movzx eax, word [eax]
cmp eax, 0x5c
je 0x427aa0
cmp eax, 0x2f
je 0x427aa0
mov edi, 0x4d303c
push edi
call fcn.004727f6
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00405fe0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x427aaa
mov eax, dword [esi]
push eax
call fcn.00425e70
mov edi, str.configmgpet.ini
push edi
call fcn.004727f6
pop ecx
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00405fe0
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043c480
leave
ret
Function at 0x428b42
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.IsProcessRunningByFile_sBegin
push 0x3e9
mov ebx, str.KFunction::IsProcessRunningByFile
mov dword [ebp - 0x234], eax
push ebx
push str.E:Documentsmgtv2_packagepackagepublicKFunction.cpp
call fcn.00433eca
push eax
call fcn.00434ea2
push 0x22c
xor esi, esi
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00464bd0
add esp, 0x20
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x428bca
push str.1111.__n
push 0x3f1
push ebx
push str.E:Documentsmgtv2_packagepackagepublicKFunction.cpp
call fcn.00433eca
push eax
call fcn.00434db7
add esp, 0x14
jmp 0x428c5a
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x428c05
push str.1111.__n
push 0x3f7
push ebx
push str.E:Documentsmgtv2_packagepackagepublicKFunction.cpp
call fcn.00433eca
push eax
call fcn.00434db7
add esp, 0x14
jmp 0x428c53
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov eax, dword [ebp - 0x228]
cmp eax, ebx
je 0x428c38
test eax, eax
je 0x428c38
cmp eax, 4
je 0x428c38
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.0048ce7c
pop ecx
pop ecx
test eax, eax
je 0x428c4b
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x428c0d
jmp 0x428c4e
xor esi, esi
inc esi
mov ebx, str.KFunction::IsProcessRunningByFile
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push str.IsProcessRunningByFile_end__bRetrun___d__r_n
push 0x40e
push ebx
push str.E:Documentsmgtv2_packagepackagepublicKFunction.cpp
call fcn.00433eca
push eax
call fcn.00434ea2
mov ecx, dword [ebp - 4]
add esp, 0x18
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043c480
leave
ret

Function at 0x42a521
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x3000010
push 1
push 0
push 3
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42a54d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebp
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebp
ret

Function at 0x42a64e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.00464bd0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42a6a0
cmp dword [ebp - 0x11c], 6
jb 0x42a6a0
xor eax, eax
inc eax
jmp 0x42a6a2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c480
leave
ret
Function at 0x42bd64
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x4c8c77
call fcn.0043c4c0
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00464bd0
xor eax, eax
mov dword [ebp - 0x68], esi
lea edi, [ebp - 0x24]
mov dword [ebp - 0x3c], 1
stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.00421870
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.00413459
add esp, 0x10
cmp dword [ebp + 0x18], edi
je 0x42bdc7
push 0xa
pop eax
jmp 0x42bdc9
xor eax, eax
mov esi, dword [ebp - 0x10]
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42bdf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x42be22
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x24]
je 0x42be0f
test eax, eax
je 0x42be0f
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x24]
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], 0
je 0x42be25
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42be36
push eax
call edi
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x20], 0
je 0x42be45
push dword [ebp - 0x20]
call edi
and dword [ebp - 0x20], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi - 0x10]
call fcn.004136c2
mov eax, ebx
call fcn.0043c48e
ret
Function at 0x42f858
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x4c9196
call fcn.0043c4f3
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00436917
pop ecx
test al, al
jne 0x42f922
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x42f924
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x4d2470
cmovae eax, dword [ebp + 8]
lea edx, [ebp - 0x29]
add eax, ecx
mov byte [ebp - 0x29], 0x2f
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push edx
cmovae ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0041d694
mov ecx, dword [ebp + 0x18]
add esp, 0x10
mov esi, ebx
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x5c
cmovae eax, dword [ebp + 8]
push esi
push ecx
push eax
call fcn.00408e00
add esp, 0x10
lea ecx, [ebp + 8]
mov esi, eax
lea eax, [ebp - 0x28]
cmp esi, 0xffffffff
cmove esi, dword [ebp + 0x18]
push esi
push ebx
push eax
call fcn.004090f0
cmp dword [ebp - 0x18], ebx
je 0x42f912
lea eax, [ebp - 0x28]
push eax
call fcn.00436917
pop ecx
test al, al
jne 0x42f912
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0049253a
pop ecx
test eax, eax
jne 0x42f934
lea ecx, [ebp - 0x28]
inc esi
call fcn.00405ac0
mov ecx, dword [ebp + 0x18]
cmp esi, ecx
jb 0x42f8ba
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00405ac0
mov al, bl
call fcn.0043c4a2
ret
lea ecx, [ebp - 0x28]
call fcn.00405ac0
jmp 0x42f924

Function at 0x434642
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
xor ebx, ebx
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x4346ca
push 0x110
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00464bd0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4346c4
cmp dword [ebp - 0x114], 6
jne 0x4346c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x434708
mov dword [edi], ebx
xor eax, eax
jmp 0x434708
mov ecx, dword [ebp - 0x120]
mov eax, ebx
push esi
mov esi, 0x490
cmp dword [ebp - 0x11c], eax
jbe 0x4346ff
lea edx, [ecx + 8]
cmp dword [edx], ebx
je 0x4346f5
inc eax
add edx, 0xc
cmp eax, dword [ebp - 0x11c]
jb 0x4346e3
jmp 0x4346ff
imul eax, eax, 0xc
mov esi, ebx
mov eax, dword [eax + ecx]
mov dword [edi], eax
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043c480
leave
ret
Function at 0x434716
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x434736
or eax, 0xffffffff
jmp 0x43478f
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00464bd0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x434779
cmp dword [ebp - 0x114], 5
jne 0x434779
cmp dword [ebp - 0x110], 0
je 0x434784
push esi
call fcn.00434ab3
pop ecx
test eax, eax
je 0x43478d
push esi
call fcn.004348d0
pop ecx
jmp 0x43478f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043c480
leave
ret

Function at 0x4348d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4fa534]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x238], eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x43490a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4349d2
push esi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ebx
push ebx
push eax
mov esi, 0x490
call fcn.00464bd0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x434986
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.0048ce7c
pop ecx
pop ecx
test eax, eax
je 0x434976
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x43494c
jmp 0x43498a
mov eax, dword [ebp - 0x228]
xor esi, esi
mov dword [ebp - 0x234], eax
jmp 0x43498a
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x234]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4349ae
call ebx
jmp 0x4349d1
push dword [ebp - 0x238]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4349c8
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043c480
leave
ret

Function at 0x436917
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x436925
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
pop ebp
ret