joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c89d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101c9ba0], eax
je 0x100c89f8
pop esi
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101c9ba8]
test eax, eax
jne 0x100c8af8
test esi, esi
jne 0x100c8a12
lea eax, [esi + 0x57]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100c8a2b
cmp dword [ebx], 0
jne 0x100c8a36
mov dword [0x101c9ba8], 6
mov dword [0x101c9b88], ebx
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x18
call fcn.101161a1
mov esi, eax
add esp, 4
test esi, esi
jne 0x100c8a4f
lea edi, [eax + 8]
jmp 0x100c8adc
mov ecx, dword [ebx]
call fcn.100c7be0
mov ecx, dword [ebp - 8]
mov edi, eax
call fcn.100c7be0
movzx ecx, byte [edi + 0x36]
mov edx, eax
mov eax, dword [edi + 0x40]
sub eax, ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x100c8ace
cmp ecx, 0x1e
ja 0x100c8ace
cmp dword [edi + 0x44], edx
jne 0x100c8ace
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100c8a9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100c8adc
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 4], 1
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x101c9b9c]
pop edi
mov dword [esi], eax
xor eax, eax
mov dword [0x101c9b9c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x101c9ba4], 0
mov edi, 9
jne 0x100c8ae2
mov dword [0x101c9ba8], edi
test esi, esi
je 0x100c8aef
push esi
call fcn.10115284
add esp, 4
mov eax, edi
mov dword [0x101c9b88], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100cb090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013490b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x101ba518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x100d7b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10149fde
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.AppV::VFS::Namespace::cache_enumerator.0
mov dword [ebp - 4], 0
lea ecx, [edi + 4]
push dword [ebp + 8]
mov dword [edi], vtable.AppV::VFS::package_cache_enumerator.0
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.10020e80
mov byte [ebp - 4], 1
lea esi, [edi + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov edx, dword [ebp + 0x10]
mov dword [edi + 0xc], eax
call fcn.100d7970
mov byte [ebp - 4], 2
lea eax, [edi + 0x38]
push 0
push eax
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [edi + 0x20], 0
jne 0x100d7bed
push 1
push 0x10178e54
mov ecx, esi
call fcn.10009290
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100d7c1b
add eax, eax
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x18]
add eax, 2
cmp dword [esi + 0x14], 8
mov word [ebp - 0x16], ax
jb 0x100d7c1e
mov esi, dword [esi]
jmp 0x100d7c1e
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], esi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100db840
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014a8b4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x14], 7
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
mov dword [edi + 0x10], 0
mov word [edi], ax
call fcn.10009170
mov dword [ebp - 4], 0
xor eax, eax
push 0xffffffffffffffff
lea ecx, [edi + 0x18]
mov dword [ecx + 0x14], 7
push eax
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.10009170
mov byte [ebp - 4], 1
xor eax, eax
cmp byte [ebp + 0x10], al
mov dword [edi + 0x34], 0
setne al
or eax, 4
mov dword [edi + 0x30], eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 2
lea esi, [edi + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x60]
push dword [ebp + 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.10020e80
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100ecec0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
je 0x100ecef3
mov eax, 0x44
lea edx, [eax + 0x48]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret
cmp dword [esi + 8], 0
jne 0x100ecf16
call fcn.100ec3b0
or eax, 0x49
or edx, 0x140c
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
push dword [esi + 8]
and eax, 0xff
cmp eax, 5
lea eax, [ebp - 0x88]
jb 0x100ecf36
push str..Global_ls
jmp 0x100ecf3b
push str.._ls
push 0x40
push eax
call fcn.10117263
add esp, 0x10
lea eax, [ebp - 0x88]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x100ecf8a
call fcn.100ec3b0
or eax, 0x41
or edx, 0x180c
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
mov edx, 0x80
pop esi
call fcn.10115289
mov esp, ebp
pop ebp
ret
Function at 0x100fa360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov byte [eax], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov edx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov edx, dword [0x101c9bec]
test edx, edx
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0xc]
push edx
push esi
push edi
push ebx
push eax
push ecx
je 0x100fa3a4
call dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100fa3c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x100fa3de
mov eax, 0xc0000022
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov esi, dword [esi + 4]
push ebx
push edi
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [ebp + 8], ecx
mov ecx, dword [0x101c9bfc]
test ecx, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push ecx
push edx
push edi
push ebx
push eax
push esi
je 0x100fa41a
call dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.ntdll.dll_NtSetValueKey]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x100fa4c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 4]
push ebx
mov ebx, dword [0x101c9bf0]
mov edx, dword [eax + 0x10]
push esi
mov esi, dword [eax + 0xc]
push edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 4]
push edx
push esi
push edi
push eax
push ecx
test ebx, ebx
je 0x100fa4f0
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.ntdll.dll_NtQueryKey]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100fb160
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014eeb3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x100fb1ac
mov eax, 0xc0000022
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov ecx, ebx
push 1
push 1
call dword [eax + 0x48]
test eax, eax
js 0x100fb29d
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.100fb2e0
mov esi, eax
test esi, esi
jns 0x100fb225
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100bc5b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.100bcf40
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.100bcf50
mov esi, dword [ebp - 0x10]
cmp esi, dword [eax]
setne al
test al, al
je 0x100fb28c
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [0x101c9bf4]
add eax, 0xc
mov ecx, dword [ebx + 4]
push eax
push ecx
test edx, edx
je 0x100fb268
call edx
jmp 0x100fb26e
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov edi, eax
test edi, edi
js 0x100fb2af
mov esi, dword [esi + 0xc]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.100bcf50
cmp esi, dword [eax]
setne al
test al, al
jne 0x100fb250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100bc5b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100bc5b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100fb5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014ef28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x101c9be8]
test eax, eax
je 0x100fb62a
lea ecx, [ebp - 0x30]
push ecx
push 1
lea ecx, [ebp + 8]
push ecx
call eax
jmp 0x100fb63a
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
test esi, esi
js 0x100fb708
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [0x101c9bec]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x2c]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x100fb679
lea esi, [ebp - 0x10]
push esi
push ecx
push edx
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 8]
call eax
jmp 0x100fb68e
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0xc0000034
je 0x100fb706
test esi, esi
jns 0x100fb72e
cmp esi, 0x80000005
je 0x100fb6b0
cmp esi, 0xc0000023
jne 0x100fb708
push dword [ebp - 0x10]
lea ecx, [edi + 0x24]
call fcn.100bcbf0
mov esi, eax
test esi, esi
js 0x100fb708
mov eax, dword [0x101c9bec]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x2c]
test eax, eax
je 0x100fb6e3
lea esi, [ebp - 0x10]
push esi
push ecx
push edx
push 0
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 8]
call eax
jmp 0x100fb6f8
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
jns 0x100fb72e
cmp esi, 0xc0000034
jne 0x100fb708
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x100fb74e
cmp byte [0x101c99d0], 0
jne 0x100fb74e
mov ecx, dword [0x101c9bcc]
push eax
test ecx, ecx
je 0x100fb741
call ecx
jmp 0x100fb747
mov eax, dword [edi + 0x2c]
test dword [eax + 4], 0x10000
je 0x100fb706
mov esi, 0xc0000034
jmp 0x100fb708
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp + 8], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100ff020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014f4ce
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x101ba518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.vreg_request.0
mov dword [ebp - 4], 0
lea edx, [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [esi], vtable.notify_change_multiple_keys_vreg_request.0
mov dword [ebp - 0x14], edx
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
test eax, eax
je 0x100ff081
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x28]
mov byte [esi + 0x28], al
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x30], eax
mov al, byte [ebp + 0x34]
mov byte [esi + 0x34], al
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x30
Function at 0x101027b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014fe53
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 3
mov esi, dword [edi + 0x68]
add esi, 0x18
cmp dword [esi], 0
jne 0x10102820
mov esi, 0xc0000034
jmp 0x101028e1
lea ecx, [ebp - 0x34]
call fcn.100bcc60
push esi
lea ecx, [ebp - 0x34]
call fcn.100c0cb0
mov esi, eax
test esi, esi
js 0x101028e1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.100bcf40
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x34]
call fcn.100bcf50
mov ecx, dword [ebp - 0x14]
cmp dword [eax], ecx
sete al
test al, al
je 0x10102886
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100bc5b0
mov eax, 0xc00000e5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x20]
mov ecx, dword [ecx]
push eax
lea eax, [edi + 0x58]
push eax
push dword [edi + 0xb0]
mov edx, dword [ecx]
push dword [ebp + 8]
call dword [edx + 0xc]
mov esi, eax
test esi, esi
js 0x101028d5
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [0x101c9c04]
push eax
test ecx, ecx
je 0x101028cd
call ecx
jmp 0x101028d3
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.100b9ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100bc5b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x101110e0
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x10151704
call fcn.10119414
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x101111d8
cmp byte [esi + 0x46], bl
je 0x101111d8
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x1011111c
xor al, al
jmp 0x101111da
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.100afe00
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x10111149
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10111170
dec eax
je 0x10111174
dec eax
dec eax
je 0x101111c6
xor bl, bl
jmp 0x101111c8
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x10111184
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x101111ac
cmp eax, 0x10
jae 0x10111193
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.1011d128
add esp, 0x10
cmp ebx, eax
jne 0x1011116c
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x101111c6
test ebx, ebx
jne 0x1011113d
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.10044ff0
jmp 0x10111137
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10008e70
mov al, bl
jmp 0x101111da
mov al, 1
call fcn.101193d2
ret
Function at 0xd3c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d3c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d3c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d3c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d3c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd3cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd3cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd4e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd3cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd3cc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4053c4]
push edi
xor edi, edi
test eax, eax
jne 0x4014ff
push esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], edi
push eax
push 0x23
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401489
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x401489
lea esi, [ebp - 0x210]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4013b6
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x224], esi
test esi, esi
jle 0x40147b
lea eax, [esi + 1]
lea eax, [eax + eax*2]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x218], 0x800
xor edx, edx
mov dword [ebp - 0x21c], 0x80
mov edi, eax
xor ebx, ebx
nop
movzx ecx, word [ebp + ebx*2 - 0x210]
lea esi, [edx + edi]
inc ebx
mov dword [ebp - 0x220], esi
inc edx
mov eax, ecx
cmp cx, word [ebp - 0x218]
jb 0x401444
mov ax, cx
shr ax, 0xc
sub al, 0x20
mov byte [esi], al
mov eax, ecx
shr eax, 6
and cl, 0x3f
and al, 0x3f
add cl, 0x80
add al, 0x80
mov byte [edx + edi], al
mov byte [edx + edi + 1], cl
add edx, 2
jmp 0x40146c
cmp cx, word [ebp - 0x21c]
jb 0x401462
shr ecx, 6
and al, 0x3f
and cl, 0x1f
add al, 0x80
sub cl, 0x40
mov byte [esi], cl
mov byte [edx + edi], al
inc edx
jmp 0x40146c
mov ecx, dword [ebp - 0x220]
and al, 0x7f
mov byte [ecx], al
cmp ebx, dword [ebp - 0x224]
jl 0x401400
mov byte [edx + edi], 0
pop ebx
jmp 0x40147d
xor edi, edi
push dword [ebp - 0x214]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
push str.AppleLockdown
push 0x4031b8
push edi
call fcn.00401040
mov edx, eax
add esp, 0x10
mov dword [0x4053c4], edx
test edx, edx
je 0x4014cf
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4014b0
sub ecx, esi
lea eax, [ecx - 1]
test eax, eax
jle 0x4014cf
cmp byte [edx + eax], 0x5c
jne 0x4014cf
mov byte [edx + eax], 0
dec eax
test eax, eax
jg 0x4014c0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [0x4053c4]
push str.initialized_config_dir_to__s
push 0xb5
push str.D:_a1_slibimobiledevicecommonuserpref.c
push str.userpref_get_config_dir
call dword [sym.imp.imobiledevice.dll_debug_info_real]
mov eax, dword [0x4053c4]
add esp, 0x18
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004020c3
mov esp, ebp
pop ebp
ret
Function at 0x108c370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x108c38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x10b5074
push ecx
mov edi, eax
call fcn.010a0198
mov esi, eax
add esp, 8
test esi, esi
jne 0x108c3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.010a002e
push esi
call fcn.0109ffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret