joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439e9c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x408aa4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
test ebx, ebx
jne 0x439ee1
push 0x15b3c8
call fcn.00419830
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x439eda
and dword [ebp - 0x4c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x43a045
cmp dword [0x47a7ec], eax
je 0x439ef8
mov eax, dword [0x4790b8]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x43a045
push edi
mov dword [ebx], eax
lea eax, [ebp - 0x4c]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x439f26
push 0x15b3c9
call fcn.00419830
xor edi, edi
jmp 0x43a030
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x439f46
push 0x15b3ca
jmp 0x439f1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x439f58
push 0x15b3cb
jmp 0x439f1a
push esi
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.00420b1e
mov esi, dword [ebp - 0x50]
test al, al
jne 0x439f7c
push 0x15b3cc
call fcn.00419830
xor edi, edi
jmp 0x43a024
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x439f96
push 0x15b3cd
jmp 0x439f70
push 0x43
lea eax, [ebp - 0x47]
push 0
push eax
mov byte [ebp - 0x48], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0xb
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x439fce
push 0x15b3ce
jmp 0x439f70
and dword [ebp - 0x58], 0
xor edi, edi
inc edi
cmp dword [esi], 0
jbe 0x43a017
lea eax, [esi + 4]
mov dword [ebp - 0x50], eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x439fff
mov eax, dword [ebp - 0x50]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x43a015
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
inc ecx
add eax, 8
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], eax
cmp ecx, dword [esi]
jb 0x439fe0
jmp 0x43a017
mov dword [ebx], edi
mov dword [0x47a7ec], edi
mov eax, dword [ebx]
mov dword [0x4790b8], eax
test esi, esi
je 0x43a02f
push esi
call fcn.00419826
pop ecx
pop esi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x43a042
and dword [ebp - 0x4c], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041dbf5
leave
ret 4
Function at 0x43a959
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x408aa4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.00441f83
test eax, eax
je 0x43aa7a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push 0x40a7b8
push 0x80000002
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], edi
call esi
test eax, eax
jne 0x43aa4c
lea eax, [ebp - 0x218]
push eax
push 0x20119
push edi
push 0x40a7b8
push 0x80000002
call esi
test eax, eax
jne 0x43aa4c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x40a81c
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x43aa4c
cmp dword [ebp - 0x220], 1
jne 0x43aa4c
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x40a81c
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x43aa4c
cmp dword [ebp - 0x220], 1
jne 0x43aa4c
inc bl
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x43aa65
push eax
mov dword [ebp - 0x218], edi
call esi
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x43aa78
push ecx
mov dword [ebp - 0x214], edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041dbf5
leave
ret
Function at 0x43bbf3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x442fe1
call fcn.0041e7a1
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x43bc1c
cmp dword [0x47a87c], edi
je 0x43bd06
push 2
pop ebx
jmp 0x43bc36
cmp edi, 1
jne 0x43bd06
mov eax, ebx
call fcn.0043ca3b
test al, al
je 0x43bd06
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.0043ca5d
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x43bce8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x43bc7d
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call fcn.0043c2dd
test eax, eax
je 0x43bd1a
push 0x1c049f
push 0
call fcn.00419885
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x4790d0], 0
push ebx
mov ecx, 0x47a890
call fcn.0043ba72
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.0043c36b
mov esi, eax
test esi, esi
je 0x43bc69
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.0043ca7e
inc edi
cmp edi, 2
jl 0x43bc04
mov eax, esi
call fcn.0041e879
ret 0x18
push ebx
mov ecx, 0x47a890
call fcn.0043b9d6
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x43bcfa
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x43bd55
cmp dword [ebp - 0x20], 3
jne 0x43bd50
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x43bd50
and cl, 0xf
cmp cl, 4
je 0x43bd55
push 2
pop esi
jmp 0x43bcfa
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.0043ca7e
xor eax, eax
jmp 0x43bd12
Function at 0x43c1de
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x443052
call fcn.0041e7a1
mov esi, dword [ebp + 8]
cmp esi, dword [0x47a888]
jne 0x43c1fc
xor al, al
jmp 0x43c2d5
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x43c20d
xor ecx, ecx
cmp dword [0x47a87c], ecx
jmp 0x43c218
mov eax, esi
call fcn.0043ca3b
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x43c1f5
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.0043ca5d
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x43c296
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x43c24c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.0043c2dd
test eax, eax
je 0x43c2bb
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.00419885
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x47a890
mov dword [eax + 0x4790d0], ebx
call fcn.0043ba72
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.0043c36b
mov ebx, eax
test ebx, ebx
je 0x43c240
jmp 0x43c2c8
push dword [ebp + 8]
mov ecx, 0x47a890
call fcn.0043b9d6
lea ecx, [ebp + 0xf]
call fcn.0043ca7e
test ebx, ebx
sete al
call fcn.0041e879
ret 8

Function at 0x43c98f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x43c9a1
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xffff
push dword [ebp + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 4], 2
mov esi, eax
jae 0x43c9d2
cmp dword [ebp + 0xc], 1
je 0x43c9cf
cmp dword [ebp + 0xc], 2
jne 0x43c9d2
push 2
pop esi
mov eax, esi
call fcn.0043c2dd
test eax, eax
je 0x43c9f6
push 0x1c0491
push 0
call fcn.00419885
push edi
mov ecx, 0x47a890
call fcn.0043ba72
jmp 0x43ca33
test esi, esi
jne 0x43ca28
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
je 0x43ca07
cmp ecx, 1
jne 0x43ca16
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
push eax
push ecx
call fcn.0043c1b4
test eax, eax
jne 0x43ca28
push 2
pop esi
push edi
mov ecx, 0x47a890
call fcn.0043b9d6
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43ca9f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4430a8
call fcn.0041e7a1
mov esi, dword [ebp + 8]
cmp esi, dword [0x47a888]
jne 0x43cabd
xor eax, eax
jmp 0x43cc22
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x43cae0
cmp dword [0x47a87c], ebx
je 0x43cbe2
push 2
pop edi
jmp 0x43cafa
cmp ebx, 1
jne 0x43cbe2
mov eax, esi
call fcn.0043ca3b
test al, al
je 0x43cbe2
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.0043ca5d
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x43cba5
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x43cb2e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x43cb5a
cmp dword [ebp - 0x1c], 1
je 0x43cb57
cmp dword [ebp - 0x1c], 2
jne 0x43cb5a
push 2
pop edi
mov eax, edi
call fcn.0043c2dd
test eax, eax
je 0x43cbc2
push 0x1c0496
xor edi, edi
push edi
call fcn.00419885
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x47a890
mov dword [eax + 0x4790d0], edi
call fcn.0043ba72
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.0043c36b
mov edi, eax
test edi, edi
je 0x43cb22
jmp 0x43cbd3
push dword [ebp - 0x10]
mov ecx, 0x47a890
call fcn.0043b9d6
test edi, edi
je 0x43cbee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0043ca7e
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x43cac8
jmp 0x43cbfd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0043ca7e
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x43cc18
cmp dword [ebp - 0x1c], 2
je 0x43cc10
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x43cc20
push ecx
call fcn.0043b40f
jmp 0x43cc1e
push esi
call fcn.0043aec7
mov ecx, eax
mov eax, ecx
call fcn.0041e879
ret 4
Function at 0x440825
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x408aa4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], eax
mov eax, dword [0x4795d0]
push ebx
mov ebx, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x440a00
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov dword [ebp - 0x2a0], edi
test edi, edi
je 0x4409ff
push esi
xor esi, esi
cmp dword [edi], esi
jne 0x4409fe
mov dword [edi], 1
cmp ebx, 0x7e
ja 0x4409fc
mov ebx, dword [edi + ebx*4 + 4]
mov dword [ebp - 0x2a4], ebx
test ebx, ebx
je 0x4409fc
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0x14]
and eax, 3
add esp, 0xc
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x298], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push ebx
mov dword [ebp - 0x294], eax
call fcn.00440b28
cmp eax, dword [ebx + 0x24]
jg 0x440921
mov ecx, dword [ebx + 0x48]
cmp ecx, dword [ebx + 0x44]
jae 0x440921
test byte [ebx + 4], 1
jne 0x440921
test dword [ebx + 4], 0x400
jne 0x440921
test byte [ebp + 0x14], 0x10
jne 0x440921
cmp dword [0x47b7e0], esi
je 0x440921
push esi
lea eax, [ebp - 0x28c]
push eax
push 0x20
push 1
call dword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
movzx eax, ax
mov dword [ebp - 0x290], eax
jmp 0x440923
mov eax, esi
mov edi, dword [ebp - 0x298]
mov esi, ebx
mov ebx, dword [ebp - 0x29c]
push ebx
push eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push edi
call fcn.00440c1d
test byte [esi + 4], 2
jne 0x440962
mov esi, dword [esi]
mov eax, dword [ebp - 0x290]
test esi, esi
jne 0x440931
mov ebx, dword [ebp - 0x2a4]
test edi, edi
mov edi, dword [ebp - 0x2a0]
jne 0x4409a9
test byte [0x479800], 2
je 0x4409a9
push dword [ebp - 0x29c]
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push dword [ebx + 8]
push dword [ebx + 0x38]
push dword [ebx + 0x34]
push 0x408798
push dword [0x47980c]
push dword [0x479808]
call fcn.00440a0f
mov esi, dword [ebx + 0xc]
cmp esi, 0xffffffff
je 0x4409f7
mov esi, dword [edi + esi*4 + 4]
test esi, esi
je 0x4409f7
mov edi, dword [ebp - 0x298]
mov ebx, dword [ebp - 0x290]
push 0
push ebx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push edi
call fcn.00440c1d
test byte [esi + 4], 2
jne 0x4409f1
mov esi, dword [esi]
test esi, esi
jne 0x4409c5
mov edi, dword [ebp - 0x2a0]
and dword [edi], 0
jmp 0x4409fe
mov dword [edi], esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041dbf5
leave
ret 0x10
Function at 0x1000188e
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100e5dd4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001966
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x10001957
cmp dword [ebp - 0x20], 0x10
jb 0x10001945
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10001945
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10001945
mov edx, dword [esi]
test edx, edx
jne 0x10001913
push 0x200
push edx
push dword [0x100f3f14]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1000195f
jmp 0x10001939
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10001939
shl eax, 3
push eax
push edx
push 0
push dword [0x100f3f14]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1000195f
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100018ce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10077d23
leave
ret

Function at 0x10001974
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.1000188e
cmp dword [esi], ebx
je 0x100019d4
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x100019d3
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100019ca
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1000173b
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x1000199a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100019d8
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10001a26
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10001a16
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10001a0d
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100019ea
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x100f3f14]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret
Function at 0x10001a28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x100f3f30]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x10001a4e
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001a72
push 0xa
pop eax
jmp 0x10001af1
test edi, edi
je 0x10001a93
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x10001ab2
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10001ab2
test byte [esi + 0x14], 1
je 0x10001aa7
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x10001ab2
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov al, byte [esi + 0x14]
and dl, 1
mov cl, dl
and al, 0xfd
add cl, cl
shl dl, 2
or cl, al
and cl, 0xfb
or cl, dl
xor eax, eax
mov byte [esi + 0x14], cl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002114
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100f3f2c]
push esi
xor esi, esi
jmp 0x10002126
cmp dword [edx + 4], esi
jne 0x1000217f
mov edx, dword [edx]
test edx, edx
jne 0x1000211f
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10002183
push 0x20
mov dword [edx + 4], esi
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop esi
mov eax, dword [edx + 4]
add esi, 0x20
mov dword [ecx], eax
mov dword [edx + 4], ecx
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x1000214f
mov eax, dword [0x100f3f2c]
mov dword [edx], eax
mov dword [0x100f3f2c], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
test edx, edx
jne 0x10002172
xor eax, eax
pop esi
ret
Function at 0x10002c50
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x100eaccc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
je 0x10002c99
push dword [0x100eacd4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [0x100eaccc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10002c91
push 0xffffffffffffffff
push dword [0x100eaccc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x100eaccc]
call ebx
mov eax, dword [0x100eacd4]
test eax, eax
je 0x10002ca5
push eax
call ebx
mov eax, dword [0x100eacd0]
test eax, eax
je 0x10002cb1
push eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esi, 0x100eac60
mov edi, 3
push esi
call ebx
add esi, 0x18
sub edi, 1
jne 0x10002cc1
push 0x100eaca8
call ebx
push 0x88
push edi
push 0x100eac60
call fcn.1007b7a0
mov eax, dword [0x100eac54]
add esp, 0xc
pop edi
pop esi
pop ebx
test eax, eax
je 0x10002d03
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x100eac54], 0
mov eax, dword [0x100eac58]
test eax, eax
je 0x10002d1d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100eac58], 0
push dword [0x100ea988]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [0x100eaaac], 0
ret
Function at 0x10002d40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
mov edi, ebx
imul edi, dword [ebp + 0x18]
add edi, 0x1f
and edi, 0xffffffe0
lea eax, [edi*2 + 0x40]
push eax
call fcn.10003940
add esp, 8
test al, al
jne 0x10002d7e
push str.capture_init_shmem:_Failed_to_initialize_memory
call fcn.10003740
add esp, 4
xor al, al
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push esi
mov esi, dword [0x100eac54]
push 0
mov dword [edx], esi
push 0
mov dword [esi], 0xffffffff
lea eax, [esi + 0x20]
and eax, 0xffffffe0
sub eax, esi
cmp eax, 0xc
push 0
push 0
lea ecx, [eax + 0x20]
cmovae ecx, eax
mov eax, dword [edx]
mov dword [eax + 4], ecx
mov ecx, dword [edx]
mov edx, dword [ebp + 0x18]
mov eax, dword [ecx + 4]
add eax, edi
mov dword [ecx + 8], eax
mov eax, dword [0x100ea980]
mov ecx, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, dword [0x100ea980]
mov dword [eax + 4], 8
mov eax, dword [0x100ea980]
mov dword [eax + 0xc], ecx
mov eax, dword [0x100ea980]
mov dword [eax + 8], 0
mov ecx, dword [0x100ea980]
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x10], eax
mov ecx, dword [0x100ea980]
mov al, byte [ebp + 0x20]
mov byte [ecx + 0x30], al
mov ecx, dword [0x100ea980]
mov eax, dword [0x100eac50]
mov dword [ecx + 0x28], eax
lea ecx, [edi*2 + 0x40]
mov eax, dword [0x100ea980]
mov dword [eax + 0x2c], ecx
mov eax, dword [0x100ea980]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x24], edx
mov eax, dword [0x100ea980]
mov dword [eax + 0x14], ecx
mov eax, dword [0x100ea980]
mov dword [eax + 0x18], ebx
mov eax, dword [0x100ea980]
mov dword [eax + 0x1c], ecx
mov eax, dword [0x100ea980]
mov dword [eax + 0x20], ebx
mov dword [0x100eacdc], edx
mov dword [0x100eace0], ebx
mov eax, dword [esi + 4]
add eax, esi
mov dword [0x100eacc4], eax
mov eax, dword [esi + 8]
add eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x100eacc8], eax
call esi
mov dword [0x100eacd0], eax
test eax, eax
jne 0x10002e81
mov esi, str.init_shmem_thread:_Failed_to_create_copy_event:__d
jmp 0x10002ee0
push 0
push 0
push 1
push 0
call esi
mov dword [0x100eacd4], eax
test eax, eax
jne 0x10002e9b
mov esi, str.init_shmem_thread:_Failed_to_create_stop_event:__d
jmp 0x10002ee0
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, 0x100eac60
mov edi, 3
nop dword [eax + eax]
push esi
call ebx
add esi, 0x18
sub edi, 1
jne 0x10002eb0
push 0x100eaca8
call ebx
push edi
push edi
push edi
push 0x10003310
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100eaccc], eax
test eax, eax
jne 0x10002ef7
mov esi, str.init_shmem_thread:_Failed_to_create_thread:__d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.10003740
add esp, 8
xor al, al
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [0x100ea990]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x10002f22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.capture_init_shmem:_Failed_to_signal_ready:__d
call fcn.10003740
add esp, 8
xor al, al
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
mov byte [0x100eaaac], 1
mov al, 1
pop ebx
pop ebp
ret