joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a6a1
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4db12c
call fcn.004b36d0
sub esp, 0x58
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x68], ebx
mov dword [ebp - 4], ebx
je 0x41a758
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.004ac7b2
mov word [ebp - 0x64], bx
push 8
lea ecx, [ebp - 0x4c]
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004ac4ff
mov esi, 0x522f00
push 8
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004ac4ff
push 8
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004ac4ff
push 3
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004ac5b0
lea eax, [ebp - 0x3c]
mov ecx, dword [edi + 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call fcn.0044533d
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
call esi
lea eax, [ebp - 0x4c]
push eax
call esi
lea eax, [ebp - 0x64]
push eax
call esi
pop esi
jmp 0x41a77b
call fcn.00411c61
cmp eax, ebx
jne 0x41a765
xor eax, eax
jmp 0x41a768
mov eax, dword [eax + 0x1c]
push 5
push ebx
push ebx
push dword [ebp + 8]
push 0x507ce8
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004cf46d
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x425bc1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor ebx, ebx
push str.DDRAW.DLL
mov dword [ebp - 0xc], ebx
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x425bea
push str.Couldnt_LoadLibrary_DDraw_r_n
jmp 0x425c26
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.DirectDrawCreate
push eax
call esi
cmp eax, ebx
jne 0x425c0c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_GetProcAddress_DirectDrawCreate_r_n
jmp 0x425c26
lea ecx, [ebp - 0xc]
push ebx
push ecx
push ebx
call eax
test eax, eax
jge 0x425c33
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_create_DDraw_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
jmp 0x425d3a
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push 0x4f2e74
push 1
push ebx
push 0x4f2e84
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x425c76
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_create_CLSID_DirectMusic_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x600
jmp 0x425d3a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.DirectDrawCreateEx
push dword [ebp - 4]
call esi
cmp eax, ebx
jne 0x425ca3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_GetProcAddress_DirectDrawCreateEx_r_n
jmp 0x425cc2
push ebx
lea ecx, [ebp - 0x10]
push 0x4f2eb4
push ecx
push ebx
call eax
test eax, eax
jge 0x425ccf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_DirectDrawCreateEx_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x601
jmp 0x425d3a
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push str.D3D8.DLL
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x425d01
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_LoadLibrary_D3D8.DLL_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x700
jmp 0x425d3a
push str.dpnhpast.dll
call edi
cmp eax, ebx
jne 0x425d25
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push str.Couldnt_LoadLibrary_dpnhpast.dll_r_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x800
jmp 0x425d3a
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
call esi
push dword [ebp - 0x14]
call esi
mov eax, 0x801
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004b36f0
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
push dword [ebp + 0xc]
mov word [ebp - 0x14], 0xa
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop esi
leave
ret
Function at 0x4403fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x440415
test al, 0x10
je 0x440415
push 1
pop esi
jmp 0x440417
xor esi, esi
lea ecx, [esp + 8]
call fcn.004cf46d
mov eax, esi
pop esi
ret 4
Function at 0x446720
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x4468a5
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x4468a5
push ebp
push 0xb8
call fcn.004cfa3c
add esp, 4
cmp eax, ebx
je 0x446853
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov ebp, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], ebp
mov ebp, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], ebp
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x446855
xor esi, esi
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x44687c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x4fff50
push ecx
mov dword [esp + 0x1c], eax
call fcn.004b5634
push 8
call fcn.004cfa3c
add esp, 4
mov ebx, eax
lea ebp, [edi + 8]
push ebp
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [edi + 4]
push ebp
mov dword [ebx + 4], edx
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4470a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x52b380]
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
mov ebp, ecx
je 0x447236
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x447236
push edi
push 0xb8
call fcn.004cfa3c
add esp, 4
cmp eax, ebx
je 0x4471d6
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov edi, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], edi
mov edi, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x4471d8
xor esi, esi
mov eax, dword [0x52b380]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x447202
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x4fff50
push ecx
mov dword [esp + 0x1c], eax
call fcn.004b5634
push 8
call fcn.004cfa3c
add esp, 4
mov edi, eax
push 0x52b388
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x52b384]
push 0x52b388
mov dword [edi + 4], edx
mov dword [0x52b384], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov dword [ebp], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x447250
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x52b380]
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
je 0x4473e3
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x4473e3
push edi
push 0xb8
call fcn.004cfa3c
add esp, 4
cmp eax, ebx
je 0x447383
mov cl, byte [esp + 0xf]
mov dl, byte [esp + 0xf]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0xf]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0xf]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x14], bl
mov word [esp + 0x16], bx
mov edi, dword [esp + 0x14]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
mov dword [esi], edi
mov edi, dword [esp + 0x18]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x447385
xor esi, esi
mov eax, dword [0x52b380]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x4473af
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x4fff50
push ecx
mov dword [esp + 0x18], eax
call fcn.004b5634
push 8
call fcn.004cfa3c
add esp, 4
mov edi, eax
push 0x52b388
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x52b384]
push 0x52b388
mov dword [edi + 4], edx
mov dword [0x52b384], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x447e70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4de693
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [eax + 0x10c]
test ebp, ebp
mov dword [esp + 0x2c], ebp
je 0x44804f
push edi
push esi
push ebx
jmp 0x447ea8
mov ebp, dword [esp + 0x38]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x44803d
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
call fcn.004cfa3c
mov ecx, dword [ebp + 0xc]
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov cl, byte [esp + 0x38]
mov byte [esp + 0x18], cl
mov edi, ebx
mov byte [ebx + eax], 0
xor eax, eax
or ecx, 0xffffffff
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], eax
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00448190
test al, al
je 0x447f2e
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00448170
mov eax, dword [0x52b380]
xor ebp, ebp
xor edi, edi
cmp eax, 0xffffffff
mov dword [esp + 0x30], ebp
je 0x447fde
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
cmp edi, ebp
jne 0x447fde
push 0xb8
call fcn.004cfa3c
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x30], 1
je 0x447f7a
mov ecx, eax
call fcn.004464f0
mov edi, eax
jmp 0x447f7c
xor edi, edi
mov eax, dword [0x52b380]
push edi
push eax
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebp
jne 0x447fab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x4fff50
push ecx
mov dword [esp + 0x18], eax
call fcn.004b5634
push 8
call fcn.004cfa3c
add esp, 4
mov esi, eax
push 0x52b388
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x52b384]
push 0x52b388
mov dword [esi + 4], edx
mov dword [0x52b384], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov edx, dword [edi + 0x90]
lea ecx, [edi + 0x88]
lea eax, [esp + 0x18]
push eax
push 1
push edx
call fcn.00448490
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
cmp eax, ebp
je 0x448024
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x44801b
cmp al, 0xff
je 0x44801b
dec al
mov byte [ecx], al
jmp 0x448024
push ecx
call fcn.004cfa65
add esp, 4
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.004cfa65
mov ebp, dword [esp + 0x3c]
add esp, 4
mov ebp, dword [ebp]
test ebp, ebp
mov dword [esp + 0x38], ebp
jne 0x447ea4
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x453e80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x453eb0
push esi
call fcn.0045d810
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x453ea9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x453f33
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x453f1f
mov eax, dword [esi + 8]
test eax, eax
je 0x453ed4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x453f1b
cmp eax, 2
je 0x453f1f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x453ec7
cmp eax, 3
je 0x453efa
cmp eax, 1
jne 0x453ec7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x453ec7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x453ec7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00453f60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x453f53
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00453f60
add esp, 4
pop esi
ret

Function at 0x47a97c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x47a9c3
cmp edx, 0x10
jl 0x47a9af
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x47a99c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x47a9c3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x47a9bb
and edx, 3
cmp edx, 3
jne 0x47a9d7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x47a9dc
cmp edx, 2
jne 0x47a9e8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x47a9ed
cmp edx, 1
jne 0x47a9f3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x48582b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5122a4]
cmp dword [eax + 4], 0xc
jne 0x48583e
push 1
pop eax
pop ebp
ret
lea eax, [ebp + 0xc]
push edi
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x485879
test eax, eax
je 0x485875
cmp eax, 1
je 0x485871
cmp eax, 2
jne 0x485882
push 0xf
jmp 0x48587b
push 2
jmp 0x48587b
push 0
jmp 0x48587b
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x485887
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x5122a4]
cmp dword [eax + 4], 0xc
je 0x48589e
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
ret

Function at 0x48b2a6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionMultimediaMIDIMap
push SysReAllocString
mov dword [ebp - 0xc], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48b3e6
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.CurrentInstrument
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x48b31a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.szPname
push dword [ebp - 4]
call esi
cmp eax, edi
jne 0x48b3e6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], edi
mov esi, 0x134
push esi
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.004b36f0
mov eax, dword [0x545ee4]
add esp, 0xc
lea edx, [ebp - 0x140]
mov dword [ebp - 0x140], esi
mov ecx, dword [eax]
push edx
push dword [ebp - 8]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x48b3ac
cmp dword [ebp - 0x128], 1
jne 0x48b3ac
push edi
push edi
lea eax, [ebp - 0x340]
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea eax, [ebp - 0x240]
push eax
call fcn.004b5a30
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.004b71b0
add esp, 0x10
test eax, eax
je 0x48b3b9
inc dword [ebp - 8]
cmp ebx, 1
je 0x48b3d8
jmp 0x48b32b
lea eax, [ebp - 0x138]
push 0x10
push eax
push dword [ebp + 8]
call fcn.004b3cb0
mov eax, dword [0x5122a4]
add esp, 0xc
test byte [eax + 8], 1
je 0x48b3e6
mov eax, dword [0x545ee4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49e590
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
xor ebx, ebx
cmp dword [0x55ec44], ebx
jne 0x49e6c3
mov eax, dword [0x55ec40]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
jne 0x49e5c5
push str.dsound.dll
call edi
mov dword [0x55ec40], eax
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.DirectSoundCreate8
push eax
call esi
cmp eax, ebx
mov dword [0x55ec64], eax
jne 0x49e5ee
push str.DirectSoundCreate
push dword [0x55ec40]
call esi
mov dword [0x55ec5c], eax
push str.DirectSoundEnumerateA
push dword [0x55ec40]
call esi
cmp dword [0x55ec64], ebx
mov dword [0x55ec60], eax
setne al
push eax
push dword [0x55ec40]
call fcn.004a5798
cmp dword [0x55ec64], ebx
pop ecx
pop ecx
je 0x49e68d
lea eax, [ebp - 0x400]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x49e681
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.004b4df0
lea eax, [ebp - 0x200]
push str.d3d9.dll
push eax
call fcn.004b4e00
push ebx
lea eax, [ebp - 0x200]
push ebx
push eax
call fcn.0048ab3a
add esp, 0x1c
cmp eax, ebx
je 0x49e6b7
push eax
call fcn.0048acbd
pop ecx
mov dword [0x518a3c], 9
jmp 0x49e6b7
mov dword [0x518a3c], 8
jmp 0x49e6b7
push str.ddraw.dll
call edi
mov edi, eax
cmp edi, ebx
je 0x49e6b7
push str.DirectDrawCreateEx
push edi
call esi
test eax, eax
je 0x49e6b0
mov dword [0x518a3c], 7
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
mov dword [0x55ec44], 1
pop esi
pop ebx
leave
ret

Function at 0x4a0000
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x4a00a0
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x4a0052
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x51907c]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4a0033
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x4a007b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x51907c]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4a005e
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret