joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68d250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a1808
push 0x691288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x68d329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x68d329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.006901d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x68d329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x68d329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x68d32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0068d351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x68dd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x68dd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x68dd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x68dd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x68dd94
push eax
push esi
call fcn.0069020b
add esp, 8
pop esi
ret 0x10

Function at 0x68dda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x68de22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x68de15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x6a6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0068fdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x68ddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x68de30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x68dec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x68deb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x6a6320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0068fdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x68deab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x68de6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x68e000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x68e131
push esi
call fcn.00691145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00680080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x68e131
push 0
push ebp
call fcn.006803a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00680260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x68e08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006802f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x68e121
push 0x6a6918
push edi
call fcn.0068f3f0
push eax
push ebx
push esi
call fcn.0068df60
push 0x6a68f8
push edi
call fcn.0068f3f0
push eax
push ebx
push esi
call fcn.0068df60
push 0x6a68d8
push edi
call fcn.0068f3f0
push eax
push ebx
push esi
call fcn.0068df60
push 0x6a68c0
push edi
call fcn.0068f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0068df60
push 0x6a68a0
push edi
call fcn.0068f3f0
push eax
push ebx
push esi
call fcn.0068df60
push 0x6a6888
push edi
call fcn.0068f3f0
push eax
push ebx
push esi
call fcn.0068df60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x68f1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0068f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0068f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0068f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0068f140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x68fbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x68fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6a187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x68fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x68fc52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10079aa
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x101e261
call fcn.0101ced0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], esi
call fcn.01003f77
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], 0x100140c
lea ebx, [esi + 0x28]
mov dword [ebx], edi
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.01016e4e
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 3
call fcn.01017147
mov dword [esi + 0xc8], edi
push edi
push edi
push edi
push edi
lea ecx, [esi + 0xcc]
push edi
call fcn.01003f3e
lea eax, [ebp - 0xd]
push eax
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 6
call fcn.0100705c
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
push dword [0x1028a10]
push ebx
call dword [sym.imp.ATL.DLL_AtlComPtrAssign]
or dword [esi + 0xbc], 0xffffffff
or dword [esi + 0xc0], 0xffffffff
or dword [esi + 0xc4], 0xffffffff
and dword [esi + 0x108], 0xfffffffe
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xa0]
mov dword [esi + 0xd0], eax
xor eax, eax
inc eax
and dword [esi + 0x134], 0xfffffff8
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x118], edi
mov dword [esi + 0x11c], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x148], eax
mov dword [esi + 0x12c], eax
pop edi
mov dword [esi + 0xcc], esi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1009048
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x1009174
cmp dword [ebp + 0xc], ebx
je 0x1009174
push dword [eax]
lea eax, [ebp - 0x218]
push 0x1001450
push 0x1001444
push 0x100
push eax
mov dword [ebp + 8], ebx
call fcn.01008fd3
add esp, 0x14
test eax, eax
jne 0x1009174
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x218]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009174
cmp dword [ebp + 8], ebx
je 0x1009174
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x101
push edi
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 8], ebx
push ebx
jmp 0x100915e
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push 0x100143c
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x1009150
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009150
cmp dword [ebp - 4], ebx
je 0x1009150
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001424
push dword [ebp + 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 4]
je 0x100917d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call esi
test eax, eax
je 0x10090de
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp + 8]
call esi
xor eax, eax
inc eax
jmp 0x1009176

Function at 0x100918f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x10091ad
add eax, 0xfffffff8
jmp 0x10091af
xor eax, eax
push dword [esi + 4]
push dword [eax + 4]
lea eax, [ebp - 0x20c]
push 0x1001450
push 0x1001498
push 0x100
push eax
call fcn.01008fd3
add esp, 0x18
test eax, eax
jne 0x1009223
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1009223
cmp dword [ebp - 4], edi
je 0x1009223
push 4
add esi, 0x44
push esi
push 4
push edi
push 0x1001424
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x1009227
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x1009319
cmp dword [ebp + 0xc], ebx
je 0x1009319
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x1001450
push 0x1001444
push 0x100
push eax
mov dword [ebp + 8], ebx
call fcn.01008fd3
add esp, 0x14
test eax, eax
jne 0x1009319
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009319
cmp dword [ebp + 8], ebx
je 0x1009319
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x101
push edi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 8], ebx
push ebx
jmp 0x1009307
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x100143c
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x10092f9
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10092f9
cmp dword [ebp - 4], ebx
jne 0x1009322
inc dword [ebp - 8]
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call esi
test eax, eax
je 0x10092b6
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp + 8]
call esi
xor eax, eax
inc eax
jmp 0x100931b
Function at 0x100a851
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x100a9c9
cmp dword [ebp + 0xc], ebx
je 0x100a9c9
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x1001450
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a9c9
cmp dword [ebp - 4], ebx
je 0x100a9c9
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x80
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0xc], ebx
push ebx
jmp 0x100a9b3
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push 0x100143c
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x100a9a1
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a9a1
cmp dword [ebp - 8], ebx
je 0x100a9a1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x100196c
push dword [ebp - 8]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a998
cmp dword [ebp - 0x18], 2
jne 0x100a998
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x100195c
push dword [ebp - 8]
mov byte [ebp - 0x318], bl
mov dword [ebp - 0x10], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a998
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x318]
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x100a98f
cmp cl, bl
je 0x100a98b
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x100a98f
inc esi
inc esi
inc eax
inc eax
cmp cl, bl
jne 0x100a96d
xor eax, eax
jmp 0x100a994
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100a9d2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
push 0x80
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call edi
test eax, eax
je 0x100a8ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
inc eax
jmp 0x100a9cb
Function at 0x100bf39
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, ecx
lea ecx, [ebp - 0xc]
push ecx
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push eax
mov ebx, 0x20006
push ebx
push eax
push eax
push eax
push 0x1001450
push 0x80000001
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x100c018
cmp dword [ebp - 8], eax
je 0x100c018
push 0xa
lea eax, [ebp - 0x110]
push eax
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push eax
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x100c00f
cmp dword [ebp - 4], eax
je 0x100c00f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x100196c
push dword [ebp - 4]
mov dword [ebp - 0x10], 2
call ebx
lea edi, [esi + 0x3d4]
mov eax, dword [edi]
push dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push dword [eax]
push 1
push 0
push 0x1001b70
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 0x10]
neg esi
sbb esi, esi
and esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
add esi, 4
cmp eax, ecx
mov dword [ebp - 4], eax
je 0x100c053
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100c03c
lea ecx, [eax - 8]
jmp 0x100c03e
xor ecx, ecx
call fcn.0100918f
lea ecx, [ebp - 4]
call fcn.0100af9e
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
jne 0x100c030
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e4bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
mov edi, ecx
push dword [edi + 0x3d8]
call esi
push dword [edi + 0x3dc]
call esi
push dword [edi + 0x3e0]
call esi
push dword [edi + 0x3e4]
call esi
push dword [edi + 0x804]
call esi
push dword [edi + 0x80c]
call esi
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x100e1df
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [edi + 0x58], eax
jne 0x100e526
mov eax, 0x80004005
jmp 0x100e534
push dword [edi + 0x3d8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x10130be
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x10131c4
cmp dword [ebp + 0xc], ebx
je 0x10131c4
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
push 0x1001450
push 0x80000001
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10131c4
cmp dword [ebp + 8], ebx
je 0x10131c4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x80
push edi
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 8], ebx
push ebx
jmp 0x10131ae
push dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push 0x100143c
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
cmp eax, 1
jne 0x10131a0
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10131a0
cmp dword [ebp - 4], ebx
je 0x10131a0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x100196c
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1013197
cmp dword [ebp - 0x10], 3
je 0x10131cd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push edi
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call esi
test eax, eax
je 0x1013128
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp + 8]
call esi
xor eax, eax
inc eax
jmp 0x10131c6

Function at 0x1013866
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x3d4]
push eax
xor eax, eax
push eax
push esi
push 0x10136ea
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov dword [esi + 0x58], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
ret
Function at 0x1013897
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
lea eax, [ebp - 0x10]
push eax
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
mov esi, 0x20006
push esi
push edi
push edi
push edi
push 0x1001450
push 0x80000001
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
call ebx
test eax, eax
jne 0x1013943
cmp dword [ebp - 8], edi
je 0x1013943
push 0xa
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 4]
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
call ebx
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x101393e
cmp dword [ebp - 0xc], edi
je 0x101393e
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push edi
push 0x100196c
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
mov esi, dword [ebp - 4]
lea eax, [esi + 0x10]
neg esi
sbb esi, esi
and esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
add esi, 4
cmp eax, ecx
mov dword [ebp - 4], eax
je 0x1013981
mov eax, dword [eax + 0x10]
cmp eax, edi
je 0x101396a
lea ecx, [eax - 8]
jmp 0x101396c
xor ecx, ecx
call fcn.01009337
lea ecx, [ebp - 4]
call fcn.0100af9e
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
jne 0x101395e
pop edi
pop esi
pop ebx
leave
ret