joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409bb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne case.0x409bef.1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 0xd
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x49
ja case.0x409bef.1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x409cac]
jmp dword [edx*4 + 0x409c8c]
mov eax, 1
jmp 0x409c85
mov eax, 1
jmp 0x409c85
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x409c1b
mov eax, 1
jmp 0x409c85
jmp case.0x409bef.1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x409c33
mov eax, 1
jmp 0x409c85
jmp case.0x409bef.1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x409c4b
mov eax, 1
jmp 0x409c85
jmp case.0x409bef.1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x409c61
mov eax, 1
jmp 0x409c85
jmp case.0x409bef.1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge case.0x409bef.1
mov eax, 1
jmp 0x409c85
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.0043e8d5
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x5c9550]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x9c
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.004550c0
add esp, 0xc
mov dword [ebp - 0xa8], 0x9c
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40cbd8
xor al, al
jmp 0x40cbff
cmp dword [ebp - 0xa4], 6
jne 0x40cbf0
cmp dword [ebp - 0xa0], 0
jne 0x40cbf0
xor al, al
jmp 0x40cbff
cmp dword [ebp - 0xa4], 6
jb 0x40cbfd
xor al, al
jmp 0x40cbff
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452910
mov esp, ebp
pop ebp
ret
Function at 0x40da70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562288
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5c9550]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0xffffffff
push 0
call fcn.0040b390
mov ecx, eax
call fcn.0040b420
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40db29
lea ecx, [ebp - 0x14]
call fcn.004030a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
push str.iRet___d_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403570
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00495c80
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Initial_failed_
lea ecx, [ebp - 0x14]
call fcn.00401200
push 0
push str.PlayDemo
lea ecx, [ebp - 0x14]
call fcn.00495c80
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004030e0
mov eax, dword [ebp - 0x18]
jmp 0x40db51
push fcn.0040c150
call fcn.0040b390
mov ecx, eax
call fcn.0040b9c0
mov edx, dword [ebp - 0x1c]
push edx
push 0x40c190
call fcn.0040b390
mov ecx, eax
call fcn.0040b6d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ee70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562258
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5c9550]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
call fcn.004146d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40eeb5
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xf4], 0
jne 0x40eeba
jmp 0x40f009
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + 0x1a8]
test edx, edx
jne 0x40eecd
jmp 0x40f009
mov ecx, dword [ebp - 0x1c]
call fcn.004778f0
test eax, eax
jge 0x40eede
jmp 0x40f009
mov ecx, dword [ebp - 0x1c]
call fcn.0040c130
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xf4]
add ecx, 0x7c
call fcn.00415880
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
call fcn.004030a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
push ecx
push str.CPlaybackDlg::OnSldVideoChanged______iPos___d_r_n
lea edx, [ebp - 0x10]
push edx
call fcn.00403570
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00495c80
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040ac30
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0xf4]
add ecx, 0x7c
call fcn.00415880
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.0040ac30
mov ecx, dword [ebp - 0x1c]
call fcn.0040c130
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jne 0x40efa3
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xf4]
add ecx, 0x124
call fcn.00403e60
push 1
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0xf4]
add ecx, 0x60c
call fcn.00403e60
jmp 0x40efd5
cmp dword [ebp - 0x14], 1
jne 0x40efd5
push 1
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0xf4]
add ecx, 0x124
call fcn.00403e60
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xf4]
add ecx, 0x60c
call fcn.00403e60
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0xf4]
add ecx, 0xd0
call fcn.00415880
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040abe0
mov ecx, dword [ebp - 0x20]
call fcn.0040f0c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004030e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f7d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004146d0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40f7ef
jmp 0x40f93f
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 1
je 0x40f7fd
jmp 0x40f93f
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x200000
mov ecx, dword [ebp - 0x14]
call fcn.004778f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40f93f
cmp dword [0x5dbf90], 0
je 0x40f93f
mov ecx, dword [0x5dbf90]
push ecx
call fcn.00454195
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], 0
jne 0x40f862
push 0x200000
call fcn.00433d89
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
mov eax, dword [0x5dbf90]
push eax
push 0x200000
push 1
mov ecx, dword [ebp - 4]
push ecx
call fcn.004544a3
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40f8a9
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x514], 1
mov eax, dword [0x5dbf90]
push eax
call fcn.00453ad6
add esp, 4
mov dword [0x5dbf90], 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040af30
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
call fcn.00495c80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x20], 0xffffffee
jne 0x40f8e3
cmp dword [ebp - 0x18], 9
je 0x40f8e1
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.0040f950
jmp 0x40f920
cmp dword [ebp - 0x20], 0xffffffed
jne 0x40f8fb
cmp dword [ebp - 0x18], 1
je 0x40f8f9
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.0040f950
jmp 0x40f920
cmp dword [ebp - 0x20], 0xfffffff5
jne 0x40f918
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [0x5dbf90]
push edx
call fcn.0045454a
add esp, 0xc
jmp 0x40f920
cmp dword [ebp - 0x20], 0xffffffec
je 0x40f920
jmp 0x40f93f
cmp dword [ebp - 4], 0
je 0x40f93f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00433d7e
add esp, 4
mov dword [ebp - 4], 0
mov esp, ebp
pop ebp
ret

Function at 0x410070
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004146d0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41008c
jmp 0x410104
mov ecx, dword [ebp - 0xc]
call fcn.004778f0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x41009f
jmp 0x410104
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0040a750
test eax, eax
jne 0x4100c5
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], 0
jmp 0x4100d0
push str.DeletePlayer_failed_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x10]
call fcn.00412940
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00411970
mov ecx, dword [ebp - 0x10]
call fcn.004146b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x410104
push 0x105
push 0
push 0
mov ecx, dword [ebp - 8]
call fcn.00407790
mov esp, ebp
pop ebp
ret
Function at 0x411040
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x100
jne case.0x41107f.1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 0xd
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x49
ja case.0x41107f.1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x411134]
jmp dword [edx*4 + 0x411114]
mov eax, 1
jmp 0x41110b
mov eax, 1
jmp 0x41110b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x4110a8
mov eax, 1
jmp 0x41110b
jmp case.0x41107f.1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x4110c0
mov eax, 1
jmp 0x41110b
jmp case.0x41107f.1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x4110d8
mov eax, 1
jmp 0x41110b
jmp case.0x41107f.1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x4110ee
mov eax, 1
jmp 0x41110b
jmp case.0x41107f.1
mov ecx, dword [ebp - 4]
call fcn.0040e040
mov eax, 1
jmp 0x41110b
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0043e8d5
mov esp, ebp
pop ebp
ret 4
Function at 0x412810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
call fcn.004146d0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41282f
jmp 0x4128f1
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 2
je 0x41283d
jmp 0x4128f1
mov ecx, dword [ebp - 8]
call fcn.004778f0
mov dword [ebp - 4], eax
cmp dword [0x5dbf90], 0
je 0x4128f1
cmp dword [ebp - 4], 0xffffffff
je 0x4128f1
mov ecx, dword [ebp - 8]
call fcn.004778f0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfc
call fcn.0040a640
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x20]
imul eax, eax, 3
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00452e85
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [0x5dbf90]
push ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004544a3
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4128e5
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040af30
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00452f4f
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x41a38e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a4
mov eax, dword [0x5c9550]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov cl, byte [eax + 0x5ebfb8]
mov byte [ebp + eax - 0x320], cl
inc eax
test cl, cl
jne 0x41a3a6
xor eax, eax
mov cl, byte [eax + 0x5ebfb8]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x41a3ba
lea edi, [ebp - 0x218]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41a3d3
mov esi, 0x5bb8c0
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x568]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x218]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x56c], eax
cmp eax, 0xffffffff
je 0x41a591
push 2
pop ecx
mov edi, str.log_sdk_
lea esi, [ebp - 0x53c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x41a56a
push 0x103
push eax
lea eax, [ebp - 0x10f]
push eax
call fcn.004550c0
lea esi, [ebp - 0x534]
lea edi, [ebp - 0x110]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0x5bb8d8
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.0041a2b0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x41a489
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0x62
push str..libvautil.c
push str.file:__s_line:__d
call sym.TDPlayer.exe_sdk_log_buf_msg
push 0x5bb8ff
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
add esp, 0x10
jmp 0x41a56a
lea eax, [ebp - 0x110]
push eax
call fcn.00457792
inc esi
push esi
mov ebx, eax
call fcn.00457792
push edi
push esi
mov dword [ebp - 0x574], eax
call fcn.0041a2b0
add esp, 0x10
test eax, eax
jne 0x41a4c0
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0x6a
jmp 0x41a468
inc eax
push eax
call fcn.00457792
mov edx, eax
xor eax, eax
push 9
pop ecx
lea edi, [ebp - 0x5a4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x574]
dec eax
mov dword [ebp - 0x594], eax
lea eax, [ebp - 0x5a4]
add ebx, 0xfffff894
push eax
mov dword [ebp - 0x598], edx
mov dword [ebp - 0x590], ebx
call fcn.004585eb
mov edi, edx
mov esi, eax
and eax, edi
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x41a56a
lea eax, [ebp - 0x580]
push eax
call fcn.00453b52
mov eax, dword [ebp - 0x580]
pop ecx
mov ecx, dword [ebp - 0x57c]
sub eax, esi
sbb ecx, edi
mov dword [ebp - 0x574], ecx
js 0x41a56a
jg 0x41a53c
cmp eax, 0x278d00
jbe 0x41a56a
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x428]
push str._s_s
push eax
call fcn.00456fb3
lea eax, [ebp - 0x428]
push eax
call fcn.004a335c
add esp, 0x14
lea eax, [ebp - 0x568]
push eax
push dword [ebp - 0x56c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41a407
push dword [ebp - 0x56c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452910
leave
ret
Function at 0x41a5a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3003c
call fcn.004574d0
mov eax, dword [0x5c9550]
xor eax, esp
mov dword [esp + 0x30038], eax
push ebx
push esi
mov esi, dword [0x5ebfb4]
push edi
push esi
lea eax, [esp + 0x44]
push 0x5dbfb0
push eax
mov edi, ecx
mov ebx, edx
call fcn.0045a310
and dword [0x5ebfb4], 0
add esp, 0xc
push dword [0x5ec0bc]
call sym.TDPlayer.exe__sdk_mutex_unlock_4
push ebx
push edi
lea eax, [esp + esi + 0x48]
push 0xffff
push eax
call fcn.004a3fbd
xor ebx, ebx
add esp, 0x10
add esi, eax
cmp dword [ebp + 8], ebx
je 0x41a62b
push dword [ebp + 0xc]
call fcn.004a3091
pop ecx
push eax
lea eax, [esp + esi + 0x44]
push str.:__s
push eax
call fcn.00456fb3
add esp, 0xc
add esi, eax
lea eax, [esp + esi + 0x40]
push 0x5bb910
push eax
call fcn.00456fb3
push ebx
push 0x5bb8bc
call fcn.004a3295
add esp, 0x10
test eax, eax
jne 0x41a790
lea eax, [esp + 0x10]
push eax
call fcn.00453b52
pop ecx
push 8
xor eax, eax
pop ecx
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call fcn.00453fd1
pop ecx
cmp eax, ebx
je 0x41a680
push 9
pop ecx
mov esi, eax
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x5ec0c0]
cmp eax, ebx
jne 0x41a694
push ebx
call sym.TDPlayer.exe__sdk_mutex_create_4
mov dword [0x5ec0c0], eax
push eax
call sym.TDPlayer.exe__sdk_mutex_lock_4
mov eax, dword [0x5ebfb0]
mov esi, dword [esp + 0x28]
mov ebx, str._slog_sdk__04d__02d__02d__d
mov edi, 0x5bb930
test eax, eax
jne 0x41a703
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
mov eax, dword [esp + 0x30]
push esi
inc eax
push eax
mov eax, dword [esp + 0x3c]
add eax, 0x76c
push eax
push 0x5ebfb8
lea eax, [esp + 0x10054]
push ebx
push eax
call fcn.00456fb3
add esp, 0x1c
lea eax, [esp + 0x10040]
push edi
push eax
call fcn.00453811
pop ecx
pop ecx
mov dword [0x5ebfb0], eax
mov dword [0x5d23b8], esi
call fcn.0041a38e
mov eax, dword [0x5ebfb0]
cmp dword [0x5d23b8], esi
je 0x41a768
test eax, eax
je 0x41a716
push eax
call fcn.00453ad6
pop ecx
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
mov eax, dword [esp + 0x30]
push esi
inc eax
push eax
mov eax, dword [esp + 0x3c]
add eax, 0x76c
push eax
push 0x5ebfb8
lea eax, [esp + 0x20054]
push ebx
push eax
call fcn.00456fb3
add esp, 0x1c
lea eax, [esp + 0x20040]
push edi
push eax
call fcn.00453811
pop ecx
pop ecx
mov dword [0x5ebfb0], eax
mov dword [0x5d23b8], esi
call fcn.0041a38e
mov eax, dword [0x5ebfb0]
test eax, eax
je 0x41a785
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004a30fd
push dword [0x5ebfb0]
call fcn.0045e282
add esp, 0xc
push dword [0x5ec0c0]
call sym.TDPlayer.exe__sdk_mutex_unlock_4
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x30044]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00452910
mov esp, ebp
pop ebp
ret
Function at 0x41ac70
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x41aca8
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0x209
push str..libvautil.c
push str.file:__s_line:__d
call sym.TDPlayer.exe_sdk_log_buf_msg
push 0x5bb8ff
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
add esp, 0x10
xor eax, eax
jmp 0x41ace6
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41acb5
mov eax, 0x100000
push 0
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
push 0
call fcn.004548f5
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x41ace3
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0x211
jmp 0x41ac88
xor eax, eax
inc eax
pop esi
ret 0x10
Function at 0x41b2c6
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 8
push ebx
push edi
je 0x41b331
cmp dword [ebp + 0xc], 0x20
jne 0x41b443
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x41b443
push ebx
push ebx
push dword [0x5ec0d4]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [0x5ec0c8]
mov dword [esi + 0x18], ebx
call sym.TDPlayer.exe__adt_dlist_lock_4
push dword [esi + 0x28]
push dword [0x5ec0c8]
call sym.TDPlayer.exe__adt_dlist_delete_8
push dword [0x5ec0c8]
call sym.TDPlayer.exe__adt_dlist_unlock_4
mov dword [esi + 0x28], ebx
jmp 0x41b443
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x41b374
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0x68
push str..windowsos_win32.c
push str.file:__s_line:__d
call sym.TDPlayer.exe_sdk_log_buf_msg
add esp, 0xc
push 0x5bb8ff
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
pop ecx
jmp 0x41b443
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x41b395
call fcn.0041b29d
call sym.TDPlayer.exe__net_tcp_client_create_0
push dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, ebx
jne 0x41b3b8
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x5bb8ff
call sym.TDPlayer.exe_sdk_log_msg
jmp 0x41b36e
push edi
mov byte [edi + 1], bl
call sym.TDPlayer.exe__net_tcp_client_open_8
test eax, eax
jne 0x41b3cd
push edi
call sym.TDPlayer.exe__net_tcp_client_destroy_4
jmp 0x41b3ac
push dword [0x5ec0cc]
call sym.TDPlayer.exe__adt_dlist_lock_4
lea eax, [ebp - 4]
push eax
push ebx
push dword [0x5ec0cc]
call sym.TDPlayer.exe__adt_dlist_insert_12
mov edi, dword [ebp - 4]
push dword [0x5ec0cc]
mov dword [edi + 0x54], eax
call sym.TDPlayer.exe__adt_dlist_unlock_4
push 0x33
push 0x2b11
push dword [0x5ec0d4]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x41b42e
push edi
call sym.TDPlayer.exe__net_tcp_client_destroy_4
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0x82
jmp 0x41b352
mov dword [edi + 0x28], 2
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x41b443
push dword [esi + 0x20]
push edi
push esi
call eax
pop edi
pop ebx
leave
ret
Function at 0x41b592
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fac
call fcn.004574d0
mov eax, dword [0x5c9550]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
dec eax
push ebx
je 0x41b68b
dec eax
je 0x41b671
sub eax, 0xe
je 0x41b64a
sub eax, 0x10
jne 0x41b795
xor ebx, ebx
cmp dword [esi + 0x28], ebx
je 0x41b795
push ebx
push ebx
push dword [0x5ec0d4]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [0x5ec0cc]
or dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x28], ebx
call sym.TDPlayer.exe__adt_dlist_lock_4
push dword [esi + 0x54]
push dword [0x5ec0cc]
call sym.TDPlayer.exe__adt_dlist_delete_8
push dword [0x5ec0cc]
call sym.TDPlayer.exe__adt_dlist_unlock_4
mov eax, dword [esi + 0x38]
mov dword [esi + 0x54], ebx
cmp byte [esi + 1], bl
jne 0x41b63d
cmp eax, ebx
je 0x41b632
push dword [esi + 0x3c]
push esi
call eax
push esi
call fcn.00452f4f
jmp 0x41b794
cmp eax, ebx
je 0x41b795
push dword [esi + 0x3c]
jmp 0x41b669
cmp dword [esi + 0x28], 1
jne 0x41b795
mov eax, dword [esi + 0x30]
mov dword [esi + 0x28], 2
test eax, eax
je 0x41b795
push dword [esi + 0x34]
push esi
call eax
jmp 0x41b795
cmp dword [esi + 0x28], 2
jne 0x41b795
mov eax, dword [esi + 0x48]
test eax, eax
je 0x41b795
push dword [esi + 0x4c]
jmp 0x41b669
cmp dword [esi + 0x28], 2
jne 0x41b795
xor ebx, ebx
cmp dword [esi + 0x58], ebx
jne 0x41b795
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x41b6b8
push dword [esi + 0x44]
push esi
call eax
cmp eax, 0xffffffff
jne 0x41b795
jmp 0x41b6e5
push ebx
push 0x1fa0
lea eax, [ebp - 0x1fa8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jg 0x41b6b8
je 0x41b6e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41b795
push ebx
push ebx
push dword [0x5ec0d4]
mov dword [esi + 0x28], ebx
push dword [esi + 0x50]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push 2
push dword [esi + 0x50]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [0x5ec0cc]
call sym.TDPlayer.exe__adt_dlist_lock_4
push dword [esi + 0x54]
push dword [0x5ec0cc]
call sym.TDPlayer.exe__adt_dlist_delete_8
push dword [0x5ec0cc]
call sym.TDPlayer.exe__adt_dlist_unlock_4
push ebx
push dword [esi + 0x50]
push 0x2b12
push dword [0x5ec0d4]
call dword [sym.imp.USER32.dll_PostMessageA]
or dword [esi + 0x50], 0xffffffff
mov eax, dword [esi + 0x38]
mov dword [esi + 0x54], ebx
cmp byte [esi + 1], bl
jne 0x41b75f
cmp eax, ebx
je 0x41b756
push dword [esi + 0x3c]
push esi
call eax
push esi
call fcn.00452f4f
pop ecx
jmp 0x41b769
cmp eax, ebx
je 0x41b769
push dword [esi + 0x3c]
push esi
call eax
call sym.TDPlayer.exe__sdk_log_buf_lock_0
call sym.TDPlayer.exe__sdk_log_buf_date_0
push 0x10d
push str..windowsos_win32.c
push str.file:__s_line:__d
call sym.TDPlayer.exe_sdk_log_buf_msg
add esp, 0xc
push str.dispath_client:disconnect_n
call sym.TDPlayer.exe_sdk_err_buf_msg_unlock
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00452910
leave
ret