joyce8/EMBER2024-capa huggingface dataset:
Function at 0xadf9f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3ef000]
push edi
or ebp, 0xffffffff
jmp 0xadfa12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xadfa19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xadfa08
mov eax, 1
add ebx, ebx
jne 0xadfa2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xadfa3c
jne 0xadfa5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xadfa5b
dec eax
add ebx, ebx
jne 0xadfa48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xadfa20
add ebx, ebx
jne 0xadfa57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xadfaad
xor ecx, ecx
sub eax, 3
jb 0xadfa73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xadfae2
sar eax, 1
mov ebp, eax
jmp 0xadfa7e
add ebx, ebx
jne 0xadfa7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xadfa4c
inc ecx
add ebx, ebx
jne 0xadfa8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xadfa4c
add ebx, ebx
jne 0xadfa99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xadfa8e
jne 0xadfaaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xadfa8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xadfacc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xadfabe
jmp 0xadfa0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xadfacc
add edi, ecx
jmp 0xadfa0e
pop esi
mov edi, esi
mov ecx, 0x2d5ba
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xadfaea
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 0xadfaef
lea edi, [esi + 0x6db000]
mov eax, dword [edi]
or eax, eax
je 0xadfb57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6e550c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6e5624]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xadfb15
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6e5628]
or eax, eax
je 0xadfb51
mov dword [ebx], eax
add ebx, 4
jmp 0xadfb32
call dword [esi + 0x6e5638]
mov ebp, dword [esi + 0x6e562c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0xadfb8b
sub esp, 0xffffff80
jmp 0x79db90
Function at 0x403720
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x68]
call fcn.00404200
mov dword [ebp + 0x18], eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x78]
call fcn.00402f40
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
call fcn.00403b70
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0
jmp 0x4037cf
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 2
jae 0x4037e7
mov eax, 0x20c
sub eax, dword [ebp + 0xc]
add eax, 0x321
mov dword [ebp - 0xc], eax
jmp 0x4037c6
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp - 0x4c]
ja 0x4037f8
cmp dword [ebp - 0x54], 0x2d6
je 0x4037ff
mov dword [ebp - 0x5c], 0x1f0
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
call fcn.00402d30
mov dword [ebp + 0x10], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x2c]
call fcn.00404060
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x41b7d1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4217f4]
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.004184d6
mov dword [ebp - 0x14], eax
cmp dword [0xb1cf88], esi
jne 0x41b8c4
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41b851
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b9a4
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41b9a4
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b9a4
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xb1cf88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xb1cf8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xb1cf90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xb1cf98], eax
test eax, eax
je 0x41b8c1
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xb1cf94], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41b8e9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41b8dc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41b8fe
push 4
pop eax
jmp 0x41b9a6
cmp dword [ebp - 0x14], esi
je 0x41b8fe
push dword [0xb1cf88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41b8e3
mov eax, dword [0xb1cf94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41b95c
cmp dword [0xb1cf98], edi
je 0x41b95c
push eax
call ebx
push dword [0xb1cf98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b95c
test eax, eax
je 0x41b95c
call ecx
test eax, eax
je 0x41b951
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 0x41b951
test byte [ebp - 8], 1
jne 0x41b95c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41b98c
mov eax, dword [0xb1cf8c]
cmp eax, edi
je 0x41b989
push eax
call ebx
test eax, eax
je 0x41b989
call eax
mov esi, eax
test esi, esi
je 0x41b989
mov eax, dword [0xb1cf90]
cmp eax, edi
je 0x41b989
push eax
call ebx
test eax, eax
je 0x41b989
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xb1cf88]
call ebx
test eax, eax
je 0x41b9a4
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41b9a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418e87
mov esp, ebp
pop ebp
ret
Function at 0x401a50
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x41b494]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push 0x1927
push 0x3f4
push 5
push 6
push eax
push str._s__d._d._d._d
lea edx, [ebp - 0x80c]
call fcn.004042a0
add esp, 0x18
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x44
lea ecx, [ebp - 0x86c]
push 0
push ecx
call fcn.004095b0
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x820]
push edx
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x86c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x80c]
push ecx
push 0
mov dword [ebp - 0x86c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404edf
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x820]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x820]
lea eax, [ebp - 0x810]
push eax
push ecx
mov dword [ebp - 0x810], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x820]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x81c]
push eax
call esi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x810]
xor ecx, ebp
pop esi
call fcn.00404edf
mov esp, ebp
pop ebp
ret
Function at 0x428e40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x428e64
mov eax, 0xffffffff
add esp, 0x190
ret
mov eax, dword [esp + 0x194]
mov edx, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a4]
mov dword [0x50e528], eax
mov dword [0x50e524], edx
mov dword [0x50e520], ecx
push 0
push 0x516640
call fcn.004c6dc4
add esp, 8
test eax, eax
je 0x428ea9
mov eax, 0xffffffff
add esp, 0x190
ret
push dword [esp + 0x19c]
push 0x428b9c
push 0
push 0x50e540
call fcn.004c6e30
add esp, 0x10
test eax, eax
je 0x428ed4
mov eax, 0xffffffff
add esp, 0x190
ret
xor eax, eax
add esp, 0x190
ret
Function at 0x42988c
Capabilities:
Terminate thread

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
xor eax, eax
mov ebx, eax
mov esi, edx
movzx ecx, byte [ebx + esi]
test ecx, ecx
je 0x4298c7
push dword [ebx*4 + 0x516660]
call dword [0x51e780]
pop ecx
test eax, eax
jne 0x4298c7
push dword [ebx*4 + 0x516660]
push ebx
push str.DelFilter_pid_d__flt_n_d__failed.
call fcn.00429c10
add esp, 0xc
inc ebx
cmp ebx, 0x2002
jl 0x429898
call dword [0x51e76c]
test eax, eax
jne 0x4298e5
push str.StopDVB_failed.
call fcn.00429c10
pop ecx
mov eax, dword [0x50d190]
cmp eax, 0xffffffff
je 0x429910
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x50d194]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x50d198]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x51e760]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop esi
ret

Function at 0x429c4c
Capabilities:
Terminate process

Disassembly:
lea eax, [esp + 8]
push eax
push dword [esp + 8]
push 1
call fcn.00429ae0
push 0
call sub.MSVCR70.dll_perror
add esp, 0x10
call fcn.0040876c
push 1
call sub.MSVCR70.dll_exit
pop ecx
nop

Function at 0x429ce0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
sub esp, 0xc
call fcn.00429c74
xor ebx, ebx
mov ecx, dword [0x51e810]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebp
inc ebx
test ecx, ecx
je 0x429d0f
add dword [0x51e808], 1
adc dword [0x51e80c], 0
mov dword [0x51e810], 1
rdtsc
mov dword [0x51e7e0], eax
mov dword [0x51e7e4], edx
push 0x64
call fcn.004f2a54
pop ecx
mov ecx, dword [0x51e810]
test ecx, ecx
jne 0x429d4b
add dword [0x51e808], 1
adc dword [0x51e80c], 0
jmp 0x429dc9
rdtsc
mov ecx, dword [0x51e7e0]
mov esi, dword [0x51e7e4]
sub eax, ecx
sbb edx, esi
xor ecx, ecx
mov edi, dword [0x51e7e8]
mov dword [0x51e810], 0
mov ebp, dword [0x51e7ec]
mov esi, eax
sub esi, edi
mov esi, edx
sbb esi, ebp
jae 0x429d8a
mov dword [0x51e7e8], eax
mov dword [0x51e7ec], edx
mov edi, dword [0x51e7f0]
mov ebp, dword [0x51e7f4]
mov esi, eax
sub esi, edi
mov edi, edx
sbb edi, ebp
jb 0x429daf
or esi, edi
je 0x429daf
mov dword [0x51e7f0], eax
mov dword [0x51e7f4], edx
add dword [0x51e7f8], eax
adc dword [0x51e7fc], edx
add dword [0x51e800], 1
adc dword [0x51e804], 0
cmp ebx, 0xa
jl 0x429cfc
mov esi, dword [esp + 8]
mov edi, dword [esp + 4]
mov ebp, dword [esp]
push dword [0x51e804]
push dword [0x51e800]
push dword [0x51e7fc]
push dword [0x51e7f8]
call fcn.005000c0
xor ebx, ebx
push ebx
push 0x64
push edx
push eax
call fcn.005000c0
push ebx
push 0x3e8
push edx
push eax
call fcn.005000c0
mov dword [0x5beaa0], eax
mov dword [0x5beaa4], edx
add esp, 0xc
pop ebx
ret

Function at 0x42a0c8
Capabilities:
Hash data using crc32b

Disassembly:
push edi
push ebp
xor edx, edx
xor eax, eax
xor ebp, ebp
mov ecx, edx
or ecx, 0x800000
cmp ecx, 0x80000000
je 0x42a103
mov edi, ebp
xor edi, ecx
test edi, 0x80000000
je 0x42a0f3
mov edi, 0x4c11db7
jmp 0x42a0f5
xor edi, edi
add ebp, ebp
xor ebp, edi
add ecx, ecx
cmp ecx, 0x80000000
jne 0x42a0e0
mov dword [eax + 0x593800], ebp
add edx, 0x1000000
add eax, 4
cmp eax, 0x400
jb 0x42a0ce
pop ebp
pop edi
ret
Function at 0x4c650c
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
push esi
mov dword [esp], 0xffffffff
mov eax, 0xffffffff
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea esi, [0x593800]
xor edx, edx
mov ebx, eax
bswap ebx
mov bh, byte [edi]
xor bl, bh
mov dl, bl
mov ebx, dword [esi + edx*4]
shl eax, 8
xor eax, ebx
inc edi
loop 0x4c652c
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop ebx
pop esi
pop edi
ret

Function at 0x4c6e30
Capabilities:
Create thread

Disassembly:
push esi
xor edx, edx
lea eax, [esp]
push eax
push edx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4c6e56
mov edx, dword [esp + 8]
mov dword [edx], eax
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x4c6e60
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
mov eax, 0
sete al
ret

Function at 0x4c8e8c
Capabilities:
Read file on windows

Disassembly:
push ebx
sub esp, 0x38
push 0x8000
push dword [esp + 0x44]
call sub.MSVCR70.dll__open
add esp, 8
cmp eax, 0xffffffff
je 0x4c8f49
mov ebx, eax
lea edx, [esp + 0x10]
push 4
push edx
push ebx
call sub.MSVCR70.dll__read
add esp, 0xc
test eax, eax
je 0x4c8f4e
mov edx, dword [esp + 0x10]
cmp edx, 0x20
jae 0x4c8f40
lea ecx, [esp + 0x14]
push edx
push ecx
push ebx
call sub.MSVCR70.dll__read
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
mov byte [esp + edx + 0x20], 0
push 4
push ecx
push ebx
call sub.MSVCR70.dll__read
lea edx, [esp + 0x18]
push 8
push edx
push ebx
call sub.MSVCR70.dll__read
lea edx, [esp + 0x2c]
push 8
push edx
push ebx
call sub.MSVCR70.dll__read
lea edx, [esp + 0x44]
push edx
call fcn.004c6e78
add esp, 0x34
test eax, eax
je 0x4c8eac
mov edx, dword [esp + 0x34]
mov dword [eax], edx
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ecx
jmp 0x4c8eac
mov eax, ebx
push eax
call sub.MSVCR70.dll__close
pop ecx
add esp, 0x38
pop ebx
ret
mov eax, ebx
jmp 0x4c8f42
Function at 0x4e5b64
Capabilities:
Create raw socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x194
movzx eax, byte [0x5bf254]
test eax, eax
je 0x4e5bba
mov edx, 3
xor eax, eax
push eax
push 0x80
push edx
push eax
push edx
push bind
push str..Passthru
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x50d2ec], eax
cmp eax, 0xffffffff
je 0x4e5c83
push 0x4000
call fcn.004fd56e
pop ecx
mov dword [0x5bf25c], eax
add esp, 0x194
ret
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4e5c6b
movzx eax, byte [0x5bf250]
test eax, eax
jne 0x4e5c35
xor eax, eax
push eax
push eax
push eax
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x50d2e8], eax
cmp eax, 0xffffffff
jne 0x4e5c0e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.spufer_init:_WSASocket:__d
call fcn.00429c10
add esp, 0x19c
ret
mov dword [esp + 0x190], 1
lea edx, [esp + 0x190]
push 4
push edx
push 2
push 0
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4e5c93
jmp 0x4e5ca7
mov edx, 2
xor eax, eax
push eax
push eax
push eax
push 0x11
push edx
push edx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x50d2e8], eax
cmp eax, 0xffffffff
jne 0x4e5ca7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.spufer_init:_WSASocket:__d
call fcn.00429c10
add esp, 0x19c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.spufer_init:_WSAStartup_failed:__d
call fcn.00429c10
add esp, 0x19c
ret
push str.spufer_init:_driver_init_error
call fcn.00429c10
pop ecx
jmp 0x4e5ba3
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.spufer_init:_setsockopt:__d
call fcn.00429c10
add esp, 8
add esp, 0x194
ret
Function at 0x4e5cf8
Capabilities:
Send data
Send data on socket

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x14
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
movzx eax, byte [0x5bf254]
test eax, eax
je 0x4e5dc9
mov eax, dword [0x50d2ec]
cmp eax, 0xffffffff
je 0x4e5e46
lea ebp, [esi + 0xe]
cmp ebp, 0x4000
ja 0x4e5db6
mov ebx, dword [0x5bf25c]
test ebx, ebx
je 0x4e5e3e
lea eax, [ebx + 0xe]
push esi
push edi
push eax
call fcn.004fd7e4
add esp, 0xc
mov eax, dword [esp + 0x30]
movzx edx, word [esp + 0x34]
mov dword [ebx], eax
mov word [ebx + 4], dx
lea ecx, [ebx + 6]
mov eax, dword [esp + 0x30]
movzx edx, word [esp + 0x34]
mov dword [ecx], eax
mov word [ecx + 4], dx
mov eax, 0x800
xor ecx, ecx
lea edx, [esp + 0x10]
mov word [ebx + 0xc], ax
push ecx
push edx
push ecx
push ecx
push ebp
push dword [0x5bf25c]
push 0x4802000
push dword [0x50d2ec]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4e5e3e
push str.spufer_send:_DeviceIoControl_returns_false
call fcn.00429c10
pop ecx
add esp, 0x14
pop ebx
pop ebp
pop esi
pop edi
ret
push str.spufer_send:_ip_packet_is_too_big
call fcn.00429c10
pop ecx
add esp, 0x14
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [0x50d2e8]
cmp eax, 0xffffffff
je 0x4e5e7d
movzx eax, byte [0x5bf250]
test eax, eax
jne 0x4e5e01
mov eax, 2
mov word [esp], ax
push 0
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 2], ax
mov eax, dword [edi + 0x10]
mov dword [esp + 4], eax
jmp 0x4e5e23
mov eax, 2
mov word [esp], ax
push 0x4aa
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 2], ax
mov eax, dword [0x5bf258]
mov dword [esp + 4], eax
lea eax, [esp]
push 0x10
push eax
push 0
push esi
push edi
push dword [0x50d2e8]
call dword [sym.imp.WSOCK32.dll_sendto]
cmp eax, 0xffffffff
je 0x4e5e61
add esp, 0x14
pop ebx
pop ebp
pop esi
pop edi
ret
call fcn.004e5b64
mov eax, dword [0x50d2ec]
cmp eax, 0xffffffff
jne 0x4e5d24
add esp, 0x14
pop ebx
pop ebp
pop esi
pop edi
ret
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.spufer_send:__sendto:__d
call sub.MSVCR70.dll_printf
add esp, 8
add esp, 0x14
pop ebx
pop ebp
pop esi
pop edi
ret
call fcn.004e5b64
jmp 0x4e5dd7

Function at 0x4e62e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0x14]
xor eax, eax
test edx, edx
je 0x4e6313
mov ebx, eax
mov esi, edx
mov ecx, ebx
add ecx, dword [esp + 0x10]
push 0
push esi
push ecx
push dword [0x5bf280]
call sub.WSOCK32.dll_recv
test eax, eax
jl 0x4e6316
je 0x4e6316
add ebx, eax
sub esi, eax
jne 0x4e62f0
mov eax, ebx
pop ebx
pop esi
ret
pop ebx
pop esi
ret
Function at 0x4f2a60
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
push ebp
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [edi], eax
mov dword [esi], eax
push 0x8000
push dword [esp + 0x14]
call sub.MSVCR70.dll__open
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x4f2aff
push 2
push 0
push ebp
call sub.MSVCR70.dll__lseek
mov dword [esi], eax
xor edx, edx
push edx
push edx
push ebp
call sub.MSVCR70.dll__lseek
mov edx, dword [esi]
inc edx
push edx
call fcn.004fd6e2
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x4f2aee
push dword [esi]
push eax
push ebp
call sub.MSVCR70.dll__read
add esp, 0xc
cmp eax, dword [esi]
je 0x4f2adb
push ebp
call sub.MSVCR70.dll__close
push dword [edi]
call sub.MSVCR70.dll_free
xor eax, eax
mov dword [edi], eax
mov dword [esi], eax
add esp, 8
pop ebp
pop esi
pop edi
ret
push ebp
call sub.MSVCR70.dll__close
mov edx, dword [edi]
mov eax, dword [esi]
mov byte [eax + edx], 0
pop ecx
pop ebp
pop esi
pop edi
ret
push ebp
call sub.MSVCR70.dll__close
mov dword [esi], 0
pop ecx
pop ebp
pop esi
pop edi
ret
pop ebp
pop esi
pop edi
ret
Function at 0x4fdb20
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edi
xor eax, eax
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
ret
push edi
xor eax, eax
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
ret
push edi
push esi
sub esp, 0x14
mov eax, dword [esp + 0x24]
shr eax, 2
add eax, dword [esp + 0x20]
mov dword [esp], eax
rdtsc
mov esi, dword [esp]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4fda7b
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
shr ecx, 7
pxor xmm0, xmm0
lea esi, [esi]
lea edi, [edi]
movdqa xmmword [edi], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x40], xmm0
movdqa xmmword [edi + 0x50], xmm0
movdqa xmmword [edi + 0x60], xmm0
movdqa xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x4fda44
emms
jmp 0x4fdb19
mov eax, dword [esp + 0x24]
mov edx, eax
shr edx, 1
shr eax, 2
add edx, dword [esp + 0x20]
add edx, eax
mov dword [esp + 8], edx
rdtsc
mov esi, dword [esp + 8]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4fda2b
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
shr ecx, 7
pxor xmm0, xmm0
lea esi, [esi]
lea edi, [edi]
movntdq xmmword [edi], xmm0
movntdq xmmword [edi + 0x10], xmm0
movntdq xmmword [edi + 0x20], xmm0
movntdq xmmword [edi + 0x30], xmm0
movntdq xmmword [edi + 0x40], xmm0
movntdq xmmword [edi + 0x50], xmm0
movntdq xmmword [edi + 0x60], xmm0
movntdq xmmword [edi + 0x70], xmm0
lea edi, [edi + 0x80]
dec ecx
jne 0x4fdae4
sfence
emms
add esp, 0x14
pop esi
pop edi
ret
test dword [0x5bf370], 0x400
jne 0x4fd9ac
test dword [0x5bf370], 0xfffffe00
jne 0x4fd9e4
test dword [0x5bf370], 0xffffff80
jne 0x4fd9c8
test dword [0x5bf370], 0xffffffff
jne 0x4fdc2c
call fcn.004ff0c0
jmp fcn.004fdb20
push edi
xor eax, eax
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
rep stosb byte es:[edi], al
pop edi
ret