joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003f010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [esp + 0x5c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x64], eax
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x60], 0
call fcn.10018930
mov ecx, dword [eax]
mov dword [esp + 8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], edx
call fcn.1001ddf0
mov eax, dword [esi + 0x64]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 1
call fcn.1001df70
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edi, [esi + 0xc0]
add esi, 0x70
push esi
lea edx, [esp + 0x74]
push edx
mov ecx, edi
call fcn.1001da70
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.100197f0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
add eax, 4
mov dword [esp + 0x14], eax
sub eax, esi
mov esi, dword [esp + 0x60]
sub ecx, edx
mov dword [esi], ecx
lea ecx, [esp + 0x28]
mov dword [esi + 4], eax
mov byte [esp + 0x58], 0
call fcn.1001dbb0
mov ecx, dword [esp + 0x50]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret 8

Function at 0x10018a80
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1003f030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push edi
mov edi, dword [esp + 0x60]
mov esi, ecx
mov dword [esp + 0x60], edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0
call fcn.1001ddf0
push edi
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x60], 1
call fcn.10018930
mov ecx, dword [eax]
mov dword [esp + 8], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x64]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], edx
call fcn.1001df70
mov eax, dword [esi + 0x68]
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x30]
lea edi, [esi + 0xc0]
push edx
mov dword [esp + 0x54], eax
add esi, 0x70
push esi
lea eax, [esp + 0x70]
push eax
mov ecx, edi
call fcn.1001da70
push 0
push 0
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.10019ae0
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], 0
call fcn.1001dbb0
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret 4
Function at 0x1001e230
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001e25c
pop esi
mov eax, 0x3ee
pop ebx
pop ecx
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001e274
mov ebx, 0x3ee
jmp 0x1001e29f
lea ecx, [edi + 1]
push ecx
call fcn.100301de
mov edx, dword [esp + 0x18]
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
push esi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001e29f
mov ebx, 0x1e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov eax, ebx
jne 0x1001e2b2
mov edx, dword [esp + 0x18]
mov dword [edx], edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001ea30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1003f4c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x1004caec]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x144], eax
xor ebx, ebx
lea eax, [esi + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], bl
call fcn.1000d2d8
mov edx, dword [esi]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x158], ebx
call dword [edx + 8]
mov esi, eax
cmp esi, ebx
jne 0x1001eb89
mov edx, dword [str.0ACFE224713A92B4]
push ebp
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x24]
inc ebp
mov ecx, eax
push edi
mov dword [esp + 0x14], ebp
mov esi, 0x20
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x1001eac4
mov byte [eax], cl
inc eax
dec esi
jne 0x1001eab5
jmp 0x1001eac8
cmp esi, ebx
jne 0x1001eac9
dec eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x4c]
mov byte [eax], 0
call fcn.1002ce10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x160], 1
call fcn.1002cc00
mov edx, dword [esp + 0x160]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001eb2c
mov esi, 0x3ee
jmp 0x1001eb69
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x28]
push eax
push 4
push 0x1004c630
push esi
call ebx
test eax, eax
je 0x1001eb56
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
push ebp
push esi
call ebx
test eax, eax
jne 0x1001eb5e
mov dword [esp + 0x18], 0x1d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
call fcn.100305d1
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0x158], 0
call fcn.1002cbb0
pop edi
pop ebp
mov al, byte [esp + 0x18]
test al, al
je 0x1001eb9c
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x148]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x140]
pop ebx
call fcn.10030334
add esp, 0x14c
ret 4
Function at 0x1001eed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x20]
push edi
push ebp
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1001ee68
and edi, 0x3ff
push edi
mov edi, dword [esp + 0x24]
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1001ee68
push 0x409
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x1001ee68
pop edi
pop esi
pop ebp
mov eax, 0x490
pop ebx
pop ecx
ret 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1001ee84
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x1001ee9d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x1001eeaa
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
push 1
add esi, 0xfffffffc
push esi
add eax, 4
push eax
call fcn.1001e830
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
movzx edx, word [esp + 8]
mov dword [esp + 8], edx
jmp 0x1001ee00
Function at 0x100218d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
mov edi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea esi, [eax + 1]
push esi
call fcn.100301de
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1002190d
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 8
ret 8
push esi
push ebp
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x100219bd
mov edx, dword [str._tag_]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10021930
sub eax, esi
mov ebx, eax
push ebx
push edx
push ebp
call fcn.100321b5
add esp, 0xc
test eax, eax
jne 0x100219b9
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0
add ebx, ebp
push ebx
mov ecx, edi
call fcn.10021550
cmp eax, 0x7a
jne 0x100219b9
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x18], eax
call fcn.100301de
mov esi, eax
add esp, 4
test esi, esi
jne 0x10021986
mov dword [esp + 0x10], 8
jmp 0x100219eb
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
mov ecx, edi
call fcn.100216c0
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
mov ebx, eax
call fcn.100305d1
add esp, 4
test ebx, ebx
jne 0x100219b9
mov dword [esp + 0x10], 0x1d
jmp 0x100219eb
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100219eb
push 5
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
call ebx
mov esi, eax
test esi, esi
je 0x100219eb
push 1
push esi
mov ecx, edi
call fcn.100218d0
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x100219d6
push ebp
call fcn.100305d1
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x10022e00
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1003f6f8
push eax
mov eax, dword [0x1005e2f4]
mov dword fs:[0], esp
sub esp, 0xc
push eax
lea ecx, [esp + 8]
call fcn.1002b970
mov al, byte [0x1005e1e8]
test al, al
je 0x10022ef1
push ebx
push 0x1005e1e8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 0
push 4
push 0
push 3
push 0x40000000
cmp eax, 0xffffffff
push 0x1005e1e8
setne bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x10022e84
lea ecx, [esp + 8]
mov dword [esp + 0x18], eax
call fcn.1002b9a0
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x10022e9a
push 0x1005e1e8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x2001f
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.100024fb
test eax, eax
mov eax, dword [esp + 4]
sete bl
test eax, eax
je 0x10022ece
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.1002b9a0
mov al, bl
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1002b9a0
mov ecx, dword [esp + 0xc]
xor al, al
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x10023480
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x1004caec]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
push edi
mov dword [esp + 0x9c], eax
call esi
movzx edi, al
call esi
call esi
cmp eax, 0x80000000
jb 0x100234c9
cmp edi, 4
jae 0x100234c9
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x94]
call fcn.10030334
add esp, 0x98
ret
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xc]
sub eax, 3
je 0x100235df
dec eax
mov ecx, dword [esp + 0x10]
je 0x1002350a
dec eax
je 0x10023518
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x94]
call fcn.10030334
add esp, 0x98
ret
test ecx, ecx
je 0x10023587
cmp ecx, 0xa
je 0x10023591
cmp ecx, 0x5a
je 0x1002356d
mov eax, ecx
sub eax, 0
je 0x10023553
dec eax
je 0x10023539
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x94]
call fcn.10030334
add esp, 0x98
ret
pop edi
mov eax, 8
pop esi
mov ecx, dword [esp + 0x94]
call fcn.10030334
add esp, 0x98
ret
pop edi
mov eax, 7
pop esi
mov ecx, dword [esp + 0x94]
call fcn.10030334
add esp, 0x98
ret
pop edi
mov eax, 5
pop esi
mov ecx, dword [esp + 0x94]
call fcn.10030334
add esp, 0x98
ret
mov eax, dword [esp + 0x18]
dec eax
je 0x100235c5
dec eax
je 0x100235ab
pop edi
mov eax, 4
pop esi
mov ecx, dword [esp + 0x94]
call fcn.10030334
add esp, 0x98
ret
pop edi
mov eax, 6
pop esi
mov ecx, dword [esp + 0x94]
call fcn.10030334
add esp, 0x98
ret
pop edi
mov eax, 3
pop esi
mov ecx, dword [esp + 0x94]
call fcn.10030334
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
pop edi
mov eax, 2
pop esi
call fcn.10030334
add esp, 0x98
ret
Function at 0x10023680
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
mov eax, dword [0x1004caec]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x128]
test esi, esi
mov dword [esp + 0x120], eax
push edi
mov dword [esp + 0x14], ecx
jne 0x100236aa
mov esi, 0x1004dcb0
lea eax, [esp + 0x18]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
push ebp
call fcn.100301de
mov ebx, eax
lea eax, [esp + 0x24]
mov edx, esi
mov ecx, eax
add esp, 4
mov edi, 0x104
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x100236e0
mov byte [eax], cl
inc eax
dec edi
jne 0x100236d1
jmp 0x100236e4
test edi, edi
jne 0x100236e5
dec eax
push ebx
push ebp
push 0
lea edx, [esp + 0x2c]
push edx
mov byte [eax], 0
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x1002370d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call fcn.100305d1
add esp, 4
xor al, al
jmp 0x10023742
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x10042e10
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x14]
push edx
push eax
call fcn.10023600
push ebx
call fcn.100305d1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
call fcn.10030334
add esp, 0x118
ret 4

Function at 0x100240a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1003f788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
push 0
mov esi, ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
mov dword [esp + 0x10], edi
push 0
push edi
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.100185e0
mov edx, dword [esi]
push edi
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call dword [edx + 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [esp + 8]
add esi, ecx
mov ecx, dword [esp + 0xc]
add ecx, eax
xor eax, eax
mov dword [esp + 8], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
push edi
add ecx, 8
push eax
mov dword [esi], eax
mov dword [esi + 4], ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x10024db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x20]
mov esi, ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push 0
push 0
push 0
push eax
push ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test edi, edi
jne 0x10024e0b
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
je 0x10024e03
push ecx
call ebx
mov dword [esi], 0
mov ecx, dword [esp + 0x10]
mov edi, eax
mov dword [esi], ecx
push ebp
call ebx
test edi, edi
jne 0x10024e3f
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi]
lea eax, [esi + 0x8cc]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
push edx
mov dword [esp + 0x38], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 1
mov ecx, esi
call fcn.10024d50
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x100297f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
jne 0x10029806
lea eax, [ebp - 0x10]
mov dword [ebp + 0x10], eax
mov ebx, dword [ebp + 8]
xor eax, eax
test ebx, ebx
mov ecx, 0x11
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
je 0x1002982f
mov ecx, 0x104
mov eax, ebx
cmp byte [eax], 0
je 0x1002983e
inc eax
dec ecx
jne 0x10029826
mov eax, 0xa0
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x1002982f
mov eax, 0x104
sub eax, ecx
lea esi, [eax + 1]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.10031bb0
cmp esi, 0x7fffffff
mov edi, esp
ja 0x1002986b
push ebx
push esi
push edi
call fcn.100029b3
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1002989c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002a670
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x1002a6ab
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
lea ecx, [esi + 8]
push ecx
push 0
push esi
push 0x1002a4a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
ret

Function at 0x1002ac90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1002acf8
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1002acf8
mov ecx, dword [esp + 8]
mov dword [edi], ecx
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1002ad0b
cmp eax, 2
mov eax, 0xd
jne 0x1002ad0d
mov eax, esi
pop edi
pop esi
add esp, 8
ret

Function at 0x1002ad20
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002ad70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
inc eax
push eax
mov eax, dword [esp + 8]
push ecx
push 2
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x1002ad80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1004caec]
push ebx
push esi
mov dword [esp + 0x110], eax
push 0x104
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [esp + 0x118]
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.1003228a
test eax, eax
push str.Toolbar_Uninstaller
push esi
setne bl
call fcn.1003228a
test eax, eax
push 0x10044e64
push esi
setne byte [esp + 0x23]
call fcn.1003228a
add esp, 0x18
test eax, eax
setne al
pop esi
test bl, bl
pop ebx
je 0x1002ae0a
mov cl, byte [esp + 3]
test cl, cl
je 0x1002ae0a
test al, al
je 0x1002ae0a
mov eax, 1
mov ecx, dword [esp + 0x108]
call fcn.10030334
add esp, 0x10c
ret
mov ecx, dword [esp + 0x108]
xor eax, eax
call fcn.10030334
add esp, 0x10c
ret
Function at 0x1002aec0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x1003fae6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x320
mov eax, dword [0x1004caec]
push ebx
xor ebx, ebx
mov dword [esp + 0x320], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x32c], ebx
mov dword [esp + 8], ebx
cmp byte [0x100525b8], bl
mov byte [esp + 0x32c], 1
jne 0x1002af10
xor eax, eax
jmp 0x1002b074
push esi
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esp + 0x33c]
lea eax, [esp + 0x1c]
mov ecx, eax
xor esi, esi
mov edi, 0x104
sub edx, ecx
nop
mov cl, byte [edx + eax]
cmp cl, bl
je 0x1002af3f
mov byte [eax], cl
inc eax
dec edi
jne 0x1002af30
jmp 0x1002af43
cmp edi, ebx
jne 0x1002af49
dec eax
mov esi, 0x8007007a
or edi, 0xffffffff
cmp esi, ebx
mov byte [eax], bl
jl 0x1002b016
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.10015eba
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x10044e7c
push 7
push ebx
push 0x10042624
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x1002b016
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x10044e8c
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x1002b016
push 0x104
lea eax, [esp + 0x124]
push eax
push edi
push 0x100525b8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 2
lea edx, [esp + 0x124]
push edx
push eax
call dword [ecx + 0x14]
mov esi, eax
cmp esi, ebx
jl 0x1002b016
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp esi, ebx
jl 0x1002b016
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jl 0x1002b016
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x18]
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, ebx
mov eax, dword [esp + 0x10]
mov byte [esp + 0x334], bl
jge 0x1002b051
cmp eax, ebx
je 0x1002b035
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x334], edi
je 0x1002b04a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x1f
jmp 0x1002b072
cmp eax, ebx
je 0x1002b05b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [esp + 0x334], edi
je 0x1002b070
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x324]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x320]
pop ebx
call fcn.10030334
add esp, 0x32c
ret
Function at 0x1002b0a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push 0x10055070
push SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002b127
mov esi, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [str.IsInstaller]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push esi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002b11c
cmp dword [esp + 4], 4
jne 0x1002b11c
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1002b11c
test esi, esi
je 0x1002b115
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
add esp, 0xc
ret
test esi, esi
je 0x1002b127
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0xc
ret