joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fc50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
mov al, byte [0xbbf624]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
jne 0x44fc71
or al, 1
mov byte [0xbbf624], al
call edi
mov dword [0xbc7b0c], eax
cmp dword [0xe36314], 0xa
je 0x44fc8b
mov ax, word [0xbc7b12]
mov word [esp + 0xc], ax
mov esi, dword [esp + 0xc]
jmp 0x44fc98
mov esi, dword [0xbc7b3c]
mov dword [esp + 0xc], esi
mov ax, si
test ax, ax
je 0x44fdb9
cmp ax, 3
jge 0x44fd3a
call edi
lea ecx, [esi + esi*4]
mov esi, dword [0xbc7b0c]
mov edx, 0x33
lea ecx, [ecx + ecx*4]
sub edx, ecx
movsx ecx, dx
add ecx, esi
cmp ecx, eax
jae 0x44fdb9
call fcn.0044fab0
mov esi, eax
test esi, esi
je 0x44fdb9
mov ebp, 1
mov word [esi + 0x3c], bp
call fcn.00505223
cdq
mov ecx, 0x348
mov dword [esi + 4], 0
idiv ecx
sub edx, 0xc8
mov dword [esi], edx
call fcn.00505223
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x44fd12
dec eax
or eax, 0xfffffffe
inc eax
add eax, 2
mov dword [esi + 0xc], 9
mov dword [esi + 8], eax
call edi
inc word [0xbc7b16]
mov dword [0xbc7b0c], eax
mov edx, dword [esi + 0xc]
neg edx
mov dword [esi + 4], edx
jmp 0x44fdbe
lea eax, [esi*4 - 8]
movsx eax, ax
test eax, eax
jle 0x44fdb9
mov dword [esp + 0xc], eax
mov ebp, 9
call fcn.0044fab0
mov esi, eax
test esi, esi
je 0x44fdae
mov word [esi + 0x3c], 1
call fcn.00505223
cdq
mov ecx, 0x348
mov dword [esi + 4], 0
idiv ecx
sub edx, 0xc8
mov dword [esi], edx
call fcn.00505223
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x44fd8f
dec eax
or eax, 0xfffffffe
inc eax
add eax, 2
mov dword [esi + 0xc], ebp
mov dword [esi + 8], eax
call edi
inc word [0xbc7b16]
mov dword [0xbc7b0c], eax
mov edx, dword [esi + 0xc]
neg edx
mov dword [esi + 4], edx
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0xc], eax
jne 0x44fd51
mov ebp, 1
mov esi, dword [0xbc7b04]
test esi, esi
je 0x44fe24
cmp word [esi + 0x3c], bp
jne 0x44fe16
mov eax, dword [esi + 8]
mov edi, dword [esi]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
add edi, eax
add edx, ecx
mov dword [esi], edi
lea edi, [esi + 4]
push edi
push esi
mov dword [edi], edx
call fcn.0044fb50
mov eax, dword [esi]
add esp, 8
cmp eax, 0x280
jge 0x44fdff
cmp dword [edi], 0x1e0
jl 0x44fe16
mov edi, dword [esi + 0x38]
push esi
call fcn.0044fb00
add esp, 4
dec word [0xbc7b16]
mov esi, edi
jmp 0x44fe20
mov esi, dword [esi + 0x38]
mov word [0xbc7b10], bp
test esi, esi
jne 0x44fdc8
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x450df0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
fild dword [0xc1f44c]
push ebx
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
push ecx
fstp dword [esp]
fild dword [0xc1f448]
push ecx
fstp dword [esp]
call fcn.0044e750
fld dword [esp + 0x20]
fadd qword [0x514938]
add esp, 0x10
call fcn.00505248
fld dword [esp + 0xc]
fadd qword [0x514938]
mov esi, eax
mov dword [0xbc7b60], esi
call fcn.00505248
mov edi, eax
lea eax, [esi + 0x20]
cdq
and edx, 0x3f
mov dword [0xbc7b64], edi
add eax, edx
mov ecx, eax
lea eax, [edi + 0x20]
cdq
and edx, 0x3f
add eax, edx
lea edx, [esp + 0xc]
sar eax, 6
mov dword [0xbc7b5c], eax
push edx
shl eax, 6
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
sar ecx, 6
push edx
mov dword [0xbc7b58], ecx
push ecx
shl ecx, 6
fstp dword [esp]
mov dword [esp + 0x20], ecx
push ecx
fild dword [esp + 0x24]
fstp dword [esp]
call fcn.0044e700
mov eax, dword [0xc1f44c]
mov edi, 0x1c8
add esp, 0x10
xor esi, esi
cmp eax, edi
mov dword [0xbc7b70], esi
mov dword [0xbc7b74], esi
mov dword [0xbc7b78], esi
mov dword [0xbc7b7c], esi
jge 0x451031
mov al, byte [0xc1f48c]
mov bl, 0xd4
cmp al, bl
jae 0x450ede
cmp dword [0x542e8c], esi
jl 0x450ef6
cmp dword [0xbc7b54], esi
jne 0x450ef6
cmp dword [0x5d6858], esi
jne 0x450ef6
cmp dword [0x5d68e8], esi
je 0x450f59
cmp word [0xbc7b6c], si
jne 0x450f59
fld dword [esp + 0xc]
fadd qword [0x514938]
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1a], eax
push ecx
mov dword [esp + 0x22], eax
push esi
mov dword [esp + 0x2a], eax
push 0x3be99
mov word [esp + 0x24], si
mov word [esp + 0x32], ax
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0x31], 4
push 0x64
call fcn.00505248
fld dword [esp + 0x20]
fadd qword [0x514938]
push eax
call fcn.00505248
push eax
call fcn.004ec130
add esp, 0x18
cmp dword [0xc1f44c], edi
jge 0x451031
cmp byte [0xc1f48c], bl
jae 0x450f75
cmp dword [0x542e8c], esi
jl 0x450f91
cmp dword [0xbc7b50], esi
jne 0x450f91
cmp dword [0x5d6858], esi
jne 0x450f91
cmp dword [0x5d68e8], esi
je 0x451031
mov al, byte [0xc1f474]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, 1
test bl, al
je 0x450fc0
cmp dword [0xbc7b48], esi
jne 0x450fc0
mov dword [0xbc7b70], ebx
mov dword [0xbc7b4c], esi
call edi
mov dword [0xbc7b68], eax
test byte [0xc1f470], bl
je 0x450fee
cmp dword [0xbc7b48], esi
jne 0x450fee
mov eax, dword [0xbc7b68]
mov dword [0xbc7b74], ebx
cmp eax, esi
jbe 0x450ffa
call edi
sub eax, dword [0xbc7b68]
mov dword [0xbc7b4c], eax
jmp 0x450ffa
mov dword [0xbc7b4c], esi
mov dword [0xbc7b68], esi
mov cl, byte [0xc1f474]
mov al, 2
test al, cl
je 0x451014
cmp dword [0xbc7b78], esi
jne 0x451014
mov dword [0xbc7b78], ebx
test byte [0xc1f470], al
je 0x45103d
cmp dword [0xbc7b78], esi
jne 0x45103d
pop edi
mov dword [0xbc7b7c], ebx
pop esi
pop ebx
add esp, 0x1c
ret
mov dword [0xbc7b4c], esi
mov dword [0xbc7b68], esi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4d36f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0xc1f47c]
sub esp, 0x20
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
xor edi, edi
cmp eax, edi
mov dword [0xc1f474], edi
jbe 0x4d371b
call esi
sub eax, dword [0xc1f47c]
mov dword [0xc1f480], eax
jmp 0x4d3720
mov eax, dword [0xc1f480]
cmp dword [0xc1f484], edi
jbe 0x4d3740
call esi
mov ecx, eax
mov eax, dword [0xc1f484]
sub ecx, eax
mov eax, dword [0xc1f480]
mov dword [0xc1f488], ecx
jmp 0x4d3746
mov ecx, dword [0xc1f488]
cmp eax, 0x1f4
jbe 0x4d379a
mov edx, dword [0xc1f4a0]
cmp edx, edi
jne 0x4d376d
mov edx, dword [0xc1f478]
mov dword [0xc1f4a0], eax
or edx, 1
mov dword [0xc1f478], edx
jmp 0x4d37ac
mov esi, eax
sub esi, edx
cmp esi, 0x64
jb 0x4d378c
mov edx, dword [0xc1f478]
mov dword [0xc1f4a0], eax
or edx, 1
mov dword [0xc1f478], edx
jmp 0x4d37ac
mov eax, dword [0xc1f478]
and al, 0xfe
mov dword [0xc1f478], eax
jmp 0x4d37ac
mov eax, dword [0xc1f478]
mov dword [0xc1f4a0], edi
and al, 0xfe
mov dword [0xc1f478], eax
cmp ecx, 0x1f4
jbe 0x4d37f7
mov eax, dword [0xc1f340]
cmp eax, edi
jne 0x4d37d1
mov eax, dword [0xc1f478]
mov dword [0xc1f340], ecx
or al, 2
mov dword [0xc1f478], eax
jmp 0x4d3809
mov edx, ecx
sub edx, eax
mov eax, dword [0xc1f478]
cmp edx, 0x64
jb 0x4d37ee
or al, 2
mov dword [0xc1f340], ecx
mov dword [0xc1f478], eax
jmp 0x4d3809
and al, 0xfd
mov dword [0xc1f478], eax
jmp 0x4d3809
mov eax, dword [0xc1f478]
mov dword [0xc1f340], edi
and al, 0xfd
mov dword [0xc1f478], eax
cmp dword [0xc1e5ac], edi
jne 0x4d388c
cmp dword [0xc1f494], edi
jne 0x4d3906
xor eax, eax
lea ecx, [esp + 8]
mov dword [esp + 0xa], eax
push ecx
mov dword [esp + 0x12], eax
push edi
mov dword [esp + 0x1a], eax
mov word [esp + 0x10], di
mov word [esp + 0x1e], ax
mov eax, dword [0xc1f49c]
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0x1d], 4
lea eax, [eax + eax*2]
shl eax, 2
mov edx, dword [eax + 0x51fe20]
movsx ecx, word [eax + 0x51fe26]
push edx
mov edx, dword [0xc1f44c]
push 0xe7
lea ecx, [ecx + edx + 0x10]
movsx edx, word [eax + 0x51fe24]
mov eax, dword [0xc1f448]
push ecx
lea ecx, [edx + eax + 0x10]
push ecx
call fcn.004ec130
add esp, 0x18
jmp 0x4d3906
mov edx, dword [0xc1f49c]
mov eax, dword [0xc1f338]
cmp edx, eax
je 0x4d38fa
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x8e53fc]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [0x8e53fc]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 8]
cmp eax, edi
jl 0x4d38fa
cmp eax, dword [esp + 0x20]
jge 0x4d38fa
mov eax, dword [esp + 0xc]
cmp eax, edi
jl 0x4d38fa
cmp eax, dword [esp + 0x24]
jge 0x4d38fa
mov edx, dword [0xc1f49c]
mov eax, dword [edx*4 + 0x8e53c8]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [0xc1f49c]
mov dword [0xc1f338], ecx
mov edx, dword [0xc1f49c]
mov dword [0xc1f49c], edi
mov dword [0x8e540c], edx
call fcn.004d36c0
pop edi
pop esi
add esp, 0x20
ret
Function at 0x4d43d0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x1210
call fcn.005067e0
mov al, byte [0xc30784]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
jne 0x4d43f8
or al, 1
mov byte [0xc30784], al
call ebp
mov dword [0xc30788], eax
mov al, byte [0xc3078c]
test al, al
je 0x4d45e4
mov al, byte [0xc3078e]
cmp al, 1
jne 0x4d4427
push 0xb
call fcn.004e74e0
add esp, 4
mov byte [0xc3078e], 2
pop ebp
add esp, 0x1210
ret
test al, al
jne 0x4d45e4
mov al, byte [0xc3078d]
test al, al
je 0x4d45e4
mov eax, dword [0xc30794]
inc eax
and eax, 7
mov dword [0xc30794], eax
jne 0x4d45e4
mov eax, dword [0xc2c77c]
mov ecx, 1
mov dword [esp + 0xc], ecx
mov dword [esp + 0x110], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x114], eax
push ecx
lea edx, [esp + 0x114]
push 0
lea eax, [esp + 0x14]
push edx
push eax
push 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.WSOCK32.dll_select
mov edx, dword [0xc2c77c]
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4d451f
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov ecx, dword [0xc2c77c]
push eax
lea eax, [esp + 0x21c]
push 0xfff
push eax
push ecx
call sub.WSOCK32.dll_recv
test eax, eax
pop edi
jle 0x4d44fd
lea edx, [esp + 0x214]
push eax
push edx
mov dword [0xc30790], 0
call fcn.004d4690
add esp, 8
jmp 0x4d451f
je 0x4d451f
cmp eax, 0xffffffff
jne 0x4d451f
call fcn.004d4860
test eax, eax
jle 0x4d451f
mov eax, dword [0xc2c77c]
push eax
call sub.WSOCK32.dll_closesocket
mov byte [0xc3078e], 1
mov eax, dword [0xc1fe68]
test eax, eax
jle 0x4d4554
push 0x8000
push 0xc2477c
call fcn.004d47d0
add esp, 8
test eax, eax
jne 0x4d4554
mov ecx, dword [0xc2c77c]
push 0xc2477c
push ecx
call fcn.004ddec0
add esp, 8
jmp 0x4d451f
mov eax, dword [0xc30780]
push esi
test eax, eax
jle 0x4d45b4
mov cl, byte [0xc3078e]
test cl, cl
jne 0x4d45b4
mov edx, dword [0xc2c77c]
push 0
push eax
push 0xc2077c
push edx
call sub.WSOCK32.dll_send
mov esi, eax
test esi, esi
jle 0x4d4589
call ebp
mov dword [0xc30788], eax
cmp esi, 0xffffffff
jne 0x4d45ab
call fcn.004d48a0
test eax, eax
jle 0x4d45b4
mov eax, dword [0xc2c77c]
push eax
call sub.WSOCK32.dll_closesocket
mov byte [0xc3078e], 1
jmp 0x4d45b4
push esi
call fcn.004d4780
add esp, 4
call ebp
mov ecx, dword [0xc30788]
pop esi
add ecx, 0x7530
cmp ecx, eax
jae 0x4d45e4
cmp byte [0xc3078c], 1
jne 0x4d45e4
mov edx, dword [0xc2c77c]
push 0x54a140
push edx
call fcn.004ddd30
add esp, 8
pop ebp
add esp, 0x1210
ret

Function at 0x4d45f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4d4612
xor eax, eax
add esp, 0x190
ret
mov ecx, dword [0xc2c77c]
push ecx
push 0x10000
push 0x4d46e0
call fcn.004e1880
mov eax, 1
add esp, 0xc
mov byte [0xc3078c], al
mov byte [0xc3078e], 0
add esp, 0x190
ret
Function at 0x4db500
Capabilities:
Create http request
Initialize winsock library
Read data from internet
Receive data

Disassembly:
sub esp, 0x394
lea eax, [esp + 4]
push ebp
push esi
push edi
push str._web.txt
push str.http:__127.0.0.1_s
push eax
call fcn.0050543d
add esp, 0xc
push 0
push 0
push 0
push 0
push str.IKKI_Ver6
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
je 0x4db55d
push 0
push closesocket
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x4db58b
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [esp + 0x210]
xor esi, esi
push eax
push 0x101
mov dword [0xc30798], esi
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4db696
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x394
ret
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
xor eax, eax
mov dword [0xc307a0], eax
lea edx, [eax + 0x800]
mov dword [esp + 0xc], 0x800
cmp edx, 0x4000
ja 0x4db5dc
lea ecx, [esp + 0xc]
lea edx, [eax + 0xc307a4]
push ecx
push 0x800
push edx
push esi
call edi
test eax, eax
je 0x4db60c
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4db61d
mov eax, dword [0xc307a0]
add eax, ecx
mov dword [0xc307a0], eax
jmp 0x4db598
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov eax, dword [0x8e53fc]
push 0x10
push str.NewestInitNetWork
push 0x54a4d0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x394
ret
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
jmp 0x4db55d
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov ecx, dword [0xc307a0]
mov byte [ecx + 0xc307a4], 0
movsx ecx, word [0x54a164]
lea eax, [ecx + ecx*2]
shl eax, 6
add eax, ecx
lea ecx, [esp + 0x110]
lea edx, [eax + 0xc1fef0]
lea eax, [eax + 0xc1fe70]
push edx
push eax
push str._s:_s
push ecx
call fcn.0050543d
lea edx, [esp + 0x120]
push edx
push 0xc307a4
call fcn.00505660
add esp, 0x18
test eax, eax
je 0x4db55d
mov eax, 1
pop edi
pop esi
mov dword [0xc30798], eax
pop ebp
add esp, 0x394
ret
mov dword [0xc307a0], esi
pop edi
pop esi
mov byte [0xc307a4], 0
mov eax, 1
pop ebp
add esp, 0x394
ret
Function at 0x4db6c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword [0xc30798]
sub esp, 0x20
test eax, eax
jne 0x4db79f
mov eax, dword [str.127.0.0.1]
mov ecx, dword [0x54a534]
mov edx, dword [0x54a538]
mov dword [esp], eax
mov eax, dword [0x54a53c]
push 0
push 1
push 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0xc3079c], eax
jne 0x4db714
mov eax, 0xfffffffd
add esp, 0x20
ret
push 0x50
mov word [esp + 0x14], 2
call sub.WSOCK32.dll_htons
lea ecx, [esp]
mov word [esp + 0x12], ax
push ecx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4db767
lea edx, [esp]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4db75c
mov eax, dword [0xc3079c]
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffffc
add esp, 0x20
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov edx, dword [0xc3079c]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x4db79f
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4db79f
mov eax, dword [0xc3079c]
push eax
call sub.WSOCK32.dll_closesocket
mov eax, 0xfffffffb
add esp, 0x20
ret
mov eax, 1
add esp, 0x20
ret

Function at 0x4db7b0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov eax, dword [0xc30798]
sub esp, 0x100
test eax, eax
jne 0x4db7fa
push edi
push str._web.txt
lea eax, [esp + 8]
push str.GET__s_HTTP_1._0_n_n
push eax
call fcn.0050543d
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [0xc3079c]
push 0
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WSOCK32.dll_send
pop edi
add esp, 0x100
ret
Function at 0x4db810
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x420c
call fcn.005067e0
mov eax, dword [0xc30798]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x4db835
pop esi
mov eax, 1
pop ebx
add esp, 0x420c
ret
mov eax, dword [0xc3079c]
lea ecx, [esp + 8]
push ecx
push ebx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 1
call sub.WSOCK32.dll_select
mov ecx, dword [0xc3079c]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4db970
movsx ecx, word [0x54a164]
lea eax, [ecx + ecx*2]
shl eax, 6
add eax, ecx
lea ecx, [esp + 0x114]
lea edx, [eax + 0xc1fef0]
lea eax, [eax + 0xc1fe70]
push edx
push eax
push str._s:_s
push ecx
call fcn.0050543d
mov eax, dword [0xc3079c]
add esp, 0x10
lea edx, [esp + 0x214]
push ebx
push 0x3fff
push edx
push eax
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, 0xffffffff
je 0x4db970
cmp esi, ebx
jle 0x4db948
mov eax, dword [0xc307a0]
lea ecx, [eax + esi]
cmp ecx, 0x4000
jb 0x4db91e
mov esi, 0x3fff
lea edx, [esp + 0x214]
sub esi, eax
push esi
push edx
push 0xc307a4
call fcn.00505c80
mov eax, dword [0xc307a0]
add esp, 0xc
add eax, esi
mov dword [0xc307a0], eax
pop esi
mov byte [eax + 0xc307a4], bl
or eax, 0xffffffff
pop ebx
add esp, 0x420c
ret
lea eax, [esp + 0x214]
push esi
push eax
push 0xc307a4
call fcn.00505c80
mov eax, dword [0xc307a0]
add esp, 0xc
add eax, esi
cmp esi, ebx
mov dword [0xc307a0], eax
mov byte [eax + 0xc307a4], bl
jne 0x4db970
lea ecx, [esp + 0x114]
push ecx
push 0xc307a4
call fcn.00505660
add esp, 8
neg eax
sbb eax, eax
pop esi
and eax, 2
pop ebx
dec eax
add esp, 0x420c
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x420c
ret
Function at 0x4e21a0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], 0
mov eax, ecx
inc eax
cmp eax, 0x64
mov ecx, eax
jge 0x4e2226
mov edx, dword [0x54a814]
lea edx, [edx + edx*2 - 2]
cmp eax, edx
jle 0x4e21ec
push str.lsgen:_badly_configured_work_buflen_n
push 0x551b00
call fcn.00505eda
add esp, 8
push 1
call fcn.005076ce
mov edx, eax
and edx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4e21fb
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
jne 0x4e2203
lea ecx, [eax + 1]
mov edx, dword [0x54a838]
mov byte [edx], cl
mov edx, dword [0x54a838]
mov ecx, eax
lea edi, [edx + 1]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4e2269
mov edx, eax
and edx, reloc.DSOUND.dll_DirectSoundCreate
jns 0x4e2235
dec edx
or edx, 0xfffffffe
inc edx
jne 0x4e223a
lea ecx, [eax + 1]
mov eax, dword [0x54a838]
mov edi, esi
mov byte [eax], cl
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x54a838]
repne scasb al, byte es:[edi]
mov eax, dword [0x54a814]
not ecx
dec ecx
inc edx
push ecx
lea ecx, [eax + eax*2 - 1]
push esi
push ecx
push edx
call fcn.004e2900
add esp, 0x10
inc eax
test eax, eax
jg 0x4e2289
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push 0x5462bc
push ecx
call fcn.004e1c90
add esp, 0xc
pop edi
pop esi
pop ecx
ret
mov esi, dword [0x54a838]
mov edi, dword [0x54a830]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x54a814]
lea ecx, [ecx + ecx*2 - 1]
push ecx
mov ecx, dword [0x54a834]
push edx
mov edx, dword [0x54a830]
push ecx
push 0x11f3
push eax
push edx
call fcn.004e2690
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [0x54a834]
push eax
push ecx
push edx
call fcn.004e23e0
add esp, 0x24
pop edi
pop esi
pop ecx
ret
Function at 0x4e64e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x53f8e4]
sub esp, 8
cmp eax, 0xffffffff
push esi
push edi
jne 0x4e65c8
mov ecx, dword [0x92bd28]
mov esi, dword [0xbc7b58]
mov eax, ecx
sub eax, esi
jns 0x4e6509
mov eax, esi
sub eax, ecx
cmp eax, 1
jg 0x4e65c8
mov ecx, dword [0x92bd30]
mov edx, dword [0xbc7b5c]
mov eax, ecx
sub eax, edx
jns 0x4e6528
mov eax, edx
sub eax, ecx
cmp eax, 1
jg 0x4e65c8
push 7
push edx
push esi
call fcn.0042c870
add esp, 0xc
test eax, eax
je 0x4e65c8
mov eax, dword [0xbc7b58]
mov esi, dword [0x92bd28]
mov ecx, dword [0xbc7b5c]
mov edx, dword [0x92bd30]
sub eax, esi
sub ecx, edx
mov dword [esp + 8], eax
fild dword [esp + 8]
mov dword [esp + 8], ecx
fstp dword [esp + 0xc]
fild dword [esp + 8]
mov eax, dword [esp + 0xc]
fstp dword [esp + 8]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.0044e6c0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 8
mov esi, eax
call edi
mov ecx, dword [0xe3630c]
add ecx, 0x1f4
cmp ecx, eax
jae 0x4e65c8
mov edx, dword [0x92bd30]
mov eax, dword [0x92bd28]
mov ecx, dword [0xc2c77c]
push esi
push edx
push eax
push ecx
call fcn.004dbf80
add esp, 0x10
call edi
mov dword [0xe3630c], eax
pop edi
pop esi
add esp, 8
ret
Function at 0x4ed3d0
Capabilities:
Log keystrokes via polling

Disassembly:
test byte [0x8e5390], 0x20
je 0x4ed3e6
mov dword [0xe914d8], 1
xor eax, eax
ret
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x4ed400
mov dword [0xe914d8], 1
xor eax, eax
ret
push str._tinitDSound___Start
call fcn.004321b0
add esp, 4
call fcn.004ed450
test eax, eax
jne 0x4ed421
mov dword [0xe914d8], 1
ret
push str._tmusic_init___Start
call fcn.004321b0
call fcn.004f4bf0
push str.t_music_init_OK
mov dword [0xe914d8], 0
call fcn.004321b0
add esp, 8
mov eax, 1
ret