joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b088
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x10040cd5
call fcn.1002b113
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jae 0x1001b0b3
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], edi
jne 0x1001b0ee
xor ebx, ebx
push edi
push 1
lea esi, [ebp + 8]
call fcn.10002d0f
push edi
push 1
lea esi, [ebp + 0x24]
call fcn.10002d0f
mov eax, ebx
call fcn.1002b1eb
ret
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
mov dword [esi], edi
jae 0x1001b0fc
lea eax, [ebp + 0x28]
push esi
push edi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push eax
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x1001b159
mov eax, dword [esi]
cmp eax, edi
je 0x1001b159
add eax, 2
push eax
call fcn.10025992
mov ecx, dword [esi]
inc ecx
inc ecx
push ecx
push edi
push eax
mov dword [ebp - 0x14], eax
call fcn.10027f40
mov eax, dword [ebp + 0x28]
add esp, 0x10
cmp dword [ebp + 0x3c], 8
jae 0x1001b13d
lea eax, [ebp + 0x28]
push esi
push dword [ebp - 0x14]
push edi
push edi
push eax
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1001b159
push dword [ebp - 0x14]
call fcn.10027fba
pop ecx
mov dword [ebp - 0x14], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x14]
jmp 0x1001b0d0
Function at 0x1001cebd
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x10043045
call fcn.1002b113
mov eax, dword [ebp + 0x40]
mov edi, ecx
mov dword [ebp - 0x18], eax
mov esi, edx
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 0x44], bl
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
sete al
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
dec eax
and eax, 0x100
add eax, 0x20019
cmp dword [ebp + 0x20], 8
jae 0x1001cf01
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], ebx
jne 0x1001cfd7
call fcn.1001a60e
test eax, eax
je 0x1001cfb7
push edi
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 0x10], str.Root:
call fcn.10002160
push 0x17
push str.ReadFromRegistry
mov byte [ebp - 4], 2
call fcn.1001a60e
push eax
mov ecx, 0x1004a448
lea ebx, [ebp - 0x48]
call fcn.1001ac41
push 3
pop edi
mov esi, eax
mov byte [ebp - 4], 3
call fcn.1001aa80
push dword [ebp - 0x1c]
mov ecx, eax
call fcn.1001a914
mov ecx, eax
mov eax, str.Cant_open_key:
call fcn.1001ab2c
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1001abe7
mov ecx, eax
mov eax, dword [ebp - 0x10]
call fcn.1001ab2c
mov ecx, eax
mov byte [eax + 0x28], 0
mov dword [eax + 0x24], 1
call fcn.1001a914
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor ebx, ebx
xor edi, edi
push ebx
push 1
lea esi, [ebp + 8]
call fcn.10002d0f
push ebx
push 1
lea esi, [ebp + 0x24]
call fcn.10002d0f
mov eax, edi
call fcn.1002b1eb
ret
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
mov dword [esi], ebx
jae 0x1001cfe5
lea eax, [ebp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push ebx
push dword [ebp - 0x18]
push ebx
push eax
push dword [ebp - 0x14]
call edi
cmp eax, ebx
jne 0x1001d0d2
mov eax, dword [esi]
cmp eax, ebx
je 0x1001d092
add eax, 2
push eax
call fcn.10025992
mov ecx, dword [esi]
inc ecx
inc ecx
push ecx
push ebx
push eax
mov dword [ebp - 0x10], eax
call fcn.10027f40
mov eax, dword [ebp + 0x28]
add esp, 0x10
cmp dword [ebp + 0x3c], 8
jae 0x1001d030
lea eax, [ebp + 0x28]
push esi
push dword [ebp - 0x10]
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1001d0d2
call fcn.1001a60e
test eax, eax
je 0x1001d084
push 0x22
push str.ReadFromRegistry
call fcn.1001a60e
push eax
mov ecx, 0x10049808
lea ebx, [ebp - 0x48]
call fcn.1001ac41
mov ecx, eax
mov eax, str.No_data.
mov byte [ebp - 4], 5
call fcn.1001ab2c
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor ebx, ebx
push dword [ebp - 0x10]
call fcn.10027fba
pop ecx
mov dword [ebp - 0x10], ebx
jmp 0x1001d0d2
call fcn.1001a60e
test eax, eax
je 0x1001d0d2
push 0x28
push str.ReadFromRegistry
call fcn.1001a60e
push eax
mov ecx, 0x10049808
lea ebx, [ebp - 0x48]
call fcn.1001ac41
mov ecx, eax
mov eax, str.Size__0.
mov byte [ebp - 4], 6
call fcn.1001ab2c
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor ebx, ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x10]
jmp 0x1001cfb9
Function at 0x1001d6f9
Capabilities:
Delete registry value

Disassembly:
push 0x38
mov eax, 0x10042f7f
call fcn.1002b113
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x10], edi
jae 0x1001d71d
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], edi
jne 0x1001d7b8
call fcn.1001a60e
test eax, eax
je 0x1001d835
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.10002160
push 0x96
push str.JustUtil::RemoveValue
mov byte [ebp - 4], 2
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x44]
call fcn.1001ac41
push 3
pop edi
mov esi, eax
mov byte [ebp - 4], 3
call fcn.1001aa80
mov ecx, eax
push dword [ebp - 0x14]
mov eax, str.Cant_open_key:
call fcn.1001ab2c
mov ecx, eax
call fcn.1001a914
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1001abe7
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor edi, edi
jmp 0x1001d835
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x1001d7c4
lea eax, [ebp + 0x28]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x1001d82c
call fcn.1001a60e
test eax, eax
je 0x1001d82c
push 0x9a
push str.JustUtil::RemoveValue
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x44]
call fcn.1001ac41
push 3
pop edi
mov esi, eax
mov byte [ebp - 4], 5
call fcn.1001aa80
push dword [ebp - 0x14]
mov ecx, eax
mov eax, str.Cant_delete_value.
call fcn.1001ab2c
mov ecx, eax
call fcn.1001a914
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 1
lea esi, [ebp + 8]
call fcn.10002d0f
push edi
push 1
lea esi, [ebp + 0x24]
call fcn.10002d0f
call fcn.1002b1eb
ret
Function at 0x1001d8a3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x10042f3c
call fcn.1002b113
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x10], edi
jae 0x1001d8c6
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], edi
jne 0x1001d968
call fcn.1001a60e
test eax, eax
je 0x1001d994
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.10002160
push 0xaa
push str.JustUtil::IsValueNotExist
mov byte [ebp - 4], 2
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x48]
call fcn.1001ac41
push 3
pop edi
mov esi, eax
mov byte [ebp - 4], 3
call fcn.1001aa80
mov ecx, eax
push dword [ebp - 0x14]
mov eax, str.Cant_open_key:
call fcn.1001ab2c
mov ecx, eax
call fcn.1001a914
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1001abe7
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor ebx, ebx
inc ebx
xor edi, edi
jmp 0x1001d994
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], edi
jae 0x1001d977
lea eax, [ebp + 0x28]
lea ecx, [ebp - 0x18]
push ecx
push edi
push edi
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
lea esi, [ebp + 8]
call fcn.10002d0f
push edi
push ebx
lea esi, [ebp + 0x24]
call fcn.10002d0f
cmp dword [ebp - 0x14], 2
sete al
call fcn.1002b1eb
ret
Function at 0x1001de62
Capabilities:
Set registry value

Disassembly:
push 0x38
mov eax, 0x10042f01
call fcn.1002b113
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x10], ebx
jae 0x1001de86
lea eax, [ebp + 0xc]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], ebx
jne 0x1001df85
call fcn.1001a60e
mov edi, 0x10049924
test eax, eax
je 0x1001df34
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.10002160
push 0xff
push str.JustUtil::WriteIntToRegistry
mov byte [ebp - 4], 2
call fcn.1001a60e
push eax
mov ecx, edi
lea ebx, [ebp - 0x44]
call fcn.1001ac41
mov ecx, eax
mov eax, str.Cant_create_key:
mov byte [ebp - 4], 3
call fcn.1001ab2c
mov byte [eax + 0x28], 0
mov dword [eax + 0x24], 1
push SysReAllocString
mov ecx, eax
call fcn.1001a914
mov ecx, eax
mov eax, 0x1004bbb0
call fcn.1001ab2c
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1001abe7
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor ebx, ebx
call fcn.1001a60e
test eax, eax
je 0x1001e00b
push 0x100
push str.JustUtil::WriteIntToRegistry
call fcn.1001a60e
push eax
mov ecx, edi
lea ebx, [ebp - 0x44]
call fcn.1001ac41
push 3
pop edi
mov esi, eax
mov byte [ebp - 4], 5
call fcn.1001aa80
push dword [ebp - 0x14]
mov ecx, eax
call fcn.1001a914
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor ebx, ebx
jmp 0x1001e00b
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x1001df91
lea eax, [ebp + 0x28]
push 4
lea ecx, [ebp + 0x40]
push ecx
push 4
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1001e002
call fcn.1001a60e
test eax, eax
je 0x1001e002
push 0x106
push str.JustUtil::WriteIntToRegistry
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x44]
call fcn.1001ac41
push 3
pop edi
mov esi, eax
mov byte [ebp - 4], 6
call fcn.1001aa80
push dword [ebp - 0x14]
mov ecx, eax
mov eax, str.RegSetValueExW.
call fcn.1001ab2c
mov ecx, eax
call fcn.1001a914
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor ebx, ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea esi, [ebp + 8]
call fcn.10002d0f
push ebx
push 1
lea esi, [ebp + 0x24]
call fcn.10002d0f
call fcn.1002b1eb
ret
Function at 0x1001f63e
Capabilities:
Check os version

Disassembly:
push 0x148
mov eax, 0x10042ea9
call fcn.1002b17c
mov esi, 0x114
push esi
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.10027f40
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1001f6c6
call fcn.1001a60e
test eax, eax
je 0x1001f6c6
push 0x17
push str.JustUtil::IsVista
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x154]
call fcn.1001ac41
and dword [ebp - 4], 0
xor edi, edi
inc edi
mov esi, eax
call fcn.1001aa80
mov ecx, eax
mov eax, str.Cant_get_version_info.
call fcn.1001ab2c
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.1001a66c
cmp dword [ebp - 0x124], 6
sbb eax, eax
inc eax
call fcn.1002b1ff
ret

Function at 0x1001fb80
Capabilities:
Get session user name

Disassembly:
push 0x844
mov eax, 0x10042dac
call fcn.1002b17c
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x818], ebx
push 0x7fe
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push ebx
push eax
mov dword [ebp - 0x820], edi
call fcn.10027f40
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 0x81c], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.UICreated_
mov esi, edi
call fcn.10002136
lea eax, [ebp - 0x814]
mov dword [ebp - 4], ebx
push eax
inc ebx
push edi
mov dword [ebp - 0x818], ebx
call fcn.1000892e
call fcn.1001a60e
test eax, eax
je 0x1001fc53
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x824], esp
push edi
call fcn.10002160
push 0x16
push str.ProtectValueName
mov dword [ebp - 4], ebx
call fcn.1001a60e
push eax
mov ecx, 0x10049808
lea ebx, [ebp - 0x850]
call fcn.1001ac41
mov byte [ebp - 4], 2
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1001abe7
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.1001a66c
mov eax, edi
call fcn.1002b1ff
ret

Function at 0x10020590
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x100572c0]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0x24
mov eax, 0x100421d3
call fcn.1002b113
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call fcn.100204eb
mov dword [ebp - 0x10], edi
cmp dword [ebx + 0x14], esi
jne 0x100205fa
push esi
push 0x1c
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, esi
jge 0x100205f0
push str.APPDATA
call fcn.10029e36
pop ecx
jmp 0x100205f3
lea eax, [ebp]
push eax
push ebx
call fcn.1000ecc8
lea eax, [ebp - 0x30]
push eax
mov eax, ebx
call fcn.10024cee
pop ecx
push esi
push edi
lea esi, [ebp - 0x30]
call fcn.10002d0f
xor esi, esi
cmp dword [ebx + 0x14], esi
je 0x10020627
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x228]
mov ecx, ebx
call fcn.10004de3
push esi
push edi
lea esi, [ebp + 0x228]
call fcn.10002d0f
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 + 0x21c]
xor ecx, ebp
call fcn.10026081
add ebp, 0x220
leave
ret
Function at 0x1002077a
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x100572c0]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x50
mov eax, 0x1004382d
call fcn.1002b113
and dword [ebp - 4], 0
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x10], esp
push 0x1004ac48
lea ecx, [ebp + 0x218]
push ecx
push eax
lea esi, [ebp]
call fcn.100088e8
add esp, 0xc
mov ecx, esi
call fcn.100206de
add esp, 0x1c
test al, al
jne 0x10020806
xor bl, bl
push 0
push 1
lea esi, [ebp + 0x218]
call fcn.10002d0f
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.10026081
add ebp, 0x210
leave
ret
call fcn.1001a60e
test eax, eax
je 0x1002086a
sub esp, 0x1c
lea eax, [ebp + 0x218]
mov esi, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.10002160
push 0x132
push str.JustUtil::ClearDirectoryContent
mov byte [ebp - 4], 1
call fcn.1001a60e
push eax
mov ecx, 0x10049808
lea ebx, [ebp - 0x5c]
call fcn.1001ac41
mov ecx, eax
mov byte [ebp - 4], 2
mov eax, str.Try_to_clear_in:
call fcn.1001ab2c
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1001abe7
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.1001a66c
and dword [ebp - 0x30], 0
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp]
mov dword [ebp - 0x28], eax
mov eax, 0x414
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x10], eax
call fcn.1001a60e
test eax, eax
je 0x100208e6
push 0x139
push str.JustUtil::ClearDirectoryContent
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x5c]
call fcn.1001ac41
push 3
pop edi
mov esi, eax
mov byte [ebp - 4], 4
call fcn.1001aa80
push dword [ebp - 0x10]
mov ecx, eax
call fcn.1001a914
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.1001a66c
cmp dword [ebp - 0x1e], 0
je 0x1002092d
call fcn.1001a60e
test eax, eax
je 0x1002092d
push 0x13b
push str.JustUtil::ClearDirectoryContent
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x5c]
call fcn.1001ac41
mov ecx, eax
mov eax, str.Error_in_SHFileOperation._OperationsAborted.
mov byte [ebp - 4], 5
call fcn.1001ab2c
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.1001a66c
mov bl, 1
jmp 0x100207d2
Function at 0x10020baa
Capabilities:
Copy file
Delete file

Disassembly:
push 0x7c
mov eax, 0x10042788
call fcn.1002b17c
mov edi, ecx
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x10020c08
call fcn.1001a60e
test eax, eax
je 0x10020c00
push 0x158
push str.JustUtil::BackupFile
call fcn.1001a60e
push eax
mov ecx, 0x10049808
lea ebx, [ebp - 0x5c]
call fcn.1001ac41
mov ecx, eax
and dword [ebp - 4], 0
mov eax, str.File_name_is_empty.
call fcn.1001ab2c
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.1001a66c
xor al, al
call fcn.1002b1ff
ret
push str..bak
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.100088e8
add esp, 0xc
mov dword [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x10020c2d
lea ecx, [ebp - 0x28]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x10020c3a
mov eax, dword [esi]
jmp 0x10020c3c
mov eax, esi
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10020cc3
call fcn.1001a60e
test eax, eax
je 0x10020cb2
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.10002160
push 0x15d
push str.JustUtil::BackupFile
mov byte [ebp - 4], 2
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x5c]
call fcn.1001ac41
xor edi, edi
inc edi
mov esi, eax
mov byte [ebp - 4], 3
call fcn.1001aa80
mov ecx, eax
mov eax, str.CopyFile_error._Path:
call fcn.1001ab2c
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1001abe7
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.10002d0f
jmp 0x10020c00
cmp dword [edi + 0x18], 8
jb 0x10020ccb
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10020d5a
call fcn.1001a60e
test eax, eax
je 0x10020d45
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.10002160
push 0x161
push str.JustUtil::BackupFile
mov byte [ebp - 4], 5
call fcn.1001a60e
push eax
mov ecx, 0x10049924
lea ebx, [ebp - 0x88]
call fcn.1001ac41
xor edi, edi
inc edi
mov esi, eax
mov byte [ebp - 4], 6
call fcn.1001aa80
mov ecx, eax
mov eax, str.DeleteFile_error._Path:
call fcn.1001ab2c
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.1001abe7
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1001a66c
xor bl, bl
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.10002d0f
mov al, bl
jmp 0x10020c02
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
mov ecx, edi
call fcn.10002c83
mov bl, 1
jmp 0x10020d47
Function at 0x10020d6c
Capabilities:
Get file size

Disassembly:
push 0x38
mov eax, 0x1004273a
call fcn.1002b113
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x20], 8
mov ecx, dword [ebp + 0xc]
jae 0x10020d89
lea ecx, [ebp + 0xc]
push esi
mov eax, 0x80
push eax
push 3
push esi
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10020e2e
call fcn.1001a60e
test eax, eax
je 0x10020e15
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.10002160
push 0x16b
push str.JustUtil::GetFileSize
mov byte [ebp - 4], 1
call fcn.1001a60e
push eax
mov ecx, 0x1004a448
lea ebx, [ebp - 0x44]
call fcn.1001ac41
xor edi, edi
inc edi
mov esi, eax
mov byte [ebp - 4], 2
call fcn.1001aa80
mov ecx, eax
mov eax, 0x1004a10c
call fcn.1001ab2c
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1001abe7
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.1001a66c
xor esi, esi
xor edi, edi
xor ebx, ebx
push esi
push 1
lea esi, [ebp + 8]
call fcn.10002d0f
mov eax, edi
mov edx, ebx
call fcn.1002b1eb
ret
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10020e43
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push 1
cdq
push esi
push edx
push eax
call fcn.1002da50
mov ecx, dword [ebp - 0x18]
xor edi, edi
add eax, ecx
adc edx, edi
mov edi, eax
mov ebx, edx
jmp 0x10020e19
Function at 0x100212e8
Capabilities:
Enumerate files on windows

Disassembly:
push 0x2b8
mov eax, 0x10042187
call fcn.1002b17c
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x2a0], eax
lea eax, [ebp + 0x2c]
push eax
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x2a8], esp
push eax
mov dword [ebp - 4], 1
call fcn.10002160
lea ebx, [ebp - 0x2c4]
call fcn.100211c9
add esp, 0x1c
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.1000a50f
add esp, 0xc
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x2c4]
mov byte [ebp - 4], 4
call fcn.10002d0f
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x10021367
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100213af
mov byte [ebp - 0x299], bl
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.10002d0f
push ebx
push 1
lea esi, [ebp + 8]
call fcn.10002d0f
push ebx
push 1
lea esi, [ebp + 0x2c]
call fcn.10002d0f
mov al, byte [ebp - 0x299]
call fcn.1002b1ff
ret
lea eax, [ebp - 0x26c]
push eax
lea esi, [ebp - 0x2c]
call fcn.10002136
mov byte [ebp - 4], 5
test byte [ebp - 0x298], 0x10
jne 0x100213d6
mov eax, esi
push eax
mov eax, dword [ebp - 0x2a4]
jmp 0x10021400
push 0x1004c2f8
lea esi, [ebp - 0x2c]
call fcn.10019da4
pop ecx
test al, al
jne 0x10021405
push 0x1004c530
call fcn.10019da4
pop ecx
test al, al
jne 0x10021405
mov eax, esi
push eax
mov eax, dword [ebp - 0x2a0]
call fcn.1001e16b
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.10002d0f
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100213af
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x299], 1
jmp 0x10021382