joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0x20019
push 0
push str.SoftwareTAITO_
push 0x80000001
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne case.default.0x405619
mov ecx, dword [0x4c8650]
mov edx, dword [esp + 8]
push ecx
push 0x4c8650
push str.controller
push edx
call fcn.00401000
mov eax, dword [esp + 0x18]
push 0x4c8654
push 0x4c8654
push str.guidProduct
push eax
call fcn.00401040
mov ecx, dword [esp + 0x28]
add esp, 0x20
push ecx
call edi
mov eax, dword [0x4c8650]
cmp eax, 5
ja case.default.0x405619
jmp dword [eax*4 + 0x4056b0]
mov dword [0x670a64], 0
jmp case.default.0x405619
mov dword [0x670a64], 3
jmp case.default.0x405619
mov dword [0x670a64], 1
jmp case.default.0x405619
mov dword [0x670a64], 2
jmp case.default.0x405619
mov dword [0x670a64], 4
lea edx, [esp + 8]
push edx
push 0x20019
push 0
push str.SoftwareTAITO_
push 0x80000002
call esi
test eax, eax
jne 0x4056a3
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0x4c8664
push 0
push 0
push str.joystick.dat
push ecx
mov dword [esp + 0x24], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call edi
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x406bb0
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x98
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0x94
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
jne 0x406c58
mov esi, dword [esp + 0xa4]
mov eax, dword [0x4c8be0]
test esi, esi
je 0x406c3a
test eax, eax
jne 0x406c87
mov ecx, dword [0x4c8bd8]
push 0
push ecx
push 0x406b40
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x4c8be0], eax
jne 0x406c87
call fcn.0040d020
mov edx, dword [0x4c8be0]
push eax
push edx
push esi
push str.DisableTaskSwitch:_bDisable___d__hHook___08X__desc___s_n
call fcn.0040d0b0
add esp, 0x10
pop edi
pop esi
add esp, 0x98
ret
test eax, eax
je 0x406c87
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
pop edi
mov dword [0x4c8be0], 0
pop esi
add esp, 0x98
ret
mov esi, dword [esp + 0xa4]
lea eax, [esp + 8]
push 0
push eax
push esi
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x406c87
call fcn.0040d020
push eax
push esi
push str.DisableTaskSwitch:_bDisable___d__desc___s
call fcn.0040d0b0
add esp, 0xc
pop edi
pop esi
add esp, 0x98
ret
Function at 0x409a10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b0e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], 0x4b2378
mov esi, edi
shl esi, 6
lea ebx, [esi + 0x670b30]
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x34]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x28], ecx
je 0x409b27
lea ecx, [esp + 0x18]
lea eax, [edi*4 + 0x671148]
mov edx, 2
mov ebp, dword [eax]
add eax, 0x64
mov dword [ecx], ebp
add ecx, 4
dec edx
jne 0x409a70
mov eax, dword [esi + 0x670b08]
test eax, eax
je 0x409ab0
push edi
call fcn.00409c90
add esp, 4
test eax, eax
jne 0x409ab0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x34]
call fcn.004087a0
test eax, eax
mov dword [esi + 0x670b08], eax
jne 0x409adf
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x178], edi
mov ebp, dword [0x67123c]
lea eax, [esp + 0x18]
push eax
inc ebp
push ecx
mov ecx, dword [esi + 0x670b08]
mov dword [0x67123c], ebp
call fcn.00408b90
test eax, eax
jne 0x409b4c
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi + 0x670b08]
cmp eax, ecx
je 0x409b4c
mov dword [eax + 0x178], 0x19
mov eax, dword [0x67123c]
dec eax
mov dword [esi + 0x670b08], ecx
mov dword [0x67123c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x40c5e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
test eax, eax
je 0x40c5f1
mov dword [esp + 0x14], eax
jmp 0x40c5fd
mov dword [esp + 0x14], 0x671240
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
cmp ebp, 0x100
push edi
jge 0x40c665
test ebp, ebp
jle 0x40c706
mov ebx, dword [esp + 0x1c]
lea esi, [eax + 1]
lea edi, [ebx + 3]
sub ebx, eax
mov al, byte [edi - 3]
push 0x80
mov byte [esi - 1], al
mov cl, byte [ebx + esi]
mov byte [esi], cl
mov dl, byte [edi - 1]
mov byte [esi + 1], dl
push 0xff
movsx eax, byte [edi]
cdq
xor eax, edx
sub eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov byte [esi + 2], al
add edi, 4
add esi, 4
dec ebp
jne 0x40c621
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
xor ebx, ebx
test ebp, ebp
jle 0x40c706
mov ecx, 0xffffffde
mov edi, dword [esp + 0x1c]
sub ecx, eax
mov edx, 0xfffffffe
mov dword [esp + 0x14], ecx
mov ecx, 0x1e
sub ecx, eax
sub edx, eax
lea esi, [eax + 2]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
jmp 0x40c69d
mov ecx, dword [esp + 0x20]
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
and eax, 0x80000003
jns 0x40c6b4
dec eax
or eax, 0xfffffffc
inc eax
dec eax
je 0x40c6c6
dec eax
je 0x40c6c2
mov eax, dword [esp + 0x10]
add eax, esi
jmp 0x40c6c9
mov ecx, dword [esp + 0x14]
lea eax, [ecx + esi]
mov dl, byte [eax + edi]
push 0x80
mov byte [esi - 2], dl
mov cl, byte [eax + edi + 1]
mov byte [esi - 1], cl
mov dl, byte [eax + edi + 2]
mov byte [esi], dl
push 0xff
movsx eax, byte [eax + edi + 3]
cdq
xor eax, edx
sub eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov byte [esi + 1], al
inc ebx
add esi, 4
cmp ebx, ebp
jl 0x40c699
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x40cf80
Capabilities:
Get graphical window text

Disassembly:
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push esi
push eax
push ecx
push 0x672acc
call fcn.004a37d6
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
add esp, 0xc
push 0x80
push 0x672a4c
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [0x672a4c]
test al, al
jne 0x40cfca
push 0x4c8d0c
push 0x672a4c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 8]
push edx
push 0x672a4c
push 0x672acc
call esi
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret

Function at 0x40f0f0
Capabilities:
Get common file path

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40f10b
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40f121
pop ecx
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
je 0x40f134
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
mov ecx, dword [esp + 8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, 1
pop ecx
ret
Function at 0x40f1d0
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push 0x1a
call fcn.0040f0f0
add esp, 8
test eax, eax
jne 0x40f1e9
or eax, 0xffffffff
pop esi
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.TAITO
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call ebx
push str.perfect
push esi
call edi
push 0
push esi
call ebx
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0040f160
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
ret
Function at 0x40f230
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x268
lea ecx, [esp + 0x164]
push ebx
push ebp
push esi
push edi
push eax
push ecx
call fcn.0040f1d0
add esp, 8
test eax, eax
jge 0x40f263
pop edi
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x268
ret
lea edx, [esp + 0x174]
push str..
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x174]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40f2a2
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x268
ret
mov eax, dword [esp + 0x280]
xor edi, edi
test eax, eax
jle 0x40f400
mov edx, dword [esp + 0x284]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [edx + 5]
lea eax, [esp + 0x60]
push 0x4ca05c
push eax
call ebx
test eax, eax
je 0x40f3df
lea ecx, [esp + 0x60]
push 0x4ca058
push ecx
call ebx
test eax, eax
je 0x40f3df
lea edx, [esp + 0x38]
lea eax, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x40f253
lea ecx, [esp + 0x48]
lea edx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x40f253
lea eax, [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x40f253
lea edx, [esp + 0x14]
lea eax, [esp + 0x48]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x40f253
mov al, byte [esp + 0x2a]
mov cx, word [esp + 0x24]
mov dl, byte [esp + 0x26]
mov byte [esi - 1], al
mov al, byte [esp + 0x30]
mov word [esi + 1], cx
mov cl, byte [esp + 0x2c]
mov byte [esi - 4], al
mov al, byte [esp + 0x1a]
mov byte [esi], dl
mov dl, byte [esp + 0x2e]
mov byte [esi - 2], cl
mov cx, word [esp + 0x14]
mov byte [esi + 7], al
mov al, byte [esp + 0x20]
mov byte [esi - 3], dl
mov dl, byte [esp + 0x16]
mov word [esi + 9], cx
mov cl, byte [esp + 0x1c]
mov byte [esi + 4], al
mov eax, dword [esp + 0x34]
mov byte [esi + 8], dl
mov dl, byte [esp + 0x1e]
mov byte [esi + 6], cl
mov ecx, dword [esp + 0x54]
cmp eax, 0x10
mov byte [esi + 5], dl
mov dword [esi + 0xb], ecx
jne 0x40f3c0
mov word [esi + 0xf], 0xa4
jmp 0x40f3c6
mov word [esi + 0xf], 0x83
lea edx, [esp + 0x60]
lea eax, [esi + 0x1b]
push edx
push eax
mov dword [esi + 0x17], 0
mov byte [eax], 0
call ebp
inc edi
add esi, 0x40
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40f400
cmp edi, dword [esp + 0x280]
jl 0x40f2c9
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret
Function at 0x411600
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
test eax, eax
mov dword [esp + 0x10], ecx
je 0x411675
mov al, byte [ebp + 1]
xor ebx, ebx
test al, al
jbe 0x411675
lea edi, [ebp + 6]
mov ecx, dword [esp + 0x24]
xor eax, eax
mov ax, word [edi - 4]
mov esi, dword [ecx + eax*8]
cmp byte [esi + 1], 0xf
je 0x411653
push 1
push 0
push esi
mov ecx, 0x5eb9b8
call fcn.0040a800
test eax, eax
je 0x4117e4
cmp byte [esi + 1], 0xf
jne 0x41165b
mov dx, word [esi + 6]
mov word [edi - 2], dx
cmp byte [esi + 8], 0xf
jne 0x411668
mov ax, word [esi + 0xe]
mov word [edi], ax
xor ecx, ecx
inc ebx
mov cl, byte [ebp + 1]
add edi, 6
cmp ebx, ecx
jl 0x411623
push ebp
call fcn.00419a40
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
mov edx, dword [ebx]
lea esi, [ebx + 0x10]
shr edx, 2
lea eax, [esi + edx*4]
add esi, 0xc
mov edi, esi
add esi, 4
cmp esi, eax
mov dword [esp + 0x14], eax
jae 0x41179e
mov dl, byte [edi + 3]
mov al, dl
and al, 0x60
cmp al, 0x60
jne 0x4117e4
and edx, 0xff
mov eax, 0x20
mov ecx, edx
mov ebx, esi
and ecx, 3
shr edx, 2
sar eax, cl
and edx, 3
xor ecx, ecx
inc edx
mov cl, byte [edi + 2]
imul eax, edx
imul eax, ecx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
xor edx, edx
sar eax, 5
lea esi, [esi + eax*4]
mov eax, 0x20
mov edi, esi
add esi, 4
mov ebp, esi
mov dl, byte [edi + 3]
mov ecx, edx
and ecx, 3
shr edx, 2
sar eax, cl
and edx, 3
inc edx
imul eax, edx
xor edx, edx
mov dl, byte [edi + 2]
imul eax, edx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
xor edx, edx
sar eax, 5
lea esi, [esi + eax*4]
mov eax, 0x20
mov edi, esi
add esi, 4
mov dl, byte [edi + 3]
mov ecx, edx
and ecx, 3
shr edx, 2
sar eax, cl
and edx, 3
xor ecx, ecx
inc edx
mov cl, byte [edi + 2]
imul eax, edx
imul eax, ecx
add eax, 0x1f
mov ecx, dword [esp + 0x20]
cdq
and edx, 0x1f
add eax, edx
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x24]
push edx
push eax
lea eax, [ecx + 2]
mov ecx, dword [esp + 0x18]
push eax
push esi
push ebp
push ebx
sar edi, 5
call fcn.00411930
test eax, eax
je 0x4117e4
lea esi, [esi + edi*4 + 0xf]
mov eax, dword [esp + 0x14]
shr esi, 4
shl esi, 4
add esi, 0xc
mov edi, esi
add esi, 4
cmp esi, eax
jb 0x4116a3
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4117d5
mov eax, dword [0x4ca0d8]
test eax, eax
jne 0x4117d5
push 0x10
call fcn.004a2ced
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edx
push esi
lea ecx, [eax + 0x54]
call fcn.00406ac0
mov dword [ebx + 8], esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
Function at 0x415bb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call fcn.004a3f6f
add esp, 0xc
ret

Function at 0x41ad00
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push 0x58
call fcn.0041c490
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x41ad1a
pop esi
or eax, 0xffffffff
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 0xffffffff
jne 0x41ad4f
mov eax, dword [0x678f0c]
lea ebp, [eax - 1]
cmp ebp, ebx
jl 0x41ad35
mov ebp, 0xfffffffe
mov eax, dword [0x758208]
cmp dword [eax + 4], ebp
jne 0x41ad42
dec ebp
jmp 0x41ad45
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x41ad3a
mov dword [0x678f0c], ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x1c], edx
mov eax, ecx
xor edx, edx
mov dword [esi + 4], ebp
sar eax, 8
mov byte [esi + 1], cl
je 0x41ad81
and ecx, 0xff
mov edx, 4
mov byte [0x678f08], cl
inc eax
mov byte [esi], dl
mov word [esi + 8], ax
lea eax, [esi + 0x58]
mov word [esi + 0xa], bx
mov word [esi + 2], bx
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], ebx
mov eax, dword [0x758208]
cmp eax, ebx
je 0x41ade7
xor edx, edx
push edi
mov dl, byte [eax + 1]
mov edi, dword [eax + 0xc]
cmp edx, ecx
jg 0x41adc1
cmp edi, ebx
je 0x41adc1
mov eax, edi
mov edi, dword [edi + 0xc]
xor edx, edx
mov dl, byte [eax + 1]
cmp edx, ecx
jle 0x41adaf
xor edx, edx
pop edi
mov dl, byte [eax + 1]
cmp edx, ecx
jle 0x41addc
mov edx, dword [eax + 0x10]
mov dword [eax + 0x10], esi
mov dword [edx + 0xc], esi
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], eax
jmp 0x41adf3
mov dword [eax + 0xc], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ebx
jmp 0x41adf3
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [0x758208], esi
push ecx
push ebp
lea eax, [esi + 0x30]
push str.TASK:_02X:_02X
push eax
call fcn.004a2a50
add esp, 0x10
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push ebx
push 0x41ab50
mov dword [esi + 0x2c], eax
call fcn.004a397d
add esp, 0xc
mov dword [esi + 0x28], eax
mov eax, ebp
pop ebp
pop esi
pop ebx
ret

Function at 0x41d060
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
lea esi, [eax + 0x1b68]
mov ebx, 0x37
mov edi, esi
xor cl, cl
xor edx, edx
cmp eax, edi
je 0x41d088
xor cl, byte [eax]
inc eax
inc edx
cmp edx, 0x80
jl 0x41d078
mov byte [esi], cl
inc esi
dec ebx
jne 0x41d074
xor cl, cl
mov edx, 0x37
mov bl, byte [eax]
xor cl, bl
inc eax
dec edx
jne 0x41d095
mov byte [esi], cl
pop edi
pop esi
pop ebx
ret
Function at 0x48d313
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x48d36b
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x48d36b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x48d36b
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x48d394
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x48d402
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48d3f9
cmp dword [ebp - 0xc], 4
jne 0x48d3f9
cmp dword [ebp - 0x10], edi
je 0x48d3f9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5e33e8], edi
xor eax, eax
jmp 0x48d42a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5e33e8], edi
jge 0x48d425
mov dword [0x5e33e8], edi
call fcn.0048d36f
test eax, eax
je 0x48d425
emms
mov dword [0x5e33e8], 1
mov eax, dword [0x5e33e8]
pop edi
leave
ret

Function at 0x48d50a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x48d541
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x48d563
cmp dword [ebp - 0x20], 4
ja 0x48d56d
jne 0x48d55d
cmp dword [ebp - 0x1c], 0xa
jb 0x48d55d
cmp word [ebp - 0x18], 0x55d
jae 0x48d56d
mov byte [ebp + 0x73], 1
jmp 0x48d56d
cmp dword [ebp - 0x14], 2
jne 0x48d583
test bl, bl
je 0x48d59e
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x48d58e
dec eax
je 0x48d587
sub eax, 3
jne 0x48d583
cmp byte [ebp + 0x73], 0
je 0x48d5af
xor eax, eax
jmp 0x48d5b7
call fcn.0048d42d
jmp 0x48d5b7
cmp byte [ebp + 0x73], 0
jne 0x48d583
call fcn.0048d465
and eax, 4
jmp 0x48d5b7
cmp dword [ebp + 0x7c], 0xa
je 0x48d5af
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x48d5b7
call fcn.0048d465
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x48d72b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x18], eax
jae 0x48d84c
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
jae 0x48d830
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 0xc], edi
shr edi, 2
and edi, esi
mov dword [ebp - 4], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 0xc]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp - 4]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 0xc]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x10]
add ecx, 8
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov esi, 0xffc03fc0
jne 0x48d782
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x18]
mov dword [ebp + 0xc], edx
jb 0x48d760
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x48dac8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x48dae9
mov eax, 0x8876086c
jmp 0x48dbcb
cmp dword [ebp + 0x7c], esi
je 0x48db63
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x48db43
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004a4700
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x48db63
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x48db7c
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x48dbbc
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x48dbbc
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x48dbbc
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x48dbc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x48dbcb
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8