joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60103a70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x60103b66
mov eax, dword [esi + 0x102014]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x60103b65
push ebp
push edi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x14]
mov ecx, dword [esp + 0x428]
movzx eax, word [esp + 0x16]
push ecx
movzx ecx, word [esp + 0x1e]
push edx
movzx edx, word [esp + 0x28]
push eax
movzx eax, word [esp + 0x2a]
push ecx
movzx ecx, word [esp + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x40]
push str.__02i:_02i:_02i__i__i___i__r_n__08x__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, dword [esi + 0x10]
cmp ebp, 0x3ff
jae 0x60103b11
inc ebp
jmp 0x60103b13
xor ebp, ebp
mov edx, dword [esp + 0x428]
mov ecx, ebp
imul ecx, ecx, 0x408
lea edi, [ecx + esi]
mov dword [esp + 0x10], ebx
test dword [edi + 0x14], edx
je 0x60103b4c
push 0
lea eax, [esp + 0x14]
push eax
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
mov dword [edi + 0x14], ebx
cmp ebp, dword [esi + 0x10]
jne 0x60103b06
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
mov dword [esi + 0x102014], ebx
pop ebp
pop ebx
pop esi
add esp, 0x414
ret 4
Function at 0x601040c0
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 0x601040d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x601040ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x6010410e
cmp esi, eax
jae 0x601040e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x60104100
cmp esi, eax
jae 0x601040e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x60104f10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x601484fb
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, ecx
mov eax, dword [esi + 0x2e0]
test eax, eax
je 0x60104f47
mov al, 1
pop esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov ecx, dword [esi + 0x550]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x28]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x74], 0
call fcn.6010d4f0
add esp, 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push str.plugins
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], 1
call dword [0x6014d28c]
mov ecx, dword [esi + 0x550]
mov eax, dword [ecx]
call dword [eax + 0x38]
push eax
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 2
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [esp + 0x4c]
mov dword [esp + 8], eax
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], eax
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0x4c]
mov bl, al
mov byte [esp + 0x70], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x68]
mov al, bl
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x60105750
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60148547
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, dword [esp + 0x12c]
push edi
mov edi, dword [esp + 0x12c]
push 0
push 1
push esi
push edi
call fcn.601052a0
add esp, 0x10
test al, al
je 0x6010580b
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push esi
push edi
mov dword [esp + 0x138], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6010580b
mov esi, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esp + 0xc], esi
xor edi, edi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push edi
push esi
mov dword [esp + 0x30], 0x104
call ebx
inc edi
test eax, eax
jne 0x601057ff
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.60105750
add esp, 8
jmp 0x601057c9
test esi, esi
pop ebx
je 0x6010580b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret

Function at 0x601058c0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6014856c
push eax
mov eax, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
mov dword fs:[0], esp
sub esp, 0xc
test eax, eax
je 0x601058f3
push str.CCoreManip::DeleteRegKey_started
push 1
push 0x20
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x10
mov eax, dword [0x6015b6f8]
push ebx
mov ecx, 0x6015b6f8
xor bl, bl
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x24], 0
call fcn.6011be20
test eax, eax
jl 0x6010597b
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push ecx
push edx
call fcn.60105750
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esp, 8
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
je 0x601059ce
cmp eax, 2
je 0x601059ce
cmp eax, 3
je 0x601059ce
push eax
push str.CCoreManip::DeleteRegKey_SHDeleteKey_Error__d
push 4
push 0x20
push 0x7f1
lea ecx, [esp + 0x20]
call sym.scnkrnl.dll_public:_void___thiscall_CDevLog::constructor_int_
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CDevLog::operator___unsigned_long_int__unsigned_int__char_const__const
add esp, 0x14
mov eax, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test eax, eax
je 0x60105996
push 0x6014dd44
push 1
push 0x20
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x10
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x601059bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
mov bl, 1
jmp 0x6010597b
Function at 0x601059e0
Capabilities:
Delete registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60148586
push eax
mov eax, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
mov dword fs:[0], esp
sub esp, 0x10
test eax, eax
je 0x60105a13
push str.CCoreManip::DeleteRegValue_started
push 1
push 0x20
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x10
mov eax, dword [0x6015b6f8]
push ebx
mov ecx, 0x6015b6f8
xor bl, bl
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
mov dword [esp + 0x1c], 0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x2c], 1
call fcn.6011bf80
test eax, eax
jl 0x60105afb
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
lea ecx, [esp + 0x14]
push ecx
push 1
push edx
push eax
mov dword [esp + 0x24], 0
call fcn.601052a0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add esp, 0x10
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
push 0
mov esi, eax
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.601052a0
add esp, 0x10
test esi, esi
je 0x60105b71
cmp esi, 2
je 0x60105b71
cmp esi, 3
je 0x60105b71
push esi
push str.CCoreManip::DeleteRegValue_SHDeleteValue_Error__d
push 4
push 0x20
push 0x81d
lea ecx, [esp + 0x28]
call sym.scnkrnl.dll_public:_void___thiscall_CDevLog::constructor_int_
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CDevLog::operator___unsigned_long_int__unsigned_int__char_const__const
add esp, 0x14
pop esi
mov eax, dword [sym.scnkrnl.dll_class_CAVLog__g_pLog]
test eax, eax
je 0x60105b16
push str.CCoreManip::DeleteRegValue_ended
push 1
push 0x20
push eax
call sym.scnkrnl.dll_public:_void___cdecl_CAVLog::AddLogEntry_unsigned_long_int__unsigned_int__char_const__
add esp, 0x10
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60105b39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60105b5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov bl, 1
jmp 0x60105afa

Function at 0x60105f10
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x1c]
sub ecx, 5
je 0x60105f2d
dec ecx
je 0x60105f22
xor al, al
ret
mov eax, dword [eax]
mov dword [esp + 4], eax
jmp sym.scnkrnl.dll_public:_static_bool___cdecl_CCoreManip::DeleteRegValue_char_const__
mov eax, dword [eax]
mov dword [esp + 4], eax
jmp sym.scnkrnl.dll_public:_static_bool___cdecl_CCoreManip::DeleteRegKey_char_const__
Function at 0x60106480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x601485a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x6015b6f8]
push ebx
push edi
mov edi, ecx
mov ecx, 0x6015b6f8
mov byte [esp + 0xb], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x30]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x60106565
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
push 0x2e
push eax
call dword [sym.imp.MSVCR71.dll__mbsrchr]
add esp, 8
cmp eax, ebx
jne 0x601064e2
or eax, 0xffffffff
jmp 0x601064e4
sub eax, dword [esi]
inc eax
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.60109ff0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.6010a570
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x60106523
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x10]
call fcn.6010a420
lea eax, [esp + 0x10]
lea esi, [edi + 0x28]
push eax
mov ecx, esi
call fcn.60109300
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov edi, eax
call fcn.60109270
lea edx, [esp + 0x24]
push edx
push edi
push eax
mov dword [esp + 0x30], ebx
call fcn.60109d10
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
pop esi
je 0x60106569
mov bl, byte [esp + 0xb]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6010658f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x6010ad30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x601488d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov edx, dword [0x6015b6f8]
push edi
mov ecx, 0x6015b6f8
mov dword [esp + 8], esi
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x18], eax
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [0x6015b6f8]
xor edi, edi
mov ecx, 0x6015b6f8
mov dword [esp + 0x14], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x34], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 8], edi
mov dword [esi + 0x20], edi
push 0x1b
lea edi, [esi + 0x14]
push str.Variant_of_IEToobar.unknown
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.60104370
push edi
lea ecx, [esi + 0x2c]
call fcn.6010a570
mov ecx, dword [esp + 0xc]
mov eax, 3
mov dword [esi + 0xc], eax
mov dword [esi + 0x24], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x6010b5f0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x601489c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push edi
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor eax, eax
push 1
mov byte [esp + 0x44], 0
mov ecx, 0x41
lea edi, [esp + 0x45]
rep stosd dword es:[edi], eax
push 0x25
lea eax, [esp + 0x48]
push eax
push 0
mov dword [esp + 0x164], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x6010b65d
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x6010b6fe
push str._regsvr32.exe
lea ecx, [esp + 0x28]
call dword [0x6014d28c]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x6014e210
lea ecx, [esp + 0xc]
mov byte [esp + 0x158], 1
call dword [0x6014d28c]
mov edx, dword [ebp + 8]
push edx
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x6014e210
lea ecx, [esp + 0xc]
call dword [0x6014d28c]
push str.__u__s
lea ecx, [esp + 0xc]
call dword [0x6014d28c]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
mov byte [esp + 0x154], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
mov dword [esp + 0x154], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x6010bbc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60148a7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x154], ebx
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea edx, [esp + 0xc]
push edx
push 0x2001f
push ebx
push eax
push ecx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x6010bceb
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x154], 1
jmp 0x6010bc40
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x40], 0
mov ecx, 0x40
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
push esi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x6010bcbd
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + 4]
mov eax, dword [esi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
push esi
call fcn.6010cae0
mov ecx, dword [ebp + 0x10]
push 1
mov edi, eax
call fcn.6010c710
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov esi, dword [esp + 0xc]
mov dword [eax], edi
mov ecx, dword [esp + 0x10]
inc ecx
test ebx, ebx
mov dword [esp + 0x10], ecx
je 0x6010bc3e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test esi, esi
je 0x6010bceb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6010bd00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60148aa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], edi
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x15c], edi
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push edi
push eax
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x6010be61
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ebx, dword [ebp + 0x10]
mov byte [esp + 0x15c], 1
nop
xor eax, eax
mov byte [esp + 0x48], 0
mov ecx, 0x40
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x5c]
push edx
push eax
push esi
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x6010be33
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x28]
call dword [0x6014d294]
push 0x6014df50
lea ecx, [esp + 0x28]
call dword [0x6014d28c]
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x28]
call dword [0x6014d28c]
mov ecx, dword [ebp + 8]
push ebx
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.6010bd00
mov esi, dword [ebx + 4]
mov eax, dword [esi + 4]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push eax
push esi
mov ecx, ebx
call fcn.6010cae0
push 1
mov ecx, ebx
mov edi, eax
call fcn.6010c710
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
inc edx
test eax, eax
mov dword [esp + 0x14], edx
je 0x6010bd80
lea ecx, [esp + 0x24]
mov byte [esp + 0x15c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test esi, esi
je 0x6010be61
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret