joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020350
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10155ce0]
sub esp, 8
push esi
mov esi, dword [0x10155cdc]
cmp esi, eax
je 0x10020435
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push edi
cmp byte [esi], 2
jne 0x10020399
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [esi + 1]
push eax
push connect
call ebx
mov edi, dword [ebp - 8]
test edi, edi
jne 0x100203aa
mov eax, dword [0x10155ce0]
add esi, 0x105
cmp esi, eax
jne 0x10020372
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x10155ce0]
xor ecx, ecx
mov esi, dword [0x10155cdc]
mov eax, 0x7d8c42b3
mov dword [ebp - 4], ecx
mov ecx, ebx
sub ecx, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1002041d
xor edi, edi
cmp byte [edi + esi], 2
jne 0x100203f7
lea eax, [esi + 1]
add eax, edi
push eax
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ebx, dword [0x10155ce0]
mov esi, dword [0x10155cdc]
inc dword [ebp - 4]
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
add edi, 0x105
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 4], eax
jb 0x100203d4
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
push 0
lea ecx, [edx + 6]
call fcn.10004ff0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10031ba9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10031a28
Function at 0x10001310
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x2000000
mov dword [ebp - 4], 0x2000000
call fcn.10002888
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [ebp - 0x3c], esi
jbe 0x100013f9
lea esp, [esp]
push 0x1c
lea ecx, [ebp - 0x24]
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x1000136d
add esi, 0x1000
jmp 0x100013f0
cmp dword [ebp - 0x14], 0x1000
jne 0x100013ea
cmp dword [ebp - 0xc], 0x1000000
jne 0x100013ea
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 4], eax
jae 0x100013a0
mov esi, eax
push edi
mov dword [ebp - 4], esi
call fcn.10002980
push esi
call fcn.10002888
mov edi, eax
mov eax, dword [ebp - 0x18]
add esp, 8
lea edx, [ebp - 8]
push edx
push eax
mov eax, dword [ebp - 0x24]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x100013ea
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
xor esi, esi
test ecx, ecx
jle 0x100013ea
xor eax, eax
lea edx, [eax + esi]
mov dl, byte [edx + edi]
cmp dl, byte [eax + 0x1000d188]
jne 0x1000140b
inc eax
cmp eax, 0x10
jl 0x100013c3
cmp esi, 0xffffffff
je 0x100013ea
mov eax, dword [ebp - 0x24]
lea ecx, [esi + eax]
cmp ecx, 0x1000d188
jne 0x10001412
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x3c]
jb 0x10001350
push edi
call fcn.10002980
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
cmp esi, ecx
jl 0x100013c1
jmp 0x100013ea
push edi
call fcn.10002980
mov ecx, dword [ebp - 0x24]
add esp, 4
pop edi
lea eax, [esi + ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001430
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000af80
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1000f038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor ebx, ebx
sub eax, ebx
mov dword [ebp - 4], ebx
je 0x1000156e
dec eax
jne 0x100015b5
mov eax, dword [0x10010d10]
cmp eax, ebx
jne 0x100014bf
push str.QEv102FDD8D_2B4C_465F_891C_5AB0440D288E
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.102FDD8D_2B4C_465F_891C_5AB0440D288E
push 0x100010
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov dword [0x10010d08], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x100010
push ebx
push ebx
push 0xf001f
push eax
mov dword [0x10010d0c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10010d10], eax
cmp byte [eax], bl
je 0x100015b0
mov dword [0x10010cfc], ebx
call fcn.10001310
cmp eax, ebx
je 0x100014de
add eax, 0xffffffd0
mov dword [0x10010cfc], eax
cmp dword [0x10010cfc], ebx
je 0x100015b5
call fcn.10001ae9
cmp eax, ebx
jne 0x100015b5
mov ecx, dword [0x10010cfc]
push 0x10010cf8
mov edx, 0x100010c0
call fcn.10001c29
cmp eax, ebx
jne 0x100015b5
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10010d00
mov edx, 0x100011f0
mov ecx, esi
call fcn.10001c29
cmp eax, ebx
jne 0x100015b5
mov eax, dword [0x10010cfc]
push eax
mov ecx, 1
call fcn.10001dd6
add esp, 4
cmp eax, ebx
jne 0x100015b5
push esi
mov ecx, 1
call fcn.10001dd6
add esp, 4
cmp eax, ebx
jne 0x100015b5
call fcn.10001ea5
cmp eax, ebx
jne 0x100015b5
mov byte [0x10010d04], 1
jmp 0x100015b5
cmp byte [0x10010d04], bl
je 0x100015a8
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
xor ecx, ecx
call fcn.10001dd6
mov edx, dword [0x10010cfc]
add esp, 4
push edx
xor ecx, ecx
call fcn.10001dd6
add esp, 4
call fcn.10001ea5
call fcn.10001b63
mov byte [0x10010d04], bl
cmp dword [0x10010d10], ebx
je 0x100015b5
call fcn.100012c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100017cc
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000f038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x100018a0
push ebx
push 0x1c
pop ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x1000188e
cmp dword [ebp - 0x20], 0x10
jb 0x1000187e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1000187e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000187e
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000184c
push 0x200
push ecx
push dword [0x10010d18]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10001896
jmp 0x10001870
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10001870
shl eax, 3
push eax
push ecx
push 0
push dword [0x10010d18]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10001896
shl dword [esi + 4], 1
mov dword [esi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [ebp - 0x18]
mov dword [ecx + eax*4], edx
inc dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10001809
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002893
leave
ret

Function at 0x100018ac
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.100017cc
cmp dword [esi], edi
je 0x10001906
push ebx
xor ebx, ebx
cmp dword [esi + 8], edi
jbe 0x10001905
jmp 0x100018d2
xor edi, edi
mov eax, dword [esi]
push dword [eax + ebx*4]
push edi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100018ff
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
push edi
call fcn.1000167c
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x100018d0
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1000190a
Capabilities:
Resume thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x10001951
cmp dword [esi + 8], edi
jbe 0x10001941
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000193a
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10001917
pop ebx
push dword [esi]
push 0
push dword [0x10010d18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x10001953
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
imul ebx, ebx, 0x28
add ebx, dword [0x10011e80]
push esi
test byte [ebx + 0x14], 1
push edi
mov edi, dword [ebx]
push 5
pop esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
je 0x10001984
sub edi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 7
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000199d
push 0xa
pop eax
jmp 0x100019fe
cmp dword [ebp + 8], 0
je 0x100019bf
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, esi
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x100019cf
mov eax, dword [ebx]
mov word [eax], 0xf9eb
jmp 0x100019cf
test byte [ebx + 0x14], 1
lea esi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
je 0x100019cb
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 8]
and eax, 1
mov ecx, eax
and ecx, 0xfffffffd
add eax, eax
or ecx, eax
mov eax, dword [ebx + 0x14]
add ecx, ecx
and eax, 0xfffffff9
or ecx, eax
mov dword [ebx + 0x14], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002248
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [0x10011e7c]
mov dword [ebp - 8], edx
jmp 0x1000227a
cmp dword [eax + 4], 0
jne 0x10002311
mov eax, dword [eax]
test eax, eax
jne 0x1000226e
and esi, 0xfffff000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
push edi
lea edi, [ecx - 0x1000]
mov dword [ebp - 0xc], ecx
mov esi, 0x1000
cmp edi, edx
jb 0x100022b9
push 0x40
push 0x3000
push esi
push edi
call ebx
test eax, eax
jne 0x100022dd
sub edi, esi
cmp edi, dword [ebp - 8]
jae 0x100022a0
mov ecx, dword [ebp - 0xc]
test eax, eax
jne 0x100022dd
lea edi, [ecx + 0x1000]
jmp 0x100022d6
push 0x40
push 0x3000
push esi
push edi
call ebx
test eax, eax
jne 0x100022dd
add edi, esi
cmp edi, dword [ebp - 4]
jb 0x100022c5
jmp 0x1000230f
and dword [eax + 4], 0
and dword [eax + 8], 0
lea ecx, [eax + 0x20]
mov edx, ecx
sub edx, eax
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x100022ec
mov ecx, dword [0x10011e7c]
mov dword [eax], ecx
mov dword [0x10011e7c], eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10002893
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000f038]
jne 0x1000289d
repz ret
jmp fcn.10002cd7
Function at 0x10008fb3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000f038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10003339
and dword [ebp - 0x14], 0
cmp dword [0x10010ca4], 0
mov dword [ebp - 0x18], eax
jne 0x10009066
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000910e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000910e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10010ca4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10010ca8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10010cac], eax
call edi
push eax
call esi
mov dword [0x10010cb4], eax
test eax, eax
je 0x10009066
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10010cb0], eax
mov eax, dword [0x10010cb0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100090bf
cmp dword [0x10010cb4], ecx
je 0x100090bf
push eax
call esi
push dword [0x10010cb4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100090bf
test ebx, ebx
je 0x100090bf
call edi
test eax, eax
je 0x100090b6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100090b6
test byte [ebp - 8], 1
jne 0x100090bf
or dword [ebp + 0x10], 0x200000
jmp 0x100090f2
mov eax, dword [0x10010ca8]
cmp eax, dword [ebp - 0x18]
je 0x100090f2
push eax
call esi
test eax, eax
je 0x100090f2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100090f2
mov eax, dword [0x10010cac]
cmp eax, dword [ebp - 0x18]
je 0x100090f2
push eax
call esi
test eax, eax
je 0x100090f2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10010ca4]
call esi
test eax, eax
je 0x1000910e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10009110
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002893
leave
ret
Function at 0xd12570
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6c3000]
mov dword [edi + 0x734120], 0x8479c76a
push edi
jmp 0xd1259a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd125a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd12590
mov eax, 1
add ebx, ebx
jne 0xd125b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd125c4
jne 0xd125e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd125e3
dec eax
add ebx, ebx
jne 0xd125d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xd125a8
add ebx, ebx
jne 0xd125df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xd12635
xor ecx, ecx
sub eax, 3
jb 0xd125fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd1266a
sar eax, 1
mov ebp, eax
jmp 0xd12606
add ebx, ebx
jne 0xd12606
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd125d4
inc ecx
add ebx, ebx
jne 0xd12614
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd125d4
add ebx, ebx
jne 0xd12621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd12616
jne 0xd12632
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd12616
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd12654
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd12646
jmp 0xd12596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd12654
add edi, ecx
jmp 0xd12596
pop esi
mov edi, esi
mov ecx, 0x2b599
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd12672
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xd12677
lea edi, [esi + 0x90e000]
mov eax, dword [edi]
or eax, eax
je 0xd126e8
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x916ec4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x917054]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd1269d
mov ecx, edi
jns 0xd126cc
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x917058]
or eax, eax
je 0xd126e2
mov dword [ebx], eax
add ebx, 4
jmp 0xd126ba
call dword [esi + 0x917068]
mov ebp, dword [esi + 0x91705c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xd1271c
sub esp, 0xffffff80
jmp 0x4040c8
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.00417920
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.00417920
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.00417920
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004208a2
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.004208a2
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.00417920
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.004208a2
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.004208a2
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], vtable.LDAVRecordImpl.0
call fcn.0041cbb0
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.004208a2
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.004208a2
mov esp, ebp
pop ebp
ret 0x10