joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b174
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00496dcd
push eax
lea ecx, [ebp - 8]
call fcn.0040141e
cmp dword [ebp + 8], esi
je 0x43b219
push dword [ebp + 8]
call fcn.0058f15d
pop ecx
test eax, eax
je 0x43b219
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x5ea058
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x43b1de
push dword [ebp + 8]
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 2
push 0
push edi
push SysReAllocStringLen
call esi
test eax, eax
jne 0x43b207
push dword [ebp + 8]
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401019
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x43b226
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401019
xor eax, eax
pop esi
leave
ret
Function at 0x43be9e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
movzx esi, word [ebp + 8]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x43bedd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push esi
push str.___Error_finding_resource:__d__type:__s__with_error:__d
call fcn.004437b6
add esp, 0x10
xor al, al
jmp 0x43bfa1
push ebx
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x43bf00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push esi
push str.___Error_getting_the_size_of_resource:__d__type:__s__with_error:__d
jmp 0x43bf27
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x43bf33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push esi
push str.___Error_locking_resource:__d__type:__s__with_error:__d
call fcn.004437b6
add esp, 0x10
xor al, al
jmp 0x43bfa0
push ebx
push 2
mov dword [ebp + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x43bf99
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x43bf92
push ebx
push edi
push eax
call fcn.00594d10
and dword [ebp + 8], 0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x43bf8b
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0043be45
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp + 0xc], 0
sete al
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x43c3c6
Capabilities:
Get common file path

Disassembly:
push esi
push 0x104
mov esi, 0x6670f0
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x43c409
push edi
push esi
call fcn.0058f15d
cmp word [eax*2 + 0x6670ee], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
pop ecx
je 0x43c3fd
push 0x5d4dc0
push esi
call edi
push dword [esp + 0xc]
push esi
call edi
pop edi
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x43c40d
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0xe44]
sub esp, 0xec4
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0xe40], eax
mov eax, dword [ebp + 0xe58]
and dword [ebp + 4], 0
push ebx
mov ebx, dword [ebp + 0xe54]
push esi
push edi
mov edi, dword [ebp + 0xe50]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xe5c]
push 0x3c
mov dword [ebp], eax
mov eax, dword [ebp + 0xe64]
pop esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0058fa90
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xe60]
mov dword [ebp - 0x64], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x140
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x43c5f3
call fcn.00446301
test eax, eax
je 0x43c5f9
push 0x5ea60c
push dword [0x65b150]
call fcn.0043c3c6
pop ecx
push eax
call fcn.00446217
pop ecx
pop ecx
mov dword [ebp + 4], eax
test eax, eax
jne 0x43c4d3
xor eax, eax
jmp 0x43c619
push esi
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0058fa90
add esp, 0xc
mov eax, edi
neg eax
sbb eax, eax
lea ecx, [ebp + 0x828]
and eax, ecx
mov dword [ebp - 0x38], eax
mov eax, ebx
neg eax
sbb eax, eax
lea ecx, [ebp + 0xa30]
and eax, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], esi
mov esi, dword [ebp - 4]
mov eax, esi
neg eax
sbb eax, eax
lea ecx, [ebp + 8]
and eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp]
neg eax
sbb eax, eax
lea ecx, [ebp + 0xc38]
and eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xe60]
mov dword [ebp - 0x40], 0x140
mov dword [ebp - 0x28], eax
test edi, edi
je 0x43c54d
lea eax, [ebp + 0x828]
push eax
push edi
call fcn.0044646d
pop ecx
pop ecx
test ebx, ebx
je 0x43c560
lea eax, [ebp + 0xa30]
push eax
push ebx
call fcn.0044646d
pop ecx
pop ecx
test esi, esi
je 0x43c570
lea eax, [ebp + 8]
push eax
push esi
call fcn.0044646d
pop ecx
pop ecx
cmp dword [ebp], 0
je 0x43c587
lea eax, [ebp + 0xc38]
push eax
push dword [ebp]
call fcn.0044646d
pop ecx
pop ecx
lea eax, [ebp - 0x44]
push eax
call dword [ebp + 4]
test eax, eax
jne 0x43c5ee
test edi, edi
je 0x43c5a5
lea eax, [ebp + 0x828]
push eax
push edi
call fcn.0044646d
pop ecx
pop ecx
test ebx, ebx
je 0x43c5b8
lea eax, [ebp + 0xa30]
push eax
push ebx
call fcn.0044646d
pop ecx
pop ecx
test esi, esi
je 0x43c5c8
lea eax, [ebp + 8]
push eax
push esi
call fcn.0044646d
pop ecx
pop ecx
cmp dword [ebp], 0
je 0x43c5df
lea eax, [ebp + 0xc38]
push eax
push dword [ebp]
call fcn.0044646d
pop ecx
pop ecx
lea eax, [ebp - 0x44]
push eax
call dword [ebp + 4]
test eax, eax
je 0x43c4cc
mov eax, dword [ebp - 0xc]
jmp 0x43c5f6
mov eax, dword [ebp - 0x48]
mov dword [ebp + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x43c607
mov ecx, dword [ebp + 4]
mov dword [eax], ecx
jmp 0x43c616
cmp dword [ebp + 4], 0
je 0x43c616
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xe40]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f976
add ebp, 0xe44
leave
ret 0x1c
Function at 0x43c6ff
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c721
test al, 1
je 0x43c721
and eax, 0xfffffffe
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CopyFileW]

Function at 0x43c728
Capabilities:
Move file

Disassembly:
push 0x30
mov eax, 0x5bdd56
call fcn.0058f9b8
lea ecx, [ebp - 0x3c]
call fcn.00442bd7
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004964e5
mov byte [ebp - 4], 1
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
test byte [ebp + 0x10], 4
mov byte [ebp - 4], 3
jne 0x43c7a2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x43c7a2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004968d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00442c12
xor eax, eax
inc eax
jmp 0x43c8cd
push ebx
push 0x2001b
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x3c]
call fcn.00442f22
lea eax, [ebp - 0x28]
push eax
push str.PendingFileRenameOperations
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00442de4
mov eax, dword [ebp - 0x20]
and eax, 0x80000001
jns 0x43c7de
dec eax
or eax, 0xfffffffe
inc eax
je 0x43c7f0
push 0x5e006c
push dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
call fcn.00496bdc
mov dword [ebp - 4], 3
jmp 0x43c808
cmp dword [ebp + 8], ebx
jne 0x43c820
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
mov byte [ebp - 4], bl
jmp 0x43c8b7
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x5ea638
push eax
call fcn.00401518
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
call fcn.00496a66
cmp dword [ebp + 0xc], ebx
je 0x43c86d
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str.____s
push eax
call fcn.00401518
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
call fcn.00496a66
jmp 0x43c87d
push 0x5e006c
push dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
call fcn.00496bdc
lea eax, [ebp - 0x28]
push eax
push str.PendingFileRenameOperations
lea ecx, [ebp - 0x3c]
call fcn.00442c43
lea ecx, [ebp - 0x3c]
call fcn.004429ce
jmp 0x43c778
lea ecx, [ebp - 0x28]
call fcn.004968d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00442c12
xor eax, eax
call fcn.0058fa5d
ret 0xc
Function at 0x43cad7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
xor esi, esi
push edi
cmp dword [esp + 0xc], esi
je 0x43caef
xor eax, eax
mov word [0x66732c], ax
mov word [0x667330], ax
mov ax, word [0x667330]
movzx edi, word [0x667334]
test ax, ax
je 0x43cb04
movzx edi, ax
xor edx, edx
cmp word [0x66732c], dx
jne 0x43cbb2
mov ax, word [0x65b160]
push ebx
xor ebx, ebx
test ax, ax
je 0x43cba0
movzx ecx, ax
xor eax, eax
push ebp
mov eax, dword [eax + 0x65b164]
movzx ecx, cx
cmp di, cx
je 0x43cb8e
test esi, esi
je 0x43cb3d
test edx, edx
jne 0x43cb58
cmp eax, dword [0x667338]
jne 0x43cb58
mov ebp, ecx
xor ebp, edi
test ebp, 0x3ff
jne 0x43cb58
xor edx, edx
inc edx
mov esi, edx
jmp 0x43cb73
cmp word [0x66732c], 0
je 0x43cb6e
test esi, esi
jne 0x43cb7a
cmp eax, dword [0x667338]
jne 0x43cb7a
xor esi, esi
inc esi
xor edx, edx
mov word [0x66732c], cx
inc ebx
mov eax, ebx
imul eax, eax, 0xc
movzx ecx, word [eax + 0x65b160]
test cx, cx
jne 0x43cb27
jmp 0x43cb95
mov word [0x66732c], di
cmp word [0x66732c], 0
pop ebp
jne 0x43cbb1
push 0x5df688
call fcn.0043c9c6
pop ecx
mov word [0x66732c], ax
pop ebx
pop edi
pop esi
ret 4
Function at 0x43d65e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0xa60
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0xa60], eax
push 0x30
mov eax, 0x5bde8c
call fcn.0058f985
mov eax, dword [ebp + 0xa70]
mov esi, dword [ebp + 0xa6c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
xor edi, edi
push 0xa
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], edi
call fcn.00496ef8
mov eax, 0x100
push eax
lea ecx, [ebp + 0x450]
push ecx
push eax
lea ecx, [ebp + 0x250]
push ecx
push eax
lea eax, [ebp + 0x650]
push eax
push 3
lea eax, [ebp + 0xa58]
push eax
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], edi
call fcn.00590065
lea eax, [ebp + 0x650]
push eax
call fcn.0058f15d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x28
mov esi, 0x5db01c
test eax, eax
jbe 0x43d76e
lea eax, [ebp + 0xa58]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401287
lea eax, [ebp + 0x650]
push eax
lea ecx, [ebp - 0x10]
call fcn.004022ca
push edi
push 0x5de88c
lea ecx, [ebp - 0x10]
call fcn.00401d2f
test eax, eax
jl 0x43d762
push dword [ebp - 0x10]
lea eax, [ebp + 0x850]
push eax
call ebx
lea eax, [ebp + 0x850]
push esi
push eax
call fcn.0043d5ba
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x850]
push eax
call fcn.0043cc57
jmp 0x43d76e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00497110
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
mov edi, dword [ebp - 0x38]
mov byte [ebp - 4], 2
jmp 0x43d849
mov eax, edi
test edi, edi
je 0x43d89b
mov edi, dword [edi]
add eax, 8
push eax
lea ecx, [ebp - 0x10]
call fcn.0040227d
lea eax, [ebp + 0x450]
push eax
lea eax, [ebp + 0x250]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._s_s_s
push eax
call fcn.00401518
add esp, 0x14
push dword [ebp - 0x14]
lea eax, [ebp + 0x850]
push eax
call ebx
lea eax, [ebp + 0x850]
push esi
push eax
call fcn.0043d5ba
lea eax, [ebp + 0x850]
push esi
push eax
call fcn.0043d60c
add esp, 0x10
lea eax, [ebp]
push eax
lea eax, [ebp + 0x850]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x43d849
mov dword [ebp - 0x1c], 1
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x5d4ea8
push eax
call fcn.00401518
mov ecx, dword [ebp - 0x20]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.00497110
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43d80b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x43d788
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00497022
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401019
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa60]
xor ecx, ebp
call fcn.0058f976
add ebp, 0xa64
leave
ret 8
call fcn.004963bf
int3
Function at 0x43e565
Capabilities:
Reference sql statements

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x664e94]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x5be04a
call fcn.0058f985
mov esi, dword [ebp + 0x214]
mov ebx, dword [ebp + 0x218]
mov edi, ecx
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
and dword [ebp - 4], 0
mov ecx, ebx
call fcn.0040116b
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x18]
call fcn.0040141e
and dword [ebp - 0x10], 0
and dword [ebp - 0x1c], 0
push esi
lea eax, [ebp - 0x18]
push str.SELECT__FROM__Property__WHERE__Property__s
push eax
mov byte [ebp - 4], 1
call fcn.00401518
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push dword [edi + 8]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x43e637
push str.Failed_to_Open_Database_View
call fcn.004437b6
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0058f976
add ebp, 0x20c
leave
ret 8
push 0
push dword [ebp - 0x10]
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x43e674
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push str.Failed_to_Execute_Database_View
call fcn.004437b6
xor bl, bl
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401019
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401019
mov al, bl
jmp 0x43e612
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
push dword [ebp - 0x10]
mov edi, eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
test edi, edi
je 0x43e6ac
push esi
lea eax, [ebp - 0x14]
push str.Failed_to_fetch_the_DatabaseView_for_Property__s
push eax
call fcn.00401518
push dword [ebp - 0x14]
call fcn.0043dbb7
add esp, 0x10
mov bl, 1
jmp 0x43e65a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push 2
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x104
call sub.msi.dll_MsiRecordSetStreamA
push dword [ebp - 0x1c]
mov esi, eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
test esi, esi
je 0x43e6dd
push str.Failed_to_Get_Record_String_from_Database
jmp 0x43e652
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.00401287
jmp 0x43e6a8
Function at 0x4427ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
xor ebx, ebx
inc esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call fcn.0040116b
lea eax, [ebp - 4]
push eax
xor eax, eax
cmp byte [ebp + 0x18], bl
sete al
dec eax
and eax, 0x100
add eax, 0x20119
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x442878
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x18]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0x18], ebx
push dword [ebp - 4]
call esi
cmp eax, ebx
jne 0x44285c
push edi
push dword [ebp + 0x18]
call fcn.0059495a
pop ecx
mov edi, eax
lea eax, [ebp + 0x18]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
cmp eax, ebx
jne 0x442841
mov ecx, dword [ebp + 0x14]
push edi
call fcn.00401287
mov bl, 1
jmp 0x442852
push eax
push dword [ebp + 0x10]
push str.___ERROR:_RegistryGetString_failed_to_find_the_registry_value:__s__with_error:__d
call fcn.004437b6
add esp, 0xc
push edi
call fcn.005911fe
pop ecx
pop edi
jmp 0x44286d
push eax
push dword [ebp + 0x10]
push str.___ERROR:_RegistryGetString_failed_to_get_the_buffer_size_for_key:__s__with_error:__d
call fcn.004437b6
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4428a7
cmp byte [ebp + 0x18], bl
jne 0x442896
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004427ac
add esp, 0x14
mov bl, al
jmp 0x4428a7
push eax
push dword [ebp + 0xc]
push str.___ERROR:_RegistryGetString_failed_to_open_key:__s__with_error:__d
call fcn.004437b6
add esp, 0xc
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4428fe
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x442930
cmp eax, 2
je 0x442930
push eax
lea ecx, [ebp - 0xc]
call fcn.0043a39a
push 0x639fc4
lea eax, [ebp - 0xc]
push eax
call fcn.005902bc
leave
ret 4

Function at 0x44296f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x442999
push str.CRegistryKey::SetValueSZ:_parameter_aValue_is_NULL.
lea ecx, [ebp - 0xc]
call fcn.0043a37b
push 0x639fc4
lea eax, [ebp - 0xc]
push eax
call fcn.005902bc
push dword [ebp + 0xc]
call fcn.0058f15d
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
je 0x4429ca
push eax
lea ecx, [ebp - 0xc]
call fcn.0043a39a
jmp 0x44298b
leave
ret 8
Function at 0x442cd8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x5beb7f
call fcn.0058f985
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 0x1c], 4
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x442d65
cmp eax, 2
jne 0x442d55
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push str.Key_doesnt_have_value__s
push eax
call fcn.00401518
add esp, 0xc
push dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
call fcn.004428b2
push 0x64056c
lea eax, [ebp - 0x28]
push eax
call fcn.005902bc
push eax
lea ecx, [ebp - 0x28]
call fcn.0043a39a
push 0x639fc4
jmp 0x442d4c
cmp dword [ebp - 0x14], 4
je 0x442da9
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x5ec2c0
push eax
mov dword [ebp - 4], 1
call fcn.00401518
add esp, 0xc
push dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.004428e6
push 0x64055c
lea eax, [ebp - 0x34]
jmp 0x442d4f
mov eax, dword [ebp - 0x18]
call fcn.0058fa5d
ret 4

Function at 0x442de4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x5bebb2
call fcn.0058f985
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x10], ebx
call fcn.00496684
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call esi
cmp eax, ebx
je 0x442e71
cmp eax, 2
jne 0x442e61
call fcn.00496dcd
push eax
lea ecx, [ebp + 0xc]
call fcn.0040141e
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push str.Key_doesnt_have_value__s
push eax
mov dword [ebp - 4], ebx
call fcn.00401518
add esp, 0xc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.004428b2
push 0x64056c
lea eax, [ebp - 0x2c]
push eax
call fcn.005902bc
push eax
lea ecx, [ebp - 0x2c]
call fcn.0043a39a
push 0x639fc4
jmp 0x442e58
cmp dword [ebp - 0x14], 7
je 0x442eb2
call fcn.00496dcd
push eax
lea ecx, [ebp + 0xc]
call fcn.0040141e
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push str.Key_value__s_is_not_of_type_SZ.
push eax
mov dword [ebp - 4], 1
call fcn.00401518
add esp, 0xc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.004428e6
push 0x64055c
jmp 0x442e58
lea ecx, [ebp - 0x20]
call fcn.00436875
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.004368ac
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00436911
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call esi
cmp eax, ebx
je 0x442f00
push eax
lea ecx, [ebp - 0x38]
call fcn.0043a39a
push 0x639fc4
lea eax, [ebp - 0x38]
jmp 0x442e5b
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.00442a07
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call fcn.004368a1
call fcn.0058fa5d
ret 8