joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x80000]
push edi
or ebp, 0xffffffff
jmp 0x4b4422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b4429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b4418
mov eax, 1
add ebx, ebx
jne 0x4b443b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b444c
jne 0x4b446b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b446b
dec eax
add ebx, ebx
jne 0x4b4458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b4430
add ebx, ebx
jne 0x4b4467
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b44bd
xor ecx, ecx
sub eax, 3
jb 0x4b4483
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b44f2
sar eax, 1
mov ebp, eax
jmp 0x4b448e
add ebx, ebx
jne 0x4b448e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b445c
inc ecx
add ebx, ebx
jne 0x4b449c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b445c
add ebx, ebx
jne 0x4b44a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b449e
jne 0x4b44ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b449e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b44dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b44ce
jmp 0x4b441e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b44dc
add edi, ecx
jmp 0x4b441e
pop esi
mov edi, esi
mov ecx, 0x34800
jmp 0x4b452e
mov al, byte [edi]
add edi, 1
cmp al, 0x80
jb 0x4b450f
cmp al, 0x8f
ja 0x4b450f
cmp byte [edi - 2], 0xf
je 0x4b4515
sub al, 0xe8
cmp al, 1
ja 0x4b4538
cmp byte [edi], 0x11
jne 0x4b4538
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
mov dword [edi], eax
add edi, 4
sub ecx, 4
mov al, byte [edi]
add edi, 1
loop 0x4b450f
sub ecx, 1
jg 0x4b44fc
lea edi, [esi + 0xb1000]
mov eax, dword [edi]
or eax, eax
je 0x4b458e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb45f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb46b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b4543
mov ecx, edi
jns 0x4b4572
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb46bc]
or eax, eax
je 0x4b4588
mov dword [ebx], eax
add ebx, 4
jmp 0x4b4560
call dword [esi + 0xb46cc]
mov ebp, dword [esi + 0xb46c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b45c2
sub esp, 0xffffff80
jmp 0x4209ca
Function at 0x1003288
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10171b0]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x1001680
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1003374
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x1003368
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x1003317
xor edi, edi
jmp 0x100335f
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x1003313
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x100333f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x38]
push ecx
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1003313
push dword [ebp - 0x38]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010120e3
leave
ret 8
Function at 0x1003c5f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10171b0]
push ebx
push esi
xor esi, esi
push esi
push 0x20019
push 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], esi
call fcn.010059b5
mov ebx, eax
cmp ebx, esi
jne 0x1003c94
xor eax, eax
jmp 0x1003d1a
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x210]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x1003d09
inc dword [ebp - 0x420]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0x10000002
push 0x1001714
lea eax, [ebp - 0x210]
push eax
push ebx
mov dword [ebp - 0x424], 0x20a
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x1003cfb
push dword [ebp + 0x10]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1003d28
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x420]
push ebx
call esi
test eax, eax
je 0x1003cab
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.010120e3
leave
ret 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0xc], 0x7fffffff
jbe 0x1003d3f
mov eax, 0x80070057
jmp 0x1003d51
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01002f60
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x1003d19

Function at 0x1004af8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0x1001540
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x194], eax
call fcn.01004570
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.010045ba
mov ebx, dword [ebp + 0x1a4]
cmp ebx, edi
je 0x1004bbe
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1004bbe
lea eax, [ebp - 0x70]
push eax
push 0x10008
push edi
push ebx
push dword [ebp + 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x1004bc3
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x1004ba4
cmp esi, edi
jne 0x1004bb3
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call fcn.01004af8
mov esi, eax
cmp esi, edi
je 0x1004b65
jmp 0x1004bb3
push ebx
push dword [ebp + 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004bc3
mov esi, 0x3f2
lea ecx, [ebp - 0x80]
call fcn.010045e3
lea ecx, [ebp - 0x80]
call fcn.01004595
mov ecx, dword [ebp + 0x194]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.010120e3
add ebp, 0x198
leave
ret 8
Function at 0x1004bed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0x1001540
xor esi, esi
push esi
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x2a4], eax
call fcn.01004570
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.010045ba
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x20019
push edi
push esi
push dword [ebp + 0x2d4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp + 0x2b0]
call esi
test eax, eax
jne 0x1004cdc
mov ebx, dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x102
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x2b4]
push eax
call ebx
push 0x81
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp + 0x2c4]
push eax
call ebx
lea eax, [ebp - 0x68]
push eax
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x6c]
call esi
test eax, eax
jne 0x1004cd3
lea eax, [ebp - 0x70]
push eax
push edi
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x1004cca
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x2d8]
mov dword [ebp - 0x74], 4
push ebx
push 0x10
push 0x1001804
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x1004ce0
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x1004cf8
push dword [ebp - 0x6c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x68]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x80]
call fcn.010045e3
lea ecx, [ebp - 0x80]
call fcn.01004595
mov ecx, dword [ebp + 0x2a4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.010120e3
add ebp, 0x2a8
leave
ret 0x2c
Function at 0x1004d22
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a4]
sub esp, 0x324
mov eax, dword [0x10171b0]
push esi
push edi
push 0x1001540
push 0
push 0
lea ecx, [ebp - 0x80]
mov dword [ebp + 0x2a0], eax
call fcn.01004570
push 0xffffffffffffffff
lea ecx, [ebp - 0x80]
call fcn.010045ba
lea eax, [ebp - 0x70]
push eax
mov edi, 0x2001f
push edi
push dword [ebp + 0x2d0]
push dword [ebp + 0x2ac]
call fcn.01004810
test eax, eax
jne 0x1004e04
mov esi, dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x102
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x2b0]
push eax
call esi
push 0x81
lea eax, [ebp + 0x19c]
push eax
lea eax, [ebp + 0x2c0]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call fcn.01004810
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x1004dff
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x6c]
call fcn.01004810
test eax, eax
jne 0x1004dfa
push 4
lea eax, [ebp + 0x2d4]
push eax
push 4
push 0
push 0x1001804
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1004e08
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x70]
call esi
xor esi, esi
jmp 0x1004e20
push dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x74]
call esi
push dword [ebp - 0x6c]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x80]
call fcn.010045e3
lea ecx, [ebp - 0x80]
call fcn.01004595
mov ecx, dword [ebp + 0x2a0]
pop edi
mov eax, esi
pop esi
call fcn.010120e3
add ebp, 0x2a4
leave
ret 0x2c

Function at 0x1004e49
Capabilities:
Delete file
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x10171b0]
mov dword [ebp + 0x3a0], eax
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
push 0x1001838
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004ee5
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10000002
push 0x100181c
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1004ee5
push 0x104
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x3ac]
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x1004ee9
xor eax, eax
jmp 0x1004ef9
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x3a0]
call fcn.010120e3
add ebp, 0x3a4
leave
ret 4
Function at 0x10051df
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 4
pop ebx
xor esi, esi
push 0x1001540
push esi
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.01004570
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.010045ba
push 1
mov edi, 0x2001f
push edi
push 2
call fcn.01004899
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x10052f0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
mov esi, 0x1001880
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
mov edx, eax
and ecx, 0x40
neg edx
sbb edx, edx
and edx, 8
or ecx, edx
neg eax
sbb eax, eax
and eax, 2
or ecx, eax
mov eax, dword [ebp - 4]
and eax, 0xffffffb0
push ebx
or ecx, eax
lea eax, [ebp - 4]
push eax
push ebx
push 0
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], ecx
call esi
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0x1001750
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10052e5
cmp dword [ebp + 8], eax
je 0x10052d0
mov edi, 0x10017b0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 2
push 0
push 0x1002238
push dword [ebp - 8]
call esi
jmp 0x10052de
push 0x1002238
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call ebx
jmp 0x10052ed
push dword [ebp + 8]
call fcn.0101268c
xor esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.010045e3
lea ecx, [ebp - 0x20]
call fcn.01004595
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1005309
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10171b0]
mov dword [ebp + 0x190], eax
lea eax, [ebp - 0x7c]
push eax
push 0x2001f
push 0
push 0x1001750
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10053ac
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0x10000002
mov edi, 0x1002238
push edi
push 0
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x10053a2
push 0x100189c
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10053a2
push esi
mov esi, 0x10017b0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push 0
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x190]
xor eax, eax
inc eax
call fcn.010120e3
add ebp, 0x194
leave
ret
Function at 0x10053c2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
push 0x1001540
push edi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
mov dword [ebp - 8], 4
call fcn.01004570
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.010045ba
push 1
push 0x2001f
push 2
call fcn.01004899
mov ebx, eax
cmp ebx, edi
je 0x100544c
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x10
mov esi, 0x1001880
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0x10
and ecx, 0x2f
or eax, ecx
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
pop esi
lea ecx, [ebp - 0x14]
call fcn.010045e3
lea ecx, [ebp - 0x14]
call fcn.01004595
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x1005464
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 4
pop ebx
xor edi, edi
push edi
push 0x20019
push 2
mov dword [ebp - 4], ebx
mov dword [eax], edi
call fcn.01004899
cmp eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
mov dword [ebp - 0xc], eax
je 0x10054ee
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x10
push 0x10018ec
push edi
push eax
call esi
test eax, eax
jne 0x10054b9
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 8], edi
setne cl
or dword [eax], ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x10
push 0x10018dc
push edi
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x10054e5
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, 2
or dword [eax], ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x20019
push 3
call fcn.01004899
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1005534
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push 0x10
push 0x10018c4
push edi
push eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x100552b
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, ebx
or dword [eax], ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
Function at 0x10055fd
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x10171b0]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x104
mov dword [ebp + 0x19c], eax
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
push ebx
jmp 0x1005691
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x1a8]
mov dword [ebp - 0x80], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005686
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x10
push 0x100275c
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x100567d
mov eax, dword [ebp - 0x7c]
or dword [ebp - 0x70], eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x74]
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp + 0x1a8]
call esi
test eax, eax
je 0x1005634
and dword [ebp - 0x70], 7
push 4
lea eax, [ebp - 0x70]
push eax
push 4
push ebx
push 0x100275c
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x1a8]
call fcn.01005587
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
pop ebx
call fcn.010120e3
add ebp, 0x1a0
leave
ret 4

Function at 0x10056de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10171b0]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x20019
xor ebx, ebx
push esi
mov dword [eax], ebx
call sym.mobsync.dll_RegGetHandlerTopLevelKey
cmp eax, ebx
mov dword [ebp - 0x10c], eax
jne 0x1005711
xor eax, eax
jmp 0x1005780
push edi
push 0x81
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromGUID2]
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call fcn.01004a3a
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, ebx
je 0x1005775
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
push ebx
push 0x10
push 0x100275c
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push edi
mov dword [ebp + 0xc], eax
call esi
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
mov ebx, eax
push dword [ebp - 0x10c]
call esi
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.010120e3
leave
ret 8
Function at 0x100578e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5f4]
sub esp, 0x674
mov eax, dword [0x10171b0]
push edi
push 0x111
mov dword [ebp + 0x5f0], eax
push 0x1001738
lea eax, [ebp + 0x3cc]
xor edi, edi
push eax
mov dword [ebp - 0x54], edi
call fcn.0101263a
cmp dword [ebp + 0x608], edi
je 0x10057dd
lea eax, [ebp + 0x3cc]
push eax
push dword [ebp + 0x5fc]
call fcn.01004af8
push ebx
push esi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0x604]
lea eax, [ebp + 0x3cc]
push dword [ebp + 0x600]
push eax
push dword [ebp + 0x5fc]
call fcn.010047c3
mov ebx, eax
cmp ebx, edi
je 0x100580e
mov dword [ebp - 0x50], edi
cmp dword [ebp - 0x50], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10058ae
lea eax, [ebp + 0x608]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
push 0x10000002
push 0x1001748
push edi
push dword [ebp - 0x50]
mov dword [ebp + 0x608], 0x20a
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
je 0x1005865
test byte [ebp + 0x600], 2
mov dword [ebp - 0x54], 1
jne 0x10058a9
push dword [ebp - 0x50]
call esi
mov dword [ebp - 0x50], edi
jmp 0x10058a9
push 0x105
lea eax, [ebp + 0x1c0]
push eax
call fcn.0101271d
test eax, eax
je 0x10058a9
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10058a9
push dword [ebp - 0x50]
call esi
lea eax, [ebp + 0x3cc]
push eax
push dword [ebp + 0x5fc]
mov dword [ebp - 0x50], edi
call fcn.01004af8
cmp dword [ebp - 0x50], edi
jne 0x10058ea
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 0x604]
lea eax, [ebp + 0x3cc]
push dword [ebp + 0x600]
push eax
push dword [ebp + 0x5fc]
call fcn.010047c3
mov ebx, eax
cmp ebx, edi
je 0x10058df
mov dword [ebp - 0x50], edi
jmp 0x10058ea
xor eax, eax
inc eax
cmp dword [ebp - 0x58], eax
jne 0x1005948
mov dword [ebp - 0x54], eax
cmp ebx, edi
jne 0x1005948
cmp dword [ebp - 0x58], 1
jne 0x1005948
lea eax, [ebp - 0x5c]
push eax
push 0x40000
push 8
lea eax, [ebp + 0x3cc]
push eax
push dword [ebp + 0x5fc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1005948
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.01004616
test eax, eax
je 0x1005943
lea eax, [ebp - 0x74]
push eax
push 4
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp - 0x60]
call fcn.010121c1
pop ecx
push dword [ebp - 0x5c]
call esi
cmp dword [ebp - 0x50], edi
pop esi
pop ebx
je 0x100599c
cmp dword [ebp - 0x54], edi
je 0x100599c
test byte [ebp + 0x600], 2
je 0x100599c
push 0x105
lea eax, [ebp + 0x1c0]
push eax
call fcn.0101271d
test eax, eax
je 0x100599c
lea eax, [ebp + 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp + 0x1c0]
push eax
push 1
push edi
push 0x1001748
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0x5f0]
mov eax, dword [ebp - 0x50]
pop edi
call fcn.010120e3
add ebp, 0x5f4
leave
ret 0x10