joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435a19
Capabilities:
Delete directory

Disassembly:
mov eax, 0x476088
call fcn.00465b54
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x34]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00435934
lea ecx, [ebp + 8]
call fcn.0040650f
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call edi
test eax, eax
jne 0x435b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 3
je 0x435b82
cmp ebx, 2
je 0x435b82
cmp ebx, 5
jne 0x435a86
lea eax, [ebp + 8]
push eax
call fcn.00436586
test al, al
pop ecx
jne 0x435a8e
mov ebx, 0x91
cmp ebx, 0x91
je 0x435aab
push dword [ebp + 0x34]
lea eax, [ebp + 8]
mov ecx, esi
push ebx
push dword [ebp + 0x30]
push eax
call fcn.004357f1
lea ecx, [ebp + 8]
call fcn.0040650f
push eax
jmp 0x435a4a
xor edi, edi
mov dword [ebp + 0x30], edi
mov eax, dword [esi]
mov dword [ebp - 0x10], edi
lea edx, [ebp + 0x30]
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
push edx
push 0x492700
push 0x47df34
mov eax, dword [eax + esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, edi
jl 0x435ae4
mov eax, dword [ebp + 0x30]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp word [ebp - 0x10], di
je 0x435b71
sub esp, 0x28
lea eax, [ebp + 0x37]
mov dword [ebp - 0x14], esp
mov ecx, esp
push 0
mov esi, 0x49b2bc
mov ebx, 0x47b4b8
mov edi, 0x47b4b0
push eax
push esi
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00405917
sub esp, 0x28
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push 1
push eax
mov byte [ebp - 4], 2
call fcn.0041a4f4
mov byte [ebp - 4], 1
call fcn.0045e864
add esp, 0x50
test eax, eax
je 0x435b71
lea eax, [ebp + 0x37]
push 0
push eax
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], edi
call fcn.00405917
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 8]
push eax
call fcn.0045ec33
pop ecx
mov byte [ebp - 4], 1
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00407f77
mov eax, dword [ebp + 0x30]
and byte [ebp - 4], 0
test eax, eax
je 0x435b82
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x30

Function at 0x436586
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x476104
call fcn.00465b54
sub esp, 0x168
push ebx
push edi
push 0x4922d4
lea eax, [ebp - 0x34]
push dword [ebp + 8]
push eax
call fcn.00407747
add esp, 0xc
lea ecx, [ebp - 0x174]
xor ebx, ebx
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00407f77
cmp edi, 0xffffffff
jne 0x4365d9
mov al, 1
jmp 0x436608
lea eax, [ebp - 0x174]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
push edi
call esi
test eax, eax
je 0x4365fc
lea eax, [ebp - 0x174]
push eax
push edi
call esi
test eax, eax
jne 0x4365fe
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x438cf0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x476518
call fcn.00465b54
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x47d278
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], ebx
mov byte [ebp - 4], 1
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00438e2c
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.0040554d
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 3
call fcn.0040554d
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x84], bl
mov dword [esi], 0x47d0e0
mov dword [esi + 4], 0x47d0d0
mov dword [esi + 8], 0x47d0b8
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4478b3
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x477c00
call fcn.00465b54
sub esp, 0x130
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], edi
mov ebx, 0x80070000
jne 0x447927
call esi
test eax, eax
jg 0x447903
call esi
jmp 0x44790c
call esi
and eax, 0xffff
or eax, ebx
cmp eax, edi
jge 0x447927
push eax
lea ecx, [ebp - 0x38]
call fcn.004077b1
lea eax, [ebp - 0x38]
push 0x47eed0
push eax
call fcn.00465b73
mov dword [ebp - 0x14], edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x104
push eax
lea eax, [ebp - 0x13c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordSetStringA
mov edi, eax
test edi, edi
jne 0x4479b3
cmp dword [ebp + 0x10], eax
je 0x4479a4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x13c]
push dword [ebp + 0x10]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x447985
call esi
test eax, eax
jg 0x447978
call esi
jmp 0x447981
call esi
and eax, 0xffff
or eax, ebx
test eax, eax
jl 0x4479da
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x10]
je 0x4479a4
call esi
test eax, eax
jg 0x447997
call esi
jmp 0x4479a0
call esi
and eax, 0xffff
or eax, ebx
test eax, eax
jl 0x4479f1
mov eax, dword [ebp + 0x10]
add dword [ebp - 0x14], eax
test eax, eax
jbe 0x447a08
jmp 0x44792a
mov esi, edi
and edi, 0xf7ff
or edi, 0x80040800
neg esi
sbb esi, esi
and esi, edi
cmp dword [ebp - 0x10], 0xffffffff
je 0x4479d6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x447a19
push eax
lea ecx, [ebp - 0x38]
call fcn.004077b1
lea eax, [ebp - 0x38]
push 0x47eed0
push eax
call fcn.00465b73
push eax
lea ecx, [ebp - 0x38]
call fcn.004077b1
lea eax, [ebp - 0x38]
push 0x47eed0
push eax
call fcn.00465b73
cmp dword [ebp - 0x10], 0xffffffff
je 0x447a17
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x447afd
Capabilities:
Copy file

Disassembly:
mov eax, 0x477c3c
call fcn.00465b54
sub esp, 0x854
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x860]
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x800
push eax
call fcn.00447bc9
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x447bbc
lea eax, [ebp + 0x13]
push ebx
push eax
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x47b4b8
mov dword [ebp - 0x18], 0x47b4b0
call fcn.004059b3
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x60]
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call fcn.004059b3
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.004075e3
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.00407f77
push ebx
lea ecx, [ebp - 0x38]
push dword [ebp + 8]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x447bae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x447bac
mov eax, 0x80004005
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00407f77
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x447bc9
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x477c50
call fcn.00465b54
push ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
xor eax, eax
cmp dword [ebp + 0xc], esi
push 0x20019
push 0x4941a0
setne al
add eax, 0x80000001
lea ecx, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.004282aa
mov edi, eax
cmp edi, esi
jne 0x447c22
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push dword [ebp + 8]
push eax
push esi
push 0x494198
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp dword [ebp - 0x10], esi
je 0x447c30
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x44854e
Capabilities:
Delete file

Disassembly:
mov eax, 0x477d43
call fcn.00465b54
sub esp, 0x7c
push ebx
push esi
push edi
lea eax, [ebp - 0xd]
push 1
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x88]
call fcn.0040565e
lea eax, [ebp - 0xe]
push 1
xor edi, edi
push eax
push 0x494480
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], edi
call fcn.0040565e
push dword [0x47b4c4]
lea eax, [ebp - 0x60]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x5c]
and eax, ecx
push edi
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00408822
and byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00407f77
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x38]
push dword [ebp + 0x18]
push eax
call fcn.00416b1e
lea eax, [ebp - 0x38]
push 0xc
push eax
mov byte [ebp - 4], 2
call fcn.0041c080
mov ebx, dword [ebp + 8]
add esp, 0x14
test al, al
jne 0x448614
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
call fcn.0040650f
push eax
push ebx
call fcn.00447a28
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x448614
push esi
push 0x49444c
push ebx
call fcn.00447860
add esp, 0xc
jmp 0x4486d5
push 8
push edi
lea ecx, [ebp - 0x38]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp + 0x10], eax
jne 0x448653
call esi
test eax, eax
je 0x448653
call esi
push eax
push 0x494424
push ebx
call fcn.00447860
add esp, 0xc
call esi
mov esi, eax
jmp 0x4486d5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [0x494138], eax
jne 0x44866e
call esi
test eax, eax
jne 0x448639
push dword [ebp + 0xc]
call dword [0x494138]
mov edi, eax
test edi, edi
je 0x448690
push edi
push 0x4943fc
push ebx
call fcn.00447860
add esp, 0xc
mov esi, edi
jmp 0x4486d5
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x4486ad
call esi
test eax, eax
je 0x4486ad
call esi
push eax
push 0x4943d0
jmp 0x448641
lea ecx, [ebp - 0x38]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4486d3
call esi
test eax, eax
je 0x4486d3
call esi
push eax
push 0x4943ac
jmp 0x448641
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407f77
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x448d1e
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x448d3d
xor al, al
jmp 0x448d57
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x448d5b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x448fa5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x49473c
push SysReAllocString
xor edi, edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x448fdf
mov edi, dword [ebp - 4]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x808]
push dword [ebp + 8]
push eax
call fcn.00465e4b
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push esi
push 0x494730
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, esi
je 0x449025
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x449af2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x449b26
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x449b49
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x449b54
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x449b5d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x449be2
xor eax, eax
cmp dword [ebp - 4], esi
je 0x449b9e
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x449be2
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push 0x4949f4
call fcn.00449af2
cmp dword [ebp - 4], esi
je 0x449bde
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x449c00
cmp eax, esi
push ebx
jle 0x449bf1
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x449bfd
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x450200
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x478b8b
call fcn.00465b54
sub esp, 0x1c0
push ebx
push esi
mov esi, ecx
push edi
push 0x49614c
lea eax, [ebp - 0x8c]
lea ebx, [esi + 0x1c]
mov byte [ebp - 0xd], 1
push ebx
push eax
call fcn.00407747
add esp, 0xc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1cc]
push ecx
mov ecx, eax
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00407f77
cmp edi, 0xffffffff
je 0x45030e
cmp byte [ebp - 0xd], 0
je 0x450307
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040565e
test byte [ebp - 0x1cc], 0x10
mov byte [ebp - 4], 3
jne 0x4502e2
push 0x491794
call fcn.00465bad
pop ecx
push eax
push 0x491794
push dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
push 0
call fcn.0045d440
test eax, eax
je 0x4502e2
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.00416b1e
add esp, 0xc
push eax
lea ecx, [esi + 0x454]
mov byte [ebp - 4], 4
call fcn.00458536
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00407f77
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00407f77
lea eax, [ebp - 0x1cc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
setne byte [ebp - 0xd]
jmp 0x450267
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x452594
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x478f5b
call fcn.00465b54
sub esp, 0x78
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x45263e
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.004071be
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x50]
sete bl
or dword [ebp - 4], 0xffffffff
call fcn.00407f77
test bl, bl
je 0x452645
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.004071be
push 1
mov ecx, eax
pop edi
push 0
mov dword [ebp - 4], edi
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
lea ecx, [ebp - 0x84]
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
inc bl
call fcn.00407f77
test bl, bl
je 0x452648
push 0
push 0x4968f4
mov ecx, esi
call fcn.0040650f
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x4527b1
push 1
pop edi
mov eax, dword [ebp + 0xc]
xor esi, esi
and dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
mov eax, dword [eax + 0xc]
cmp eax, edi
mov dword [ebp - 0x18], eax
jbe 0x452773
push 2
pop ebx
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.00448b8c
movzx eax, word [eax]
cmp eax, 0x56
jg 0x4526e9
je 0x45274e
cmp eax, 0x49
jg 0x4526c7
je 0x452714
sub eax, 0x21
je 0x4526bf
sub eax, 9
je 0x4526b5
dec eax
je 0x4526ad
sub eax, 0x16
je 0x452721
sub eax, ebx
je 0x452719
sub eax, ebx
jne 0x45263e
or esi, ebx
jmp 0x452764
mov dword [ebp - 0x14], edi
jmp 0x452764
mov esi, 0xfdf
jmp 0x452764
mov dword [ebp - 0x14], ebx
jmp 0x452764
sub eax, 0x4d
je 0x452710
sub eax, ebx
je 0x452729
dec eax
je 0x45275e
sub eax, ebx
je 0x452756
sub eax, 3
jne 0x45263e
or esi, 8
jmp 0x452764
cmp eax, 0x6f
jg 0x452731
je 0x452729
sub eax, 0x57
je 0x452749
sub eax, 0xa
je 0x452721
sub eax, ebx
je 0x452719
sub eax, ebx
je 0x4526a6
sub eax, 4
je 0x452714
sub eax, 4
jne 0x45263e
or esi, edi
jmp 0x452764
or esi, 0x10
jmp 0x452764
or esi, 0x800
jmp 0x452764
or esi, 0x100
jmp 0x452764
or esi, 0x80
jmp 0x452764
sub eax, 0x70
je 0x45275e
sub eax, ebx
je 0x452756
sub eax, 3
je 0x4526e4
dec eax
je 0x45274e
dec eax
jne 0x45263e
or esi, 4
jmp 0x452764
or esi, 0x1000
jmp 0x452764
or esi, 0x200
jmp 0x452764
or esi, 0x400
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x452664
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp + 8]
mov dword [edi + 0x2c8], esi
mov eax, dword [ebx + 8]
test eax, eax
jne 0x45278b
mov eax, 0x47b4c0
push eax
lea ecx, [edi + 0x2a0]
call fcn.00405b36
mov eax, dword [ebp - 0x14]
mov ecx, ebx
push eax
mov dword [edi + 0x2cc], eax
call fcn.0040650f
push eax
push esi
call sub.msi.dll_MsiGetComponentPathA
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x455c7c
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x47966e
call fcn.00465b54
sub esp, 0x1e4
push esi
mov esi, ecx
push 0x4af578
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x455daa
add esi, 0x1c
push 0x4922d4
lea eax, [ebp - 0xb0]
push esi
push eax
call fcn.00407747
add esp, 0xc
mov eax, dword [eax + 8]
and dword [ebp - 4], 0
test eax, eax
jne 0x455cca
mov eax, 0x47b4c0
push edi
lea ecx, [ebp - 0xe]
push 1
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.004055c2
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00407f77
lea eax, [ebp - 0x1f0]
lea ecx, [ebp - 0x60]
push eax
call fcn.00406443
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp byte [ebp - 0x1c4], 0x2e
je 0x455d72
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x47b4b8
mov dword [ebp - 0x18], 0x47b4b0
call fcn.004059b3
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.00407579
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00407f77
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00407f77
lea eax, [ebp - 0x1f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x455d01
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, esi
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00407f77
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4570c6
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8
Function at 0x4570ed
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4798a3
call fcn.00465b54
sub esp, 0xa4
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov eax, dword [eax + 0xc]
mov esi, ecx
cmp eax, edi
jne 0x4572de
push ebx
lea ebx, [esi + 0x2f8]
push ebx
call fcn.00448701
neg al
sbb eax, eax
pop ecx
add eax, reloc.OLEAUT32.dll_SysReAllocString
push 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x12]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040554d
lea eax, [ebp - 0x11]
push 1
push eax
push 0x496ce4
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], edi
call fcn.0040565e
push dword [0x47b4c4]
lea eax, [ebp - 0x54]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x50]
and eax, ecx
push edi
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00406fad
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00407f77
push dword [0x47b4c4]
mov eax, ebx
add ebx, 4
lea ecx, [ebp - 0x78]
neg eax
sbb eax, eax
push edi
and eax, ebx
push eax
call fcn.00408822
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x7c]
push eax
push 1
push edi
mov byte [ebp - 4], 2
call fcn.00406443
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x457285
mov ecx, dword [ebp + 8]
mov eax, 0x104
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406e9d
mov ebx, eax
mov ecx, dword [ebx]
mov byte [ebp - 4], 3
call fcn.0040650f
lea ecx, [ebp - 0x18]
mov dword [ebx + 8], eax
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0x491448
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
lea ecx, [ebp - 0x2c]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 2
inc bl
call fcn.00405c43
test bl, bl
je 0x4572c0
cmp byte [ebp + 0xc], 0
je 0x4572c0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xb0]
push eax
call fcn.004071be
push 0x491794
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
push eax
call fcn.00409cdb
add esp, 0xc
push dword [0x47b518]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 5
neg ecx
sbb ecx, ecx
push edi
and ecx, eax
push ecx
lea ecx, [esi + 0xe8]
call fcn.00406639
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00407f77
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00407f77
jmp 0x4572c0
cmp byte [ebp + 0xc], 0
je 0x4572c0
lea ebx, [esi + 0xe4]
push 0x497698
mov ecx, ebx
call fcn.00405b36
mov esi, dword [esi + 0x300]
cmp esi, edi
jne 0x4572ac
mov esi, 0x47b4c8
push esi
mov ecx, ebx
call fcn.004073da
push 0x491794
mov ecx, ebx
call fcn.004073da
cmp dword [ebp - 0x10], edi
pop ebx
je 0x4572d2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8