joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007176
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 0x1007243
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 0x1007243
cmp dword [ebp - 0xc], esi
je 0x1007243
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 0x100723b
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 0x1007235
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
cmp eax, esi
je 0x1007235
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 0x10071ea
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
cmp dword [ebp - 4], esi
pop edi
pop esi
je 0x1007253
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x10072ed
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 0x100734c
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x100734c
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 0x1007342
cmp dword [ebp - 4], 0xb
jne 0x100734c
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
jmp 0x1007347
mov dword [esi], edi
mov dword [esi + 4], edi
xor eax, eax
inc eax
jmp 0x100734e
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x10075a8
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 0x10075f6
cmp eax, 2
jne 0x10076d2
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 0x10076d2
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 0x10076d2
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 0x10076d2
cmp dword [ebp - 8], esi
jne 0x10076d2
cmp dword [ebp - 0x18], edi
jbe 0x10076af
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 0x1007688
cmp eax, 2
jne 0x10076d2
cmp dword [ebp - 4], 1
jne 0x1007691
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 0x10076d2
cmp dword [ebp - 4], edi
je 0x10076d2
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 0x10076e3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
leave
ret 4
Function at 0x1007b3a
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 0x1007b92
cmp eax, 5
ja 0x1007b92
push 0x10018c4
lea eax, [ebp - 0x10]
push eax
push 0x10018b8
push dword [ebp + 0xc]
push esi
call fcn.01007a5c
add esp, 0x14
test eax, eax
jge 0x1007b9a
mov edi, 0x10a
jmp 0x1007b9a
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.01008ae8
leave
ret 8
Function at 0x1007c3c
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.01007b3a
test eax, eax
jne 0x1007e32
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.0100952d
test eax, eax
jne 0x1007e32
mov dword [ebp - 0x2bc], esi
cmp dword [ebp - 0x2d4], esi
jbe 0x1007e32
push ebx
cmp dword [ebp - 0x2bc], 0xa
jae 0x1007e31
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.01007043
cmp eax, esi
je 0x1007e31
push dword [eax]
call fcn.010070d1
mov edi, eax
xor ebx, ebx
cmp edi, esi
jne 0x1007d56
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2d4]
inc ebx
call fcn.01007043
push dword [eax]
call fcn.01007bb1
mov edi, eax
cmp edi, esi
je 0x1007e19
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 0x1007df1
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 0x1007de5
cmp dword [ebp - 0x2c4], 7
jne 0x1007de5
push esi
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
cmp eax, esi
je 0x1007de5
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 0x1007e19
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2d4]
call fcn.01007043
push dword [eax]
push 0x80000003
call fcn.010097f2
inc dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2bc]
cmp eax, dword [ebp - 0x2d4]
jb 0x1007cc3
pop ebx
lea ecx, [ebp - 0x2d4]
call fcn.01007abb
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01008ae8
leave
ret
Function at 0x1008a52
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x100ca10
call fcn.01008ee4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100e558
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1008867
cmp eax, esi
jne 0x100885a
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100886a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1008841
xor esi, esi
inc esi
mov eax, dword [0x100e554]
cmp eax, esi
jne 0x100887d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10088b8
mov eax, dword [0x100e554]
test eax, eax
jne 0x10088b2
mov dword [0x100e554], esi
push 0x1001230
push 0x1001224
call fcn.010087be
pop ecx
pop ecx
test eax, eax
je 0x10088b8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1008982
mov dword [0x100e17c], esi
mov eax, dword [0x100e554]
cmp eax, esi
jne 0x10088dc
push 0x1001220
push 0x1001210
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100e554], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10088e9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100e564], ebx
je 0x100890a
push 0x100e564
call fcn.01008e59
pop ecx
test eax, eax
je 0x100890a
push ebx
push 2
push ebx
call dword [0x100e564]
push dword [0x100e164]
push dword [0x100e168]
push dword [0x100e160]
call fcn.01006d69
add esp, 0xc
mov dword [0x100e178], eax
cmp dword [0x100e16c], ebx
jne 0x1008968
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100e17c], ebx
jne 0x1008976
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100e178]
call fcn.01008f29
ret
call fcn.01009031
jmp 0x100881f
Function at 0x100952d
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 0x1009628
cmp esi, edi
je 0x1009628
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.01007a5c
add esp, 0x28
test eax, eax
jge 0x10095c0
mov dword [ebp - 0x464], 0x54f
jmp 0x1009619
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 0x10095e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x464], eax
jmp 0x1009620
lea eax, [ebp - 0x460]
push eax
call fcn.01009311
test eax, eax
je 0x1009607
push ebx
lea eax, [ebp - 0x434]
push eax
push esi
call fcn.0100941b
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10095e9
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x464]
jmp 0x100962b
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008ae8
leave
ret 8

Function at 0x1009d81
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 0x1009da3
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 0x1009dd4
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 0x1009dc6
cmp dword [ebp - 4], edi
jne 0x1009dd7
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
jmp 0x1009d9e
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], edi
je 0x1009df5
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 0x1009df8
xor esi, esi
inc esi
cmp dword [ebp + 0xc], edi
je 0x1009dc8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009dc8
Function at 0x1009e0d
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 0x1009e3b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1009ea8
cmp dword [ebp + 0xc], esi
je 0x1009e60
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 0x1009e5d
cmp dword [ebp - 4], esi
jne 0x1009e63
push eax
jmp 0x1009e31
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 0x1009e8c
cmp dword [ebp - 0xc], 4
je 0x1009e8f
push 0xd
pop edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
je 0x1009e9d
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 0x1009f40
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, 0x10057f8
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.01009ed8
mov dword [ebp - 0x40], eax
cmp eax, ebx
je 0x1009fe3
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 0x1009fd2
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 0x1009fcb
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.01008ae8
leave
ret
Function at 0x1009ffd
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, 0x100581c
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.01009ed8
mov esi, eax
xor ecx, ecx
cmp esi, ecx
je 0x100a03c
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 0x100a05e
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
jmp 0x100a064
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
test esi, esi
je 0x100a078
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.01008ae8
leave
ret

Function at 0x100a090
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 0x100a0f0
cmp dword [ebp - 0x34], 0
ja 0x100a0cc
cmp dword [ebp - 0x38], 0x30000000
jb 0x100a0f0
call fcn.01009f40
cmp edx, 4
jb 0x100a0f0
ja 0x100a0dc
test eax, eax
jb 0x100a0f0
call fcn.01009ffd
test edx, edx
ja 0x100a0ec
cmp eax, 0x80000000
jb 0x100a0f0
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x100a342
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 0x100a38c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100a47a
cmp eax, ebx
jne 0x100a39a
mov dword [ebp - 0x220], 0x1001794
push ebx
push ebx
push ebx
push 0x10054e0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0100a223
test eax, eax
je 0x100a460
cmp dword [ebp - 0x230], 1
je 0x100a460
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 0x100a446
cmp eax, ebx
jne 0x100a460
cmp dword [ebp - 0x228], 4
jne 0x100a446
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x220]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x100a44e
inc dword [ebp - 0x214]
jmp 0x100a3d0
mov eax, dword [ebp - 0x21c]
mov dword [edi], eax
mov dword [ebp - 0x218], 1
cmp dword [ebp - 0x210], ebx
je 0x100a474
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.01008ae8
leave
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 0x14], 4
je 0x100a80d
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
ret 0x1c
pop ebp
jmp fcn.0100a552
Function at 0x100bd90
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 0x100bdc1
xor esi, esi
jmp 0x100bdc4
lea esi, [eax + 1]
test ecx, ecx
jne 0x100bdd0
or eax, 0xffffffff
jmp 0x100be6d
push edi
mov edi, 0x270f
cmp esi, edi
jle 0x100bdea
cmp dword [ebp + 0x10], 0
je 0x100bde6
and dword [ebp + 0x10], 0
xor esi, esi
cmp esi, edi
jg 0x100be66
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x101
push dword [ebp - 0x41c]
call fcn.0100b9cc
test eax, eax
je 0x100be65
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100be65
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100b62f
test eax, eax
je 0x100be65
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100be65
mov dword [ebp - 0x418], esi
inc esi
cmp esi, edi
jle 0x100bdf0
cmp dword [ebp + 0x10], 0
je 0x100be61
and dword [ebp + 0x10], 0
xor esi, esi
cmp esi, edi
jle 0x100bdf0
pop ebx
mov eax, dword [ebp - 0x418]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01008ae8
leave
ret 0xc
Function at 0x100be81
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 0x100beab
or eax, 0xffffffff
jmp 0x100bff9
push esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x501
push eax
call fcn.0100b62f
test eax, eax
jne 0x100bed0
or eax, 0xffffffff
jmp 0x100bff8
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 0x100bff1
push ebx
test byte [ebp - 0x664], 0x10
je 0x100bfbb
push 2
lea eax, [ebp - 0x638]
push 0x1005a60
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x100bfbb
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x638]
push eax
call fcn.0100b62f
test eax, eax
je 0x100bfbb
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x670]
lea eax, [ebp - 0x414]
push 0x10018b8
push 0x103
push eax
call fcn.01007a5c
add esp, 0x14
test eax, eax
jl 0x100bfbb
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x100bfbb
push 2
xor edx, edx
pop eax
movzx ecx, word [ebp + eax*2 - 0x638]
test cx, cx
je 0x100bfad
movzx ecx, cx
lea ebx, [ecx - 0x30]
cmp bx, 9
ja 0x100bfab
imul edx, edx, 0xa
movzx ecx, cx
inc eax
cmp eax, esi
lea edx, [edx + ecx - 0x30]
jl 0x100bf81
jmp 0x100bfad
mov edx, edi
cmp edx, dword [ebp - 0x66c]
jle 0x100bfbb
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 0x100bfe4
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x668], edi
cmp dword [ebp - 0x668], edi
jne 0x100befd
pop ebx
mov eax, dword [ebp - 0x66c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01008ae8
leave
ret 4
Function at 0x4056ca
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [ebp - 0x12a43], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004047c8
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
invalid
invalid
cmpsd dword [esi], dword es:[edi]
cld
invalid

Function at 0x406503
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
invalid
invalid