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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.004fdfb0
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x1c]
test eax, eax
mov byte [ebx + 0x82], 1
jne 0x4827db
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.Version
mov edi, 4
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call esi
test eax, eax
je 0x482823
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 2
jne 0x48280f
lea edx, [ebp - 8]
push edx
mov edx, dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.MinVidMemory
push edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x48280f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x78]
jne 0x48280f
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebx + 0x1c]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.RecVidMemory
push ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x48280f
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebx + 0x7c]
jne 0x48280f
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x1c]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push str.DisplayGUID
push eax
mov dword [ebp - 8], 0x10
mov dword [ebp - 0xc], 3
call esi
test eax, eax
jne 0x48280f
cmp dword [ebp - 8], 0x10
jne 0x48280f
mov ecx, edi
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x28]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x48280f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x1c]
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push str.FailureReason
mov edi, 1
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x1000
call esi
test eax, eax
jne 0x48280f
lea ecx, [ebp - 0x1028]
push ecx
lea ecx, [ebx + 0x40]
call fcn.004033b0
lea edx, [ebp - 8]
push edx
mov edx, dword [ebx + 0x1c]
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.Warning
push edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x1000
call esi
test eax, eax
jne 0x48280f
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebx + 0x5c]
call fcn.004033b0
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
mov byte [ebx + 0x82], 0
mov al, 1
pop ebx
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
Function at 0x485eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
call dword [ecx + 0x14]
push 0x52c7cf
push eax
call fcn.00482bf0
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
add esp, 8
push ebx
push 0x3f800000
push 0xff000000
push 1
push ebx
push ebx
push eax
call dword [edx + 0x28]
push str.Clear
push eax
call fcn.00482bf0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
add esp, 8
push 1
push 0x1b
push eax
call dword [ecx + 0x50]
push str.D3DRENDERSTATE_ALPHABLENDENABLE__TRUE
push eax
call fcn.00482bf0
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
add esp, 8
push 5
push 0x13
push eax
call dword [edx + 0x50]
push str.D3DRENDERSTATE_SRCBLEND__D3DBLEND_SRCALPHA
push eax
call fcn.00482bf0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
add esp, 8
push 6
push 0x14
push eax
call dword [ecx + 0x50]
push str.D3DRENDERSTATE_DESTBLEND__D3DBLEND_INVSRCALPHA
push eax
call fcn.00482bf0
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
add esp, 8
push 1
push 0x16
push eax
call dword [edx + 0x50]
push str.D3DRENDERSTATE_CULLMODE__D3DCULL_NONE
push eax
call fcn.00482bf0
add esp, 8
push 0x40
push 0x40
lea ecx, [ebp - 0x2c]
call fcn.0047cec0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0046af10
push 0xffffffffffffffff
push 0xfffffffffffffffe
push 0xfffffffffffffffe
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x18]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00484d30
mov eax, dword [esi + 0x18]
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov ecx, esi
call fcn.00482d70
lea ecx, [ebp - 0x2c]
call fcn.00476480
push ebx
push ebx
push 0x3e
push 0x3e
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0046b040
cmp eax, ebx
jne 0x485ff6
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, str.Clip_problem_detected.
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
lea edx, [eax + 1]
jmp 0x486010
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x486010
sub eax, edx
push eax
push str.Clip_problem_detected.
lea ecx, [ebp - 0x48]
call fcn.00403230
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00482bd0
mov bl, al
cmp dword [ebp - 0x30], 0x10
jb 0x48604d
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004fb06d
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4860e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x56da10]
push esi
mov esi, ecx
mov cl, byte [eax + 0x491]
test cl, cl
jne 0x48616d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
mov ecx, esi
mov byte [esi + 0x81], 0
call fcn.00484dc0
test al, al
je 0x486118
mov ecx, esi
call fcn.004860a0
jmp 0x486155
mov al, byte [esi + 0x80]
test al, al
je 0x486155
mov al, byte [esi + 0x81]
test al, al
jne 0x48615f
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0
push 0
push str.FailureReason
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne cl
mov byte [esi + 0x82], cl
mov byte [esi + 0x81], 1
mov al, byte [esi + 0x81]
test al, al
je 0x486166
mov ecx, esi
call fcn.0047cef0
mov ecx, esi
call fcn.0046b130
mov ecx, dword [0x56da10]
lea edx, [esi + 0x40]
push edx
call fcn.004537f0
mov ecx, dword [0x56da10]
lea eax, [esi + 0x5c]
push eax
call fcn.004537f0
mov ecx, dword [0x56da10]
add esi, 0x82
push esi
call fcn.0044de50
pop esi
pop ebp
ret 8
Function at 0x496560
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
push str.IMAGEHLP.DLL
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x5a37f4], eax
jne 0x496599
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymInitialize
push eax
call esi
test eax, eax
mov dword [0x5a37f8], eax
jne 0x4965c3
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5a37f4]
push str.SymSetOptions
push eax
call esi
test eax, eax
mov dword [0x5a37fc], eax
je 0x4965b1
mov ecx, dword [0x5a37f4]
push str.SymCleanup
push ecx
call esi
test eax, eax
mov dword [0x5a3804], eax
je 0x4965b1
mov edx, dword [0x5a37f4]
push str.UnDecorateSymbolName
push edx
call esi
test eax, eax
mov dword [0x5a3800], eax
je 0x4965b1
mov eax, dword [0x5a37f4]
push str.StackWalk
push eax
call esi
test eax, eax
mov dword [0x5a3808], eax
je 0x4965b1
mov ecx, dword [0x5a37f4]
push str.SymFunctionTableAccess
push ecx
call esi
test eax, eax
mov dword [0x5a380c], eax
je 0x4965b1
mov edx, dword [0x5a37f4]
push str.SymGetModuleBase
push edx
call esi
test eax, eax
mov dword [0x5a3810], eax
je 0x4965b1
mov eax, dword [0x5a37f4]
push str.SymGetSymFromAddr
push eax
call esi
test eax, eax
mov dword [0x5a3814], eax
je 0x4965b1
push 4
call dword [0x5a37fc]
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x10c]
push 0x2f
push edx
call fcn.004fdb10
add esp, 8
test eax, eax
jne 0x4966b3
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.004fdb10
add esp, 8
test eax, eax
je 0x4966b6
mov byte [eax], 0
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x10c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4966c5
sub eax, esi
mov dword [ebp - 8], eax
jne 0x4966d5
xor edx, edx
push 1
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x5a37f8]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, dword [ebp + 4]
pop esi
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
Function at 0x496720
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x496742
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp - 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4967a3
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
lea ecx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
sub edi, esi
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], eax
jbe 0x4967a3
lea eax, [ecx + 0x10]
lea ebx, [ebx]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x49678e
mov ecx, edx
cmp edi, esi
jb 0x496798
add ecx, esi
cmp edi, ecx
jbe 0x4967ac
mov ecx, dword [ebp - 4]
inc ebx
add eax, 0x28
cmp ebx, ecx
jb 0x496780
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
inc ebx
sub edi, esi
pop esi
mov dword [edx], ebx
mov dword [eax], edi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4967d0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x496809
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x10]
push ecx
call edi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push 0
push 0x64
push edx
push eax
call fcn.004fdbc0
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
adc eax, edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea edx, [ebp - 0x20]
push edx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jl 0x496848
jg 0x496860
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x10]
jb 0x496848
lea edx, [ebp - 0x18]
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
rdtsc
sub eax, dword [ebx]
sbb edx, dword [ebx + 4]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0
push 0x64
push ecx
push edx
call fcn.004fdc70
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x496b60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0xf2]
xor ebx, ebx
cmp al, bl
jne 0x496c46
lea ecx, [ecx]
cmp byte [ebp + 8], bl
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x210], ebx
je 0x496ba7
mov eax, dword [esi + 8]
mov dword [ebp - 0x108], eax
mov eax, 1
mov dword [ebp - 0x10c], eax
jmp 0x496bac
mov eax, 1
cmp byte [ebp + 0xc], bl
je 0x496bc0
mov ecx, dword [esi + 8]
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], eax
mov edx, dword [esi + 8]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x314]
push ecx
mov dword [ebp - 0x310], edx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0x40
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x186a0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x496c50
mov edx, dword [esi + 8]
lea ecx, [ebp - 0x314]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x496c50
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x10c]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x496c46
mov eax, dword [esi + 8]
lea edx, [ebp - 0x210]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x496c46
cmp byte [esi + 0xf2], bl
je 0x496b80
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
push 6
mov ecx, esi
call fcn.00496b40
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4977e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [ecx + 0x9c0], 0x270
jl 0x496b03
xor eax, eax
push esi
mov esi, dword [ecx + eax*4]
mov edx, dword [ecx + eax*4 + 4]
xor edx, esi
and edx, 0x7fffffff
xor edx, esi
mov esi, edx
and esi, 1
mov esi, dword [esi*4 + 0x5676e0]
shr edx, 1
xor esi, edx
xor esi, dword [ecx + eax*4 + 0x634]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, 0xe3
jl 0x496a53
cmp eax, 0x26f
jge 0x496ac3
lea ecx, [ecx]
mov esi, dword [ecx + eax*4]
mov edx, dword [ecx + eax*4 + 4]
xor edx, esi
and edx, 0x7fffffff
xor edx, esi
mov esi, edx
and esi, 1
mov esi, dword [esi*4 + 0x5676e0]
shr edx, 1
xor esi, edx
xor esi, dword [ecx + eax*4 - 0x38c]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, 0x26f
jl 0x496a90
mov eax, dword [ecx + 0x9bc]
mov edx, dword [ecx]
mov esi, dword [ecx + 0x630]
xor eax, edx
mov edx, dword [ecx + 0x9bc]
and eax, 0x7fffffff
xor eax, edx
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x5676e0]
xor edx, esi
shr eax, 1
xor edx, eax
mov dword [ecx + 0x9bc], edx
mov dword [ecx + 0x9c0], 0
pop esi
mov eax, dword [ecx + 0x9c0]
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ecx + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov ecx, edx
and ecx, 0xff3a58ad
shl ecx, 7
xor edx, ecx
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
and eax, 0x7fffffff
ret
jmp 0x496a40
mov ecx, 0x5a3898
jmp 0x4977d0
Function at 0x498220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x491]
test cl, cl
jne 0x4982d4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0x531628
push 0
push str.SoftwarePopCapBeta
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4982d4
cmp dword [esi + 0x178], 0x10
mov ecx, dword [esi + 0x174]
jb 0x49827d
mov eax, dword [esi + 0x164]
jmp 0x498283
lea eax, [esi + 0x164]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push eax
mov eax, dword [ebp - 4]
push 1
push 0
push str.Name
push eax
call edi
cmp dword [esi + 0x194], 0x10
mov eax, dword [esi + 0x190]
jb 0x4982b2
mov esi, dword [esi + 0x180]
jmp 0x4982b8
add esi, 0x180
mov ecx, dword [ebp - 4]
push eax
push esi
push 1
push 0
push str.Password
push ecx
call edi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499030
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.004fdfb0
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov al, byte [0x5a385d]
test al, al
je 0x4991cf
push ebx
push edi
push 0x5a4268
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x53436c
push str.mem_leaks.txt
xor ebx, ebx
call fcn.004fce4b
mov edi, eax
add esp, 8
test edi, edi
jne 0x499098
push 0x5a4268
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
push esi
push 0
call fcn.004fd8b9
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004fd739
push eax
call fcn.004fd62e
push eax
lea ecx, [ebp - 0x200c]
push str.Memory_Leak_Report_for__s_n
push ecx
call fcn.004fb95f
lea edx, [ebp - 0x200c]
push edx
push edi
call fcn.004fce5e
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x20
push 0x52d384
call esi
lea eax, [ebp - 0x200c]
push eax
call esi
mov eax, dword [0x5a4260]
mov esi, dword [eax]
cmp esi, eax
mov dword [ebp - 8], esi
je 0x499163
jmp 0x499100
mov ecx, dword [esi + 0x10]
cmp ecx, 1
mov eax, 0x53433c
jg 0x499112
mov eax, 0x52c7cf
push eax
push ecx
mov ecx, dword [esi + 0x54]
push ecx
lea edx, [esi + 0x14]
push edx
lea eax, [ebp - 0x200c]
push str._s__d__:_Leak__d_byte_s_n
push eax
call fcn.004fb95f
add esp, 0x18
lea ecx, [ebp - 0x200c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x200c]
push edx
push edi
call fcn.004fce5e
add ebx, dword [esi + 0x10]
add esp, 8
lea ecx, [ebp - 8]
call fcn.00497340
mov esi, dword [ebp - 8]
cmp esi, dword [0x5a4260]
jne 0x499100
lea eax, [ebp - 0x200c]
push str.____________________________________________________________n
push eax
call fcn.004fb95f
lea ecx, [ebp - 0x200c]
push ecx
push edi
call fcn.004fce5e
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea edx, [ebp - 0x200c]
push edx
call esi
push ebx
lea eax, [ebp - 0x200c]
push str.Total_Unfreed:__d_bytes_n_n
push eax
call fcn.004fb95f
add esp, 0xc
lea ecx, [ebp - 0x200c]
push ecx
call esi
lea edx, [ebp - 0x200c]
push edx
push edi
call fcn.004fce5e
add esp, 8
push 0x5a4268
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
Function at 0x49ff80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x491]
test cl, cl
jne 0x4a0076
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
push str.SoftwarePopCapBeta
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a0076
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.Name
push edx
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
jne 0x4a001e
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0002
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [esi + 0x160]
call fcn.00403230
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Password
push ecx
mov dword [ebp - 0xc], 0x100
call edi
test eax, eax
pop edi
jne 0x4a006c
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0050
sub eax, edx
push eax
lea edx, [ebp - 0x110]
push edx
lea ecx, [esi + 0x17c]
call fcn.00403230
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
Function at 0x4a2750
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov eax, dword [0x5a3844]
xor edi, edi
test eax, eax
jle 0x4a279b
xor esi, esi
jmp 0x4a2780
mov ecx, dword [0x5a387c]
lea eax, [esi + ecx]
call fcn.004a2690
mov eax, dword [0x5a3844]
inc edi
add esi, 0x18
cmp edi, eax
jl 0x4a2780
lea edx, [ebp - 0xc]
mov dword [0x5a3844], 0
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
rdtsc
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [0x5a33d0]
sub eax, edi
sbb ecx, esi
add edx, eax
mov eax, dword [0x5a33d4]
pop edi
adc eax, ecx
pop esi
mov dword [0x5a33d0], edx
mov dword [0x5a33d4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4af700
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
call fcn.0044beb0
mov ecx, dword [esi + 0x598]
pop esi
jmp fcn.004abdf0
Function at 0x4b38b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4b3900
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push str._s_function_not_found_in_bass.dll
push ecx
call fcn.004fb95f
add esp, 0xc
push 0x10
push 0x537008
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004fdaa0
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret
Function at 0x4b3ba0
Capabilities:
Terminate process

Disassembly:
push 0x5a4384
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x5a4380]
test eax, eax
jne 0x4b3bf9
push 0x64
call fcn.004eb990
add esp, 4
test eax, eax
je 0x4b3bd0
push str.bass.dll
mov ecx, eax
call fcn.004b3910
jmp 0x4b3bd2
xor eax, eax
mov dword [0x5a4380], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4b3bf9
push 0x10
push 0x537008
push str.Cant_find_bass.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004fdaa0
ret

Function at 0x4b3cc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x569f5c]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4b3d10
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push str._s_function_not_found_in_fmod.dll
push ecx
call fcn.004fb95f
add esp, 0xc
push 0x10
push 0x537008
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004fdaa0
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004fb7a4
mov esp, ebp
pop ebp
ret