joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c140
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
cmp edi, 0x182
jne 0x41c163
push 0
push 0
push 0
push str.xojuhaxofasihaxitahidavufo
push str.tajuduyo
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
xor edx, edx
test edi, edi
jle 0x41c1a2
lea esp, [esp]
lea ecx, [esp + 4]
mov dword [esp], 5
mov dword [esp + 4], 0
call fcn.0041c130
mov eax, dword [esp + 4]
add eax, 0x46
mov dword [esp], eax
nop
sub dword [esp], 0x46
mov al, byte [esp]
xor byte [edx + esi], al
inc edx
cmp edx, edi
jl 0x41c170
cmp edi, 0x2d
jne 0x41c1bb
mov dword [0x7f8f60], 0xa62e7790
mov dword [0x7f8f64], 0xffffffff
add esp, 8
ret

Function at 0x41c1c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x423008]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x423c60]
push esi
mov esi, dword [0x7f8c74]
push edi
mov edi, dword [0x7f8e2c]
push eax
call fcn.0041c0d0
add esp, 4
cmp dword [0x7f8e2c], 0x2f
jne 0x41c1ff
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call fcn.0041c140
cmp dword [0x7f8e2c], 0x568
pop edi
pop esi
jne 0x41c233
push 0
push 0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
lea edx, [esp + 0x404]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401006
add esp, 0x804
ret
Function at 0x401340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
and eax, 1
jne 0x40136b
mov byte [0x42600c], 1
test eax, eax
je 0x4013c6
mov byte [0x42600c], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401400
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
xor eax, eax
sub esp, 8
leave
ret 0x10
cmp byte [0x42600c], 0
jne 0x401376
xor eax, eax
jmp 0x4013ad
Function at 0x409d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x409db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x409dd6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x409e7b
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x409e50
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x409dc9
cmp eax, 0x40
je 0x409dc9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x409e00
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x409e00
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00409d60
lea esi, [esi]
lea edi, [edi]
Function at 0x40a0f0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0040a0d0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40a126
jmp 0x40a176
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x40a123
cmp dl, 0x20
je 0x40a123
cmp dl, 0x22
je 0x40a1c0
cmp dl, 9
mov eax, edx
je 0x40a164
cmp dl, 0x20
je 0x40a168
test dl, dl
jne 0x40a15a
lea esi, [esi]
jmp 0x40a176
cmp al, 0x20
je 0x40a168
test al, al
je 0x40a176
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40a152
cmp al, 0x20
jne 0x40a1da
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40a168
cmp al, 0x20
je 0x40a168
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40a185
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401340
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x40a1ce
cmp al, 0x22
jne 0x40a1c0
cmp al, 0x22
jne 0x40a164
add ebx, 1
movzx eax, byte [ebx]
jmp 0x40a164
cmp al, 9
je 0x40a168
nop
jmp 0x40a176

Function at 0x40a530
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40a564
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x426060], eax
call fcn.0040b300
test eax, eax
sete al
movzx eax, al
mov dword [0x41f84c], eax
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
sete al
movzx eax, al
mov dword [0x41f84c], eax
leave
ret
Function at 0x40a680
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x1c], edx
jmp 0x40a6ac
mov dword [0x42605c], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x40a771
mov eax, dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov eax, 0xa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 0xc], ecx
call dword [ebp - 0x20]
test eax, eax
jne 0x40a790
cmp edi, 5
je 0x40a795
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x40a736
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
cmp eax, 7
mov edi, eax
je 0x40a795
cmp eax, 8
jne 0x40a790
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x41f84c]
test eax, eax
js 0x40a784
test eax, eax
je 0x40a6a0
mov eax, dword [0x426060]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40a6a6
call sub.KERNEL32.dll_GetLastError
jmp 0x40a6a6
mov dword [ebp - 0x2c], 0
mov edi, 5
mov al, 0x1a
jmp 0x40a6c1
call fcn.0040a580
mov eax, dword [0x41f84c]
jmp 0x40a743
mov edi, 2
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40a9a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41f84c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x40aa8d
test eax, eax
jne 0x40aa21
mov eax, dword [0x42605c]
test eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
je 0x40aa14
lea esi, [ebp - 0x20]
jmp 0x40a9d4
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40aa0b
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x40aa50
cmp eax, 8
jne 0x40aa80
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
jne 0x40a9d1
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x426060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x40a9c2
mov eax, dword [ebp - 0x20]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.0040a5f0
cmp eax, 7
jne 0x40aa19
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040a7a0
nop
lea esi, [esi]
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0040a580
mov eax, dword [0x41f84c]
jmp 0x40a9b9

Function at 0x40aaa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40aad0
mov dword [esp], ebx
call fcn.0040a9a0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41f84c]
test eax, eax
js 0x40ab30
test eax, eax
jne 0x40ab00
mov eax, dword [0x42605c]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov edx, esi
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.0040a680
cmp eax, 7
je 0x40ab40
call sub.msvcrt.dll_abort
nop
mov edi, dword [0x426060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x40aae2
call fcn.0040a580
mov eax, dword [0x41f84c]
jmp 0x40aad9
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040a7a0
lea esi, [esi]
Function at 0x40ab50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x41f84c]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test eax, eax
js 0x40abe0
test eax, eax
jne 0x40abb2
mov eax, dword [0x42605c]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
test edx, edx
jne 0x40ab97
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.0040a5f0
cmp eax, 7
je 0x40aba8
call sub.msvcrt.dll_abort
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.0040a680
cmp eax, 7
jne 0x40ab92
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040a7a0
mov edi, dword [0x426060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x40ab74
call fcn.0040a580
mov eax, dword [0x41f84c]
jmp 0x40ab6b

Function at 0x40b020
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov esi, dword [ebp + 8]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40b054
mov dword [esi], eax
mov esi, dword [esp + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esp]
mov dword [ebp + 8], eax
mov esp, ebp
pop ebp
jmp fcn.0040b300
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
jmp sub.KERNEL32.dll_GetLastError
Function at 0x10003290
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp byte [0x10034401], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
je 0x10003334
call fcn.10007950
mov dword [esp + 0x14], eax
mov ecx, edx
sub eax, dword [0x10034c18]
mov bl, 1
mov dword [esp + 0x18], ecx
sbb ecx, dword [0x10034c1c]
cmp ecx, 1
jb 0x10003314
ja 0x100032e4
cmp eax, 0x2a05f200
jbe 0x10003314
push 0x10034420
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
setne bl
test eax, eax
je 0x10003302
push eax
call edi
mov eax, dword [esp + 0x14]
mov dword [0x10034c18], eax
mov eax, dword [esp + 0x18]
mov dword [0x10034c1c], eax
push 0
push dword [0x100344a4]
call esi
test eax, eax
je 0x10003326
test bl, bl
jne 0x1000332b
call fcn.10003100
cmp byte [0x10034401], 0
jne 0x10003388
push 0
push dword [0x100344ac]
call esi
test eax, eax
jne 0x1000337f
push 0x10034420
push eax
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
setne bl
test eax, eax
je 0x1000335f
push eax
call edi
test bl, bl
je 0x1000337f
mov eax, dword [0x100344a0]
test eax, eax
je 0x10003371
cmp eax, 0xffffffff
jne 0x10003376
call fcn.10007190
mov ecx, dword [esp + 0x10]
call fcn.10003160
cmp byte [0x10034401], 0
je 0x10003401
mov eax, dword [0x100344a8]
mov esi, dword [eax + 0x38]
mov edi, dword [eax + 0x3c]
mov eax, esi
or eax, edi
je 0x100033f4
call fcn.10007950
mov ecx, eax
mov ebx, edx
sub eax, dword [0x10034c20]
mov dword [esp + 0x14], eax
sbb ebx, dword [0x10034c24]
mov dword [esp + 0x18], ebx
cmp ebx, edi
jb 0x10003401
ja 0x100033c0
cmp eax, esi
jb 0x10003401
mov ebx, esi
mov eax, edi
shld eax, ebx, 1
add ebx, ebx
cmp dword [esp + 0x18], eax
jb 0x100033d8
ja 0x100033e8
cmp dword [esp + 0x14], ebx
ja 0x100033e8
mov ecx, dword [0x10034c20]
mov edx, dword [0x10034c24]
add ecx, esi
adc edx, edi
mov dword [0x10034c20], ecx
mov dword [0x10034c24], edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
call fcn.100031e0
mov ecx, str.d3d8
call fcn.10007110
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005570
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push str.wglDXSetResourceShareHandleNV
call dword [0x10034b24]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10005593
push str.wglDXSetResourceShareHandleNV
push dword [0x10034aa4]
call esi
push str.wglDXOpenDeviceNV
mov dword [0x10034a64], eax
call dword [0x10034b24]
test eax, eax
jne 0x100055b4
push str.wglDXOpenDeviceNV
push dword [0x10034aa4]
call esi
push str.wglDXCloseDeviceNV
mov dword [0x10034a98], eax
call dword [0x10034b24]
test eax, eax
jne 0x100055d5
push str.wglDXCloseDeviceNV
push dword [0x10034aa4]
call esi
push str.wglDXRegisterObjectNV
mov dword [0x100349ec], eax
call dword [0x10034b24]
test eax, eax
jne 0x100055f6
push str.wglDXRegisterObjectNV
push dword [0x10034aa4]
call esi
push str.wglDXUnregisterObjectNV
mov dword [0x10034b20], eax
call dword [0x10034b24]
test eax, eax
jne 0x10005617
push str.wglDXUnregisterObjectNV
push dword [0x10034aa4]
call esi
push str.wglDXObjectAccessNV
mov dword [0x10034b14], eax
call dword [0x10034b24]
test eax, eax
jne 0x10005638
push str.wglDXObjectAccessNV
push dword [0x10034aa4]
call esi
push str.wglDXLockObjectsNV
mov dword [0x10034aa8], eax
call dword [0x10034b24]
test eax, eax
jne 0x10005659
push str.wglDXLockObjectsNV
push dword [0x10034aa4]
call esi
push str.wglDXUnlockObjectsNV
mov dword [0x10034b10], eax
call dword [0x10034b24]
test eax, eax
jne 0x1000567a
push str.wglDXUnlockObjectsNV
push dword [0x10034aa4]
call esi
cmp dword [0x10034a64], 0
mov dword [0x10034a6c], eax
pop esi
je 0x100056d8
cmp dword [0x10034a98], 0
je 0x100056d8
cmp dword [0x100349ec], 0
je 0x100056d8
cmp dword [0x10034b20], 0
je 0x100056d8
cmp dword [0x10034b14], 0
je 0x100056d8
cmp dword [0x10034aa8], 0
je 0x100056d8
cmp dword [0x10034b10], 0
je 0x100056d8
test eax, eax
je 0x100056d8
push str.Shared_texture_OpenGL_capture_available
mov byte [0x100348db], 1
call fcn.10007830
add esp, 4
ret
mov byte [0x100348db], 0
ret
Function at 0x10007190
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.CaptureHook_Pipe
push str._s_lu
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.100070d0
add esp, 0x14
lea edx, [ebp - 0x44]
call fcn.1000ca80
mov bl, al
test bl, bl
jne 0x100071d9
push str._OBS__Failed_to_open_pipe_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1000f530
mov esp, ebp
pop ebp
ret
Function at 0x100074d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [0x10034b3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x10034b6a], 0
jne 0x1000750b
call fcn.1000ca50
mov byte [0x10034b6a], al
test al, al
jne 0x10007560
cmp byte [0x10034b4d], 0
jne 0x1000751e
call fcn.10002c60
mov byte [0x10034b4d], al
cmp byte [0x10034b4c], 0
jne 0x10007609
mov eax, dword [0x100344a8]
cmp dword [eax + 0x48], 0
je 0x100075fb
cmp dword [eax + 0x4c], 0
je 0x100075fb
cmp dword [eax + 0x50], 0
je 0x100075fb
call fcn.10004a80
mov byte [0x10034b4c], al
test al, al
je 0x10007609
xor edi, edi
cmp byte [0x10034b68], 0
jne 0x10007735
nop
mov eax, 0x51eb851f
mov ecx, edi
mul edi
shr edx, 5
imul eax, edx, 0x64
sub ecx, eax
jne 0x10007723
cmp byte [0x10034b6a], cl
jne 0x100075a1
call fcn.1000ca50
mov byte [0x10034b6a], al
test al, al
jne 0x10007723
cmp byte [0x10034b4d], 0
jne 0x100075b4
call fcn.10002c60
mov byte [0x10034b4d], al
cmp byte [0x10034b4c], 0
jne 0x100076ad
mov eax, dword [0x100344a8]
cmp dword [eax + 0x48], 0
je 0x1000769f
cmp dword [eax + 0x4c], 0
je 0x1000769f
cmp dword [eax + 0x50], 0
je 0x1000769f
call fcn.10004a80
mov byte [0x10034b4c], al
test al, al
jne 0x10007723
jmp 0x100076ad
push str._OBS__no_D3D9_hook_address_found__n
call esi
mov byte [0x10034b4c], 1
cmp byte [0x10034a8b], 0
jne 0x10007645
mov eax, dword [0x100344a8]
cmp dword [eax + 0x5c], 0
je 0x10007637
cmp dword [eax + 0x60], 0
je 0x10007637
call fcn.10005250
mov byte [0x10034a8b], al
test al, al
jne 0x10007560
jmp 0x10007645
push str._OBS__no_DXGI_hook_address_found__n
call esi
mov byte [0x10034a8b], 1
cmp byte [0x10034b4e], 0
jne 0x10007660
call fcn.10006dd0
mov byte [0x10034b4e], al
test al, al
jne 0x10007560
cmp byte [0x10034b69], 0
jne 0x10007696
mov eax, dword [0x100344a8]
cmp dword [eax + 0x44], 0
jne 0x10007684
push 0x28
mov byte [0x10034b69], 1
call ebx
jmp 0x100074f4
call fcn.100035e0
mov byte [0x10034b69], al
test al, al
jne 0x10007560
push 0x28
call ebx
jmp 0x100074f4
push str._OBS__no_D3D9_hook_address_found__n
call esi
mov byte [0x10034b4c], 1
cmp byte [0x10034a8b], 0
jne 0x100076e5
mov eax, dword [0x100344a8]
cmp dword [eax + 0x5c], 0
je 0x100076d7
cmp dword [eax + 0x60], 0
je 0x100076d7
call fcn.10005250
mov byte [0x10034a8b], al
test al, al
jne 0x10007723
jmp 0x100076e5
push str._OBS__no_DXGI_hook_address_found__n
call esi
mov byte [0x10034a8b], 1
cmp byte [0x10034b4e], 0
jne 0x100076fc
call fcn.10006dd0
mov byte [0x10034b4e], al
test al, al
jne 0x10007723
cmp byte [0x10034b69], 0
jne 0x10007723
mov eax, dword [0x100344a8]
cmp dword [eax + 0x44], 0
jne 0x10007719
mov byte [0x10034b69], 1
jmp 0x10007723
call fcn.100035e0
mov byte [0x10034b69], al
push 0x28
call ebx
inc edi
cmp byte [0x10034b68], 0
je 0x10007570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007830
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.10010b30
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.10007040
push dword [eax + 4]
push dword [eax]
call fcn.100180cf
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x100078c4
inc eax
lea edx, [ebp - 0x404]
push eax
call fcn.1000cb50
add esp, 4
test al, al
jne 0x100078a5
call fcn.1000cb30
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._OBS_
call esi
lea eax, [ebp - 0x404]
push eax
call esi
push 0x1002d39c
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f530
mov esp, ebp
pop ebp
ret
Function at 0x10007e70
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebx + 0xc]
mov eax, edx
mov esi, edi
mov dword [ebp - 4], ecx
imul esi, dword [ebx + 0x10]
mov dword [ebp - 8], eax
add esi, 0x1f
and esi, 0xffffffe0
lea ecx, [esi*2 + 0x40]
call fcn.10007a10
test al, al
jne 0x10007eca
push str.capture_init_shmem:_Failed_to_initialize_memory
call fcn.10007830
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [0x10034b44]
mov eax, dword [ebp - 4]
push 0
push 0
push 0
mov dword [eax], edx
lea eax, [edx + 0x20]
and eax, 0xffffffe0
mov dword [edx], 0xffffffff
sub eax, edx
cmp eax, 0xc
push 0
lea ecx, [eax + 0x20]
cmovae ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
add eax, esi
mov dword [ecx + 8], eax
mov ecx, dword [0x100344a8]
mov eax, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x10], eax
mov al, byte [ebx + 0x18]
mov byte [ecx + 0x30], al
mov eax, dword [0x10034b48]
mov dword [ecx + 0x28], eax
lea eax, [esi*2 + 0x40]
mov esi, dword [ebx + 0x10]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x24], esi
mov dword [ecx], 1
mov dword [ecx + 4], 8
mov dword [ecx + 8], 0
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x20], edi
mov dword [0x10034bec], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x10034bf0], edi
mov eax, dword [edx + 4]
add eax, edx
mov dword [0x10034bd4], eax
mov eax, dword [edx + 8]
add eax, edx
mov dword [0x10034bd8], eax
call esi
mov dword [0x10034be0], eax
test eax, eax
jne 0x10007f94
mov esi, str.init_shmem_thread:_Failed_to_create_copy_event:__d
jmp 0x10007ff0
push 0
push 0
push 1
push 0
call esi
mov dword [0x10034be4], eax
test eax, eax
jne 0x10007fae
mov esi, str.init_shmem_thread:_Failed_to_create_stop_event:__d
jmp 0x10007ff0
mov esi, 0x10034b70
mov edi, 3
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esi, 0x18
sub edi, 1
jne 0x10007fb8
push 0x10034bb8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push edi
push edi
push 0x10007bb0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10034bdc], eax
test eax, eax
jne 0x1000800b
mov esi, str.init_shmem_thread:_Failed_to_create_thread:__d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.10007830
add esp, 8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [0x100346bc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1000803a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.capture_init_shmem:_Failed_to_signal_ready:__d
call fcn.10007830
add esp, 8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
mov byte [0x10034401], 1
mov al, 1
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret