joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104e5aa
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, 0x10bced0
push ebx
push dword [ebp + 8]
call fcn.0104e566
test eax, eax
je 0x104e5d9
push ebx
push 0x1017ef4
call fcn.01071ac0
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x104e695
push esi
xor esi, esi
push esi
push 0x80000080
push 4
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x104e67a
cmp dword [0x10bd334], esi
mov dword [ebp - 8], esi
mov byte [0x10aabc8], 0
mov eax, 0x1009220
jne 0x104e619
mov eax, 0x1017ee8
push edi
push eax
push ebx
push 0x1017ecc
mov esi, 0x10aabc8
push esi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push 2
push 0
push 0
push dword [ebp - 4]
mov edi, eax
add edi, esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
sub edi, esi
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
jne 0x104e66c
push dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
push ebx
push 0x1017e78
jmp 0x104e68a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x104e694
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push ebx
push 0x1017e28
call fcn.01071ac0
add esp, 0x10
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x104fe59
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push 0x1018a04
push SysStringLen
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x104fe8c
push eax
push 0x10189c0
jmp 0x104feef
push ebx
push edi
push 0x104
mov ebx, 0x1106960
push ebx
push 0x100ae7c
push dword [ebp + 8]
mov byte [0x1106960], 0
call fcn.01070fc9
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x104feb0
mov esi, 0x10189b8
mov eax, ebx
movsd dword es:[edi], dword [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x104fec3
sub eax, esi
inc eax
push eax
push ebx
xor esi, esi
inc esi
push esi
push 0
push 0x10189a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
pop ebx
je 0x104fef8
push eax
push 0x1018958
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x104fefb
mov dword [ebp - 8], esi
jmp dword [0x109923c]

Function at 0x104ff45
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 2
xor esi, esi
push esi
push 0x1018a04
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x104ff75
push eax
push 0x1018a70
jmp 0x104ff8d
push 0x10189a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x104fff0
push eax
push 0x1018a18
jmp dword [0x10991ec]
xor esi, esi
inc esi
cmp dword [ebp - 4], 0
je 0x1050002
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1050257
Capabilities:
Delete file
Move file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1099768]
and dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x1050284
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x1099768], 0xffffffff
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push esi
push edi
push 0x104
mov esi, 0x10f6960
push esi
push 0x1018c2c
push 0x10f54c0
call fcn.01070fc9
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call ebx
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
jne 0x10502bb
push 4
push 0
push esi
call edi
push 0x104
push esi
push 0x1018b9c
push 0x10c64c0
call fcn.01070fc9
push esi
call ebx
test eax, eax
jne 0x10502dd
push 4
push eax
push esi
call edi
lea eax, [ebp - 4]
push eax
push 3
xor edi, edi
push edi
push 0x1015368
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
je 0x105030b
push esi
push 0x1018c98
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x1050324
push dword [ebp + 0xc]
push dword [ebp + 8]
push 7
push edi
push 0x1018c54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp dword [ebp - 4], edi
je 0x1050332
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, edi
pop edi
pop esi
sete al
pop ebx
leave
ret 8
Function at 0x105141f
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x20c]
push eax
push 0x1019074
push dword [0x109ab88]
call fcn.01070fc9
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x354], eax
je 0x1051606
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x10bed24
test byte [ebp - 0x34c], 0x10
jne 0x10515da
lea eax, [ebp - 0x320]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x105149a
sub eax, edx
cmp eax, 3
jbe 0x10515da
lea eax, [ebp - 0x320]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10514b5
sub eax, edx
lea eax, [ebp + eax - 0x323]
push eax
push 0x1019070
call dword [sym.imp.msvcrt.dll__strcmpi]
test eax, eax
pop ecx
pop ecx
je 0x10515da
lea eax, [ebp - 0x320]
push eax
call fcn.01042a48
mov esi, eax
cmp esi, ebx
je 0x10515da
cmp dword [esi + 0x20], 2
jne 0x10515da
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x320]
push eax
push dword [0x109ab88]
call fcn.01070fc9
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0107c2b8
test eax, eax
je 0x10515da
mov eax, dword [ebp - 0x358]
cmp eax, dword [esi + 0x34]
ja 0x10515da
jb 0x1051554
mov eax, dword [ebp - 0x35c]
cmp eax, dword [esi + 0x30]
ja 0x10515da
mov eax, dword [ebp + 0xc]
dec eax
je 0x10515be
dec eax
je 0x1051585
dec eax
jne 0x10515da
push dword [0x109ab94]
lea eax, [ebp - 0x108]
push eax
call fcn.0103ca4f
test eax, eax
jne 0x10515da
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10515da
cmp dword [ebp - 0x350], ebx
je 0x10515da
push 2
push ebx
push dword [ebp - 0x32c]
push edi
push dword [ebp - 0x350]
call fcn.010626b5
push ebx
push dword [ebp - 0x32c]
lea eax, [ebp - 0x108]
push ebx
push eax
push dword [ebp - 0x350]
call fcn.010626b5
jmp 0x10515da
push ebx
push dword [0x10bd834]
lea eax, [ebp - 0x108]
push edi
push dword [0x109ab70]
push ebx
push ebx
push eax
call fcn.0104beb6
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1051484
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
jmp 0x1051619
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1019044
call fcn.01071ac0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.0106bc50
leave
ret 8
Function at 0x105c04e
Capabilities:
Delete directory

Disassembly:
call fcn.01040cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x3124], ebx
test ebx, ebx
jne 0x105c070
mov ebx, 0x42b
mov dword [ebp - 0x3124], ebx
cmp dword [ebp - 0x31e0], 0
je 0x105c0a6
mov dword [0x10c65d0], 1
push 0x7530
push dword [ebp - 0x31e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x105c0a6
push 0x101a240
call fcn.01071ac0
pop ecx
call fcn.0103c20b
mov edi, dword [ebp - 0x30e8]
test eax, eax
je 0x105c13b
lea eax, [ebp - 0x307c]
push eax
push 0x10c6040
push 1
mov esi, 0x101a224
push esi
push edi
call fcn.010736d6
push 0x104
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.01074e2b
test eax, eax
je 0x105c104
lea eax, [ebp - 0x307c]
push eax
push 0x10c6040
push 1
lea eax, [ebp - 0x130]
push eax
push edi
call fcn.010736d6
lea eax, [ebp - 0x307c]
push eax
push 0x10c6040
push 5
push edi
call fcn.010363ca
test eax, eax
je 0x105c127
push 0x101a1c8
call fcn.01071aea
pop ecx
cmp dword [0x109a6e4], 0
jne 0x105c13b
push 0x101a190
push edi
call fcn.010862bc
call fcn.01044de7
cmp byte [0x10bd720], 0
je 0x105c167
push 0x101c620
mov esi, 0x10bd720
push esi
call fcn.01072567
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [0x10bd720], 0
xor esi, esi
cmp dword [0x10bd70c], esi
je 0x105c17b
push 0x10c6040
call fcn.01033d05
call fcn.01044b4e
call fcn.01044c2d
call fcn.0103c1bd
push 0x101aab0
push edi
call fcn.01074142
cmp edi, esi
je 0x105c1ac
push edi
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
mov dword [ebp - 0x30e8], esi
mov dword [0x109a040], esi
mov eax, dword [0x109a044]
cmp eax, esi
je 0x105c1c2
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov dword [0x109a044], esi
mov eax, dword [0x109a048]
cmp eax, esi
je 0x105c1d8
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
mov dword [0x109a048], esi
cmp dword [0x10bd1e4], 4
jbe 0x105c204
cmp byte [0x10bd860], 0
je 0x105c1f4
push 0x10bd860
call fcn.0107c693
push dword [0x10bd834]
push 0x10bd3c0
call fcn.01033265
mov edx, 0x101a17c
xor edi, edi
inc edi
mov ecx, edi
call fcn.01081c57
call fcn.01070ea1
push edi
push dword [ebp - 0x31c0]
call fcn.01034450
call fcn.01060e6a
call fcn.01088517
cmp dword [ebp - 0x31dc], esi
je 0x105c241
call fcn.0104b6c7
mov dword [ebp - 0x31dc], esi
mov edx, 0x101a168
mov ecx, edi
call fcn.01081c57
mov edx, 0x101a144
mov ecx, edi
call fcn.01081c57
lea eax, [ebp - 0x307c]
push eax
lea eax, [ebp - 0x30f8]
push eax
push 0x101a134
push dword [0x10bd328]
call fcn.01074b68
mov edx, 0x101a114
mov ecx, edi
call fcn.01081c57
mov edx, 0x101a0ec
mov ecx, edi
call fcn.01081c57
lea eax, [ebp - 0x307c]
push eax
lea eax, [ebp - 0x30f8]
push eax
push 0x101c438
push dword [0x10bd328]
call fcn.01074b68
mov edx, 0x101a0c8
mov ecx, edi
call fcn.01081c57
cmp dword [0x10bd70c], esi
je 0x105c306
mov eax, dword [ebp - 0x3128]
cmp dword [eax + 0x5c], esi
je 0x105c306
cmp ebx, 0xf202
jb 0x105c306
cmp ebx, 0xf204
jbe 0x105c2e4
cmp ebx, 0xf208
jne 0x105c306
mov edi, 0xf207
push edi
push 0x101a0ac
push ebx
push ebx
push 0x101a080
call fcn.01071b14
add esp, 0x14
mov ebx, edi
mov dword [ebp - 0x3124], ebx
ret
Function at 0x105d674
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
push dword [ebp + 8]
mov edi, 0xf053
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x105d6a4
mov eax, dword [ebp + 0xc]
and dword [eax + 0x58], 0
mov dword [eax + 0x30], 1
jmp 0x105d730
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x2a4], 0xffffffff
mov ebx, 0x104
jne 0x105d6d7
push 0x101e434
push dword [ebp + 8]
lea eax, [esi + 0x1a0]
push ebx
push eax
call fcn.0107bb2b
call fcn.0108398e
mov dword [esi + 0x2a4], eax
mov eax, dword [esi + 0x2a4]
cmp eax, 0xffffffff
jne 0x105d6ef
and dword [esi + 0x58], 0
mov dword [esi + 0x30], 1
jmp 0x105d72e
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.01083ae4
test eax, eax
jne 0x105d70a
and dword [esi + 0x58], eax
mov dword [esi + 0x30], 1
jmp 0x105d725
mov edi, dword [ebp - 4]
push 0x41
pop ecx
push 0x101e434
push dword [ebp + 8]
xor eax, eax
push ebx
rep stosd dword es:[edi], eax
push dword [ebp - 4]
call fcn.0107bb2b
mov dword [esi + 0x58], 1
xor edi, edi
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret 8
Function at 0x105e53e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
push 2
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
je 0x105e5c8
push esi
xor esi, esi
inc esi
movzx eax, si
push 0x101e78c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x105e57c
inc esi
cmp esi, 0x10000
jne 0x105e55d
jmp 0x105e5be
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x105e5be
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x105e5b7
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
push eax
push 0x101e774
push 0x3f9
push 0x101e760
mov dword [ecx], eax
call fcn.01071b29
xor ebx, ebx
add esp, 0x10
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
jmp 0x105e5d7
push dword [ebp + 8]
push 0x101e728
call fcn.01071ac0
pop ecx
pop ecx
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x105ea1c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x105ea35
push esi
sub eax, edx
mov esi, 0x104
cmp eax, esi
jae 0x105eaad
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x105ea53
push esi
lea eax, [ebp - 0x108]
push eax
push 0x101dfa4
push eax
call fcn.01070fc9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x105eaad
push 0
push 2
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpOpenInfFileA]
cmp eax, 0xffffffff
jne 0x105eabc
lea eax, [ebp - 0x108]
push eax
push 0x101ec84
call fcn.01071ac0
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0106bc50
leave
ret 4
test eax, eax
je 0x105eac7
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpCloseInfFile]
xor eax, eax
inc eax
jmp 0x105eaaf
Function at 0x105f21e
Capabilities:
Copy file
Delete file
Get common file path
Query or enumerate registry value
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1099a38]
and dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x105f3c5
push 0x12
push dword [ebp - 0x214]
call fcn.0105f1b7
test eax, eax
je 0x105f3b3
push esi
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x105f3b2
push esi
lea eax, [ebp - 0x108]
push eax
push 0x101ef20
push eax
call fcn.01070fc9
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call fcn.01070fc9
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x101ef10
push eax
call fcn.01070fc9
xor ebx, ebx
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x105f3b2
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x105f3a5
lea eax, [ebp - 0x108]
push eax
mov edi, 0x101ef00
push edi
mov esi, SysStringLen
push esi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x105f3a5
lea eax, [ebp - 0x218]
push eax
push 0xf003f
push ebx
push 0x101eed0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x105f39d
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x10
mov dword [ebp - 0x220], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x105f391
cmp dword [ebp - 0x21c], 0x10
jne 0x105f391
cmp dword [ebp - 0x230], ebx
je 0x105f391
mov dword [ebp - 0x210], 1
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x1060612
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x1099a38]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
push 0x4f
pop ecx
xor ebx, ebx
push edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x658], ebx
lea edi, [ebp - 0x654]
push 0x101f6f4
rep stosd dword es:[edi], eax
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
mov dword [ebp - 0x660], edx
mov dword [ebp - 0x65c], 1
mov dword [ebp - 0x664], ebx
mov byte [ebp - 0x20c], bl
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x310], bl
mov word [ebp - 0x518], bx
call fcn.01037486
add esp, 0x10
cmp eax, ebx
jge 0x10606ab
push eax
push 0x101f6d4
push 0x962
push 0x101f688
call fcn.01071aea
add esp, 0x10
jmp 0x1060763
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01073f21
test eax, eax
jne 0x10606e9
lea eax, [ebp - 0x20c]
push eax
push 0x101f6d4
push 0x969
push 0x101f64c
call fcn.01071b14
add esp, 0x10
mov dword [ebp - 0x65c], 1
jmp 0x106082f
lea eax, [ebp - 0x664]
push eax
call fcn.0105d479
cmp eax, ebx
jge 0x106070b
push eax
push 0x101f6d4
push 0x976
push 0x101f60c
jmp 0x106069e
push esi
lea eax, [ebp - 0x310]
push eax
push 0x101f5fc
push dword [ebp - 0x660]
call fcn.01070fc9
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x106076e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x310]
push eax
push 0x101f6d4
push 0x980
push 0x101f5d0
call fcn.01071aea
add esp, 0x14
mov dword [ebp - 0x65c], ebx
jmp 0x106082f
push esi
lea eax, [ebp - 0x108]
push eax
push 0x101f5c8
push dword [ebp - 0x660]
call fcn.01070fc9
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01070fc9
push esi
lea eax, [ebp - 0x518]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10607eb
lea eax, [ebp - 0x518]
push eax
call fcn.01077a39
mov ecx, dword [ebp - 0x664]
shr ecx, 8
cmp eax, ecx
ja 0x106080b
lea eax, [ebp - 0x658]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x106076e
jmp 0x1060828
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101f6d4
push 0x98c
push 0x101f594
call fcn.01071aea
add esp, 0x10
jmp 0x1060822
push 0x101f6d4
push 0x995
push 0x101f558
call fcn.01071b14
add esp, 0xc
mov dword [ebp - 0x65c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x65c]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 4
Function at 0x1062d4f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1099a38]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x20019
push 2
xor ebx, ebx
push ebx
push 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
je 0x1062dfa
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0x1020200
push edi
mov dword [ebp - 0x110], 0x103
mov byte [ebp - 5], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1062df3
cmp dword [ebp - 0x10c], 1
jne 0x1062df3
lea eax, [ebp - 0x108]
push 0x100ddd4
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x1062df3
push esi
lea eax, [ebp - 0x108]
push eax
push 0x10201dc
inc ebx
call fcn.01071ac0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0106bc50
leave
ret 0xc

Function at 0x1062fc7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x1099a38]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x2001f
push 2
xor ebx, ebx
push ebx
push 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
push esi
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x314], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp eax, 0xffffffff
mov dword [ebp - 0x318], eax
je 0x10630cc
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x310]
push eax
push edi
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
jne 0x1063044
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1020308
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x10630c0
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x31c]
push eax
push 0
push 0x1020300
push dword [ebp - 0x318]
mov dword [ebp - 0x320], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10630ab
xor esi, esi
inc esi
cmp dword [ebp - 0x31c], esi
jne 0x10630ab
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01062e0b
mov ecx, dword [ebp - 0x324]
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov dword [ebp - 0x314], esi
jmp 0x10630c0
push eax
lea eax, [ebp - 0x310]
push eax
push 0x10202d8
call fcn.01071ac0
add esp, 0xc
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x314]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0xc
Function at 0x1063425
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
cmp dword [0x109a090], 0
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x110], eax
jne 0x1063472
cmp dword [0x109a094], 0
jne 0x1063472
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x101b260
push 0x10c6040
call fcn.01070fc9
jmp 0x10634c9
push ebx
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
mov eax, dword [0x109a498]
push dword [eax + 0xc]
mov edi, 0x10c6040
push edi
call fcn.01070fc9
push esi
lea eax, [ebp - 0x108]
push eax
mov ebx, 0x101b260
push ebx
push eax
call fcn.01070fc9
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.01073f21
test eax, eax
jne 0x10634c8
push esi
lea eax, [ebp - 0x108]
push eax
push ebx
push edi
call fcn.01070fc9
pop ebx
xor edi, edi
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01073f21
test eax, eax
jne 0x10634ef
push 0x1020384
call fcn.010430af
xor eax, eax
pop ecx
inc eax
jmp 0x1063578
push 3
lea eax, [ebp - 0x10c]
push 0x10f54c0
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 0x109], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1063578
mov eax, dword [ebp - 0x118]
imul eax, dword [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01063168
mov esi, eax
push esi
push 0x1020340
call fcn.010430af
pop ecx
pop ecx
push edi
push edi
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x110]
call fcn.010626b5
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0106bc50
leave
ret 4