joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
mov dword [esi + 0x50], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x430f45
mov ecx, dword [ebp + 0x18]
push 0
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x430f45
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x48], 0x20000
mov dword [esi + 0x4c], 0
push ebx
test eax, eax
jl 0x430f02
jg 0x430ef4
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x20000
jbe 0x430f05
mov ebx, 0x20000
mov dword [ebp - 4], 0
jmp 0x430f08
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [esi + 0x1c]
call fcn.00427666
push ebx
call fcn.004276a9
add esp, 8
mov dword [esi + 0x1c], eax
lea ecx, [ebp - 4]
push 0
push ecx
push ebx
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], ebx
pop ebx
je 0x430f52
push dword [esi + 0x1c]
call fcn.00427666
add esp, 4
mov dword [esi + 0x1c], 0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
push dword [esi + 0x38]
call fcn.00427666
mov ecx, edi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430f62
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004276a9
mov ecx, eax
add esp, 4
mov dword [esi + 0x38], ecx
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x430f92
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x44], eax
xor eax, eax
pop edi
mov dword [esi + 0x24], ecx
mov dword [esi + 0x50], 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x430fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510598
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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 edi, ecx
cmp dword [edi + 0x50], 0
jne 0x431029
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esi, [edi + 4]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 4], 0
cmp eax, dword [edi + 0x4c]
jl 0x43107b
mov ebx, dword [ebp + 0xc]
jg 0x43104e
cmp ebx, dword [edi + 0x48]
jbe 0x43107b
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x431065
push eax
call fcn.00427666
add esp, 4
mov dword [edi + 0x1c], 0
push ebx
call fcn.004276a9
add esp, 4
mov dword [edi + 0x1c], eax
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [edi + 0x28]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [edi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, edx
add eax, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x2c]
adc eax, 0
cmp eax, dword [edi + 0x24]
jl 0x4310aa
jg 0x4310a6
cmp dword [ebp + 0xc], ebx
jbe 0x4310aa
sub ebx, edx
jmp 0x4310ac
mov ebx, ecx
lea eax, [edx + ebx]
mov ecx, dword [edi + 0x34]
xor edx, edx
div dword [edi + 0x30]
mov edx, eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
cmp eax, edx
jae 0x4310ce
sub ecx, dword [ebp - 0x10]
add ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x40]
add ecx, eax
mov eax, dword [edi + 0x44]
push 0
adc eax, dword [edi + 0x2c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [edi + 0x1c]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.00432810
mov ecx, dword [ebp + 0x14]
add esp, 0xc
add dword [edi + 0x28], ebx
adc dword [edi + 0x2c], 0
push esi
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x431960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x4319b0
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x4316a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x80], eax
test eax, eax
jne 0x4319b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4319b2
movzx eax, ax
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43f52a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43f569
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43f569
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43f569
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43f569
cmp dword [ecx + 0x74], 0xe
jbe 0x43f569
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x442d5f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51a604
push 0x51a5fc
push str.FlsAlloc
push 0x1f
call fcn.00442c5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442d93
push dword [ebp + 8]
mov ecx, esi
call dword [0x516644]
call esi
jmp 0x442d99
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x442ddd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51a614
push 0x51a60c
push str.FlsGetValue
push 0x21
call fcn.00442c5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442e14
push dword [ebp + 8]
mov ecx, esi
call dword [0x516644]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x442e1c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51a61c
push 0x51a614
push str.FlsSetValue
push 0x22
call fcn.00442c5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x442e56
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x516644]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x443dd2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x443e1d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00443f6d
test al, al
jne 0x443e17
sub edx, 2
cmp edx, edi
jne 0x443dfd
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x443e3f
lea eax, [edi + 2]
cmp edx, eax
je 0x443e3f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00443d1e
add esp, 0x10
jmp 0x443f39
push esi
lea ecx, [ebp - 0x255]
call fcn.00443f6d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x443e82
push dword [ebp - 0x25c]
jmp 0x443e2f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x443ebf
cmp word [ebp - 0x226], 0
je 0x443ee0
cmp word [ebp - 0x226], ax
jne 0x443ebf
cmp word [ebp - 0x224], 0
je 0x443ee0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00443d1e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x443f2c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x443e99
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x443f14
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x443f39
push 0x443b4e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00438eb0
add esp, 0x10
jmp 0x443f09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427655
leave
ret
Function at 0x44b6d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xc
mov esi, ecx
call fcn.0042766b
mov edx, dword [ebp + 8]
lea ecx, [esi + 8]
add esp, 4
mov dword [eax], edx
mov edx, dword [ebp + 0xc]
push ecx
push dword [ebp + 0x18]
mov dword [eax + 4], edx
push eax
push 0x44b690
push dword [ebp + 0x14]
mov dword [eax + 8], esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 0x10]
mov dword [esi + 4], eax
mov ecx, 0x2710
xor esi, esi
test eax, eax
push eax
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x44d0d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, edx
test edi, edi
je 0x44d108
imul edx, dword [ecx], 0xe9
movzx eax, byte [esi + ebx]
add eax, edx
mov dword [ecx], eax
add byte [ecx + 4], al
xor byte [ecx + 5], al
movzx eax, byte [esi + ebx]
add byte [ecx + 6], al
movzx eax, byte [esi + ebx]
inc esi
xor byte [ecx + 7], al
cmp esi, edi
jb 0x44d0e1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x451970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov eax, edx
mov dword [ebp - 8], ecx
mov ecx, dword [0x56ab24]
push edi
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0045a370
test eax, eax
je 0x451a99
call fcn.004524b0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004521d0
test eax, eax
je 0x451a88
mov ecx, dword [eax + 0x20]
mov ebx, 1
call fcn.005030f0
test eax, eax
jne 0x4519d5
mov ecx, edi
call fcn.00451d20
test eax, eax
jne 0x4519d5
xor ebx, ebx
mov esi, DirectSoundCreate8
jmp 0x4519d8
mov esi, dword [ebp - 8]
call fcn.004524a0
test ebx, ebx
je 0x451a7f
push 0x1c
call fcn.0042766b
add esp, 4
mov esi, eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
push esi
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x451ab0
mov dword [esi + 8], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
call fcn.00438d80
add esp, 0xc
cmp eax, 0xffffffff
je 0x451a68
push 2
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [esi + 4], 0
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c
push esi
call fcn.0042769b
add esp, 8
mov eax, DirectSoundCreate8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004524a0
mov eax, 0x80000003
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80000005
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4819c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push edi
push 0xd
mov edi, ecx
xor esi, esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x481a32
push dword [0x56ab2c]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x481a32
push ebx
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x481a2b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test edi, edi
je 0x481a12
mov ecx, esi
sub edi, esi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x481a02
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x481a15
sub esi, ecx
push ebx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x481a40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push ecx
push 0
mov dword [ebp - 4], 0
call fcn.004f5d20
mov ebx, eax
add esp, 8
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x481a60
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x481ae4
push esi
push edi
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
sub ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x481aa0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x56ab2c]
call dword [sym.imp.USER32.dll_OpenClipboard]
pop esi
test eax, eax
je 0x481ae4
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebp - 4], 1
push ebx
call fcn.00427666
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0x14]
pop ebp
jmp fcn.00482b40

Function at 0x49a780
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x55acb4
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x55acb0]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, 0x55acb0
test esi, esi
je 0x49a7f3
nop
mov ecx, dword [esi]
cmp dword [ebp - 0xc], ecx
jne 0x49a7d6
cmp dword [ebp - 8], 0
jne 0x49a7c4
push 0
call fcn.0049a9c0
mov eax, dword [esi + 4]
push 8
push esi
mov dword [edi], eax
call fcn.0042769b
add esp, 8
jmp 0x49a7ea
call fcn.0049b010
mov edx, eax
call fcn.0049acf0
imul edx, eax
lea edi, [esi + 4]
add ebx, edx
mov esi, dword [edi]
test esi, esi
jne 0x49a7b0
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], 0
je 0x49a82f
push 8
call fcn.0042766b
mov edi, dword [ebp - 0xc]
mov esi, eax
add esp, 4
mov dword [esi], edi
mov ecx, dword [0x55acb0]
mov dword [esi + 4], ecx
mov ecx, edi
call fcn.0049b010
mov edx, eax
call fcn.0049acf0
imul edx, eax
mov dword [0x55acb0], esi
add ebx, edx
mov dword [ebp - 4], ebx
cmp ebx, 1
jb 0x49a8df
lea eax, [ebp - 0x40]
mov dword [ebp - 8], 0
push eax
mov dword [ebp - 0xc], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [0x55acb0]
mov esi, dword [ebp - 0x1c]
test ebx, ebx
je 0x49a8c9
xor eax, eax
mov ecx, dword [ebx]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call fcn.0049b010
mov edx, eax
call fcn.0049acf0
imul eax, edx
mov esi, 1
xor edx, edx
imul eax, dword [ebp - 0x2c]
div dword [ebp - 4]
cmp eax, esi
cmovae esi, eax
push esi
call fcn.0049a9c0
mov edi, dword [ebx]
mov ecx, edi
add dword [ebp - 8], esi
call fcn.0049acf0
mov edx, eax
mov eax, dword [ebp - 0xc]
cmp eax, edx
jae 0x49a8b4
call fcn.0049acf0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], edx
mov ebx, dword [ebx + 4]
cmovae esi, dword [ebp - 0x14]
cmp dword [ebp - 0x18], edx
cmovae edi, dword [ebp - 0x1c]
test ebx, ebx
jne 0x49a861
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49a8df
sub esi, eax
add esi, ecx
mov ecx, edi
push esi
call fcn.0049a9c0
push 0x55acb4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov edx, 0x7c
push esi
mov esi, ecx
mov eax, ebx
xor ecx, ecx
mul edx
push edi
mov dword [esi], vtable.DCDstrbtdPrcssng.0
seto cl
mov dword [esi + 4], ebx
neg ecx
mov dword [esi + 8], ebx
or ecx, eax
mov dword [esi + 0xc], 2
push ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0
call fcn.004276a9
imul ecx, ebx, 0x7c
mov dword [esi + 0x24], eax
push ecx
push 0
push eax
call fcn.004326b0
add esp, 0x10
lea eax, [esi + 0x28]
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov eax, dword [esi + 0x24]
push 0
push 0
push 1
mov dword [eax], 1
mov eax, dword [esi + 0x24]
push 0
mov dword [eax + 8], 0
mov eax, dword [esi + 0x24]
mov dword [eax + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esi + 0x24]
mov edi, 1
mov dword [ebp - 4], edi
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [eax + 0x14], 0
mov eax, dword [esi + 0x24]
mov dword [eax + 0x18], esi
cmp ebx, edi
jbe 0x49b1fb
mov ebx, 0x7c
mov dword [ebp - 8], ebx
mov eax, dword [esi + 0x24]
push 0
push 1
push 1
mov dword [ebx + eax], 0
mov eax, dword [esi + 0x24]
push 0
mov dword [ebx + eax + 8], edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
call edi
mov ecx, dword [esi + 0x24]
push 0
push 0
push 1
push 0
mov dword [ebx + ecx + 0xc], eax
call edi
mov ecx, dword [esi + 0x24]
mov edi, ebx
mov dword [ebx + ecx + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + eax + 0x14], 0
mov eax, dword [esi + 0x24]
mov dword [ebx + eax + 0x18], esi
mov ebx, 4
nop dword [eax + eax]
mov eax, dword [esi + 0x24]
add eax, 0x1c
push 0xfa0
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
add edi, 0x18
sub ebx, 1
jne 0x49b150
mov edi, dword [ebp - 4]
mov ecx, esi
push 2
push edi
call fcn.0049ab20
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x24]
push ebx
mov ebx, dword [ebp - 8]
add eax, ebx
push eax
push 0x49a900
push 0
push 0
call fcn.00438e0e
mov ecx, dword [esi + 0x24]
add esp, 0x18
push 0
push eax
mov dword [ebx + ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
inc edi
add ebx, 0x7c
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
cmp edi, eax
jb 0x49b0f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [eax - 1]
mov edi, 0x7c
mov dword [ebp + 8], ecx
nop
mov eax, dword [esi + 0x24]
cmp dword [edi + eax], 0
jne 0x49b1f0
nop dword [eax]
push 1
call ebx
mov eax, dword [esi + 0x24]
cmp dword [edi + eax], 0
je 0x49b1e0
mov ecx, dword [ebp + 8]
add edi, 0x7c
sub ecx, 1
mov dword [ebp + 8], ecx
jne 0x49b1d0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b5620
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51377b
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 - 0x14], ecx
mov ecx, edx
call fcn.004b6e20
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4b5759
mov ecx, dword [eax + 0x48]
lea ebx, [eax + 0x44]
sub ecx, dword [ebx]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x18], esi
cmp esi, 3
jae 0x4b5742
push dword [ebp + 8]
push 0
call fcn.004f5d20
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
add esi, 0x445
mov eax, dword [ebp - 0x10]
push edi
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [ebp - 0x10]
push 1
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], edi
cmp dword [ebx + 8], ecx
je 0x4b5702
mov edx, edi
mov dword [ecx + 0x10], 0
xor eax, eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b56e6
sub edx, esi
sar edx, 1
push edx
push edi
call fcn.00404310
add dword [ebx + 4], 0x18
jmp 0x4b570e
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.00407d50
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4b571a
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b572e
push edi
call fcn.00427666
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80000006
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, DirectSoundCreate8
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 0x4b9570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, 0xfffffffe
call fcn.004b9500
cmp eax, 0xffff0300
jb 0x4b9673
push 0x535880
push 0x81
push dword [0x56ae3c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4b966a
push edi
push dword [0x56ae3c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [0x56ae3c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebp - 4], eax
call fcn.004276a9
add esp, 4
mov dword [ebp - 0xc], eax
push 0x10000
call fcn.004276a9
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
push dword [ebp - 4]
push esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00432810
add esp, 0xc
mov ecx, esi
call fcn.004f2650
test eax, eax
je 0x4b9618
mov edx, esi
mov ecx, edi
call fcn.004f2600
jmp 0x4b9631
push 0
push 0
push dword [ebp - 4]
lea edx, [ebp - 0xc]
push esi
lea ecx, [ebp - 8]
call fcn.004c3920
mov edi, dword [ebp - 8]
add esp, 0x10
mov ecx, dword [0x568bb0]
lea edx, [ebp - 0x10]
push edx
push edi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1a8]
test eax, eax
js 0x4b9658
call fcn.004b9680
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [0x568b24], eax
push esi
call fcn.00427666
add esp, 4
push edi
call fcn.00427666
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xf
pop ebx
mov esp, ebp
pop ebp
ret