joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f820
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, edx
mov esi, ecx
mov ecx, eax
mov dword [ebp - 8], eax
and ecx, 1
push edi
mov dword [ebp - 4], ecx
je 0x43f84f
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x43f844
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43f859
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x43f907
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 2
je 0x43f91d
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x43f888
mov ecx, dword [esi]
push eax
push ecx
push 0x4ae168
push 0x4ae1b4
push 5
call fcn.00453ac0
add esp, 0x14
mov ecx, esi
call fcn.00446890
test al, al
je 0x43f907
cmp dword [ebp - 4], 0
je 0x43f8c7
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x43f8b9
mov ecx, dword [esi]
mov eax, dword [ebp - 8]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43f8d1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x43f907
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x43f8f1
mov ecx, dword [esi]
push eax
push ecx
push 0x4ae1d0
push 0x4ae1b4
push 5
call fcn.00453ac0
add esp, 0x14
test bl, bl
jne 0x43f914
mov ecx, esi
call fcn.0043f300
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43f930
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x43f93f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x43f9c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
sub ecx, 2
je 0x43f9be
sub ecx, 1
je 0x43f9be
mov ecx, esi
call fcn.00446890
test al, al
je 0x43f990
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43f978
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x43f990
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test bl, bl
jne 0x43f9d2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43f99e
mov eax, dword [esi]
push edi
push eax
push 0x4ae228
push 0x4ae280
push 5
call fcn.00453ac0
add esp, 0x14
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.0043f300
mov al, 1
pop edi
pop esi
pop ebx
ret
test bl, bl
jne 0x43f9d2
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.0043f300
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x44c2e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497c75
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c6190]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
je 0x44c3c4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44c325
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44c339
test al, 0x10
jne 0x44c3c4
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0044de70
add esp, 0xc
test al, al
je 0x44c3ae
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0044c2e0
add esp, 8
test al, al
je 0x44c3ae
cmp dword [esi + 0x14], 8
jb 0x44c39e
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44c3ae
mov bl, 1
jmp 0x44c3b0
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.004022e0
lea ecx, [ebp - 0x28]
call fcn.004022e0
mov al, bl
jmp 0x44c3c6
mov al, 1
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.00465ee7
mov esp, ebp
pop ebp
ret
Function at 0x44c780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44c78e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x44d630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44d63e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44d652
test al, 0x10
je 0x44d652
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x44d660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x44d66e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44d682
test al, 0x10
jne 0x44d682
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x44e2c0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49810e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4c6190]
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, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], 0
movups xmmword [edi], xmm0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x34], eax
mov dword [edi + 0xc], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], 1
push ecx
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push 0
push eax
push 0
mov dword [ebp - 0x14], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [edi + 0xc], eax
cmp eax, 0x7a
jne 0x44e471
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44e471
cmp dword [ebp - 0x14], 0
je 0x44e471
push eax
mov ecx, edi
mov dword [edi + 0xc], 0
call fcn.0044e730
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x30], eax
test eax, eax
je 0x44e416
cmp eax, 0x7fffffff
ja 0x44e48e
lea esi, [eax + eax]
cmp esi, 0x1000
jb 0x44e3df
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x44e493
push eax
call fcn.00465f2b
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x44e498
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x44e3f0
test esi, esi
je 0x44e3ee
push esi
call fcn.00465f2b
add esp, 4
jmp 0x44e3f0
xor eax, eax
mov edx, dword [ebp - 0x30]
add esi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
lea ecx, [edx + edx]
push ecx
push 0
push eax
call fcn.00468120
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x20], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
push dword [edi]
push dword [ebp - 0x34]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x44e43e
call esi
mov dword [edi + 0xc], eax
mov eax, dword [edi]
mov dword [edi + 4], eax
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x44e471
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x44e467
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44e498
push ecx
push edx
call fcn.00465ef5
add esp, 8
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.00465ee7
mov esp, ebp
pop ebp
ret
call fcn.00401d20
call fcn.00402260
call fcn.00469eed
int3
Function at 0x44e4c0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push 0x20
push 2
push eax
mov word [ebp - 0xc], 0x500
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x44e532
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.00465ee7
mov esp, ebp
pop ebp
ret
Function at 0x44ebb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x5c], esi
lea edi, [ecx + 2]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x6c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ebe3
sub ecx, edi
sar ecx, 1
lea edi, [ecx + 3]
mov dword [ebp - 0x60], edi
test edx, edx
jne 0x44ec2a
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004663b5
push esi
push 0x49afe8
push dword [ebp - 0x60]
mov edi, eax
push edi
call fcn.0044ed60
add esp, 0x14
jmp 0x44ec76
mov ecx, edx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ec30
sub ecx, edx
mov edx, 2
sar ecx, 1
lea esi, [ecx + 1]
xor ecx, ecx
add esi, edi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004663b5
push dword [ebp - 0x64]
mov edi, eax
push dword [ebp - 0x5c]
push 0x49aff4
push esi
push edi
call fcn.0044ed60
mov esi, dword [ebp - 0x5c]
add esp, 0x18
cmp eax, 0xffffffff
jne 0x44ec97
push edi
call fcn.004663be
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465ee7
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x44ec84
test ebx, ebx
jne 0x44ecd3
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0x44
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
jmp 0x44ecf8
movups xmm0, xmmword [ebx]
mov eax, dword [ebx + 0x40]
mov dword [ebp - 8], eax
movups xmmword [ebp - 0x48], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [ebp - 0x38], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [ebx + 0x30]
movups xmmword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
shr eax, 8
push ecx
push dword [ebp - 0x68]
and eax, 1
xorps xmm0, xmm0
push dword [ebp - 0x6c]
movups xmmword [ebp - 0x58], xmm0
push dword [ebp + 0x10]
push eax
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push edi
test eax, eax
je 0x44ec7c
call fcn.004663be
add esp, 4
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00465ee7
mov esp, ebp
pop ebp
ret
Function at 0x450570
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax + 8]
push esi
or edx, 2
mov dword [ebp - 0xc], eax
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0xc]
jb 0x4505a6
mov ecx, dword [ecx]
lea esi, [ebp - 8]
push esi
push edx
push 0
push ecx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 8]
test esi, esi
je 0x4505d2
cmp dword [edi + 0x14], 8
jb 0x4505c6
mov edi, dword [edi]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4505e0
mov ecx, dword [ebp - 0xc]
push eax
push ebx
call fcn.0044f5e0
mov bl, al
jmp 0x4505f6
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0
test ebx, ebx
je 0x4505f4
mov dword [ebx], 0
mov bl, 1
test esi, esi
je 0x450601
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4509c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 8]
push esi
or eax, 0x20019
mov dword [ebp - 0x10], 0
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x14]
jb 0x4509fe
mov ecx, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push eax
push 0
push ecx
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x450a23
push eax
push edi
mov ecx, ebx
call fcn.0044f5e0
mov bl, al
jmp 0x450a96
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
cmp dword [eax + 0x14], 8
jb 0x450a3c
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 8]
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
cmp ecx, 4
je 0x450a72
test ecx, ecx
je 0x450a72
mov dword [ebx + 0xc], 2
test edi, edi
je 0x450a6e
mov dword [edi], 2
xor bl, bl
jmp 0x450a96
test eax, eax
je 0x450a83
push eax
push edi
mov ecx, ebx
call fcn.0044f5e0
mov bl, al
jmp 0x450a96
mov dword [ebx + 0xc], 0
test edi, edi
je 0x450a94
mov dword [edi], 0
mov bl, 1
test esi, esi
je 0x450aa1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465ee7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x450de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49851d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c6190]
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 ebx, ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 8]
or ecx, 0x20019
mov dword [ebp - 0x1c], 0
cmp dword [eax + 0x14], 8
jb 0x450e34
mov eax, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push ecx
push 0
push eax
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x450e8a
cmp dword [edi + 0x14], 8
mov ecx, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jb 0x450e70
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push edx
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
je 0x450e9d
push ecx
push esi
mov ecx, ebx
call fcn.0044f5e0
mov edi, dword [ebp - 0x1c]
mov bl, al
jmp 0x450f24
cmp dword [ebp - 0x18], 7
je 0x450ebb
mov dword [ebx + 0xc], 2
test esi, esi
je 0x450eb4
mov dword [esi], 2
mov edi, dword [ebp - 0x1c]
xor bl, bl
jmp 0x450f24
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
call fcn.00440550
cmp dword [ebp - 0x14], 0
je 0x450f0e
cmp dword [edi + 0x14], 8
mov eax, dword [ebp - 0x20]
jb 0x450ed7
mov edi, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push dword [eax]
lea eax, [ebp - 0x18]
push eax
push 0
push edi
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x450f11
mov ecx, dword [ebp - 0x20]
push 0
call fcn.00440550
push dword [ebp - 0x24]
mov ecx, ebx
push esi
call fcn.0044f5e0
mov bl, al
jmp 0x450f24
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0xc], 0
test esi, esi
je 0x450f22
mov dword [esi], 0
mov bl, 1
test edi, edi
je 0x450f2f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
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.00465ee7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x451540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49851d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c6190]
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 edx, ecx
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
or ecx, 0x20019
mov dword [ebp - 0x1c], 0
cmp dword [eax + 0x14], 8
jb 0x451597
mov eax, dword [eax]
lea edi, [ebp - 0x1c]
push edi
push ecx
push 0
push eax
push dword [edx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x451644
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea edi, [esi + 0x10]
nop dword [eax]
mov ecx, dword [edi]
inc eax
shr eax, 1
cmp eax, ecx
ja 0x4515ed
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4515e3
mov ecx, dword [esi]
xor edx, edx
mov dword [edi], eax
mov word [ecx + eax*2], dx
jmp 0x4515f9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040ed20
push 0
mov ecx, esi
call fcn.0040fa00
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x45160c
mov ecx, dword [ebx]
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x45162d
mov eax, dword [ebp - 0x14]
jmp 0x4515d0
test eax, eax
je 0x451657
cmp dword [esi + 0x14], 8
jb 0x451639
mov esi, dword [esi]
xor ecx, ecx
mov dword [edi], 0
mov word [esi], cx
mov ecx, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call fcn.0044f5e0
mov bl, al
jmp 0x451700
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x451692
cmp eax, 2
je 0x451692
cmp dword [esi + 0x14], 8
jb 0x45166c
mov esi, dword [esi]
xor eax, eax
mov dword [edi], 0
mov word [esi], ax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x45168e
mov dword [eax], 2
xor bl, bl
jmp 0x451700
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi]
shr eax, 1
cmp eax, ecx
ja 0x4516b1
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4516a7
mov ecx, dword [esi]
xor edx, edx
mov dword [edi], eax
mov word [ecx + eax*2], dx
jmp 0x4516bd
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040ed20
mov eax, dword [edi]
test eax, eax
je 0x4516e7
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x4516cf
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0
jne 0x4516e7
dec eax
cmp edx, 8
jb 0x4516df
mov esi, dword [esi]
xor ecx, ecx
mov dword [edi], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4516fe
mov dword [eax], 0
mov bl, 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45170e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
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.00465ee7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4518c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4985eb
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4c6190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x220], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x224], ecx
mov ecx, dword [edx + 8]
or ecx, 0x20019
mov dword [ebp - 0x214], 0
cmp dword [eax + 0x14], 8
jb 0x45191f
mov eax, dword [eax]
lea edi, [ebp - 0x214]
push edi
push ecx
push 0
push eax
push dword [edx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x451a95
push esi
push dword [esi + 4]
push dword [esi]
call fcn.00401cb0
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
xor edi, edi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x451a6c
mov dword [ebp - 0x23c], eax
push dword [ebp - 0x218]
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x23c]
mov word [ebp - 0x23c], ax
mov byte [ebp - 4], al
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x228], 7
call fcn.00402010
mov eax, dword [esi + 4]
mov byte [ebp - 4], 2
cmp eax, dword [esi + 8]
je 0x451a0d
movups xmm0, xmmword [ebp - 0x23c]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x22c]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov ecx, 7
add dword [esi + 4], 0x18
mov word [ebp - 0x23c], ax
jmp 0x451a22
lea ecx, [ebp - 0x23c]
push ecx
push eax
mov ecx, esi
call fcn.00409d80
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x451a66
mov edx, dword [ebp - 0x23c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x451a56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451b0e
push ecx
push edx
call fcn.00465ef5
add esp, 8
inc edi
jmp 0x451963
mov eax, dword [ebp - 0x21c]
inc edi
test eax, eax
je 0x451963
cmp eax, 0x103
je 0x451aab
push esi
push dword [esi + 4]
push dword [esi]
call fcn.00401cb0
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
push eax
push dword [ebp - 0x224]
call fcn.0044f5e0
xor esi, esi
jmp 0x451ade
mov eax, dword [ebp - 0x220]
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x451ac8
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x451aef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00465ee7
mov esp, ebp
pop ebp
ret 0xc
call fcn.00469eed
int3