joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006c89
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0x100e118
push ebx
push 0x100e120
push 0x1005d18
push 0x1001278
call fcn.01005d6f
xor edi, edi
mov esi, 0x40000000
cmp dword [0x100e144], edi
je 0x1006d03
mov al, byte [0x100e148]
cmp al, 4
jae 0x1006cc7
test al, al
jne 0x1006d03
mov ecx, dword [0x100e134]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x1006d03
mov edx, dword [0x100e13c]
mov eax, edx
xor ecx, ecx
and eax, esi
cmp ecx, dword [0x100e138]
jne 0x1006d03
cmp eax, edx
jne 0x1006d03
push 0x1001288
push dword [0x100e11c]
push dword [0x100e118]
call fcn.01005dcc
cmp dword [ebp + 8], 1
jne 0x1006dae
lea eax, [ebp + 8]
push eax
call fcn.0100990e
test eax, eax
jl 0x1006d86
cmp dword [ebp + 8], edi
je 0x1006d86
cmp dword [0x100e144], edi
je 0x1006e4a
mov al, byte [0x100e148]
cmp al, 4
jae 0x1006d3c
test al, al
jne 0x1006df8
mov ecx, dword [0x100e134]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x1006df8
mov edx, dword [0x100e13c]
mov eax, edx
xor ecx, ecx
and eax, esi
cmp ecx, dword [0x100e138]
jne 0x1006df8
cmp eax, edx
jne 0x1006df8
push 0x10012f8
push dword [0x100e11c]
push dword [0x100e118]
call fcn.01005dcc
jmp 0x1006df8
call fcn.0100790d
call fcn.01006089
test eax, eax
je 0x1006d99
call fcn.0100692f
call fcn.010060fc
test eax, eax
je 0x1006da7
call fcn.0100629f
call fcn.01007d70
jmp 0x1006df8
cmp dword [ebp + 8], 2
jg 0x1006df8
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call fcn.01005fc3
dec eax
jne 0x1006df8
call fcn.01007279
mov edi, eax
test edi, edi
je 0x1006de1
push dword [0x100e03c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x100
push 0x10014e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
cmp dword [0x100e144], 0
je 0x1006e4a
mov al, byte [0x100e148]
cmp al, 4
jae 0x1006e0e
test al, al
jne 0x1006e4a
mov ecx, dword [0x100e134]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x1006e4a
mov edx, dword [0x100e13c]
mov eax, edx
xor ecx, ecx
and eax, esi
cmp ecx, dword [0x100e138]
jne 0x1006e4a
cmp eax, edx
jne 0x1006e4a
push 0x1001298
push dword [0x100e11c]
push dword [0x100e118]
call fcn.01005dcc
push ebx
call fcn.01005d9b
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x1006f86
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x44], 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x4c], 0x10
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1006fdb
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
xor ecx, ebp
call fcn.01008a08
leave
ret 4
Function at 0x1007096
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 1
push esi
push 0x1001620
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007163
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1007163
cmp dword [ebp - 0xc], esi
je 0x1007163
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
push ebx
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ebx, ebx
mov edi, eax
cmp dword [ebp - 0xc], esi
jbe 0x100715b
mov eax, dword [ebp - 8]
push esi
push esi
push esi
mov dword [ebp - 0x10], eax
xor eax, eax
push esi
mov word [edi], ax
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jl 0x1007155
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
cmp eax, esi
je 0x1007155
mov dword [ebp - 0x14], eax
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
inc eax
push eax
push 0x1ae1
push str.hI_
mov dword [ebp - 0x18], eax
call sub.ntdll.dll_WinSqmAddToStream
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x100710a
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
cmp dword [ebp - 4], esi
pop edi
pop esi
je 0x1007173
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x100720d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 8
cmp dword [ebp + 8], edi
je 0x100726c
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x100726c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push edi
push dword [0x100e03c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007262
cmp dword [ebp - 4], 0xb
jne 0x100726c
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
jmp 0x1007267
mov dword [esi], edi
mov dword [esi + 4], edi
xor eax, eax
inc eax
jmp 0x100726e
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x10074c8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
mov ebx, 0x10017a4
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x1007516
cmp eax, 2
jne 0x10075f2
inc dword [ebp - 4]
push esi
lea eax, [ebp - 4]
push eax
push esi
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10075f2
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push 0x1001408
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10075f2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x1001794
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10075f2
cmp dword [ebp - 8], esi
jne 0x10075f2
cmp dword [ebp - 0x18], edi
jbe 0x10075cf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
mov ebx, 0x100176c
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x10075a8
cmp eax, 2
jne 0x10075f2
cmp dword [ebp - 4], 1
jne 0x10075b1
mov dword [ebp - 0xc], edi
inc dword [ebp - 0xc]
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10075f2
cmp dword [ebp - 4], edi
je 0x10075f2
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x64
xor edx, edx
div dword [ebp - 4]
push eax
push 0x172e
push edi
call sub.ntdll.dll_WinSqmSetDWORD
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x14], edi
pop edi
pop esi
pop ebx
je 0x1007603
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
leave
ret 4
Function at 0x1007a5a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 5
lea eax, [ebp - 0x10]
push eax
push 0x10018d0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1007ab2
cmp eax, 5
ja 0x1007ab2
push 0x10018c4
lea eax, [ebp - 0x10]
push eax
push 0x10018b8
push dword [ebp + 0xc]
push esi
call fcn.0100797c
add esp, 0x14
test eax, eax
jge 0x1007aba
mov edi, 0x10a
jmp 0x1007aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01008a08
leave
ret 8
Function at 0x1007b5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x2dc], esi
lea edi, [ebp - 0x2d8]
stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x2b8]
push eax
mov dword [ebp - 0x2c8], esi
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2d0], esi
call fcn.01007a5a
test eax, eax
jne 0x1007d52
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.0100944f
test eax, eax
jne 0x1007d52
mov dword [ebp - 0x2bc], esi
cmp dword [ebp - 0x2d4], esi
jbe 0x1007d52
push ebx
cmp dword [ebp - 0x2bc], 0xa
jae 0x1007d51
xor eax, eax
push 0xa8
mov word [ebp - 0xb0], ax
lea eax, [ebp - 0xae]
push esi
push eax
mov dword [ebp - 0x2c0], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x2e0], 0xaa
mov dword [ebp - 0x2c4], esi
call fcn.01006f63
cmp eax, esi
je 0x1007d51
push dword [eax]
call fcn.01006ff1
mov edi, eax
xor ebx, ebx
cmp edi, esi
jne 0x1007c76
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2d4]
inc ebx
call fcn.01006f63
push dword [eax]
call fcn.01007ad1
mov edi, eax
cmp edi, esi
je 0x1007d39
lea eax, [ebp - 0x2c0]
push eax
push 0x20019
push esi
push dword [0x100e040]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x2c0], esi
je 0x1007d11
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x2c4]
push eax
push esi
push dword [0x100e044]
push dword [ebp - 0x2c0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007d05
cmp dword [ebp - 0x2c4], 7
jne 0x1007d05
push esi
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
cmp eax, esi
je 0x1007d05
mov dword [ebp - 0x2d8], eax
xor eax, eax
lea ecx, [ebp - 0x2dc]
push ecx
inc eax
push eax
push 0xcbb
push str.hI_
mov dword [ebp - 0x2dc], eax
call sub.ntdll.dll_WinSqmAddToStream
push dword [ebp - 0x2c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x1007d39
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2d4]
call fcn.01006f63
push dword [eax]
push 0x80000003
call fcn.01009714
inc dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2bc]
cmp eax, dword [ebp - 0x2d4]
jb 0x1007be3
pop ebx
lea ecx, [ebp - 0x2d4]
call fcn.010079db
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01008a08
leave
ret
Function at 0x100944f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
je 0x100954a
cmp esi, edi
je 0x100954a
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call sub.msvcrt.dll_memset
push 0x24c
lea eax, [ebp - 0x45c]
push edi
push eax
mov dword [ebp - 0x464], edi
mov dword [ebp - 0x460], edi
call sub.msvcrt.dll_memset
push esi
push 0x10019b8
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0100797c
add esp, 0x28
test eax, eax
jge 0x10094e2
mov dword [ebp - 0x464], 0x54f
jmp 0x100953b
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100950b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x464], eax
jmp 0x1009542
lea eax, [ebp - 0x460]
push eax
call fcn.01009233
test eax, eax
je 0x1009529
push ebx
lea eax, [ebp - 0x434]
push eax
push esi
call fcn.0100933d
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100950b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x464]
jmp 0x100954d
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008a08
leave
ret 8

Function at 0x1009ca3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x1009cc5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
leave
ret 0xc
push esi
cmp dword [ebp + 0xc], edi
je 0x1009cf6
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009ce8
cmp dword [ebp - 4], edi
jne 0x1009cf9
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x1009cc0
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x1009d17
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x1009d1a
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x1009cea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009cea
Function at 0x1009d2f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], esi
cmp eax, esi
jne 0x1009d5d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1009dca
cmp dword [ebp + 0xc], esi
je 0x1009d82
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1009d7f
cmp dword [ebp - 4], esi
jne 0x1009d85
push eax
jmp 0x1009d53
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x1009dae
cmp dword [ebp - 0xc], 4
je 0x1009db1
push 0xd
pop edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x1009dbf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 0xc

Function at 0x1009e62
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 9
pop ecx
push 0x12
lea eax, [ebp - 0x28]
xor ebx, ebx
mov esi, 0x1005718
lea edi, [ebp - 0x28]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.01009dfa
mov dword [ebp - 0x40], eax
cmp eax, ebx
je 0x1009f05
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1009ef4
push ebx
xor eax, eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 8
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push 0x7405c
push esi
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1009eed
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008a08
leave
ret
Function at 0x1009f1f
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
pop ecx
push 0xe
lea eax, [ebp - 0x20]
xor ebx, ebx
mov esi, 0x100573c
lea edi, [ebp - 0x20]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.01009dfa
mov esi, eax
xor ecx, ecx
cmp esi, ecx
je 0x1009f5e
mov ebx, esi
xor eax, eax
mov dword [ebp - 0x28], ecx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1009f80
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
jmp 0x1009f86
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
test esi, esi
je 0x1009f9a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
mov edx, ebx
xor ecx, ebp
pop ebx
call fcn.01008a08
leave
ret

Function at 0x1009fb2
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x100a012
cmp dword [ebp - 0x34], 0
ja 0x1009fee
cmp dword [ebp - 0x38], 0x30000000
jb 0x100a012
call fcn.01009e62
cmp edx, 4
jb 0x100a012
ja 0x1009ffe
test eax, eax
jb 0x100a012
call fcn.01009f1f
test edx, edx
ja 0x100a00e
cmp eax, 0x80000000
jb 0x100a012
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x100a264
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], ebx
cmp edi, ebx
jne 0x100a2ae
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100a39c
cmp eax, ebx
jne 0x100a2bc
mov dword [ebp - 0x220], 0x1001794
push ebx
push ebx
push ebx
push 0x1005400
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0100a145
test eax, eax
je 0x100a382
cmp dword [ebp - 0x230], 1
je 0x100a382
mov dword [ebp - 0x214], ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
push ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x22c], 0x104
push dword [ebp - 0x210]
mov dword [ebp - 0x224], 4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x100a368
cmp eax, ebx
jne 0x100a382
cmp dword [ebp - 0x228], 4
jne 0x100a368
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x220]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x100a370
inc dword [ebp - 0x214]
jmp 0x100a2f2
mov eax, dword [ebp - 0x21c]
mov dword [edi], eax
mov dword [ebp - 0x218], 1
cmp dword [ebp - 0x210], ebx
je 0x100a396
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01008a08
leave
ret 8

Function at 0x100a716
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 0x14], 4
je 0x100a72f
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
ret 0x1c
pop ebp
jmp fcn.0100a474
Function at 0x100bcb2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
or dword [ebp - 0x418], 0xffffffff
push esi
mov dword [ebp - 0x41c], ecx
test eax, eax
jge 0x100bce3
xor esi, esi
jmp 0x100bce6
lea esi, [eax + 1]
test ecx, ecx
jne 0x100bcf2
or eax, 0xffffffff
jmp 0x100bd8f
push edi
mov edi, 0x270f
cmp esi, edi
jle 0x100bd0c
cmp dword [ebp + 0x10], 0
je 0x100bd08
and dword [ebp + 0x10], 0
xor esi, esi
cmp esi, edi
jg 0x100bd88
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x101
push dword [ebp - 0x41c]
call fcn.0100b8ee
test eax, eax
je 0x100bd87
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100bd87
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100b551
test eax, eax
je 0x100bd87
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100bd87
mov dword [ebp - 0x418], esi
inc esi
cmp esi, edi
jle 0x100bd12
cmp dword [ebp + 0x10], 0
je 0x100bd83
and dword [ebp + 0x10], 0
xor esi, esi
cmp esi, edi
jle 0x100bd12
pop ebx
mov eax, dword [ebp - 0x418]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01008a08
leave
ret 0xc
Function at 0x100bda3
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x670], eax
test eax, eax
jne 0x100bdcd
or eax, 0xffffffff
jmp 0x100bf1b
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x501
push eax
call fcn.0100b551
test eax, eax
jne 0x100bdf2
or eax, 0xffffffff
jmp 0x100bf1a
push edi
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or edi, 0xffffffff
mov dword [ebp - 0x668], eax
mov dword [ebp - 0x66c], edi
cmp eax, edi
je 0x100bf13
push ebx
test byte [ebp - 0x664], 0x10
je 0x100bedd
push 2
lea eax, [ebp - 0x638]
push 0x1005980
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x100bedd
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x638]
push eax
call fcn.0100b551
test eax, eax
je 0x100bedd
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x670]
lea eax, [ebp - 0x414]
push 0x10018b8
push 0x103
push eax
call fcn.0100797c
add esp, 0x14
test eax, eax
jl 0x100bedd
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x100bedd
push 2
xor edx, edx
pop eax
movzx ecx, word [ebp + eax*2 - 0x638]
test cx, cx
je 0x100becf
movzx ecx, cx
lea ebx, [ecx - 0x30]
cmp bx, 9
ja 0x100becd
imul edx, edx, 0xa
movzx ecx, cx
inc eax
cmp eax, esi
lea edx, [edx + ecx - 0x30]
jl 0x100bea3
jmp 0x100becf
mov edx, edi
cmp edx, dword [ebp - 0x66c]
jle 0x100bedd
mov dword [ebp - 0x66c], edx
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100bf06
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x668], edi
cmp dword [ebp - 0x668], edi
jne 0x100be1f
pop ebx
mov eax, dword [ebp - 0x66c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01008a08
leave
ret 4