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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10144070
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x4000
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 0x4000
mov dword [ebp - 0x34], 0
call fcn.10014df0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
push ebx
mov ebx, dword [ebp - 0x50]
lea eax, [ebp - 0x30]
push 0
push eax
push ebx
push edi
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
je 0x100ac1d1
cmp edi, 0xea
jne 0x100ac28f
push dword [ebp - 0x34]
mov edi, dword [ebp - 0x3c]
mov ecx, edi
mov dword [ebp - 0x30], 0x4000
call fcn.1001e7a0
lea eax, [ebp - 0x34]
push eax
push dword [edi]
lea eax, [ebp - 0x30]
push dword [ebp - 0x40]
push 0
push eax
push ebx
push dword [ebp - 0x44]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x100ac28f
push dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
push ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.10009290
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x100ac264
cmp dword [esi + 0x14], 8
jb 0x100ac246
push dword [esi]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x2c]
push eax
call fcn.10008f20
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x100ac279
push dword [ebp - 0x2c]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
xor edi, edi
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100ac2b8
push ebx
call fcn.10115284
add esp, 4
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret
Function at 0x100b5df0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], 0x208
push eax
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100b5e49
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret 8
cmp word [ebp - 0x414], 0
jne 0x100b5e57
xor ecx, ecx
jmp 0x100b5e6f
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b5e60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.10009290
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10115289
mov esp, ebp
pop ebp
ret 8

Function at 0x100b6000
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x624]
push esi
mov esi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x414]
mov dword [ebp - 0x620], 0
push edx
lea edx, [ebp - 0x620]
mov dword [ebp - 0x624], 0x410
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100b6065
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x620]
cmp eax, 1
je 0x100b60b5
cmp eax, 2
jne 0x100b6052
push 0x104
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x100b6052
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.10117960
add esp, 0x10
cmp word [ebp - 0x414], 0
jne 0x100b60c3
xor ecx, ecx
jmp 0x100b60df
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b60d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.10009290
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10115289
mov esp, ebp
pop ebp
ret 8
Function at 0x100b6110
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101456c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
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 dword [ebp - 0x20], edi
push 0x410
mov dword [ebp - 0x14], 0x208
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
je 0x100b615a
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
push 0x208
mov dword [ebp - 0x10], 0x208
call fcn.1011080e
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100b6194
lea ecx, [ebp - 0x48]
call fcn.100b5360
push 0x101b80c4
lea eax, [ebp - 0x48]
push eax
call fcn.1011935b
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, 0x103
jne 0x100b61dd
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, 0xea
jne 0x100b623e
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.100b5290
push ebx
call fcn.101160e1
add esp, 4
push dword [ebp - 0x10]
call fcn.1011080e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100b617e
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push esi
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
je 0x100b6254
push ebx
call fcn.101160e1
add esp, 4
test edi, edi
je 0x100b6254
lea ecx, [ebp - 0x48]
call fcn.100b58a0
push 0x101b80f0
jmp 0x100b618b
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push dword [ebp - 0x1c]
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov edi, eax
call fcn.101160e1
add esp, 4
test edi, edi
je 0x100b628a
lea ecx, [ebp - 0x48]
call fcn.100b57c0
push 0x101b809c
jmp 0x100b618b
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100b8ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10145e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x90]
mov edi, dword [ebp + 8]
push 0x40
push ecx
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov dword [ebp - 0x94], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x90]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100b8f40
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x90]
push eax
push 1
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret 8

Function at 0x100b8f90
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
lea edi, [ecx + 4]
mov ebx, edx
test edi, edi
je 0x100b8fe1
lea esi, [ebx + 4]
test esi, esi
je 0x100b8fe1
cmp byte [ecx + 0x48], 0
je 0x100b8fe1
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x100b8fe1
cmp byte [ebx + 0x48], 0
je 0x100b8fe1
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x100b8fe1
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x100bc3b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101390e3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x101ba518]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
test byte [0x101ca240], 1
je 0x100bc3fe
push dword [0x101ca24c]
mov ecx, 0x10171518
push dword [0x101ca248]
call fcn.10005670
add esp, 8
push 0xc
call fcn.101161a1
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
test eax, eax
je 0x100bc437
mov dword [eax], vtable.appv::utility::scope_guard_func.0
mov byte [esp + 0x20], 1
mov dword [eax], vtable.._AV__scope_guard_func_impl_V___Bind__00XQ6AXXZ___V_std___utility_appv__.0
mov dword [eax + 4], 0x100ba490
mov byte [esp + 0x20], 0
jmp 0x100bc439
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], 3
lea ecx, [esi + 0x60]
call fcn.1001fb70
lea ecx, [esi + 0x50]
call fcn.1001fb70
lea ecx, [esi + 0x58]
call fcn.1001fb70
lea ecx, [esi + 0x28]
call fcn.100bc700
lea ecx, [esi + 0x30]
call fcn.100bc700
lea ecx, [esi + 0x38]
call fcn.100bc700
lea ecx, [esi + 0x40]
call fcn.100bc700
mov dword [esi + 0x48], 0
xorps xmm0, xmm0
mov dword [esi + 0x4c], 0
movdqu xmmword [esi + 8], xmm0
movdqu xmmword [esi + 0x18], xmm0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.10019f30
xor eax, eax
mov edx, 0x80
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100bfd70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101472d4
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 esi, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [edi + 0x14], 8
jb 0x100bfdd8
mov eax, dword [edi]
jmp 0x100bfdda
mov eax, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [esi]
call ebx
test eax, eax
je 0x100bfe07
cmp eax, 0x7a
je 0x100bfe07
push ecx
mov edx, str.reg_key::get_value__:__Could_not_query_value_size.
mov ecx, eax
call fcn.100ac2e0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.1001e7a0
cmp dword [edi + 0x14], 8
jb 0x100bfe1c
mov eax, dword [edi]
jmp 0x100bfe1e
mov eax, edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [esi]
call ebx
test eax, eax
je 0x100bfe41
push ecx
mov edx, str.reg_key::get_value__:__Could_not_query_value
mov ecx, eax
call fcn.100ac2e0
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp - 0x14]
mov ecx, ebx
push 0xffffffffffffffff
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push edi
mov word [ebx], ax
call fcn.10009170
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x18]
call fcn.100951d0
mov byte [ebp - 4], 3
mov dword [ebx + 0x24], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100bfeb0
push eax
call fcn.10115284
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100c4a10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10148038
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
add eax, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [0x101c9be8]
mov dword [esp + 0x1c], 0x18
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0x40
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x100c4a93
lea ecx, [esp + 0x1c]
push ecx
push esi
lea ecx, [esp + 0x18]
push ecx
call eax
jmp 0x100c4aa4
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x100c4b59
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x40], 1
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0xc]
push eax
movzx eax, byte [ebx + 0x10]
push eax
call fcn.100fb9e0
mov edi, eax
add esp, 0xc
test edi, edi
js 0x100c4b21
cmp byte [ebx + 8], 0
je 0x100c4b02
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.100c4240
mov edi, eax
test edi, edi
js 0x100c4b21
mov edx, dword [ebp + 0x14]
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [edx], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [edx + 4], ecx
mov dword [esp + 0x40], 0xffffffff
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100c4b57
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x100c4b57
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x100c4b57
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100c60c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ecx + 0x10]
mov ebx, edx
test edi, edi
je 0x100c614d
mov eax, dword [ecx + 0x14]
cmp eax, 8
jb 0x100c60eb
mov edx, dword [ecx]
jmp 0x100c60ed
mov edx, ecx
mov esi, 0x5c
cmp si, word [edx + edi*2 - 2]
je 0x100c614d
cmp eax, 8
jb 0x100c6102
mov esi, dword [ecx]
jmp 0x100c6104
mov esi, ecx
cmp edi, 4
jbe 0x100c6115
call fcn.100c6070
test al, al
je 0x100c6115
add esi, 8
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100c6155
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.100063c0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10115289
mov esp, ebp
pop ebp
ret
Function at 0x100c7ae0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101adde8
push 0x10120d50
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
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 edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x100c7b90
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100c7b90
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x100c7b90
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100c7b90
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 0x100c7f70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
lea esi, [edx - 0x10000]
movzx eax, si
push edi
mov edi, ecx
test eax, eax
je 0x100c7f8a
sub esi, eax
cmp esi, edi
jbe 0x100c801d
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x100c7fa0
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100c7fb5
sub esi, 0x8000000
jmp 0x100c8019
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movdqu xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100c801d
cmp dword [ebp - 0xc], 0x10000
jne 0x100c8007
cmp dword [ebp - 0x10], 0x10000
jb 0x100c8007
push 0x40
push 0x3000
push 0x10000
push esi
call ebx
test eax, eax
jne 0x100c801f
sub esi, 0x10000
jmp 0x100c8019
mov esi, dword [ebp - 0x18]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x100c8019
sub esi, eax
cmp esi, edi
ja 0x100c7fa0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c8030
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x100c8048
mov ebx, 0x10000
lea edi, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x100c805b
mov edi, 0xfff80000
mov eax, dword [0x101c9b90]
mov ecx, dword [0x101c9b98]
test eax, eax
jne 0x100c8075
test ecx, ecx
je 0x100c8088
mov eax, ecx
mov dword [0x101c9b90], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x100c8088
cmp edx, ebx
jb 0x100c8088
cmp edx, edi
jbe 0x100c810e
mov eax, ecx
mov dword [0x101c9b90], eax
test ecx, ecx
je 0x100c80b2
test eax, eax
je 0x100c80a6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100c80a6
cmp ecx, ebx
jb 0x100c80a6
cmp ecx, edi
jbe 0x100c810e
mov eax, dword [eax + 4]
mov dword [0x101c9b90], eax
test eax, eax
jne 0x100c8097
movzx eax, si
mov ecx, ebx
sub esi, eax
mov edx, esi
call fcn.100c7f70
test eax, eax
jne 0x100c80d1
mov edx, edi
mov ecx, esi
call fcn.100c7eb0
test eax, eax
je 0x100c8135
mov dword [eax], 0x52727464
xor edx, edx
mov dword [eax + 8], 0
mov esi, 0x2a7
mov ecx, dword [0x101c9b98]
mov dword [eax + 4], ecx
lea ecx, [eax + 0xff60]
mov dword [0x101c9b90], eax
mov dword [0x101c9b98], eax
mov edi, edi
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x60
dec esi
jne 0x100c8100
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x100c8135
cmp esi, edi
ja 0x100c8135
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.1011da50
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x100c8170
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov ecx, dword [0x101c9b98]
push ebx
mov ebx, 0x101c9b98
test ecx, ecx
je 0x100c81dc
push esi
push edi
cmp dword [ecx], 0x52727464
jne 0x100c81d1
lea edi, [ecx + 0x10000]
xor edx, edx
lea esi, [ecx + 0xa0]
mov eax, dword [esi]
test eax, eax
je 0x100c81a6
cmp eax, ecx
jb 0x100c81d1
cmp eax, edi
jae 0x100c81d1
inc edx
add esi, 0x60
cmp edx, 0x2a9
jb 0x100c8198
mov eax, dword [ecx + 4]
push 0x8000
push 0
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x101c9b90], 0
jmp 0x100c81d4
lea ebx, [ecx + 4]
mov ecx, dword [ebx]
test ecx, ecx
jne 0x100c8182
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x101c9ba0], 0
je 0x100c8216
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x101c9ba0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x100c820d
push esi
mov esi, dword [0x101c9b98]
mov dword [0x101c9b9c], eax
mov dword [0x101c9b94], eax
mov dword [0x101c9ba8], eax
mov dword [0x101c9b88], eax
test esi, esi
je 0x100c8269
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x100c8253
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100c8270
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101c9ba0], eax
je 0x100c828b
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x101c9b9c]
push edi
test esi, esi
je 0x100c82f3
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], 0
jne 0x100c82e2
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100c82e2
push 0x60
push 0
mov edi, ebx
push ebx
and edi, 0xffff0000
call fcn.1011da50
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebx + 0x40], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push esi
call fcn.10115284
add esp, 4
mov esi, edi
test edi, edi
jne 0x100c8298
mov dword [0x101c9b9c], 0
call fcn.100c7e60
mov edi, dword [0x101c9b94]
test edi, edi
je 0x100c8328
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push edi
call fcn.10115284
add esp, 4
mov edi, esi
test esi, esi
jne 0x100c8312
pop edi
pop esi
mov dword [0x101c9b94], 0
xor eax, eax
mov dword [0x101c9ba0], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c8660
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x101c9ba8]
push edi
mov edi, ecx
test eax, eax
jne 0x100c86d5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x100c867a
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.101161a1
mov esi, eax
add esp, 4
test esi, esi
jne 0x100c8690
lea edi, [eax + 8]
jmp 0x100c86ad
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100c86c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10115284
add esp, 4
pop esi
mov dword [0x101c9ba8], edi
mov eax, edi
mov dword [0x101c9b88], 0
pop edi
ret
mov eax, dword [0x101c9b94]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
mov dword [0x101c9b94], esi
pop esi
pop edi
ret