joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800e29d
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
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
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1800e308
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1800e2ff
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], ebx
pop ebx
setne al
xor ecx, ebp
call fcn.18075e75
leave
ret

Function at 0x1800e8b6
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
xor ebx, ebx
push ebx
push 2
mov dword [esi], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
jne 0x1800e903
call fcn.1800d4b3
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
pop ebx
call fcn.18075e75
add ebp, 0x1b4
leave
ret 4
push 0x22c
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.180769e0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1800e940
call fcn.1800d4b3
mov ebx, eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1800e8eb
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp + 0x1bc]
cmp eax, dword [ecx + 0x1c]
jne 0x1800e955
mov eax, dword [ebp - 0x64]
cmp eax, ebx
jne 0x1800e96c
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1800e940
mov ebx, 0x80004005
jmp 0x1800e933
mov dword [esi], eax
jmp 0x1800e933
Function at 0x1800e9f4
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.1807fdd0
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
call fcn.1800f530
xor esi, esi
push 0xffc
lea eax, [ebp - 0x1050]
push esi
push eax
mov dword [ebp - 0x1054], esi
call fcn.180769e0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
mov dword [ebp - 0x18], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x1800ea4f
call fcn.1800d4b3
pop edi
pop esi
pop ebx
leave
ret
mov ebx, dword [ebp - 0x18]
shr ebx, 2
call fcn.1800da08
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
and eax, 0x40
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], eax
je 0x1800eaa2
push dword [ebp - 0x1c]
lea edi, [ebp - 0x50]
call fcn.1800e68f
mov eax, edi
mov dword [ebp - 0xc], esi
push eax
lea esi, [ebp - 0xc]
call fcn.1800e8b6
test eax, eax
jl 0x1800ea96
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
jmp 0x1800ea9a
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x50]
call fcn.1800e707
mov eax, dword [0x180b4188]
mov ecx, 0x180b4188
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.1800cb03
test eax, eax
jge 0x1800ead5
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, esi
jmp 0x1800ea4a
test ebx, ebx
jle 0x1800ec0c
lea esi, [ebp - 0x1054]
mov dword [ebp - 0x20], ebx
mov eax, dword [esi]
test eax, eax
je 0x1800ec00
mov ebx, dword [ebp + 8]
test bl, 1
je 0x1800eb01
cmp eax, dword [ebp - 0x1c]
je 0x1800ec00
cmp dword [ebp - 0x24], 0
je 0x1800eb10
cmp eax, dword [ebp - 0x14]
je 0x1800ec00
mov eax, dword [0x180b4188]
mov ecx, 0x180b4188
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi]
call fcn.1800f2cb
pop ecx
pop ecx
test bl, 8
je 0x1800eb4b
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [ebp - 8]
push eax
call fcn.1800a00a
test eax, eax
jne 0x1800ebf5
test bl, 2
je 0x1800eb64
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.1800a00a
test eax, eax
je 0x1800ebf5
test bl, 4
je 0x1800eb7b
push str.S_1_5_18
lea eax, [ebp - 8]
push eax
call fcn.1800a00a
test eax, eax
je 0x1800ebf5
mov edi, ebx
and edi, 0x10
jne 0x1800eb87
test bl, 0x20
je 0x1800ebdd
mov eax, dword [0x180b4188]
mov ecx, 0x180b4188
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call fcn.1800f1b3
pop ecx
pop ecx
test eax, eax
jge 0x1800ebb8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.18003e0a
jmp 0x1800ebf5
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x14]
call fcn.1800e970
pop ecx
test al, al
je 0x1800ebcd
test edi, edi
jmp 0x1800ebd0
test bl, 0x20
jne 0x1800ebab
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.18003e0a
push dword [esi]
mov ecx, dword [ebp + 0xc]
call fcn.1800ee25
pop ecx
test al, al
je 0x1800ebf5
mov eax, dword [ebp + 0x18]
push esi
call fcn.1800f4d2
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e0a
add esi, 4
dec dword [ebp - 0x20]
jne 0x1800eae6
xor esi, esi
jmp 0x1800eac3
Function at 0x1800ee25
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x290]
mov eax, 0x1220
call fcn.1807fdd0
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp + 0x28c], eax
push edi
push dword [ebp + 0x298]
mov edi, ecx
push 0
push 0x410
mov dword [ebp + 0x7c], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 0x80], eax
test eax, eax
jne 0x1800ee7f
xor al, al
mov ecx, dword [ebp + 0x28c]
xor ecx, ebp
pop edi
call fcn.18075e75
add ebp, 0x290
leave
ret
push ebx
push esi
push 0x5c
mov edx, edi
call fcn.18008683
cmp eax, 0xffffffff
mov eax, dword [0x180b4188]
pop ecx
mov ecx, 0x180b4188
setne byte [ebp + 0x78]
call dword [eax + 0xc]
mov esi, eax
add esi, 0x10
cmp byte [ebp + 0x78], 0
mov dword [ebp + 0x74], esi
je 0x1800eedd
lea ebx, [ebp + 0x74]
mov esi, edi
call fcn.1800efb7
mov esi, dword [ebp + 0x74]
test eax, eax
jge 0x1800eeda
xor bl, bl
lea eax, [esi - 0x10]
call fcn.18003e0a
push dword [ebp + 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
jmp 0x1800ee69
mov dword [ebp + 0x7c], esi
push 0x1000
lea eax, [ebp - 0xf90]
push 0
push eax
call fcn.180769e0
and dword [ebp + 0x70], 0
add esp, 0xc
lea eax, [ebp + 0x70]
push eax
push 4
lea eax, [ebp - 0xf90]
push eax
push dword [ebp + 0x80]
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x1800ef3f
call fcn.1800d4b3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1800f45c
pop ecx
test al, al
je 0x1800eebe
push dword [ebp + 0x78]
mov edi, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x80]
call fcn.1800ed7e
pop ecx
mov bl, al
jmp 0x1800eec0
mov ebx, dword [ebp + 0x70]
shr ebx, 2
cmp ebx, 1
jle 0x1800ef4d
xor ebx, ebx
inc ebx
xor edi, edi
test ebx, ebx
jle 0x1800eebe
push 0x208
lea eax, [ebp + 0x84]
push 0
push eax
call fcn.180769e0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x84]
push eax
push dword [ebp + edi*4 - 0xf90]
push dword [ebp + 0x80]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x1800efa6
push dword [ebp + 0x78]
lea eax, [ebp + 0x84]
push dword [ebp + 0x7c]
call fcn.1800ecd5
pop ecx
pop ecx
test al, al
jne 0x1800efb0
inc edi
cmp edi, ebx
jl 0x1800ef57
jmp 0x1800eebe
mov bl, 1
jmp 0x1800eec0
Function at 0x1800f7cd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1800f84e
push edi
call fcn.18076cd3
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x1800f84e
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1800f841
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push dword [esi]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1800f841
cmp dword [ebp - 4], ebx
je 0x1800f841
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov dword [esi + 4], ecx
inc eax
jmp 0x1800f850
push dword [esi]
call fcn.18075e84
mov dword [esi + 4], ebx
mov dword [esi], ebx
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x1800fa34
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
push esi
push edi
mov dword [ebp - 8], ebx
jne 0x1800fa52
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.1800392c
add eax, 0x10
push 0x40
mov dword [ebp - 8], eax
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x60], 0x44
call fcn.180769e0
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push ebx
push dword [ebp + 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
mov dword [ebp - 4], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1800faa4
mov edi, 0x400
jmp 0x1800faa7
mov dword [ebp - 4], ebx
push 0x104
lea esi, [ebp - 8]
call fcn.18003ce3
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push ebx
push dword [ebp - 4]
push edi
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
or eax, 0xffffffff
call fcn.18003baa
cmp edi, ebx
jne 0x1800fafa
call fcn.1800d4b3
mov esi, eax
push ebx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, esi
jmp 0x1800fa4d
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor esi, esi
jmp 0x1800fae1
Function at 0x1800fcdd
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1800fd47
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edi, [esi + esi + 2]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push dword [esp + 0x10]
push eax
call fcn.18076170
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
test eax, eax
jne 0x1800fd40
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret

Function at 0x1800fe81
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x118], esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov edi, eax
cmp edi, esi
jge 0x1800fed2
cmp dword [ebp - 0x118], esi
je 0x1800fecb
push dword [ebp - 0x118]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
jmp 0x1800ffe8
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], esi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov edi, eax
cmp edi, esi
jge 0x1800fefd
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x1800feb7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1800feb7
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.180769e0
mov eax, dword [ebp - 0x11c]
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push 0x8000
push dword [ebp - 0x118]
mov dword [ebp - 0x114], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov edi, eax
cmp edi, esi
jl 0x1800feeb
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x120], esi
call dword [sym.imp.SHLWAPI.dll_StrRetToStrW]
cmp eax, esi
mov dword [ebp - 0x124], eax
jge 0x1800ffa4
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x120], esi
je 0x1800ff7c
push dword [ebp - 0x120]
call edi
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x1800ff8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x118], esi
je 0x1800ff9c
push dword [ebp - 0x118]
call edi
mov eax, dword [ebp - 0x124]
jmp 0x1800ffe8
push dword [ebp - 0x120]
push ebx
call fcn.18003de7
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x120], esi
je 0x1800ffc6
push dword [ebp - 0x120]
call edi
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x1800ffd6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x118], esi
je 0x1800ffe6
push dword [ebp - 0x118]
call edi
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.18075e75
leave
ret
Function at 0x18010777
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], esi
call fcn.18003bc8
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.180769e0
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x180107e1
call fcn.1800d4b3
jmp 0x18010877
cmp word [ebp - 0x41c], 0
push edi
mov esi, 0x1809da10
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [ebp - 0x41c]
je 0x18010871
mov ax, word [esi]
mov word [ebp - 0xc], ax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.180769e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x18010860
lea eax, [ebp - 0x214]
push eax
call fcn.180764d5
mov edi, eax
push edi
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x420]
call fcn.1807969c
add esp, 0x10
test eax, eax
je 0x18010885
push esi
call fcn.180764d5
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x180107fd
mov eax, 0x8007000f
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.18075e75
leave
ret
mov eax, dword [ebp - 0x420]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
push dword [ebp - 0x424]
call fcn.18002c02
add esp, 0x10
xor eax, eax
jmp 0x18010876

Function at 0x18010d34
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
lea esi, [edi + 0x38]
mov eax, esi
call fcn.1806323a
push edi
push 0x18010c7a
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18010d64
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
test eax, 0xfffffffc
jne 0x18010d6b
xor al, al
jmp 0x18010e0a
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
xor bl, bl
sar eax, 2
xor edi, edi
test eax, eax
jbe 0x18010e08
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp edi, eax
jb 0x18010d92
call fcn.180771ea
mov eax, dword [esi + 0xc]
push 0
mov ebp, edi
push 0xf060
shl ebp, 2
add eax, ebp
push 0x112
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x18010de0
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x54], 0
je 0x18010dde
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp edi, eax
jb 0x18010dd0
call fcn.180771ea
mov eax, dword [esi + 0xc]
push 1
push dword [eax + ebp]
call dword [sym.imp.USER32.dll_FlashWindow]
mov bl, 1
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc edi
sar eax, 2
cmp edi, eax
jb 0x18010d80
test bl, bl
je 0x18010e08
push dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
call fcn.180109f1
test al, al
je 0x18010e08
xor eax, eax
inc eax
jmp 0x18010e0a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x18011efd
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 4]
test eax, eax
je 0x18011f0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 4]
mov dword [esi], eax
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x18011e9d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x18011f3b
xor al, al
jmp 0x18011f4b
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
ret 4

Function at 0x18012320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x414], ecx
mov ecx, dword [ebp + 0xc]
push edi
lea esi, [ebp - 0x424]
mov edi, edx
mov dword [ebp - 0x418], ecx
call fcn.180125cf
and dword [ebp - 0x410], 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x18012378
call fcn.18003717
mov esi, eax
jmp 0x18012466
push dword [ebp - 0x418]
push dword [ebp - 0x414]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1801239b
call fcn.18003717
jmp 0x1801245d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x414], eax
test eax, eax
je 0x18012391
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x180123e1
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x180123d7
lea eax, [ebp - 0x410]
call fcn.180184fc
mov eax, 0x8007000e
jmp 0x18012481
push 2
push eax
call fcn.180066de
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x18012401
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.180184db
jmp 0x1801240d
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x1801241d
mov esi, 0x8007000e
jmp 0x1801245f
push esi
push dword [ebp - 0x410]
push esi
push dword [ebp - 0x414]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x18012391
mov edx, dword [ebp - 0x410]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 0x410]
lea ecx, [ebp - 0x424]
call fcn.18012d26
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x1801247f
lea eax, [ebp - 0x410]
call fcn.180184fc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.18075e75
leave
ret 0xc
Function at 0x1801483c
Capabilities:
Delete file

Disassembly:
push 0x10
push 0x180aaf38
call fcn.18079e08
mov edi, ecx
mov esi, 0x180b0ef0
call fcn.18040963
movzx eax, byte [edi + 0x94]
push eax
call fcn.180516e5
pop ecx
push eax
call fcn.18011fbc
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.1805251d
mov dword [ebp - 0x1c], ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 4
push str.HKLMSoftwareDealPlyLiveUpdateDev_
mov eax, str.AlwaysAllowCrashUploads
call fcn.1800be37
add esp, 0x10
cmp dword [ebp - 0x1c], ebx
jne 0x180148c4
movzx eax, byte [edi + 0x94]
push eax
call fcn.18052a99
test al, al
je 0x180148bf
movzx eax, byte [edi + 0x94]
push eax
call fcn.18052d5a
test al, al
je 0x180148bf
call fcn.18050929
test al, al
je 0x180148c4
mov byte [ebp - 0x1c], bl
jmp 0x180148c8
mov byte [ebp - 0x1c], 1
lea eax, [edi + 0xa0]
lea esi, [edi + 0x28]
add edi, 0x24
mov ecx, dword [esi]
cmp dword [ecx - 0xc], ebx
setne cl
cmp cl, bl
je 0x180148f5
push edi
mov ecx, esi
call fcn.1801ae9c
pop ecx
mov ebx, eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18014904
push eax
push edi
push dword [ebp - 0x1c]
call fcn.1801aca3
add esp, 0xc
mov ebx, eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1801ab56
mov dword [ebp - 0x20], ebx
jmp 0x18014924
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.18079e4d
ret

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

Disassembly:
cmp dword [esi + 4], 0
je 0x18015c11
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [esi + 4]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x18015c0f
mov eax, dword [esi]
test eax, eax
je 0x18015c0f
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esi + 8]
call edi
xor ecx, ecx
cmp eax, ebp
jae 0x18015c00
or ecx, 0xffffffff
sub ecx, ebp
add ecx, eax
cmp ecx, ebx
jae 0x18015c0e
mov eax, dword [esi]
test eax, eax
jne 0x18015bea
pop ebx
pop edi
pop ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x18015c1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.18075e6a
pop ecx
mov eax, esi
ret
Function at 0x18015fad
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.1800cd37
test al, al
jne 0x18015fc6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call fcn.180169fd
test al, al
jne 0x18015fbf
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x18015fec
call fcn.1800d4b3
jmp 0x18015fc1
lea eax, [ebp - 4]
push eax
call fcn.1803fa99
pop ecx
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x1801602b
call fcn.1800d4b3
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e0a
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x18015fc1
lea eax, [ebp - 0xc]
push eax
push 3
push edi
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x18016051
call fcn.1800d4b3
push edi
mov ebx, eax
call esi
mov edi, ebx
jmp 0x18016017
push edi
call esi
xor edi, edi
jmp 0x18016017

Function at 0x18016058
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x18016081
call fcn.1800d4b3
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
call fcn.1803fa99
mov eax, dword [eax]
mov dword [esp], 0x10002
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e0a
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x180160c4
call fcn.1800d4b3
mov edi, eax
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x1801607c
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x180160e5
call fcn.1800d4b3
mov ebx, eax
cmp ebx, 0x80070430
je 0x180160e5
push edi
call esi
mov edi, ebx
jmp 0x180160bb
push edi
call esi
xor edi, edi
jmp 0x180160bb

Function at 0x180160ec
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, eax
push edi
push ebx
call fcn.18016af7
pop ecx
test al, al
je 0x18016109
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x18016126
call fcn.1800d4b3
jmp 0x18016104
lea eax, [ebp - 4]
push eax
call fcn.1803fa99
mov dword [esp], 0xf01ff
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x18016169
call fcn.1800d4b3
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e0a
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x18016104
lea eax, [ebp - 0xc]
push eax
push 1
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1801618b
call fcn.1800d4b3
push edi
mov ebx, eax
call esi
mov edi, ebx
jmp 0x18016155
push edi
call esi
xor edi, edi
jmp 0x18016155