joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ada8
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004032b0
mov eax, dword [0x40f200]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x411444]
mov dword [ebp - 4], eax
jae 0x40aeeb
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x411460]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40aeeb
push 1
push esi
push ebx
call fcn.00408328
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40aef5
push 2
push esi
push ebx
call fcn.00408328
add esp, 0xc
cmp eax, 0xffffffff
je 0x40aef5
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40ae95
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00405630
push 0x8000
push ebx
call fcn.0040b671
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40ae54
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00408138
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ae72
sub edi, eax
test edi, edi
jg 0x40ae49
jmp 0x40ae88
cmp dword [0x41006c], 5
jne 0x40ae85
mov dword [0x410068], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040b671
pop ecx
pop ecx
jmp 0x40aed5
jge 0x40aed5
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00408328
push ebx
call fcn.00409d44
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40aed5
mov dword [0x410068], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41006c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00408328
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40aef8
mov dword [0x410068], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040331e
leave
ret
Function at 0x4037a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push 0
call fcn.0046120a
push eax
call fcn.004611db
add esp, 8
mov dword [esi], 0
push 0x30d40
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 8], eax
jne 0x4037db
pop esi
add esp, 0x190
ret
push edi
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x403808
xor eax, eax
pop esi
add esp, 0x190
ret
mov dword [esi + 0xc], 0xffffffff
mov eax, 1
pop esi
add esp, 0x190
ret

Function at 0x403860
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
mov dword [ebx], 0
cmp dword [esi], 0
je 0x40387e
mov dword [ebx], 1
pop esi
pop ebx
ret 0xc
push 0
push 1
push 2
call dword [sym.imp.ws2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x40389d
mov dword [ebx], 2
pop esi
pop ebx
ret 0xc
mov eax, dword [esp + 0xc]
push edi
lea edi, [esi + 0x10]
push eax
mov word [edi], 2
call dword [sym.imp.ws2_32.dll_inet_addr]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x14], eax
push ecx
call dword [sym.imp.ws2_32.dll_htons]
mov edx, dword [esi + 0xc]
push 0x10
push edi
push edx
mov word [esi + 0x12], ax
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
pop edi
jne 0x4038eb
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [ebx], 3
pop esi
pop ebx
ret 0xc
mov edx, dword [esi + 0xc]
push 0
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 1
je 0x403918
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [ebx], 4
pop esi
pop ebx
ret 0xc
mov ecx, dword [0x47c0a4]
mov edx, dword [esi + 0xc]
push 0x25
push 0x401
push ecx
push edx
call dword [sym.imp.ws2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x40394a
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [ebx], 2
pop esi
pop ebx
ret 0xc
mov dword [esi + 4], 0
call fcn.004611e8
mov dword [esi + 0x20], eax
mov dword [esi], 1
pop esi
pop ebx
ret 0xc
Function at 0x403b80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
and eax, 0xffff
push ebp
push esi
dec eax
push edi
mov ebx, ecx
je 0x403baa
sub eax, 3
je 0x403baa
sub eax, 0x1c
jne 0x403ba3
mov ecx, ebx
call fcn.00403ce0
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
push 0
add eax, edi
push 0x186a0
push eax
push ecx
call dword [sym.imp.ws2_32.dll_recv]
test eax, eax
jg 0x403be8
cmp eax, 0xffffffff
jne 0x403b9c
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x403ba3
mov ecx, ebx
call fcn.00403ce0
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, ecx
mov dword [ebx + 4], ecx
test eax, eax
jle 0x403ba3
mov esi, dword [ebx + 8]
mov al, byte [esi]
cmp al, 0xe
mov byte [esp + 0x14], al
je 0x403c67
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx + 4]
and ebp, 0xff
shl ebp, 2
mov ecx, dword [ebp + 0x47c804]
cmp eax, ecx
jl 0x403ba3
mov edi, dword [0x47c800]
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]
call dword [ebp + 0x47c400]
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 0x47c804]
cmp ecx, eax
jl 0x403cc3
mov edi, dword [ebx + 8]
sub ecx, eax
lea esi, [eax + edi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x47c804]
mov eax, dword [ebx + 4]
sub eax, ecx
jmp 0x403cc0
mov eax, dword [ebx + 4]
cmp eax, 5
jle 0x403ba3
mov ebp, dword [esi + 1]
cmp eax, ebp
jl 0x403ba3
add esi, 5
lea edx, [ebp - 5]
push esi
push edx
mov ecx, 0x47c800
call fcn.00404250
test eax, eax
je 0x403b9c
call dword [0x47c438]
mov ecx, dword [ebx + 4]
cmp ecx, ebp
jl 0x403cc3
mov edi, dword [ebx + 8]
sub ecx, ebp
mov eax, ecx
lea esi, [edi + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
sub eax, ebp
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
test eax, eax
jg 0x403bf6
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x408a50
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, ecx
push edi
test eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], 0
jle 0x408ab7
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ws2_32.dll_send]
mov ebp, dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov edx, dword [0x47c3e4]
push 0
add ecx, edi
push eax
push ecx
push edx
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x408aa0
call ebp
cmp eax, 0x2733
jne 0x408ac3
jmp 0x408ab0
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
sub edx, eax
add ecx, eax
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov eax, dword [esi + 4]
test eax, eax
jg 0x408a78
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x40ac80
Capabilities:
Read file on windows

Disassembly:
jmp 0x40ac90
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
mov edi, ecx
push 0x4735b0
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40acc1
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
lea eax, [esp + 0xc]
push 0
push eax
push 0x18
push edi
push esi
call ebx
test eax, eax
jne 0x40ace6
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esp + 0xc], 0x18
je 0x40acfb
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [edi + 0x18]
push 0xc
push edx
push esi
call ebx
test eax, eax
jne 0x40ad1d
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esp + 0xc], 0xc
je 0x40ad32
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
lea eax, [esp + 0xc]
push 0
push eax
add edi, 0x24
push 0x14
push edi
push esi
call ebx
test eax, eax
jne 0x40ad54
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
push esi
cmp eax, 0x14
je 0x40ad6b
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.kernel32.dll_CloseHandle]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
pop ecx
ret
Function at 0x40cde0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
mov esi, ecx
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40cf86
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push edi
call ebp
test eax, eax
jne 0x40ce39
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
cmp dword [esp + 0x10], 4
je 0x40ce4f
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x40cebc
shl eax, 5
push eax
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40ce78
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
shl ecx, 5
push ecx
push ebx
push edi
call ebp
test eax, eax
jne 0x40ce9e
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
shl edx, 5
cmp eax, edx
je 0x40cebe
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
xor ebx, ebx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
je 0x40cf86
mov eax, dword [esp + 0x1c]
dec eax
je 0x40cf5b
dec eax
je 0x40cf28
dec eax
je 0x40cef5
test ebx, ebx
je 0x40cf86
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esi + 0x578]
test eax, eax
je 0x40cf10
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov dword [esi + 0x570], 0
mov eax, dword [esp + 0x18]
mov dword [esi + 0x578], ebx
mov dword [esi + 0x574], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esi + 0x570]
test eax, eax
je 0x40cf43
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov dword [esi + 0x570], 0
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x570], ebx
mov dword [esi + 0x56c], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esi + 0x458]
test eax, eax
je 0x40cf76
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
mov dword [esi + 0x458], 0
mov edx, dword [esp + 0x18]
mov dword [esi + 0x458], ebx
mov dword [esi + 0x454], edx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x40f090
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x3e8
xor eax, eax
lea edx, [ecx + 4]
push esi
push edi
mov edi, dword [esp + 0x3f4]
cmp edi, dword [edx]
je 0x40f0b1
inc eax
add edx, 4
cmp eax, 7
jl 0x40f0a4
cmp eax, 7
je case.0x40f2e7.8
cmp eax, 6
ja case.0x40f2e7.8
jmp dword [eax*4 + 0x40f36c]
cmp dword [esp + 0x3f8], 0x100
jne case.0x40f2e7.8
mov esi, dword [esp + 0x3fc]
cmp esi, 9
je 0x40f124
cmp esi, 8
je 0x40f11a
cmp esi, 0x80
jae 0x40f11a
lea eax, [esp + 8]
push 0x3e8
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, 0xc
jne 0x40f11a
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
cmp esi, 0xd
je case.0x40f2e7.10
jmp 0x40f21a
push 1
call fcn.0040f040
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
cmp dword [esp + 0x3f8], 0x100
jne case.0x40f2e7.8
mov esi, dword [esp + 0x3fc]
cmp esi, 9
je 0x40f1b3
cmp esi, 8
je 0x40f190
cmp esi, 0xd
je 0x40f199
cmp esi, 0x80
jae 0x40f190
lea ecx, [esp + 8]
push 0x3e8
push ecx
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, 0xc
jne 0x40f190
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
cmp esi, 0xd
jne 0x40f21a
mov ecx, 0x6fd270
call fcn.00433580
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
push 0
call fcn.0040f040
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
cmp dword [esp + 0x3f8], 0x100
jne case.0x40f2e7.8
mov esi, dword [esp + 0x3fc]
cmp esi, 8
je 0x40f211
cmp esi, 0x80
jae 0x40f211
lea edx, [esp + 8]
push 0x3e8
push edx
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, 0xc
jne 0x40f211
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
cmp esi, 0xd
je case.0x40f2e7.10
push 0
push 0
push 0x64
mov ecx, 0x602c6c
call fcn.0040c880
pop edi
xor eax, eax
pop esi
add esp, 0x3e8
ret 0x1c
cmp dword [esp + 0x3f8], 0x100
jne case.0x40f2e7.8
cmp dword [esp + 0x3fc], 0xd
jne case.0x40f2e7.8
push 1
mov ecx, 0x62f668
call fcn.00418370
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
cmp dword [esp + 0x3f8], 0x100
jne case.0x40f2e7.8
mov eax, dword [esp + 0x3fc]
cmp eax, 9
je 0x40f2a4
cmp eax, 0xd
jne case.0x40f2e7.8
push 2
mov ecx, 0x62f668
call fcn.00418370
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
push 3
call fcn.0040f040
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
cmp dword [esp + 0x3f8], 0x100
jne case.0x40f2e7.8
mov eax, dword [esp + 0x3fc]
add eax, 0xfffffff8
cmp eax, 0x31
ja case.0x40f2e7.10
xor ecx, ecx
mov cl, byte [eax + 0x40f394]
jmp dword [ecx*4 + 0x40f388]
mov ecx, 0x6fd298
call fcn.00436e10
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
cmp dword [esp + 0x3f8], 0x100
jne case.0x40f2e7.8
mov esi, dword [esp + 0x3fc]
cmp esi, 9
je 0x40f358
cmp esi, 8
je 0x40f358
cmp esi, 0x80
jae 0x40f358
lea edx, [esp + 8]
push 0x3e8
push edx
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, 0x18
jne 0x40f358
pop edi
mov eax, 1
pop esi
add esp, 0x3e8
ret 0x1c
xor eax, eax
cmp esi, 0xd
pop edi
pop esi
sete al
add esp, 0x3e8
ret 0x1c
Function at 0x40f8a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 3
push ebp
push 1
push DirectSoundCreate
mov esi, ecx
push 0x473b80
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f8d3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push ebp
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0x619
je 0x40f8f1
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push 0x619
push ebp
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
jne 0x40f912
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
lea eax, [esp + 0x10]
push ebp
push eax
push 0x619
push ebx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40f93f
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp dword [esp + 0x10], 0x619
jne 0x40f929
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x40f963
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov dword [esi + 0x1d0], ebp
xor ecx, ecx
mov dl, byte [ebx + ebp]
cmp dl, 0xd
jne 0x40f9a8
mov edx, dword [esi + 0x1d0]
mov eax, edx
shl eax, 4
add eax, edx
lea ecx, [ecx + eax*2]
add eax, ecx
mov byte [eax + esi + 0x1d4], 0
mov ecx, dword [esi + 0x1d0]
inc ecx
mov eax, ecx
mov dword [esi + 0x1d0], ecx
cmp eax, 0x3e8
je 0x40f954
xor ecx, ecx
inc ebp
jmp 0x40f9c9
mov edi, dword [esi + 0x1d0]
inc dl
mov eax, edi
shl eax, 4
add eax, edi
lea edi, [ecx + eax*2]
add eax, edi
inc ecx
cmp ecx, 0x33
mov byte [eax + esi + 0x1d4], dl
je 0x40f954
inc ebp
cmp ebp, 0x619
jl 0x40f96b
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [esi + 0x1d0]
xor eax, eax
pop edi
cmp ecx, 0xf6
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret
Function at 0x40fc60
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
mov esi, ecx
push 0x473b98
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fcd8
push 0
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x40fcd1
push ebx
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x40fcd1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push ebp
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x40fcca
cmp dword [esp + 0x10], ebx
je 0x40fce2
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x40fcfe
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
xor edi, edi
xor ecx, ecx
cmp ebx, edi
mov dword [esi + 0xc90c], edi
jle 0x40fd61
mov eax, dword [esi + 0xc90c]
mov bl, byte [edi + ebp]
cmp bl, 0xd
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
jne 0x40fd46
add ecx, eax
lea eax, [ecx + edx*4]
mov byte [eax + esi + 0xc910], 0
mov ecx, dword [esi + 0xc90c]
inc ecx
mov eax, ecx
mov dword [esi + 0xc90c], ecx
cmp eax, 0x64
je 0x40fced
xor ecx, ecx
inc edi
jmp 0x40fd58
add eax, ecx
inc ecx
cmp ecx, 0x65
lea edx, [eax + edx*4]
mov byte [edx + esi + 0xc910], bl
je 0x40fced
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x40fd0c
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov dword [esi + 0xf084], 0
call dword [sym.imp.winmm.dll_timeGetTime]
mov dword [esi + 0xf088], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x4109a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
call fcn.00403790
mov eax, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4109dc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push esi
call ebx
test eax, eax
jne 0x410a09
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
cmp dword [esp + 0xc], 4
je 0x410a22
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*2]
lea ecx, [eax + eax*8]
shl ecx, 2
push ecx
push edi
push esi
call ebx
test eax, eax
jne 0x410a51
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
push esi
lea eax, [eax + eax*2]
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x10]
shl edx, 2
cmp eax, edx
je 0x410a78
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x410a8b
pop edi
pop esi
pop ebx
add esp, 8
ret 4
cmp dword [esp + 0x10], 0x63
je 0x410a9d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
xor eax, eax
lea ecx, [edi + 8]
mov esi, dword [ecx - 8]
lea edx, [eax + 1]
cmp esi, edx
jne 0x410a92
cmp eax, 0x62
jge 0x410ac2
mov eax, dword [ecx]
mov esi, dword [ecx - 4]
cmp esi, eax
jge 0x410a92
mov esi, dword [ecx + 0x68]
dec esi
cmp eax, esi
jne 0x410a92
mov eax, edx
add ecx, 0x6c
cmp eax, 0x63
jl 0x410aa2
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 4
Function at 0x411460
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00412400
mov eax, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41149e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push edi
call ebp
test eax, eax
jne 0x4114cc
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
cmp dword [esp + 0x14], 4
je 0x4114e6
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x411568
lea eax, [eax + eax*2]
shl eax, 8
push eax
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x411516
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [eax + eax*2]
shl edx, 8
push edx
push esi
push edi
call ebp
test eax, eax
jne 0x411543
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax*2]
shl eax, 8
cmp ecx, eax
je 0x41156a
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
xor esi, esi
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x411581
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
mov dword [ebx], ecx
mov dword [ebx + 4], esi
jle 0x4115a6
lea edx, [esi + 0x23c]
cmp dword [edx], 1
jl 0x411575
inc eax
add edx, 0x300
cmp eax, ecx
jl 0x411596
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4