joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041b35
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x264
mov eax, 0x100eec70
call fcn.10082248
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x26c]
push edi
call fcn.1003c703
mov eax, dword [ebp - 0x26c]
and dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x10041c86
push str..
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.10040d52
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x270]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.1003e0f9
cmp ebx, 0xffffffff
je 0x10041c86
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x268]
call fcn.1003c703
mov esi, dword [ebp - 0x268]
push 0x100fa654
push esi
mov byte [ebp - 4], 1
call fcn.10041dc4
pop ecx
pop ecx
test eax, eax
je 0x10041c48
push 0x100fa658
push esi
call fcn.10041dc4
pop ecx
pop ecx
test eax, eax
je 0x10041c48
call fcn.10027b70
push eax
lea ecx, [ebp - 0x264]
call fcn.1003c679
push dword [ebp - 0x268]
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 2
push edi
push str._s_s
push eax
call fcn.100404b4
mov esi, dword [ebp - 0x264]
add esp, 0x10
test byte [ebp - 0x260], 0x10
push esi
je 0x10041c2f
call fcn.10041b35
jmp 0x10041c34
call fcn.10041b1d
pop ecx
lea ecx, [esi - 0x10]
call fcn.1003e0f9
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
jmp 0x10041c4b
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.1003e0f9
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10041baa
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10041c86
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.1003e0f9
call fcn.100821f2
ret

Function at 0x10041c9a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x10041cfd
xor edi, edi
cmp word [eax], di
je 0x10041cfd
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10041cd3
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10041cf2
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10041d00
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x10041dfa
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4a8]
push edi
mov edi, 0x400
mov dword [ebp - 0x4c4], esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4b4], 0x24
push ebx
push eax
call fcn.100a25c0
mov dword [ebp - 0x4bc], edi
lea eax, [ebp - 0xa8]
mov edi, 0x80
push edi
push ebx
push eax
call fcn.100a25c0
push str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x4b8], edi
mov dword [ebp - 0x4b0], ebx
mov dword [ebp - 0x4ac], ebx
mov dword [ebp - 0x4c0], ebx
call fcn.10042011
add esp, 0x1c
test eax, eax
je 0x10041f70
push str.SeRestorePrivilege
call fcn.10042011
pop ecx
test eax, eax
je 0x10041f70
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x10041f70
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x4e8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c0]
xor edi, edi
push eax
push ebx
lea eax, [ebp - 0x4ac]
inc edi
push eax
push ebx
push ebx
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
push 3
push edi
push 0x10000000
push str.everyone
lea eax, [ebp - 0x4e8]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4ac]
lea eax, [ebp - 0x4e8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x10041f70
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4a8]
push eax
push edi
push edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
call esi
push ebx
push dword [ebp - 0x4b0]
lea eax, [ebp - 0x4a8]
push ebx
push eax
push 5
push edi
push dword [ebp - 0x4c4]
call esi
test eax, eax
cmove ebx, edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret
Function at 0x1004216d
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x100eecc3
call fcn.10082214
xor ebx, ebx
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push ebx
cmovae eax, dword [ebp + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.100c21f6
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100421fc
cmp dword [ebp + 0x18], ebx
je 0x100421fc
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x5c
cmovae eax, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp + 0x18]
push eax
call fcn.10040cda
push ecx
push ecx
mov ecx, esp
push eax
push ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
push eax
mov byte [ecx], bl
call fcn.100376b2
call fcn.1004216d
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call fcn.100c21a9
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call fcn.10041dfa
add esp, 0x20
lea ecx, [ebp + 8]
call fcn.10003d90
call fcn.100821dd
ret

Function at 0x1004220a
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x208
push ebx
push eax
call fcn.100a25c0
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100ad14d
lea ecx, [ebp - 0x20c]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10042258
sub ecx, edx
mov esi, 0x208
sar ecx, 1
lea ecx, [ecx*2 + 2]
cmp ecx, esi
jae 0x10042331
xor eax, eax
push esi
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.100a25c0
push edi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.100ad14d
lea ecx, [ebp - 0x414]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100422b1
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
cmp ecx, esi
jae 0x10042331
xor eax, eax
mov dword [ebp - 0x41e], ebx
mov word [ebp + ecx - 0x414], ax
mov eax, 0x614
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x41a], ebx
mov dword [ebp - 0x430], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret
call fcn.10081f79
int3

Function at 0x100441d1
Capabilities:
Check if file exists

Disassembly:
call fcn.10026eb0
mov ecx, eax
jmp fcn.10045d6c

Function at 0x10045d6c
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x10045d7a
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10045d89
xor al, al
pop esi
ret
mov ecx, esi
pop esi
jmp 0x10045d91
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x10045d9c
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
ret

Function at 0x10045da9
Capabilities:
Check if file exists

Disassembly:
call fcn.10026eb0
mov ecx, eax
jmp 0x10045d91
Function at 0x10045db5
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x100ee81a
call fcn.10082248
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.10045b34
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10045de7
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x100faf00
call fcn.1003768b
push 0x100faf04
mov ecx, esi
call fcn.1003768b
push 0x100f58d0
mov ecx, esi
call fcn.1003768b
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.10006070
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10045e3c
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10045ed4
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100a25c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10045b14
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 0x10045e93
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.1003768b
push 0x100f58d0
mov ecx, esi
call fcn.1003768b
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.10006070
cmp dword [esi + 0x14], 8
jb 0x10045edc
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.10045b93
push eax
lea ecx, [edi + 0x1c]
call fcn.10001fe0
lea ecx, [ebp - 0x248]
call fcn.10001ee0
lea ecx, [ebp - 0x230]
call fcn.10001ee0
call fcn.100821f2
ret
Function at 0x100476d4
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x100ef440
call fcn.10082248
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x100476f5
push dword [esi + 0x1c]
call fcn.100cbfe3
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.10046932
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.100c219e
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x10047779
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10046932
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10046932
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.10001ee0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10001ee0
sub edi, 1
jns 0x10047723
mov ecx, esi
call fcn.10047519
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.10001ee0
call fcn.100821f2
ret

Function at 0x10047792
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x100ef440
call fcn.10082248
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x100477b3
push dword [esi + 0x1c]
call fcn.100cbfe3
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.10046932
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.100c219e
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x10047837
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10046932
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10046932
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.10001ee0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10001ee0
sub edi, 1
jns 0x100477e1
mov ecx, esi
call fcn.100475b0
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.10001ee0
call fcn.100821f2
ret
Function at 0x10047efc
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10047f2b
push 2
pop eax
jmp 0x10047fb0
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10047d5b
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.100a25c0
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, str.runas
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x10047fa6
cmp dword [ebp + 0x10], 0
je 0x10047fa6
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.10001ee0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret

Function at 0x100492e2
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x20
mov eax, 0x100ef646
call fcn.10082214
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x10049301
mov eax, 0x80004003
jmp 0x100493d4
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004932e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100493d4
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x10049323
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp eax, ebx
ja 0x100493d1
cmp edi, 0xffffffff
jae 0x100493d1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.1004a155
mov ebx, dword [ebp - 0x28]
cmp edi, ebx
mov edi, dword [ebp - 0x2c]
jne 0x100493bd
xor eax, eax
cmp dword [ebp - 0x10], eax
jne 0x100493bd
push eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004939e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100493b9
cmp dword [ebp + 8], ebx
je 0x100493a8
push 0x26
pop esi
jmp 0x100493c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ebx
push edi
call fcn.100490c9
mov esi, eax
jmp 0x100493c2
mov esi, 0x8007000e
test edi, edi
je 0x100493cd
push edi
call fcn.100b5d1c
pop ecx
mov eax, esi
jmp 0x100493d4
xor eax, eax
inc eax
call fcn.100821dd
ret 4
Function at 0x10049e88
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x100ef700
call fcn.10082214
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x10049f33
xor edi, edi
cmp word [eax], di
je 0x10049f33
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10049ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10049f38
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push 1
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.10049d0a
mov edi, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
js 0x10049f24
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10049f1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10049f24
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test edi, edi
je 0x10049f2f
push edi
call fcn.100b5d1c
pop ecx
mov eax, esi
jmp 0x10049f38
mov eax, 0x80070057
call fcn.100821dd
ret 0xc

Function at 0x1004a6e2
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x1004a78b
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1004a78b
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.1004a949
add esp, 0x14
test al, al
je 0x1004a78b
push esi
call fcn.1004095b
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004a73c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ebx
push 0x80
push 2
push ebx
push 0xc0000000
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.1004a48b
test eax, eax
jns 0x1004a763
cmp dword [ebp - 0x10], ebx
jmp 0x1004a77c
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
push dword [ebp - 8]
call fcn.1004a5b2
test eax, eax
js 0x1004a75e
cmp dword [ebp - 0x10], 0
mov bl, 1
je 0x1004a787
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x1004a78d
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x100519bc
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x100f07dc
call fcn.10082248
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.1003768b
push ebx
lea ecx, [ebp - 0x428]
call fcn.1003768b
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 0x10051ad6
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.100a25c0
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 0x10051abd
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x10051ace
push dword [ebp - 0x42c]
call edi
test esi, esi
jne 0x10051bc0
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.1003768b
push dword [ebp - 0x430]
lea ecx, [ebp - 0x428]
call fcn.1003768b
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 0x10051bc0
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.100a25c0
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 0x10051baf
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x10051bc0
push dword [ebp - 0x42c]
call edi
lea ecx, [ebp - 0x428]
call fcn.10001ee0
mov eax, esi
call fcn.100821f2
ret
Function at 0x1005203e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100520d1
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.100a25c0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x100520d1
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x100520ba
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100361f3
pop ecx
pop ecx
test al, al
jne 0x100520c0
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1005209a
jmp 0x100520c6
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x100520d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret

Function at 0x10052886
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x1005289c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10052a7f
pop ecx
pop ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x100528be
cmp esi, 2
je 0x100528be
xor al, al
jmp 0x100528c0
mov al, 1
pop esi
pop ebp
ret

Function at 0x1005293b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x21c], esi
call fcn.100a25c0
add esp, 0xc
mov ebx, 0x20019
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10052a06
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x100529fa
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x10052a2b
cmp edi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x10052a2b
cmp ebx, 0x20019
jne 0x10052a2b
mov esi, dword [ebp - 0x21c]
mov ebx, 0x20119
jmp 0x10052990
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.10001e10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10081454
leave
ret