joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a9d0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
xor eax, eax
cmp dword [ebp + 8], eax
push edi
mov esi, ecx
je 0x46aad2
cmp dword [esi + 0x5c], eax
je 0x46aad2
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x419
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esi + 0x64]
sub edi, dword [esi + 0xd8]
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xe0]
mov ebx, dword [esi + 0xe4]
sub edi, eax
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0xdc]
sub eax, ecx
mov ecx, dword [esp + 0x20]
add ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
add ecx, ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
sub ecx, dword [esi + 0xe8]
sub ecx, edx
mov edx, dword [esp + 0x2c]
sub edx, dword [esi + 0xec]
sub ecx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
sub edx, ebx
mov ebx, edx
mov edx, dword [esp + 0x24]
sub ebx, edx
cmp eax, ebx
jg 0x46aa8b
mov dword [esp + 0x10], eax
jmp 0x46aa9b
mov ebx, dword [esp + 0x14]
sub ebx, dword [esi + 0xe4]
sub ebx, edx
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0xc]
neg ebx
sbb bl, bl
mov edx, dword [ebp + 8]
mov edx, dword [edx + 4]
and bl, 0x81
add bl, 0xff
add esi, 0x58
push ebx
push eax
mov eax, dword [esi + 0x7c]
push edi
push eax
mov eax, dword [esi + 0x78]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push ecx
push eax
push edx
call fcn.004056e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x473000
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.Mutex_B945EE5C_6F0A_4776_94CD_E9C1742AED5A
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47302a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x4737c0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.00505eee
cmp dword [edi + 0xb8], 0
jne 0x4737ec
cmp dword [esp + 0x10], 0
je 0x4737ec
mov eax, dword [edi]
mov edx, dword [eax + 0x164]
mov ecx, edi
call edx
mov dword [edi + 0xb8], eax
lea eax, [edi + 0x120]
test eax, eax
je 0x47384f
cmp dword [eax + 0x20], 0
je 0x47384f
fld qword [0x5c1020]
fmul qword [0x587948]
call fcn.00530bd0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [edi + 0x140]
push 0
push 0x418
push eax
call esi
mov ecx, dword [edi + 0x140]
push 0
push 2
push 0x415
push ecx
call esi
add eax, 0xbb8
movzx edx, ax
mov eax, dword [edi + 0x140]
push edx
push 2
push 0x403
push eax
call esi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x473893
cmp dword [edi + 0xe4], 0
ja 0x473868
cmp dword [edi + 0xd0], 0
je 0x473893
cmp dword [esp + 0x10], 0
je 0x473882
lea esi, [edi + 0xbc]
lea ebx, [eax + 0x17fc]
call fcn.00465550
jmp 0x473893
add eax, 0x17fc
lea ebx, [edi + 0xbc]
push eax
call fcn.00465590
cmp dword [edi + 0x19c], 0
jle 0x47397c
cmp dword [edi + 0x1b0], 0
jne 0x4738bd
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x1b0], eax
cmp dword [esp + 0x10], 0
je 0x473914
push 0
push 4
push 0
push 0
push edi
push 0x473da0
call fcn.005100c3
mov esi, eax
test esi, esi
je 0x47397c
push 2
push 0
push 0
add edi, 0x1ac
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, dword [esi + 0x2c]
push eax
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
ret 8
cmp dword [edi + 0x1ac], 0
mov dword [esp + 0x10], 0
je 0x47397c
mov eax, dword [edi + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [edi + 0x1ac]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x473961
cmp dword [esp + 0x10], 0x103
jne 0x473961
mov eax, dword [edi + 0x1ac]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x1ac]
test eax, eax
je 0x47397c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1ac], 0
pop edi
pop esi
pop ebx
ret 8
Function at 0x475700
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x553a34
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
mov ecx, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.0050acfd
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esi], vtable.CSilencePlayer.0
mov dword [esi + 0x20], vtable.CSilencePlayer::XNotifyClient.0
call fcn.0050d22b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x475791
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
lea ebp, [esi + 0x38]
mov dword [ebp], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov byte [esp + 0x34], 4
mov dword [esi + 0x44], edi
lea edi, [esi + 0x48]
mov ebx, 4
lea esp, [esp]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x4757c0
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4757e4
xor eax, eax
jmp 0x4757ff
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4757f0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x24]
call fcn.00402fc0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ebp
push 0x56b830
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x2c]
push 1
mov dword [esi + 0x2c], edx
push 0
mov dword [esi + 0x30], eax
push 0x56b7e0
mov dword [esi + 0x34], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4758b9
mov ebp, dword [ebp]
mov edx, dword [ebp]
lea eax, [esi + 0x20]
push eax
mov eax, dword [edx + 0x18]
push ebp
call eax
test eax, eax
jl 0x4758b9
push 0
push 4
push 0
push 0
push esi
push 0x475de0
call fcn.005100c3
mov edi, eax
test edi, edi
je 0x4758b9
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea eax, [esi + 0x44]
push eax
call ebx
mov ecx, dword [edi + 0x2c]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
call fcn.00475d20
test eax, eax
je 0x4758b9
mov eax, esi
call fcn.00475d20
test eax, eax
je 0x4758b9
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4758b9
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0052944d
add esp, 0x28
ret 0x14
Function at 0x480d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
push 0x48
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
mov esi, ecx
call fcn.0052d8f0
add esp, 0xc
call fcn.0050b8e1
mov eax, dword [eax + 8]
push str.WAVE
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test ebx, ebx
mov edi, eax
je 0x480ec1
test edi, edi
je 0x480ec1
call fcn.0050b8e1
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
call fcn.0050b8e1
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], edi
call dword [sym.imp.WINMM.dll_mmioOpenW]
push 0x20
push 0
lea ebx, [esi + 0x1b0]
mov edi, eax
push ebx
push edi
mov dword [esi + 0x1b8], 0x45564157
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
jne 0x480eb8
push 0x10
lea eax, [esi + 0x19c]
push ebx
push eax
push edi
mov dword [eax], 0x20746d66
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
push 0
jne 0x480eba
lea eax, [esi + 0x19c]
push eax
push edi
call dword [sym.imp.WINMM.dll_mmioAscend]
push 0x10
lea eax, [esi + 0x188]
push ebx
push eax
push edi
mov dword [eax], 0x61746164
call dword [sym.imp.WINMM.dll_mmioDescend]
test eax, eax
push 0
jne 0x480eba
lea eax, [esi + 0x188]
push eax
push edi
call dword [sym.imp.WINMM.dll_mmioAscend]
mov edx, dword [esi + 0x1a8]
push 0
push edx
push edi
call dword [sym.imp.WINMM.dll_mmioSeek]
mov eax, dword [esi + 0x1a0]
push eax
lea ecx, [esi + 0x160]
push ecx
push edi
call dword [sym.imp.WINMM.dll_mmioRead]
cmp dword [esi + 0x1a0], eax
jne 0x480eb8
mov ebx, 1
cmp word [esi + 0x162], bx
jne 0x480eb8
cmp word [esi + 0x16e], 0x10
jne 0x480eb8
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x18c]
push eax
push esi
mov dword [esi + 0x84], edx
call fcn.00480ed0
test eax, eax
jne 0x480e9d
push eax
push edi
call dword [sym.imp.WINMM.dll_mmioClose]
call fcn.00481340
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x80], ebx
mov dword [esi + 0x8c], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x480ed0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea esi, [ebp + 0xc]
push esi
push 0x4811e0
call sub.DSOUND.dll_DirectSoundEnumerateW
cmp dword [esi], 0
je 0x480f59
mov ebx, ebp
call fcn.00481300
test eax, eax
je 0x480f59
mov ebx, dword [esp + 0x18]
mov ecx, ebp
call fcn.00480f70
test eax, eax
je 0x480f59
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
lea esi, [ebp + 0x48]
push 0
push 0
push 0
push 0
call ebx
test eax, eax
mov dword [esi], eax
je 0x480f59
add edi, 1
add esi, 4
cmp edi, 4
jl 0x480f10
push 0
push 0
push 0
push 0
call ebx
test eax, eax
mov dword [ebp + 0x44], eax
je 0x480f59
lea eax, [ebp + 0x5c]
push eax
push 0
push ebp
push 0x481130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x58], eax
jne 0x480f62
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

Function at 0x485380
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5579b1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
sub eax, 0x10
push eax
call fcn.00402cf0
add eax, 0x10
add esp, 4
mov dword [esi], eax
push 1
mov dword [esp + 0x1c], ebx
push 0x570214
mov ecx, esi
mov dword [esp + 0x14], 1
call fcn.0040bfc0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00485100
mov dword [esp + 0x18], 1
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0040bfc0
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485436
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 0x14
Function at 0x4860d0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
mov eax, 0x2006c
call fcn.00530550
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x20064], eax
push esi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
xor edi, edi
push str.SRSEndpointIsInitialized
mov dword [esp + 0x10], edi
lea esi, [esp + 0x10]
call fcn.0040c150
push ebx
mov ecx, esi
call fcn.00483e40
mov esi, eax
cmp esi, edi
je 0x48612d
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [esp + 0x20064]
xor ecx, esp
call fcn.0052944d
add esp, 0x2006c
ret
push 0xfffc
lea eax, [esp + 0x6e]
push edi
push eax
mov word [esp + 0x74], di
call fcn.0052d8f0
push 0xfffc
lea ecx, [esp + 0x1007a]
push edi
push ecx
mov word [esp + 0x10080], di
call fcn.0052d8f0
add esp, 0x18
push 0x7fff
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x48626c
lea eax, [esp + 0x68]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x486180
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x66], 0x5c
jne 0x4861b4
lea eax, [esp + 0x68]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4861a0
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x66], di
push 0x570214
lea eax, [esp + 0x6c]
push 0x7fff
push eax
call fcn.0052a0c2
push str.SRSLabs
lea ecx, [esp + 0x78]
push 0x7fff
push ecx
call fcn.0052a0c2
push 0x570214
lea edx, [esp + 0x84]
push 0x7fff
push edx
call fcn.0052a0c2
push str.176F4E15_8F7C_4833_ADED_81FAE8CCD186
lea eax, [esp + 0x90]
push 0x7fff
push eax
call fcn.0052a0c2
push str._slInit32.dll
lea ecx, [esp + 0x9c]
push 0x7fff
push ecx
call fcn.0052a0c2
push str.rundll32.exe
lea edx, [esp + 0x100a8]
push 0x7fff
push edx
call fcn.0052a0c2
add esp, 0x48
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x1006c]
push 0x7fff
push ecx
call fcn.0052a0c2
push str._SRS_InitializeEndpoints_Rundll32
lea edx, [esp + 0x10078]
push 0x7fff
push edx
call fcn.0052a0c2
add esp, 0x18
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486310
push 0x44
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.0052d8f0
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x10088]
push ecx
push edi
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4862e4
pop edi
pop esi
mov ecx, dword [esp + 0x20064]
xor ecx, esp
call fcn.0052944d
add esp, 0x2006c
ret
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.SRSEndpointIsInitialized
lea esi, [esp + 0x10]
call fcn.0040c150
push ebx
mov ecx, esi
call fcn.00483e40
mov esi, eax
mov ecx, dword [esp + 0x2006c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0052944d
add esp, 0x2006c
ret
Function at 0x48a160
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x557928
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor edi, edi
cmp ebp, edi
je 0x48a252
mov dword [esp + 0x1c], edi
mov esi, ecx
lea ebx, [esp + 0x34]
mov dword [esp + 0x28], edi
call fcn.0041b6d0
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push 1
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x48a232
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
mov ebx, 4
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x48a203
cmp dword [esp + 0x14], ebx
je 0x48a256
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48a223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x48a22e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x48a28d
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48a252
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x48a28d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [ebp], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48a27d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x48a288
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x48a2b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x558fa8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov esi, ecx
lea ebx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.0041b6d0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push 2
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48a380
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push 4
lea edx, [esp + 0x2c]
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0xc]
je 0x48a3b6
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a35f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x48a36a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 8
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48a3a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 8
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48a3cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x48a3da
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 8
Function at 0x495600
Capabilities:
Get file size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
test eax, eax
push ebx
push esi
jne 0x495614
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 1
mov dword [edi + 4], eax
mov eax, dword [0x5c9d78]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49560c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, 0xffffffff
setne al
test eax, eax
je 0x49560c
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00503653
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49560c
mov word [ebx], 0
mov eax, dword [0x5c9d78]
push eax
push esi
push ebx
push 0x5703b8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0x582b50
push str.DefLevel
mov ecx, 0x5c9c18
call fcn.00510303
mov dword [edi + 8], eax
cmp word [ebx], 0
mov esi, ebx
je 0x4956da
mov edx, esi
mov ecx, edi
call fcn.00495840
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4956c0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x4956b2
cmp dword [edi + 0x10], 0
je 0x4956fc
add dword [edi + 8], 1
mov eax, dword [edi + 8]
push eax
push 0x582b50
push str.DefLevel
mov ecx, 0x5c9c18
call fcn.0051036c
cmp dword [edi + 0xc], 0
jne 0x495722
push 1
push str.Finished
push str.DefLevel
mov ecx, 0x5c9c18
call fcn.0051036c
mov dword [0x5c9b9c], 1
push ebx
call fcn.0050364e
add esp, 4
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495840
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x555718
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bc9cc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, edx
xor ebp, ebp
cmp esi, ebp
mov edi, ecx
mov dword [esp + 0x34], edi
je 0x495a69
lea eax, [esp + 0x1c]
push eax
call fcn.004954b0
mov dword [esp + 0x40], ebp
lea ebx, [esp + 0x1c]
mov dword [esp + 0x18], ebp
call fcn.00495ac0
test eax, eax
je 0x495a60
mov cx, word [esp + 0x1c]
cmp cx, bp
mov dx, word [esp + 0x1e]
jne 0x4958b0
cmp dx, bp
je 0x4958cd
mov eax, dword [edi + 4]
cmp cx, word [eax + 0x2da]
jne 0x495a60
cmp dx, word [eax + 0x2d8]
jne 0x495a60
cmp dword [edi + 8], ebp
jle 0x4958f4
mov ecx, dword [esp + 0x20]
push ebp
push ecx
push str.DefLevel
mov ecx, 0x5c9c18
call fcn.00510303
cmp eax, ebp
jle 0x4958f4
cmp eax, dword [edi + 8]
jle 0x495a60
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00495cc0
test eax, eax
je 0x495a60
mov eax, dword [0x5c9d78]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0xffffffffffffffff
push str.Volume
push esi
call edi
mov ecx, dword [0x5c9d78]
push ecx
push 0xffffffffffffffff
push str.Mute
push esi
mov ebp, eax
call edi
mov edx, dword [0x5c9d78]
push edx
push 0xffffffffffffffff
push str.Boost
push esi
mov ebx, eax
call edi
mov dword [esp + 0x30], eax
mov eax, dword [0x5c9d78]
push eax
push 0xffffffffffffffff
push str.BoostVol
push esi
call edi
cmp ebp, 0xffffffff
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
je 0x4959e2
cmp dword [edi + 0x14], 0
je 0x4959e2
mov dword [esp + 0x18], 0
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call edx
test eax, eax
je 0x4959e2
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00503653
mov esi, eax
add esp, 4
test esi, esi
je 0x495a60
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
jbe 0x4959ce
lea ebx, [ebx]
mov dword [esi + eax*4], ebp
mov ecx, dword [esp + 0x18]
add eax, 1
cmp eax, ecx
jb 0x4959c0
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
push ecx
push esi
mov ecx, edi
call edx
push esi
call fcn.0050364e
add esp, 4
cmp ebx, 0xffffffff
je 0x4959ff
cmp dword [edi + 0xc], 0
je 0x4959ff
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
xor ecx, ecx
cmp ebx, 1
sete cl
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x495a1e
cmp dword [edi + 0x1c], 0
je 0x495a1e
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, edi
push ecx
call fcn.00464630
cmp dword [esp + 0x2c], 0xffffffff
je 0x495a3a
cmp dword [edi + 0x24], 0
je 0x495a3a
fild dword [esp + 0x2c]
push ecx
mov ecx, edi
fstp dword [esp]
call fcn.00464810
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x20]
add edx, 1
push edx
push eax
push str.DefLevel
mov ecx, 0x5c9c18
call fcn.0051036c
mov dword [esi + 0x10], 1
lea esi, [esp + 0x1c]
call fcn.00495a80
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret