joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48becd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d77d8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48bf0d
cmp byte [ebx], 0xa
jne 0x48bf0d
or byte [edi + eax + 0x28], 4
jmp 0x48bf12
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x48c011
mov dl, byte [eax]
cmp dl, 0x1a
je 0x48bff4
inc eax
cmp dl, 0xd
je 0x48bf3e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x48bf64
cmp eax, ecx
jae 0x48bf72
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x48bf26
jmp 0x48c011
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48bfef
cmp dword [ebp - 0x10], 0
je 0x48bfef
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d77d8]
test byte [eax + edi + 0x28], 0x48
je 0x48bfc9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48bfb4
mov byte [esi], dl
jmp 0x48bfc5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d77d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48c011
cmp byte [ebp - 1], 0xa
jne 0x48bfd8
cmp esi, ebx
jne 0x48bfd8
mov byte [esi], 0xa
jmp 0x48c010
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048ca91
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48c011
mov byte [esi], 0xd
jmp 0x48c010
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d77d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48c00e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48c011
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48c01a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d77d8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48c060
cmp word [ebx], dx
jne 0x48c060
or byte [eax + edi + 0x28], 4
jmp 0x48c065
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x48c1c8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x48c1a8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48c0a6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48c0dc
cmp eax, edx
jae 0x48c0ea
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x48c081
jmp 0x48c1c8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48c1a3
cmp dword [ebp - 0x18], 0
je 0x48c1a3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d77d8]
test byte [eax + edi + 0x28], 0x48
je 0x48c179
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x48c13d
mov word [esi], cx
jmp 0x48c174
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d77d8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d77d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d77d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x48c1c8
pop eax
cmp word [ebp - 4], ax
jne 0x48c189
cmp esi, ebx
jne 0x48c189
mov word [esi], ax
jmp 0x48c1c5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048ca91
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x48c1c8
push 0xd
pop eax
jmp 0x48c184
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d77d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48c1c2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x48c1c8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48e575
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0048e4f1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x48e6e4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x48e6e4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x48e699
jg 0x48e5d1
test eax, eax
je 0x48e68f
push 1
push 0x1000
call fcn.0048163e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x48e5f4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x48e686
push 0x8000
push ebx
call fcn.00480a3d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x48e61d
jg 0x48e618
cmp ecx, 0x1000
jb 0x48e61d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00484dcd
add esp, 0x10
cmp eax, 0xffffffff
je 0x48e662
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x48e618
jl 0x48e649
test ecx, ecx
jne 0x48e60a
push dword [ebp - 0xc]
push ebx
call fcn.00480a3d
push esi
call fcn.0048169b
add esp, 0xc
xor ebx, ebx
jmp 0x48e6f2
cmp byte [edi + 0x24], 0
je 0x48e679
cmp dword [edi + 0x20], 5
jne 0x48e679
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x48e684
mov ebx, dword [edi + 0x18]
jmp 0x48e686
xor ebx, ebx
push esi
call fcn.0048169b
pop ecx
jmp 0x48e6f2
test ecx, ecx
jg 0x48e65b
jl 0x48e699
test eax, eax
jae 0x48e65b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048ca91
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x48e6b9
cmp byte [edi + 0x1c], 0
je 0x48e65b
jmp 0x48e6ea
push ebx
call fcn.00488783
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x48e65b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x48e6f2
cmp byte [edi + 0x1c], 0
je 0x48e6ef
mov ebx, dword [edi + 0x18]
jmp 0x48e6f2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0048ca91
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4900e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49010d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49010d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x530700
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
jmp 0x53071a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x530721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x530710
mov eax, 1
add ebx, ebx
jne 0x530733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x530744
jne 0x530763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x530763
dec eax
add ebx, ebx
jne 0x530750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x530728
add ebx, ebx
jne 0x53075f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5307b5
xor ecx, ecx
sub eax, 3
jb 0x53077b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5307ea
sar eax, 1
mov ebp, eax
jmp 0x530786
add ebx, ebx
jne 0x530786
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x530754
inc ecx
add ebx, ebx
jne 0x530794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x530754
add ebx, ebx
jne 0x5307a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x530796
jne 0x5307b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x530796
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5307d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5307c6
jmp 0x530716
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5307d4
add edi, ecx
jmp 0x530716
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5307f2
cmp byte [edi], 0x11
jne 0x5307f2
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 0x5307f7
lea edi, [esi + 0x129000]
mov eax, dword [edi]
or eax, eax
je 0x53086f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17b9e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17bb5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x530824
mov ecx, edi
jns 0x530853
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17bb60]
or eax, eax
je 0x530869
mov dword [ebx], eax
add ebx, 4
jmp 0x530841
call dword [esi + 0x17bb70]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5308a0
cmp al, 0xef
ja 0x530893
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x530875
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x530882
mov ebp, dword [esi + 0x17bb64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5308d4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x6de87120
Capabilities:
Check if process is running under wine
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
sub esp, 0x4c
mov dword [ebp - 0x2c], edx
mov ebx, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], str.SoftwareWineDirectInputMappings_s_s_s
call ebx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [esp], ecx
call ebx
add eax, dword [ebp - 0x30]
mov dword [esp], esi
mov dword [ebp - 0x30], eax
call ebx
mov dword [esp], edi
mov dword [ebp - 0x34], eax
call ebx
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
lea edx, [edx + ecx + 1]
add edx, eax
lea eax, [edx + edx]
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x6de87206
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], edi
mov ebx, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], str.SoftwareWineDirectInputMappings_s_s_s
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._swprintf
mov eax, dword [ebp + 8]
test eax, eax
jne 0x6de871f0
lea eax, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov esi, 0
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
cmove esi, dword [ebp - 0x1c]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
sub esp, 8
jmp 0x6de871af
xor esi, esi
jmp 0x6de871de
Function at 0x6de8bea0
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyA]
mov dword [eax], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x6dea5870
mov dword [esp], 0x80000001
call esi
sub esp, 0xc
test eax, eax
je 0x6de8bee0
mov dword [ebx], 0
lea edi, [ebp - 0x12c]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
sub eax, 1
sub esp, 0xc
cmp eax, 0x102
jbe 0x6de8bf28
mov edx, dword [ebx]
mov eax, 1
test edx, edx
je 0x6de8bfef
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x130]
mov dword [esp + 4], str.SoftwareWineAppDefaults
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call esi
sub esp, 0xc
test eax, eax
jne 0x6de8bf0c
mov edx, dword [sym.imp.ucrtbase.dll_strrchr]
mov dword [esp], edi
mov dword [esp + 4], 0x2f
mov dword [ebp - 0x13c], edx
call edx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 4], 0x5c
lea ecx, [eax + 1]
test eax, eax
cmovne edi, ecx
mov dword [esp], edi
call edx
test eax, eax
lea edx, [eax + 1]
cmovne edi, edx
mov dword [esp], edi
call sym._strlen
add eax, edi
mov dword [eax], 0x7269445c
mov dword [eax + 4], 0x49746365
mov dword [eax + 8], 0x7475706e
mov byte [eax + 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x6de8bfce
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebx]
mov eax, 1
sub esp, 4
test edx, edx
jne 0x6de8bf1b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret

Function at 0x6de8c010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x6de8c058
lea edx, [ebp + 0x18]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x6de8c0a0
test ebx, ebx
je 0x6de8c08b
lea eax, [ebp + 0x18]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x6de8c0a0
lea esp, [ebp - 0xc]
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6de8eae0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x5c]
push ecx
mov edi, ebx
sub esp, 0xb8
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x74], 0x6f0063
mov edx, dword [ecx + 8]
mov ecx, 0x11
mov dword [ebp - 0x70], 0x74006e
mov dword [ebp - 0x8c], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp - 0x6c], 0x6f0072
mov dword [ebp - 0x68], 0x2e006c
mov dword [ebp - 0x64], 0x780065
mov dword [ebp - 0x60], 0x65
test byte [0x6dea203c], 8
jne 0x6de8ec10
test esi, esi
je 0x6de8eb6e
mov dword [ebp - 0x90], edx
mov dword [esp], esi
call dword [sym.imp.user32.dll_IsWindow]
mov edx, dword [ebp - 0x90]
sub esp, 4
test eax, eax
je 0x6de8ec77
test edx, edx
jne 0x6de8ec70
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6de8ec60
lea eax, [ebp - 0x84]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x74]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
jne 0x6de8ebfb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovg eax, edx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.iface__p__owner__p__flags__lx._n
mov dword [esp + 8], str.dinput7_RunControlPanel
mov dword [esp + 4], 0x6dea203c
mov dword [esp], 3
mov dword [ebp - 0x90], edx
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x90]
jmp 0x6de8eb4a
mov eax, 0x80070015
jmp 0x6de8ebfb
mov eax, 0x80070057
jmp 0x6de8ebfb
mov eax, 0x80070006
jmp 0x6de8ebfb
Function at 0x6de954c0
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov edi, dword [ecx]
mov ebx, dword [edi + 0x18]
mov eax, dword [ebx + 0x954]
movzx esi, word [ebx + 0xb72]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x93c]
mov dword [ebp - 0x30], eax
mov eax, ebx
test byte [0x6dea2114], 8
jne 0x6de955b8
add eax, 0x20
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x18]
mov eax, 0x80040205
sub esp, 4
cmp dword [ecx + 0x4c8], 1
je 0x6de95548
add ecx, 0x20
mov dword [ebp - 0x2c], eax
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
test byte [ecx + 0x4c0], 1
je 0x6de95521
mov edx, dword [edi + 0xc]
test edx, edx
je 0x6de95719
mov eax, 0x7b
mov dword [esp + 0x10], esi
mov word [ebp - 0x1e], ax
mov eax, dword [edi + 0x150]
mov dword [ebp - 0x1c], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
movzx eax, byte [ebx + 0xcd4]
mov dword [esp], 1
mov dword [esp + 4], eax
call sym._HidP_InitializeReportForID_20
sub esp, 0x14
cmp eax, 0x110000
je 0x6de955f0
and dword [edi + 0x14c], 0xfffffffe
mov ecx, dword [edi + 0x18]
jmp 0x6de95521
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.iface__p._n
mov dword [esp + 8], str.hid_joystick_effect_Stop
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov eax, dword [edi + 0x18]
jmp 0x6de95501
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x150]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0xc], 0x22
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
jne 0x6de955a2
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x150]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1e]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 0xcdc]
mov dword [esp + 4], 0xf
mov dword [esp + 8], eax
mov dword [esp], 1
call sym._HidP_SetUsages_32
sub esp, 0x20
cmp eax, 0x110000
jne 0x6de955a2
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x150]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0x7c
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
jne 0x6de955a2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov eax, dword [edi + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
cmp eax, 1
sbb eax, eax
and eax, 0x8007001e
jmp 0x6de955a2
mov eax, 0x80040203
jmp 0x6de95521
Function at 0x6de95810
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov ebx, dword [ecx]
mov esi, dword [ebx + 0x18]
movzx edi, word [esi + 0xb72]
test byte [0x6dea2114], 8
jne 0x6de958f0
lea eax, [esi + 0x20]
mov dword [ebp - 0x1c], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0xc]
mov eax, 1
sub esp, 4
test edx, edx
je 0x6de958c5
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x20]
sub esp, 4
test eax, eax
js 0x6de958c5
mov ecx, dword [esi + 0xdc4]
test ecx, ecx
je 0x6de95a00
movzx ecx, byte [esi + 0xdc8]
test cl, cl
jne 0x6de95920
mov dword [ebx + 0x144], 0xffffffff
lea edi, [esi + 0xcc0]
mov dword [ebx + 0xc], 0
mov ebx, dword [esi + 0xcc0]
lea ecx, [ebx - 0x10]
cmp edi, ebx
jne 0x6de958be
jmp 0x6de959f0
mov ebx, dword [ecx + 0x10]
lea ecx, [ebx - 0x10]
cmp edi, ebx
je 0x6de959f0
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x6de958b0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x20]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.iface__p_n
mov dword [esp + 8], str.hid_joystick_effect_Unload
mov dword [esp + 4], 0x6dea2114
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
jmp 0x6de9583d
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0xbb0]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x954]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp], 1
call sym._HidP_InitializeReportForID_20
sub esp, 0x14
cmp eax, 0x110000
jne 0x6de95887
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0xbb0]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x954]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xc], 0x22
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov dword [esp], 1
call sym._HidP_SetUsageValue_32
sub esp, 0x20
cmp eax, 0x110000
jne 0x6de95887
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov eax, dword [esi + 0xbb0]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x93c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
cmp eax, 1
sbb eax, eax
and eax, 0x8007001e
jmp 0x6de95887
or dword [esi + 0x930], 1
jmp 0x6de958c5
mov ecx, dword [ebx + 0xc]
mov byte [esi + ecx + 0xbbf], 0
jmp 0x6de95887