joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c200
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x71a644]
sub esp, 0x118
test eax, eax
push esi
je 0x40c3f1
mov al, byte [0x4fc038]
test al, al
je 0x40c3f1
push 0x4fc038
lea eax, [esp + 0x1c]
push str._sSystem
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x24]
push edx
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c285
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c3d7
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0x7199c4
push 3
push 0
push str.gbFullScreenFlag
push edx
call esi
test eax, eax
je 0x40c2b6
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c3d7
mov eax, dword [0x7199b0]
test eax, eax
je 0x40c2de
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [0x462014], edx
mov dword [0x462018], eax
mov ecx, dword [esp + 4]
push 4
push 0x462014
push 3
push 0
push str.gnWindowLeft
push ecx
call esi
test eax, eax
je 0x40c309
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c3d7
mov eax, dword [esp + 4]
push 4
push 0x462018
push 3
push 0
push str.gnWindowTop
push eax
call esi
test eax, eax
je 0x40c334
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c3d7
mov edx, dword [esp + 4]
push 4
push 0x461ff8
push 3
push 0
push str.gdwWindowWidth
push edx
call esi
test eax, eax
je 0x40c35c
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c3d7
mov ecx, dword [esp + 4]
push 4
push 0x461ffc
push 3
push 0
push str.gdwWindowHeight
push ecx
call esi
test eax, eax
je 0x40c384
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c3d7
mov eax, dword [esp + 4]
push 4
push 0x462008
push 3
push 0
push str.gdwWindowBpp
push eax
call esi
test eax, eax
je 0x40c3ac
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c3d7
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test eax, eax
je 0x40c3c8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c3d7
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40c3f1
push str.Registry_Write_Error.
push 0x7197b0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop esi
add esp, 0x118
ret
mov eax, 1
pop esi
add esp, 0x118
ret
Function at 0x40c400
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x71a66c]
sub esp, 0xc
test al, al
je 0x40c46e
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x71a66c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c46e
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 0x40c484
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Read_Error.
push 0x7197b0
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 0x40c46e
mov eax, 1
add esp, 0xc
ret

Function at 0x40c4a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x71a66c]
sub esp, 8
test al, al
je 0x40c506
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x71a66c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c506
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 0x40c51c
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Read_Error.
push 0x7197b0
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 0x40c506
mov eax, 1
add esp, 8
ret

Function at 0x40c540
Capabilities:
Set registry value

Disassembly:
push ecx
mov al, byte [0x71a66c]
test al, al
je 0x40c5bf
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x71a66c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c595
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 0x71a66c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c5bf
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 0x40c5d3
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Write_Error.
push 0x7197b0
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 0x40c5e9
mov eax, dword [esp]
push eax
jmp 0x40c5b9
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40c5bf
mov eax, 1
pop ecx
ret
Function at 0x40c600
Capabilities:
Set registry value

Disassembly:
push ecx
mov al, byte [0x71a66c]
test al, al
je 0x40c687
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp]
push eax
push 0x20006
push 0
push 0x71a66c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c655
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 0x71a66c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c687
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 0x40c69b
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Registry_Write_Error.
push 0x7197b0
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 0x40c6b1
mov edx, dword [esp]
push edx
jmp 0x40c681
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40c687
mov eax, 1
pop ecx
ret

Function at 0x40c6d0
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x719368]
test eax, eax
je 0x40c6ed
mov eax, dword [0x71936c]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
mov esi, dword [0x45d4f8]
push edi
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x40c70f
pop edi
pop esi
pop ecx
ret
mov eax, dword [0x48835c]
test eax, eax
jne 0x40c769
cmp esi, 0x400
jb 0x40c725
mov esi, 0x400
xor ecx, ecx
test esi, esi
jle 0x40c75f
push ebp
mov eax, ecx
cdq
mov ebp, 0xb4
idiv ebp
mov al, byte [ecx + 0x45d4fc]
sub edx, 0x5a
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fsin
fstp dword [esp + 0xc]
mov dl, byte [esp + 0xc]
xor al, dl
mov byte [ecx + 0x45d4fc], al
inc ecx
cmp ecx, esi
jl 0x40c72c
pop ebp
mov dword [0x48835c], 1
push 0x45d4fc
push edi
call fcn.00408000
add esp, 8
mov dword [0x719368], edi
mov dword [0x71936c], edi
mov dword [0x719370], edi
mov dword [0x719374], edi
pop edi
mov dword [0x719388], 1
mov dword [0x719378], 0
mov eax, 1
pop esi
pop ecx
ret
Function at 0x40e630
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x18]
xor ecx, ecx
cmp edi, ecx
jne 0x40e65a
mov eax, dword [esp + 0x14]
shl eax, 4
mov dword [eax + 0x4fb024], ecx
pop edi
mov dword [eax + 0x4fb020], ecx
xor eax, eax
pop esi
add esp, 8
ret
mov esi, dword [esp + 0x14]
shl esi, 4
mov eax, dword [esi + 0x4fb024]
and eax, edi
cmp eax, edi
mov dword [esi + 0x4fb024], edi
jne 0x40e72c
mov eax, dword [esi + 0x4fb020]
cmp eax, ecx
je 0x40e72c
fld qword [0x4623b8]
cmp eax, 1
fcomp qword [0x458488]
fnstsw ax
jne 0x40e6e1
test ah, 0x40
jne 0x40e6b9
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 8]
fdiv qword [0x4623b8]
call sub.MSVCRT.dll__ftol
jmp 0x40e6bf
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x4fb028], eax
mov dword [esi + 0x4fb02c], 0x32
mov eax, edi
pop edi
mov dword [esi + 0x4fb020], 2
pop esi
add esp, 8
ret
test ah, 0x40
jne 0x40e702
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 8]
fdiv qword [0x4623b8]
call sub.MSVCRT.dll__ftol
jmp 0x40e708
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esi + 0x4fb028]
mov ecx, dword [esi + 0x4fb02c]
sub eax, edx
cmp eax, ecx
jb 0x40e724
mov dword [esi + 0x4fb020], 1
pop edi
xor eax, eax
pop esi
add esp, 8
ret
fld qword [0x4623b8]
fcomp qword [0x458488]
fnstsw ax
test ah, 0x40
jne 0x40e75b
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 8]
fdiv qword [0x4623b8]
call sub.MSVCRT.dll__ftol
jmp 0x40e761
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x4fb028], eax
mov dword [esi + 0x4fb02c], 0x12c
mov eax, edi
pop edi
mov dword [esi + 0x4fb020], 2
pop esi
add esp, 8
ret

Function at 0x40e950
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 0x40e988
lea ecx, [esp + 4]
push ecx
push 1
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
add esp, 0x98
ret
mov edx, dword [0x500378]
push edx
push 0x40e860
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x7199e4], eax
add esp, 0x98
ret
Function at 0x40ee40
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea eax, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push DirectSoundCreate
push ebx
push ebp
mov dword [esp + 0x28], 0
call fcn.00403c00
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x40ee82
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40eeae
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov ecx, dword [esp + 0x10]
push ebp
lea edx, [esi + 0x1c]
mov dword [esi + 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x18], ecx
mov dword [esi + 4], 0
call edi
push ebx
lea eax, [esi + 0x120]
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40eee7
mov ecx, dword [esp + 0x20]
mov dword [esi + 8], ecx
jmp 0x40eef0
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov dword [esi + 8], eax
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x40ed80
push 0
push 0
mov dword [esi], 1
mov dword [esi + 4], 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
test eax, eax
mov dword [esi + 0xc], eax
pop esi
jne 0x40ef22
pop edi
pop ebp
pop ebx
pop ecx
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x40f6c0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
mov dl, byte [eax]
sub esp, 0x128
push esi
inc eax
mov dword [ecx], eax
and edx, 0x3f
lea esi, [edx - 2]
cmp esi, 0x10
ja case.0x40f6e9.10
xor edx, edx
mov dl, byte [esi + 0x40f884]
jmp dword [edx*4 + 0x40f860]
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
pop esi
lea eax, [edx*4 + 0x512780]
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a658]
lea ecx, [eax + eax*4]
mov eax, dword [eax*4 + 0x6197c4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*8]
add ecx, edx
lea eax, [ecx*4 + 0x619fc8]
pop esi
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a658]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [edx + eax*8]
lea eax, [ecx*4 + 0x513720]
pop esi
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
pop esi
lea eax, [edx*4 + 0x60e6c0]
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
pop esi
lea eax, [edx + 0x4fcb60]
add esp, 0x128
ret
mov edx, dword [eax]
add eax, 4
mov dword [ecx], eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [ecx*4 + 0x714f68]
add eax, edx
pop esi
add esp, 0x128
ret
xor edx, edx
mov dx, word [eax]
add eax, 2
mov dword [ecx], eax
mov eax, dword [0x71a654]
pop esi
lea eax, [eax + edx*4]
add esp, 0x128
ret
lea edx, [esp + 0x2c]
mov dword [esp + 8], edx
mov dl, byte [eax]
test dl, dl
lea esi, [eax + 1]
mov dword [ecx], esi
je 0x40f7f3
mov esi, dword [ecx]
mov dl, byte [esi]
inc esi
test dl, dl
mov dword [ecx], esi
jne 0x40f7e8
push eax
lea eax, [esp + 0x30]
push 0x45d7b4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call section..text
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00428e70
mov eax, dword [esp + 0x24]
add esp, 0x20
pop esi
add esp, 0x128
ret
push str.Script_Error._GetVarAdr_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [0x7199b0]
push 0x30
push 0
push str.Script_Error._GetVarAdr_
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 4]
pop esi
add esp, 0x128
ret
Function at 0x410380
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [0x71a658]
push ebx
mov ecx, eax
push ebp
shl ecx, 4
push esi
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edi
push edx
call fcn.0040f8a0
mov ebp, eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edx
call fcn.0040f8a0
mov esi, eax
lea eax, [esi + 0x1f]
shr eax, 3
add esp, 8
lea ecx, [eax + esi + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push esi
lea edi, [ebx + 4]
push ebp
push edi
mov dword [ebx], esi
call fcn.00407c90
mov esi, 0x400
add esp, 0xc
cmp eax, esi
mov dword [esp + 0x14], eax
jae 0x4103f4
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x41042a
mov eax, ecx
cdq
mov ebp, 0xb4
idiv ebp
mov al, byte [edi + ecx]
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 [edi + ecx], al
inc ecx
cmp ecx, esi
jl 0x4103fa
mov eax, dword [esp + 0x14]
add eax, 4
push eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push ebx
push edx
call fcn.0040f8a0
add esp, 4
push eax
call fcn.004048a0
add esp, 0xc
test eax, eax
push ebx
jne 0x41046c
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x410480
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [0x71a658]
push ebx
mov ecx, eax
push ebp
shl ecx, 4
push esi
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edi
push edx
call fcn.0040f8a0
mov ebp, eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edx
call fcn.0040f8a0
mov esi, eax
lea eax, [esi + 0x1f]
shr eax, 3
add esp, 8
lea ecx, [eax + esi + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push esi
lea edi, [ebx + 4]
push ebp
push edi
mov dword [ebx], esi
call fcn.00407c90
mov ebp, eax
mov esi, 0x400
add esp, 0xc
cmp ebp, esi
mov dword [esp + 0x14], ebp
jae 0x4104f6
mov esi, ebp
xor ecx, ecx
test esi, esi
jle 0x41052c
mov eax, ecx
cdq
mov ebp, 0xb4
idiv ebp
mov al, byte [edi + ecx]
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 [edi + ecx], al
inc ecx
cmp ecx, esi
jl 0x4104fc
mov ebp, dword [esp + 0x14]
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edx
call fcn.0040f8a0
mov esi, eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edx
call fcn.0040f8a0
push ebp
push ebx
push eax
push esi
call fcn.004047f0
add esp, 0x18
test eax, eax
push ebx
jne 0x410584
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4105a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edx
call fcn.0040f8a0
add esp, 4
push eax
call fcn.00404110
mov esi, eax
add esp, 8
test esi, esi
jne 0x4105de
mov eax, 2
pop esi
add esp, 8
ret
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
push ebx
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edi
push edx
call fcn.0040f8a0
mov ebx, eax
mov eax, dword [esi]
mov edi, 0x400
add esp, 4
cmp eax, edi
mov dword [esp + 0xc], eax
jae 0x41060f
mov edi, eax
xor ecx, ecx
test edi, edi
jle 0x410645
push ebp
mov eax, ecx
cdq
mov ebp, 0xb4
idiv ebp
sub edx, 0x5a
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov dl, byte [esi + ecx + 4]
fsin
fstp dword [esp + 0x14]
mov al, byte [esp + 0x14]
xor dl, al
mov byte [esi + ecx + 4], dl
inc ecx
cmp ecx, edi
jl 0x410616
pop ebp
lea ecx, [esi + 4]
push ecx
push ebx
call fcn.00408000
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x71a658]
mov edx, dword [esp + 0xc]
mov ecx, eax
shl ecx, 4
push edx
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edx
call fcn.0040f1a0
add esp, 8
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x410690
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
sub esp, 8
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push esi
push edx
call fcn.0040f8a0
lea ecx, [esp + 8]
push ecx
push eax
call fcn.00404110
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4106cb
mov eax, 2
pop esi
add esp, 8
ret
mov eax, dword [esi]
push edi
mov edi, 0x400
cmp eax, edi
mov dword [esp + 8], eax
jae 0x4106dd
mov edi, eax
xor ecx, ecx
test edi, edi
jle 0x410717
push ebx
mov eax, ecx
cdq
mov ebx, 0xb4
idiv ebx
mov bl, byte [esi + ecx + 4]
sub edx, 0x5a
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fsin
fstp dword [esp + 0x10]
mov dl, byte [esp + 0x10]
xor bl, dl
mov byte [esi + ecx + 4], bl
inc ecx
cmp ecx, edi
jl 0x4106e4
mov eax, dword [esp + 0xc]
pop ebx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
lea eax, [esi + 4]
push eax
push edi
call fcn.00408000
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edi
push edx
call fcn.0040f1a0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edx
call fcn.0040f1a0
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x4108b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push esi
push edx
call fcn.0040f8a0
mov dword [esp + 0x14], eax
mov al, byte [0x71a66c]
xor esi, esi
add esp, 4
test al, al
mov dword [esp + 4], esi
je 0x4109aa
mov ecx, dword [reloc.DSOUND.dll_DirectSoundCreate]
lea eax, [esp + 8]
push eax
push 0x20019
push esi
push 0x71a66c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4109aa
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 0x410991
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x410991
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
call ebp
test eax, eax
je 0x410989
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 0x410946
jmp 0x410991
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 0x4109aa
mov dword [esp + 4], 0
mov eax, dword [0x71a658]
mov ecx, dword [esp + 4]
mov edx, eax
shl edx, 4
add edx, eax
push ecx
lea eax, [edx*4 + 0x714f74]
push eax
call fcn.0040f1a0
add esp, 8
xor eax, eax
pop esi
add esp, 0x118
ret

Function at 0x4145a0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edx
call fcn.0040f8a0
mov eax, dword [esp + eax*4 + 4]
push eax
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*4 + 0x714f74]
push edx
call fcn.0040f1a0
xor eax, eax
add esp, 0x2c
ret

Function at 0x414c50
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x71a658]
mov ecx, eax
shl ecx, 4
add ecx, eax
push esi
lea edx, [ecx*4 + 0x714f74]
push edx
xor esi, esi
call fcn.0040f8a0
mov ecx, dword [0x71a658]
add esp, 4
sub eax, esi
je 0x414c84
dec eax
jne 0x414c95
mov esi, dword [0x461ff0]
jmp 0x414c95
mov eax, ecx
shl eax, 4
add eax, ecx
mov esi, dword [eax*4 + 0x714f78]
and esi, 4
mov eax, dword [ecx*4 + 0x6197c4]
dec eax
mov dword [ecx*4 + 0x6197c4], eax
mov edx, eax
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea edx, [edx + ecx*8]
mov dword [edx*4 + 0x619fc8], esi
pop esi
jne 0x414cdc
push str.Not_Enough_Stack_Area.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x7199b0]
push 0x30
push 0
push str.Not_Enough_Stack_Area.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
ret