joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101cb110
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov dword [ecx], 0
cmp dword [eax + 0x18], 8
push edi
mov dword [esp + 0x20], 0
jb 0x101cb137
mov esi, dword [eax + 4]
jmp 0x101cb13a
lea esi, [eax + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x20]
push edx
push 0x20019
push 0
push esi
push SysReAllocStringLen
call edi
cmp eax, 5
jne 0x101cb181
test esi, esi
je 0x101cb1f3
mov edx, esi
mov ecx, SysReAllocStringLen
call fcn.101cb770
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push esi
push SysReAllocStringLen
call edi
test eax, eax
jne 0x101cb1f3
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x101cb1f3
cmp dword [ebp + 0x18], 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 4
jb 0x101cb1a8
mov eax, dword [ebp + 4]
jmp 0x101cb1ab
lea eax, [ebp + 4]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x101cb1d4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x101cb1e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop edi
pop esi
pop ebp
add esp, 0x10
ret 8
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x10
ret 8

Function at 0x101cb200
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
xor edx, edx
cmp byte [eax], dl
push esi
mov ecx, 1
push edi
mov dword [esp + 0x18], ecx
je 0x101cb225
mov byte [eax + 1], cl
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 0x18], 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
jb 0x101cb23f
mov esi, dword [ebp + 4]
add ebp, 4
jmp 0x101cb244
add ebp, 4
mov esi, ebp
lea edi, [esp + 0x14]
lea ebx, [esp + 0x10]
call fcn.101cb710
test eax, eax
jne 0x101cb219
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x101cb219
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x101cb270
mov eax, dword [eax + 4]
jmp 0x101cb273
add eax, 4
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101cb2b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], edi
jb 0x101cb2a5
mov edx, dword [ebp]
jmp 0x101cb2a7
mov edx, ebp
mov ecx, SysReAllocStringLen
call fcn.101cb770
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 0xc
ret 8
Function at 0x101cb2d0
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x101f6618
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor ebx, ebx
mov edi, ecx
mov esi, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
mov dword [esp + 0x44], ebx
lea eax, [esp + 0x1c]
push eax
push ebp
mov ecx, SysReAllocStringLen
call fcn.101cafc0
test al, al
jne 0x101cb358
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x101cb351
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x101cb430
cmp byte [edi], bl
je 0x101cb360
mov byte [edi + 1], 1
cmp dword [esi + 0x18], 8
mov dword [esp + 0x18], ebx
jb 0x101cb36f
mov esi, dword [esi + 4]
jmp 0x101cb372
add esi, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebx
push esi
push SysReAllocStringLen
call edi
cmp eax, 5
jne 0x101cb3b3
cmp esi, ebx
je 0x101cb412
mov edx, esi
mov ecx, SysReAllocStringLen
call fcn.101cb770
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebx
push esi
push SysReAllocStringLen
call edi
cmp eax, ebx
jne 0x101cb412
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x101cb412
mov edi, 8
cmp dword [ebp + 0x18], edi
jb 0x101cb3ce
mov ebp, dword [ebp + 4]
jmp 0x101cb3d1
add ebp, 4
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x101cb3ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
sete byte [esp + 0x17]
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x34], edi
jb 0x101cb40c
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [esp + 0x17]
jmp 0x101cb430
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x101cb42e
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.101d19cc
add esp, 0x34
ret 4
Function at 0x101cb8f0
Capabilities:
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x101d28a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x20], ebx
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x101cb974
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x14], eax
mov byte [esp + 0x20], 1
cmp eax, ebx
jne 0x101cb990
mov dword [esp + 0x20], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0xc], eax
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x20], 0xffffffff
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x28]
push edi
push ecx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov byte [esp + 0x20], bl
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
mov dword [esp + 0xc], ebx
je 0x101cb974
mov dword [esp + 0x20], 0xffffffff
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x101cb9e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x101d9508
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp ebp, ebx
je 0x101cbb3d
cmp edi, ebx
je 0x101cbb3d
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x101cba36
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x101cbaf8
mov dword [esp + 0x14], 0
mov byte [esp + 0x28], 1
lea eax, [edi + 4]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x101cba9b
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x28], 2
test eax, eax
jne 0x101cbab1
mov byte [esp + 0x28], al
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.10001dd0
jmp 0x101cbb6a
push edi
mov dword [eax], edi
add eax, 4
push ebp
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov byte [esp + 0x28], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x101cbae5
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x101cba9b
xor esi, esi
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [esp + 0x28], 0
jmp 0x101cbafa
xor esi, esi
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x101cbb16
mov ecx, dword [esp + 0x34]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], esi
mov word [esp + 0x34], si
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x101cbb59
mov edx, dword [esp + 0x34]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x101cbb80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x101e6648
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x101cbbbb
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x101cbc28
push ebp
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
cmp ebp, ebx
je 0x101cbc22
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
mov esi, dword [ebx]
test esi, esi
jbe 0x101cbc19
mov eax, esi
mov ecx, edi
call fcn.100506c0
mov eax, dword [edi + 4]
test eax, eax
je 0x101cbc02
mov ecx, dword [edi + 8]
sub ecx, eax
jne 0x101cbc08
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [edi + 4]
push esi
add ebx, 4
push ebx
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ebx, ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x101cbc44
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x101cbd20
Capabilities:
Open clipboard

Disassembly:
push 0xffffffffffffffff
push 0x101d5f88
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
neg eax
sbb eax, eax
neg eax
cmp al, bl
mov byte [esp + 0x13], al
jne 0x101cbd86
mov dword [esp + 0x1c], 0xffffffff
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x101cbdbe
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_CloseClipboard]
neg eax
sbb eax, eax
add eax, 1
mov byte [esp + 0x13], al
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
jb 0x101cbdcc
mov esi, dword [esi + 4]
jmp 0x101cbdcf
add esi, 4
lea edi, [eax + eax + 2]
push esi
call fcn.101cb8f0
add esp, 4
mov bl, al
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.USER32.dll_CloseClipboard]
neg eax
sbb eax, eax
add eax, 1
mov byte [esp + 0x13], al
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x101cc240
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x101d2dc3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x18
mov dword [esp + 0x14], 0x102aa250
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
push eax
mov dword [0x102aa254], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x102aa254]
cmp eax, ebx
mov dword [esp + 0xc], 0x102aa254
je 0x101cc2a1
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x1c], 1
push str.Dwmapi.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [0x102aa250], eax
je 0x101cc32c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmIsCompositionEnabled
push eax
call esi
mov dword [0x102aa258], eax
mov eax, dword [0x102aa250]
push str.DwmSetWindowAttribute
push eax
call esi
mov ecx, dword [0x102aa250]
push str.DwmRegisterThumbnail
push ecx
mov dword [0x102aa25c], eax
call esi
mov edx, dword [0x102aa250]
push str.DwmUnregisterThumbnail
push edx
mov dword [0x102aa260], eax
call esi
mov dword [0x102aa264], eax
mov eax, dword [0x102aa250]
push str.DwmUpdateThumbnailProperties
push eax
call esi
mov ecx, dword [0x102aa250]
push str.DwmQueryThumbnailSourceSize
push ecx
mov dword [0x102aa268], eax
call esi
mov dword [0x102aa26c], eax
jmp 0x101cc350
mov dword [0x102aa258], ebx
mov dword [0x102aa25c], ebx
mov dword [0x102aa260], ebx
mov dword [0x102aa264], ebx
mov dword [0x102aa268], ebx
mov dword [0x102aa26c], ebx
mov byte [esp + 0x1c], bl
mov eax, dword [0x102aa254]
cmp eax, ebx
je 0x101cc364
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], 0xffffffff
mov eax, 0x102aa250
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x101cc580
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
push 4
push 0
push 0
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x101cc5f5
push ebp
push edi
push 4
push str.Themes
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x101cc5f0
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x101cc5ed
mov bl, byte [esp + 0x14]
shr bl, 2
and bl, 1
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x101ccb90
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x101dd3db
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov edi, dword [esi]
test edi, edi
je 0x101ccbd9
push edi
call fcn.101d0cb0
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi], 0
cmp dword [esi + 0x18], 0
mov edi, 8
je 0x101ccbf8
cmp dword [esi + 0x1c], edi
jb 0x101ccbee
mov eax, dword [esi + 8]
jmp 0x101ccbf1
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x1c], edi
jb 0x101ccc11
mov eax, dword [esi + 8]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov word [esi + 8], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x101cd4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x101e64d2
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x814], eax
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x828]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x830], edi
mov eax, dword [esp + 0x838]
mov esi, ecx
mov dword [esp + 0x18], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x20], esi
mov ebx, edx
mov word [esi + 4], di
mov dword [esp + 0x830], edi
cmp dword [eax + 0x18], 8
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edi
jb 0x101cd542
mov eax, dword [eax + 4]
jmp 0x101cd545
add eax, 4
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101cd5f6
push 0x7fe
lea edx, [esp + 0x2a]
push edi
push edx
mov word [esp + 0x30], di
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebx + 0x18], 8
mov dword [esp + 0x14], 0x7fe
mov dword [esp + 0x1c], 1
jb 0x101cd597
mov ebx, dword [ebx + 4]
jmp 0x101cd59a
add ebx, 4
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101cd5eb
mov eax, dword [esp + 0x14]
cmp eax, 0x400
jae 0x101cd5ca
mov word [esp + eax*2 + 0x24], di
lea eax, [esp + 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x101cd5d1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.10007a00
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.101d19cc
add esp, 0x824
ret
Function at 0x101cef30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10258270
push 0x101d1fd5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x101cefcf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101cefcf
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x101cefcf
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x101cefcf
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101cf0f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x102aa07c]
test esi, esi
je 0x101cf11a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x101cf103
pop edi
pop esi
pop ecx
ret

Function at 0x101cf170
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movzx ecx, ax
sub esp, 0x1c
test ecx, ecx
je 0x101cf181
sub eax, ecx
add eax, 0x10000
cmp eax, dword [esp + 0x20]
push ebx
push esi
push edi
mov esi, eax
jae 0x101cf231
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea esp, [esp]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x101cf1b4
mov esi, 0x80010000
jmp 0x101cf227
xor eax, eax
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebx
test eax, eax
je 0x101cf231
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x101cf210
cmp eax, 0x10000
jb 0x101cf210
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x101cf233
add esi, 0x10000
jmp 0x101cf227
mov edx, dword [esp + 0xc]
lea esi, [edx + eax]
movzx eax, si
test eax, eax
je 0x101cf227
mov ecx, 0x10000
sub ecx, eax
add esi, ecx
cmp esi, dword [esp + 0x2c]
jb 0x101cf1a0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x101cf240
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
add esi, 0xffff0000
movzx eax, si
test eax, eax
push edi
je 0x101cf258
sub esi, eax
cmp esi, dword [esp + 0x30]
jbe 0x101cf2eb
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, 0x10000
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x101cf287
mov esi, 0x4fff0000
jmp 0x101cf2e5
xor eax, eax
push 0x1c
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call ebx
test eax, eax
je 0x101cf2eb
cmp dword [esp + 0x20], ebp
jne 0x101cf2d2
cmp dword [esp + 0x1c], ebp
jb 0x101cf2d2
push 0x40
push 0x3000
push ebp
push esi
call edi
test eax, eax
jne 0x101cf2ed
sub esi, ebp
jmp 0x101cf2e5
mov esi, dword [esp + 0x14]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x101cf2e5
sub esi, eax
cmp esi, dword [esp + 0x30]
ja 0x101cf273
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret