joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001f10
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10028100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, ecx
push esi
mov dword [ebp - 0x408], edi
call ebx
cmp eax, 0xffffffff
je 0x10001ffc
test al, 1
je 0x10001f5a
and eax, 0xfffffffe
push eax
push esi
mov dword [ebp - 0x40c], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x40c]
test al, 0x10
je 0x10001ffc
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov word [ebp - 0x404], ax
call fcn.10011ef0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea edx, [ebp - 0x404]
push 0x1002327c
push edx
call fcn.10007eb2
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
xor edi, edi
call ebx
cmp eax, 0xffffffff
je 0x10001fe8
lea esp, [esp]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
lea ecx, [ebp - 0x404]
push 0x1002327c
push ecx
call fcn.10007eb2
add esp, 0x10
lea edx, [ebp - 0x404]
push edx
call ebx
inc edi
cmp edi, 0xa
jge 0x10002021
cmp eax, 0xffffffff
jne 0x10001fb0
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, dword [ebp - 0x408]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
mov eax, esi
call fcn.10001ed0
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
Function at 0x10002040
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10028100]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
test ebx, ebx
je 0x10002266
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.10011ef0
add esp, 0xc
lea edx, [ebp - 0x418]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 0x420], 0x208
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x100020f0
push esi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push str.CommonFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x418]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x1000216a
push 0x208
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.10011ef0
add esp, 0xc
xor eax, eax
jmp 0x10002110
movzx ecx, word [eax + str.c:program_filescommom_files_system]
mov word [ebp + eax - 0x20c], cx
add eax, 2
test cx, cx
jne 0x10002110
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.10011ef0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ax, word [ebp - 0x414]
mov word [ebp - 0x20c], ax
jmp 0x10002201
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002173
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea eax, [ebp - 0x20c]
je 0x100021c7
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10002196
mov ecx, dword [str._system]
mov edx, dword [0x10022fb0]
mov dword [eax], ecx
mov ecx, dword [0x10022fb4]
mov dword [eax + 4], edx
mov edx, dword [0x10022fb8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x10002201
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x100021d0
mov ecx, dword [str.system]
mov edx, dword [0x10022fc0]
mov dword [eax], ecx
mov ecx, dword [0x10022fc4]
mov dword [eax + 4], edx
mov dx, word [0x10022fc8]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002210
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x10002236
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
push 0x208
push 0
push ebx
call fcn.10011ef0
lea eax, [ebp - 0x20c]
mov edx, ebx
mov ecx, eax
add esp, 0xc
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10002252
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
Function at 0x100022b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10028100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call fcn.10018ba0
mov edi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.10011ef0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, str.TEC_OCULAR__AGENT_V3_MUTEX_WINHELPV3
call fcn.10001e50
lea edx, [ebp - 0x20c]
push edx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
pop edi
mov dword [esi], eax
pop ebx
test eax, eax
je 0x10002328
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10002338
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
Function at 0x10002c20
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x280c
call fcn.10009420
mov eax, dword [0x10028100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x10002c4c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
mov dword [ebp - 0x2808], 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002d2d
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x10002c96
mov dword [edi], 2
jmp 0x10002d01
push 0x27ff
lea eax, [ebp - 0x2803]
push 0
push eax
mov byte [ebp - 0x2804], 0
call fcn.10011ef0
mov eax, 0x2800
add esp, 0xc
cmp ebx, eax
jae 0x10002cbe
mov eax, ebx
push 0
lea ecx, [ebp - 0x280c]
push ecx
push eax
lea edx, [ebp - 0x2804]
push edx
push esi
mov dword [ebp - 0x280c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002cfb
lea ecx, [ebp - 0x2804]
call fcn.10002d60
test eax, eax
jne 0x10002d01
mov dword [edi], 3
jmp 0x10002d01
mov dword [edi], 5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi], 0
pop ebx
jne 0x10002d3e
mov dword [ebp - 0x2808], 1
mov eax, dword [ebp - 0x2808]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10002d3e
mov dword [edi], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2808]
xor ecx, ebp
pop esi
call fcn.10007ab0
mov esp, ebp
pop ebp
ret

Function at 0x10002fc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10028100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.10011ef0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, str.TEC_OCULAR__AGENT_V3_MUTEX_WINWDG32_2
call fcn.10001e50
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
pop ebx
test eax, eax
jne 0x10003069
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10003036
cmp dword [0x1002cbe8], 0
je 0x10003093
push str.IsExistWinWdg_1
jmp 0x1000307e
cmp dword [0x1002cbe8], 0
je 0x10003059
push str.IsExistWinWdg_2
push str.Monitor
or ecx, 0xffffffff
mov edx, 0x1002cb7c
call fcn.10004720
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1002cbe8], 0
je 0x10003093
push str.IsExistWinWdg_3
push str.Monitor
or ecx, 0xffffffff
mov edx, 0x1002cb7c
call fcn.10004720
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.10007ab0
mov esp, ebp
pop ebp
ret
Function at 0x10003530
Capabilities:
Start service

Disassembly:
cmp dword [0x1002cbe8], 0
je 0x10003553
push str.StartService_1
push str.Monitor
or ecx, 0xffffffff
mov edx, 0x1002cb7c
call fcn.10004720
add esp, 8
push ebx
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x100035e1
cmp dword [0x1002cbe8], edi
je 0x1000358c
push str.StartService_2
push str.Monitor
or ecx, 0xffffffff
mov edx, 0x1002cb7c
call fcn.10004720
add esp, 8
push esi
push 0xf01ff
push str..Winhlpsvr
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x100035d4
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp dword [0x1002cbe8], 0
mov edi, eax
je 0x100035d4
push str.StartService_3
push str.Monitor
or ecx, 0xffffffff
mov edx, 0x1002cb7c
call fcn.10004720
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop esi
cmp dword [0x1002cbe8], 0
je 0x10003605
push edi
push str.StartService_4___d_
push str.Monitor
or ecx, 0xffffffff
mov edx, 0x1002cb7c
call fcn.10004720
add esp, 0xc
mov eax, edi
pop edi
pop ebx
ret
Function at 0x10003eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ff98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x10028100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.10005db0
mov dword [ebp - 4], 0
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
test eax, eax
je 0x10003f43
mov edi, dword [ebp + 8]
test edi, edi
je 0x10003f43
mov ecx, dword [esi + 0x24]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [ebp + 8], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003f20
mov ecx, dword [esi + 0x24]
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp + 8]
push edx
add eax, eax
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10005de0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10005530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10005580
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10005580
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x10005585
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1000556b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x10005592
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x10005f70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x10005fb1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10005fb3
mov esi, edi
test esi, esi
je 0x10006028
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1000601d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x1000601d
cmp dword [esp + 0x1c], eax
jbe 0x10005fee
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1000601d
cmp esi, edi
je 0x1000600f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x10006028
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x10006040
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x1000609f
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x1000609f
cmp dword [esp + 0xc], 3
jne 0x1000609f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x1000609f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x1000609f
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x100060b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001fb1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x10021310]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1000611b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1000611d
mov esi, edi
test esi, esi
je 0x100061e7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100061dc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1000615f
cmp eax, 2
je 0x1000615f
cmp eax, 6
je 0x1000615f
cmp eax, 7
jne 0x100061dc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.10007dec
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x100061c2
lea ecx, [esp + 0x14]
call fcn.10005180
cmp esi, dword [esp + 0x14]
je 0x100061b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.10007d26
add esp, 4
jmp 0x100061f9
call fcn.10007d26
add esp, 4
lea ecx, [esp + 0x10]
push 0x1002ae74
call fcn.10005180
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x100061e7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100061f9
push eax
lea ecx, [esp + 0x14]
call fcn.10005180
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.100049a0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.10004f90
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x10006540
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [ecx]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10006588
lea edx, [esp + 0x10]
or eax, 0x20006
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push 0
push 0
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1000658a
mov esi, edi
test esi, esi
je 0x100065ca
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100065bf
cmp esi, edi
je 0x100065b4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc
cmp esi, edi
je 0x100065ca
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x100065e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1000675d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000673c
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x10006636
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.10007dec
mov esi, eax
add esp, 4
test esi, esi
je 0x1000675d
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10006754
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006754
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10006754
push ebp
push edi
call fcn.100065e0
add esp, 8
test eax, eax
je 0x10006749
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1002ae70]
test eax, eax
je 0x100066e5
test ebp, ebp
je 0x100066e5
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x10006754
jmp 0x100066f1
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10006754
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x10006733
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10006754
mov eax, dword [esp + 0x14]
jmp 0x1000668e
push esi
call fcn.10007d26
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x10006754
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.10007d26
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

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

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x100067d9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10006799
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100067d9
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.100065e0
add esp, 8
test eax, eax
je 0x100067d9
mov eax, dword [0x1002ae70]
test eax, eax
je 0x100067c6
test edi, edi
je 0x100067c6
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x100067e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x10006816
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10006818
mov esi, dword [ebx]
test esi, esi
je 0x100068a3
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.0x10006848.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x10006848.2
jmp dword [eax*4 + 0x100068ac]
mov edi, 1
jmp case.0x10006848.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x10006848.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x10006848.0
cmp eax, 2
je case.0x10006848.0
cmp eax, 6
je case.0x10006848.0
cmp eax, 7
je case.0x10006848.0
xor edi, edi
jmp case.0x10006848.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x1000689b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x10006a90
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x10006b25
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x10006adf
call fcn.10007270
test eax, eax
je 0x10006adf
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10006acc
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x10006acc
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x10006ad8
add edi, ebx
mov ebx, 0x10004
jmp 0x10006ae1
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x10006c40
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x10006b25
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x10006b14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret