joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b40
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x406b7e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406b76
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x406b80
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406b66
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40aa00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
xor ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov edx, ecx
sub edx, eax
mov al, byte [edx + edi]
mov byte [ebp + ecx - 0x106], cl
mov byte [ebp + ecx - 0x208], al
inc ecx
cmp ecx, 0x100
jl 0x40aa12
xor eax, eax
lea ebx, [ebx]
movzx ecx, byte [ebp + eax - 0x208]
movzx edx, byte [ebp + eax - 0x106]
add ecx, esi
lea esi, [ecx + edx]
and esi, 0x800000ff
jns 0x40aa75
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + eax - 0x106]
mov dl, byte [ebp + esi - 0x106]
mov byte [ebp + eax - 0x106], dl
inc eax
mov byte [ebp + esi - 0x106], cl
cmp eax, 0x100
jl 0x40aa50
xor eax, eax
xor cl, cl
mov byte [ebp - 0x107], 0
cmp dword [ebp + 0xc], eax
jbe 0x40ab21
mov edi, dword [ebp + 8]
push ebx
jmp 0x40aab6
mov cl, byte [ebp - 0x108]
mov dl, byte [eax + edi]
inc cl
mov byte [ebp - 0x108], cl
movzx esi, cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, byte [ebp - 0x107]
add ecx, ebx
mov byte [ebp - 0x107], cl
movzx ebx, byte [ebp + esi - 0x106]
movzx ecx, cl
lea ecx, [ebp + ecx - 0x106]
mov byte [ebp - 1], bl
movzx ebx, byte [ecx]
mov byte [ebp + esi - 0x106], bl
movzx ebx, byte [ebp - 1]
mov byte [ecx], bl
movzx ebx, byte [ebp + esi - 0x106]
add bl, byte [ecx]
inc eax
movzx ecx, bl
mov cl, byte [ebp + ecx - 0x106]
xor cl, dl
mov byte [eax + edi - 1], cl
cmp eax, dword [ebp + 0xc]
jb 0x40aab0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b930
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x77
push esi
mov dword [ebp - 0x20], 0x6f726863
mov dword [ebp - 0x1c], 0x635f656d
mov dword [ebp - 0x18], 0x646c6968
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
call fcn.00409c00
add esp, 8
test eax, eax
jne 0x40b993
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x1c]
push ecx
call fcn.0040ace0
add esp, 8
test eax, eax
je 0x40ba1e
push ebx
push edi
push eax
push esi
call fcn.00406b10
mov edx, dword [esi + 0xca0]
push 0x15db1ddc
push 0
push 0
mov edi, eax
push edx
lea eax, [esi + 0xc94]
push eax
call fcn.00414e40
add esp, 0x1c
mov ebx, eax
call fcn.0041f1ba
mov dword [eax + 3], esi
call fcn.0041f1cc
mov dword [eax + 3], esi
test edi, edi
je 0x40b9f1
push 1
push 2
call fcn.0041f1ba
add eax, 2
push eax
lea ecx, [esi + 0x1934]
push ecx
push edi
push esi
call fcn.004055a0
add esp, 0x18
test ebx, ebx
je 0x40ba13
push 0
push 0
call fcn.0041f1cc
add eax, 2
push eax
lea edx, [esi + 0x19b4]
push edx
push ebx
push esi
call fcn.004055a0
add esp, 0x18
push esi
call fcn.004175d0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi + 0x10]
mov ecx, eax
mov ebp, eax
mov al, byte [esi + 4]
sar ecx, 7
sub ebp, ecx
test al, al
mov dword [esp + 0x14], ebp
mov dword [esi + 0x10], ebp
je 0x401520
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x401520
mov bl, byte [esi + 0x15]
test bl, bl
jne 0x4013fc
dec ecx
mov dword [esi + 0x38], ecx
mov eax, dword [esi + 0x2c]
add eax, 0xfffffffc
mov dword [esi + 0x2c], eax
jns 0x401435
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
add ecx, edi
test bl, bl
mov dword [esi + 0x2c], ecx
mov edx, ecx
je 0x401424
mov al, byte [esi + 0x34]
inc al
and al, 0xf
mov byte [esi + 0x34], al
jmp 0x401431
mov cl, byte [esi + 0x34]
cmp cl, 0xf
jae 0x401431
inc cl
mov byte [esi + 0x34], cl
test edx, edx
jl 0x40140a
mov ecx, dword [esi + 0xc]
cmp ecx, 8
jl 0x401520
mov al, byte [esi + 0x23]
test al, al
jne 0x401451
cmp ecx, dword [esi + 0x24]
jg 0x401520
mov cl, byte [esi + 0x20]
test cl, cl
je 0x4014a9
mov cl, byte [esi + 0x21]
test cl, cl
je 0x4014a9
mov edx, dword [esi + 0x18]
add edx, 0xfffffffe
mov dword [esi + 0x18], edx
jns 0x4014a9
mov ebx, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
add edi, ebx
test al, al
mov dword [esi + 0x18], edi
je 0x401495
mov dl, byte [esi + 0x28]
cmp dl, 1
mov edx, dword [esi + 0xc]
mov ebp, edx
jne 0x40148c
sar ebp, cl
not ebp
jmp 0x40149c
sar ebp, cl
sub edx, ebp
mov dword [esi + 0xc], edx
jmp 0x4014a1
mov edx, dword [esi + 0xc]
mov ebp, edx
sar ebp, cl
add ebp, edx
mov dword [esi + 0xc], ebp
test edi, edi
jl 0x40146d
mov ebp, dword [esp + 0x14]
mov ecx, dword [0x42bd00]
mov eax, dword [esi + 8]
mov edx, dword [ecx + 0xc118]
sub eax, edx
mov dword [esi + 8], eax
jns 0x401520
mov cl, byte [esi + 0x14]
xor eax, eax
xor ebp, ebp
test cl, cl
je 0x4014d3
xor ecx, ecx
mov ch, byte [esi + 0x16]
mov edi, ecx
jmp 0x4014e0
xor edx, edx
mov dl, byte [esi + 0x34]
mov edi, edx
xor edi, 0xf
shl edi, 8
mov edx, dword [esi + 0xc]
mov ebx, dword [esi + 0x40]
inc edx
shl edx, 0x10
mov ecx, dword [esi + 8]
add ecx, edx
mov dword [esi + 8], ecx
mov cl, byte [esi + 0x3c]
inc cl
and cl, 0xf
mov byte [esi + 0x3c], cl
and ecx, 0xff
cmp ecx, ebx
jge 0x40150b
add eax, edi
jmp 0x40150d
sub eax, edi
mov ecx, dword [esi + 8]
inc ebp
test ecx, ecx
jl 0x4014ea
cdq
idiv ebp
pop edi
mov dword [esi + 0x10], eax
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x411d40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42373a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi + 0x18], 0x4247c8
mov dword [ebp - 4], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], 0x4247c8
mov byte [esi + 0x24], bl
lea edi, [esi + 0x28]
mov dword [edi + 4], ebx
mov dword [edi], 0x42479c
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
mov dword [esi], 0x424758
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.00415260
push 0x14
mov byte [ebp - 4], 5
call fcn.0041ab13
add esp, 4
mov dword [ebp + 8], eax
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x411dd8
mov ecx, dword [esi + 4]
push ecx
mov ecx, eax
call fcn.004139c0
jmp 0x411dda
xor eax, eax
mov dword [ebp - 4], 4
push 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 8
call fcn.0041ab13
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
cmp ecx, ebx
mov byte [ebp - 4], 9
je 0x411e0e
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call fcn.00411640
jmp 0x411e10
xor eax, eax
mov dword [ebp - 4], 4
push 0x2b3c
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov byte [ebp - 4], 0xb
call fcn.0041ab13
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
cmp ecx, ebx
mov byte [ebp - 4], 0xc
je 0x411e4e
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 8]
push edx
mov edx, dword [ebp + 0x10]
push eax
push edx
call fcn.00409330
mov ebx, eax
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], ebx
push ebx
mov dword [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, esi
call fcn.00412050
mov ecx, esi
call fcn.004121b0
mov cl, byte [0x42c7c4]
push ecx
mov ecx, esi
call fcn.004122e0
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [esi + 0x14]
lea eax, [esi + 0x20]
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4122d0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [ecx + 8]
jmp 0x413b80
mov al, byte [ecx + 0xc]
test al, al
je 0x413b8c
jmp fcn.00413ba0
jmp fcn.00413c50
Function at 0x412400
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x40]
test al, al
jne 0x41256c
push edi
call fcn.00415300
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
fild qword [esp + 8]
fstp qword [esi + 0x40]
mov al, byte [0x42c79a]
test al, al
je 0x41247e
mov al, byte [0x42c799]
test al, al
je 0x41247e
push 0x6b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
not eax
test ah, 0x80
je 0x41247e
fld qword [esi + 0x40]
fsub qword [esi + 0x38]
fmul qword [0x424800]
call fcn.0041a37c
cmp eax, 1
jbe 0x41247e
lea edi, [eax - 1]
fld qword [esi + 0x38]
fadd qword [0x4247f8]
mov edx, dword [esi]
push 0
mov ecx, esi
fstp qword [esi + 0x38]
call dword [edx + 0x14]
dec edi
jne 0x412466
mov ecx, esi
call fcn.00411fe0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x14]
mov al, byte [0x42c799]
test al, al
je 0x4124d6
push 0x6b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
not eax
test ah, 0x80
je 0x4124d6
fld qword [esi + 0x38]
fadd qword [0x4247f8]
push ebp
call fcn.0041a37c
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
call fcn.00415300
mov ecx, edi
sub ecx, eax
test ecx, ecx
jle 0x4124d5
cmp ecx, 2
jle 0x4124bd
dec ecx
push ecx
call ebp
jmp 0x4124bd
pop ebp
mov ecx, esi
call fcn.004122a0
mov ecx, esi
call fcn.004122b0
fld qword [esi + 0x40]
fsub qword [esi + 0x58]
mov eax, dword [esi + 0x50]
pop edi
inc eax
fcom qword [0x4247f0]
mov dword [esi + 0x50], eax
mov ecx, eax
fnstsw ax
test ah, 0x41
jne 0x412535
fld qword [0x4247e8]
fdiv st(1)
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
mov dword [esi + 0x58], ecx
mov dword [esi + 0x50], 0
mov dword [esi + 0x5c], edx
fild qword [esp + 4]
fmulp st(1)
fstp qword [esi + 0x48]
fstp st(0)
jmp 0x412537
fstp st(0)
mov al, byte [0x42c799]
test al, al
je 0x412560
push 0x6b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
not eax
test ah, 0x80
je 0x412560
fld qword [esi + 0x38]
fadd qword [0x4247f8]
fstp qword [esi + 0x38]
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
pop esi
add esp, 8
ret

Function at 0x413ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42395b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x34
mov dword [ebp - 4], ebx
call fcn.0041ab13
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x413bec
mov eax, dword [esi + 8]
push eax
call fcn.00415360
mov edi, eax
jmp 0x413bee
xor edi, edi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x413c02
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi + 4]
mov dword [esi + 0x10], edi
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x34]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov byte [esi + 0xc], bl
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push eax
push 0x4282c4
push reloc.DSOUND.dll_DirectSoundCreate
call esi
test eax, eax
je 0x413f36
xor al, al
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push str.Iroke__Rompeordenata
push edx
call esi
test eax, eax
je 0x413f5d
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00414080
mov eax, dword [esp + 0xc]
lea edx, [esi + 0x244]
push edx
push eax
call fcn.00414c30
mov eax, dword [esp + 0x14]
add esp, 0x10
lea ecx, [esp + 0x14]
add esi, 0xc70
push ecx
lea edx, [esp + 0x10]
push esi
push edx
push 0
push str.OpenPath
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov al, 1
pop esi
add esp, 0xc
ret

Function at 0x413fd0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push eax
push 0x4282c4
push reloc.DSOUND.dll_DirectSoundCreate
call esi
test eax, eax
je 0x413ff6
xor al, al
pop esi
add esp, 8
ret
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push str.Iroke__Rompeordenata
push edx
call esi
test eax, eax
je 0x41401d
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 8
ret
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00414580
mov eax, dword [esp + 0xc]
lea edx, [esi + 0x244]
push edx
push eax
call fcn.00414d50
mov ecx, dword [esp + 0x14]
add esp, 0x10
add esi, 0xc70
push 0x104
push esi
push 1
push 0
push str.OpenPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov al, 1
pop esi
add esp, 8
ret
Function at 0x414580
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4239a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
push eax
push 0x4272c0
push ecx
call esi
test eax, eax
jne 0x41476a
mov eax, dword [ebp - 0x1c]
lea edx, [ebp + 8]
push edx
xor ebx, ebx
push str.Preferences
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
call esi
test eax, eax
je 0x414602
lea ecx, [ebp - 0x20]
push 0x425280
push ecx
mov dword [ebp - 0x20], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp + 8]
test eax, eax
je 0x4145fc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x414679
ret
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push edi
push 4
push ebx
push str.RunInBackground
push edx
call esi
mov ecx, dword [ebp + 8]
lea eax, [edi + 1]
push 1
push eax
push 4
push ebx
push str.SpeedThrottle
push ecx
call esi
mov eax, dword [ebp + 8]
lea edx, [edi + 2]
push 1
push edx
push 4
push ebx
push str.AutoFrameskip
push eax
call esi
mov edx, dword [ebp + 8]
lea ecx, [edi + 4]
push 4
push ecx
push 4
push ebx
push str.Priority
push edx
call esi
mov eax, dword [ebp + 8]
push 4
push 0x428e84
push 4
push ebx
push str.Sound
push eax
call esi
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414684
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push str.Graphics
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4146ce
lea ecx, [ebp - 0x24]
push 0x425280
push ecx
mov dword [ebp - 0x24], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4146c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x4146ee
ret
mov eax, dword [ebp - 0x18]
lea edx, [edi + 0x28]
push 1
push edx
push 4
push ebx
push str.DoubleSize
push eax
call esi
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4146f3
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
push str.Input
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x414729
lea ecx, [ebp - 0x28]
push 0x425280
push ecx
mov dword [ebp - 0x28], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp - 0x14]
lea edx, [edi + 0x44]
push edx
push str.Controller1
push eax
call fcn.00414af0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add edi, 0x144
push edi
push str.Controller2
push ecx
call fcn.00414af0
mov edx, dword [ebp - 0x14]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4239b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push eax
xor edi, edi
push ecx
push edx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4147f8
lea eax, [ebp - 0x18]
push 0x425280
push eax
mov dword [ebp - 0x18], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4147f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x4148a0
ret
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
lea edx, [ebp + 8]
push ecx
push esi
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.DeviceGUID
push eax
mov dword [ebp + 0xc], 0x10
call edi
lea ecx, [ebp + 0xc]
lea edx, [esi + 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push edx
push eax
push 0
mov ebx, 4
push str.DeviceType
push ecx
mov dword [ebp + 0xc], ebx
call edi
lea edx, [ebp + 0xc]
lea eax, [esi + 0x14]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push eax
push ecx
push 0
push 0x428488
push edx
mov dword [ebp + 0xc], 1
call edi
lea eax, [ebp + 0xc]
lea ecx, [esi + 0x18]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp + 8]
push ecx
push edx
push 0
push str.JOffset
push eax
mov dword [ebp + 0xc], ebx
call edi
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
add esi, 0x1c
push ecx
lea edx, [ebp + 8]
push esi
push edx
push 0
push str.JAxisPositive
push eax
mov dword [ebp + 0xc], ebx
call edi
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4148c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4239c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push eax
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x414928
lea eax, [ebp - 0x18]
push 0x425280
push eax
mov dword [ebp - 0x18], 0xffffffff
call fcn.0041a4ef
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x414922
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x41499c
ret
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x10
push esi
push 3
push ebx
push str.DeviceGUID
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x10]
push 4
push edx
push 4
push ebx
push str.DeviceType
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x14]
push 1
push ecx
push 3
push ebx
push 0x428488
push edx
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x18]
push 4
push eax
push 4
push ebx
push str.JOffset
push ecx
call edi
mov edx, dword [ebp - 0x14]
add esi, 0x1c
push 4
push esi
push 4
push ebx
push str.JAxisPositive
push edx
call edi
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4239f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push eax
push str.Recent
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x414d39
mov ecx, dword [ebp + 0xc]
call fcn.0040db30
mov esi, 9
or ebx, 0xffffffff
mov dword [ebp + 8], esi
test esi, esi
jl 0x414d2f
push esi
push str.Recent
lea edx, [ebp - 0x224]
push str._s_i
push edx
call fcn.0041b073
add esp, 0x10
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x120]
lea edx, [ebp - 0x18]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x224]
push 0
push eax
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x18], 1
je 0x414ceb
lea edx, [ebp - 0x1c]
push 0x425280
push edx
mov dword [ebp - 0x1c], ebx
call fcn.0041a4ef
lea edi, [ebp - 0x120]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x414d23
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x120]
push eax
call fcn.00418650
dec esi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], esi
jmp 0x414c82
dec esi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], esi
jmp 0x414c82
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414d50
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x208
lea eax, [esp]
push eax
push str.Recent
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x414e32
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
xor ebx, ebx
push ebx
push str.Recent
lea edx, [esp + 0x11c]
push str._s_i
push edx
call fcn.0041b073
mov edi, 0x42c71c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00418640
test eax, eax
je 0x414df8
push ebx
mov ecx, ebp
call fcn.00418640
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0x100
push ecx
push 1
lea edx, [esp + 0x120]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc ebx
cmp ebx, 0xa
jl 0x414d80
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret