joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1803b0a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
xor edi, edi
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x1803b0ec
push str.GOOGLEUPDATEAPPLICATIONCOMMANDS
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1803b0ec
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 4
jne 0x1803b11a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1803b103
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1803b11f
movzx edi, di
or edi, 0x80070000
jmp 0x1803b11f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1803b115
mov edi, 0x80070006
jmp 0x1803b11f
cmp dword [eax], 1
je 0x1803b11f
mov edi, 0x8000ffff
test esi, esi
je 0x1803b12a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x1803bb80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], ebx
call fcn.18002dd1
push eax
mov ecx, ebx
call fcn.18005b92
xor ecx, ecx
lea eax, [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.18005c0f
xor ebx, ebx
inc ebx
lea edi, [eax + 0x10]
mov dword [ebp - 8], edi
mov dword [ebp + 8], edi
cmp dword [edi - 4], ebx
jle 0x1803bbdd
push dword [edi - 0xc]
lea ecx, [ebp + 8]
call fcn.18005d20
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edi
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
neg eax
sbb eax, eax
and eax, 0x18003801
je 0x1803bc38
cmp dword [ebp - 4], ebx
jl 0x1803bc38
push dword [esi]
mov ecx, dword [ebp - 0xc]
call fcn.1800588c
cmp dword [ebp - 4], ebx
jle 0x1803bc3c
mov edi, dword [ebp - 0x10]
push dword [esi + ebx*4]
lea ecx, [ebp + 8]
call fcn.1800585a
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.18008799
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18003435
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x1803bc0c
mov edi, dword [ebp - 8]
jmp 0x1803bc3c
test esi, esi
je 0x1803bc43
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [edi - 0x10]
call fcn.18003435
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1803bd96
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x1803bdb6
test eax, eax
je 0x1803bdb3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], esi
mov eax, dword [edi + 0x28]
mov esi, dword [ebp + 0xc]
cmp eax, esi
je 0x1803bdce
test eax, eax
je 0x1803bdcb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x28], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
test edx, edx
je 0x1803bddf
lock inc dword [edx + 4]
mov edx, dword [eax + 4]
mov ecx, dword [edi + 0x30]
mov eax, dword [eax]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], edx
test ecx, ecx
je 0x1803bdf3
call fcn.1801a706
test edi, edi
je 0x1803bdfd
mov eax, dword [edi]
push edi
call dword [eax + 4]
xor ebx, ebx
push ebx
push ebx
push edi
push 0x1803c14e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [edi + 0x34]
mov dword [ebp + 8], eax
cmp esi, eax
je 0x1803be2c
test esi, esi
je 0x1803be27
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [edi + 0x34], eax
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x18003801
jne 0x1803be3f
call fcn.18011439
mov ebx, eax
neg esi
sbb esi, esi
not esi
and esi, edi
je 0x1803be4f
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x1803bf83
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.18143810
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x10014], eax
mov esi, dword [eax + 0x28]
test esi, esi
je 0x1803c0bc
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
push ecx
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x1000c]
push eax
push 0x10000
lea eax, [ebp - 0x10008]
mov dword [ebp - 0x1000c], ecx
push eax
push esi
call edi
mov ecx, dword [ebp - 0x1000c]
mov ebx, ecx
jmp 0x1803c016
test ecx, ecx
je 0x1803c01a
mov ecx, 0x10000
cmp ebx, ecx
je 0x1803c01a
and dword [ebp - 0x1000c], 0
lea eax, [ebp - 0x1000c]
push 0
push eax
sub ecx, ebx
lea eax, [ebp - 0x10008]
push ecx
add eax, ebx
push eax
push esi
call edi
mov ecx, dword [ebp - 0x1000c]
add ebx, ecx
test eax, eax
jne 0x1803bfe2
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10018], 0xf
push eax
push ebx
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov ecx, dword [ebp - 0x10014]
mov edi, eax
add ecx, 0x38
push ecx
lea ecx, [ebp - 0x10010]
call fcn.1800d4f8
test edi, edi
je 0x1803c083
mov edi, dword [ebp - 0x10014]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.1812b770
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.18005b15
jmp 0x1803c0a8
cmp ebx, 0x10002
jae 0x1803c0c9
mov ecx, dword [ebp - 0x10014]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.1800ae07
mov ecx, dword [ebp - 0x10010]
mov eax, dword [ecx]
call dword [eax + 8]
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.18120ca0
leave
ret
call fcn.18121514
int3
Function at 0x18042001
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
xor edx, edx
push edi
xor edi, edi
push edi
mov eax, dword [ebx + 0x88]
push 0x80
cmp dword [eax + 0x30], edi
setne dl
lea edx, [edx*2 + 2]
push edx
push edi
push edi
push 0x40000000
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x180420b9
mov eax, dword [ebx + 0x88]
cmp dword [eax + 0x30], edi
je 0x180420c9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x180420c2
cmp eax, 0x7fffffff
ja 0x180420c2
mov edx, dword [ebx + 0x88]
push edi
cmp eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [ebp - 4], ecx
setg cl
cmp eax, dword [edx + 0x34]
setne al
or cl, al
je 0x180420a9
push 0x80
push 2
push edi
push edi
push 0x40000000
mov dword [edx + 0x34], edi
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp esi, ebx
je 0x180420a4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
cmp esi, 0xffffffff
jmp 0x180420b7
push edi
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x180420cc
call fcn.18011439
mov edi, eax
jmp 0x180420d6
mov edi, 0x80004005
jmp 0x180420d6
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 8]
mov ecx, esi
or esi, 0xffffffff
mov dword [eax], ecx
cmp esi, 0xffffffff
je 0x180420e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1804469a
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov edi, ecx
mov edx, dword [eax]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edx - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
push str.gupdate
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x180446f6
call fcn.18011439
jmp 0x1804471a
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.18042b5f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov esi, dword [ebp - 0x24]
test eax, eax
js 0x180447bb
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.1800d4f8
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.18044c44
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x18044775
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.18044c7a
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
call fcn.18044c7a
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x34]
call fcn.18044bc2
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xffff
push eax
lea ecx, [edi + 0x40]
call fcn.18044b1b
jmp 0x180447b2
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
push ebx
call fcn.18044af6
mov ecx, eax
call fcn.18005802
push ebx
lea ecx, [edi + 0x34]
call fcn.18044b9d
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x180447a3
push dword [ebp - 0x20]
mov ecx, eax
push esi
call fcn.18044d07
push ebx
lea ecx, [edi + 0x40]
call fcn.18044af6
mov dword [eax], 0xffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
pop ebx
lea ecx, [ebp - 0x24]
call fcn.18009eb8
pop edi
pop esi
leave
ret 0xc
Function at 0x1806f878
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov ebx, dword [edi]
test bl, bl
je 0x1806f8ed
test bl, 1
je 0x1806f893
mov ecx, dword [esi + 0x10]
call fcn.1804eb9a
test bl, 2
je 0x1806f8a0
mov ecx, dword [esi + 0x14]
call fcn.1804fcdf
test bl, 4
je 0x1806f8ad
mov ecx, dword [esi + 0x18]
call fcn.18054550
test bl, 8
je 0x1806f8ba
mov ecx, dword [esi + 0x1c]
call fcn.1805a5bb
test bl, 0x10
je 0x1806f8c7
mov ecx, dword [esi + 0x20]
call fcn.18064d15
test bl, 0x20
je 0x1806f8d4
mov ecx, dword [esi + 0x24]
call fcn.18065b23
test bl, 0x40
je 0x1806f8e1
mov ecx, dword [esi + 0x28]
call fcn.1804e6d2
test bl, bl
jns 0x1806f8ed
mov ecx, dword [esi + 0x2c]
call fcn.1805049e
test ebx, 0xff00
je 0x1806f979
test ebx, 0x100
je 0x1806f909
mov ecx, dword [esi + 0x30]
call fcn.18050948
test ebx, 0x200
je 0x1806f919
mov ecx, dword [esi + 0x34]
call fcn.180664bb
test ebx, 0x400
je 0x1806f929
mov ecx, dword [esi + 0x38]
call fcn.18054046
test ebx, 0x800
je 0x1806f939
mov ecx, dword [esi + 0x3c]
call fcn.18054046
test ebx, 0x1000
je 0x1806f949
mov ecx, dword [esi + 0x40]
call fcn.18068328
test ebx, 0x2000
je 0x1806f959
mov ecx, dword [esi + 0x44]
call fcn.1804fcdf
test ebx, 0x4000
je 0x1806f969
mov ecx, dword [esi + 0x48]
call fcn.18054046
test ebx, 0x8000
je 0x1806f979
mov ecx, dword [esi + 0x4c]
call fcn.18050948
test ebx, 0xff0000
je 0x1806fa05
test ebx, 0x10000
je 0x1806f995
mov ecx, dword [esi + 0x50]
call fcn.1804fcdf
test ebx, 0x20000
je 0x1806f9a5
mov ecx, dword [esi + 0x54]
call fcn.18069930
test ebx, 0x40000
je 0x1806f9b5
mov ecx, dword [esi + 0x58]
call fcn.18050948
test ebx, 0x80000
je 0x1806f9c5
mov ecx, dword [esi + 0x5c]
call fcn.18050948
test ebx, 0x100000
je 0x1806f9d5
mov ecx, dword [esi + 0x60]
call fcn.1804fcdf
test ebx, 0x200000
je 0x1806f9e5
mov ecx, dword [esi + 0x64]
call fcn.1804fcdf
test ebx, 0x400000
je 0x1806f9f5
mov ecx, dword [esi + 0x68]
call fcn.18062362
test ebx, 0x800000
je 0x1806fa05
mov ecx, dword [esi + 0x6c]
call fcn.1806ddb0
test ebx, 0xff000000
je 0x1806fa99
test ebx, 0x1000000
je 0x1806fa21
mov ecx, dword [esi + 0x70]
call fcn.18062810
test ebx, 0x2000000
je 0x1806fa31
mov ecx, dword [esi + 0x74]
call fcn.18063691
test ebx, 0x4000000
je 0x1806fa41
mov ecx, dword [esi + 0x78]
call fcn.18054046
test ebx, 0x8000000
je 0x1806fa51
mov ecx, dword [esi + 0x7c]
call fcn.1804e394
test ebx, 0x10000000
je 0x1806fa64
mov ecx, dword [esi + 0x80]
call fcn.1806ec0e
test ebx, 0x20000000
je 0x1806fa77
mov ecx, dword [esi + 0x84]
call fcn.18054046
test ebx, 0x40000000
je 0x1806fa8a
mov ecx, dword [esi + 0x88]
call fcn.18050948
test ebx, ebx
jns 0x1806fa99
mov ecx, dword [esi + 0x8c]
call fcn.18062fc7
push 4
push 0
push edi
call fcn.181237a0
add esp, 0xc
test byte [esi + 4], 1
pop edi
je 0x1806fabd
mov ecx, dword [esi + 4]
and ecx, 0xfffffffe
pop esi
add ecx, 4
pop ebx
jmp fcn.1804c407
pop esi
pop ebx
ret
Function at 0x1806f879
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov ebx, dword [edi]
test bl, bl
je 0x1806f8ed
test bl, 1
je 0x1806f893
mov ecx, dword [esi + 0x10]
call fcn.1804eb9a
test bl, 2
je 0x1806f8a0
mov ecx, dword [esi + 0x14]
call fcn.1804fcdf
test bl, 4
je 0x1806f8ad
mov ecx, dword [esi + 0x18]
call fcn.18054550
test bl, 8
je 0x1806f8ba
mov ecx, dword [esi + 0x1c]
call fcn.1805a5bb
test bl, 0x10
je 0x1806f8c7
mov ecx, dword [esi + 0x20]
call fcn.18064d15
test bl, 0x20
je 0x1806f8d4
mov ecx, dword [esi + 0x24]
call fcn.18065b23
test bl, 0x40
je 0x1806f8e1
mov ecx, dword [esi + 0x28]
call fcn.1804e6d2
test bl, bl
jns 0x1806f8ed
mov ecx, dword [esi + 0x2c]
call fcn.1805049e
test ebx, 0xff00
je 0x1806f979
test ebx, 0x100
je 0x1806f909
mov ecx, dword [esi + 0x30]
call fcn.18050948
test ebx, 0x200
je 0x1806f919
mov ecx, dword [esi + 0x34]
call fcn.180664bb
test ebx, 0x400
je 0x1806f929
mov ecx, dword [esi + 0x38]
call fcn.18054046
test ebx, 0x800
je 0x1806f939
mov ecx, dword [esi + 0x3c]
call fcn.18054046
test ebx, 0x1000
je 0x1806f949
mov ecx, dword [esi + 0x40]
call fcn.18068328
test ebx, 0x2000
je 0x1806f959
mov ecx, dword [esi + 0x44]
call fcn.1804fcdf
test ebx, 0x4000
je 0x1806f969
mov ecx, dword [esi + 0x48]
call fcn.18054046
test ebx, 0x8000
je 0x1806f979
mov ecx, dword [esi + 0x4c]
call fcn.18050948
test ebx, 0xff0000
je 0x1806fa05
test ebx, 0x10000
je 0x1806f995
mov ecx, dword [esi + 0x50]
call fcn.1804fcdf
test ebx, 0x20000
je 0x1806f9a5
mov ecx, dword [esi + 0x54]
call fcn.18069930
test ebx, 0x40000
je 0x1806f9b5
mov ecx, dword [esi + 0x58]
call fcn.18050948
test ebx, 0x80000
je 0x1806f9c5
mov ecx, dword [esi + 0x5c]
call fcn.18050948
test ebx, 0x100000
je 0x1806f9d5
mov ecx, dword [esi + 0x60]
call fcn.1804fcdf
test ebx, 0x200000
je 0x1806f9e5
mov ecx, dword [esi + 0x64]
call fcn.1804fcdf
test ebx, 0x400000
je 0x1806f9f5
mov ecx, dword [esi + 0x68]
call fcn.18062362
test ebx, 0x800000
je 0x1806fa05
mov ecx, dword [esi + 0x6c]
call fcn.1806ddb0
test ebx, 0xff000000
je 0x1806fa99
test ebx, 0x1000000
je 0x1806fa21
mov ecx, dword [esi + 0x70]
call fcn.18062810
test ebx, 0x2000000
je 0x1806fa31
mov ecx, dword [esi + 0x74]
call fcn.18063691
test ebx, 0x4000000
je 0x1806fa41
mov ecx, dword [esi + 0x78]
call fcn.18054046
test ebx, 0x8000000
je 0x1806fa51
mov ecx, dword [esi + 0x7c]
call fcn.1804e394
test ebx, 0x10000000
je 0x1806fa64
mov ecx, dword [esi + 0x80]
call fcn.1806ec0e
test ebx, 0x20000000
je 0x1806fa77
mov ecx, dword [esi + 0x84]
call fcn.18054046
test ebx, 0x40000000
je 0x1806fa8a
mov ecx, dword [esi + 0x88]
call fcn.18050948
test ebx, ebx
jns 0x1806fa99
mov ecx, dword [esi + 0x8c]
call fcn.18062fc7
push 4
push 0
push edi
call fcn.181237a0
add esp, 0xc
test byte [esi + 4], 1
pop edi
je 0x1806fabd
mov ecx, dword [esi + 4]
and ecx, 0xfffffffe
pop esi
add ecx, 4
pop ebx
jmp fcn.1804c407
pop esi
pop ebx
ret
Function at 0x1808a70d
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x18195008]
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 - 0x28], eax
test eax, eax
jne 0x1808a744
call fcn.18011439
mov ebx, eax
jmp 0x1808a81c
push 0x24
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1808a803
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 0x1808a7a3
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x1808a80a
cmp eax, 3
je 0x1808a7a6
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.181237a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1808a803
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x1808a80a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], eax
je 0x1808a80a
call edi
sub eax, dword [ebp - 0x24]
cmp eax, 0x1f40
jae 0x1808a7f4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.181237a0
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 0x1808a7bc
jmp 0x1808a7f7
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x1808a80a
mov ebx, 0x800705b4
jmp 0x1808a80a
call fcn.18011439
mov ebx, eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x1808a817
push esi
call edi
push dword [ebp - 0x28]
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret

Function at 0x1808a878
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1808a8ed
push esi
push edi
push 4
push str.Schedule
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1808a8db
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 0x1808a8d9
cmp dword [ebp - 0x1c], 4
je 0x1808a8d7
cmp dword [ebp - 0x1c], 2
jne 0x1808a8d9
mov bl, 1
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1808a8e6
push esi
call edi
push dword [ebp - 0x24]
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret
Function at 0x1808acce
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push esi
push 0x1808ac59
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x1808ad69
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
cmp ecx, eax
je 0x1808ad69
sub eax, ecx
mov byte [ebp - 1], 0
push ebx
push edi
sar eax, 2
xor edi, edi
test eax, eax
je 0x1808ad61
xor ebx, ebx
inc ebx
push 0
push 0xf060
push 0x112
push dword [ecx + edi*4]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x1808ad3c
cmp byte [esi + 0x30], 0
je 0x1808ad35
mov eax, dword [esi + 0x20]
push ebx
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_FlashWindow]
mov dl, bl
mov byte [ebp - 1], dl
jmp 0x1808ad3f
mov dl, byte [ebp - 1]
mov eax, dword [esi + 0x24]
inc edi
mov ecx, dword [esi + 0x20]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x1808ad09
test dl, dl
je 0x1808ad61
push dword [ebp + 8]
mov ecx, esi
call fcn.1808a9cd
test al, al
jne 0x1808ad63
xor bl, bl
pop edi
mov al, bl
pop ebx
jmp 0x1808ad6b
xor al, al
pop esi
leave
ret 4

Function at 0x1808ae08
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 4
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
jne 0x1808ae3b
xor al, al
jmp 0x1808aeb4
xor eax, eax
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x1808aea8
mov eax, dword [ebp - 0x24]
mov esi, dword [esi + 0x10]
cmp esi, dword [eax + 0x14]
je 0x1808ae93
mov ebx, eax
mov eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jne 0x1808ae88
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.1800edfd
add esi, 4
cmp esi, dword [ebx + 0x14]
jne 0x1808ae70
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov esi, dword [ebp - 0x24]
test eax, eax
jne 0x1808ae63
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.18120ca0
leave
ret 4
Function at 0x1808aec5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
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 0x1808af1c
push ebx
push dword [ecx + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1808aef9
mov dl, 1
mov byte [ebp - 1], dl
jmp 0x1808aefc
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 0x1808aee4
test dl, dl
je 0x1808af1c
push dword [ebp + 8]
mov ecx, esi
call fcn.1808a9cd
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x1808b034
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 0x1808b05f
test eax, eax
je 0x1808b05a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
mov eax, esi
test eax, eax
je 0x1808b071
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne bl
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x1808d965
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push ecx
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x1808d9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1808d9af
call fcn.18011439
jmp 0x1808d9dc
mov eax, 0x8007000d
jmp 0x1808d9dc
push dword [ebp + 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add edx, esi
push edx
push esi
mov eax, dword [ecx]
push eax
mov dword [ecx + 4], eax
call fcn.18042b5f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
leave
ret

Function at 0x1808dd9b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x1808ddb0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x1808dd56
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x1808ddde
xor al, al
jmp 0x1808ddef
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
inc al
pop esi
pop ebp
ret 4