joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fa490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514cb7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5522f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov esi, ecx
push 0x34
call fcn.0042766b
mov ebx, eax
add esp, 4
lea edi, [ebx + 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x10], esi
mov esi, ecx
mov dword [ebx + 8], 0
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4fa500
sub esi, edx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x1c], edx
cmp esi, edx
ja 0x4fa53c
mov dword [ebp - 0x14], edi
mov eax, edi
cmp edx, 0x10
jb 0x4fa522
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
push esi
push ecx
push eax
mov dword [edi + 0x10], esi
call fcn.00433030
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4fa61f
cmp esi, 0x7fffffff
ja 0x4fa67d
mov ecx, esi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x4fa55c
mov ecx, 0x7fffffff
jmp 0x4fa580
mov eax, edx
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x4fa576
mov ecx, 0x7fffffff
jmp 0x4fa580
mov eax, dword [ebp - 0x14]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea edx, [ecx + 1]
mov dword [ebp - 0x10], ecx
cmp edx, 0x1000
jb 0x4fa5ba
lea eax, [edx + 0x23]
or ecx, 0xffffffff
cmp eax, edx
cmovbe eax, ecx
push eax
call fcn.0042766b
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4fa682
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x10]
jmp 0x4fa5ce
test edx, edx
je 0x4fa5cc
push edx
call fcn.0042766b
mov ecx, dword [ebp - 0x10]
add esp, 4
jmp 0x4fa5ce
xor eax, eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ecx
call fcn.00432810
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov byte [eax + esi], 0
cmp ecx, 0x10
jb 0x4fa61d
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4fa610
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fa682
mov eax, edx
push ecx
push eax
call fcn.0042769b
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [edi], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x4f9b10
mov dword [ebx + 0x30], eax
call fcn.00438d80
add esp, 0xc
cmp eax, 0xffffffff
je 0x4fa65f
push 0
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, ebx
call fcn.00404ba0
xor ebx, ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404450
call fcn.00439b29
int3
Function at 0x4fa790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x18
mov edi, edx
mov esi, ecx
call fcn.0042766b
mov ebx, eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x4f9bb0
mov dword [ebx + 4], 0
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], eax
call fcn.00438d80
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fa7e4
push 2
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push 0x18
push ebx
call fcn.0042769b
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4fa8a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x18
mov edi, edx
mov esi, ecx
call fcn.0042766b
mov ebx, eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x4f9c80
mov dword [ebx + 4], 0
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], eax
call fcn.00438d80
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fa8f4
push 2
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
push 0x18
push ebx
call fcn.0042769b
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4fb010
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x620]
mov esi, edx
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x53bb60
push 0x80000001
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 4
test esi, esi
mov ecx, 0x53bbac
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, 0x53bb5c
cmove eax, ecx
push eax
push 1
push 0
push str.WallpaperStyle
push dword [ebp - 0x620]
call esi
push 4
test edi, edi
mov ecx, 0x53bbac
mov eax, 0x53bbcc
cmove eax, ecx
push eax
push 1
push 0
push 0x53bbb0
push dword [ebp - 0x620]
call esi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004f5d20
add esp, 8
lea eax, [ebp - 0x61c]
push 3
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427655
mov esp, ebp
pop ebp
ret
Function at 0x4fb8c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x56ae4c]
push esi
mov esi, ecx
test eax, eax
je 0x4fb963
test esi, esi
je 0x4fb933
call fcn.004b9fb0
test eax, eax
jne 0x4fb927
cmp dword [0x5b5534], eax
je 0x4fb90d
push 0x25
push eax
push eax
push dword [0x5b5510]
push dword [0x5b550c]
push eax
push dword [0x56ab2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x5b5510]
call fcn.004be2a0
push 1
push dword [0x56ab2c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x56ab2c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [0x5b5534], 0
jmp 0x4fb941
push 0
push dword [0x56ab2c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x5b5504], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
cmp eax, dword [0x56ab2c]
mov eax, dword [0x56ae4c]
sete cl
mov dword [0x56aed0], ecx
pop esi
ret

Function at 0x4fcfc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x34], 0xffffffff
jne 0x4fcfd7
mov eax, 0x80070006
pop esi
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ecx, dword [esi + 0x44]
push ebx
mov ebx, edx
add ebx, dword [esi + 0x38]
mov dword [ebp + 8], ebx
adc eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x40]
add ebx, dword [esi + 0x48]
adc ecx, dword [esi + 0x4c]
cmp eax, ecx
jb 0x4fd008
ja 0x4fcfff
cmp dword [ebp + 8], ebx
jbe 0x4fd008
mov edx, dword [esi + 0x40]
sub edx, dword [esi + 0x38]
add edx, dword [esi + 0x48]
mov ebx, dword [ebp + 0x14]
push 0
push ebx
push edx
push dword [ebp + 0xc]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4fd037
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4fd042
movzx eax, ax
pop ebx
or eax, 0x80070000
pop esi
pop ebp
ret 0x10
mov eax, dword [ebx]
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], 0
xor eax, eax
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x505850
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push str.RenegotiateMediaType_n
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
xor edi, edi
xor esi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
cmp dword [ebx + 0x158], edx
jne 0x50588b
mov eax, 0xc00d36b2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], edx
nop
cmp esi, 0xc00d36b9
je 0x50597c
test edx, edx
je 0x5058ae
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov dword [esp + 0xc], 0
test edi, edi
je 0x5058be
mov eax, dword [edi]
push edi
call dword [eax + 8]
xor edi, edi
mov dword [esp + 0x10], edi
mov edx, dword [ebx + 0x158]
mov esi, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 0x38]
mov eax, esi
inc esi
mov dword [esp + 0x14], esi
lea esi, [esp + 0xc]
push esi
push eax
push 0
push edx
call ecx
mov esi, eax
test esi, esi
js 0x505978
push dword [esp + 0xc]
mov ecx, ebx
call fcn.00505170
mov esi, eax
test esi, esi
jns 0x505900
mov edx, dword [esp + 0xc]
jmp 0x505890
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call fcn.00505500
mov edi, dword [esp + 0x10]
mov esi, eax
test esi, esi
jns 0x505921
mov edx, dword [esp + 0xc]
jmp 0x505890
mov ecx, dword [ebx + 0x158]
push 1
push edi
push 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0x40]
mov esi, eax
test esi, esi
js 0x505946
push edi
mov ecx, ebx
call fcn.005052e0
mov esi, eax
test esi, esi
jns 0x50594f
mov edx, dword [esp + 0xc]
jmp 0x505890
mov ecx, dword [ebx + 0x158]
push 0
push edi
push 0
mov eax, dword [ecx]
push ecx
call dword [eax + 0x40]
mov esi, eax
test esi, esi
jns 0x505978
push 0
mov ecx, ebx
call fcn.005052e0
mov edx, dword [esp + 0xc]
jmp 0x505890
mov edx, dword [esp + 0xc]
test edx, edx
je 0x505986
mov eax, dword [edx]
push edx
call dword [eax + 8]
test edi, edi
je 0x505990
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505c00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514f7c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5522f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call fcn.0050a910
mov dword [ebp - 4], 0
mov dword [ebx], vtable.YCMFEVRPresenter.3.0
mov dword [ebx + 8], vtable.YCMFEVRPresenter.5.0
mov dword [ebx + 0xc], vtable.YCMFEVRPresenter.2.0
mov dword [ebx + 0x10], vtable.YCMFEVRPresenter.4.0
mov dword [ebx + 0x14], vtable.YCMFEVRPresenter.0
mov dword [ebx + 0x18], vtable.YCMFEVRPresenter.6.0
mov dword [ebx + 0x1c], vtable.YCMFEVRPresenter.1.0
mov dword [ebx + 0x20], vtable.YCMFAsyncCallback_class_YCMFEVRPresenter_.0
mov dword [ebx + 0x24], ebx
mov dword [ebx + 0x28], 0x504b20
mov dword [ebx + 0x2c], 0
lea edi, [ebx + 0x34]
mov dword [ebp - 0x18], edi
mov dword [edi], vtable.YCMFEVRPresenter::YSMFEVRPFrameStep.0
lea esi, [edi + 8]
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
push 0
push 0
call fcn.00405d90
mov dword [esi], eax
mov byte [ebp - 4], 3
mov dword [edi + 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 4
lea ecx, [ebx + 0x4c]
call fcn.004a2100
mov byte [ebp - 4], 5
lea ecx, [ebx + 0x78]
call fcn.0050a7f0
mov byte [ebp - 4], 6
lea ecx, [ebx + 0xf0]
call fcn.00509da0
mov byte [ebp - 4], 7
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov dword [ebx + 0x30], 4
mov dword [ebx + 0x150], 0
mov dword [ebx + 0x154], 0
mov dword [ebx + 0x158], 0
mov dword [ebx + 0x15c], 0
mov dword [ebx + 0x160], 0
mov dword [ebx + 0x12c], 0
mov dword [ebx + 0x130], 0
mov dword [ebx + 0x138], 0
mov dword [ebx + 0x134], 0
mov dword [ebx + 0x14c], 0x3f800000
mov dword [ebx + 0x128], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x140], 0
mov dword [ebx + 0x13c], 0
mov dword [ebx + 0x148], 0x3f800000
mov dword [ebx + 0x144], 0x3f800000
mov byte [ebp - 4], 8
wait
push 0x88
call fcn.0042766b
add esp, 4
wait
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 9
push esi
mov ecx, eax
call fcn.00509890
wait
mov byte [ebp - 4], 8
mov dword [ebx + 0x150], eax
push eax
lea ecx, [ebx + 0x78]
call fcn.0050a720
wait
mov dword [ebp - 4], 7
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5064f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5150c4
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movss xmm0, dword [ebp + 0x14]
lea eax, [ebp - 0x210]
mov ebx, dword [ebp + 8]
sub esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.OnClockSetRate__rate_f_n_
push eax
call fcn.0040bd50
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebx + 0x40]
push eax
lea ecx, [ebp - 0x238]
call fcn.004a2020
mov dword [ebp - 4], 0
lea ecx, [ebx - 0xc]
call fcn.00505ab0
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
js 0x506607
movss xmm0, dword [ebx + 0x140]
xorps xmm1, xmm1
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x5065f2
movss xmm0, dword [ebp + 0x14]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x5065f2
call fcn.00505560
mov edi, dword [ebx + 0x30]
mov esi, dword [edi]
cmp esi, edi
je 0x5065bf
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [esi]
cmp esi, edi
jne 0x5065b0
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx + 0x30]
mov dword [eax + 4], eax
mov dword [ebx + 0x34], 0
cmp ecx, dword [ebx + 0x30]
je 0x5065ec
mov esi, dword [ecx]
push 0xc
push ecx
call fcn.0042769b
add esp, 8
mov ecx, esi
cmp esi, dword [ebx + 0x30]
jne 0x5065d8
mov esi, dword [ebp - 0x214]
movss xmm1, dword [ebp + 0x14]
lea ecx, [ebx + 0x6c]
movss dword [ebx + 0x140], xmm1
call fcn.0050a6c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.004a20a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5066d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515117
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5522f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.OnClockStop_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
lea eax, [esi + 0x40]
push eax
call fcn.004a2020
mov dword [ebp - 4], 0
lea ecx, [esi - 0xc]
call fcn.00505ab0
mov ebx, eax
test ebx, ebx
js 0x50674a
cmp dword [esi + 0x24], 2
je 0x50674a
lea ecx, [esi - 0xc]
mov dword [esi + 0x24], 2
call fcn.005057c0
cmp dword [esi + 0x2c], 0
je 0x50674a
lea ecx, [esi - 0xc]
call fcn.00505560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004a20a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x506810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515160
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push str.OnClockStart__offset___I64d__n
push eax
call fcn.0040bd50
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebx + 0x40]
push eax
lea ecx, [ebp - 0x234]
call fcn.004a2020
mov dword [ebp - 4], 0
lea ecx, [ebx - 0xc]
call fcn.00505ab0
mov edi, eax
test edi, edi
js 0x5068ce
lea ecx, [ebx - 0xc]
call fcn.00505a90
mov dword [ebx + 0x24], 1
test eax, eax
je 0x5068b8
cmp dword [ebp + 0x14], 0xffffffff
jne 0x5068ae
cmp dword [ebp + 0x18], 0x7fffffff
je 0x5068c6
lea ecx, [ebx - 0xc]
call fcn.005057c0
jmp 0x5068c6
lea ecx, [ebx - 0xc]
call fcn.00505620
mov edi, eax
test edi, edi
js 0x5068ce
lea ecx, [ebx - 0xc]
call fcn.00505130
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.004a20a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427655
mov esp, ebp
pop ebp
ret 0x14
Function at 0x506b90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5151f9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5522f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.InitServicePointers_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x506be3
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], 0
lea eax, [esi + 0x34]
push eax
call fcn.004a2020
mov dword [ebp - 4], 0
lea ecx, [esi - 0x18]
call fcn.00505a90
test eax, eax
je 0x506c16
mov edi, 0xc00d36b2
jmp 0x506cf9
mov ecx, dword [esi + 0x13c]
test ecx, ecx
je 0x506c30
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x13c], 0
mov ecx, dword [esi + 0x140]
lea edi, [esi + 0x140]
test ecx, ecx
je 0x506c4c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi], 0
mov ecx, dword [esi + 0x144]
test ecx, ecx
je 0x506c66
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x144], 0
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x13c]
mov dword [ebp - 0x10], 1
push ecx
push 0x53bd34
push 0x516934
push 0
push 5
push ebx
call dword [eax + 0xc]
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x53bd54
push 0x516944
push 0
push 5
push ebx
mov dword [ebp - 0x10], 1
call dword [eax + 0xc]
mov edi, eax
test edi, edi
js 0x506cf9
push dword [esi + 0x140]
lea ecx, [esi - 0x18]
call fcn.005059a0
mov edi, eax
test edi, edi
js 0x506cf9
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x144]
mov dword [ebp - 0x10], 1
push ecx
push 0x53be10
push 0x516934
push 0
push 5
push ebx
call dword [eax + 0xc]
mov edi, eax
test edi, edi
js 0x506cf9
mov dword [esi + 0x18], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004a20a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x509e30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5156e8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5522f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x10], 0xffffffff
push 4
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push 0x400
push 0x400
mov edi, eax
lea eax, [ebp - 0x34]
push esi
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 8
push dword [ebp - 0x10]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
jne 0x509ec8
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0050a1d0
mov edi, eax
mov eax, 1
test edi, edi
mov dword [ebp - 0x18], edi
cmovs esi, eax
mov dword [ebp - 0x14], esi
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x509fc6
mov eax, dword [ebp - 0x30]
sub eax, 0x400
je 0x509f99
sub eax, 1
je 0x509f83
sub eax, 1
jne 0x509fac
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp - 0x58]
call fcn.004a2020
mov dword [ebp - 4], 0
mov edi, dword [ebx + 8]
mov esi, dword [edi]
cmp esi, edi
je 0x509f2f
nop
mov eax, dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [esi]
cmp esi, edi
jne 0x509f20
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 8]
mov dword [ecx + 4], ecx
mov dword [ebx + 0xc], 0
cmp eax, dword [ebx + 8]
je 0x509f5c
mov esi, dword [eax]
push 0xc
push eax
call fcn.0042769b
add esp, 8
mov eax, esi
cmp esi, dword [ebx + 8]
jne 0x509f48
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004a20a0
push dword [ebx + 0x54]
mov dword [ebp - 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jmp 0x509fac
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0050a1d0
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jns 0x509fac
jmp 0x509fa4
push str.Terminate_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, 1
mov dword [ebp - 0x14], esi
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x509ee2
test esi, esi
je 0x509e93
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.Exit_scheduler_thread._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
shr edi, 0x1f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50a2c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, ecx
push str.Scheduler::Flush_n
call edi
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x50a2ec
push str.No_scheduler_thread__n
call edi
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x50a324
push 0
push 0
push 0x402
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x4c]
push 0x1388
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0x53c090
call edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50a510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
je 0x50a52b
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x34]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x50a53f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x50a54f
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push ebx
push edi
push 8
lea ebx, [esi + 0x3c]
push ebx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x50a574
push dword [ebx]
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
test eax, eax
jne 0x50a574
mov dword [esi + 0x44], 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
test eax, eax
jne 0x50a5ae
call edi
mov edi, eax
test edi, edi
jle 0x50a5a2
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x50a635
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x54], eax
test eax, eax
jne 0x50a5d8
call edi
mov edi, eax
test edi, edi
jle 0x50a5d6
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x50a635
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x50a000
push 0
push 0
call fcn.00438e0e
add esp, 0x18
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x50a610
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x50a60e
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x50a635
mov eax, dword [esi + 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x4c]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x50a676
mov edi, 0x8000ffff
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x50a64a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4c], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x50a65f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x54], 0
cmp dword [esi + 0x44], 0
je 0x50a67e
push dword [ebx]
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [esi + 0x44], 0
jmp 0x50a67e
mov eax, dword [ebp - 4]
xor edi, edi
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x50]
test eax, eax
je 0x50a693
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], 0
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4