joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x401e30
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x401ea0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x401e80
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401350
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x404d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5425db
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x599980]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
push 0x3ff
lea eax, [esp + 0xa9]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov byte [esp + 0xb0], 0
call fcn.00515e10
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
add esp, 0xc
push 0
push 0
push 0
push 0
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0xa8]
push 0
push edx
mov ebp, eax
call fcn.00515e10
mov edi, dword [edi]
add esp, 0xc
push 0
push 0
push ebp
lea eax, [esp + 0xb0]
push eax
push esi
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebx]
movzx ecx, word [esp + 0x4bc]
mov eax, dword [0x5a1364]
push ebx
push ecx
push eax
mov byte [esp + ebp + 0xb0], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edx, dword [0x5a1360]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [0x5a1360]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x404e3a
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.load_resource_failed:_LastError:_d__File_Name:_s
push 0x2c0
mov ecx, str..Setup.cpp
call fcn.0040f630
add esp, 0x10
jmp 0x404eee
lea edx, [esp + 0x14]
push edx
call fcn.00405710
push 0x32
lea ecx, [esp + 0xa8]
lea esi, [esp + 0x24]
mov dword [esp + 0x4b8], 0
call fcn.00406f80
test eax, eax
jne 0x404e88
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x1c]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x404e80
or eax, 4
push 0
push eax
call fcn.00401990
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.004050d0
lea esi, [esp + 0x20]
call fcn.00407060
test eax, eax
jne 0x404ec5
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x1c]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x404ebd
or eax, 4
push 0
push eax
call fcn.00401990
lea ecx, [esp + 0x70]
mov dword [esp + 0x4b4], 0xffffffff
call fcn.00405800
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x74], vtable.std::ios_base.0
call fcn.00533c97
add esp, 4
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.00512dac
add esp, 0x4a4
ret
Function at 0x405710
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x542477
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x5751b0
mov dword [edi + 8], 0x5761c0
mov dword [edi + 0x5c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0xc]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.00406f10
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.004079c0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x5a15f4]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4079c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x54195b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00533cd3
push 4
mov dword [esp + 0x20], 0
call fcn.004133fb
mov edi, eax
add esp, 4
test edi, edi
je 0x407a3e
call fcn.005338b0
mov dword [edi], eax
call fcn.005336de
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00533602
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407a33
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0053362a
jmp 0x407a40
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x409da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409db9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409df4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x409df0
lea ebx, [ebx]
cmp esi, eax
jae 0x409df4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409de0
cmp esi, eax
jb 0x409dfa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ca80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5425db
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x599980]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
push 0x3ff
lea eax, [esp + 0xa9]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov byte [esp + 0xb0], 0
call fcn.00515e10
mov eax, dword [edi]
mov esi, dword [eax - 0xc]
add esp, 0xc
push 0
push 0
push 0
push 0
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0xa8]
push 0
push edx
mov ebp, eax
call fcn.00515e10
mov edi, dword [edi]
add esp, 0xc
push 0
push 0
push ebp
lea eax, [esp + 0xb0]
push eax
push esi
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebx]
movzx ecx, word [esp + 0x4bc]
mov eax, dword [0x5a1364]
push ebx
push ecx
push eax
mov byte [esp + ebp + 0xb0], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edx, dword [0x5a1360]
mov esi, eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [0x5a1360]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x40cb9a
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.load_resource_failed:_LastError:_d__File_Name:_s
push 0xb4
mov ecx, str..SetupDlg2.cpp
call fcn.0040f630
add esp, 0x10
jmp 0x40cc4e
lea edx, [esp + 0x14]
push edx
call fcn.00405710
push 0x32
lea ecx, [esp + 0xa8]
lea esi, [esp + 0x24]
mov dword [esp + 0x4b8], 0
call fcn.00406f80
test eax, eax
jne 0x40cbe8
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x1c]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x40cbe0
or eax, 4
push 0
push eax
call fcn.00401990
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.004050d0
lea esi, [esp + 0x20]
call fcn.00407060
test eax, eax
jne 0x40cc25
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x1c]
lea ecx, [esp + ecx + 0x14]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x40cc1d
or eax, 4
push 0
push eax
call fcn.00401990
lea ecx, [esp + 0x70]
mov dword [esp + 0x4b4], 0xffffffff
call fcn.00405800
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x74], vtable.std::ios_base.0
call fcn.00533c97
add esp, 4
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.00512dac
add esp, 0x4a4
ret 4
Function at 0x40d660
Capabilities:
Get disk information

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
push str.____
push eax
call fcn.00514af1
add esp, 8
test eax, eax
je 0x40d685
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40d726
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jle 0x40d726
push 0x3a
push eax
call fcn.0051483f
add esp, 8
test eax, eax
je 0x40d726
mov ecx, dword [esi]
sub eax, ecx
sar eax, 1
cmp eax, 1
jne 0x40d726
cmp dword [ecx - 0xc], 0
jl 0x40d6d0
push 0x575fa8
push ecx
call fcn.00514a90
add esp, 8
test eax, eax
je 0x40d6d0
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40d6f3
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x40d726
push 0x575fb0
push eax
call fcn.00514a90
add esp, 8
test eax, eax
je 0x40d726
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x40d726
add eax, 2
push eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0040ef10
mov esi, dword [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40d72b
cmp eax, 2
je 0x40d72b
cmp eax, 6
je 0x40d72b
lea ecx, [esp + 4]
call fcn.00409d50
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d747
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x40d7c0
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x541898
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0
mov dword [esp + 0x30], 2
mov edx, dword [esp + 0x38]
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d8e4
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x40d838
mov eax, esi
push eax
lea ecx, [esp + 0x2c]
call fcn.0040a0b0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ecx, [esi + esi]
push ecx
push eax
mov eax, dword [esp + 0x10]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d909
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d92e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x40d970
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x541ea8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
call fcn.00409bd0
add esp, 4
lea esi, [eax + 0x10]
lea eax, [esp + 0xc]
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40d9d3
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edi, eax
xor ecx, ecx
test edi, edi
sete cl
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
mov edi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d9fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x40da40
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0xbc8
mov eax, dword [0x599980]
xor eax, esp
mov dword [esp + 0xbc4], eax
mov ecx, dword [esp + 0xbcc]
push esi
push edi
mov edi, dword [esp + 0xbd8]
lea eax, [esp + 8]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40dacb
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xbdc]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dac0
mov ecx, dword [esp + 8]
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
or edx, 0xffffffff
mov esi, eax
mov eax, dword [esp + 0xbd4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40daf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xbd8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xbcc]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00512dac
add esp, 0xbc8
ret
Function at 0x40db40
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x541898
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 0xf003f
mov dword [esp + 0x20], 2
mov ecx, dword [esp + 0x28]
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dbc7
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], edi
mov ecx, dword [eax - 0xc]
lea esi, [ecx + ecx]
jle 0x40dbaf
mov edx, ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.0040a0b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
push esi
push eax
mov eax, dword [esp + 0x2c]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40dbc9
xor edi, edi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dbf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40dc60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x542382
mov eax, dword fs:[0]
push eax
sub esp, 0xbd0
mov eax, dword [0x599980]
xor eax, esp
mov dword [esp + 0xbcc], eax
mov eax, dword [0x599980]
xor eax, esp
push eax
lea eax, [esp + 0xbd4]
mov dword fs:[0], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xbdc], 2
call fcn.00414031
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dcc8
push 0x80004005
call fcn.0040a200
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [esp + 0xbe4]
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dd4c
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xbec]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dd4c
lea edx, [esp + 0x18]
push edx
push 0x575fb8
push esi
call fcn.00409880
add esp, 0xc
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0xbdc], 1
mov eax, dword [esp + 0xbe4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xbdc], 0
mov eax, dword [esp + 0xbe8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ddad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xbd4]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0xbcc]
xor ecx, esp
call fcn.00512dac
add esp, 0xbdc
ret