joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050b8
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x101647c]
push esi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call sub.MIGISM.dll_IsmGetTempStorage
test eax, eax
je 0x1005215
push edi
push 0x5c
pop edi
cmp word [ebp - 0x20c], di
lea eax, [ebp - 0x20c]
jne 0x1005147
push 0x10017c0
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
add esp, 0x10
test eax, eax
je 0x100515a
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x100515a
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x100515a
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
jmp 0x100514f
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x100515a
and word [eax + 2], 0
push 0x10017ac
push 0x1001790
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
je 0x100519a
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
jne 0x10051f5
jmp 0x1005215
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x100520f
mov eax, dword [ebp - 0x21c]
imul eax, dword [ebp - 0x220]
cdq
mov ecx, eax
mov eax, dword [ebp - 0x218]
mov esi, edx
cdq
push edx
push eax
push esi
push ecx
call fcn.01012050
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edx
cmp dword [ebp - 0x210], 0
jne 0x1005215
cmp dword [ebp - 0x214], 0x100000
jae 0x1005215
xor eax, eax
inc eax
jmp 0x1005217
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.01011c2a
leave
ret
Function at 0x10069fc
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x101647c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp + 0x14]
test eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x628], edi
mov dword [ebp - 0x624], eax
je 0x1006a39
cmp word [eax], 0
jne 0x1006a3f
mov dword [ebp - 0x624], edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x620], 0x104
sub dword [ebp - 0x620], eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push eax
call esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call edi
cmp dword [ebp + 0x20], 0
jne 0x1006aa7
push dword [ebp - 0x620]
lea eax, [ebp - 0x414]
push dword [ebp - 0x62c]
push eax
call esi
push dword [ebp - 0x624]
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1006af0
push 0x104
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp - 0x620]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0x628]
lea eax, [ebp - 0x20c]
push eax
call edi
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x1006b11
push dword [ebp - 0x624]
lea eax, [ebp - 0x20c]
push eax
push dword [0x1019394]
call fcn.0101372e
jmp 0x1006b26
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0x24], esi
pop edi
pop esi
jne 0x1006b30
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.01011c2a
leave
ret 0x20
Function at 0x1006bde
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x101647c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x834], edi
jne 0x1006c4e
push 0x104
lea eax, [ebp - 0x61c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1006e18
lea eax, [ebp - 0x61c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, edi
pop ecx
pop ecx
je 0x1006e18
mov word [eax], di
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x828], eax
push esi
call fcn.010064a6
cmp dword [0x101602c], 0xffffffff
je 0x1006e29
push ebx
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebp - 0x414]
push edi
push eax
call esi
pop ecx
cmp eax, edi
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
mov dword [ebp - 0x82c], eax
mov ebx, 0x10017c0
je 0x1006cb2
push ebx
push eax
call edi
push 0
push dword [ebp - 0x82c]
call esi
add esp, 0x10
mov dword [ebp - 0x82c], eax
push 0x102
push dword [ebp - 0x828]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x20c]
push 0
push eax
call esi
add esp, 0x14
test eax, eax
mov dword [ebp - 0x830], eax
je 0x1006e23
push ebx
push eax
call edi
xor edi, edi
push edi
push dword [ebp - 0x830]
call esi
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x830], eax
je 0x1006e23
cmp dword [ebp - 0x82c], edi
je 0x1006e23
lea eax, [ebp - 0x844]
push eax
push edi
push 0x1001c9c
push dword [0x101602c]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x1006e23
mov eax, dword [ebp - 0x830]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x20c]
sub eax, ecx
mov esi, 0x104
sar eax, 1
mov dword [ebp - 0x828], esi
sub dword [ebp - 0x828], eax
mov dword [ebp - 0x834], 1
push 0
push dword [ebp - 0x828]
lea eax, [ebp - 0x844]
push dword [ebp - 0x830]
push 1
push eax
call edi
test eax, eax
je 0x1006e1c
push 0
push esi
lea eax, [ebp - 0x824]
push eax
push 2
lea eax, [ebp - 0x844]
push eax
call edi
test eax, eax
je 0x1006dba
push 0x1001c8c
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1006e00
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x1006e00
mov eax, dword [ebp - 0x82c]
lea ecx, [ebp - 0x414]
sub eax, ecx
sar eax, 1
mov ecx, esi
sub ecx, eax
push ecx
push dword [ebp - 0x830]
push dword [ebp - 0x82c]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1006e1c
lea eax, [ebp - 0x844]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x1006d6a
jmp 0x1006e23
xor eax, eax
jmp 0x1006e2f
and dword [ebp - 0x834], 0
call fcn.01006546
pop ebx
mov eax, dword [ebp - 0x834]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01011c2a
leave
ret 8
Function at 0x1007549
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x101647c]
and dword [ebp - 0x2b8], 0
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 8
mov dword [ebp - 4], eax
xor eax, eax
and dword [ebp - 0x2dc], eax
mov ecx, 0xac
lea edi, [ebp - 0x2b4]
rep stosd dword es:[edi], eax
pop ecx
push 0x4011
lea edi, [ebp - 0x2d8]
push 0x2b4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2b8]
push eax
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x10075e8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c8], eax
lea eax, [ebp - 0x2dc]
push eax
push 0
push 0x40c
push esi
mov dword [ebp - 0x2dc], 6
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10075eb
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01011c2a
leave
ret 0xc

Function at 0x10075fe
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101647c]
mov dword [ebp - 4], eax
mov eax, dword [0x1001958]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x100195c]
push edi
xor edi, edi
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [esi + 0x41]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x100763b
inc edi
inc esi
cmp esi, 0x1a
jb 0x1007624
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.01011c2a
leave
ret

Function at 0x1007654
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101647c]
mov dword [ebp - 4], eax
mov eax, dword [0x1002190]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x1002194]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
xor esi, esi
lea eax, [esi + 0x41]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1007698
mov eax, edi
dec edi
test eax, eax
je 0x10076b0
inc esi
cmp esi, 0x1a
jb 0x100767b
mov ax, 0x30
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01011c2a
leave
ret 4
mov ax, word [ebp - 0xc]
jmp 0x10076a2

Function at 0x1007781
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101647c]
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
cmp ax, 0x41
jb 0x10077a1
cmp ax, 0x5a
jbe 0x10077ad
cmp ax, 0x61
jb 0x10077dc
cmp ax, 0x7a
ja 0x10077dc
mov ecx, dword [0x1001958]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x100195c]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x10077d7
cmp eax, 5
jne 0x10077dc
xor eax, eax
inc eax
jmp 0x10077de
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01011c2a
leave
ret 4
Function at 0x10077ef
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101647c]
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
cmp ax, 0x41
jb 0x100780f
cmp ax, 0x5a
jbe 0x100781b
cmp ax, 0x61
jb 0x1007849
cmp ax, 0x7a
ja 0x1007849
mov ecx, dword [0x1001958]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x100195c]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1007849
cmp eax, 1
je 0x1007849
xor eax, eax
inc eax
jmp 0x100784b
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01011c2a
leave
ret 4

Function at 0x10078b2
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101647c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
cmp word [ebp - 0x20a], 0x3a
push 0x5c
pop ebx
jne 0x10078fc
cmp word [ebp - 0x208], bx
jne 0x10078fc
lea eax, [ebp - 0x206]
jmp 0x100793d
cmp word [ebp - 0x20c], bx
jne 0x1007937
cmp word [ebp - 0x20a], bx
jne 0x1007937
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10079a2
add eax, 2
push ebx
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10079a2
inc eax
inc eax
je 0x10079a2
jmp 0x1007943
lea eax, [ebp - 0x20c]
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
push ebx
push eax
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10079a2
and word [edi], 0
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov dword [ebp - 0x210], eax
jne 0x1007983
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10079d2
mov dword [ebp - 0x210], 1
mov word [edi], bx
inc edi
inc edi
je 0x1007999
push ebx
add edi, 2
push edi
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x100794f
cmp dword [ebp - 0x210], 0
je 0x10079d2
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov dword [ebp - 0x210], eax
jne 0x10079d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10079d2
mov dword [ebp - 0x210], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.01011c2a
leave
ret 4
Function at 0x10086e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x101647c]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
mov dword [ebp - 0x62c], ecx
mov ecx, 0x104
mov dword [ebp - 0x620], 0x80004005
mov dword [ebp - 0x634], ecx
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x624], 1
jne 0x1008737
lea ecx, [eax + 2]
cmp word [ecx], 0x2e
je 0x1008754
push eax
lea eax, [ebp - 0x61a]
push eax
mov word [ebp - 0x61c], 0x2e
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x61c]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push edi
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x624]
push eax
push 0
push ecx
mov edi, 0x80000000
push edi
call ebx
test eax, eax
jne 0x100887d
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x624]
push eax
push 0x10022e4
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
test eax, eax
jne 0x1008852
cmp word [ebp - 0x20c], 0x40
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x628], eax
jne 0x10087dc
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x628], eax
push 0x2c
push dword [ebp - 0x628]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x1008852
and word [eax], 0
inc eax
inc eax
je 0x1008852
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
mov esi, eax
test esi, esi
pop ecx
jge 0x1008852
push 2
push 0
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100884d
push dword [ebp - 0x630]
neg esi
push dword [ebp - 0x62c]
push esi
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
test eax, eax
setg cl
and dword [ebp - 0x620], 0
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x100887c
mov edi, 0x80000000
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x62c]
lea eax, [ebp - 0x624]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push edi
call ebx
test eax, eax
jne 0x100887c
and dword [ebp - 0x620], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x620]
pop edi
pop ebx
call fcn.01011c2a
leave
ret 0xc
Function at 0x1008af6
Capabilities:
Get common file path
Terminate process

Disassembly:
push 0x450
push 0x1002380
call fcn.01011fec
mov eax, dword [0x101647c]
mov dword [ebp - 0x1c], eax
push 0x1001790
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x458], ebx
test ebx, ebx
je 0x1008c5c
push 0x1002360
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
push 0x1002350
push ebx
call esi
mov ebx, eax
push 0x1002340
push dword [ebp - 0x458]
call esi
mov dword [ebp - 0x45c], eax
and dword [ebp - 4], 0
test edi, edi
je 0x1008c53
test eax, eax
je 0x1008c53
test ebx, ebx
je 0x1008c53
push 0
push 2
call edi
mov dword [ebp - 0x454], eax
cmp eax, 0xffffffff
je 0x1008c53
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, 0x1002324
push edi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x450], 0x22c
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x454]
call ebx
test eax, eax
je 0x1008c47
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push edi
lea eax, [ebp - 0x42c]
push eax
call ebx
test eax, eax
je 0x1008bf0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x42c]
push eax
call ebx
test eax, eax
jne 0x1008c30
push dword [ebp - 0x448]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x460], esi
test esi, esi
je 0x1008c30
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov dword [0x10193b4], eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008c47
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x454]
call dword [ebp - 0x45c]
test eax, eax
jne 0x1008bce
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
call fcn.01008c6c
mov ecx, dword [ebp - 0x1c]
call fcn.01011c2a
call fcn.01012027
ret 0xc

Function at 0x1008d6f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x10023a8
push 0x80000001
mov dword [ebp - 8], 0x30
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1008dc6
cmp dword [ebp - 4], eax
je 0x1008dc6
push 4
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x100238c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0xc
Function at 0x1008dcf
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor edi, edi
push edi
push 0x1002430
push 0x80000001
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1008e8c
cmp dword [ebp - 4], edi
je 0x1008e8c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
mov esi, 0x1002418
push esi
push dword [ebp - 4]
call ebx
cmp eax, edi
je 0x1008e33
cmp eax, 0xea
jne 0x1008e81
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1008e81
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x1008e7a
cmp dword [ebp - 0xc], 3
jne 0x1008e7a
cmp dword [ebp - 8], 0x24
jne 0x1008e7a
and dword [edi + 0x20], 0xfffffffd
push dword [ebp - 8]
push edi
push 3
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
leave
ret 0xc
Function at 0x100926a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x10024b8
xor ebx, ebx
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10092ef
cmp dword [ebp - 4], ebx
je 0x10092ef
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x10024a4
push edi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x10092e4
cmp dword [ebp - 0xc], 4
jne 0x10092e4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x10092e4
mov eax, dword [ebp - 0x10]
shr eax, 3
and eax, 1
mov dword [0x10193c0], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10092f9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 0x10024b8
xor ebx, ebx
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1009390
cmp dword [ebp - 4], ebx
je 0x1009390
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x10024a4
push edi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x1009385
cmp dword [ebp - 0xc], 4
jne 0x1009385
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1009385
cmp dword [0x10193c0], ebx
je 0x1009375
test byte [ebp - 0x10], 8
jne 0x1009385
jmp 0x100937b
test byte [ebp - 0x10], 8
je 0x1009385
mov dword [0x10193bc], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100939a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
xor ebx, ebx
cmp dword [0x10193b4], ebx
je 0x1009421
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
push 0x1002544
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x10093ec
push 0x100252c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10093e5
push 1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x200
push ebx
push ebx
push ebx
push dword [0x10193b4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100941f
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1009565
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x101647c]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 4], eax
je 0x10095b7
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x804]
push eax
push 0x400
push 0xd
push ebx
call esi
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x10095b6
push edi
push 0
push 0xc
push ebx
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01011c2a
leave
ret 8

Function at 0x1009fbc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [0x1002190]
mov eax, dword [0x101647c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x1002194]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov cx, word [eax]
cmp cx, 0x5c
mov word [ebp - 0xc], cx
jne 0x1009ff4
cmp word [eax + 2], cx
je 0x100a007
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x100a007
xor eax, eax
jmp 0x100a00a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.01011c2a
leave
ret 4
Function at 0x100b942
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x101647c]
and word [ebp - 0x804], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x802]
rep stosd dword es:[edi], eax
push 0x400
lea ecx, [ebp - 0x804]
stosw word es:[edi], ax
mov eax, dword [0x101d824]
mov eax, dword [eax + 0xc]
push ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x100b9c4
push 0
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
inc eax
jmp 0x100b9c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01011c2a
leave
ret 8