joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b80
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41af6c
call fcn.0041a140
sub esp, 0x104
mov eax, dword [0x429080]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x10], eax
call fcn.00408ada
push 0x41c2cc
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.MMVCR70.dll__wfopen]
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x408c0f
test byte [edi + 0xc], 0x10
jne 0x408c06
mov esi, 0x80
push esi
lea eax, [ebp - 0x110]
push ebx
push eax
call sub.MMVCR70.dll_memset
push edi
push esi
lea eax, [ebp - 0x110]
push 1
push eax
call dword [sym.imp.MMVCR70.dll_fread]
add esp, 0x1c
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x24]
call fcn.00414c40
test byte [edi + 0xc], 0x10
je 0x408bce
push edi
call dword [sym.imp.MMVCR70.dll_fclose]
jmp 0x408c1d
push dword [ebp + 8]
push 0x41ed08
call fcn.00419ffe
pop ecx
pop ecx
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MMVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
call fcn.00408a3f
push 0x42
lea eax, [ebp - 0x90]
push ebx
push eax
call sub.MMVCR70.dll_memset
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x10
call fcn.00407c58
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
lea eax, [ebp - 0x90]
push eax
push edi
call dword [sym.imp.MMVCR70.dll_wcsncpy]
add esp, 0x24
lea ecx, [ebp - 0x24]
mov word [edi + esi*2 - 2], bx
call fcn.00402473
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0041a123
leave
ret
Function at 0x40a930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b081
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push str.BER_decode_error
lea ecx, [esp + 0xc]
mov dword [esp + 8], esi
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040a350
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov dword [esi], vtable.CryptoPP::BERDecodeErr.0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x40b600
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.0040b440
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], eax
call fcn.0040b510
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0040b440
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b66a
push eax
call sub.MMVCR70.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x40ebb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b291
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push str.Integer:_division_by_zero
lea ecx, [esp + 0xc]
mov dword [esp + 8], esi
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040a350
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov dword [esi], vtable.CryptoPP::Integer::DivideByZero.0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40ebc8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b291
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push str.Integer:_division_by_zero
lea ecx, [esp + 0xc]
mov dword [esp + 8], esi
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040a350
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov dword [esi], vtable.CryptoPP::Integer::DivideByZero.0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x410510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x3c]
push 1
push edi
mov esi, ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0040be40
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 8]
mov eax, dword [edx + 4]
push ecx
lea ecx, [esp + eax + 0xc]
push edi
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0040f4d0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc

Function at 0x410580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [edi]
xor ebx, ebx
cmp eax, ecx
mov dword [esp + 0xc], ebx
mov eax, edi
jb 0x4105b3
mov eax, esi
mov ecx, dword [eax]
push ecx
push ebx
lea ecx, [esp + 0x18]
call fcn.0040f3c0
mov eax, dword [esi + 8]
mov dword [esp + 0x24], ebx
mov ebx, 1
cmp eax, ebx
mov eax, dword [edi + 8]
je 0x4105f1
cmp eax, ebx
push edi
push esi
je 0x4105e5
lea edx, [esp + 0x18]
push edx
call fcn.0040f6f0
jmp 0x410613
lea eax, [esp + 0x18]
push eax
call fcn.0040f7e0
jmp 0x410613
cmp eax, ebx
je 0x410603
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.0040f7e0
jmp 0x410613
push edi
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0040f6f0
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00410250
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edi, edx
push edx
rep stosd dword es:[edi], eax
call sub.MMVCR70.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x20]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x410660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [edi]
xor ebx, ebx
cmp eax, ecx
mov dword [esp + 0xc], ebx
mov eax, edi
jb 0x410693
mov eax, esi
mov ecx, dword [eax]
push ecx
push ebx
lea ecx, [esp + 0x18]
call fcn.0040f3c0
mov eax, dword [esi + 8]
mov dword [esp + 0x24], ebx
mov ebx, 1
cmp eax, ebx
mov eax, dword [edi + 8]
je 0x4106c5
cmp eax, ebx
push edi
push esi
jne 0x4106dd
lea eax, [esp + 0x18]
push eax
call fcn.0040f6f0
jmp 0x4106e7
cmp eax, ebx
je 0x4106db
push edi
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.0040f6f0
mov dword [esp + 0x24], ebx
jmp 0x4106e7
push esi
push edi
lea edx, [esp + 0x18]
push edx
call fcn.0040f7e0
mov esi, dword [esp + 0x38]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00410250
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edi, edx
push edx
rep stosd dword es:[edi], eax
call sub.MMVCR70.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x20]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4107a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b348
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
mov ecx, ebp
call fcn.0040f450
mov ebx, dword [esp + 0x60]
mov ecx, ebx
mov edi, eax
call fcn.0040f450
mov esi, eax
test esi, esi
jne 0x4107f2
lea ecx, [esp + 0x1c]
call fcn.0040ebb0
push 0x42261c
lea eax, [esp + 0x20]
push eax
call sub.MMVCR70.dll__CxxThrowException
push ebx
mov ecx, ebp
call fcn.0040fd40
cmp eax, 0xffffffff
jne 0x410834
mov esi, dword [esp + 0x54]
push ebp
mov ecx, esi
call fcn.00410450
mov dword [esi + 8], 0
call fcn.00410370
mov ecx, dword [esp + 0x58]
push eax
call fcn.00410450
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
mov edx, esi
and edx, 1
mov ecx, edi
add esi, edx
and ecx, 1
mov eax, esi
add edi, ecx
call fcn.0040e910
mov ebp, dword [esp + 0x54]
push eax
mov ecx, ebp
call fcn.0040e9b0
mov eax, edi
sub eax, esi
add eax, 2
mov dword [ebp + 8], 0
call fcn.0040e910
mov ebx, dword [esp + 0x58]
push eax
mov ecx, ebx
call fcn.0040e9b0
lea eax, [edi + esi*2 + 4]
mov dword [esp + 0x14], eax
shl eax, 2
push eax
mov dword [ebx + 8], 0
mov dword [esp + 0x14], eax
call fcn.0041a0aa
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 4]
push esi
push ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 4]
push edi
push eax
mov eax, dword [ebp + 4]
push ebx
push edx
push eax
mov dword [esp + 0x6c], 0
call fcn.0040e550
mov ecx, dword [esp + 0x30]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
call sub.MMVCR70.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x68]
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x411d6a
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b4be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call fcn.00411260
mov ecx, dword [esi + 0xc]
push ecx
push 0
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov dword [esi], vtable.CryptoPP::MontgomeryRepresentation.0
call fcn.0040f3c0
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*4]
lea edx, [eax*4]
push edx
mov byte [esp + 0x14], 1
mov dword [esi + 0x3c], eax
call fcn.0041a0aa
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x34]
push ecx
push edx
push eax
mov byte [esp + 0x24], 2
call fcn.0040e210
mov ecx, dword [esp + 0x1c]
add esp, 0x14
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4164d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b831
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push esi
push eax
mov esi, ecx
lea ecx, [esp + 0xc]
push str.FileStore:_error_opening_file_for_reading:
push ecx
mov dword [esp + 0x10], esi
call sub.MMVCP70.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
push eax
push 3
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.0040a510
mov dword [esi], vtable.CryptoPP::FileStore::Err.0
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov dword [esi], vtable.CryptoPP::FileStore::OpenErr.0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x416be0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [ecx + 0x20]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x20]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x20]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ecx + 0x20]
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x419c61
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x419e67
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push esi
xor esi, esi
cmp dword [0x42b3a0], esi
mov dword [0x4293f8], 0x1fa8
jne 0x419ebb
push esi
push 0x419e34
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x42b3a0], esi
jne 0x419ebb
push esi
push str.MMDiag.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jb 0x419eb6
push str.MusicMatch_MMDiag
push esi
call dword [0x429130]
cmp eax, esi
mov dword [0x42b3a0], eax
jne 0x419ebb
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x41a22a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4208b8
call fcn.0041a7c0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41a267
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a267
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41a27f
cmp eax, 0x20b
je 0x41a26c
mov dword [ebp - 0x1c], ebx
jmp 0x41a293
cmp dword [ecx + 0x84], 0xe
jbe 0x41a267
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x41a28d
cmp dword [ecx + 0x74], 0xe
jbe 0x41a267
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MMVCR70.dll___set_app_type]
pop ecx
or dword [0x42b468], 0xffffffff
or dword [0x42b46c], 0xffffffff
call dword [sym.imp.MMVCR70.dll___p__fmode]
mov ecx, dword [0x42b3b0]
mov dword [eax], ecx
call dword [sym.imp.MMVCR70.dll___p__commode]
mov ecx, dword [0x42b3ac]
mov dword [eax], ecx
mov eax, dword [sym.imp.MMVCR70.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42b464], eax
call fcn.0041a81e
call fcn.00401528
cmp dword [0x4290b0], ebx
jne 0x41a2f3
push fcn.00401528
call dword [sym.imp.MMVCR70.dll___setusermatherr]
pop ecx
call fcn.0041a8ac
push 0x42501c
push 0x425018
call sub.MMVCR70.dll__initterm
push 0x41a862
call fcn.0041a433
mov eax, dword [0x42b3a8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x42b3a4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MMVCR70.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp eax, ebx
jge 0x41a347
push 8
call sub.MMVCR70.dll__amsg_exit
pop ecx
push 0x425014
push section..data
call sub.MMVCR70.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MMVCR70.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x41a3a1
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x41a375
cmp al, 0x22
jne 0x41a367
cmp byte [esi], 0x22
jne 0x41a37e
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x41a388
cmp al, 0x20
jbe 0x41a37a
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x41a3ac
movzx eax, word [ebp - 0x48]
jmp 0x41a3af
cmp byte [esi], 0x20
jbe 0x41a37e
inc esi
mov dword [ebp - 0x34], esi
jmp 0x41a3a1
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004044c4
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41a3cc
push esi
call dword [sym.imp.MMVCR70.dll_exit]
call dword [sym.imp.MMVCR70.dll__cexit]
jmp 0x41a401
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0041a7fb
ret
Function at 0x1006169
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
mov ebx, 0x1001388
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10061cd
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
jbe 0x10061c5
xor eax, eax
inc eax
jmp 0x10061d2
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
call fcn.010060ec
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10061dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x1001408
push 0x80000002
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006246
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10013f0
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1006239
cmp dword [ebp - 0xc], esi
je 0x100623c
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
cmp dword [ebp - 8], edi
pop edi
setne al
leave
ret

Function at 0x100637f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x32
pop ebx
push 0x1001490
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.msvcrt.dll__wgetenv_s]
add esp, 0x10
test eax, eax
jne 0x1006450
push 0x1001460
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01006308
test eax, eax
jl 0x1006450
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x260]
push ebx
push eax
mov dword [ebp - 0x264], ebx
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x21c], ebx
lea edi, [ebp - 0x218]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x264]
push eax
push ebx
push ebx
push 0x8000040
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x1006448
push dword [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x218]
call esi
jmp 0x1006450
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01008ae8
leave
ret
Function at 0x1006d69
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0x100e118
push ebx
push 0x100e120
push 0x1005df8
push 0x1001278
call fcn.01005e4f
xor edi, edi
mov esi, 0x40000000
cmp dword [0x100e144], edi
je 0x1006de3
mov al, byte [0x100e148]
cmp al, 4
jae 0x1006da7
test al, al
jne 0x1006de3
mov ecx, dword [0x100e134]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x1006de3
mov edx, dword [0x100e13c]
mov eax, edx
xor ecx, ecx
and eax, esi
cmp ecx, dword [0x100e138]
jne 0x1006de3
cmp eax, edx
jne 0x1006de3
push 0x1001288
push dword [0x100e11c]
push dword [0x100e118]
call fcn.01005eac
cmp dword [ebp + 8], 1
jne 0x1006e8e
lea eax, [ebp + 8]
push eax
call fcn.010099ec
test eax, eax
jl 0x1006e66
cmp dword [ebp + 8], edi
je 0x1006e66
cmp dword [0x100e144], edi
je 0x1006f2a
mov al, byte [0x100e148]
cmp al, 4
jae 0x1006e1c
test al, al
jne 0x1006ed8
mov ecx, dword [0x100e134]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x1006ed8
mov edx, dword [0x100e13c]
mov eax, edx
xor ecx, ecx
and eax, esi
cmp ecx, dword [0x100e138]
jne 0x1006ed8
cmp eax, edx
jne 0x1006ed8
push 0x10012f8
push dword [0x100e11c]
push dword [0x100e118]
call fcn.01005eac
jmp 0x1006ed8
call fcn.010079ed
call fcn.01006169
test eax, eax
je 0x1006e79
call fcn.01006a0f
call fcn.010061dc
test eax, eax
je 0x1006e87
call fcn.0100637f
call fcn.01007e50
jmp 0x1006ed8
cmp dword [ebp + 8], 2
jg 0x1006ed8
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call fcn.010060a3
dec eax
jne 0x1006ed8
call fcn.01007359
mov edi, eax
test edi, edi
je 0x1006ec1
push dword [0x100e03c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x100
push 0x10014e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
cmp dword [0x100e144], 0
je 0x1006f2a
mov al, byte [0x100e148]
cmp al, 4
jae 0x1006eee
test al, al
jne 0x1006f2a
mov ecx, dword [0x100e134]
and ecx, esi
xor eax, eax
or eax, ecx
je 0x1006f2a
mov edx, dword [0x100e13c]
mov eax, edx
xor ecx, ecx
and eax, esi
cmp ecx, dword [0x100e138]
jne 0x1006f2a
cmp eax, edx
jne 0x1006f2a
push 0x1001298
push dword [0x100e11c]
push dword [0x100e118]
call fcn.01005eac
push ebx
call fcn.01005e7b
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x1007066
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100e0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x44], 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x4c], 0x10
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10070bb
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
xor ecx, ebp
call fcn.01008ae8
leave
ret 4