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

Disassembly:
mov al, byte [0xd0ac20]
sub esp, 0xc
test al, al
je 0x410f8e
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20019
push 0
push 0xd0ac20
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410f8e
mov eax, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410fa4
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Read_Error.
push 0xd09bfc
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410f8e
mov eax, 1
add esp, 0xc
ret

Function at 0x410fc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0xd0ac20]
sub esp, 8
test al, al
je 0x411026
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20019
push 0
push 0xd0ac20
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411026
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41103c
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Read_Error.
push 0xd09bfc
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x411026
mov eax, 1
add esp, 8
ret

Function at 0x411060
Capabilities:
Set registry value

Disassembly:
push ecx
mov al, byte [0xd0ac20]
test al, al
je 0x4110df
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20006
push 0
push 0xd0ac20
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4110b5
mov eax, dword [reloc.DSOUND.dll_DirectSoundCreate]
push 0
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0xd0ac20
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4110df
mov edx, dword [esp + 8]
mov eax, dword [esp]
push 4
lea ecx, [esp + 0x10]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4110f3
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Write_Error.
push 0xd09bfc
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x411109
mov eax, dword [esp]
push eax
jmp 0x4110d9
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4110df
mov eax, 1
pop ecx
ret
Function at 0x411120
Capabilities:
Set registry value

Disassembly:
push ecx
mov al, byte [0xd0ac20]
test al, al
je 0x4111a7
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20006
push 0
push 0xd0ac20
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411175
mov eax, dword [reloc.DSOUND.dll_DirectSoundCreate]
push 0
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0xd0ac20
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4111a7
push esi
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x4111bb
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Write_Error.
push 0xd09bfc
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop ecx
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x4111d1
mov edx, dword [esp]
push edx
jmp 0x4111a1
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4111a7
mov eax, 1
pop ecx
ret

Function at 0x4111f0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0xd06ba4]
sub esp, 8
test eax, eax
je 0x41120f
mov eax, dword [0xd06ba8]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
mov ebx, dword [0x4ba6f8]
push esi
push edi
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x411235
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [0x4f9be4]
test eax, eax
jne 0x4112a7
cmp ebx, 0x400
mov edi, ebx
jb 0x41124d
mov edi, 0x400
call fcn.00415eb0
xor ecx, ecx
test edi, edi
mov dword [esp + 0x10], eax
jle 0x411290
push ebp
mov eax, ecx
cdq
mov ebp, 0xb4
idiv ebp
mov al, byte [ecx + 0x4ba6fc]
sub edx, 0x5a
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fsin
fstp dword [esp + 0x10]
mov dl, byte [esp + 0x10]
xor al, dl
mov byte [ecx + 0x4ba6fc], al
inc ecx
cmp ecx, edi
jl 0x41125d
pop ebp
mov eax, dword [esp + 0x10]
push eax
call fcn.00415ef0
add esp, 4
mov dword [0x4f9be4], 1
push 0x4ba6fc
push esi
call fcn.0040a2c0
mov eax, dword [0xd07b98]
xor edi, edi
add esp, 8
cmp eax, edi
mov dword [0xd06ba4], esi
mov dword [0xd06ba8], esi
mov dword [0xd06bac], esi
mov dword [0xd06bb0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0xd06bcc], 1
mov dword [0xd06bb8], edi
mov dword [0xd06bbc], ebx
mov dword [0xd07b78], 0xffffffff
mov dword [0xd07b7c], edi
mov dword [0xd07b9c], 0x3e8
jne 0x411329
push 0xfa0
push 0x40
call esi
cmp eax, edi
mov dword [0xd07b98], eax
jne 0x411329
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [0xd07ba0], edi
jne 0x41134c
push 0xfa0
push 0x40
call esi
cmp eax, edi
mov dword [0xd07ba0], eax
jne 0x41134c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x414af0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x20]
xor ecx, ecx
cmp edi, ecx
jne 0x414b1a
mov eax, dword [esp + 0x1c]
shl eax, 4
mov dword [eax + 0x8c743c], ecx
pop edi
mov dword [eax + 0x8c7438], ecx
xor eax, eax
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 0x1c]
shl esi, 4
mov eax, dword [esi + 0x8c743c]
and eax, edi
cmp eax, edi
mov dword [esi + 0x8c743c], edi
jne 0x414c05
mov eax, dword [esi + 0x8c7438]
cmp eax, ecx
je 0x414c05
cmp eax, 1
mov eax, dword [0x4c25f0]
jne 0x414baa
cmp eax, ecx
je 0x414b80
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 8]
fild qword [esp + 0x10]
fdivp st(1)
fmul qword [0x4a1550]
call fcn.00408160
jmp 0x414b86
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [0x4c2234]
mov dword [esi + 0x8c7440], eax
mov dword [esi + 0x8c7444], edx
mov eax, edi
pop edi
mov dword [esi + 0x8c7438], 2
pop esi
add esp, 0x10
ret
cmp eax, ecx
je 0x414bdb
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x10]
fild qword [esp + 8]
fdivp st(1)
fmul qword [0x4a1550]
call fcn.00408160
jmp 0x414be1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esi + 0x8c7440]
mov ecx, dword [esi + 0x8c7444]
sub eax, edx
cmp eax, ecx
jb 0x414bfd
mov dword [esi + 0x8c7438], 1
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
cmp dword [0x4c25f0], ecx
je 0x414c3a
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x10]
fild qword [esp + 8]
fdivp st(1)
fmul qword [0x4a1550]
call fcn.00408160
jmp 0x414c40
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x4c2230]
mov dword [esi + 0x8c7440], eax
mov dword [esi + 0x8c7444], ecx
mov eax, edi
pop edi
mov dword [esi + 0x8c7438], 2
pop esi
add esp, 0x10
ret

Function at 0x414e50
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 1
push 0
jne 0x414e88
lea ecx, [esp + 4]
push ecx
push 1
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
add esp, 0x98
ret
mov edx, dword [0x8d26fc]
push edx
push 0x414d60
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0xd09e70], eax
add esp, 0x98
ret
Function at 0x415390
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, dword [0x8c35bc]
mov ecx, dword [0x8c39d4]
xor edx, edx
test eax, eax
push esi
jbe 0x4153ac
cmp byte [ecx], 0xcc
jne 0x4153a8
inc edx
inc ecx
dec eax
jne 0x4153a2
mov esi, dword [0x4c28f4]
push eax
mov eax, esp
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
cmp eax, eax
je 0x4153c4
addps xmm7, xmmword [ebx]
adc eax, 0x8c3eec
pop eax
cmp edx, dword [0x8c3eec]
je 0x4153d1
xor eax, eax
pop esi
ret
mov eax, dword [0xd0abc4]
push 0
push 0
push 0x4c28fc
push eax
call fcn.004761f0
mov ecx, dword [0xd0abc4]
add esp, 0x10
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
mov eax, 1
ret

Function at 0x4157b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push DirectSoundCreate
push ebx
push 0
push ebp
call fcn.00405350
add esp, 0x20
cmp eax, 0xffffffff
jne 0x4157e5
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x415816
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0xc]
push edx
call edi
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
lea eax, [esi + 0x20]
push eax
call edi
push ebx
lea ecx, [esi + 0x124]
push ecx
call edi
lea edx, [esi + 0x10]
push edx
push 0
push esi
push 0x415690
push 0
push 0
mov dword [esi], 1
call fcn.0044f2cb
add esp, 0x18
test eax, eax
mov dword [esi + 0xc], eax
pop edi
jne 0x415857
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esi + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4171e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004164d0
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.004164d0
mov esi, eax
lea eax, [esi + 0x1f]
shr eax, 3
lea ecx, [eax + esi + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 8]
mov ebx, eax
push esi
push edx
lea edi, [ebx + 4]
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebx], esi
call fcn.0040a280
mov edx, eax
mov esi, 0x400
add esp, 0xc
cmp edx, esi
mov dword [ebp - 0xc], edx
jae 0x41723a
mov esi, edx
wait
fnstcw word [ebp - 8]
mov ecx, dword [ebp - 8]
test ch, 3
jne 0x417253
mov al, cl
and al, 0x3f
cmp al, 0x3f
jne 0x417253
test ch, 0xc
je 0x41726a
mov ax, word [ebp - 8]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 2], ax
fldcw word [ebp - 2]
mov dword [ebp - 8], ecx
xor ecx, ecx
test esi, esi
jle 0x4172a1
mov eax, ecx
cdq
mov ebx, 0xb4
idiv ebx
mov bl, byte [edi + ecx]
sub edx, 0x5a
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fsin
fstp dword [ebp - 4]
mov dl, byte [ebp - 4]
xor bl, dl
mov byte [edi + ecx], bl
inc ecx
cmp ecx, esi
jl 0x417273
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
fldcw word [ebp - 8]
mov ecx, dword [ebp + 8]
add edx, 4
push edx
push ebx
call fcn.004164d0
push eax
call fcn.00406090
add esp, 0xc
test eax, eax
push ebx
jne 0x4172d1
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4172e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004164d0
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.004164d0
mov esi, eax
lea eax, [esi + 0x1f]
shr eax, 3
lea ecx, [eax + esi + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 8]
mov ebx, eax
push esi
push edx
lea edi, [ebx + 4]
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebx], esi
call fcn.0040a280
mov esi, 0x400
add esp, 0xc
cmp eax, esi
mov dword [ebp - 0x10], eax
jae 0x417338
mov esi, eax
wait
fnstcw word [ebp - 8]
mov ecx, dword [ebp - 8]
test ch, 3
jne 0x417351
mov al, cl
and al, 0x3f
cmp al, 0x3f
jne 0x417351
test ch, 0xc
je 0x417368
mov ax, word [ebp - 8]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 2], ax
fldcw word [ebp - 2]
mov dword [ebp - 8], ecx
xor ecx, ecx
test esi, esi
jle 0x41739c
mov eax, ecx
cdq
mov ebx, 0xb4
idiv ebx
mov bl, byte [edi + ecx]
sub edx, 0x5a
mov dword [ebp - 4], edx
fild dword [ebp - 4]
fsin
fstp dword [ebp - 4]
mov dl, byte [ebp - 4]
xor bl, dl
mov byte [edi + ecx], bl
inc ecx
cmp ecx, esi
jl 0x417371
mov ebx, dword [ebp - 0xc]
fldcw word [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004164d0
mov ecx, edi
mov esi, eax
call fcn.004164d0
mov ecx, dword [ebp - 0x10]
push ecx
push ebx
push eax
push esi
call fcn.00405fd0
add esp, 0x10
test eax, eax
push ebx
jne 0x4173d8
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4173f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.004164d0
push eax
call fcn.00405940
mov esi, eax
add esp, 8
test esi, esi
jne 0x417420
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, ebx
call fcn.004164d0
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov edi, 0x400
cmp eax, edi
mov dword [ebp - 8], eax
jae 0x41743b
mov edi, eax
wait
fnstcw word [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
test ch, 3
jne 0x417456
mov dl, cl
and dl, 0x3f
cmp dl, 0x3f
jne 0x417456
test ch, 0xc
je 0x41746d
mov ax, word [ebp - 0xc]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 2], ax
fldcw word [ebp - 2]
mov dword [ebp - 4], ecx
xor ecx, ecx
test edi, edi
jle 0x4174a3
mov eax, ecx
cdq
mov ebx, 0xb4
idiv ebx
mov bl, byte [esi + ecx + 4]
sub edx, 0x5a
mov dword [ebp - 0xc], edx
fild dword [ebp - 0xc]
fsin
fstp dword [ebp - 0xc]
mov al, byte [ebp - 0xc]
xor bl, al
mov byte [esi + ecx + 4], bl
inc ecx
cmp ecx, edi
jl 0x417476
mov ebx, dword [ebp + 8]
fldcw word [ebp - 4]
mov edx, dword [ebp - 0x10]
lea ecx, [esi + 4]
push ecx
push edx
call fcn.0040a2c0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 8]
mov ecx, ebx
call fcn.00415f80
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4174d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.004164d0
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00405940
mov esi, eax
add esp, 8
test esi, esi
jne 0x417500
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push edi
mov edi, 0x400
cmp eax, edi
mov dword [ebp - 8], eax
jae 0x417511
mov edi, eax
wait
fnstcw word [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
test ch, 3
jne 0x41752c
mov dl, cl
and dl, 0x3f
cmp dl, 0x3f
jne 0x41752c
test ch, 0xc
je 0x417543
mov ax, word [ebp - 0xc]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 2], ax
fldcw word [ebp - 2]
mov dword [ebp - 4], ecx
xor ecx, ecx
test edi, edi
jle 0x417579
mov eax, ecx
cdq
mov ebx, 0xb4
idiv ebx
mov bl, byte [esi + ecx + 4]
sub edx, 0x5a
mov dword [ebp - 0xc], edx
fild dword [ebp - 0xc]
fsin
fstp dword [ebp - 0xc]
mov al, byte [ebp - 0xc]
xor bl, al
mov byte [esi + ecx + 4], bl
inc ecx
cmp ecx, edi
jl 0x41754c
mov ebx, dword [ebp + 8]
fldcw word [ebp - 4]
mov ecx, dword [ebp - 8]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea edx, [esi + 4]
mov edi, eax
push edx
push edi
call fcn.0040a2c0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, edi
mov ecx, ebx
call fcn.00415f80
mov edx, dword [ebp - 8]
mov ecx, ebx
call fcn.00415f80
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4176e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov ecx, dword [esp + 0x11c]
push esi
call fcn.004164d0
mov dword [esp + 0x10], eax
mov al, byte [0xd0ac20]
xor esi, esi
test al, al
mov dword [esp + 4], esi
je 0x4177ca
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp + 8]
push eax
push 0x20019
push esi
push 0xd0ac20
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4177ca
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push esi
push esi
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
push edx
mov dword [esp + 0x34], 0x104
call edi
cmp eax, 0x103
je 0x4177b1
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4177b1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
call ebp
test eax, eax
je 0x4177a9
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x34], 0x104
call edi
cmp eax, 0x103
jne 0x417766
jmp 0x4177b1
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
pop edi
pop ebp
je 0x4177ca
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x120]
call fcn.00415f80
xor eax, eax
pop esi
add esp, 0x118
ret
Function at 0x421780
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
push esi
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.004164d0
mov edx, dword [esp + eax*4 + 4]
mov ecx, esi
call fcn.00415f80
xor eax, eax
pop esi
add esp, 0x20
ret

Function at 0x426200
Capabilities:
Get common file path
Set current directory

Disassembly:
mov ecx, dword [esp + 4]
call fcn.004164d0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x42621a
mov eax, 2
ret
push 0xd0a084
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4eb920
push 0xd0a084
call fcn.00414c70
add esp, 8
xor eax, eax
ret

Function at 0x426630
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
mov ecx, esi
call fcn.004164d0
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.004164d0
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00414c70
add esp, 8
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop esi
add esp, 0x104
ret

Function at 0x426680
Capabilities:
Move file

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, dword [esp + 0x214]
push edi
mov ecx, esi
call fcn.004164d0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, eax
push edi
lea eax, [esp + 0x114]
push eax
call ebx
mov ecx, esi
call fcn.004164d0
push eax
lea ecx, [esp + 0x114]
push ecx
call fcn.00414c70
add esp, 8
mov ecx, esi
call fcn.004164d0
push edi
lea edx, [esp + 0x10]
push edx
mov esi, eax
call ebx
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00414c70
add esp, 8
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret

Function at 0x426700
Capabilities:
Delete directory

Disassembly:
mov ecx, dword [esp + 4]
call fcn.004164d0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
ret
Function at 0x443c20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
mov ecx, dword [esp + 0x2c]
or ecx, ecx
je 0x443c8f
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
lea ecx, [esi + ecx*4]
mov eax, dword [esp + 0x30]
pxor mm0, mm0
lea esp, [esp]
nop
movzx edx, byte [ebp]
xor edx, dword [esp + 0x34]
movd mm1, dword [esi]
movd mm2, dword [ebx]
movd mm4, dword [eax + edx*2]
punpcklwd mm4, mm4
punpcklbw mm2, mm0
punpcklbw mm1, mm0
punpcklwd mm4, mm4
psubw mm2, mm1
pmulhw mm2, mm4
psllw mm2, 1
paddw mm1, mm2
packuswb mm1, mm0
movd dword [edi], mm1
add esi, 4
add ebx, 4
add edi, 4
inc ebp
cmp esi, ecx
jb 0x443c50
emms
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x460192
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4a40d0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4601eb
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
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 0x4601eb
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4601eb
xor eax, eax
inc eax
jmp 0x4601ed
xor eax, eax
leave
ret 0x10

Function at 0x474180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [0x4d416c]
test eax, eax
push esi
push edi
mov edi, dword [esp + 0xc]
je 0x4741bd
xor edx, edx
mov ecx, 0x4d416c
mov eax, edx
mov esi, 8
test al, 1
je 0x4741aa
shr eax, 1
xor eax, 0xedb88320
jmp 0x4741ac
shr eax, 1
dec esi
jne 0x47419d
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4d456c
jb 0x474196
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov edx, ecx
dec ecx
test edx, edx
je 0x4741ea
inc ecx
xor edx, edx
mov dl, byte [edi]
mov esi, eax
and esi, 0xff
shr eax, 8
xor edx, esi
mov edx, dword [edx*4 + 0x4d416c]
xor eax, edx
inc edi
dec ecx
jne 0x4741cc
pop edi
not eax
pop esi
ret
Function at 0x474630
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
push esi
jne 0x474643
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
je 0x474653
push 0xc1a0158b
rol byte [eax], 1
mov edx, dword [0xd0c1a0]
push DirectSoundCreate
xor edx, 0xffffffff
push dword [ebp + 8]
call edx
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
cmp esi, 0xffffffff
jne 0x474682
mov dword [0xecc270], 2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4746a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xecc270], 2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4746b1
mov dword [ecx], eax
push 0
push 0
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.00474340
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret