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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x68]
add eax, 0x68
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x30]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x38]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x3c]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x40]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x58]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
sub edx, 1
push edx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_PlayBackByTime]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x5946fc
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x50], ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004468f0
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x68]
add ecx, 0x50
call fcn.005a9590
mov edx, dword [ebp + 0x54]
push edx
push 0x594430
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.HCNetSDK.dll_NET_DVR_SetPlayDataCallBack_V40]
push 0x10
call fcn.005c4745
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 0x4c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x48]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0xc], 0
lea eax, [ebp - 0x44]
push eax
push 1
mov ecx, dword [ebp - 0x3c]
push ecx
push 0x594240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x5946e3
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.005c4775
add esp, 4
jmp 0x5946fc
push 0
push 0
push 1
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_PlayBackControl]
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x68]
add eax, 0x68
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret 0x54
Function at 0x594720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 8
push ecx
mov edx, dword [ebp + 8]
sub edx, 1
push edx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_GetFileByName]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x5947d7
push 0x10
call fcn.005c4745
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], 1
push 0
push 0
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_PlayBackControl]
lea eax, [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
push 0x594240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5947cd
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005c4775
add esp, 4
xor eax, eax
jmp 0x5947e7
mov eax, dword [ebp - 4]
add eax, 1
jmp 0x5947e7
call dword [sym.imp.HCNetSDK.dll_NET_DVR_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x5947e7
mov esp, ebp
pop ebp
ret 0x18
Function at 0x59b5f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add eax, 0x60
push eax
call fcn.005ae730
add esp, 4
push 0xa0
call fcn.005c4745
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push 0xa0
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.005e5330
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [edx + 0x10], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x5c
mov edx, dword [ebp - 4]
add edx, 0x64
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ecx + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x74
mov eax, dword [ebp - 4]
add eax, 0x7c
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [edx + 0x14]
mov dword [eax + 0x14], edx
push 0x40
mov eax, dword [ebp + 0xc]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x24
push ecx
call fcn.005e58c0
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x9c], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x4c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x50], ecx
lea edx, [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
push 0x599a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x59b740
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x59b76b
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.005c4775
add esp, 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x60
push ecx
call fcn.005ae6f0
add esp, 4
xor eax, eax
jmp 0x59b770
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x59b780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push 0xa0
call fcn.005c4745
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
push 0xa0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.005e5330
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [edx + 0x10], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x5c
mov edx, dword [ebp - 4]
add edx, 0x64
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ecx + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x74
mov eax, dword [ebp - 4]
add eax, 0x7c
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [edx + 0x14]
mov dword [eax + 0x14], edx
push 0x40
mov eax, dword [ebp + 0xc]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x24
push ecx
call fcn.005e58c0
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x9c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x4c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x50], eax
lea ecx, [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
push 0x599a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x59b8d9
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.005c4775
add esp, 4
xor eax, eax
jmp 0x59b8de
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x59ca70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x76728
call fcn.005c4745
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x59ca96
xor eax, eax
jmp 0x59cb15
push 0x76728
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.005e5330
add esp, 0xc
push 0x68150c
mov edx, dword [ebp + 8]
push edx
call fcn.005e918f
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0x800
push 1
mov ecx, dword [ebp - 4]
add ecx, 0xc20
push ecx
call fcn.005e96c4
add esp, 0x10
mov edx, dword [ebp - 4]
mov dword [edx + 0x76724], 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x20
push ecx
call fcn.005e5450
add esp, 8
push str..idx
mov edx, dword [ebp - 4]
add edx, 0x20
push edx
call fcn.005e5460
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x59fde0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], 0xffffffff
push 0xa
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.005e5330
add esp, 0xc
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
push ecx
push 0xa
lea edx, [ebp - 0x18]
push edx
push 0x681727
push 0x681728
push 0x681730
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59feae
lea eax, [ebp - 0x18]
push eax
call fcn.005e62d7
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jge 0x59fe57
mov dword [ebp - 0x20], 0xffffffff
cmp dword [ebp - 0x20], 9
jle 0x59fe64
mov dword [ebp - 0x20], 9
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x20]
je 0x59feac
push 0xa
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.005e5330
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push ecx
push 0x681740
lea edx, [ebp - 0x18]
push edx
call fcn.005e5a78
add esp, 0xc
mov eax, dword [ebp - 0x24]
add eax, 0x10
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x681744
push 0x68174c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x59feca
mov edx, dword [ebp - 0x24]
add edx, 0x10
push edx
push 0x68175c
push 0x681760
push 0x681768
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret
Function at 0x59ff70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
jl 0x5a008a
cmp dword [ebp + 8], 9
jle 0x59ffaa
mov dword [ebp + 8], 9
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.005e5330
add esp, 0xc
push 0x14
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.005e5330
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x681794
lea eax, [ebp - 0x420]
push eax
call fcn.005e5a78
add esp, 0xc
mov ecx, dword [ebp - 0x42c]
add ecx, 0x10
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x420]
push eax
push 0x6817a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5a0060
mov dword [ebp - 0x424], 0
jmp 0x5a0037
mov ecx, dword [ebp - 0x424]
add ecx, 1
mov dword [ebp - 0x424], ecx
cmp dword [ebp - 0x424], 0x100
jge 0x5a005e
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x424]
mov ecx, dword [ebp + ecx*4 - 0x408]
mov dword [eax + edx*4], ecx
jmp 0x5a0028
jmp 0x5a008a
mov dword [ebp + 8], 0xffffffff
mov edx, dword [ebp - 0x42c]
add edx, 0x10
push edx
push 1
push 0x68173e
lea eax, [ebp - 0x420]
push eax
push 0x6817b0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
cmp dword [ebp + 8], 0
jge 0x5a00cb
mov dword [ebp - 0x428], 0
jmp 0x5a00ab
mov ecx, dword [ebp - 0x428]
add ecx, 1
mov dword [ebp - 0x428], ecx
cmp dword [ebp - 0x428], 0x100
jge 0x5a00cb
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x428]
mov dword [eax + edx*4], ecx
jmp 0x5a009c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x40c]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 8
Function at 0x5a03f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], 0
push 0x14
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.005e5330
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x6817dc
lea edx, [ebp - 0x18]
push edx
call fcn.005e5a78
add esp, 0xc
push 0x14
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.005e5330
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
add ecx, 0x10
push ecx
push 0x14
lea edx, [ebp - 0x38]
push edx
push 0x6817e8
lea eax, [ebp - 0x18]
push eax
push 0x6817ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x24], 0
jbe 0x5a04af
lea ecx, [ebp - 0x38]
push ecx
call fcn.005e62d7
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
jg 0x5a048b
cmp dword [ebp - 0x20], 1
jge 0x5a04ad
mov dword [ebp - 0x20], 1
mov edx, dword [ebp - 0x3c]
add edx, 0x10
push edx
push 0x6817fc
lea eax, [ebp - 0x18]
push eax
push 0x681800
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x5a04ca
mov ecx, dword [ebp - 0x3c]
add ecx, 0x10
push ecx
push 0x681810
lea edx, [ebp - 0x18]
push edx
push 0x681814
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
push 0xd8
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x10
push edx
call fcn.005e5330
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 1
je 0x5a050a
cmp dword [ebp - 0x40], 1
jle 0x5a05a6
cmp dword [ebp - 0x40], 4
jle 0x5a0527
jmp 0x5a05a6
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], 0x320
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x24], 0x258
jmp 0x5a05a6
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x20], 0x190
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x24], 0x12c
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x30], 0x190
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x38], 0x320
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x3c], 0x12c
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x4c], 0x12c
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x50], 0x190
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x54], 0x258
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x64], 0x12c
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x60], 0x190
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x6c], 0x258
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x68], 0x320
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 8
Function at 0x5a8f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
push 0x200000
call fcn.005c4770
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push 0x200000
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005e5330
add esp, 0xc
mov dword [ebp - 0xc], 0x200000
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.PlayCtrl.dll_PlayM4_GetBMP]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5a8fcc
cmp dword [ebp - 4], 0
jbe 0x5a8fcc
push 0x681af4
mov eax, dword [ebp + 0xc]
push eax
call fcn.005e918f
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x5a8faa
xor eax, eax
jmp 0x5a8fe7
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.005e96c4
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.005e904f
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x5a8fe4
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005c4775
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5abff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
call fcn.00401b00
mov dword [ebp - 0xc], eax
push 0
call fcn.005d7b78
test eax, eax
jne 0x5ac022
push 0
push 0
push str.Windows_socket_initialize_failed.
call fcn.005cda51
or eax, 0xffffffff
jmp 0x5ac0cc
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Server_IP___s__Port___d_r_n
call fcn.0041cba0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x18]
mov word [ecx + 0x14], 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x18], eax
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x18]
mov word [ecx + 0x16], ax
push str.Create_socket_Thread__r_n
call fcn.0041cba0
add esp, 4
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0x5abfa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x24], eax
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5ac0e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
call fcn.00401b00
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0xffffffff
je 0x5ac11c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Close_Current_Socket__r_n
call fcn.0041cba0
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Create_a_New_Socket__r_n
call fcn.0041cba0
add esp, 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0xffffffff
jne 0x5ac19c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.socket_Error:__s__d_r_n
call fcn.0041cba0
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Socket
push 0xf0001006
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x30]
call eax
mov eax, 0xffffff9a
jmp 0x5ac251
push 0x10
mov ecx, dword [ebp - 0x14]
add ecx, 0x14
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5ac20b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.connect_Error:__s__d_r_n
call fcn.0041cba0
add esp, 0xc
push 0x682210
push 0xf0001001
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x30]
call edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x28], 0
mov eax, 0xffffff9a
jmp 0x5ac251
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.connect_Succees:__s__r_n
call fcn.0041cba0
add esp, 8
push 0x682234
push 0xf0001000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x30]
call edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x28], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5ac520
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str.Shutdown_socket_Thread__r_n
call fcn.0041cba0
add esp, 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x5ac585
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x28], 0
push 0x6822b0
push 0xffffffffffffff9a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x30]
call edx
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret