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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
or edi, 0xffffffff
cmp byte [0x77d1a0a8], bl
mov dword [ebp - 0x218], eax
je 0x77cd2295
push 0x77d1a480
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x77d1e6a8], ebx
jne 0x77cd229f
cmp dword [ebp + 8], 1
je 0x77cbfe1a
cmp dword [ebp + 8], 2
jne 0x77cd22a8
cmp byte [0x77d1a0c0], bl
jne 0x77cd22b2
push 0x77d1a860
call dword [sym.imp.ntdll.dll_RtlIsGenericTableEmpty]
test al, al
jne 0x77cd22c6
cmp byte [ebp + 0x18], bl
jne 0x77cd22d0
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x20019
push 0x77cbea80
push dword [0x77d1e6a8]
push dword [ebp + 8]
call fcn.77cbeaa7
mov esi, eax
cmp esi, ebx
jl 0x77cbff10
push 0x77cbff3c
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x228]
push eax
push 0x20c
lea eax, [ebp - 0x210]
push eax
push 1
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, ebx
jl 0x77cbfecb
cmp dword [ebp - 0x20c], 4
jne 0x77cbff2e
cmp dword [ebp - 0x204], 4
jne 0x77cbff2e
mov eax, dword [ebp - 0x208]
mov edi, dword [ebp + eax - 0x210]
push dword [ebp - 0x214]
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
jl 0x77cbff10
push edi
push 0x77d1a860
call fcn.77cb5bfd
test eax, eax
je 0x77cd22c6
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x77cbff35
cmp dword [ebp + 0xc], 4
jb 0x77cbff35
mov dword [eax], edi
xor esi, esi
mov eax, dword [ebp - 0x218]
cmp eax, ebx
jne 0x77cd22f4
push 0x77d1a480
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x14
mov esi, 0xc0000225
jmp 0x77cbfecb
mov esi, 0xc0000023
jmp 0x77cbff02
mov esi, 0xc0000001
jmp 0x77cbff1b
cmp dword [ebp + 8], 3
jmp 0x77cbfe14
mov esi, 0xc0000030
jmp 0x77cbff10
call fcn.77cbfb39
mov esi, eax
cmp esi, ebx
jge 0x77cbfe26
jmp 0x77cbff10
mov esi, 0xc0000225
jmp 0x77cbff10
cmp dword [ebp + 8], 2
mov eax, dword [0x77d1e6a0]
je 0x77cd22e0
mov eax, dword [0x77d1e69c]
cmp eax, ebx
mov edi, 0x40000
je 0x77cbfedb
mov edi, dword [eax]
jmp 0x77cbfedb
mov dword [eax], 4
jmp 0x77cbff10
Function at 0x77cbff5b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x224], 0
and dword [ebp - 0x220], 0
push 0x77cbffe4
push 1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x77cbffd4
push esi
lea eax, [ebp - 0x224]
push eax
push 0x218
lea eax, [ebp - 0x21c]
push eax
push 2
push 0x77cbfffc
push dword [ebp - 0x220]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x220]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
pop esi
jge 0x77cd1fef
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.77cc744e
leave
ret
cmp dword [ebp - 0x218], 4
jne 0x77cbffd4
cmp dword [ebp - 0x214], 4
jne 0x77cbffd4
mov eax, dword [ebp - 0x210]
jmp 0x77cbffd6

Function at 0x77cc744e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x77d1a0c4]
jne 0x77ce8128
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x77d1e928], eax
mov dword [0x77d1e924], ecx
mov dword [0x77d1e920], edx
mov dword [0x77d1e91c], ebx
mov dword [0x77d1e918], esi
mov dword [0x77d1e914], edi
mov word [0x77d1e940], ss
mov word [0x77d1e934], cs
mov word [0x77d1e910], ds
mov word [0x77d1e90c], es
mov word [0x77d1e908], fs
mov word [0x77d1e904], gs
pushfd
pop dword [0x77d1e938]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x77d1e93c], ecx
mov dword [0x77d1e930], eax
mov dword [0x77d1e878], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x77d1e834], eax
mov eax, dword [0x77d1a0c4]
xor edi, edi
mov dword [0x77d1e92c], ecx
mov dword [0x77d1e828], 0xc0000409
inc edi
mov dword [0x77d1e82c], edi
mov dword [ebp - 4], eax
mov eax, dword [0x77d1a0c8]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x77ce8208
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret
Function at 0x77cc8a8f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtEnumerateKey]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [esi + 4]
push edi
push 0x120
lea eax, [esi + 0x10]
push eax
push 1
push dword [esi + 8]
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call ebx
cmp eax, 0x80000005
je 0x77cdbaf6
test eax, eax
jl 0x77cc8ad0
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword fs:[0x18]
push dword [edi]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x77cdbb1d
mov eax, 0xc0000017
jmp 0x77cc8ad0
push edi
push dword [edi]
push eax
push 1
push dword [esi + 8]
push dword [ebp + 8]
call ebx
jmp 0x77cc8ac5
Function at 0x77cc9b9a
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edx
call fcn.77cc9b19
test eax, eax
je 0x77cc9c03
shr edx, 3
not edx
push ebx
and edx, 1
xor ebx, ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x90], edx
call fcn.77cc9c14
test eax, eax
je 0x77cc9c02
lea eax, [ebp + 0x10]
mov dword [ebp - 0x94], eax
xor eax, eax
cmp dword [ebp + 0xc], 0x3e8
jb 0x77cd0100
cmp eax, ebx
mov dword [ebp - 0x94], ebx
jne 0x77cd0129
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.77cc744e
leave
ret
lea eax, [ebp - 0x94]
push eax
push ebx
lea eax, [ebp - 0x88]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.77cf0366
push eax
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
jmp 0x77cc9bf4
push esi
push edi
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x9e]
push eax
movzx eax, word [ebp - 0xa0]
push eax
movzx eax, word [ebp - 0xa2]
push eax
movzx eax, word [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x77cd02a8
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.77c9e2c6
add esp, 0x24
test byte [0x77d1e628], 0x40
mov esi, 0x77cd02f4
jne 0x77cd01a4
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x84]
push eax
call edi
push dword [ebp - 0x88]
call edi
push esi
call edi
test byte [0x77d1e628], 8
je 0x77cd025b
push 0x208
call fcn.77ccac29
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x9c], edi
je 0x77cd024f
push 0x104
push edi
call fcn.77cf04a1
test eax, eax
je 0x77cd024f
push edi
call fcn.77cf041c
cmp eax, 0xffffffff
mov dword [ebp - 0x8c], eax
je 0x77cd0243
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x77cd0243
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x88]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add eax, eax
push eax
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
call ebx
push 0
lea eax, [ebp - 0x98]
push eax
push esi
call edi
add eax, eax
push eax
push esi
push dword [ebp - 0x8c]
call ebx
xor ebx, ebx
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x9c]
call fcn.77cf0169
pop ecx
cmp dword [ebp - 0x90], ebx
pop edi
pop esi
je 0x77cd0296
test byte [0x77d1e628], 4
je 0x77cd0296
lea ecx, [ebp - 0x90]
call fcn.77cefa55
push dword [ebp - 0x88]
lea eax, [ebp - 0x90]
push 1
push ebx
push 0x191
push eax
call fcn.77cefa60
add esp, 0x14
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x77cc9c02
Function at 0x77ccba96
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
xor ebx, ebx
call fcn.77ca009d
cmp eax, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x77cde470
cmp eax, 0x16
je 0x77cde470
push ebx
push 0x2c1
push 0x77ca01f4
call fcn.77c9e3db
pop esi
pop ebx
leave
ret 4
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [0x77d1a138]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
call ebx
push dword [0x77d1a0f8]
mov dword [ebp - 0x10], eax
call ebx
cmp edi, esi
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax + 6]
mov dword [ebp - 0x18], eax
je 0x77cde60c
add eax, edi
lea eax, [eax + eax + 0xc]
push eax
push 0x285
push 0x77ca01f4
call fcn.77c9e393
mov ebx, eax
cmp ebx, esi
je 0x77cde60e
lea eax, [ebx + edi*2 + 2]
inc edi
push edi
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x77cde60e
mov edi, dword [ebp + 8]
cmp edi, 4
push esi
push esi
push esi
push esi
jne 0x77cde4f2
push dword [0x77d1a118]
jmp 0x77cde4f8
push dword [0x77d1a0ec]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x77cde60e
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.ntdll.dll_RtlGetThreadPreferredUILanguages]
push 0x24
call edi
cmp eax, esi
je 0x77cde528
cmp eax, 0xc0000023
jne 0x77cde599
mov eax, dword [ebp - 4]
cmp eax, esi
jbe 0x77cde599
add eax, eax
push eax
push 0x2a1
push 0x77ca01f4
call fcn.77c9e393
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x77cde599
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0x24
call edi
cmp dword [ebp - 8], esi
jbe 0x77cde587
mov edi, dword [ebp - 0xc]
jmp 0x77cde57d
push edi
call fcn.77ca009d
mov ecx, eax
and ecx, 0x3ff
cmp ecx, dword [ebp + 8]
je 0x77cde584
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], si
je 0x77cde587
jmp 0x77cde55f
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
push 0x2ae
push 0x77ca01f4
call fcn.77c9e3db
mov edi, dword [ebp - 0x14]
push 5
push edi
push esi
push dword [ebp - 0x10]
call fcn.77d155d3
push dword [0x77d1a138]
lea eax, [edi + 0xa]
push edi
push dword [0x77d1a0f8]
push 0x77cde614
push dword [ebp - 0x18]
push eax
call fcn.77c9e2c6
add esp, 0x18
push esi
push esi
push esi
push esi
lea eax, [edi + 0xa]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x77cde60e
push 1
push edi
push dword [ebp + 8]
push ebx
call fcn.77d156f1
push esi
push edi
push dword [ebp + 8]
push ebx
call fcn.77d156f1
push 1
push esi
push dword [ebp + 8]
push ebx
call fcn.77d156f1
push esi
push esi
push dword [ebp + 8]
push ebx
call fcn.77d156f1
jmp 0x77cde60e
mov ebx, esi
pop edi
jmp 0x77ccbac7
Function at 0x77ccbf61
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, word [ebx + 2]
push edi
push ecx
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, edi
mov dword [ebp + 0x10], eax
je 0x77cdb777
cmp dword [ebp + 0x14], edi
mov dword [ebp - 8], eax
mov ax, word [ebx + 2]
push esi
mov word [ebp - 0xa], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
je 0x77ccc05c
call fcn.77cc864d
mov esi, eax
cmp esi, edi
jl 0x77cdb781
cmp dword [ebp + 0x18], edi
mov eax, dword [ebp - 8]
mov si, word [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x14], si
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x2c]
jne 0x77cdb79e
push eax
push 0x2000000
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x77ccc03c
mov ecx, dword [ebp - 8]
sub word [ebp - 0xc], si
movzx eax, si
shr eax, 1
lea eax, [ecx + eax*2]
mov dword [ebp - 8], eax
cmp word [eax], 0x5c
jne 0x77ccc031
add word [ebp - 0xc], 0xfffe
inc eax
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
push dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret 0x14
call fcn.77cc87cf
jmp 0x77ccbfb8
mov eax, 0xc000009a
jmp 0x77ccc056
push dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x77ccc055
push dword [ebp + 0x18]
push eax
push 0x2000000
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_NtOpenKeyTransacted]
jmp 0x77ccc008
Function at 0x77ce4a97
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x68
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0xf8], ebx
call sub.ntdll.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0xf4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
jne 0x77ce4aef
push 0x8009001e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x77ce4b5e
lea eax, [ebp - 0xfc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x77ce4b11
push 0x8009001c
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x77ce4b57
lea eax, [ebp - 0x6c]
push eax
call fcn.77c8a93d
lea eax, [ebp - 0x6c]
push eax
push ebx
push esi
call fcn.77ce49e9
test eax, eax
je 0x77ce4b04
lea eax, [ebp - 0x6c]
push eax
call fcn.77c8a977
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push edi
call fcn.77c8b323
test eax, eax
jne 0x77ce4b4d
push 0x80090006
jmp 0x77ce4b09
mov dword [ebp - 0xf8], 1
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xf8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x10
Function at 0x77ce68a3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x77ce69b8
lea eax, [ebp - 0x10]
push eax
call edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
xor ebx, ebx
push 1
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x77ce6982
mov eax, dword fs:[0x18]
push esi
push 0x14
pop ecx
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x77ce6978
push 0x77ce6988
lea eax, [ebp - 0x18]
push eax
call edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push 2
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x77ce6944
mov eax, dword [esi + 0xc]
mov dword [0x77d20b00], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test dword [ebp + 8], 0x20000
je 0x77ce6968
and dword [0x77d20b00], 0xfffffffd
test dword [ebp + 8], 0x10000
je 0x77ce6978
and dword [0x77d20b00], 0xfffffffe
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x77ce706f
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 1
xor ebx, ebx
push ebx
push ebx
call sym.ADVAPI32.dll_OpenSCManagerW
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x77ce7098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x77ce712f
push edi
push 0x54
push 0x77ce7138
push eax
call sym.ADVAPI32.dll_OpenServiceW
mov edi, eax
cmp edi, ebx
jne 0x77ce70b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x77ce711c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 4], eax
jmp 0x77ce7103
mov eax, dword [ebp - 0x20]
dec eax
je 0x77ce70dc
sub eax, 6
jne 0x77ce70e8
lea eax, [ebp - 0x24]
push eax
push 3
push edi
call sym.ADVAPI32.dll_ControlService
jmp 0x77ce70e4
push ebx
push ebx
push edi
call sym.ADVAPI32.dll_StartServiceW
test eax, eax
je 0x77ce70ac
cmp dword [ebp - 0x20], 4
je 0x77ce7113
call esi
sub eax, dword [ebp - 4]
cmp eax, 0x4e20
ja 0x77ce7117
push ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [ebp - 0x24]
push eax
push edi
call sym.ADVAPI32.dll_QueryServiceStatus
test eax, eax
je 0x77ce70ac
jmp 0x77ce70c3
xor esi, esi
jmp 0x77ce711c
mov esi, 0x41d
push dword [ebp - 8]
call sym.ADVAPI32.dll_CloseServiceHandle
cmp edi, ebx
je 0x77ce712e
push edi
call sym.ADVAPI32.dll_CloseServiceHandle
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x77cec8d9
Capabilities:
Identify system language via api

Disassembly:
push 0x10c
push 0x77cecb90
call fcn.77cacc5f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x110], eax
or dword [ebp - 0xf0], 0xffffffff
or dword [ebp - 0xec], 0xffffffff
or dword [ebp - 0x100], 0xffffffff
and dword [ebp - 0xfc], 0
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xf8], eax
and dword [ebp - 0x104], 0
push 0x64
pop ebx
mov dword [ebp - 0xf4], ebx
mov byte [ebp - 0xe5], 0
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x104]
push eax
push 4
mov esi, dword [sym.imp.ntdll.dll_RtlGetThreadPreferredUILanguages]
call esi
mov edi, eax
test edi, edi
je 0x77cec97c
cmp edi, 0xc0000023
jne 0x77cecb68
mov eax, dword [ebp - 0xf4]
cmp eax, ebx
jbe 0x77cec9c6
add eax, eax
push eax
call fcn.77cbe67f
mov dword [ebp - 0xf8], eax
test eax, eax
jne 0x77cec9a2
mov edi, 0xc0000017
jmp 0x77cecb68
mov byte [ebp - 0xe5], 1
lea ecx, [ebp - 0xf4]
push ecx
push eax
lea eax, [ebp - 0x104]
push eax
push 4
call esi
mov edi, eax
test edi, edi
jne 0x77cecb68
cmp dword [ebp - 0x104], 0
je 0x77ceca70
mov esi, dword [ebp - 0xf8]
cmp dword [ebp - 0xf4], 0
jbe 0x77ceca70
cmp word [esi], 0
je 0x77ceca70
lea eax, [ebp - 0x100]
push eax
push 0x77cecb88
push esi
call fcn.77d0e240
add esp, 0xc
cmp eax, 0xffffffff
je 0x77ceca5d
cmp word [ebp - 0xf0], 0xffff
jne 0x77ceca23
movzx eax, word [ebp - 0x100]
mov dword [ebp - 0xf0], eax
jmp 0x77ceca32
mov eax, dword [ebp - 0x100]
cmp word [ebp - 0xf0], ax
jne 0x77ceca67
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77ceca37
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov eax, esi
sub eax, dword [ebp - 0xf8]
sar eax, 1
cmp eax, dword [ebp - 0xf4]
jae 0x77ceca70
jmp 0x77cec9e6
mov edi, 0xc000000d
jmp 0x77cecb68
movzx eax, ax
mov dword [ebp - 0xec], eax
cmp word [ebp - 0xf0], 0xffff
jne 0x77ceca8b
call dword [sym.imp.KERNEL32.dll_GetThreadUILanguage]
movzx eax, ax
mov dword [ebp - 0xf0], eax
jmp 0x77cecaad
cmp word [ebp - 0xec], 0xffff
jne 0x77cecabc
call dword [sym.imp.KERNEL32.dll_GetThreadUILanguage]
movzx eax, ax
mov dword [ebp - 0xec], eax
cmp word [ebp - 0xf0], ax
jne 0x77cecabc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0xec], eax
mov esi, dword [ebp - 0xf0]
cmp si, word [ebp - 0xec]
jne 0x77cecada
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0xec], eax
and dword [ebp - 4], 0
push dword [ebp - 0x110]
lea eax, [ebp - 0xfc]
push eax
push dword [ebp - 0xec]
push esi
push dword [ebp - 0x11c]
push dword [ebp - 0x108]
call fcn.77cee616
mov edi, eax
mov dword [ebp - 0x114], edi
mov eax, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0x118]
mov dword [ecx], eax
jmp 0x77cecb61
mov dword [ebp - 4], 0xfffffffe
cmp byte [ebp - 0xe5], 0
je 0x77cecb7c
push dword [ebp - 0xf8]
call fcn.77cbb6cd
mov eax, edi
call fcn.77cacca7
ret 0x10
Function at 0x77cefa45
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.77cef377

Function at 0x77cf041c
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
mov edi, 0x80
push edi
push 3
push 0
push 1
push 6
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x77cf0488
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x77cf0488
push 0
push edi
push 4
push 0
push 1
push 6
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x77cf0488
push 0
lea eax, [ebp - 4]
push eax
push 8
push 0x77cf0494
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x77cf0488
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x77cf0bc7
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
lea edi, [ebx + 0x210]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x77cf0bff
mov dword [ebp + 0x18], 0xc0000017
jmp 0x77cf0c7e
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
mov dword [ebp + 0x18], eax
jl 0x77cf0c69
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0x10]
je 0x77cf0c39
mov dword [ebp + 0x18], 0xc0000225
jmp 0x77cf0c69
mov edi, dword [esi + 8]
cmp edi, ebx
mov dword [ebp - 4], edi
jbe 0x77cf0c4c
mov dword [ebp + 0x18], 0xc0000023
jmp 0x77cf0c60
push edi
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x14]
call sub.ntdll.dll_memcpy
add esp, 0xc
and dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x77cf0c69
mov dword [eax], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x77cf0fd5
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0xa0], ebx
jne 0x77cf0ff1
cmp dword [esi + 0x9c], ebx
je 0x77cf1006
mov eax, dword [esi + 0xa8]
or eax, dword [esi + 0xac]
je 0x77cf1006
xor eax, eax
jmp 0x77cf108f
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x58]
or ecx, dword [eax + 0x5c]
je 0x77cf1032
mov ecx, dword [eax + 0x64]
cmp ecx, ebx
je 0x77cf1032
mov dword [esi + 0x9c], ecx
mov ecx, dword [eax + 0x58]
mov dword [esi + 0xa8], ecx
mov eax, dword [eax + 0x5c]
mov dword [esi + 0xac], eax
jmp 0x77cf0fff
mov eax, dword [esi + 0x8c]
cmp eax, ebx
jne 0x77cf1043
mov eax, 0xc0000225
jmp 0x77cf108f
push edi
lea edi, [esi + 0xa8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x77cf1089
mov eax, dword [edi]
or eax, dword [edi + 4]
jne 0x77cf1064
mov eax, 0xc000000d
jmp 0x77cf108e
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x8c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
je 0x77cf1089
cmp eax, 0xffffffff
je 0x77cf1089
mov dword [esi + 0xa0], eax
xor eax, eax
jmp 0x77cf108e
mov eax, 0xc0000022
pop edi
pop esi
pop ebx
pop ebp
ret 4