joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014071
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x10071118]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push 0x11c
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10044e90
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.RtlGetNtVersionNumbers
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100140ef
and dword [ebp - 0x78], 0
and dword [ebp - 0x80], 0
and dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
call eax
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x100140ef
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 0xa8]
xor eax, eax
cmp dword [ebp - 0x70], 0xa
sete al
xor ecx, ebp
call fcn.1003f03d
add ebp, 0xac
leave
ret

Function at 0x1001410d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x10071118]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10044e90
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x9c]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.1003f03d
add ebp, 0xa0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10071118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x10014c2c
mov eax, dword [eax + 4]
jmp 0x10014c2f
add eax, 4
cmp dword [ecx + 0x3c], 8
jb 0x10014c3a
mov ecx, dword [ecx + 0x28]
jmp 0x10014c3d
add ecx, 0x28
push eax
push ecx
push str._ls_hs.png
lea ecx, [ebp - 0x20]
call fcn.10028aa2
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x10014c5b
lea eax, [ebp - 0x1c]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push 0
push 1
lea esi, [ebp - 0x20]
mov edi, ecx
call fcn.10004dfd
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1003f03d
leave
ret 4
Function at 0x10014d1a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x10071118]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x174], 0
push ebx
push esi
push edi
mov dword [ebp - 0x15c], eax
xor eax, eax
lea edi, [ebp - 0x170]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x174]
mov ebx, ecx
push eax
mov esi, edx
push ebx
mov dword [ebp - 0x160], esi
mov byte [ebp - 0x155], 0
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x10014f17
lea eax, [ebp - 0x1b4]
push eax
push 0x18
push dword [ebp - 0x164]
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x118
xor edi, edi
lea eax, [ebp - 0x150]
push edi
push eax
call fcn.10044e90
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - 0x154], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebx
call fcn.10008391
cmp word [ebp - 0x1a2], 0x20
pop ecx
jne 0x10014e69
cmp dword [ebp - 0x150], 5
je 0x10014e69
push dword [ebp - 0x164]
call fcn.10008359
mov edi, eax
pop ecx
mov esi, edi
call fcn.100082e6
mov ebx, eax
call fcn.100082c6
and dword [ebp - 0x184], 0
and dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], ebx
call fcn.10008306
lea ecx, [ebp - 0x19c]
push ecx
push eax
push 1
lea eax, [ebp - 0x184]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipBitmapLockBits
test eax, eax
je 0x10014e33
mov dword [edi + 8], eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x10014e5f
push dword [ebp - 0x18c]
mov esi, eax
push dword [ebp - 0x194]
push dword [ebp - 0x198]
push dword [ebp - 0x19c]
call fcn.10008322
jmp 0x10014e61
xor eax, eax
mov esi, dword [ebp - 0x160]
jmp 0x10014e70
push ebx
call fcn.10008391
pop ecx
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
call fcn.10014c8c
test eax, eax
je 0x10014ee2
cmp dword [esi + 0x18], 0x10
jb 0x10014e8a
mov esi, dword [esi + 4]
jmp 0x10014e8d
add esi, 4
mov eax, dword [ebp - 0x15c]
cmp dword [eax + 0x3c], 8
jb 0x10014e9e
mov eax, dword [eax + 0x28]
jmp 0x10014ea1
add eax, 0x28
push esi
push eax
push str._ls_hs.png
lea ecx, [ebp - 0x24]
call fcn.10028aa2
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [ebp - 0xc], 8
jae 0x10014ebf
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x34]
push ecx
push eax
mov esi, ebx
call fcn.100082a6
test eax, eax
jne 0x10014ed6
mov byte [ebp - 0x155], 1
push 0
push 1
lea esi, [ebp - 0x24]
call fcn.10004dfd
test ebx, ebx
je 0x10014eee
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
test edi, edi
je 0x10014efa
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push dword [ebp - 0x164]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x168]
call esi
movzx eax, byte [ebp - 0x155]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f03d
leave
ret 4
Function at 0x10016dd4
Capabilities:
Create directory
Delete file

Disassembly:
push 0x20
mov eax, 0x10058417
call fcn.10040d31
mov eax, dword [ebp + 8]
lea edi, [eax + 8]
push 7
mov dword [eax], vtable.CDeviceMgr.0
pop ecx
xor esi, esi
xor edx, edx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x14], esi
mov word [edi + 4], dx
mov dword [ebp - 4], esi
mov dword [eax + 0x3c], ecx
xor ecx, ecx
mov dword [eax + 0x38], esi
mov word [eax + 0x28], cx
add eax, 0x40
push eax
mov byte [ebp - 4], 1
call fcn.10010dd4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.100396a5
push 0xffffffffffffffff
push edi
xor ebx, ebx
mov byte [ebp - 4], 3
call fcn.10004d50
push esi
push 1
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10004dfd
cmp dword [edi + 0x18], 8
jb 0x10016e4d
mov edi, dword [edi + 4]
jmp 0x10016e50
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, str.cachedeviceico
lea ecx, [ebp - 0x28]
call fcn.100395d9
mov byte [ebp - 4], 4
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
add edi, 0x24
push edi
xor ebx, ebx
call fcn.10004d50
push ebx
push 1
lea esi, [ebp - 0x28]
call fcn.10004dfd
cmp dword [edi + 0x18], 8
jb 0x10016e8e
mov edi, dword [edi + 4]
jmp 0x10016e91
add edi, 4
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
call fcn.10040e09
ret 4
Function at 0x10018809
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x1005722a
call fcn.10040d9a
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x38], ebx
je 0x1001891e
cmp byte [ebx + 0x41], 0
je 0x1001891e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10018841
xor al, al
jmp 0x10018920
push 0
push 8
pop edi
lea esi, [ebp - 0x30]
call fcn.1001812e
and dword [ebp - 4], 0
lea eax, [ebx + 0x44]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.10033720
mov esi, eax
call fcn.10018b5f
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.10033720
mov esi, eax
call fcn.10018b5f
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
mov esi, dword [ebp - 0x40]
add edi, esi
push edi
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x100188b6
dec eax
je 0x100188ba
dec eax
dec eax
je 0x1001891a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.10004d05
mov al, bl
jmp 0x10018920
mov byte [ebx + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.10033720
mov esi, eax
call fcn.10018b5f
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x100188f8
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x30]
call fcn.10033720
mov esi, eax
call fcn.10018b5f
push dword [ebx + 0x4c]
push edi
push 1
push eax
call fcn.1004026d
add esp, 0x10
cmp edi, eax
jne 0x100188a4
cmp byte [ebx + 0x41], 0
je 0x1001891a
test edi, edi
jne 0x10018858
push edi
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.10018171
mov ebx, dword [ebp - 0x38]
jmp 0x10018858
mov bl, 1
jmp 0x100188a6
mov al, 1
call fcn.10040e1d
ret
Function at 0x1001a852
Capabilities:
Check if file exists
Get session user name

Disassembly:
push 0x334
mov eax, 0x10057b37
call fcn.10040d9a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x31c], ax
lea eax, [ebp - 0x31a]
push eax
mov esi, ecx
call fcn.10044e90
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
mov ebx, str.polocker.exe
xor ecx, ecx
call fcn.100270b2
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001a8ad
push 3
pop eax
jmp 0x1001a995
push edi
push esi
lea eax, [ebp - 0x31c]
push eax
push str.__s___s__s
lea ecx, [ebp - 0x338]
call fcn.10028aa2
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
push 0xfe
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x112]
push esi
push eax
call fcn.10044e90
add esp, 0x1c
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x340], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1001a91d
push esi
push 1
lea esi, [ebp - 0x338]
call fcn.10004dfd
xor eax, eax
jmp 0x1001a995
call fcn.1002ba0b
test eax, eax
mov eax, dword [ebp - 0x334]
jne 0x1001a946
cmp dword [ebp - 0x320], 8
jae 0x1001a93b
lea eax, [ebp - 0x334]
push eax
xor eax, eax
inc eax
call fcn.10027c90
jmp 0x1001a95b
cmp dword [ebp - 0x320], 8
jae 0x1001a955
lea eax, [ebp - 0x334]
push eax
call fcn.10027f45
mov dword [ebp - 0x33c], eax
cmp eax, esi
je 0x1001a96f
cmp eax, 0xffffffff
je 0x1001a96f
xor ebx, ebx
inc ebx
jmp 0x1001a971
xor ebx, ebx
lea eax, [ebp - 0x33c]
call fcn.100011b0
push esi
push 1
lea esi, [ebp - 0x338]
call fcn.10004dfd
xor eax, eax
test bl, bl
setne al
dec eax
and eax, 4
call fcn.10040e1d
ret
Function at 0x1001b2e5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10071118]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.__lastRtLock
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, str.Softwareprojonepodlp_smpcache_
lea esi, [ebp - 0x20]
call fcn.10028c53
xor esi, esi
pop ecx
pop ecx
cmp dword [ebp - 0xc], esi
je 0x1001b32d
push esi
push esi
push esi
push 0x1001b345
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea esi, [ebp - 0x20]
call fcn.10004dfd
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003f03d
leave
ret
Function at 0x1001f2a1
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor bl, bl
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 0x1f6
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x1001f2e5
cmp eax, 0xea
jne 0x1001f348
mov esi, dword [ebp - 0xc]
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 8], eax
jb 0x1001f333
cmp dword [esi + 4], edi
jne 0x1001f312
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x1001f312
cmp dword [ebp + 8], edi
je 0x1001f312
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001f322
add esi, 0x28
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x1001f2f3
jmp 0x1001f333
push edi
push dword [esi]
push edi
call sub.NETAPI32.dll_NetShareDel
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x18], 0xea
je 0x1001f2ac
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x10020259
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10071118]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x10074bb4
call fcn.1001c3c0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x218], esi
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x100203be
mov dword [ebp - 0x214], esi
cmp dword [ebp - 0x218], esi
jbe 0x100203b3
mov dword [ebp - 0x210], esi
mov edi, 0xfe
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x210]
lea esi, [ecx + eax]
lea ebx, [esi + 4]
mov eax, dword [ebx]
test eax, eax
je 0x1002037f
cmp eax, 4
je 0x1002037f
xor eax, eax
push edi
push eax
mov word [ebp - 0x108], ax
lea eax, [ebp - 0x106]
push eax
call fcn.10044e90
xor eax, eax
push edi
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
mov ebx, 0x80
push eax
mov dword [ebp - 0x220], ebx
call fcn.10044e90
add esp, 0x18
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x21c], ebx
push dword [esi + 0xc]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x10020394
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x210]
lea ebx, [ecx + eax + 4]
push 0x10074bb4
call fcn.1001c2aa
lea ecx, [ebp - 0x108]
push ecx
jmp 0x1002038e
push 0x10074bb4
call fcn.1001c2aa
push str.system
push eax
call fcn.10004dd6
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
add dword [ebp - 0x210], 0x10
cmp eax, dword [ebp - 0x218]
jb 0x100202c3
push dword [ebp - 0x20c]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f03d
leave
ret
Function at 0x1002298c
Capabilities:
Check os version

Disassembly:
push 0x198
mov eax, 0x1005b37c
call fcn.10040d9a
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, edx
mov dword [ebp - 0x170], ebx
mov esi, ecx
mov dword [ebp - 0x168], edi
cmp dword [eax + 0x14], ebx
jne 0x100229fd
push ebx
push ebx
lea eax, [ebp - 0x1a4]
call fcn.10030a94
push 3
pop eax
lea ecx, [ebp - 0x1a4]
push ecx
push str.param_error
push eax
push edi
mov dword [ebp - 4], eax
call fcn.1002b699
add esp, 0x10
lea esi, [ebp - 0x1a4]
mov dword [ebp - 0x170], 1
mov byte [ebp - 4], bl
call fcn.1002fd55
mov eax, edi
jmp 0x10022bc4
push eax
lea ecx, [ebp - 0x4c]
call fcn.10001206
pop ecx
push esi
lea edi, [ebp - 0x188]
mov dword [ebp - 4], 4
call fcn.10023e7c
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x17c]
mov edi, 0xfc
cdq
mov ecx, edi
idiv ecx
mov dword [ebp - 0x16c], ebx
test eax, eax
je 0x10022a9e
push dword [ebp - 0x16c]
lea esi, [ebp - 0x188]
call fcn.10024638
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.100131c7
test al, al
jne 0x10022a8e
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x17c]
mov ecx, edi
cdq
idiv ecx
inc dword [ebp - 0x16c]
cmp dword [ebp - 0x16c], eax
jne 0x10022a4e
jmp 0x10022a9e
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
lea eax, [esi + 0x38]
push ecx
xor ebx, ebx
call fcn.10004d50
mov eax, dword [ebp - 0x178]
sub eax, dword [ebp - 0x17c]
cdq
idiv edi
cmp dword [ebp - 0x16c], eax
jne 0x10022ad3
push ebx
push ebx
lea eax, [ebp - 0x1a4]
call fcn.10030a94
push eax
push str.id_not_find
mov byte [ebp - 4], 9
push 4
jmp 0x10022b6d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10022adf
lea eax, [ebp - 0x2c]
push eax
push str.test_delete_task:_ls
call fcn.1003b6a0
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
pop ecx
pop ecx
jae 0x10022af8
lea esi, [ebp - 0x2c]
push 0x110
lea eax, [ebp - 0x160]
push ebx
push eax
mov dword [ebp - 0x164], 0x114
call fcn.10044e90
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x160], 6
push esi
jb 0x10022b35
call fcn.100224c1
jmp 0x10022b3a
call fcn.1002286a
push ebx
cmp eax, ebx
push ebx
lea eax, [ebp - 0x1a4]
je 0x10022b57
call fcn.10030a94
push eax
mov byte [ebp - 4], 0xc
push str.delete_task_success
jmp 0x10022b6c
call fcn.10030a94
lea eax, [ebp - 0x1a4]
push eax
mov byte [ebp - 4], 0xf
push str.delete_task_failed
push ebx
push dword [ebp - 0x168]
call fcn.1002b699
xor edi, edi
inc edi
add esp, 0x10
lea esi, [ebp - 0x1a4]
mov dword [ebp - 0x170], edi
mov byte [ebp - 4], 6
call fcn.1002fd55
push ebx
push edi
lea esi, [ebp - 0x30]
call fcn.10004dfd
lea esi, [ebp - 0x188]
call fcn.1002495a
push dword [ebp - 0x188]
call fcn.1003f52e
pop ecx
push ebx
push edi
lea esi, [ebp - 0x4c]
call fcn.10004dfd
mov eax, dword [ebp - 0x168]
call fcn.10040e1d
ret 4
Function at 0x10022c8a
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x41c
lea ebp, [esp - 4]
mov eax, dword [0x10071118]
xor eax, ebp
mov dword [ebp + 0x41c], eax
push 4
mov eax, 0x100582b7
call fcn.10040d31
and dword [ebp - 0x10], 0
lea eax, [ebp]
push eax
mov edx, str.Command
call fcn.10022bcc
and dword [ebp - 4], 0
xor eax, eax
push 0x3fe
push eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push eax
call fcn.10044e90
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [ebp + 0x18], 8
jae 0x10022ce8
lea eax, [ebp + 4]
push 0x200
lea ecx, [ebp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x1c]
push eax
mov esi, ebx
call fcn.100048d8
push 0
push 1
lea esi, [ebp]
call fcn.10004dfd
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x41c]
xor ecx, ebp
call fcn.1003f03d
add ebp, 0x420
leave
ret

Function at 0x10022d34
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x454
lea ebp, [esp - 4]
mov eax, dword [0x10071118]
xor eax, ebp
mov dword [ebp + 0x454], eax
push 4
mov eax, 0x10058287
call fcn.10040d31
lea eax, [ebp + 0x1c]
xor edi, edi
push eax
mov edx, str.ClassId
mov dword [ebp - 0x10], edi
call fcn.10022bcc
mov dword [ebp - 4], edi
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x10022d7a
lea eax, [ebp + 0x20]
push eax
push str.CLSID_lsInprocServer32
lea ecx, [ebp + 0x38]
call fcn.10028aa2
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x50], 8
mov ecx, dword [ebp + 0x3c]
jae 0x10022d9a
lea ecx, [ebp + 0x3c]
push 0x10060e9c
push bind
lea esi, [ebp]
call fcn.10028c53
xor eax, eax
mov byte [ebp - 4], 2
push 0x3fe
mov word [ebp + 0x54], ax
lea eax, [ebp + 0x56]
push edi
push eax
call fcn.10044e90
mov eax, dword [ebp + 4]
add esp, 0x14
cmp dword [ebp + 0x18], 8
jae 0x10022dd4
lea eax, [ebp + 4]
push 0x200
lea ecx, [ebp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x54]
push eax
mov esi, ebx
call fcn.100048d8
push edi
push 1
lea esi, [ebp]
call fcn.10004dfd
push edi
push 1
lea esi, [ebp + 0x38]
call fcn.10004dfd
push edi
push 1
lea esi, [ebp + 0x1c]
call fcn.10004dfd
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x454]
xor ecx, ebp
call fcn.1003f03d
add ebp, 0x458
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
call fcn.1002378f
cmp dword [eax + 0x18], 8
jb 0x100237e9
mov eax, dword [eax + 4]
jmp 0x100237ec
add eax, 4
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push 0
push 1
lea esi, [ebp - 0x1c]
mov edi, ecx
call fcn.10004dfd
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x10023813
Capabilities:
Delete file
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x10071118]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x18], 8
push esi
mov esi, ecx
lea eax, [ebx + 4]
push edi
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x2c4], eax
jb 0x10023841
mov eax, dword [eax]
push eax
push str.pe_file:_ls
call fcn.1003b6a0
cmp dword [esi + 0x18], 8
pop ecx
pop ecx
jb 0x1002385b
add esi, 4
mov edi, dword [esi]
jmp 0x10023860
add esi, 4
mov edi, esi
call fcn.10026946
mov edi, dword [ebp - 0x2c8]
cmp dword [edi + 0x18], 8
jb 0x10023873
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
push 0x2b0
lea eax, [ebp - 0x2bc]
push esi
push eax
mov dword [ebp - 0x2c0], esi
call fcn.10044e90
mov eax, dword [ebp - 0x2c4]
add esp, 0xc
cmp dword [ebx + 0x18], 8
jb 0x100238a5
mov eax, dword [eax]
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2c0]
push ecx
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2c0]
cmp ecx, esi
jne 0x100238cc
xor eax, eax
jmp 0x100238e2
mov edx, edi
call fcn.10026180
push dword [ebp - 0x2c0]
call dword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003f03d
leave
ret
Function at 0x10023e7c
Capabilities:
Check os version

Disassembly:
push 0x140
mov eax, 0x1005a061
call fcn.10040d9a
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], ebx
call fcn.10010dd4
push 0x110
xor esi, esi
lea eax, [ebp - 0x124]
mov dword [ebp - 4], ebx
push ebx
inc esi
push eax
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x128], 0x114
call fcn.10044e90
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jb 0x10023efc
lea ecx, [ebp - 0x14c]
call fcn.10023181
mov dword [ebp - 4], esi
jmp 0x10023f0f
lea eax, [ebp - 0x14c]
push eax
call fcn.10022e35
mov dword [ebp - 4], 2
mov esi, eax
mov eax, edi
call fcn.10024530
lea esi, [ebp - 0x14c]
mov byte [ebp - 4], bl
call fcn.1002495a
push dword [ebp - 0x14c]
call fcn.1003f52e
pop ecx
push dword [ebp - 0x12c]
mov ecx, edi
call fcn.100238f0
mov eax, edi
call fcn.10040e1d
ret 4