joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476070
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x210], eax
test esi, esi
je 0x476202
test eax, eax
je 0x476202
push ebx
push 4
push 0x508310
push esi
call fcn.004983b9
add esp, 0xc
test eax, eax
je 0x476106
push 4
push 0x50751c
push esi
call fcn.004983b9
add esp, 0xc
test eax, eax
je 0x476106
mov eax, 0x3a
cmp ax, word [esi + 2]
jne 0x476135
mov eax, 0x5c
cmp ax, word [esi + 4]
jne 0x476135
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0049ddc6
add esp, 0xc
lea ebx, [ebp - 0x208]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
jmp 0x476155
push 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0049ddc6
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.004872da
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x47614f
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push edi
push dword [ebp - 0x210]
mov word [ebx], cx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4761c3
cmp eax, edi
jae 0x4761c3
mov ecx, dword [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476180
sub ecx, edx
sar ecx, 1
je 0x4761c3
lea eax, [ebp - 0x20c]
sub ebx, eax
sar ebx, 1
lea esi, [esi + ebx*2]
mov edx, esi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4761a3
sub edx, ebx
sar edx, 1
lea eax, [edx + 1]
add eax, ecx
cmp eax, edi
jbe 0x4761d6
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
sub edi, ecx
push edi
push esi
lea eax, [eax + ecx*2]
push eax
call fcn.0049ddc6
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0048471b
mov esp, ebp
pop ebp
ret
Function at 0x4764f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
mov esi, ecx
mov dword [esp + 4], edx
push edi
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x47650b
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47662f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x476557
cmp dword [esi + 0x14], 7
jbe 0x476530
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x476544
test al, 0x10
jne 0x47662f
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x47654f
xor eax, eax
nop
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 7
jbe 0x47656c
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
inc eax
push 2
push 0x508e28
push eax
call fcn.0040dd70
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4765e8
inc eax
mov dword [esp + 0x20], 0
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov ecx, esi
cmovb eax, dword [esi + 0x10]
mov dword [esp + 0x24], 0
cmp edi, 7
jbe 0x4765b2
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00423920
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
push dword [esp + 8]
cmova eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x10]
call fcn.00423780
mov eax, dword [esp + 0xc]
jmp 0x476560
mov eax, esi
cmp edi, 7
jbe 0x4765f1
mov eax, dword [esi]
push dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47662f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 7
mov edi, eax
jbe 0x476610
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x476620
test al, 0x10
jne 0x47662f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x476e80
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov bl, 1
nop word [eax + eax]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x476e9a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x476ef0
test al, 0x10
jne 0x476ef0
test bl, bl
je 0x476ef0
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x476eb8
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x476ecb
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x476ee8
add bl, 0xff
je 0x476e90
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x476e90
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x476f00
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca485
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x476f39
xor al, al
jmp 0x476feb
test dl, dl
jne 0x476f5a
cmp dword [edi + 0x14], 7
jbe 0x476f45
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x476feb
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 3
push 0x508e30
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00423920
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
mov edx, edi
lea ecx, [ebp - 0x1c]
push eax
call fcn.00477140
add esp, 0xc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00423780
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x1c]
je 0x476fd4
mov ecx, esi
nop dword [eax + eax]
add ecx, 0xffffffe8
xor dl, dl
add esi, 0xffffffe8
call fcn.00476f00
mov ecx, esi
cmp esi, dword [ebp - 0x1c]
jne 0x476fc0
xor dl, dl
mov ecx, edi
call fcn.00476f00
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1d], al
call fcn.0040b6f0
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
Function at 0x478260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x80000000
push esi
mov esi, edx
push edi
test ebx, ebx
je 0x47834e
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 0x10], 0
mov dword [ebp - 8], eax
test esi, esi
je 0x478300
cmp word [esi], 0
je 0x478300
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x4782fb
cmp edi, 5
jne 0x4782f0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 2
push 4
push 0
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4782fb
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x478327
mov eax, dword [ebp - 0x14]
jmp 0x478308
mov eax, 0x80000000
mov dword [ebp - 0x14], eax
push 4
push ebx
push 4
push 0
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete bl
cmp byte [ebp - 0x10], 0
jne 0x47833b
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.00478370
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048471b
mov esp, ebp
pop ebp
ret
Function at 0x478fc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca8ef
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x22c], edx
mov edi, ecx
mov dword [ebp - 0x224], edi
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x248], edi
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x228], 0
mov ecx, edx
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.0047aac0
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 - 0x1c]
lea eax, [ebp - 0x14]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 1
push eax
push 0
push esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, 0x103
je 0x4791b4
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x244], str.Cannot_enumerate_subkeys
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], eax
nop dword [eax]
nop word [eax + eax]
mov edx, dword [ebp - 0x22c]
xor eax, eax
cmp byte [edx + 0x22c], 1
mov byte [ebp - 4], 1
cmove eax, edx
sub esp, 0x10
mov dword [ebp - 0x240], eax
mov eax, esp
movups xmm0, xmmword [ebp - 0x244]
movups xmmword [eax], xmm0
call fcn.00478940
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x21c]
add esp, 0x10
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x230], eax
lea esi, [esi + eax*2]
push 0
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.004833e0
cmp eax, esi
jne 0x479174
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x479164
push dword [ebp - 0x224]
lea ecx, [ebp - 0x21c]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push ecx
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00423920
add dword [edi + 4], 0x18
jmp 0x479174
lea ecx, [ebp - 0x234]
push ecx
push ecx
push eax
mov ecx, edi
call fcn.0047a140
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
inc eax
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], eax
push ecx
push eax
push esi
mov dword [ebp - 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, 0x103
jne 0x4790d0
xor eax, eax
cmp byte [ebp - 0x18], al
cmove esi, eax
test esi, esi
je 0x4791d2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4791d2
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 - 0x10]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
Function at 0x4794e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x519100]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
push 0x200
mov edi, ecx
lea eax, [esp + 0x24]
push 0
mov dword [esp + 0x24], edi
mov esi, edx
push eax
mov dword [esp + 0x28], edi
call fcn.00486ef0
add esp, 0xc
mov dword [esp + 0x1c], 0x200
lea eax, [esp + 0x1c]
mov dword [esp + 8], str.Cannot_query_kernel_mode_registry_key_path
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
push eax
push 0x200
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], 0
push eax
push 3
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryKey]
movups xmm0, xmmword [esp + 8]
sub esp, 0x10
mov ecx, eax
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00478940
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
add esp, 0x10
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.00423920
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
Function at 0x4795c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x519100]
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
mov esi, ecx
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.0047aac0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x278], eax
mov byte [ebp - 0x274], 0
mov byte [ebp - 0x4c], 0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.00479760
mov byte [ebp - 4], 1
movsx eax, byte [ebp - 0x4c]
inc eax
sub eax, 0
je 0x47967d
sub eax, 1
je 0x47964e
lea ecx, [ebp - 0x70]
call fcn.00434b10
jmp 0x47967d
cmp byte [ebp - 0x274], 0
jne 0x479661
xor eax, eax
mov dword [ebp - 0x278], eax
jmp 0x479667
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x47967d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x47967d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.004794e0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 7
push ecx
push dword [ebp - 0x28]
cmova eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0
call fcn.004793b0
add esp, 0xc
mov dword [ebp - 0x48], str.Cannot_delete_registry_key
mov byte [ebp - 4], 5
xor eax, eax
cmp byte [esi + 0x22c], 1
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
cmove eax, esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0
call dword [sym.imp.ntdll.dll_NtDeleteKey]
movups xmm0, xmmword [ebp - 0x48]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.00478940
mov eax, dword [ebp - 0x18]
add esp, 0x10
test eax, eax
je 0x479707
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
call fcn.00423780
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 0x47973a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x47973a
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.0048471b
mov esp, ebp
pop ebp
ret
Function at 0x479760
Capabilities:
Delete 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 0x4caa1d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x28
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push ecx
push 0xb
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.0047aac0
mov byte [ebp - 4], 1
xor ecx, ecx
cmp byte [esi + 0x22c], 1
push ecx
push dword [ebp - 0x24]
cmovne esi, ecx
mov dword [ebp - 0x38], str.Cannot_delete_registry_key_tree
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
movups xmm0, xmmword [ebp - 0x38]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.00478940
mov eax, dword [ebp - 0x24]
xor ecx, ecx
add esp, 0x10
cmp byte [ebp - 0x20], cl
cmove eax, ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x479823
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x479823
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
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x479850
Capabilities:
Set 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 0x4caa68
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x519100]
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 - 0x258], edx
mov edi, ecx
movsx eax, byte [edi + 0x22c]
xorps xmm0, xmm0
inc eax
movlpd qword [ebp - 0x1c], xmm0
sub eax, 0
je 0x4799ed
sub eax, 1
je 0x47993e
mov eax, dword [edi]
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x250], eax
lea eax, [edi + 4]
push eax
call fcn.00434a20
mov eax, dword [edi + 0x228]
mov ecx, dword [edi + 0x224]
mov dword [ebp - 0x28], eax
or ecx, 6
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x254]
call fcn.004791f0
mov byte [ebp - 0x18], 1
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x47992a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x47992a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x254], 0
call fcn.00434b10
jmp 0x479947
mov esi, dword [edi]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x268], str.Cannot_write_key_value
push 4
push dword [ebp - 0x258]
mov byte [ebp - 4], 2
xor eax, eax
cmp byte [edi + 0x22c], 1
push 4
mov byte [ebp - 4], 1
cmove eax, edi
mov ecx, dword [ebx + 0x10]
push 0
push ecx
mov dword [ebp - 0x264], eax
mov eax, dword [ebx + 0x14]
push esi
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movups xmm0, xmmword [ebp - 0x268]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.00478940
xor eax, eax
add esp, 0x10
cmp byte [ebp - 0x18], al
cmove esi, eax
test esi, esi
je 0x4799cf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4799cf
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
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push ecx
call fcn.0047a4c0
int3
Function at 0x479a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x519100]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 4
push eax
push 0
push ecx
push dword [edx]
mov dword [esp + 0x20], str.Cannot_query_registry_value
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movups xmm0, xmmword [esp + 8]
sub esp, 0x10
mov ecx, esp
movups xmmword [ecx], xmm0
mov ecx, eax
call fcn.00478940
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov dword [esi], ecx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
Function at 0x47ac50
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 [0x519100]
xor eax, ebp
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1b4]
call fcn.0047d3d0
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.0047d420
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.0047d420
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.0047d420
push 0x3c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push 0
push eax
call fcn.00486ef0
add esp, 0x10
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x47ad19
push 8
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
push 8
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
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 0x47ad40
push 8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
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 0x47adb9
push 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
push 4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
push 4
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
push 4
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
push 4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
push 4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
add esp, 0x18
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x47adda
push 8
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
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.0047d420
add esp, 4
lea eax, [ebp - 0x18]
push 0xf0000040
push 1
push 0x509868
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47ae4a
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 0x47ae3f
push 8
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1b4]
call fcn.0047d420
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.0047d480
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.0048471b
mov esp, ebp
pop ebp
ret
Function at 0x47b6a0
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 0x4cac0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x519100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x18], esi
push 0x10000
mov dword [ebp - 0x1c], edx
call fcn.00484c9d
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push 0x8000
push edi
mov dword [ebp - 4], 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x47b762
cmp eax, 0x8000
ja 0x47b762
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.00423920
push edi
call fcn.00484967
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.0048471b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1c]
push ecx
push 0x2d
push str.Unable_to_retrieve_environment_variable__
push eax
lea ecx, [ebp - 0x30]
call fcn.00449460
push 0x516930
lea eax, [ebp - 0x30]
push eax
call fcn.00486900
int3