joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454110
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], esi
call fcn.0047afc7
add esp, 4
lea ecx, [ebp - 0x1c]
mov ebx, eax
mov eax, dword [ebp + 0xc]
push ecx
push 0x20019
push esi
push 0x57d044
push reloc.WS2_32.dll_closesocket
mov dword [eax], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x454251
mov dword [ebp - 0x18], esi
jmp 0x454179
xor esi, esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push esi
push esi
push esi
lea edx, [ebp - 0x24]
push esi
push edx
push ebx
push eax
push ecx
mov dword [ebp - 0x24], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
mov dword [ebp - 0x28], esi
je 0x45420e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x454232
push str.lasses
push ebx
call fcn.0047bec0
add esp, 8
test eax, eax
jne 0x454232
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
shl edx, 7
push ebx
push 0x48b2f4
lea esi, [edx + eax]
push esi
call fcn.0047a8f8
add esp, 0xc
mov ecx, 0x65cd80
push esi
call fcn.00479641
push 0xa
mov ecx, eax
call fcn.00479456
push 0x401430
mov ecx, eax
call fcn.00401410
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x454232
push str.get_user_id_defeat
mov ecx, 0x65cd80
call fcn.00479641
push 0xa
mov ecx, eax
call fcn.00479456
push 0x401430
mov ecx, eax
call fcn.00401410
mov eax, dword [ebp - 0x20]
inc eax
cmp eax, 0x3f
mov dword [ebp - 0x20], eax
jg 0x454251
mov ecx, dword [ebp - 0x18]
inc ecx
cmp esi, 0x103
mov dword [ebp - 0x18], ecx
jne 0x454177
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
push ebx
mov dword [eax], edx
call fcn.0047afbc
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454ab0
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483d70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call fcn.0047afc7
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x22c]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x18]
push ecx
push 0xf003f
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.err_code_1...
mov ecx, 0x65cd80
mov dword [ebp - 0x1c], eax
call fcn.00479641
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.004794f4
push 0xa
mov ecx, eax
call fcn.00479456
push 0x401430
mov ecx, eax
call fcn.00401410
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x454c99
mov ecx, dword [ebp - 0x18]
push 0
mov eax, 0x80
push 0
push 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
push 0
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov dword [ebp - 0x1c], eax
je 0x454c87
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
push 0xf003f
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x12c]
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push edx
push eax
push 0
push str.Debugger
push ecx
mov dword [ebp - 0x24], 1
call edi
test eax, eax
jne 0x454c18
mov eax, dword [ebp + 8]
lea edx, [esi + esi*2]
shl edx, 7
push ebx
push 0x48b2f4
lea edi, [edx + eax]
push edi
call fcn.0047a8f8
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00483565
push eax
add edi, 0x80
push 0x48b2f4
push edi
call fcn.0047a8f8
add esp, 0x1c
inc esi
cmp esi, 0x200
je 0x454c99
jmp 0x454c7a
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x12c]
push edx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
push ecx
push 0
push str.Debugger
push edx
call edi
test eax, eax
jne 0x454c7a
mov ecx, dword [ebp + 8]
lea eax, [esi + esi*2]
shl eax, 7
push ebx
push 0x48b2f4
lea edi, [eax + ecx]
push edi
call fcn.0047a8f8
lea edx, [ebp - 0x12c]
push edx
call fcn.00483565
push eax
add edi, 0x80
push 0x48b2f4
push edi
call fcn.0047a8f8
add esp, 0x1c
inc esi
cmp esi, 0x200
je 0x454c99
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
inc edx
cmp eax, 0x103
mov dword [ebp - 0x14], edx
jne 0x454b59
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
push edx
mov dword [ecx], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0047afbc
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454cf0
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
lea ecx, [esp + 4]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_s
push ecx
call fcn.0047a8f8
add esp, 0xc
lea edx, [esp]
lea eax, [esp + 4]
push edx
push 0xf003f
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x454d3d
mov ecx, dword [esp]
push str.Debugger
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 1
add esp, 0x104
ret
Function at 0x455990
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x448
mov edx, dword [esp + 0x450]
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x460]
push ecx
xor ebp, ebp
push edx
push eax
mov dword [esp + 0x20], ebp
xor ebx, ebx
call fcn.004557c0
lea ecx, [esp + 0x28]
push str.unKnown
push ecx
call fcn.0047fde0
add esp, 0x18
test eax, eax
je 0x455ba0
cmp dword [esp + 0x10], ebp
je 0x455ba0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], eax
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x464]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x358]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x258]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x45c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x358]
push ecx
call fcn.0047c0d3
lea edx, [esp + 0x35c]
lea eax, [esp + 0x25c]
push edx
push str._s.
push eax
call fcn.0047a8f8
add esp, 0x10
lea ecx, [esp + 0x118]
lea edx, [esp + 0x258]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x455b74
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x118], 0x10
jne 0x455b57
cmp byte [esp + 0x144], 0x2e
je 0x455b57
mov eax, dword [esp + 0x460]
lea ecx, [esp + 0x144]
push eax
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
je 0x455b57
lea edx, [esp + 0x10]
lea eax, [esp + 0x98]
push edx
mov edx, dword [esp + 0x460]
lea ecx, [esp + 0x148]
push eax
push ecx
push edx
mov byte [esp + 0xa8], 0
mov dword [esp + 0x20], 0
call fcn.004557c0
lea eax, [esp + 0x28]
lea ecx, [esp + 0xa8]
push eax
push ecx
call fcn.0047fde0
add esp, 0x18
test eax, eax
jne 0x455b47
lea edx, [esp + 0x144]
inc ebp
push edx
call fcn.004246a0
add esp, 4
test eax, eax
jle 0x455b35
add ebx, eax
cmp ebx, 0x100000
jle 0x455b42
add ebp, 4
xor ebx, ebx
cmp ebp, 0xf
je 0x455b74
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0xfa
mov dword [esp + 0x14], eax
je 0x455b74
lea eax, [esp + 0x118]
push eax
push esi
call edi
test eax, eax
jne 0x455a97
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x468]
push str.c:endpcache
mov dword [ecx], ebp
call fcn.0047c0d3
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x448
ret
mov edi, str.unKnown
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x468]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x464]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [eax], ebp
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x448
ret
Function at 0x459e90
Capabilities:
Manipulate safe mode programs

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483e20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push esi
lea eax, [ebp - 0x110]
push str.HKLMSYSTEMCurrentControlSetControlSafeBootMinimal_sImpersonate
push eax
mov dword [ebp - 4], 0
call fcn.0047a8f8
lea ecx, [ebp - 0x110]
push ecx
call fcn.0042bb60
add esp, 0x10
lea edx, [ebp - 0x110]
push esi
push str.HKLMSYSTEMCurrentControlSetControlSafeBootMinimal_sMaxWait
push edx
call fcn.0047a8f8
lea eax, [ebp - 0x110]
push eax
call fcn.0042bb60
add esp, 0x10
lea ecx, [ebp - 0x110]
push esi
push str.HKLMSYSTEMCurrentControlSetControlSafeBootMinimal_s
push ecx
call fcn.0047a8f8
lea edx, [ebp - 0x110]
push edx
call fcn.004358d0
add esp, 0x10
lea eax, [ebp - 0x110]
push esi
push str.HKLMSYSTEMCurrentControlSetControlSafeBootNetwork_sImpersonate
push eax
call fcn.0047a8f8
lea ecx, [ebp - 0x110]
push ecx
call fcn.0042bb60
add esp, 0x10
lea edx, [ebp - 0x110]
push esi
push str.HKLMSYSTEMCurrentControlSetControlSafeBootNetwork_sMaxWait
push edx
call fcn.0047a8f8
lea eax, [ebp - 0x110]
push eax
call fcn.0042bb60
add esp, 0x10
lea ecx, [ebp - 0x110]
push esi
push str.HKLMSYSTEMCurrentControlSetControlSafeBootNetwork_s
push ecx
call fcn.0047a8f8
lea edx, [ebp - 0x110]
push edx
call fcn.004358d0
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459fc0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x28]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x459ffb
lea ecx, [esp + 8]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
Function at 0x45a860
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x40c
or ecx, 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [esp + 0x414]
push ebp
push esi
push edi
mov edi, ebx
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 2
jge 0x45a894
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x40c
ret
push 0x49e398
push ebx
call fcn.0047bec0
add esp, 8
test eax, eax
je 0x45a9d2
xor eax, eax
test ebp, ebp
jle 0x45a8c1
cmp byte [eax + ebx], 0x5c
jne 0x45a8b7
inc esi
cmp esi, 3
je 0x45a8c1
inc eax
cmp eax, ebp
jl 0x45a8b0
test eax, eax
jle 0x45a8de
mov ecx, eax
mov esi, ebx
mov edx, ecx
lea edi, [esp + 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, ebp
mov byte [esp + eax + 0x21c], 0
sub edx, eax
test edx, edx
jle 0x45a908
lea eax, [eax + ebx + 1]
mov ecx, edx
mov esi, eax
mov eax, ecx
lea edi, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + edx + 0x1c], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
lea eax, [edx - 1]
test eax, eax
jle 0x45a94f
cmp byte [esp + eax + 0x1c], 0x5c
je 0x45a930
dec eax
test eax, eax
jg 0x45a924
test eax, eax
jle 0x45a94f
mov ecx, eax
lea esi, [esp + 0x1c]
mov ebx, ecx
lea edi, [esp + 0x31c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
sub edx, eax
mov byte [esp + eax + 0x31c], 0
test edx, edx
jle 0x45a97a
lea eax, [esp + eax + 0x1d]
mov ecx, edx
mov esi, eax
mov eax, ecx
lea edi, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x21c]
push str.REGISTRYMACHINE
push ecx
mov byte [esp + edx + 0x124], 0
mov ebp, closesocket
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x45a9a0
lea edx, [esp + 0x21c]
push str.REGISTRYUSER
push edx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x45a9be
mov ebp, reloc.WS2_32.dll_closesocket
lea eax, [esp + 0x31c]
push eax
call fcn.00483565
add esp, 4
mov edx, eax
jmp 0x45aa12
push str.SYSTEMCurrentControlSetServices
mov ebp, closesocket
call fcn.00483565
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea esi, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
lea eax, [esp + 0x10]
push ecx
push eax
push 0
push 0xf003f
push 0
push 0x57d044
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x45aa5c
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x45aa5c
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40c
ret
Function at 0x45ad30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], ebx
call fcn.0047afc7
add esp, 4
mov edi, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edi
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x45ae19
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push 0
push ecx
push edi
push edx
push eax
mov dword [ebp - 0x1c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edx, eax
cmp edx, 0x103
je 0x45ae06
mov esi, ebx
or ecx, 0xffffffff
shl esi, 8
xor eax, eax
add esi, 0x6309bc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x20], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
cmp ebx, 0xff
rep movsb byte es:[edi], byte [esi]
jle 0x45ae03
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
inc ecx
cmp edx, 0x103
mov dword [ebp - 0x14], ecx
jne 0x45ad8d
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [0x65cd50], ebx
call fcn.0047afbc
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b1a0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0x20
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x28]
push 0x20
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x45b1dc
lea ecx, [esp + 8]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret

Function at 0x45b200
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0x20
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x28]
push 0x20
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x45b235
lea ecx, [esp + 8]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret

Function at 0x45b320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push str.SYSTEMCurrentControlSetServices_sParameters
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x14], 1
mov byte [esi], 0
mov byte [esp + 0x1c], 0
call fcn.0047a8f8
add esp, 0xc
lea edx, [esp + 4]
lea eax, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45b3c6
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.ServiceDll
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45b3c6
lea edx, [esp + 0x110]
push edx
push 0x48b2f4
push esi
call fcn.0047a8f8
add esp, 0xc
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x20c
ret

Function at 0x45b440
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x57d044
push 0
push str..DEFAULTSoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45b481
mov edx, dword [esp]
push str.DisableRegistryTools
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x4600c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
mov ecx, 0x65cd80
mov dword [ebp - 0x10], esp
push str.begin....function
call fcn.00479641
push 0x401430
push 0xa
mov ecx, eax
call fcn.00479456
mov ecx, eax
call fcn.00401410
xor ebx, ebx
push 0x80
mov dword [ebp - 4], ebx
call fcn.0047afc7
add esp, 4
mov esi, 0x200
mov edi, eax
push esi
mov dword [ebp - 0x20], edi
call fcn.0047afc7
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 7
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push closesocket
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4601ed
jmp 0x460163
mov esi, 0x200
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
push 0
push ecx
push edi
push ebx
push edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x4601ed
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x22c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00483565
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, esi
push eax
shl edx, 7
add edx, ecx
push 0x48b2f4
push edx
call fcn.0047a8f8
mov edi, dword [ebp - 0x20]
add esp, 0x10
inc esi
inc ebx
cmp ebx, 0x80
mov dword [ebp - 0x14], esi
jbe 0x46015e
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0047afbc
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
call fcn.0047afbc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [edx], eax
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465cd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x300
lea eax, [esp]
push ebp
push esi
push edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x310]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 1
jle 0x465d48
push 0x100
lea ecx, [esp + 0x110]
push ebp
push ecx
call fcn.0047b120
lea edx, [esp + 0x18]
lea eax, [esp + 0x118]
push edx
push eax
mov byte [esp + esi + 0x120], 0
call fcn.0047fde0
add esp, 0x14
test eax, eax
jne 0x465d48
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x300
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 0x8c]
push ecx
push str._sDocuments_and_Settings
push edx
mov byte [esp + 0x1a], 0
call fcn.0047a8f8
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 1
jle 0x465dc5
push 0x100
lea eax, [esp + 0x110]
push ebp
push eax
call fcn.0047b120
lea ecx, [esp + 0x98]
lea edx, [esp + 0x118]
push ecx
push edx
mov byte [esp + esi + 0x120], 0
call fcn.0047fde0
add esp, 0x14
test eax, eax
jne 0x465dc5
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x300
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x300
ret
Function at 0x46d6d0
Capabilities:
Delete registry value
Persist via ginadll registry key

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x57d044
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x46d711
mov edx, dword [esp]
push str.GinaDLL
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 1
add esp, 8
ret

Function at 0x46d730
Capabilities:
Get common file path

Disassembly:
sub esp, 0x280
lea eax, [esp]
push esi
push edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
lea edx, [esp + 0x188]
push ecx
push str._s_fonts
push edx
call fcn.0047a8f8
lea edi, [esp + 0x194]
or ecx, 0xffffffff
xor eax, eax
push 0x100
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x29c]
not ecx
dec ecx
push eax
mov esi, ecx
lea ecx, [esp + 0x9c]
push ecx
call fcn.0047b120
lea edx, [esp + 0xa0]
lea eax, [esp + 0x1a0]
push edx
push eax
mov byte [esp + esi + 0xa8], 0
call fcn.0047fde0
add esp, 0x20
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x280
ret

Function at 0x46d7c0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 3
push 0
push str.exefileDefaultIcon
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x46d7eb
or eax, 0xffffffff
pop ecx
ret
push edi
push 0x49bccc
call fcn.00483565
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop ecx
ret