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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x181d000c]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x250
mov dword [esp + 0x14], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x18], ebx
call fcn.18132f50
add esp, 0xc
lea ecx, [esp + 0x20]
mov edx, ebx
push 0x181a0ec0
call fcn.18009c81
pop ecx
lea ecx, [esp + 0x28]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esp + 0x20]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
cmp esi, 0xffffffff
jne 0x1806a1e0
call fcn.1801baa5
mov ebx, eax
mov edi, ebx
cmp esi, 0xffffffff
je 0x1806a1c9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x27c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e2a8
mov esp, ebp
pop ebp
ret
mov ebx, edi
mov eax, dword [esp + 0x1c]
sub eax, edi
je 0x1806a280
sub eax, 1
je 0x1806a22a
sub eax, 1
jne 0x1806a2ec
cmp dword [esp + 0x28], 0x80
je 0x1806a211
test byte [esp + 0x28], 0x10
jne 0x1806a2e4
push dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
call fcn.1806a07b
pop ecx
mov ebx, eax
jmp 0x1806a2e4
test byte [esp + 0x28], 0x10
je 0x1806a2e4
lea ecx, [esp + 0x28]
call fcn.1806a03e
test al, al
jne 0x1806a2e4
lea eax, [esp + 0x54]
mov dword [esp + 0x24], edi
push eax
lea ecx, [esp + 0x18]
call fcn.180074da
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.1801647c
pop ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push dword [esp + 0x10]
push 2
pop edx
jmp 0x1806a2cc
test byte [esp + 0x28], 0x10
je 0x1806a2e4
lea ecx, [esp + 0x28]
call fcn.1806a03e
test al, al
jne 0x1806a2e4
lea eax, [esp + 0x54]
mov dword [esp + 0x24], edi
push eax
lea ecx, [esp + 0x1c]
call fcn.180074da
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
call fcn.1801647c
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push dword [esp + 0x10]
xor edx, edx
inc edx
lea ecx, [esp + 0x28]
call fcn.1806a140
pop ecx
mov ecx, dword [esp + 0x24]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
test ebx, ebx
js 0x1806a1bb
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1806a1e2
jmp 0x1806a1c2
Function at 0x1806ae22
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
lea ecx, [ebp - 0x14]
lea eax, [edi + 0x14]
push eax
call fcn.1801577d
mov ecx, esi
call fcn.1800c079
mov ecx, eax
mov dword [ebp - 0x27c], eax
or ecx, edx
mov dword [ebp - 0x278], edx
jne 0x1806ae77
mov edi, 0x80070057
jmp 0x1806b068
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x26c]
call fcn.1800768f
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call fcn.1806b299
mov ecx, dword [ebp - 8]
mov edi, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
test edi, edi
js 0x1806b05d
push 0x250
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.18132f50
add esp, 0xc
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x274]
push 0x181a0ec0
call fcn.18009c81
pop ecx
lea ecx, [ebp - 0x268]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x274]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18006f52
cmp esi, 0xffffffff
jne 0x1806af3c
call fcn.1801baa5
mov edi, eax
jmp 0x1806b05d
lea ecx, [ebp - 0x268]
call fcn.1806a03e
test al, al
jne 0x1806b03e
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x26c]
call fcn.180074da
lea ecx, [ebp - 0x26c]
call fcn.1800c079
mov ecx, dword [ebp - 0x26c]
mov ebx, eax
add ecx, 0xfffffff0
mov edi, edx
call fcn.18006f52
mov ecx, ebx
or ecx, edi
je 0x1806b03e
cmp edi, dword [ebp - 0x278]
ja 0x1806b03e
jb 0x1806afa2
cmp ebx, dword [ebp - 0x27c]
jae 0x1806b03e
and dword [ebp - 8], 0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x270]
call fcn.180074da
lea eax, [ebp - 0x270]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.1801647c
pop ecx
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 8]
call fcn.1800d0b0
movzx ecx, byte [0x181d605a]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181d5f50
je 0x1806b033
push 7
pop ebx
push 3
pop eax
push eax
push ebx
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], eax
call fcn.18008b3f
push edi
push dword [ebp - 8]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x28c]
push str._Purge_version___s__0x_x_
push eax
call fcn.18007210
add esp, 0x10
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1806af3c
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [ebp - 0x14]
call fcn.180157a8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret 8
Function at 0x1806e1c3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
call fcn.18006f7b
push eax
mov ecx, ebx
call fcn.1800768f
xor ecx, ecx
lea eax, [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [ebp - 8], ecx
mov ecx, dword [esi]
sub ecx, 0x10
mov dword [ebp - 0x14], eax
call fcn.1800a0ba
xor ebx, ebx
inc ebx
lea edi, [eax + 0x10]
mov dword [ebp - 0xc], edi
cmp dword [edi - 4], ebx
jle 0x1806e224
push dword [edi - 0xc]
lea ecx, [ebp - 0xc]
call fcn.1800783c
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x1806e2bf
cmp dword [ebp - 8], ebx
jl 0x1806e2b8
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1806e24b
xor ecx, ecx
jmp 0x1806e257
push eax
call fcn.18136fa0
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.180075cd
cmp dword [ebp - 8], ebx
jle 0x1806e2b8
mov edi, dword [ebp - 0x14]
push dword [esi + ebx*4]
lea ecx, [ebp - 0x10]
call fcn.180074da
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 8]
je 0x1806e298
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1800a0ba
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x1806e2a4
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, edi
call fcn.1800a127
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f52
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x1806e269
mov edi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1811e2a8
leave
ret 4

Function at 0x1806e460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x1806e483
test eax, eax
je 0x1806e480
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], esi
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 0x28]
call fcn.180187b7
mov eax, dword [ebx + 4]
test eax, eax
je 0x1806e499
lock inc dword [eax + 4]
mov ecx, dword [edi + 0x30]
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], edx
test ecx, ecx
je 0x1806e4b0
call fcn.1801e84f
test edi, edi
je 0x1806e4c4
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x181623e8]
call esi
xor ebx, ebx
push ebx
push ebx
push edi
push 0x1806e820
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, eax
lea ecx, [edi + 0x34]
call fcn.180187b7
cmp dword [edi + 0x34], ebx
jne 0x1806e4fc
call fcn.1801baa5
mov ecx, dword [edi]
mov ebx, eax
push edi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x181623e8]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x1806e623
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.18159d50
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x10018], eax
mov esi, dword [eax + 0x28]
test esi, esi
je 0x1806e76a
push ebx
push edi
xor ecx, ecx
mov edi, 0x10000
push ecx
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x1000c]
push eax
push edi
lea eax, [ebp - 0x10008]
mov dword [ebp - 0x1000c], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1000c]
mov ebx, ecx
jmp 0x1806e6b6
test ecx, ecx
je 0x1806e6ba
cmp ebx, edi
je 0x1806e6ba
and dword [ebp - 0x1000c], 0
lea eax, [ebp - 0x1000c]
push 0
push eax
mov eax, edi
sub eax, ebx
push eax
lea eax, [ebp - 0x10008]
add eax, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1000c]
add ebx, ecx
test eax, eax
jne 0x1806e681
lea eax, [ebp - 0x10014]
mov dword [ebp - 0x10014], 0xf
push eax
push ebx
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov ecx, dword [ebp - 0x10018]
mov edi, eax
and dword [ebp - 0x10010], 0
add ecx, 0x38
and dword [ebp - 0x1000c], 0
push ecx
lea ecx, [ebp - 0x10010]
call fcn.1801577d
test edi, edi
je 0x1806e731
mov edi, dword [ebp - 0x10018]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.18136fa0
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.180075cd
jmp 0x1806e756
cmp ebx, 0x10002
jae 0x1806e777
mov ecx, dword [ebp - 0x10018]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.180114c9
lea ecx, [ebp - 0x10010]
call fcn.180157a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1811e2a8
leave
ret
call fcn.1811ed08
int3
Function at 0x1807bae4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push edi
mov edi, edx
xor edx, edx
push edx
push eax
push edx
push edx
push edi
push ecx
mov dword [ebp - 8], edx
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
test eax, eax
jne 0x1807bbd9
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + 8]
cmp eax, 5
jne 0x1807bb57
mov eax, dword [ebp + 8]
test eax, eax
je 0x1807bb42
dec eax
mov edx, edi
lfence
mov ecx, dword [ecx + 0x18]
push esi
push eax
call fcn.1807bae4
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov esi, eax
jmp 0x1807bb47
mov esi, 0x251d
push 1
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, esi
jmp 0x1807bbd9
xor edi, edi
inc edi
cmp eax, 0x1c
jne 0x1807bb97
movzx eax, word [ecx + 0x26]
push eax
movzx eax, word [ecx + 0x24]
push eax
movzx eax, word [ecx + 0x22]
push eax
movzx eax, word [ecx + 0x20]
push eax
movzx eax, word [ecx + 0x1e]
push eax
movzx eax, word [ecx + 0x1c]
push eax
movzx eax, word [ecx + 0x1a]
push eax
movzx eax, word [ecx + 0x18]
push eax
push 0x181b3618
push esi
call fcn.180471d0
add esp, 0x28
jmp 0x1807bbbe
cmp ax, di
jne 0x1807bbcc
movzx eax, byte [ecx + 0x1b]
push eax
movzx eax, byte [ecx + 0x1a]
push eax
movzx eax, byte [ecx + 0x19]
push eax
movzx eax, byte [ecx + 0x18]
push eax
push 0x181a0e44
push esi
call fcn.180471d0
add esp, 0x18
push edi
push dword [ebp - 8]
call dword [sym.imp.DNSAPI.dll_DnsFree]
xor eax, eax
jmp 0x1807bbd9
push edi
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, 0x251d
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1811e2a8
leave
ret
Function at 0x1807e138
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov esi, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov eax, dword [ecx - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
push eax
push 1
push edx
push edx
lea eax, [ebp - 0x2c]
push eax
push str.edgeupdate
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x1807e1b5
call fcn.1801baa5
test eax, eax
js 0x1807e278
jmp 0x1807e1d8
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add eax, ecx
push eax
push ecx
push 0
lea ecx, [ebp - 0x20]
call fcn.1807d85c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x20]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
and dword [ebp - 0x10], 0
push edi
call fcn.1801577d
lea ecx, [edi + 0x1c]
push ebx
call fcn.1807e770
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1807e233
push dword [ebp - 0x24]
lea ecx, [edi + 0x1c]
call fcn.1807e7a2
push dword [ebp - 0xc]
lea ecx, [edi + 0x28]
call fcn.1807e7a2
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x34]
call fcn.1807e6f6
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xffff
push eax
lea ecx, [edi + 0x40]
call fcn.1807e652
mov esi, dword [ebp - 0x20]
jmp 0x1807e270
push dword [ebp - 0xc]
lea ecx, [edi + 0x28]
push ebx
call fcn.1807e62a
mov ecx, eax
call fcn.18009e6a
push ebx
lea ecx, [edi + 0x34]
call fcn.1807e6ce
lea ecx, [ebp - 0x20]
cmp eax, ecx
je 0x1807e261
push dword [ebp - 0x1c]
mov ecx, eax
push esi
call fcn.1807e829
push ebx
lea ecx, [edi + 0x40]
call fcn.1807e62a
mov dword [eax], 0xffff
lea ecx, [ebp - 0x14]
call fcn.180157a8
test esi, esi
je 0x1807e2ac
mov eax, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xc], eax
cmp eax, 0x1000
jb 0x1807e2a3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.18007b72
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x24]
pop ecx
pop ecx
push eax
push esi
call fcn.1811e7d6
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret 0xc
Function at 0x18083bb5
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x18083bec
call fcn.1801baa5
mov ebx, eax
jmp 0x18083cc6
push 0x24
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18083cab
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x18083c4b
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x18083cb6
cmp eax, 3
je 0x18083c4e
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.18132f50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x18083cab
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x18083cb6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x18083cb6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x1f40
jae 0x18083c9c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.18132f50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jne 0x18083c61
jmp 0x18083c9f
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x18083cb6
mov ebx, 0x800705b4
jmp 0x18083cb6
call fcn.1801baa5
mov ebx, eax
test esi, esi
je 0x18083cbd
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret

Function at 0x18083d12
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x18083d86
push 4
push str.Schedule
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edx, eax
mov dword [ebp - 0x24], edx
test edx, edx
je 0x18083d7f
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
pop edi
test eax, eax
je 0x18083d76
cmp dword [ebp - 0x1c], 4
je 0x18083d74
cmp dword [ebp - 0x1c], 2
jne 0x18083d76
mov bl, 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret
Function at 0x18084ace
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push esi
push 0x18084b60
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18084b37
mov eax, dword [esi + 0x30]
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], eax
cmp edi, eax
je 0x18084b36
sub eax, edi
sar eax, 2
cmp eax, dword [esi + 0x38]
ja 0x18084b36
mov eax, dword [edi]
lea ecx, [esi + 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.1808519f
add edi, 4
cmp edi, dword [ebp - 0xc]
jne 0x18084b1b
xor ebx, ebx
pop edi
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jne 0x18084b4c
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
je 0x18084b4e
cmp dword [esi + 0x38], ebx
jbe 0x18084b4e
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret

Function at 0x18084f10
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x20]
call fcn.18084ace
test al, al
jne 0x18084f4a
mov eax, dword [esi]
push edi
push 0x18084eb0
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18084f43
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x18084f4a
xor eax, eax
jmp 0x18084fdb
mov ecx, dword [esi + 4]
xor ebx, ebx
mov eax, dword [esi]
inc ebx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
cmp eax, ecx
je 0x18084fd9
mov esi, dword [eax]
push 0
push 0xf060
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x18084fb8
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1d
test al, 1
je 0x18084f92
push 8
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x18084fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x40], 0
je 0x18084fb1
push ebx
push esi
call dword [sym.imp.USER32.dll_FlashWindow]
mov cl, bl
mov byte [ebp - 1], cl
jmp 0x18084fbb
mov cl, byte [ebp - 1]
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0xc]
jne 0x18084f60
test cl, cl
je 0x18084fd9
push dword [ebp + 8]
mov ecx, edi
call fcn.180846dc
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x18085090
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 4
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x180850bf
xor al, al
jmp 0x1808512a
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push ecx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x1808511e
mov esi, dword [ebx + 0x10]
jmp 0x18085105
mov eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jne 0x18085102
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.18018792
add esi, 4
cmp esi, dword [ebx + 0x14]
jne 0x180850ea
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180850e5
mov eax, dword [edi]
cmp eax, dword [edi + 4]
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e2a8
leave
ret 4

Function at 0x1808513b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
mov edi, ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x18085196
push ebx
push dword [ecx + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18085170
mov dl, 1
mov byte [ebp - 1], dl
jmp 0x18085173
mov dl, byte [ebp - 1]
mov eax, dword [esi + 8]
inc edi
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x1808515b
test dl, dl
je 0x18085196
push dword [ebp + 8]
mov ecx, esi
call fcn.180846dc
neg eax
sbb ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x18085346
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi + 4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [edi + 8]
cmp eax, esi
je 0x18085371
test eax, eax
je 0x1808536c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
mov eax, esi
test eax, eax
je 0x18085383
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne bl
pop edi
pop esi
mov al, bl
pop ebx
ret