joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10054a95
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1005f750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10046758
mov dword [ebp - 0x14], eax
cmp dword [0x1064ca3c], esi
jne 0x10054b88
push 0x800
push esi
push 0x10007698
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10054b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10054c68
push esi
push esi
push 0x10007698
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10054c68
push 0x100076b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10054c68
push eax
call ebx
push 0x100076bc
push edi
mov dword [0x1064ca3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076cc
push edi
mov dword [0x1064ca40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076e0
push edi
mov dword [0x1064ca44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1064ca4c], eax
test eax, eax
je 0x10054b85
push 0x100076fc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1064ca48], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10054bad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10054ba0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10054bc2
push 4
pop eax
jmp 0x10054c6a
cmp dword [ebp - 0x14], esi
je 0x10054bc2
push dword [0x1064ca3c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10054ba7
mov eax, dword [0x1064ca48]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10054c20
cmp dword [0x1064ca4c], edi
je 0x10054c20
push eax
call ebx
push dword [0x1064ca4c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10054c20
test eax, eax
je 0x10054c20
call ecx
test eax, eax
je 0x10054c15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10054c15
test byte [ebp - 8], 1
jne 0x10054c20
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10054c50
mov eax, dword [0x1064ca40]
cmp eax, edi
je 0x10054c4d
push eax
call ebx
test eax, eax
je 0x10054c4d
call eax
mov esi, eax
test esi, esi
je 0x10054c4d
mov eax, dword [0x1064ca44]
cmp eax, edi
je 0x10054c4d
push eax
call ebx
test eax, eax
je 0x10054c4d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1064ca3c]
call ebx
test eax, eax
je 0x10054c68
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10054c6a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10043e63
mov esp, ebp
pop ebp
ret
Function at 0x1003c58
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
jne 0x1003c96
push 3
push 1
push 0x10
push eax
push 0xffffffffffffffff
push dword [0x1005304]
call fcn.01003b2f
add esp, 0x18
push 0x10053c0
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebp
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4097e0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.00414f60
push ebx
push esi
push edi
mov dword [ebp - 0x102c], 0
mov dword [ebp - 4], str.TencentTenioDLCommon.ini
mov word [ebp - 0x414], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x824], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x822]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push 0x1a
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jl 0x409870
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x414]
push edx
push 0x432954
push 0x208
lea eax, [ebp - 0x824]
push eax
call fcn.00401082
add esp, 0x14
mov word [ebp - 0x1024], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1022]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x824]
push ecx
push 0x800
lea edx, [ebp - 0x1024]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1024]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401163
mov edx, dword [ebp - 0x102c]
or edx, 1
mov dword [ebp - 0x102c], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b1e0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x9e84
call fcn.00414f60
mov eax, dword [esp + 0x9e90]
mov ecx, dword [esp + 0x9e8c]
push ebx
push ebp
push esi
and eax, 0xffff
push edi
push eax
push ecx
push str.udp:___s:_d
lea edx, [esp + 0x28]
push 0x100
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
xor esi, esi
lea eax, [esp + 0x30]
push esi
push eax
mov byte [esp + 0x137], 0
call fcn.004166d0
mov edi, eax
add esp, 0x1c
cmp edi, esi
jl 0x40b338
mov ebp, dword [esp + 0x9e98]
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x12c], 0x64
mov word [esp + 0x130], 0x18
mov word [esp + 0x132], si
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x11c]
push ecx
push 3
push edi
push ebp
call fcn.0040b380
add esp, 0x10
test eax, eax
jl 0x40b31d
lea esi, [ebp + 0x2c]
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esi], 0
mov dword [ebp + 0x30], edi
mov ecx, dword [esi]
push 0
lea eax, [edi + 1]
inc ecx
push esi
push eax
mov dword [esi], ecx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
jle 0x40b31d
push esi
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40b31d
push 0
lea ecx, [esp + 0x4fdc]
push 0x4ebc
push ecx
push edi
call fcn.004167d0
add esp, 0x10
test eax, eax
jle 0x40b31d
mov ecx, dword [ebp]
lea edx, [esp + 0x11c]
push edx
push eax
lea eax, [esp + 0x4fe0]
push eax
push ecx
call fcn.0040ada0
add esp, 0x10
test eax, eax
jl 0x40b338
mov edx, dword [ebp + 0x134]
mov eax, dword [esp + 0x128]
cmp edx, eax
jne 0x40b31d
cmp word [esp + 0x122], 4
je 0x40b346
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x40b268
push edi
call fcn.004164b0
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x9e84
ret
mov eax, dword [esp + 0x9e9c]
lea ecx, [esp + 0x12c]
push eax
push ecx
push ebp
call fcn.0040b420
push edi
mov esi, eax
call fcn.004164b0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9e84
ret
Function at 0x40c3a0
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push esi
call fcn.0040c4c0
add esp, 4
test eax, eax
jne 0x40c4ac
push ebx
push ebp
push edi
lea ebx, [esi + 0x2c]
push esi
call fcn.0040c4f0
push esi
call fcn.0040c030
xor edi, edi
lea eax, [esi + 0x1c]
push edi
push eax
call fcn.00416b30
mov eax, dword [esi + 0x10]
add esp, 0x10
cmp eax, edi
mov dword [ebx], edi
mov dword [esp + 0x1c], edi
jle 0x40c432
lea ebx, [esi + 0x2c]
mov edx, dword [ebx]
xor eax, eax
test edx, edx
jbe 0x40c407
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + edi]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebp
je 0x40c407
inc eax
add ecx, 4
cmp eax, edx
jb 0x40c3fb
cmp eax, edx
jne 0x40c41f
cmp edx, 0x40
jae 0x40c41f
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + edi]
mov dword [esi + eax*4 + 0x30], ecx
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
inc eax
add edi, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x40c3ea
mov eax, dword [esi + 0x130]
lea edx, [esp + 0x10]
xor edi, edi
push edx
push edi
push edi
inc eax
push ebx
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40c491
mov eax, dword [esi + 0x10]
xor ebp, ebp
cmp eax, edi
jle 0x40c491
lea ebx, [esi + 0x2c]
mov ecx, dword [esi + 0x14]
push ebx
mov edx, dword [ecx + edi]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40c486
mov eax, dword [esi + 0x14]
add eax, edi
push eax
push esi
call fcn.0040c770
add esp, 8
mov eax, dword [esi + 0x10]
inc ebp
add edi, 0x24
cmp ebp, eax
jl 0x40c466
push esi
call fcn.0040c4c0
add esp, 4
test eax, eax
je 0x40c3bf
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x4156b0
Capabilities:
Initialize winsock library

Disassembly:
xor ecx, ecx
sub esp, 0x190
mov ch, byte [esp + 0x198]
lea eax, [esp]
mov cl, byte [esp + 0x194]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret

Function at 0x4157c0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4157da
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2748
jne 0x4157ea
xor eax, eax
ret
cmp eax, 0x2733
je 0x4157fc
cmp eax, 0x2735
je 0x4157fc
or eax, 0xffffffff
ret
mov eax, 2
ret

Function at 0x415810
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
mov ecx, dword [esp + 0x218]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
push ebx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 4], edx
mov ebx, 0x3e8
cdq
idiv ebx
push esi
mov esi, dword [esp + 0x21c]
mov dword [esp + 0x118], esi
mov dword [esp + 0x114], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 1
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, 0xffffffff
mov dword [esp + 0xc], edx
jne 0x41588f
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x118]
push eax
push ecx
lea edx, [esi + 1]
push 0
push edx
jmp 0x4158a7
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x118]
push ecx
push edx
lea eax, [esi + 1]
push 0
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x4158bd
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x210
ret
jne 0x4158cd
pop esi
mov eax, 1
pop ebx
add esp, 0x210
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
pop esi
pop ebx
sbb eax, eax
add esp, 0x210
ret

Function at 0x4159f0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x118]
test esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 1
je 0x415a85
cmp esi, 0xffffffff
lea ecx, [esp + 8]
jne 0x415a23
xor ecx, ecx
jmp 0x415a54
mov eax, 0x10624dd3
push ebx
imul esi
sar edx, 6
mov eax, edx
mov ebx, 0x3e8
shr eax, 0x1f
add edx, eax
mov eax, esi
mov dword [esp + 0xc], edx
cdq
idiv ebx
pop ebx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 0xc], edx
push ecx
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [edi + 1]
push 0
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x415a78
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret
jne 0x415a85
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x415ae4
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x415ac8
call edi
cmp eax, 0x2733
je 0x415ac8
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x10c
ret
test esi, esi
je 0x415ad9
push 0x30d40
call fcn.00416ec0
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
jne 0x415aeb
mov eax, 0xfffffffd
pop edi
pop esi
add esp, 0x10c
ret
Function at 0x415c70
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x118]
test esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 1
je 0x415d11
cmp esi, 0xffffffff
lea ecx, [esp + 8]
jne 0x415ca3
xor ecx, ecx
jmp 0x415cd4
mov eax, 0x10624dd3
push ebx
imul esi
sar edx, 6
mov eax, edx
mov ebx, 0x3e8
shr eax, 0x1f
add edx, eax
mov eax, esi
mov dword [esp + 0xc], edx
cdq
idiv ebx
pop ebx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 0xc], edx
push ecx
push 0
lea eax, [esp + 0x18]
push 0
lea ecx, [edi + 1]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x415d04
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
sbb eax, eax
pop esi
add esp, 0x10c
ret
jne 0x415d11
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
mov edx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push 0
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x415d70
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x415d54
call edi
cmp eax, 0x2733
je 0x415d54
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x10c
ret
test esi, esi
je 0x415d65
push 0x186a0
call fcn.00416ec0
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x10c
ret
jne 0x415d77
mov eax, 0xfffffffd
pop edi
pop esi
add esp, 0x10c
ret
Function at 0x415f70
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x8c]
push edi
push 0x3a
push esi
mov word [ebx], 2
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x415fe1
mov edx, eax
sub edx, esi
cmp edx, 0x80
jl 0x415fb5
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret
mov ecx, edx
push ebp
mov ebp, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov byte [esp + edx + 0xc], 0
je 0x416025
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
jmp 0x416027
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x80
jb 0x416002
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0xc]
mov word [ebx + 2], ax
push ecx
call fcn.00415f40
add esp, 4
test eax, eax
je 0x416065
add ebx, 4
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.004153d0
add esp, 8
test eax, eax
jne 0x41608b
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x416081
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebx + 4], eax
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x80
ret
Function at 0x407a90
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push str.ldplayerAudio_start
push 0x40
lea edi, [esi + 0x40]
mov dword [edi], 0x65
push str.LDPlayerAudio::start
call fcn.004179c0
add esp, 0xc
lea eax, [esi + 0xc4]
push 0x10
push eax
push 0
push 0x84
push edi
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x84
jne 0x407bc8
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x10
push eax
lea eax, [esi + 0xc4]
push eax
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi], 0x65
jne 0x407b2a
mov dword [edi], 0x64
cmp byte [esi + 0xd8], 0
jne 0x407bdf
cmp eax, 8
jb 0x407b8c
cmp dword [ebp - 0x104], 0xc8
jne 0x407b80
mov eax, dword [ebp - 0x100]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x108], eax
mov eax, dword [esi + 0xd4]
mov dword [ebp - 0x10c], eax
test ecx, ecx
je 0x407bf0
mov eax, dword [ecx]
lea edx, [ebp - 0x108]
push edx
lea edx, [ebp - 0x10c]
push edx
call dword [eax + 8]
jmp 0x407ba3
call ebx
push eax
push str.LDPlayerAudio::readAudio_erro_1__d
push 0x5a
jmp 0x407b96
call ebx
push eax
push str.LDPlayerAudio::readAudio_erro_2__d
push 0x5e
push str.LDPlayerAudio::start
call fcn.004179c0
add esp, 0x10
push 0x10
lea eax, [esi + 0xc4]
push eax
push 0
push 0x84
push edi
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0x84
je 0x407af0
call ebx
push eax
push str.LDPlayerAudio::readAudio_3__d
push 0x62
push str.LDPlayerAudio::start
call fcn.004179c0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420a02
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
Function at 0x4080c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0x10
lea edi, [esi + 0xc4]
push edi
push 0
push 0x9c
lea eax, [esi + 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0x9c
jne 0x40816b
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x10
push eax
push edi
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 4
jb 0x40815b
cmp dword [ebp - 0x104], 0xc8
jne 0x40814b
mov eax, dword [esi + 0xd4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420a02
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LDPlayerReader::readPix_erro_1__d
push 0x4c
jmp 0x408179
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LDPlayerReader::readPix_erro_2__d
push 0x50
jmp 0x408179
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LDPlayerReader::readPix_3__d
push 0x55
push str.LDPlayerReader::readPix
call fcn.004179c0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.00420a02
mov esp, ebp
pop ebp
ret
Function at 0x4081a0
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x3c0], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x43b210
push 0x67
push edi
call esi
push 0x64
push 0x43b148
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00408370
push 0
push edi
push 0
push 0
push 0
push bind
push 0
push bind
push 0xcf0000
push 0x43b210
push 0x43b148
push 0
mov dword [0x43b2d8], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x40834d
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x238]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x408269
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c0]
xor ecx, esp
call fcn.00420a02
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], vtable.LDAVRecordImpl.0
call fcn.0041cc50
xor eax, eax
mov dword [esp + 0x58], 7
lea ecx, [esp + 0x68]
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 2
call fcn.00403990
push ebx
lea ecx, [esp + 0x34]
call fcn.004058e0
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x14]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x40830d
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4082fc
lea eax, [esp + 0x14]
push eax
call esi
lea eax, [esp + 0x14]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call ebx
test eax, eax
jne 0x4082d7
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x68]
call fcn.00405860
cmp dword [esp + 0x58], 8
jb 0x408334
push dword [esp + 0x44]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c0]
xor ecx, esp
call fcn.00420a02
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x3cc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00420a02
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b8b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422186
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x238], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x21c]
push eax
call fcn.00406e70
push str.leidian9_
lea edx, [ebp - 0x234]
mov dword [ebp - 4], 1
mov ecx, 0x43c9f4
call fcn.0040dfc0
add esp, 4
cmp dword [ebp - 0x220], 8
jb 0x40b981
push dword [ebp - 0x234]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0x43c9f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420a02
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba50
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4221eb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x220], 0x43ca10
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [0x43ca24], 7
mov dword [0x43ca20], 0
mov word [0x43ca10], ax
mov dword [ebp - 4], eax
mov ecx, 0x43ca10
lea eax, [ebp - 0x21c]
push eax
call fcn.00406e70
mov eax, 0x43ca10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420a02
mov esp, ebp
pop ebp
ret 4