joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003b75
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x10040e7c
call fcn.1001a87f
mov ecx, dword [0x10055a50]
test ecx, ecx
je 0x10003bf1
and dword [ebp - 0x10], 0
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
push 0x100435d4
call dword [eax + 0x30]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10003be3
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, 0xd
mov eax, dword [ebp - 0x10]
jb 0x10003be3
mov ecx, dword [eax]
push 1
push 0x100435c4
push 0x100435ac
push eax
call dword [ecx + 0xe4]
or dword [ebp - 4], 0xffffffff
mov dword [0x1005474c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10003c14
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10003c14
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x10003bf1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 8]
push 1
push 0x100435c4
push 0x100435ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x1005474c], eax
test eax, eax
jne 0x10003c14
call fcn.1000382f
call fcn.1001a957
ret

Function at 0x10004419
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x5e8]
sub esp, 0x668
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x5e4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x5f0]
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x1d4], ax
xor ebx, ebx
lea eax, [ebp + 0x1d6]
push ebx
push eax
call fcn.1001a410
xor eax, eax
push esi
mov word [ebp + 0x3dc], ax
lea eax, [ebp + 0x3de]
push ebx
push eax
call fcn.1001a410
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0x18
push 0x10043858
push edi
lea eax, [ebp + 0x1d4]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
jne 0x100044a8
xor eax, eax
inc eax
jmp 0x10004525
cmp word [ebp - 0x50], 0x2e
jne 0x100044c2
cmp word [ebp - 0x4e], bx
je 0x10004504
cmp word [ebp - 0x4e], 0x2e
jne 0x100044c2
cmp word [ebp - 0x4c], bx
je 0x10004504
push 0x104
lea eax, [ebp + 0x3dc]
push ebx
push eax
call fcn.1001a410
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push edi
lea eax, [ebp + 0x3dc]
push eax
call esi
test byte [ebp - 0x7c], 0x10
lea eax, [ebp + 0x3dc]
push eax
je 0x100044fe
call fcn.10004419
pop ecx
test eax, eax
je 0x10004515
jmp 0x10004504
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100044a8
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x5e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a870
add ebp, 0x5e8
leave
ret
Function at 0x100046f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.1001a410
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100047d4
cmp dword [ebp - 0x11c], 5
jne 0x100047d4
cmp dword [ebp - 0x118], 0
jne 0x100047d4
push 1
push 0x100438b0
call fcn.10004671
pop ecx
pop ecx
push 8
push 0
push 0x600
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x128], eax
test eax, eax
je 0x100047d4
push 0x1004389c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x10043884
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x12c], eax
test eax, eax
jne 0x100047a8
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100047d4
xor eax, eax
cmp dword [ebp + 8], eax
sete al
inc eax
mov dword [ebp - 0x124], eax
push 4
lea eax, [ebp - 0x124]
push eax
push 0xc
push dword [ebp - 0x128]
call dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a870
leave
ret

Function at 0x10004996
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10043988
push 0x1004395c
push 0x80000002
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor eax, eax
cmp dword [ebp - 4], eax
setne al
leave
ret
Function at 0x10004c22
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x60], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x48], ebx
cmp ebx, 0xffffffff
je 0x10004dce
lea eax, [ebp - 0x58]
push eax
push ebx
mov dword [ebp - 0x58], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x58], esi
je 0x10004c84
push ebx
jmp 0x10004dc8
cmp eax, esi
je 0x10004c7e
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
mov dword [ebp - 0x50], esi
call edi
test eax, eax
je 0x10004c7e
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x5c], esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call ebx
cmp eax, 0xffffffff
je 0x10004dc5
push esi
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x48]
call edi
test eax, eax
je 0x10004dc5
mov edx, dword [ebp - 0xc0]
cmp edx, esi
je 0x10004dc5
mov eax, dword [ebp - 0xbc]
cmp eax, esi
je 0x10004dc5
lea ecx, [eax + edx]
mov dword [ebp - 0x54], eax
cmp ecx, dword [ebp - 0x4c]
ja 0x10004dc5
cmp ecx, edx
jb 0x10004dc5
push eax
call fcn.1001a311
pop ecx
mov dword [ebp - 0x4c], eax
cmp eax, esi
je 0x10004dc5
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0xc0]
push dword [ebp - 0x48]
call ebx
cmp eax, 0xffffffff
je 0x10004dbc
push esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
call edi
test eax, eax
jne 0x10004d66
push dword [ebp - 0x4c]
call fcn.1001a3f8
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10004dd0
mov ebx, dword [ebp - 0x60]
cmp ebx, esi
je 0x10004d93
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x10004d93
lea edi, [eax + eax]
mov eax, edi
call fcn.1001bd40
mov eax, esp
push esi
push edi
push ebx
push eax
call fcn.10004341
mov esi, eax
push esi
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
call fcn.10004a7b
xor esi, esi
inc esi
add esp, 0xc
cmp eax, esi
je 0x10004d50
push ebx
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
call fcn.10004b64
add esp, 0xc
cmp eax, esi
je 0x10004d50
push dword [ebp - 0x4c]
call fcn.1001a3f8
pop ecx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea esp, [ebp - 0x164]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001a870
leave
ret 8

Function at 0x10004de7
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x10004dff
xor eax, eax
leave
ret
test byte [ebp - 4], 0x20
jne 0x10004dfb
xor eax, eax
test byte [ebp - 4], 7
je 0x10004e0e
inc eax
leave
ret
Function at 0x10004ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x10004e10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10004ec7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x10005138
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100051a1
cmp dword [ebp + 0x10], 1
je 0x10005179
cmp dword [ebp + 0x10], 2
je 0x10005179
push 0xd
pop eax
jmp 0x100051a1
mov eax, dword [ebp - 4]
test edi, edi
je 0x1000519b
test eax, eax
je 0x10005196
test al, 1
jne 0x10005174
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x1000519b
jmp 0x10005174
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x100051a7
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x10005718
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3a4]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push eax
call fcn.1001a410
xor eax, eax
push esi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.1001a410
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x10043bd0
xor esi, esi
push 0x10043b50
inc esi
push 0x80000002
mov dword [ebp - 0x80], 0x208
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100057d7
cmp word [ebp + 0x190], 0
je 0x100057d7
lea eax, [ebp + 0x190]
push eax
push 0x10043b2c
push dword [ebp + 0x3a8]
push edi
call fcn.10005553
add esp, 0x10
push edi
call ebx
test eax, eax
je 0x100057d7
mov eax, esi
jmp 0x100057fb
push 0x10043b08
push 0x1005562c
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x100057f9
lea eax, [ebp - 0x78]
push eax
call ebx
test eax, eax
jne 0x100057d3
xor eax, eax
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a870
add ebp, 0x39c
leave
ret
Function at 0x10005813
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, dword [ebp + 0x1a0]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor edi, edi
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.1001a410
add esp, 0xc
push 0x2001f
push 0x10043be0
push 0x80000002
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.100050f7
lea ecx, [ebp - 0x7c]
test eax, eax
je 0x10005899
call fcn.10005082
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.1001a870
add ebp, 0x198
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.10005138
test eax, eax
je 0x100058b0
lea ecx, [ebp - 0x7c]
jmp 0x1000587b
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100058ca
lea ecx, [ebp - 0x7c]
call fcn.10005082
mov eax, edi
jmp 0x10005882
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
push 0x104
push esi
call fcn.100054b8
xor edi, edi
inc edi
jmp 0x100058be

Function at 0x100058e8
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push esi
mov esi, dword [ebp + 0x1b8]
push edi
xor eax, eax
push 0x208
mov word [ebp - 0x60], ax
xor edi, edi
lea eax, [ebp - 0x5e]
push edi
push eax
call fcn.1001a410
add esp, 0xc
push esi
push 0x104
lea eax, [ebp - 0x60]
push eax
call fcn.100054b8
cmp dword [ebp + 0x1bc], edi
je 0x10005945
push esi
call fcn.10004419
pop ecx
jmp 0x10005987
push 0x1e
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.1001a410
add esp, 0xc
push 0x10
pop eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x6a], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x66], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
mov ecx, dword [ebp + 0x1ac]
pop edi
xor ecx, ebp
pop esi
call fcn.1001a870
add ebp, 0x1b0
leave
ret
Function at 0x1000599e
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
mov esi, dword [ebp + 0x1a0]
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor edi, edi
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.1001a410
add esp, 0xc
push 0x2001f
push 0x10043c60
push 0x80000002
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.100050f7
lea ecx, [ebp - 0x7c]
test eax, eax
je 0x10005a24
call fcn.10005082
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.1001a870
add ebp, 0x198
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.10005138
test eax, eax
je 0x10005a3b
lea ecx, [ebp - 0x7c]
jmp 0x10005a06
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10005a55
lea ecx, [ebp - 0x7c]
call fcn.10005082
mov eax, edi
jmp 0x10005a0d
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x74]
push eax
push 0x104
push esi
call fcn.100054b8
xor edi, edi
inc edi
jmp 0x10005a49

Function at 0x10005abd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
mov esi, dword [ebp + 0x1a0]
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor ebx, ebx
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.1001a410
add esp, 0xc
mov dword [ebp - 0x7c], 0x208
mov dword [ebp - 0x80], 1
cmp esi, ebx
jne 0x10005b18
cmp dword [ebp + 0x1a4], ebx
jne 0x10005b18
xor eax, eax
jmp 0x10005b70
lea eax, [ebp - 0x78]
push eax
push 1
push ebx
push 0x10043be0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10005b14
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x10043ce8
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x74], bx
je 0x10005b14
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x1a4]
push esi
call fcn.100054b8
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x194]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a870
add ebp, 0x198
leave
ret
Function at 0x10006541
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
push 0x110
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001a410
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x74], 6
jne 0x100065f9
cmp dword [ebp - 0x70], 0
jne 0x100065f9
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x9c], ax
lea eax, [ebp + 0x9e]
push eax
call fcn.1001a410
lea eax, [ebp + 0x9c]
push eax
call fcn.1000599e
add esp, 0x10
test eax, eax
je 0x100065f9
push 0x10044150
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x9c]
push eax
call fcn.1001611b
add esp, 0xc
test eax, eax
jne 0x100065f0
xor eax, eax
inc eax
jmp 0x100065fb
cmp dword [ebp - 0x7c], 0x30000
jb 0x100065eb
xor eax, eax
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
call fcn.1001a870
add ebp, 0x2a8
leave
ret

Function at 0x10006610
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1000662e
push dword [esp + 0x14]
push esi
call fcn.100058e8
pop ecx
pop ecx
jmp 0x10006651
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000663f
mov eax, 0x80
and eax, 0xfffffff8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop esi
ret
Function at 0x10006eef
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0xc
mov eax, 0x10040360
call fcn.1001a87f
xor edi, edi
mov esi, 0x104
push dword [edi + 0x100520b8]
lea eax, [ebp]
push 0x10043a88
push esi
push eax
call fcn.1000551f
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x10043a64
lea eax, [ebp]
push eax
push 0x80000002
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10006fd4
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.1000561a
add esp, 0xc
test eax, eax
je 0x10006fd4
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006fd4
mov eax, dword [0x1005218c]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x410]
push eax
call fcn.10006d76
pop ecx
pop ecx
test eax, eax
je 0x10006fc8
push 0x1004425c
push dword [ebp - 0x10]
call fcn.1001bc93
pop ecx
pop ecx
test eax, eax
je 0x10007005
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100053ef
add edi, 4
cmp edi, 8
jb 0x10006f1a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.1001a870
add ebp, 0x61c
leave
ret
lea ecx, [ebp - 0x10]
call fcn.100053ef
xor eax, eax
inc eax
jmp 0x10006fe2

Function at 0x10007012
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x618
lea ebp, [esp - 4]
mov eax, dword [0x10052b28]
xor eax, ebp
mov dword [ebp + 0x618], eax
push 0xc
mov eax, 0x10040360
call fcn.1001a87f
xor edi, edi
mov esi, 0x104
push dword [edi + 0x100520c0]
lea eax, [ebp]
push 0x10043a88
push esi
push eax
call fcn.1000551f
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x10043a64
lea eax, [ebp]
push eax
push 0x80000002
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x100070f7
push esi
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.1000561a
add esp, 0xc
test eax, eax
je 0x100070f7
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100070f7
mov eax, dword [0x1005218c]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x410]
push eax
call fcn.10006d76
pop ecx
pop ecx
test eax, eax
je 0x100070eb
push 0x10044284
push dword [ebp - 0x10]
call fcn.1001bc93
pop ecx
pop ecx
test eax, eax
je 0x10007128
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100053ef
add edi, 4
cmp edi, 4
jb 0x1000703d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.1001a870
add ebp, 0x61c
leave
ret
lea ecx, [ebp - 0x10]
call fcn.100053ef
xor eax, eax
inc eax
jmp 0x10007105
Function at 0x10007135
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0x14
mov eax, 0x10040390
call fcn.1001a87f
xor esi, esi
push 0x10043ce8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.10006c03
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
jne 0x1000717e
lea ecx, [ebp - 0x10]
call fcn.100053ef
xor eax, eax
jmp 0x10007277
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.1001611b
add esp, 0xc
push edi
test eax, eax
jne 0x1000719c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000716f
call fcn.1000453d
pop ecx
cmp eax, 4
jne 0x100071aa
push edi
jmp 0x10007194
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x100071e3
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.10006e7d
push ebx
push dword [ebp - 0x10]
call fcn.1001bc93
add esp, 0x10
test eax, eax
je 0x100071e3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
lea ecx, [ebp - 0x10]
call fcn.100053ef
mov eax, esi
jmp 0x10007277
mov edi, dword [ebp + 0xc]
push edi
call esi
test eax, eax
jne 0x100071f2
xor esi, esi
inc esi
jmp 0x100071d4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.1001611b
add esp, 0xc
test eax, eax
je 0x100071ed
push edi
call fcn.1000453d
pop ecx
cmp eax, 4
je 0x100071ed
test ebx, ebx
je 0x10007231
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.10006e7d
push ebx
push dword [ebp - 0x10]
call fcn.1001bc93
add esp, 0x10
test eax, eax
jne 0x100071ed
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x4000
jne 0x100071ed
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp eax, ecx
ja 0x1000726c
mov edx, dword [ebp - 0x20]
jne 0x10007259
cmp dword [ebp - 0x14], edx
ja 0x1000726c
je 0x100071d2
cmp eax, ecx
jb 0x10007264
jne 0x1000726c
cmp dword [ebp - 0x14], edx
jae 0x1000726c
or esi, 0xffffffff
jmp 0x100071d4
lea ecx, [ebp - 0x10]
call fcn.100053ef
xor eax, eax
inc eax
call fcn.1001a957
ret

Function at 0x10007428
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
jne 0x10007435
lea edx, [ecx + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x1000745a
mov ecx, dword [esp + 8]
push ebx
push edi
movzx ebx, byte [ecx]
mov edi, eax
shr edi, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edx + edi*4]
inc ecx
dec esi
jne 0x10007444
pop edi
pop ebx
pop esi
ret 0xc