joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105fefb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x10de03c]
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov ax, word [ebx]
cmp ax, 0x40
mov dword [ebp - 0x65c], edx
jne 0x105ff27
xor eax, eax
jmp 0x10600ad
mov cx, word [ebx + 2]
cmp cx, 0x3a
push esi
push edi
jne 0x105ff70
and word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], cx
lea eax, [ebx + 4]
cmp word [eax], 0x5c
lea ecx, [ebp - 0x3fe]
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x5c
mov dword [ebp - 0x658], ecx
jne 0x105ff6c
add ebx, 6
jmp 0x105ffe6
mov ebx, eax
jmp 0x105ffe6
push 0x5c
pop edi
cmp ax, di
jne 0x10600a9
cmp cx, di
jne 0x10600a9
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebx + 4]
push edi
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10600a9
add eax, 2
push edi
push eax
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10600a9
mov esi, edi
sub esi, ebx
sar esi, 1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov edx, dword [ebp - 0x65c]
lea eax, [ebp + esi*2 - 0x402]
add esp, 0xc
and word [eax], 0
mov dword [ebp - 0x658], eax
lea ebx, [edi + 2]
mov ecx, eax
test edx, edx
je 0x105fff0
mov dword [edx], 1
mov ax, word [ebx]
test ax, ax
jne 0x1060006
xor eax, eax
inc eax
jmp 0x10600ab
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x664], ecx
mov dword [ebp - 0x660], ebx
xor esi, esi
jmp 0x106002f
cmp ax, 0x5c
je 0x1060034
mov word [ecx], ax
inc ecx
inc ecx
inc ebx
inc ebx
inc esi
xor eax, eax
mov ax, word [ebx]
mov dword [ebp - 0x658], ecx
test ax, ax
jne 0x1060016
lea eax, [ebp - 0x654]
push eax
mov word [ecx], 0x2a
add ecx, 2
and word [ecx], 0
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x668], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10600a9
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
movzx ecx, si
cmp eax, ecx
jne 0x1060090
lea eax, [esi + esi]
push eax
push dword [ebp - 0x664]
lea eax, [ebp - 0x628]
push eax
call fcn.010829b3
test eax, eax
je 0x10600b8
lea eax, [ebp - 0x654]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1060061
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075aef
leave
ret
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x10600d0
mov ecx, dword [ebp - 0x654]
shr ecx, 4
and ecx, 1
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x660]
mov ecx, esi
lea esi, [ebp - 0x628]
rep movsw word es:[edi], word [esi]
mov ax, word [ebx]
mov ecx, dword [ebp - 0x658]
mov word [ecx], ax
cmp word [ebx], 0
je 0x105fff8
mov eax, dword [ebp - 0x668]
inc ebx
inc ebx
mov dword [ebp - 0x658], eax
mov ax, word [ebx]
test ax, ax
jne 0x1060000
jmp 0x105fff8
Function at 0x1066a48
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.01075e60
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01075e60
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x18]
push ecx
push 0x2000000
lea edi, [esi + 4]
mov eax, dword [edi]
push 0
push eax
push dword [esi]
mov byte [ebp - 4], 1
call ebx
test eax, eax
je 0x1066b1d
push 0x5c
mov ecx, edi
call fcn.01076238
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x1066b6f
push eax
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0107667c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.01075e30
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.01075e24
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.010765c8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.01075e30
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.01075e24
lea eax, [ebp - 0x18]
push eax
push 0x2000000
push 0
push dword [ebp - 0x14]
push dword [esi]
call ebx
test eax, eax
je 0x1066b1d
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.01075e54
jmp 0x1066b74
mov ecx, dword [ebp + 8]
mov eax, 0x200
push eax
mov dword [ebp - 0x1c], eax
call fcn.01076304
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 0x1c]
neg esi
sbb esi, esi
shr eax, 1
and word [edi + eax*2], 0
push 0xffffffffffffffff
inc esi
call fcn.010762f8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1066b74
call fcn.01077378
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.01075e24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1066ba2
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10042fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.01075e3c
push 0x100d50c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.010761f0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010761d8
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.01075e24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1066c58
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10042fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.01075e3c
push 0x100549c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.010761f0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010761d8
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.01075e24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1066d0e
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.01075e3c
xor ebx, ebx
push 0x100d518
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.010761f0
push 0x10042fc
lea ecx, [ebp + 8]
call fcn.01075e3c
push 0x100549c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.010761f0
call fcn.01050891
push eax
lea ecx, [ebp + 8]
call fcn.010761f0
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.01075e24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1066efb
Capabilities:
Query environment variable

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x218
mov eax, dword [0x10de03c]
and dword [ebp - 0x220], 0
cmp dword [ebp + 0xc], 0x270f
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x224], esi
jl 0x1066f86
push edi
push CompareStringW
lea eax, [ebp - 0x210]
push eax
push 0x100a544
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.01075e3c
xor edi, edi
lea eax, [ebp - 0x21c]
inc edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.010761cc
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 0
call fcn.01075e24
pop edi
jmp 0x1067022
call fcn.01021478
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.01075e3c
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 2
call fcn.01075e60
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push 0x100a438
push eax
mov byte [ebp - 4], 3
call fcn.01075e84
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
call fcn.010761d8
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
call fcn.010761cc
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 1
mov byte [ebp - 4], 2
call fcn.01075e24
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.01075aef
leave
ret 8
Function at 0x1068cf2
Capabilities:
Create directory

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x18
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call fcn.01075e60
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.01075e60
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.01075e54
push 0x3a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea ecx, [esi + 2]
cmp eax, ecx
jne 0x1068e8f
cmp word [esi + 4], 0x5c
jne 0x1068e8f
mov edi, 0x1004528
push edi
lea ecx, [ebp - 0x1c]
call fcn.01075e54
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010761f0
mov ebx, 0x1004204
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010761f0
mov ax, word [esi]
and word [ebp - 0x12], 0
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x16], reloc.ADVAPI32.dll_CloseServiceHandle
mov word [ebp - 0x14], 0x5c
call fcn.010761f0
add esi, 6
push esi
lea ecx, [ebp - 0x20]
call fcn.01075e54
push 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.01076220
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.01075e24
test esi, esi
jne 0x1068e8f
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.01076364
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1068e5e
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.01076220
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.010761d8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.01075e24
inc esi
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.010765c8
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.01075e30
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.01075e24
xor esi, esi
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x1068e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1068e91
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010761f0
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.01076364
mov esi, eax
cmp esi, 0xffffffff
jne 0x1068de5
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.010761d8
xor esi, esi
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x1068e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1068e91
xor esi, esi
inc esi
jmp 0x1068e91
xor esi, esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.01075e24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x106e6e8
Capabilities:
Start service

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0xc
push edi
push 0x100f70c
lea ecx, [ebp - 0x14]
call fcn.01075e3c
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x106e75b
push ebx
push esi
push reloc.KERNEL32.dll_LoadLibraryW
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
je 0x106e74f
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x106e74c
mov dword [ebp - 0x10], 1
jmp 0x106e74f
push ebx
call esi
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x10], edi
pop esi
pop ebx
jne 0x106e770
push 1
push edi
push 0x30
push edi
push 0x4ede
push 0xfa9
call fcn.01054be3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x106e791
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0x100f70c
lea ecx, [ebp - 4]
call fcn.01075e3c
xor esi, esi
push 4
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x106e7f8
push edi
push 4
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x106e7f4
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x106e7f1
xor eax, eax
cmp dword [ebp - 0x20], 4
sete al
mov dword [ebp - 8], eax
push edi
call esi
push ebx
call esi
pop edi
lea ecx, [ebp - 4]
call fcn.01075e24
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x107083c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 1
mov edi, ecx
call fcn.01075e78
xor eax, eax
xor esi, esi
cmp dword [edi + 0x68], esi
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10708a1
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x100f570
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x28]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x18], 0
je 0x1071dd7
test edi, edi
je 0x1071d9b
cmp edi, reloc.KERNEL32.dll_CompareStringW
jne 0x1071ddb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea edi, [esi + 0x30]
mov dword [ebp - 4], reloc.ADVAPI32.dll_ReadEncryptedFileRaw
mov eax, dword [edi]
test eax, eax
je 0x1071d93
mov ecx, dword [edi - 4]
add ecx, eax
cmp ecx, ebx
ja 0x1071d93
push dword [edi + 8]
call dword [edi + reloc.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [edi - 4], ebx
add edi, 0x10
dec dword [ebp - 4]
jne 0x1071d7b
or dword [esi + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor eax, eax
lea edx, [esi + 0x30]
cmp dword [edx], 0
je 0x1071dc6
mov ecx, dword [edx - 4]
mov edi, dword [edx]
sub ecx, ebx
add ecx, edi
cmp ecx, edi
ja 0x1071dd1
cmp ecx, dword [esi + 0x28]
jae 0x1071dc6
mov dword [esi + 0x28], ecx
inc eax
add edx, 0x10
cmp eax, 0x40
jb 0x1071dac
jmp 0x1071ddb
and dword [esi + 0x28], 0
jmp 0x1071ddb
and dword [esi + 0x1c], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x18], 0
jne 0x1071d42
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x107753f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10101d8
call fcn.01077994
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], reloc.ADVAPI32.dll_RegDeleteValueW
jne 0x107757a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], reloc.GDI32.dll_GetObjectW
jne 0x107757a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1077592
cmp eax, 0x20b
je 0x107757f
mov dword [ebp - 0x1c], edi
jmp 0x10775a6
cmp dword [ecx + 0x84], 0xe
jbe 0x107757a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10775a0
cmp dword [ecx + 0x74], 0xe
jbe 0x107757a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10eec68], 0xffffffff
or dword [0x10eec6c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10e6aec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10e6ae8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10eec64], eax
call fcn.01047fea
cmp dword [0x10de040], edi
jne 0x1077603
push fcn.01047fea
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01077b85
push 0x10dc04c
push 0x10dc048
call fcn.01077b7a
mov eax, dword [0x10e6ae4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10e6ae0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x10dc044
push 0x10dc000
call fcn.01077b7a
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1077669
or dword [ebp - 4], 0xffffffff
mov eax, CompareStringW
jmp 0x1077723
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x10776b7
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1077685
cmp ax, 0x22
jne 0x1077672
cmp word [esi], 0x22
jne 0x1077690
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x107769e
cmp ax, 0x20
jbe 0x107768b
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x10776c4
movzx eax, word [ebp - 0x50]
jmp 0x10776c7
cmp word [esi], 0x20
jbe 0x1077690
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x10776b7
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.010cb48f
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x10776e8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x107771d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010779cf
ret
Function at 0x1077d5a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1077db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
je 0x1077dc8
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x18], edi
je 0x1077ef8
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push 4
push 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.010cb2a4
cmp eax, ebx
je 0x1077e04
cmp eax, 0x7a
jne 0x1077ef8
mov esi, dword [ebp - 0x30]
jmp 0x1077db9
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp word [eax + 4], bx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
jbe 0x1077ec2
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
sub ecx, ebx
je 0x1077e71
dec ecx
jne 0x1077ef8
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1077ea8
cmp dword [ebp + 0x14], 2
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 0x18]
jne 0x1077e8f
or dword [esi + 4], eax
jmp 0x1077ea8
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1077ea8
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
mov dword [ebp - 0x1c], eax
jmp 0x1077e67
not eax
and dword [esi + 4], eax
jne 0x1077ea8
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec edi
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 4]
inc edi
cmp edi, ecx
jb 0x1077e2c
cmp dword [ebp - 0x1c], ebx
je 0x1077ec2
cmp dword [ebp - 0x20], ebx
je 0x1077ed7
cmp dword [ebp + 0x14], 1
jne 0x1077ed7
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push dword [ebp - 0x18]
push 4
push 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.010cb298
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
jmp 0x1077efb
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0x14