joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10070a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10070a98
cmp byte [esi + ebx - 1], 0xa
je 0x10070a6c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10091184], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100710c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10071298
mov edi, dword [0x10091184]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x100711a7
test byte [0x1007217c], 8
jne 0x10071240
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1007218c], 8
jne 0x10071200
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10071149
cmp esi, 3
jbe 0x100711b8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1007115a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1007e208]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0_1
jmp 0x10071149
mov dword [esp], 0x1007218c
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10071120
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10071120
mov dword [esp], 0x1007217c
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1007110b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10071113
mov eax, 0xffffffff
jmp 0x100711a7
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x100593d7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push dword [esp + 4]
lea esp, [esp + 0x44]
je 0x1005eb2f
shl si, 0xf
mov esi, dword [eax + 0x3c]
rcl edx, 0x14
add esi, eax
pushfd
cmp ah, ch
movzx dx, bl
mov edx, dword [esi + 0x78]
pushal
lea eax, [esp + 0x2349f599]
aad 0x3c
push ebp
lea eax, [ebx - 0x13f5e1cc]
aad 0x89
add eax, 0xab85a7b6
inc bp
mov ebp, esp
aam 0xa
sub esp, 0x10
aaa
test dl, 0x7b
aam 0x37
bsr eax, ebx
push esi
shl eax, cl
bt edi, 0xb
push edi
bsr ax, ax
lea eax, [ebx + 0x44663835]
add al, al
push ebx
pushal
bsf eax, eax
mov dword [esp + 0x1c], edx
cwde
shrd ax, dx, 6
aam 0x61
mov eax, dword [ebp + 8]
clc
bt bx, 5
mov word [esp + 4], 0x4a31
stc
test eax, eax
pushfd
pushal
jmp 0x10040379
Function at 0x1002e400
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e5c4
pushal
mov esi, 0x1001500d
lea edi, [esi - 0x1400d]
push edi
or ebp, 0xffffffff
jmp 0x1002e42a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002e431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002e420
mov eax, 1
add ebx, ebx
jne 0x1002e443
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002e438
jne 0x1002e454
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e438
xor ecx, ecx
sub eax, 3
jb 0x1002e468
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002e4da
mov ebp, eax
add ebx, ebx
jne 0x1002e473
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002e480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002e4a4
inc ecx
add ebx, ebx
jne 0x1002e490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002e485
jne 0x1002e4a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e485
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002e4c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002e4b5
jmp 0x1002e426
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002e4c4
add edi, ecx
jmp 0x1002e426
pop esi
mov edi, esi
mov ecx, 0x492
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002e4e2
cmp byte [edi], 7
jne 0x1002e4e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1002e4e7
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x1002e556
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e0e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e10c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002e514
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e110]
or eax, eax
je 0x1002e550
mov dword [ebx], eax
add ebx, 4
jmp 0x1002e531
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e587
cmp al, 0xef
ja 0x1002e57a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002e55c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e569
mov ebp, dword [esi + 0x2e114]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1002e5bb
sub esp, 0xffffff80
jmp 0x10002eaa
Function at 0x403420
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x429470
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x431570]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431570]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x5c], 1
call fcn.00403230
add esp, 4
mov byte [esp + 0x58], 2
xor ecx, ecx
xor ebp, ebp
push 0xffffffffffffffff
mov word [esp + 0x1c], cx
push ebp
lea eax, [esp + 0x84]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebp
call fcn.00409fc0
mov byte [esp + 0x58], 3
lea edi, [ebp + 3]
mov ebx, dword [esp + 0x28]
dec ebx
or eax, 0xffffffff
lea esi, [esp + 0x14]
call fcn.00407be0
sub edi, 1
jne 0x40349c
mov eax, dword [0x432560]
cmp eax, 0x14d
jne 0x4034d5
push 0x12
mov eax, str.plugin_name.32.dll
lea ecx, [esp + 0x34]
call fcn.0040bf60
mov eax, str.32.dll
jmp 0x4034f1
cmp eax, 0x1bc
jne 0x4034fc
push 0x12
mov eax, str.plugin_name.64.dll
lea ecx, [esp + 0x34]
call fcn.0040bf60
mov eax, str.64.dll
push 6
lea ecx, [esp + 0x18]
call fcn.0040bf60
mov ecx, dword [esp + 0x18]
mov esi, 8
cmp dword [esp + 0x2c], esi
jae 0x40350f
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x40351d
lea eax, [esp + 0x34]
push ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x2c], esi
jb 0x403539
mov edx, dword [esp + 0x18]
push edx
call fcn.00410308
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], ax
cmp dword [esp + 0x48], esi
jb 0x403560
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00410308
add esp, 4
xor edx, edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], dx
cmp dword [esp + 0x78], esi
jb 0x403582
mov eax, dword [esp + 0x64]
push eax
call fcn.00410308
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], cx
cmp dword [esp + 0x94], esi
jb 0x4035aa
mov edx, dword [esp + 0x80]
push edx
call fcn.00410308
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004102f9
add esp, 0x48
ret
Function at 0x40bbb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x428c2b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x431570]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041016e
push 4
mov dword [esp + 0x24], 0
call fcn.0041075c
mov edi, eax
add esp, 4
test edi, edi
je 0x40bc32
call fcn.0040f790
mov dword [edi], eax
call fcn.0040f5be
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0040f4e2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40bc27
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0040f50a
jmp 0x40bc34
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x40bd10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x428bfb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x431570]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041016e
push 4
mov dword [esp + 0x20], 0
call fcn.0041075c
mov edi, eax
add esp, 4
test edi, edi
je 0x40bd8e
call fcn.0040f790
mov dword [edi], eax
call fcn.0040f5be
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0040f4e2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40bd83
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0040f50a
jmp 0x40bd90
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40dcd0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4293e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x431570]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00409fc0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40dd26
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.0040bf60
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00409fc0
cmp dword [esp + 0x24], 8
jb 0x40dd6f
mov edx, dword [esp + 0x10]
push edx
call fcn.00410308
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x4102f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431570]
jne 0x410303
repz ret
jmp fcn.004166ec

Function at 0x41c969
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41c99a
call fcn.004155eb
mov dword [eax], esi
call fcn.004155d8
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00410d2b
add esp, 0x14
push 0x16
pop eax
jmp 0x41c9ef
test dword [ebp + 0xc], 0xfffffff9
jne 0x41c976
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c9c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004155fe
pop ecx
call fcn.004155d8
mov eax, dword [eax]
jmp 0x41c9ef
test al, 0x10
jne 0x41c9ed
test al, 1
je 0x41c9ed
test byte [ebp + 0xc], 2
je 0x41c9ed
call fcn.004155eb
mov dword [eax], 5
call fcn.004155d8
mov dword [eax], 0xd
jmp 0x41c9be
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401dd0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
push edi
lea edi, [esi + 0x5c]
test eax, eax
jne 0x401df7
mov eax, 1
lock xadd dword [edi], eax
test eax, eax
jne 0x401df7
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 4], eax
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x58], 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x4cb0b8]
pop edi
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x24], eax
mov byte [ecx + 0x37], 1
mov byte [esi + 0x68], 1
pop esi
ret

Function at 0x401e50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x18]
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
je 0x401e69
mov byte [esi + 0x68], 1
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410e00
cmp dword [esi + 0x2c], 0
mov edx, eax
mov dword [esp + 0x14], edx
je 0x401e97
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0xc], ecx
jmp 0x401ea5
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
mov edi, dword [0x4cb0b8]
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
mov edi, dword [edi + 0x24]
mov ebx, edi
je 0x401eef
mov ecx, dword [0x4c9094]
push dword [esp + 0xc]
push dword [esp + 0x14]
mov eax, dword [ecx + 0x24]
sub eax, dword [ecx + 0x1c]
cdq
push edx
push eax
call fcn.00467b80
push dword [esi + 0x1c]
push dword [esi + 0x18]
push edx
push eax
call fcn.00467c70
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [0x4cb0b8]
add ebx, dword [eax + 0x1c]
cmp byte [esi + 0x68], 0
jne 0x401f07
lea ecx, [edi + 3]
cmp ebx, ecx
jge 0x401f07
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [0x4c909c]
add edi, 0x58
mov byte [esi + 0x68], 0
mov eax, dword [edi]
test eax, eax
jne 0x401f33
mov eax, 1
lock xadd dword [edi], eax
test eax, eax
jne 0x401f33
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 4], eax
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 0x30
cmp dword [esi + 0x14], 8
jb 0x401f49
mov esi, dword [esi]
push esi
push 0x48b4e8
push 0x4c8e90
call fcn.00401220
mov eax, dword [0x4cb0b8]
add esp, 0xc
mov dword [eax + 0x24], ebx
mov byte [eax + 0x37], 1
mov eax, dword [0x4c90a8]
mov dword [eax + 0x78], 0x4c8e90
mov byte [eax + 0x37], 1
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4c909c]
push 0
push 0
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401fa0
Capabilities:
Check for time delay via queryperformancecounter
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4c700c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, dword [0x4c909c]
add esi, 0x58
mov eax, dword [esi]
test eax, eax
jne 0x401fdd
mov eax, 1
lock xadd dword [esi], eax
test eax, eax
jne 0x401fdd
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4cb0c0]
or eax, dword [0x4cb0c4]
jne 0x402000
push 0x4cb0c0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
lea eax, [esp + 8]
push eax
movq qword [esp + 0xc], xmm0
movq qword [esp + 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [0x4cb0c0]
sub dword [esp + 8], eax
mov eax, dword [0x4cb0c4]
sbb dword [esp + 0xc], eax
mov eax, dword [0x4cb0b8]
mov byte [eax + 0x37], 1
mov eax, dword [0x4c90a8]
mov byte [eax + 0x37], 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4c909c]
push 0
push 0
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.004490d7
mov esp, ebp
pop ebp
ret
Function at 0x406370
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46889d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4c700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00405c00
test al, al
je 0x4064a5
mov eax, dword [0x4c909c]
add eax, 0x58
mov byte [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov esi, dword [ebp - 0x14]
test eax, eax
jne 0x4063d4
mov eax, 1
lock xadd dword [esi], eax
test eax, eax
jne 0x4063d4
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
mov dword [ebp - 4], 0
call fcn.004053a0
push 0
push 0x48b408
call fcn.0041fe30
push 0
push str.install.text
call fcn.0041fe30
push 0
push str.install.text.shield
call fcn.0041fe30
push 0
push str.advanced
call fcn.0041fe30
push 0
push str.advanced.text
call fcn.0041fe30
push 0
push str.advanced.image
call fcn.0041fe30
push 1
push str.progress.text
call fcn.0041fe30
push 1
push str.progress.total
call fcn.0041fe30
push 1
push str.progress.current
call fcn.0041fe30
mov dword [ebp - 4], 0xffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xc
call fcn.004492e2
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [eax + 4], str.InstallThread
push 0
push 0
push eax
push 0x410b30
push 0
push 0
mov dword [eax], vtable.Util::SimpleThreadAdapter.0
mov dword [eax + 8], 0x402de0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a8c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4c700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a9e6
push esi
push edi
push 0x22c
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.0044ac20
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x234], 0x22c
lea eax, [ebp - 0x234]
mov dword [ebp - 0x22c], 0xffffffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a9b2
nop dword [eax + eax]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0x22c
push eax
push edi
mov dword [ebp - 0x22c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, dword [ebp - 0x22c]
mov esi, eax
test esi, esi
mov eax, 0xffffffff
cmove ecx, eax
mov dword [ebp - 0x22c], ecx
cmp ecx, ebx
jne 0x40a9ae
lea eax, [ebp - 0x210]
push 0x47336c
push eax
call fcn.0044ca6c
add esp, 8
test eax, eax
je 0x40a9cc
lea eax, [ebp - 0x210]
push str.TwitchStudioUI.exe
push eax
call fcn.0044ca6c
add esp, 8
test eax, eax
je 0x40a9cc
test esi, esi
jne 0x40a940
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004490d7
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004490d7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.004490d7
mov esp, ebp
pop ebp
ret