joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40602b
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x4060ac
mov byte [esi + 8], 1
call fcn.004060da
cmp dword [esi + 0x10], 0
je 0x4060ac
test al, al
je 0x40604b
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.00406645
test al, al
jne 0x406072
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406acb
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.0040619f
cmp dword [esi + 0x18], 0
jne 0x406099
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00406acb
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x4060ac
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x40619f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x6c]
push edi
xor edi, edi
mov dword [ebp - 0x6c], edi
mov ecx, dword [esi + 0x14]
call fcn.00404dfe
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x4061d6
mov ecx, esi
call fcn.00406308
xor eax, eax
cmp byte [esi + 0xa], al
push edi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x40620f
mov dword [esi + 0x18], edi
xor al, al
jmp 0x4062a0
lea ecx, [ebp - 0x8c]
call fcn.00402e44
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x4297f4
push eax
call fcn.004029a4
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push 0xc0010000
push eax
call fcn.00402ec1
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.00402a8d
test bl, bl
je 0x406268
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
push eax
call fcn.00403740
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406293
cmp byte [esi + 0xb], 0
je 0x406293
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push eax
push 2
push 0x429568
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.00402e8a
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408ccd
leave
ret

Function at 0x4062af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x4062df
xor al, al
jmp 0x406303
cmp byte [esi + 0xb], bl
je 0x4062fa
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x429568
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406387
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4064af
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x4064af
cmp dword [ebp - 0x78], esi
jne 0x4064af
push dword [ebp - 0x6c]
call fcn.004197fd
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.00409850
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x4064a0
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x4064a0
cmp word [esi + edi*2 - 4], bx
jne 0x4064a0
cmp word [esi + edi*2 - 2], bx
jne 0x4064a0
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.004066b3
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x40648f
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406492
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x40646e
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.00401251
test esi, esi
je 0x4064ab
push esi
call fcn.004096db
pop ecx
mov al, bl
jmp 0x4064b1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408ccd
leave
ret

Function at 0x406645
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406652
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40668b
cmp eax, 0x80
je 0x40668b
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406acb
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x40664e
mov al, 1
pop esi
ret
Function at 0x406ba6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00409850
mov esi, dword [0x42eb9c]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404b64
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.00401251
lea ecx, [ebp - 0x808]
call fcn.004070de
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x406c5a
sub eax, 1
jne 0x406c4b
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00408ccd
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4070de
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40714d
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x407129
push ebx
push edi
push eax
call fcn.0040ac80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x407144
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x43e52a7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.43e5363c
test esi, esi
jne 0x43e52ab3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.43e5372c
jmp 0x43e52ad4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.43e52918
mov dword [esp], eax
test esi, esi
je 0x43e52ad4
cmp dword [ebx], 0
je 0x43e52ad4
dec esi
jmp 0x43e52abb
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x43e52b9c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x43e71008], 0x8088405
inc edx
mov dword [ebx + 0x43e71008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x43e52d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x43e71010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43e52dc8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x43e52da8
xor eax, eax
push ebp
push 0x43e52da1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x43e52de4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e52da8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x43e71010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x43e71010], ax
mov esp, ebp
pop ebp
ret

Function at 0x43e534b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43e72034], 0
je 0x43e53519
cmp word [0x43e72208], 0xd7b2
jne 0x43e534e1
cmp dword [0x43e72210], 0
jbe 0x43e534e1
mov eax, 0x43e72204
call dword [0x43e72220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43e71058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x43e53540
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43e7101c], 0
jne 0x43e53535
push 0
push 0x43e71050
push 0x43e71058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x43e53bfc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x43e53c62
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.43e537a8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.43e52c24
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x43e53c4c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e53c69
lea eax, [ebp - 0x10]
call fcn.43e5363c
ret
Function at 0x43e66c4c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e66d6c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov eax, 0x43e66d88
call fcn.43e53a58
test eax, eax
jg 0x43e66d4e
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.43e66be8
mov esi, eax
test esi, esi
jle 0x43e66d4e
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.43e53a18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.43e539c0
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x43e66d4e
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.43e537c0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.43e53a18
cmp dword [ebp - 0xc], 0
jne 0x43e66d20
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
jmp 0x43e66d45
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.43e539c0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e66d73
lea eax, [ebp - 0xc]
call fcn.43e5363c
lea eax, [ebp - 4]
call fcn.43e5363c
ret
Function at 0x43e66d8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e66eca
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.43e66be8
mov esi, eax
test esi, esi
jle 0x43e66eac
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.43e53a18
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.43e539c0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e66eac
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.43e537c0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.43e53a18
cmp dword [ebp - 0xc], 0
jne 0x43e66e2c
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x43e66e37
mov eax, dword [ebp - 0xc]
call fcn.43e539c0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43e66ea3
mov eax, dword [ebp - 0x18]
call fcn.43e527c4
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43e66e9c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x43e66e93
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov bl, 1
jmp 0x43e66ea3
mov eax, esi
call fcn.43e527f4
jmp 0x43e66ea3
mov eax, esi
call fcn.43e527f4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e66ed1
lea eax, [ebp - 0xc]
call fcn.43e5363c
lea eax, [ebp - 4]
call fcn.43e5363c
ret
Function at 0x43e672d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e6739f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.43e66be8
mov esi, eax
test esi, esi
jle 0x43e67384
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.43e53a18
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e67384
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.43e537c0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.43e53a18
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e673a6
lea eax, [ebp - 8]
mov edx, 2
call fcn.43e53660
ret

Function at 0x43e673b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e67473
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.43e66be8
mov esi, eax
test esi, esi
jle 0x43e67458
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.43e53a18
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e67458
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.43e537c0
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.43e53a18
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e6747a
lea eax, [ebp - 8]
mov edx, 2
call fcn.43e53660
ret
Function at 0x43e67484
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e675e2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov eax, 0x43e675fc
call fcn.43e53a58
test eax, eax
je 0x43e675bc
lea eax, [ebp - 0xc]
push eax
push 0x2000e
push 0
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
mov esi, eax
cmp byte [ebp - 5], 0
je 0x43e6759f
test esi, esi
jne 0x43e675bc
mov eax, dword [0x43e710b4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.43e53aa0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
call fcn.43e53a10
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov esi, eax
cmp esi, 0x103
jne 0x43e67554
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
push edi
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
jmp 0x43e67595
test esi, esi
jne 0x43e67595
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.43e53aa0
push dword [ebp - 4]
push 0x43e675fc
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.43e53880
mov edx, dword [ebp - 0x18]
mov cl, byte [ebp - 5]
mov eax, edi
call fcn.43e67484
test al, al
je 0x43e67590
xor esi, esi
jmp 0x43e67595
mov esi, 0x3f2
test esi, esi
je 0x43e674f8
jmp 0x43e675bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
push edi
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e675e9
lea eax, [ebp - 0x18]
call fcn.43e5363c
lea eax, [ebp - 0x10]
call fcn.43e5363c
lea eax, [ebp - 4]
call fcn.43e5363c
ret
Function at 0x43e67600
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e6773d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.43e5363c
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e6771f
mov byte [ebp - 9], 1
mov dword [ebp - 0x18], 0x400
mov eax, dword [ebp - 0x18]
call fcn.43e527c4
mov esi, eax
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x18], 0x400
cmp byte [ebp + 8], 0
je 0x43e6769b
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, eax
jmp 0x43e676b4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x43e67707
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.43e53aa0
lea eax, [ebp - 0x10]
call fcn.43e53a10
mov edx, eax
mov eax, esi
mov ecx, dword [ebp - 0x18]
call fcn.43e528d8
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x43e676ec
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.43e53690
jmp 0x43e67706
mov eax, dword [ebp - 8]
push dword [eax]
push 0x43e67758
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.43e53880
inc edi
test ebx, ebx
je 0x43e67673
mov eax, esi
call fcn.43e527f4
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e67744
lea eax, [ebp - 0x10]
call fcn.43e5363c
lea eax, [ebp - 4]
call fcn.43e5363c
ret

Function at 0x43e679b4
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.43e539b0
mov eax, dword [ebp - 8]
call fcn.43e539b0
xor eax, eax
push ebp
push 0x43e67a53
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.43e539c0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x43e67a33
push 4
mov eax, dword [ebp - 8]
call fcn.43e539c0
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x43e67a29
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x43e67a23
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
jmp 0x43e67a38
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e67a5a
lea eax, [ebp - 8]
mov edx, 2
call fcn.43e53660
ret