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

Disassembly:
push 0x28
push 0x48b100
call fcn.0042dce0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 1
xor edi, edi
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x41248e
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 8]
mov eax, ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4124b0
mov ecx, dword [ebp - 0x24]
mov dword [edx], ecx
cmp dword [ebp - 0x24], 1
je 0x4124c0
cmp dword [ebp - 0x24], 7
jne 0x412616
test ebx, ebx
je 0x412616
mov ecx, dword [ebx]
test ecx, ecx
je 0x412616
test eax, eax
je 0x4124e1
cmp eax, 0xea
jne 0x412616
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov dword [ebx], eax
cmp dword [ebp + 0x10], edi
je 0x4124fb
push eax
push edi
push dword [ebp + 0x10]
call fcn.0042f1f0
add esp, 0xc
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x20]
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
test ecx, eax
je 0x412566
cmp edx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x412541
cmp edx, ecx
sbb eax, eax
and eax, ecx
call fcn.0042dd40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x30], esi
test esi, esi
je 0x412568
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x30], esi
jmp 0x412568
cmp dword [ebp - 0x20], ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.00432c26
pop ecx
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x412568
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x34], esi
jmp 0x412568
mov esi, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x41259e
test esi, esi
jne 0x4125a7
push 0xe
pop eax
jmp 0x412616
push dword [ebp - 0x20]
push edi
push esi
call fcn.0042f1f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 8]
mov eax, dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x4125ff
cmp dword [ebp - 0x24], 1
jne 0x4125ea
push ebx
push dword [ebp + 0x10]
push esi
mov ecx, dword [ebp - 0x28]
call fcn.00412257
mov edi, eax
jmp 0x412602
cmp dword [ebp - 0x24], 7
jne 0x412602
push ebx
push dword [ebp + 0x10]
push esi
mov ecx, dword [ebp - 0x28]
call fcn.00412153
jmp 0x4125e6
mov edi, dword [ebp - 0x38]
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x412614
push esi
call fcn.00432c0b
pop ecx
mov eax, edi
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x414307
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4143da
xor eax, eax
cmp ax, word [esi]
je 0x4143da
push esi
call fcn.00435dfe
pop ecx
cmp eax, 3
jbe 0x4143da
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0042f1f0
push 0x471a14
push esi
push 0x471a00
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404c00
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.004143e9
add esp, 0x28
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4143d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4143b4
cmp eax, 0x91
jne 0x4143d5
push 1
push 0
push esi
call fcn.00414599
add esp, 0xc
neg eax
sbb eax, eax
inc eax
test edi, edi
je 0x4143d3
test eax, eax
je 0x4143d3
xor edi, edi
inc edi
jmp 0x4143d5
xor edi, edi
mov eax, edi
pop edi
jmp 0x4143dc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042db8f
leave
ret
Function at 0x4143e9
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x45c]
push edi
push 0x250
push 0
push eax
call fcn.0042f1f0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0042f1f0
add esp, 0x18
test esi, esi
je 0x414588
xor eax, eax
cmp ax, word [esi]
je 0x414588
push esi
call fcn.00435dfe
pop ecx
cmp eax, 3
jbe 0x414588
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00404b00
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00430ebe
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x414588
lea eax, [ebp - 0x45c]
add ebx, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414588
lea eax, [ebp - 0x20c]
mov ecx, ebx
sub ecx, eax
xor esi, esi
sar ecx, 1
mov eax, 0x104
inc esi
sub eax, ecx
mov dword [ebp - 0x460], eax
lea ecx, [ebp - 0x430]
push ecx
push eax
push ebx
call fcn.00404b00
test byte [ebp - 0x45c], 0x10
je 0x4144f2
push 0x2e
pop eax
cmp ax, word [ebp - 0x430]
je 0x41455d
cmp dword [ebp + 0xc], 0
je 0x41455d
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.00414307
pop ecx
pop ecx
jmp 0x41454e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41455d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xf
je 0x41455d
cmp eax, 2
je 0x41455d
cmp eax, 3
je 0x41455d
push 1
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00414599
add esp, 0xc
neg eax
sbb eax, eax
inc eax
test esi, esi
je 0x41455b
test eax, eax
je 0x41455b
xor esi, esi
inc esi
jmp 0x41455d
xor esi, esi
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x460]
jne 0x4144b2
test edi, edi
je 0x414584
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x41458a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret
Function at 0x41482f
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x940
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x938], eax
mov esi, 0x104
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov dword [ebp - 0x93c], eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0042f1f0
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4149cd
push str.WinInit.Ini
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00414be7
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4149c4
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x934], eax
test eax, eax
je 0x414955
lea ecx, [eax + 1]
mov dword [ebp - 0x92c], ebx
push ecx
lea ecx, [ebp - 0x92c]
call fcn.00413c10
mov edi, dword [ebp - 0x92c]
test al, al
je 0x414a61
push ebx
lea eax, [ebp - 0x930]
mov dword [ebp - 0x930], ebx
push eax
push dword [ebp - 0x934]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414a61
mov eax, dword [ebp - 0x930]
push str._Rename_
push edi
mov byte [eax + edi], bl
call fcn.00430f70
pop ecx
pop ecx
test eax, eax
jne 0x4149db
push str._rename_
push edi
call fcn.00430f70
pop ecx
pop ecx
test eax, eax
jne 0x4149db
push edi
call fcn.00432c0b
pop ecx
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, 0x410
lea eax, [ebp - 0x928]
push edi
push ebx
push eax
call fcn.0042f1f0
push dword [ebp - 0x938]
lea eax, [ebp - 0x928]
push dword [ebp - 0x93c]
push str._r_n_rename__r_n_s_s_r_n
push edi
push eax
call fcn.00414c62
lea eax, [ebp - 0x928]
mov dword [ebp - 0x940], ebx
push eax
call fcn.00436130
add esp, 0x24
lea ecx, [ebp - 0x940]
push ebx
push ecx
push eax
lea eax, [ebp - 0x928]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
pop edi
test esi, esi
je 0x4149cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x410
lea eax, [ebp - 0x518]
push ebx
push eax
call fcn.0042f1f0
mov ecx, dword [ebp - 0x934]
mov edx, str._s_s_r_n
push dword [ebp - 0x938]
mov eax, str._r_n_s_s_r_n
push dword [ebp - 0x93c]
cmp byte [edi + ecx - 1], 0xa
cmove eax, edx
push eax
lea eax, [ebp - 0x518]
push 0x410
push eax
call fcn.00414c62
lea eax, [ebp - 0x518]
mov dword [ebp - 0x92c], ebx
push eax
call fcn.00436130
add esp, 0x24
lea ecx, [ebp - 0x92c]
push ebx
push ecx
push eax
lea eax, [ebp - 0x518]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414a61
xor ebx, ebx
inc ebx
push edi
call fcn.00432c0b
pop ecx
jmp 0x4149bf
Function at 0x414fad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 4
mov eax, 0x46b330
call fcn.0042dbd7
lea ecx, [ebp - 0x10]
xor bl, bl
call fcn.0040699e
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
test edi, edi
jne 0x414fe7
push 4
push str.IN_Operations::_CheckIfExists_:_szPath_is_NULL__return_false
mov ecx, 0x493f4c
call fcn.0040c5b8
mov esi, dword [ebp - 0x10]
jmp 0x41506d
push edi
lea eax, [ebp - 0x10]
push str.IN_Operations::_CheckIfExists_:_Entering__CheckIfExists___parameter:__s
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
cmp dword [esi - 4], ebx
jle 0x415012
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 4
push esi
mov ecx, 0x493f4c
call fcn.0040c5b8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41506d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x41506d
push edi
lea eax, [ebp - 0x10]
push str.IN_Operations::_CheckIfExists_:__s_not_found
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], ebx
jle 0x41505e
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 4
push esi
mov ecx, 0x493f4c
call fcn.0040c5b8
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.00406c57
mov al, bl
call fcn.0042dba0
ret

Function at 0x41520e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x492110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41531d
xor ebx, ebx
cmp word [esi], bx
je 0x41531d
push esi
call fcn.0041633a
pop ecx
test eax, eax
je 0x41524e
mov eax, 0xb7
jmp 0x415320
push edi
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
push ebx
push eax
call fcn.0042f1f0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f1f0
push 0x5c
push esi
call fcn.004311d3
add esp, 0x14
pop edi
test eax, eax
je 0x4152e4
cmp eax, esi
jne 0x4152c9
mov ax, word [ebp - 0x414]
mov word [ebp - 0x20c], ax
mov ax, word [ebp - 0x412]
push esi
mov word [ebp - 0x20a], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404b90
jmp 0x415305
cmp word [esi + 2], 0x3a
jne 0x4152e4
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00404b00
jmp 0x415305
push esi
lea eax, [ebp - 0x414]
push eax
push 0x471a00
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404c00
add esp, 0x14
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0041532e
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, 0x52
jmp 0x415320
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042db8f
leave
ret
Function at 0x4153f2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41542e
push esi
call fcn.00435dfe
pop ecx
cmp eax, 3
jbe 0x41542e
push esi
call fcn.00413d3c
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41542a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415431
xor eax, eax
jmp 0x415431
push 0x57
pop eax
pop esi
pop ebp
ret

Function at 0x41545c
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x46b45d
call fcn.0042dbd7
lea ecx, [ebp - 0x10]
call fcn.0040699e
xor ebx, ebx
lea eax, [ebp - 0x14]
cmp dword [ebp + 0x10], ebx
mov ecx, 0xf003f
push eax
mov eax, 0xf013f
mov dword [ebp - 4], ebx
cmove eax, ecx
mov dword [ebp - 0x14], ebx
push eax
push 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415551
push str.SymbolicLinkValue
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4154f7
push dword [ebp - 0x14]
call fcn.00421be7
pop ecx
test eax, eax
jne 0x4154ef
lea eax, [ebp - 0x10]
push str.IN_Operations::_DeleteRegLink_:_Successfully_removed_link_key
push eax
call fcn.00406b1a
pop ecx
pop ecx
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
cmp dword [esi - 4], ebx
jle 0x4154eb
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 4
jmp 0x41553b
push eax
push str.ZwDeleteKey_failed._Error:__d
jmp 0x415516
cmp eax, 2
jne 0x415510
push eax
lea eax, [ebp - 0x10]
push str.RegDeleteValueW___failed._Error:__d
push eax
call fcn.00406b1a
add esp, 0xc
jmp 0x4154d2
push eax
push str.RegDeleteValueW___failed._Error:__d
lea eax, [ebp - 0x10]
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x415539
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 7
push esi
mov ecx, 0x493f4c
call fcn.0040c5b8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4155b9
cmp eax, 2
jne 0x415583
lea eax, [ebp - 0x10]
push str.IN_Operations::_DeleteRegLink_:_Link_key_not_found
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
pop ecx
pop ecx
cmp dword [esi - 4], ebx
jle 0x41557f
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 4
jmp 0x4155ae
push eax
lea eax, [ebp - 0x10]
push str.RegOpenKeyEx___failed._Error:__d
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4155ac
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 7
push esi
mov ecx, 0x493f4c
call fcn.0040c5b8
lea ecx, [esi - 0x10]
call fcn.00406c57
mov al, bl
call fcn.0042dba0
ret
Function at 0x4155c9
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x46b45d
call fcn.0042dbd7
lea ecx, [ebp - 0x10]
xor ebx, ebx
call fcn.0040699e
push 4
mov edi, 0x493f4c
mov dword [ebp - 4], ebx
push str.IN_Operations::_DeleteRegValue_:_Entering__DeleteRegValue__
mov ecx, edi
call fcn.0040c5b8
cmp dword [ebp + 0x14], ebx
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 0xc]
mov ecx, 0xf003f
push eax
mov eax, 0xf013f
cmove eax, ecx
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4156e8
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x41563a
mov esi, dword [ebp - 0x10]
mov bl, 1
jmp 0x4156da
cmp eax, 2
jne 0x415671
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov bl, 1
push esi
push str.IN_Operations::_DeleteRegValue_:_regvalue_doesnt_exist._key:__s__value:__s
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x41566d
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 1
jmp 0x4156d2
push eax
lea eax, [ebp - 0x10]
push str.RegDeleteValue___failed._Error:__d
push eax
call fcn.00406b1a
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x41569a
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov eax, dword [ebp - 0x10]
push 7
push eax
mov ecx, edi
call fcn.0040c5b8
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push str.IN_Operations::_DeleteRegValue_:_Failed_to_delete_value__s_from_registry_key__s
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x4156d0
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 4
push esi
mov ecx, edi
call fcn.0040c5b8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415782
cmp eax, 2
jne 0x41571c
push esi
lea eax, [ebp - 0x10]
mov bl, 1
push str.IN_Operations::_DeleteRegValue_:_regkey_doesnt_exist._key:__s
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x415718
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 1
jmp 0x41577a
push eax
lea eax, [ebp - 0x10]
push str.RegOpenKeyEx___failed._Error:__d
push eax
call fcn.00406b1a
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x415745
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov eax, dword [ebp - 0x10]
push 7
push eax
mov ecx, edi
call fcn.0040c5b8
push esi
lea eax, [ebp - 0x10]
push str.IN_Operations::_DeleteRegValue_:_Failed_to_open_regkey__s
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x415778
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 4
push esi
mov ecx, edi
call fcn.0040c5b8
lea ecx, [esi - 0x10]
call fcn.00406c57
mov al, bl
call fcn.0042dba0
ret
Function at 0x41633a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x41635a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41635a
test al, 0x10
je 0x41635a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x418752
Capabilities:
Delete directory
Move file

Disassembly:
push 0x18
mov eax, 0x46b8ea
call fcn.0042dbd7
mov bl, 1
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x14]
mov bh, bl
call fcn.0040699e
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 0x104
mov byte [ebp - 4], bl
call fcn.00432c26
mov esi, eax
pop ecx
mov ecx, 0x493f4c
test esi, esi
jne 0x4187a8
push 6
push str.Operations::_RemoveEmptyDirectory__szFullPath
call fcn.0040c5b8
xor bl, bl
jmp 0x418860
push 4
push str.IN_Operations::_RemoveEmptyDirectory_:_Entering__RemoveEmptyDirectory__
call fcn.0040c5b8
push 1
push esi
push dword [ebp + 8]
call fcn.0041618b
add esp, 0xc
test al, al
jne 0x4187cd
xor bh, bh
jmp 0x418860
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.00413ed0
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
pop ecx
pop ecx
cmp edi, eax
je 0x418860
mov ecx, edi
call fcn.0040d3bb
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x418858
push 4
push eax
mov ecx, edi
xor bh, bh
call fcn.0040d3bb
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x41881c
mov byte [ebp - 0xd], 1
mov byte [0x493f5c], 1
jmp 0x418858
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x14]
push str.IN_Operations::_RemoveEmptyDirectory_:_Failed_to_remove_directory__s_on_reboot__error:__d
push eax
call fcn.00406b1a
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x418849
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406aae
push 4
push dword [ebp - 0x14]
mov ecx, 0x493f4c
call fcn.0040c5b8
add edi, 4
cmp edi, dword [ebp - 0x18]
jne 0x4187e6
call fcn.00413e75
test al, al
je 0x41886d
xor bl, bl
jmp 0x4188be
test bl, bl
je 0x4188be
test bh, bh
je 0x41887c
mov eax, str.Empty_directory__s_no_longer_exists__either_removed_or_did_not_exist_
jmp 0x41888d
cmp byte [ebp - 0xd], 0
mov eax, str.Attempt_to_remove_directory__s__if_empty__on_next_reboot
mov ecx, str.Did_not_remove__s__directory_doesnt_exist_or_contains_files_
cmove eax, ecx
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406b1a
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x4188af
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406aae
push 2
push dword [ebp - 0x14]
mov ecx, 0x493f4c
call fcn.0040c5b8
test esi, esi
je 0x4188c9
push esi
call fcn.00432c0b
pop ecx
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x418907
mov edi, dword [ebp - 0x20]
cmp esi, edi
je 0x4188eb
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00406c57
add esi, 4
cmp esi, edi
jne 0x4188d7
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.00401d6d
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00406c57
mov al, bl
call fcn.0042dba0
ret
Function at 0x419aef
Capabilities:
Delete file
Set file attributes

Disassembly:
push 4
mov eax, 0x46b330
call fcn.0042dbd7
lea ecx, [ebp - 0x10]
call fcn.0040699e
push 4
mov edi, 0x493f4c
xor ebx, ebx
push str.IN_Operations::_RemoveSingleFile_:_Entering__RemoveSingleFile__
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0040c5b8
mov esi, dword [ebp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x419b81
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x419b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.DeleteFile___failed._Error:__d
push eax
call fcn.00406b1a
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x419b68
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov eax, dword [ebp - 0x10]
push 4
push eax
mov ecx, edi
call fcn.0040c5b8
push esi
push str.IN_Operations::_RemoveSingleFile_:_Failed_to_remove_file__s
jmp 0x419bc0
mov esi, dword [ebp - 0x10]
mov bl, 1
jmp 0x419bed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.SetFileAttributes___failed._Error:__d
push eax
call fcn.00406b1a
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x419bb0
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov eax, dword [ebp - 0x10]
push 7
push eax
mov ecx, edi
call fcn.0040c5b8
push esi
push str.IN_Operations::_RemoveSingleFile_:_Failed_to_set_file_attribute_of__s_to_normal
lea eax, [ebp - 0x10]
push eax
call fcn.00406b1a
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x419be3
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406aae
mov esi, dword [ebp - 0x10]
push 4
push esi
mov ecx, edi
call fcn.0040c5b8
lea ecx, [esi - 0x10]
call fcn.00406c57
mov al, bl
call fcn.0042dba0
ret