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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x483643
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x48362a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x489ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dfa9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0048a910
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x52e67c
call fcn.004d05b4
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x48a083
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004d05b4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48a07c
push 0
mov ecx, eax
call fcn.004810f0
mov dword [esi + 0xc], eax
jmp 0x48a085
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x48a085
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x49b400
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x49b410
mov esi, 1
push esi
call fcn.004bd7f7
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49b462
call fcn.004be2fd
mov edi, eax
call fcn.0049df60
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x49b446
mov edx, dword [0x64d530]
mov dword [0x64d52c], edx
test al, 0x18
je 0x49b457
push esi
push 0x24
push 5
call fcn.0049e7b0
add esp, 0xc
test edi, edi
je 0x49b47d
push 1
call fcn.004bf52b
test byte [esp + 0x14], 0x20
je 0x49b47d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x49c580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x49c674
cmp byte [edx], 0
je 0x49c667
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.0049c500
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0049c500
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0049c470
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x49c631
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.0049c4b0
fmul qword [0x52ef18]
push ecx
fstp qword [esp]
call fcn.004bc198
fadd qword [0x52ef10]
add esp, 8
call fcn.004bc268
mov byte [ebx], al
inc ebx
dec edi
jne 0x49c604
lea ecx, [esp + 0x20]
push ecx
call fcn.0049c4b0
fmul qword [0x52ef18]
push ecx
fstp qword [esp]
call fcn.004bc198
add esp, 8
call fcn.004bc268
cmp esi, ebx
je 0x49c65d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x49c656
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ca40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x49ca70
mov byte [edi + esi], 2
jmp 0x49caa7
test al, 4
je 0x49ca7a
mov byte [edi + esi], 0xd
jmp 0x49caa7
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x49ca93
mov byte [edi + esi], 2
jmp 0x49caa7
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x49caa3
mov byte [edi + esi], 0x19
jmp 0x49caa7
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x49ca57
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x49cb1b
cmp dl, 0xd
je 0x49cb1b
xor edx, edx
jmp 0x49cb20
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x49cb0b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x49cb40
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.0049b400
mov esi, eax
add esp, 8
test esi, esi
jne 0x49cb61
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.0049e1a0
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x49cb86
push esi
call fcn.0049b490
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004c820c
push ebx
push edi
mov ebp, eax
call fcn.0049e210
push 0x49cbc0
push ebp
push esi
call fcn.0049f540
push esi
call fcn.0049b490
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x49ded0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x750520
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x750440]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x49df4b
push 0x4c
push 1
call fcn.004be725
mov esi, eax
add esp, 8
test esi, esi
jne 0x49df13
push 0x750520
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x750440]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x741d98]
inc eax
lea edx, [esi + 0xc]
mov dword [0x741d98], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004a1a20
add esp, 8
mov byte [esi + 0x3c], 1
push 0x750520
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x49e3d0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004be2fd
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004c820c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x49e4ca
call fcn.004be2fd
cmp dword [eax], 0
je 0x49e417
call fcn.004be2fd
mov ebp, dword [eax]
jmp 0x49e41a
or ebp, 0xffffffff
call fcn.0049df60
test esi, esi
mov dword [eax], ebp
jne 0x49e42f
call fcn.004be2fd
cmp dword [eax], 4
je 0x49e47f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x49e462
cmp esi, 0xffffffff
je 0x49e4a4
test al, 6
je 0x49e462
call fcn.0049df60
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004a1a50
add esp, 4
push eax
push 0x24
push 9
call fcn.0049e7b0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x49e4c2
test al, 6
je 0x49e470
test ah, 2
je 0x49e4c2
test esi, esi
jbe 0x49e4ce
test ah, 2
je 0x49e4ce
add dword [esp + 0x18], esi
sub edi, esi
call fcn.004be2fd
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004c820c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x49e4ca
jmp 0x49e404
call fcn.0049df60
mov eax, dword [eax]
push eax
push ebx
call fcn.004a1a50
add esp, 4
push eax
push 0x24
push 2
call fcn.0049e7b0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x49e4db
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x49e4e4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c0914
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004be28a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c0937
test byte [esp + 8], 2
je 0x4c0937
call fcn.004be2fd
mov dword [eax], 0xd
call fcn.004be306
mov dword [eax], 5
jmp 0x4c0910
xor eax, eax
ret
Function at 0x4d2c17
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d2c4f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d0cce
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d0ca6
jmp 0x4d2c5b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d4308
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d434a
call fcn.004d9e09
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d434a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d4341
xor eax, eax
jmp 0x4d4352
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d4358
pop edi
pop esi
pop ebx
ret 4

Function at 0x4da339
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4da367
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4da385
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004da29f
jmp 0x4da385
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4da385
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004da29f
test edi, edi
mov eax, edi
jne 0x4da36f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40539a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x40539a
lcall 0x5de5, 0x8b10c483
jmp loc.00799cc8
Function at 0x1493b00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdc6000]
push edi
or ebp, 0xffffffff
jmp 0x1493b22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1493b29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1493b18
mov eax, 1
add ebx, ebx
jne 0x1493b3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1493b30
jne 0x1493b4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1493b30
xor ecx, ecx
sub eax, 3
jb 0x1493b60
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1493bd2
mov ebp, eax
add ebx, ebx
jne 0x1493b6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1493b78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1493b9c
inc ecx
add ebx, ebx
jne 0x1493b88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1493b7d
jne 0x1493b99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1493b7d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1493bbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1493bad
jmp 0x1493b1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1493bbc
add edi, ecx
jmp 0x1493b1e
pop esi
mov edi, esi
mov ecx, 0x1d1af
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1493bda
cmp byte [edi], 0xa9
jne 0x1493bda
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 0x1493bdf
lea edi, [esi + 0x106c000]
mov eax, dword [edi]
or eax, eax
je 0x1493c57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1098074]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1098260]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1493c0c
mov ecx, edi
jns 0x1493c3b
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 + 0x1098268]
or eax, eax
je 0x1493c51
mov dword [ebx], eax
add ebx, 4
jmp 0x1493c29
call dword [esi + 0x1098264]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1493c88
cmp al, 0xef
ja 0x1493c7b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1493c5d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1493c6a
mov ebp, dword [esi + 0x109826c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x28f]
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 0x1493cbc
sub esp, 0xffffff80
jmp 0x7fd78e
Function at 0x6a944340
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x34
mov dword [edx], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2001b
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareWineDirectInputJoysticks
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x6a9443a5
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x6a9447a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
lea edx, [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x20]
sub esp, 0x4c
call fcn.6a944340
test esi, esi
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
je 0x6a9448a0
mov dword [esp], str.override
call dword [sym.imp.ucrtbase.dll_wcslen]
lea edx, [eax + 1]
test esi, esi
je 0x6a944880
mov ecx, dword [sym.imp.advapi32.dll_RegSetValueExW]
lea eax, [edx + edx]
mov dword [ebp - 0x30], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.override
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [ebp - 0x2c], ecx
call ecx
mov ecx, dword [ebp - 0x2c]
sub esp, 0x18
test eax, eax
mov edx, dword [ebp - 0x30]
je 0x6a9448bd
test edi, edi
je 0x6a9448bd
add edx, edx
mov dword [esp + 0x10], str.override
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
call ecx
mov eax, dword [ebp - 0x20]
sub esp, 0x18
test eax, eax
je 0x6a944868
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
jne 0x6a944900
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.advapi32.dll_RegSetValueExW]
test edi, edi
jne 0x6a94482b
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x6a944870
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6a944870
test esi, esi
je 0x6a944920
mov edx, dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [ebp - 0x2c], edx
call edx
sub esp, 8
test eax, eax
jne 0x6a9448d8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x6a944900
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x6a944906
test edi, edi
je 0x6a9448bd
mov dword [esp + 4], ebx
mov dword [esp], edi
mov edx, dword [ebp - 0x2c]
call edx
mov eax, dword [ebp - 0x20]
sub esp, 8
test eax, eax
jne 0x6a94485c
lea esi, [esi]
lea esi, [esi]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], esi
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x6a944870
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x20]
sub esp, 8
test eax, eax
jne 0x6a94485c
jmp 0x6a944870
Function at 0x6a944950
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
lea edx, [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x20]
sub esp, 0x4c
call fcn.6a944340
test esi, esi
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
jne 0x6a944a50
mov dword [esp], str.disabled
call dword [sym.imp.ucrtbase.dll_wcslen]
lea edx, [eax + 1]
test esi, esi
je 0x6a944a30
mov ecx, dword [sym.imp.advapi32.dll_RegSetValueExW]
lea eax, [edx + edx]
mov dword [ebp - 0x30], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.disabled
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [ebp - 0x2c], ecx
call ecx
mov ecx, dword [ebp - 0x2c]
sub esp, 0x18
test eax, eax
mov edx, dword [ebp - 0x30]
je 0x6a944a6d
test edi, edi
je 0x6a944a6d
add edx, edx
mov dword [esp + 0x10], str.disabled
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
call ecx
mov eax, dword [ebp - 0x20]
sub esp, 0x18
test eax, eax
je 0x6a944a18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
jne 0x6a944ab0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.advapi32.dll_RegSetValueExW]
test edi, edi
jne 0x6a9449db
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x6a944a20
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6a944a20
test esi, esi
je 0x6a944ad0
mov edx, dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [ebp - 0x2c], edx
call edx
sub esp, 8
test eax, eax
jne 0x6a944a88
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x6a944ab0
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
sub esp, 4
jmp 0x6a944ab6
test edi, edi
je 0x6a944a6d
mov dword [esp + 4], ebx
mov dword [esp], edi
mov edx, dword [ebp - 0x2c]
call edx
mov eax, dword [ebp - 0x20]
sub esp, 8
test eax, eax
jne 0x6a944a0c
lea esi, [esi]
lea esi, [esi]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], esi
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x6a944a20
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x20]
sub esp, 8
test eax, eax
jne 0x6a944a0c
jmp 0x6a944a20