joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b1b
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x402c63
xor ecx, ecx
cmp word [eax], cx
je 0x402c63
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x402b74
cmp eax, 3
jne 0x402bae
cmp word [esp + 0xa], 0x3a
jne 0x402bae
cmp eax, 2
jne 0x402b92
lea eax, [esp + 8]
push 0x404020
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x402c63
push 0xfffffffffffffffe
pop edi
jmp 0x402c63
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x402bc3
cmp ax, bx
jne 0x402bcd
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x402bb6
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x402c0c
test byte [esp + 0x21c], 0x10
je 0x402bf3
push 0xfffffffffffffffe
pop edi
jmp 0x402c03
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402c61
cmp word [esp + 0x10], bp
jne 0x402c1a
cmp word [esp + 0x12], bp
je 0x402c39
cmp word [esp + 0x10], bx
jne 0x402c28
cmp word [esp + 0x12], bx
je 0x402c39
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x402c61
cmp word [esp + 0x12], ax
jne 0x402c61
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x402c4e
test al, 0x10
je 0x402c61
jmp 0x402c5e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x402c61
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x10007810
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x230
lea eax, [esp + 8]
push edi
push eax
call fcn.100078c0
lea eax, [esp + 0x10]
add esp, 4
push 0x104
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push 0x1002f240
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
add esp, 0xc
push ecx
push edx
push 0
push 2
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea edi, [esp + 0x110]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 4]
push ecx
lea ecx, [esp + 0x114]
push ecx
push 1
push 0
push str.RTPRenSvr
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x230
ret
Function at 0x1000b6e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push ebp
mov ebp, dword [esp + 0x30]
cmp ebp, esi
je 0x1000b8f2
mov edi, dword [esp + 0x34]
cmp edi, esi
je 0x1000b8f2
lea eax, [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
push esi
push 0x1002fb08
push 0x80000002
call ebx
test eax, eax
je 0x1000b731
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push 0xf003f
push 0
push ebp
push ecx
call ebx
test eax, eax
je 0x1000b758
mov eax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
lea eax, [esp + 0x24]
push 0xa
mov ecx, dword [esp + 0x3c]
push eax
mov byte [esp + 0x2c], 0
push ecx
call fcn.100258be
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0xc
push ecx
push 0xf003f
push 0
push edx
push eax
call ebx
test eax, eax
je 0x1000b7b0
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
mov eax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
lea eax, [edi + 0x10]
mov ecx, dword [edi + 0x20]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
push 0x1002fb30
push eax
call ebx
cmp eax, 0xea
je 0x1000b81c
lea eax, [edi + 0x14]
mov ecx, dword [edi + 0x28]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0
push 0x1002fb3c
push eax
call ebx
cmp eax, 0xea
je 0x1000b81c
lea eax, [edi + 0x18]
mov ecx, dword [edi + 0x24]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0
push 0x1002fb44
push eax
call ebx
cmp eax, 0xea
jne 0x1000b821
mov esi, 4
mov ebp, 2
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1e]
lea edx, [esp + 0x1c]
push ecx
mov eax, dword [esp + 0x18]
push edx
mov dword [esp + 0x20], ebp
push 0
push 0x1002fb54
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [edi + 0x1c]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov dword [esp + 0x1c], ebp
push eax
push 0
mov ebp, 4
push 0x1002fb60
push ecx
call ebx
lea ecx, [esp + 0x14]
lea eax, [edi + 4]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebp
push edx
push 0
push 0x1002fb6c
push ecx
call ebx
lea ecx, [esp + 0x14]
lea edx, [edi + 8]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov dword [esp + 0x1c], ebp
push eax
push 0
push 0x1002fb7c
push ecx
add edi, 0xc
call ebx
lea ecx, [esp + 0x14]
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ebp
push ecx
mov ecx, dword [esp + 0x14]
push edi
push eax
push 0
push 0x1002fb88
push ecx
call ebx
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x1000bdc0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x314
test eax, eax
mov dword [esp + 4], 1
je 0x1000be62
mov ecx, dword [esp + 0x31c]
test ecx, ecx
je 0x1000be62
cmp word [eax], 0
je 0x1000be62
cmp word [ecx], 0
je 0x1000be62
mov word [esp + 0x10c], 0
push ecx
push eax
lea eax, [esp + 0x114]
push str.SoftwarePocketSoftRTPatchPatchInfo_s_s
push eax
call fcn.100202ee
lea eax, [esp + 0x18]
lea ecx, [esp + 0x11c]
add esp, 0x10
push eax
push ecx
call fcn.10018be0
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
add esp, 8
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000be62
lea eax, [esp + 4]
push 4
mov ecx, dword [esp + 4]
push eax
push 4
push 0
push str.UnPatched
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x314
ret
Function at 0x1000f260
Capabilities:
Read .ini file

Disassembly:
sub esp, 8
mov word [esp + 2], 0
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
test esi, esi
je 0x1000f2a3
cmp word [esi], 0
je 0x1000f2a3
push esi
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
add esp, 4
mov edi, eax
push edi
push esi
call fcn.10018bb0
add esp, 8
jmp 0x1000f2a5
xor edi, edi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1000f2da
cmp word [esi], 0
je 0x1000f2da
push esi
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
add esp, 4
mov ebx, eax
push ebx
push esi
call fcn.10018bb0
add esp, 8
jmp 0x1000f2dc
xor ebx, ebx
mov esi, dword [esp + 0x28]
push 0x1000
mov dword [esi], 0x1000
call fcn.1000ddc0
mov ebp, dword [esp + 0x28]
add esp, 4
mov dword [ebp], eax
test edi, edi
je 0x1000f30f
push edi
mov eax, dword [esi]
push eax
mov ecx, dword [ebp]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
jmp 0x1000f31d
mov eax, dword [esi]
mov ecx, dword [ebp]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
sub eax, dword [esp + 0x14]
cmp eax, 2
je 0x1000f335
mov word [esp + 0x12], 1
jmp 0x1000f353
mov eax, dword [ebp]
push eax
call fcn.1001f43e
add esp, 4
mov eax, dword [esi]
add eax, eax
push eax
mov dword [esi], eax
call fcn.1000ddc0
add esp, 4
mov dword [ebp], eax
cmp word [esp + 0x12], 0
je 0x1000f2fa
mov eax, dword [esp + 0x14]
add eax, 2
test edi, edi
mov dword [esi], eax
je 0x1000f371
push edi
call fcn.1001f43e
add esp, 4
test ebx, ebx
je 0x1000f37e
push ebx
call fcn.1001f43e
add esp, 4
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x1000f390
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc
mov word [esp + 2], 0
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push ebp
test esi, esi
je 0x1000f3d5
cmp word [esi], 0
je 0x1000f3d5
push esi
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
mov dword [esp + 0x1c], eax
add esp, 4
push eax
push esi
call fcn.10018bb0
add esp, 8
jmp 0x1000f3dd
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x1000f412
cmp word [esi], 0
je 0x1000f412
push esi
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
add esp, 4
mov edi, eax
push edi
push esi
call fcn.10018bb0
add esp, 8
jmp 0x1000f414
xor edi, edi
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x1000f449
cmp word [ebx], 0
je 0x1000f449
push ebx
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
add esp, 4
mov esi, eax
push esi
push ebx
call fcn.10018bb0
add esp, 8
jmp 0x1000f44b
xor esi, esi
mov ebx, dword [esp + 0x30]
push 0x1000
mov dword [ebx], 0x1000
call fcn.1000ddc0
mov ebp, dword [esp + 0x30]
add esp, 4
mov dword [ebp], eax
cmp dword [esp + 0x18], 0
je 0x1000f48b
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
push eax
mov edx, dword [ebp]
push ecx
push edx
push 0x1002f43c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x1000f49f
mov eax, dword [ebx]
mov ecx, dword [ebp]
push eax
push ecx
push 0x1002f43c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
sub eax, dword [esp + 0x14]
cmp eax, 1
je 0x1000f4b7
mov word [esp + 0x12], 1
jmp 0x1000f4d5
mov eax, dword [ebp]
push eax
call fcn.1001f43e
add esp, 4
mov eax, dword [ebx]
add eax, eax
push eax
mov dword [ebx], eax
call fcn.1000ddc0
add esp, 4
mov dword [ebp], eax
cmp word [esp + 0x12], 0
je 0x1000f469
mov eax, dword [esp + 0x14]
inc eax
cmp dword [esp + 0x18], 0
mov dword [ebx], eax
je 0x1000f4f8
mov eax, dword [esp + 0x18]
push eax
call fcn.1001f43e
add esp, 4
test edi, edi
je 0x1000f505
push edi
call fcn.1001f43e
add esp, 4
test esi, esi
je 0x1000f512
push esi
call fcn.1001f43e
add esp, 4
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x100100b0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov ecx, dword [esp + 4]
cmp word [ecx], ax
je 0x100100ce
shl eax, 3
xor edx, edx
mov dx, word [ecx]
add ecx, 2
xor eax, edx
cmp word [ecx], 0
jne 0x100100bb
mov ecx, 0x11
sub edx, edx
div ecx
mov eax, edx
ret

Function at 0x10012520
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push esi
push edi
mov edi, dword [esp + 0x114]
push 3
mov esi, dword [esp + 0x114]
push 0x100305c0
push edi
push esi
call fcn.10012420
add esp, 0x10
test eax, eax
jne 0x10012565
lea eax, [esp + 8]
push eax
push edi
push esi
call fcn.100122e0
lea eax, [esp + 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x104
ret

Function at 0x10012570
Capabilities:
Copy file

Disassembly:
sub esp, 0x208
push esi
push edi
mov edi, dword [esp + 0x218]
push 4
mov esi, dword [esp + 0x218]
push str.copy
push edi
push esi
call fcn.10012420
add esp, 0x10
test eax, eax
jne 0x100125d1
lea eax, [esp + 8]
push eax
push edi
push esi
call fcn.100122e0
lea eax, [esp + 0x118]
add esp, 0xc
push eax
push edi
push esi
call fcn.100122e0
lea eax, [esp + 0x118]
lea ecx, [esp + 0x14]
add esp, 0xc
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
add esp, 0x208
ret
Function at 0x10012620
Capabilities:
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x110
mov dword [esp + 8], 0
mov dword [esp + 4], 0
push ebx
push esi
push edi
xor ebx, ebx
mov edi, dword [esp + 0x124]
push ebp
mov esi, dword [esp + 0x124]
push 6
mov dword [esp + 0x14], ebx
push str.attrib
push edi
push esi
call fcn.10012420
add esp, 0x10
test eax, eax
jne 0x100126d5
cmp dword [edi], ebx
je 0x100126b2
mov ebp, 1
cmp dword [esp + 0x10], 0
jne 0x100126b2
mov edx, dword [esi]
movsx ecx, byte [edx]
sub ecx, 9
cmp ecx, 0x6a
ja case.0x10012688.23
xor eax, eax
mov al, byte [ecx + 0x100127a4]
jmp dword [eax*4 + 0x10012768]
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.100122e0
mov dword [esp + 0x1c], ebp
add esp, 0xc
jmp 0x100126ad
mov dword [esp + 0x10], ebp
inc edx
dec dword [edi]
mov dword [esi], edx
cmp dword [edi], 0
jne 0x1001266c
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x18]
not ecx
and eax, ecx
lea ecx, [esp + 0x1c]
or eax, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret
inc edx
lea ebx, [esp + 0x14]
mov dword [esi], edx
dec dword [edi]
jmp 0x100126ad
inc edx
lea ebx, [esp + 0x18]
mov dword [esi], edx
dec dword [edi]
jmp 0x100126ad
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x20
push ebx
push edi
xor ebx, ebx
push esi
call fcn.100125e0
add esp, 0x18
jmp 0x100126ad
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push edi
xor ebx, ebx
push esi
call fcn.100125e0
add esp, 0x18
jmp 0x100126ad
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebp
push ebx
push edi
xor ebx, ebx
push esi
call fcn.100125e0
add esp, 0x18
jmp 0x100126ad
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 4
push ebx
push edi
xor ebx, ebx
push esi
call fcn.100125e0
add esp, 0x18
jmp 0x100126ad
Function at 0x10012810
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
mov dword [0x1002bf40], eax
push ebx
push esi
push edi
push ebp
push 0
mov ecx, dword [esp + 0x28]
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, eax
je 0x10012949
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
push 0
push eax
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x10012940
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10012935
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], ebx
je 0x1001292e
xor ebp, ebp
mov eax, dword [esp + 0x14]
movsx ecx, byte [eax]
sub ecx, 9
cmp ecx, 0x69
ja case.0x100128b0.20
xor eax, eax
mov al, byte [ecx + 0x10012984]
jmp dword [eax*4 + 0x10012954]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
jmp 0x1001291c
inc dword [esp + 0x14]
dec dword [esp + 0x10]
jmp 0x10012924
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.10012620
jmp 0x1001290f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.10012570
jmp 0x1001290f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.10012520
jmp 0x1001290f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.10012480
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
add esp, 8
push ecx
push edx
call fcn.100123f0
add esp, 8
cmp dword [esp + 0x10], ebp
jne 0x10012899
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x10012946
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x10
Function at 0x100133e0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [0x100307cc], 0
push esi
push edi
je 0x100133f2
mov eax, dword [0x100307d0]
jmp 0x100133f7
call fcn.100188c0
test eax, eax
jne 0x10013458
mov edi, dword [esp + 0x10]
mov esi, 0
test edi, edi
je 0x1001342d
push edi
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
add esp, 4
mov esi, eax
push esi
push edi
call fcn.10018bb0
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push eax
push 0
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test esi, esi
je 0x10013475
push esi
call fcn.1001f43e
add esp, 4
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push 0
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x10013540
Capabilities:
Delete registry key

Disassembly:
cmp dword [0x100307cc], 0
push esi
push edi
je 0x10013552
mov eax, dword [0x100307d0]
jmp 0x10013557
call fcn.100188c0
mov esi, dword [esp + 0x10]
test eax, eax
push esi
jne 0x100135a0
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
add esp, 4
mov edi, eax
push edi
push esi
call fcn.10018bb0
mov eax, dword [esp + 0x14]
add esp, 8
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push edi
call fcn.1001f43e
add esp, 4
mov eax, esi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
pop edi
mov eax, esi
pop esi
ret

Function at 0x100135c0
Capabilities:
Delete registry value

Disassembly:
cmp dword [0x100307cc], 0
push esi
push edi
je 0x100135d2
mov eax, dword [0x100307d0]
jmp 0x100135d7
call fcn.100188c0
mov edi, dword [esp + 0x10]
test eax, eax
push edi
jne 0x10013613
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
add esp, 4
mov esi, eax
push esi
push edi
call fcn.10018bb0
mov eax, dword [esp + 0x14]
add esp, 8
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop edi
pop esi
ret
Function at 0x10013af0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 4
cmp dword [0x100307cc], 0
push esi
push edi
je 0x10013b05
mov eax, dword [0x100307d0]
jmp 0x10013b0a
call fcn.100188c0
test eax, eax
jne 0x10013b7c
mov edi, dword [esp + 0x14]
mov esi, 0
test edi, edi
je 0x10013b40
push edi
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
add esp, 4
mov esi, eax
push esi
push edi
call fcn.10018bb0
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ecx
mov eax, dword [esp + 0x18]
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test esi, esi
je 0x10013ba7
push esi
call fcn.1001f43e
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 4
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [esp + 8], eax
lea eax, [esp + 8]
mov edi, dword [esp + 0x14]
push eax
push ecx
mov eax, dword [esp + 0x18]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, edi
pop edi
pop esi
add esp, 4
ret

Function at 0x10013bb0
Capabilities:
Set registry value

Disassembly:
cmp dword [0x100307cc], 0
push esi
push edi
je 0x10013bc2
mov eax, dword [0x100307d0]
jmp 0x10013bc7
call fcn.100188c0
test eax, eax
jne 0x10013c2e
mov edi, dword [esp + 0x10]
mov esi, 0
test edi, edi
je 0x10013bf3
push edi
call fcn.1001f4a6
add esp, 4
lea eax, [eax*2 + 2]
push eax
call fcn.1000ddc0
add esp, 4
mov esi, eax
push esi
push edi
call fcn.10018bb0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add esp, 8
push eax
push ecx
mov eax, dword [esp + 0x14]
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test esi, esi
je 0x10013c51
push esi
call fcn.1001f43e
add esp, 4
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push eax
mov edi, dword [esp + 0x14]
push ecx
mov eax, dword [esp + 0x14]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x10013c60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x420
cmp dword [0x100307cc], 0
push ebx
push esi
push edi
je 0x10013c79
mov eax, dword [0x100307d0]
jmp 0x10013c7e
call fcn.100188c0
test eax, eax
jne 0x10013d51
lea eax, [esp + 0x220]
mov ecx, dword [esp + 0x434]
push eax
push ecx
call fcn.10018bb0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
add esp, 8
push ecx
push edx
lea eax, [esp + 0x228]
push 0
mov ecx, dword [esp + 0x43c]
push 0x20019
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10013ddb
mov edi, 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x220]
push 0x105
mov ecx, dword [esp + 0x10]
push eax
push 0
push ecx
call esi
test eax, eax
jne 0x10013d36
lea eax, [esp + 0x14]
lea ecx, [esp + 0x220]
push eax
push ecx
call fcn.10018b30
lea ecx, [esp + 0x1c]
mov edx, dword [esp + 0x14]
add esp, 8
push ecx
push edx
call fcn.10013c60
lea ecx, [esp + 0x228]
mov edx, dword [esp + 0x14]
add esp, 8
push ecx
push edx
call ebx
jmp 0x10013d38
xor edi, edi
test edi, edi
jne 0x10013ce4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x420
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
mov edx, dword [esp + 0x43c]
push 0
mov eax, dword [esp + 0x43c]
push 0x20019
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10013ddb
mov edi, 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 0x14]
push 0x105
mov ecx, dword [esp + 0x10]
push eax
push 0
push ecx
call esi
test eax, eax
jne 0x10013dca
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.10013c60
lea ecx, [esp + 0x1c]
mov edx, dword [esp + 0x14]
add esp, 8
push ecx
push edx
call ebx
jmp 0x10013dcc
xor edi, edi
test edi, edi
jne 0x10013d93
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x420
ret