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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea40d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x34], 0
test edx, edx
jne 0x48b1f3
lea esi, [ecx + 0x57]
jmp 0x48b313
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b210
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0040a370
push 0x507b68
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48b2f5
push 0x508784
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x48b2f5
call fcn.0048edc0
test al, al
jne 0x48b28b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x48b284
cmp dword [ebp - 0x18], 0
jne 0x48b28b
mov ecx, 0xf003f
jmp 0x48b2a2
lea ecx, [ebp - 0x30]
call fcn.0048adc0
test al, al
mov ecx, 0xf013f
mov edx, 0xf023f
cmovne ecx, edx
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x34]
push edx
push ecx
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 8
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x48b2fd
push str.SymbolicLinkValue
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x48b2fd
push dword [ebp - 0x34]
mov ecx, edi
call dword [0x4ed33c]
call edi
lea ecx, [ebp - 0x30]
test eax, eax
je 0x48b300
mov esi, 5
jmp 0x48b300
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.0040a450
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x48b313
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x48b340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea44d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
mov esi, ecx
xor edi, edi
test esi, esi
jne 0x48b391
lea edi, [ecx + 0x57]
jmp 0x48b484
xorps xmm0, xmm0
mov dword [ebp - 0x24], edi
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b3a1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.0040a370
mov dword [ebp - 4], 0
call fcn.0048edc0
test al, al
jne 0x48b3f3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x48b3ec
cmp dword [ebp - 0x18], 0
jne 0x48b3f3
mov ecx, 0x20019
jmp 0x48b40a
lea ecx, [ebp - 0x34]
call fcn.0048adc0
test al, al
mov ecx, 0x20119
mov edx, 0x20219
cmovne ecx, edx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push ecx
push 8
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x48b45b
mov eax, dword [ebp - 0x38]
push esi
push esi
mov byte [eax], 0
lea eax, [ebp - 0x1c]
push eax
push esi
push str.SymbolicLinkValue
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x48b44f
xor esi, esi
jmp 0x48b45b
cmp dword [ebp - 0x1c], 6
jne 0x48b45b
mov eax, dword [ebp - 0x38]
mov byte [eax], 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x48b469
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x48b47c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x34]
call fcn.0040a450
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x48b8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea48d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.0048d000
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push ecx
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.Cannot_query_registry_value
mov ecx, eax
call fcn.0048b6d0
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add esp, 4
cmp byte [ebp - 0x20], cl
cmove eax, ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x48b95c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48b95c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x14]
cmp ecx, 4
jne 0x48b980
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
call fcn.00416280
push eax
push 4
lea ecx, [ebp - 0x40]
call fcn.0048b650
push 0x51e050
lea eax, [ebp - 0x40]
push eax
call fcn.004a629b
int3
Function at 0x48bc90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea54f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x228
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x228], edi
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x238], edi
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x22c], 0
mov ecx, edx
push eax
movlpd qword [ebp - 0x20], xmm0
call fcn.0048d000
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x22c], 1
push eax
push 0
push esi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x48be3d
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x234], ecx
push str.Cannot_enumerate_subkeys
mov ecx, eax
call fcn.0048b6d0
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x220]
add esp, 4
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], eax
lea esi, [esi + eax*2]
push 0
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.004a2470
cmp eax, esi
jne 0x48be00
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x48bdf0
push dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push ecx
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00423660
add dword [edi + 4], 0x18
jmp 0x48be00
lea ecx, [ebp - 0x234]
push ecx
push ecx
push eax
mov ecx, edi
call fcn.0048c9b0
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x20]
inc eax
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], eax
push ecx
push eax
push esi
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x48bd80
xor eax, eax
cmp byte [ebp - 0x1c], al
cmove esi, eax
test esi, esi
je 0x48be5b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48be5b
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x48c100
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
mov edi, ecx
lea eax, [ebp - 0x208]
push 0
mov dword [ebp - 0x20c], edi
mov esi, edx
push eax
mov dword [ebp - 0x20c], edi
call fcn.004a6890
add esp, 0xc
mov dword [ebp - 0x20c], 0x200
lea eax, [ebp - 0x20c]
push eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push 3
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryKey]
push str.Cannot_query_kernel_mode_registry_key_path
mov ecx, eax
call fcn.0048b6d0
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
add esp, 4
shr ecx, 1
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
push ecx
push eax
mov ecx, edi
mov dword [edi + 0x14], 0
call fcn.0040a370
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a389b
mov esp, ebp
pop ebp
ret

Function at 0x48c1b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea638
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push ecx
push 0xb
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
call fcn.0048d000
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x268], eax
mov byte [ebp - 0x264], 0
mov byte [ebp - 0x3c], 0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.0048c320
mov byte [ebp - 4], 1
movsx eax, byte [ebp - 0x3c]
inc eax
sub eax, 0
je 0x48c269
sub eax, 1
je 0x48c23c
lea ecx, [ebp - 0x60]
call fcn.00438b10
jmp 0x48c269
mov eax, dword [ebp - 0x268]
xor ecx, ecx
cmp byte [ebp - 0x264], cl
cmove eax, ecx
mov dword [ebp - 0x268], eax
test eax, eax
je 0x48c269
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48c269
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.0048c100
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.0048bfe0
add esp, 0xc
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push str.Cannot_delete_registry_key
mov ecx, eax
call fcn.0048b6d0
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x48c2c4
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
call fcn.0040a450
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp byte [ebp - 0x1c], cl
cmove eax, ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x48c2f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48c2f7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
Function at 0x48c320
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea67d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push ecx
push 0xb
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.0048d000
push 0
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push str.Cannot_delete_registry_key_tree
mov ecx, eax
call fcn.0048b6d0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
add esp, 4
cmp byte [ebp - 0x18], cl
cmove eax, ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x48c3ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48c3ab
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret

Function at 0x48c3e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea6c8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
movsx eax, byte [esi + 0x22c]
xorps xmm0, xmm0
inc eax
movlpd qword [ebp - 0x18], xmm0
sub eax, 0
je 0x48c522
sub eax, 1
je 0x48c4b8
mov eax, dword [esi]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x244], eax
lea eax, [esi + 4]
push eax
call fcn.00438a20
mov eax, dword [esi + 0x228]
mov ecx, dword [esi + 0x224]
mov dword [ebp - 0x1c], eax
or ecx, 6
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x248]
call fcn.0048be80
mov bl, 1
mov byte [ebp - 0x14], bl
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x18], esi
test eax, eax
je 0x48c4a4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48c4a4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x248], 0
call fcn.00438b10
jmp 0x48c4c2
mov esi, dword [esi]
xor bl, bl
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], bl
push 4
push edi
push 4
push 0
mov dword [ebp - 4], 1
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Cannot_write_key_value
mov ecx, eax
call fcn.0048b6d0
xor eax, eax
add esp, 4
test bl, bl
cmove esi, eax
test esi, esi
je 0x48c506
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x48c506
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
push ecx
call fcn.0048ce30
int3
Function at 0x48c7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea74d
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0xac], eax
mov ebx, ecx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], ebx
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x80
push ecx
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48c890
push dword [ebp - 0x24]
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.0048cb20
mov ecx, dword [ebp - 0x20]
mov eax, ebx
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
jmp 0x48c970
cmp eax, 0xea
je 0x48c8a6
push str.Cannot_query_registry_value_size
mov ecx, eax
call fcn.0048b6d0
add esp, 4
mov esi, dword [ebp - 0x24]
test esi, esi
jne 0x48c8cb
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov eax, ebx
jmp 0x48c970
xor edi, edi
nop dword [eax]
mov ebx, dword [ebp - 0x1c]
mov edx, ebx
mov ecx, dword [ebp - 0x20]
sub edx, ecx
cmp esi, edx
jae 0x48c8e3
lea eax, [ecx + esi]
jmp 0x48c911
jbe 0x48c914
mov eax, dword [ebp - 0x18]
sub eax, ecx
cmp esi, eax
jbe 0x48c8fd
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.0048cd20
mov ecx, dword [ebp - 0x20]
jmp 0x48c914
sub esi, edx
push esi
push 0
push ebx
call fcn.004a6890
mov ecx, dword [ebp - 0x20]
lea eax, [esi + ebx]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xac]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x48c942
inc edi
cmp edi, 5
jge 0x48c98c
mov esi, dword [ebp - 0x24]
jmp 0x48c8d0
push str.Cannot_query_registry_value_data
mov ecx, eax
call fcn.0048b6d0
mov esi, dword [ebp - 0xb0]
add esp, 4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
push str.Cannot_query_registry_data_due_to_value_changed_too_often
lea ecx, [ebp - 0xc8]
call fcn.0048b6b0
push 0x51e180
lea eax, [ebp - 0xc8]
push eax
call fcn.004a629b
int3
Function at 0x48e0c0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi
Get disk size
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1b4]
call fcn.00490dd0
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 4
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
push 0x3c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push 0
push eax
call fcn.004a6890
add esp, 0x10
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x48e189
push 8
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
push 8
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
add esp, 8
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x48e1b0
push 8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
add esp, 4
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimes]
test eax, eax
je 0x48e229
push 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
push 4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
push 4
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
push 4
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
push 4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
push 4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
add esp, 0x18
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x48e24a
push 8
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
add esp, 4
rdtsc
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x1b4]
push 8
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00490e20
add esp, 4
lea eax, [ebp - 0x18]
push 0xf0000040
push 1
push 0x50b500
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x48e2ba
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 8
push dword [ebp - 0x18]
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x48e2af
push 8
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1b4]
call fcn.00490e20
add esp, 4
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1b4]
call fcn.00490e80
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
ret
Function at 0x48f200
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea9fd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x521104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0x10000
mov dword [ebp - 0x18], esi
call fcn.004a391f
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push 0x8000
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x48f2c2
cmp eax, 0x8000
ja 0x48f2c2
xorps xmm0, xmm0
mov ecx, esi
push eax
movups xmmword [esi], xmm0
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0040a370
push edi
call fcn.004a3911
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a389b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [ebp - 0x1c]
push str.Unable_to_retrieve_environment_variable__ls_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x34]
call fcn.004131f0
push 0x51dce8
lea eax, [ebp - 0x34]
push eax
call fcn.004a629b
int3