joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43af9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x43afaa
xor eax, eax
jmp 0x43b173
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x43b12b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46beac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46beac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46beac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46beac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46beac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46beac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46beac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x46beac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x43afb3
cmp dword [ebp + 0x10], 0
je 0x43b16d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x46beac]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x43b131
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x4bfd7d
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004bfdfc
jae 0x4bfd89
xor ecx, ecx
call fcn.004bfdfc
jae 0x4bfdb3
xor eax, eax
call fcn.004bfdfc
jae 0x4bfdc4
mov al, 0x10
call fcn.004bfdfc
adc al, al
jae 0x4bfda5
jne 0x4bfdf1
stosb byte es:[edi], al
jmp 0x4bfd8a
call fcn.004bfe08
dec ecx
loop 0x4bfdd0
mov eax, ebp
call fcn.004bfe06
jmp 0x4bfdf2
lodsb al, byte [esi]
shr eax, 1
je 0x4bfe18
adc ecx, 2
mov ebp, eax
jmp 0x4bfdf2
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004bfe06
cmp eax, 0x7d00
jae 0x4bfdf0
cmp eax, 0x500
jae 0x4bfdf1
cmp eax, 0x7f
ja 0x4bfdf2
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4bfd8a
pop ebp
ret 8
Function at 0x402591
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x138
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp + 0xb4], eax
push esi
xor esi, esi
cmp dword [0x48b9f4], esi
jne 0x402662
push ebx
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
xor ebx, ebx
push str.SoftwareMicrosoftPlus_ThemesCurrent
inc ebx
push SysReAllocStringLen
mov dword [0x48b9f4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402661
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402658
push edi
push 5
pop ecx
mov esi, str.Windows_Classic.theme
lea edi, [ebp + 0x9c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x74]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
mov edi, eax
lea eax, [ebp + 0x9c]
push eax
call esi
cmp edi, eax
jl 0x402657
lea eax, [ebp + 0x9c]
push eax
push eax
call esi
sub edi, eax
lea eax, [ebp + edi - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402657
mov dword [0x48b9f0], ebx
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0xb4]
mov eax, dword [0x48b9f0]
xor ecx, ebp
pop esi
call fcn.0044b821
add ebp, 0xb8
leave
ret

Function at 0x403c67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.004293d6
movzx ebx, word [esp + 0x14]
mov esi, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 2
push ebx
push esi
call ebp
mov edi, eax
test edi, edi
jne 0x403c9c
push 2
push ebx
xor esi, esi
push esi
call ebp
mov edi, eax
test edi, edi
jne 0x403c9c
xor eax, eax
jmp 0x403ccb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403c98
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x403c98
push eax
call fcn.0040255e
add esp, 4
cmp ax, 0x10
jne 0x403c98
push 0
push edi
push esi
call fcn.0043197b
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x404f67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.004293d6
mov eax, dword [eax + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, 0xf1
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call esi
test eax, eax
jne 0x404fa6
and dword [ebp - 4], eax
push ebx
push dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x404fa6
xor eax, eax
jmp 0x405052
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404f9f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404f9f
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004279df
mov ebx, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x404ff8
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [ebx + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x404fe7
movzx eax, word [esi + 6]
push eax
push ebx
mov ecx, edi
call fcn.00431544
push ebx
mov dword [ebp - 4], eax
call fcn.004279da
cmp dword [ebp - 4], 0
pop ecx
je 0x40504f
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea ebx, [ecx + 7]
push eax
lea edx, [eax + 7]
push ebx
push edx
mov ecx, edi
call fcn.00431c07
movzx eax, word [esi + 2]
push dword [ebp + 8]
mov dword [edi + 0xb8], eax
movzx eax, word [esi + 4]
mov ecx, edi
mov dword [edi + 0xbc], eax
call fcn.00403cd5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ae96
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
cmp eax, dword [esp + 0xc]
push esi
jne 0x40aec9
cmp dword [esp + 0xc], 0
jne 0x40aecd
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test al, al
js 0x40aec9
push 0x10
call esi
test al, al
js 0x40aec9
push 0x12
call esi
test al, al
jns 0x40aedb
xor eax, eax
pop esi
ret
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x40aec9
xor eax, eax
inc eax
pop esi
ret

Function at 0x40af67
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 5
xor eax, eax
push eax
push eax
push esi
push str.explore
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esi - 0x10]
pop esi
jmp fcn.004010b0

Function at 0x40af88
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push 5
xor eax, eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esi - 0x10]
pop esi
jmp fcn.004010b0
Function at 0x40bc64
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1a0]
push eax
movzx eax, word [ebp + 0x1a4]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, esi
je 0x40bd4c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 0x7c], eax
je 0x40bd4c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40bd4c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x40bd4c
lea eax, [ebp - 0x74]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x90]
push eax
push esi
push str.ezcore
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push 0x100
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bd4c
push esi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x90]
push eax
jmp 0x40bd51
push 0x46a175
mov ecx, edi
call fcn.0040203c
mov ecx, dword [ebp + 0x194]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b821
add ebp, 0x198
leave
ret

Function at 0x40c012
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov ecx, dword [ebp + 0x9c]
mov eax, dword [ebp + 0x98]
push esi
mov esi, dword [ebp + 0xa0]
push edi
lea edx, [ebp - 0x7c]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x40c084
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push edi
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x8c]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0044b821
add ebp, 0x90
leave
ret 0xc
Function at 0x40daf8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
add edi, 0x24
push edi
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x12
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40db93
push 4
lea eax, [ebp - 0x18]
push str.VBRI
push eax
call fcn.0044cd51
add esp, 0xc
test eax, eax
jne 0x40db93
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp - 9]
mov dword [esi + 0x100], eax
movsx eax, byte [ebp - 0xa]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 8]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 7]
shl eax, 8
or eax, ecx
mov dword [esi + 0x110], eax
xor eax, eax
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], 2
inc eax
jmp 0x40db95
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b821
leave
ret 8

Function at 0x40dba6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
add edi, 4
cmp dword [esi + 0x38], 3
jne 0x40dbd5
cmp dword [esi + 0x4c], 3
je 0x40dbe0
add edi, 0x20
jmp 0x40dbe3
cmp dword [esi + 0x4c], 3
jne 0x40dbe0
add edi, 9
jmp 0x40dbe3
add edi, 0x11
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x12
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40dc62
cmp dword [ebp - 0x1c], 0x12
jne 0x40dc62
push 4
lea eax, [ebp - 0x18]
push str.Xing
push eax
call fcn.0044cd51
add esp, 0xc
test eax, eax
jne 0x40dc62
movsx ecx, byte [ebp - 0x10]
movzx edx, byte [ebp - 0xf]
mov eax, dword [ebp + 0xc]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 0xe]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 0xd]
mov dword [esi + 0x100], eax
xor eax, eax
inc eax
shl ecx, 8
or ecx, edx
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], eax
mov dword [esi + 0x110], ecx
jmp 0x40dc64
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b821
leave
ret 8
Function at 0x40df59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0
push 0
push 0
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x14], 0xa
jne 0x40dfe6
push 3
lea eax, [ebp - 0x10]
push 0x46c6d0
push eax
call fcn.0044cd51
add esp, 0xc
test eax, eax
jne 0x40dfe6
cmp byte [ebp - 0xd], 3
je 0x40dfb9
cmp byte [ebp - 0xd], 4
jne 0x40dfe6
movzx ecx, byte [ebp - 0xa]
movzx eax, byte [ebp - 9]
shl ecx, 7
or ecx, eax
movzx eax, byte [ebp - 8]
shl ecx, 7
or ecx, eax
movzx eax, byte [ebp - 7]
shl ecx, 7
or ecx, eax
add ecx, 0xa
cmp dword [ebx + 0x14], ecx
sbb eax, eax
not eax
and eax, ecx
jmp 0x40dfe8
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b821
leave
ret 4
Function at 0x40e2f1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov ebx, ecx
jle 0x40e311
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebx + 0x14]
xor edx, edx
push 0xa
mov eax, ecx
pop esi
div esi
mov edx, 0x186a0
mov dword [ebp + 0x10], edi
cmp eax, edx
jae 0x40e32e
mov dword [ebp - 4], edx
jmp 0x40e334
shr ecx, 2
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 0xc]
push 4
push edi
push esi
call fcn.0044b3e0
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40e3ab
cmp dword [ebp - 8], 4
jne 0x40e3ca
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
ja 0x40e3ca
push 1
push 0
push 0xfffffffffffffffd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov ecx, ebx
call fcn.0040daa1
test eax, eax
je 0x40e3a9
mov eax, dword [esi]
mov ecx, dword [ebx + 0x34]
mov edx, eax
xor edx, ecx
test edx, 0xffe00000
jne 0x40e3a9
mov edx, eax
xor edx, ecx
test edx, 0x180000
jne 0x40e3a9
mov edx, eax
xor edx, ecx
test edx, 0x60000
jne 0x40e3a9
xor eax, ecx
test ax, 0xc00
je 0x40e3d3
push 0
lea eax, [ebp - 8]
push eax
push 4
push esi
push dword [ebp + 8]
call edi
push 4
push esi
mov ecx, ebx
mov dword [ebp + 0xc], eax
call fcn.0040df1b
cmp dword [ebp + 0xc], 0
jne 0x40e34c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
inc eax
jmp 0x40e3cc
Function at 0x40fd04
Capabilities:
Link many functions at runtime

Disassembly:
push 4
mov eax, 0x4633fb
call fcn.0044b830
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x40fd4d
push str.WAVE
lea eax, [ebp + 8]
push 0xc8
push eax
call fcn.0040bc64
add esp, 0xc
and dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004056b8
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004010b0
push ecx
mov dword [ebp - 0x10], esp
mov ecx, esp
push esi
call fcn.0040516f
call fcn.0040afa9
mov edi, eax
test edi, edi
pop ecx
je 0x40ff29
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.BASS_GetConfig
push edi
call esi
push str.BASS_SetConfig
push edi
mov dword [0x48bb68], eax
call esi
push str.BASS_ErrorGetCode
push edi
mov dword [0x48bb6c], eax
call esi
push str.BASS_Free
push edi
mov dword [0x48bb5c], eax
call esi
push str.BASS_GetCPU
push edi
mov dword [0x48bb4c], eax
call esi
push str.BASS_GetDevice
push edi
mov dword [0x48bb3c], eax
call esi
push str.BASS_GetDeviceDescription
push edi
mov dword [0x48bb50], eax
call esi
push str.BASS_GetDSoundObject
push edi
mov dword [0x48bb60], eax
call esi
push str.BASS_GetInfo
push edi
mov dword [0x48bb48], eax
call esi
push str.BASS_GetVersion
push edi
mov dword [0x48bb44], eax
call esi
push str.BASS_GetVolume
push edi
mov dword [0x48bb64], eax
call esi
push str.BASS_Init
push edi
mov dword [0x48bb28], eax
call esi
push str.BASS_Pause
push edi
mov dword [0x48bb58], eax
call esi
push str.BASS_SetDevice
push edi
mov dword [0x48bb30], eax
call esi
push str.BASS_SetVolume
push edi
mov dword [0x48bb54], eax
call esi
push str.BASS_Start
push edi
mov dword [0x48bb2c], eax
call esi
push str.BASS_Stop
push edi
mov dword [0x48bb38], eax
call esi
push str.BASS_Update
push edi
mov dword [0x48bb34], eax
call esi
push str.BASS_StreamCreate
push edi
mov dword [0x48bb40], eax
call esi
push str.BASS_StreamCreateFile
push edi
mov dword [0x48bac4], eax
call esi
mov dword [0x48bac0], eax
push str.BASS_StreamFree
push edi
call esi
push str.BASS_StreamGetFilePosition
push edi
mov dword [0x48bab4], eax
call esi
push str.BASS_StreamGetTags
push edi
mov dword [0x48baac], eax
call esi
push str.BASS_ChannelGetPosition
push edi
mov dword [0x48bab0], eax
call esi
push str.BASS_ChannelSetPosition
push edi
mov dword [0x48ba30], eax
call esi
push str.BASS_ChannelGetLength
push edi
mov dword [0x48ba34], eax
call esi
push str.BASS_ChannelGetAttributes
push edi
mov dword [0x48ba38], eax
call esi
push str.BASS_ChannelSetAttributes
push edi
mov dword [0x48ba54], eax
call esi
push str.BASS_ChannelPause
push edi
mov dword [0x48ba58], eax
call esi
push str.BASS_ChannelStop
push edi
mov dword [0x48ba5c], eax
call esi
push str.BASS_ChannelPlay
push edi
mov dword [0x48ba60], eax
call esi
push str.BASS_ChannelIsActive
push edi
mov dword [0x48ba64], eax
call esi
push str.BASS_ChannelSeconds2Bytes
push edi
mov dword [0x48ba74], eax
call esi
push str.BASS_ChannelBytes2Seconds
push edi
mov dword [0x48ba7c], eax
call esi
mov dword [0x48ba80], eax
mov eax, edi
call fcn.0044b908
ret 4
Function at 0x41e7fe
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
xor edi, edi
cmp edx, edi
je 0x41e83c
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x41e83c
cmp dword [esp + 0x18], edi
jle 0x41e83c
mov eax, dword [esp + 0x10]
cmp eax, edi
jle 0x41e834
mov ecx, esi
sub edx, esi
mov edi, eax
push ebx
mov bl, byte [edx + ecx]
xor bl, 0x45
mov byte [ecx], bl
inc ecx
dec eax
jne 0x41e827
pop ebx
mov byte [edi + esi], 0
mov eax, esi
jmp 0x41e83e
xor eax, eax
pop edi
pop esi
ret

Function at 0x41f0b5
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x19c]
mov esi, 0x102
xor ebx, ebx
push esi
lea eax, [ebp - 0x76]
push ebx
push eax
mov word [ebp - 0x78], bx
call fcn.0044b3e0
push esi
lea eax, [ebp + 0x8e]
push ebx
push eax
mov word [ebp + 0x8c], bx
call fcn.0044b3e0
add esp, 0x18
cmp edi, ebx
je 0x41f154
cmp byte [edi], bl
je 0x41f154
add esi, 2
push esi
lea eax, [ebp - 0x78]
push eax
push 0x22
push 0x46e900
call fcn.0041e7fe
push esi
lea eax, [ebp + 0x8c]
push eax
push 3
push 0x46e924
call fcn.0041e7fe
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041f014
mov eax, dword [eax]
add esp, 0x28
lea ecx, [ebp - 0x80]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010b0
cmp esi, ebx
jne 0x41f154
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041f014
push edi
mov esi, eax
call fcn.0044ecc3
mov esi, dword [esi]
add esp, 0xc
inc eax
push eax
push edi
push 1
push ebx
push esi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010b0
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x41f156
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b821
add ebp, 0x194
leave
ret
Function at 0x41f1d8
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x19c]
mov esi, 0x102
xor ebx, ebx
push esi
lea eax, [ebp - 0x76]
push ebx
push eax
mov word [ebp - 0x78], bx
call fcn.0044b3e0
push esi
lea eax, [ebp + 0x8e]
push ebx
push eax
mov word [ebp + 0x8c], bx
call fcn.0044b3e0
add esp, 0x18
cmp edi, ebx
je 0x41f277
cmp byte [edi], bl
je 0x41f277
add esi, 2
push esi
lea eax, [ebp - 0x78]
push eax
push 0x22
push 0x46e900
call fcn.0041e7fe
push esi
lea eax, [ebp + 0x8c]
push eax
push 5
push str.___E
call fcn.0041e7fe
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041f014
mov eax, dword [eax]
add esp, 0x28
lea ecx, [ebp - 0x80]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010b0
cmp esi, ebx
jne 0x41f277
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041f014
push edi
mov esi, eax
call fcn.0044ecc3
mov esi, dword [esi]
add esp, 0xc
inc eax
push eax
push edi
push 1
push ebx
push esi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010b0
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x41f279
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b821
add ebp, 0x194
leave
ret