joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48dd86
Capabilities:
Get number of processors

Disassembly:
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dda1
lea eax, [ebp - 0x18]
or byte [0xc3fff772], 0xe9
js 0x48ddd1
add byte [eax], al
jmp 0x48dd91
jmp 0x49124e
inc ebp
add ah, bl
sahf
inc ebp
add al, ch
enter 0x94b, 0x64
jo 0x4912a0
add byte [ecx + esi*4 + 0x45], ah
add byte [ebp*2 - 0x535fffbb], ch
inc ebp
add al, al
xchg ebx, eax
inc ebp
add byte [esi + ebp*4 + 0x45], dl
add byte [eax + 0x7a], cl
jp 0x4912b8
add byte [0x49194600], dh
add al, dh
add al, byte [eax]
insb byte es:[edi], dx
jo 0x491307
cld
add al, byte [eax]
add byte [edx], al
add byte [esi], al
bound esi, qword [esi + ebp*2 + 0x6d]
outsd dx, dword [esi]
outsb dx, byte [esi]
add byte [ebx], al
add byte [eax], al
add eax, dword [eax]
or al, 0x43
insb byte es:[edi], dx
imul esp, dword [ebp + 0x6e], 0x636f5374
imul esp, dword [ebp + 0x74], 4
add eax, dword [eax]
add byte [eax + eax], al
or dword [ebx + 0x74], edx
popal
je 0x491345
jae 0x491314
popal
jb 0x4912dd
add eax, dword [eax]
add byte [0x69540800], al
add eax, 0x69540800
insd dword es:[edi], dx
jb 0x491334
jbe 0x491355
or al, 3
add byte [eax], al
push es
imul esp, dword [ebx + 0x6f], 0x3246e
add byte [edx], cl
add byte [eax + esi*2], cl

Function at 0x491210
Capabilities:
Get number of processors

Disassembly:
imul eax, dword fs:[ebp], 0x4580cc
dec esp
and byte [eax + eax + 0x60], al
lea eax, [ebp]
mov esp, 0x7c004590
inc ebp
add byte [edi + ecx*4 + 0x45], bh
add ah, ah
and byte [eax + eax - 0x18], al
push ecx
dec edx
or esp, esi
xchg ecx, eax
inc ebp
add byte [eax + 0x1f], cl
inc esp
add byte [edx + ecx*2 - 0x2617ffbc], bl
dec ebx
or dword [eax + 0x47], ebx
inc esp
add byte [ebp + ebp*4 + 0x63580045], bh
inc ebp
add byte [eax], cl
inc bp

Function at 0x491221
Capabilities:
Get number of processors

Disassembly:
imul eax, dword fs:[ebp], 0x4580cc
dec esp
and byte [eax + eax + 0x60], al
lea eax, [ebp]
mov esp, 0x7c004590
inc ebp
add byte [edi + ecx*4 + 0x45], bh
add ah, ah
and byte [eax + eax - 0x18], al
push ecx
dec edx
or esp, esi
xchg ecx, eax
inc ebp
add byte [eax + 0x1f], cl
inc esp
add byte [edx + ecx*2 - 0x2617ffbc], bl
dec ebx
or dword [eax + 0x47], ebx
inc esp
add byte [ebp + ebp*4 + 0x63580045], bh
inc ebp
add byte [eax], cl
inc bp

Function at 0x498e90
Capabilities:
Packed with generic packer

Disassembly:
cmp al, 0x92
dec ecx
add byte [edi + ecx*4 - 0x6e86ffb7], bh
dec ecx
add byte [eax], al
add byte [eax], al
add byte [edx], dl
adc dl, byte [edx + 0x3640049]
add byte [eax], al
dec eax
inc eax
inc ebp
add byte [esi + ebp*8 + 0x6cf40041], ah
inc ebp
add byte [esi + ebp*2 + 0x3b400045], bl
inc eax
add byte [eax], bh
xchg edx, eax
inc ebp
add byte [eax + edi + 0x40], bh
add byte [eax + 0x4004038], bl
outsd dx, dword [esi]
Function at 0x498ea0
Capabilities:
Packed with generic packer

Disassembly:
cmp al, 0x92
dec ecx
add byte [edi + ecx*4 - 0x6e86ffb7], bh
dec ecx
add byte [eax], al
add byte [eax], al
add byte [edx], dl
adc dl, byte [edx + 0x3640049]
add byte [eax], al
dec eax
inc eax
inc ebp
add byte [esi + ebp*8 + 0x6cf40041], ah
inc ebp
add byte [esi + ebp*2 + 0x3b400045], bl
inc eax
add byte [eax], bh
xchg edx, eax
inc ebp
add byte [eax + edi + 0x40], bh
add byte [eax + 0x4004038], bl
outsd dx, dword [esi]

Function at 0x498ed4
Capabilities:
Packed with generic packer

Disassembly:
inc ebp
add byte [eax + 0x74004455], ah
je 0x498f18
add byte [eax + 0x68], bh
inc ecx
add ah, al
jo 0x498f20
adc ch, 0x43
pop eax
js 0x498f68

Function at 0x498f19
Capabilities:
Packed with generic packer

Disassembly:
aad 0x43
add byte [ebp + edx*8 + 0x78580043], al
inc ebp
add byte [eax - 0x3bffbbfb], dh

Function at 0x498f4e
Capabilities:
Packed with generic packer

Disassembly:
inc esp
add byte [esp + eax*2 + 0x495c0044], dh
inc esp
add byte [ecx + ebp*2 + 0x45], ah
add ah, cl
add byte [ebp], 0x4c
and byte [eax + eax + 0x60], al
lea eax, [ebp]
mov esp, 0x7c004590
pop dword [ebp]

Function at 0x499006
Capabilities:
Packed with generic packer

Disassembly:
je 0x49907a
outsb dx, byte gs:[si]
popal
and byte gs:[ebx], al

Function at 0x49900c
Capabilities:
Packed with generic packer

Disassembly:
insd dword es:[edi], dx
add al, 3
add byte [eax], al
add al, byte [eax]
or ah, byte [ebp + 0x64]
je 0x49908b
arpl word gs:[bx + 0x64], bp
or byte gs:[ebx], al
add byte [eax], al
add dword [eax], eax
pop es
insb byte es:[edi], dx
bound ebp, qword [ecx + ebp*2 + 0x6e]
outsw dx, word [esi]
or al, 3
add byte [eax], al
add eax, dword [eax]
add eax, 0x626c626c
adc byte [bp + di], al
add byte [eax], al
add al, 0
or al, 0x50
popal
inc ebx
outsd dx, dword [esi]
add byte [ebx], al

Function at 0x499046
Capabilities:
Packed with generic packer

Disassembly:
outsb dx, byte [esi]
je 0x4990bb
outsd dx, dword [esi]
insb byte es:[edi], dx
xor dword [ebx + eax], edx
add byte [eax], al
add eax, 0x61540900
bound edx, qword [ebx + 0x68]
je 0x49908d
sbb byte [ebx], al
add byte [eax], al
add eax, 0x61540900
or dword [ecx + 0x62], edx
push ebx
push 0x32746565
sbb al, 3
add byte [eax], al
add eax, dword [eax]
or byte [edx + 0x6c], ch
je 0x4990e1
je 0x4990e6
add byte [eax], cl
pop edx
dec edx
insb byte es:[edi], dx
bound ebp, qword [ecx + esi*2 + 0x71]
sub al, 3
add byte [eax], al
add dword [eax], eax
or byte [edx + 0x6c], ch
insd dword es:[edi], dx
add eax, dword [eax]
add byte [ebx], al
add eax, dword [eax]
or byte [edx + 0x4a], bl

Function at 0x49907d
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add dword [eax], eax
push es
insb byte es:[edi], dx
bound ebp, qword [edi + esi*2 + 0x65]
bound esp, qword [ebx + eax]
add byte [eax], al
add eax, dword [eax]
or byte [edx + 0x4a], bl
dec esp
popal
bound esp, qword [ebp + 0x6c]
xor eax, 0x328
Function at 0x4990e4
Capabilities:
Packed with generic packer

Disassembly:
outsb dx, byte [esi]
je 0x4990bb
outsd dx, dword [esi]
insb byte es:[edi], dx
xor dword [ebx + eax], edx
add byte [eax], al
add eax, 0x61540900
bound edx, qword [ebx + 0x68]
je 0x49908d
sbb byte [ebx], al
add byte [eax], al
add eax, 0x61540900
or dword [ecx + 0x62], edx
push ebx
push 0x32746565
sbb al, 3
add byte [eax], al
add eax, dword [eax]
or byte [edx + 0x6c], ch
je 0x4990e1
je 0x4990e6
add byte [eax], cl
pop edx
dec edx
insb byte es:[edi], dx
bound ebp, qword [ecx + esi*2 + 0x71]
sub al, 3
add byte [eax], al
add dword [eax], eax
or byte [edx + 0x6c], ch
insd dword es:[edi], dx
add eax, dword [eax]
add byte [ebx], al
add eax, dword [eax]
or byte [edx + 0x4a], bl
Function at 0x401640
Capabilities:
Set registry value

Disassembly:
sub esp, 0x6c
lea eax, [esp + 4]
lea edx, [esp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push edx
push 0
push str.SoftwareChinaGDSS2000HqSvr
push 0x80000001
call ebx
test eax, eax
jne 0x40176c
mov eax, dword [esi + 0xa4]
push 4
test eax, eax
mov eax, dword [esi + 0x60]
jne 0x4016b9
mov ecx, dword [0x404354]
lea eax, [eax + eax*4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ecx + eax*4 + 8]
mov eax, dword [esp + 0x10]
push edx
push 4
push 0
push str.CurrentSel
push eax
call edi
test eax, eax
jne 0x40176c
jmp 0x4016e5
mov edx, dword [0x404354]
lea ecx, [eax + eax*4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [edx + ecx*4 + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push 4
push 0
push str.CurrentSel
push ecx
call edi
test eax, eax
jne 0x40176c
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
lea edx, [esp + 0x24]
push 0
push edx
push 0
push str.SoftwareS2000HqSvr
push 0x80000001
call ebx
test eax, eax
jne 0x40176c
mov eax, dword [esi + 0xa4]
mov esi, dword [esi + 0x60]
test eax, eax
push 4
jne 0x40174e
mov ecx, dword [0x404354]
lea eax, [esi + esi*4]
lea edx, [ecx + eax*4 + 8]
mov eax, dword [esp + 0x10]
push edx
push 4
push 0
push str.CurrentSel
push eax
call edi
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
mov edx, dword [0x404354]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4 + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push 4
push 0
push str.CurrentSel
push ecx
call edi
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
Function at 0x401780
Capabilities:
Set registry value

Disassembly:
sub esp, 0xd0
lea eax, [esp + 4]
lea edx, [esp + 0x6c]
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push edx
push 0
push str.SoftwareChinaGDSS2000JySvr
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401899
mov eax, dword [ebx + 0x60]
mov ecx, dword [0x404354]
lea edx, [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [eax + eax*4]
mov edi, dword [ecx + eax*4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
push str.BrokerName
push edx
call ebp
test eax, eax
jne 0x401899
mov eax, dword [ebx + 0x60]
mov ecx, dword [0x404354]
lea edx, [esp + 0x18]
push 0x64
lea eax, [eax + eax*4]
mov edi, dword [ecx + eax*4 + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0
push str.BrokerCode
push edx
call ebp
test eax, eax
jne 0x401899
mov ebx, dword [ebx + 0x60]
mov ecx, dword [0x404354]
push 4
lea eax, [ebx + ebx*4]
lea edx, [ecx + eax*4 + 0x10]
mov eax, dword [esp + 0x14]
push edx
push 4
push 0
push str.CurrentSel
push eax
call ebp
test eax, eax
jne 0x401899
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x18
cmp word [0x400000], 0x5a4d
mov dword [0x4ad058], 1
mov dword [0x4ad054], 1
mov dword [0x4ad050], 1
jne 0x401059
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x4ad00c], eax
mov eax, dword [0x4ad064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4ad078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4ad060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x428040], 1
je 0x4010e0
leave
xor eax, eax
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401073
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f0
cmp dx, 0x20b
jne 0x401059
cmp dword [ecx + 0x84], 0xe
jbe 0x401059
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401059
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
leave
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401059
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401059

Function at 0x4018a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp + 0xc]
sub esp, 0x14
mov dword [esp], 2
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401900
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov esi, dword [0x4ad06c]
test esi, esi
jle 0x401a20
mov eax, dword [0x4ad070]
xor ecx, ecx
add eax, 0xc
lea esi, cs:[esi]
mov edx, dword [eax]
cmp ebx, edx
jb 0x40193c
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019bd
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401928
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a47
mov eax, dword [0x4ad070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4ad070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a27
mov eax, dword [ebp - 0x20]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4019b6
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x4019c8
add dword [0x4ad06c], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [ebp - 0x28]
cmove eax, edx
mov edx, dword [ebp - 0x34]
add ebx, dword [0x4ad070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
xor esi, esi
jmp 0x401946
mov eax, dword [0x4ad070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop

Function at 0x402200
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
add edx, dword [edx + 0x3c]
movzx eax, word [edx + 0x14]
movzx esi, word [edx + 6]
lea eax, [edx + eax + 0x18]
test si, si
je 0x402240
xor ecx, ecx
lea esi, [esi]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402236
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402242
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402228
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x402250
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
cmp eax, 8
ja 0x4022dd
cmp word [0x400000], 0x5a4d
jne 0x4022dd
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea eax, [edx + 0x400000]
jne 0x4022dd
cmp word [edx + 0x400018], 0x10b
jne 0x4022dd
movzx edx, word [edx + 0x400014]
movzx edi, word [eax + 6]
lea ebx, [eax + edx + 0x18]
test di, di
je 0x4022f0
xor esi, esi
jmp 0x4022c2
add esi, 1
add ebx, 0x28
cmp esi, edi
je 0x4022f0
mov eax, dword [ebp + 8]
mov dword [esp + 8], 8
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._strncmp
test eax, eax
jne 0x4022b8
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402300
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402325
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402330
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402325
push ebp
movzx eax, word [ecx + 0x400014]
lea eax, [edx + eax + 0x18]
mov ebp, esp
push esi
movzx esi, word [ecx + 0x400006]
push ebx
mov ebx, dword [ebp + 8]
sub ebx, 0x400000
test si, si
je 0x402380
xor ecx, ecx
lea esi, [esi]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402376
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402382
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402368
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x417d34
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0xc]
call sym._bip_init_windows
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edx
xor edx, edx
test eax, eax
je 0x417d69
test ebx, ebx
jne 0x417d5e
mov dl, 1
jmp 0x417d69
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx], eax
jmp 0x417d5a
mov ebx, dword [ebp - 4]
mov eax, edx
leave
ret
Function at 0x41812c
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ecx, 4
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x12c]
push ebx
sub esp, 0x16c
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x140], 0x10
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x150], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x13a]
mov ecx, 6
rep stosb byte es:[edi], al
mov ecx, dword [0x42ac98]
cmp ecx, 0xffffffff
jne 0x41817f
xor ebx, ebx
jmp 0x418355
cmp ebx, 0x3e7
jbe 0x4181a2
mov eax, ebx
mov edi, 0x3e8
xor edx, edx
div edi
imul edx, eax, 0x3e8
sub ebx, edx
imul ebx, ebx, 0x3e8
jmp 0x4181aa
imul ebx, ebx, 0x3e8
xor eax, eax
mov dword [ebp - 0x134], eax
mov eax, dword [0x42ac84]
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x11c], 1
cmp ecx, eax
je 0x4181df
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x11c], 2
xor edi, edi
lea edx, [ebp - 0x134]
lea ebx, [ebp - 0x11c]
cmp ecx, eax
cmovb ecx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
inc ecx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], ecx
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
test eax, eax
jle 0x418178
mov dword [esp + 4], ebx
mov eax, dword [0x42ac98]
mov dword [esp], eax
call sym.___WSAFDIsSet_8
push ebx
push ebx
mov edi, dword [0x42ac84]
mov dword [ebp - 0x14c], edi
test eax, eax
je 0x418245
mov eax, dword [0x42ac98]
mov dword [ebp - 0x14c], eax
movzx edi, word [ebp - 0x150]
lea eax, [ebp - 0x140]
xor ecx, ecx
mov dword [esp + 4], esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x14c]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recvfrom]
sub esp, 0x18
mov ebx, eax
test eax, eax
jle 0x418178
cmp byte [esi], 0x81
jne 0x418178
mov eax, edi
sub eax, ebx
test eax, eax
jle 0x4182b0
mov edx, 0x10
cmp eax, edx
cmovle edx, eax
xor eax, eax
mov ecx, edx
lea edx, [esi + ebx]
mov edi, edx
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x13a], eax
movzx eax, word [ebp - 0x12a]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohs]
push edx
cmp byte [0x42ac8c], 0
mov word [ebp - 0x136], ax
je 0x4182f7
movzx ecx, word [ebp - 0x12a]
mov dword [esp], ebx
lea edx, [ebp - 0x128]
mov eax, str.Received_MPDU__
call sym._debug_print_ipv4.part.0
movzx edx, bx
mov eax, dword [ebp - 0x14c]
cmp dword [0x42ac98], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x13a]
mov dword [esp], eax
mov dword [esp + 4], edi
jne 0x418327
call sym._bvlc_handler
jmp 0x41832c
call sym._bvlc_broadcast_handler
test eax, eax
jle 0x418178
sub ebx, eax
cmp word [ebp - 0x150], bx
jb 0x418178
xor ecx, ecx
add eax, esi
cmp cx, bx
jae 0x418355
mov dl, byte [eax + ecx]
mov byte [esi + ecx], dl
inc ecx
jmp 0x418347
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x418360
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
xor eax, eax
mov ecx, 4
mov ebp, esp
push edi
push ebx
lea edi, [ebp - 0x18]
sub esp, 0x30
cmp dword [0x42ac98], 0xffffffff
mov edx, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 0x10]
jne 0x4183c5
cmp byte [0x42ac8c], 0
je 0x418445
mov ebx, dword [dbg.__acrt_iob_func]
mov dword [esp], 2
call ebx
mov dword [esp], str.BIP:_driver_not_initialized__n
mov dword [esp + 4], eax
call sym._fputs
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sym._fflush
jmp 0x418445
mov eax, dword [edx]
mov word [ebp - 0x18], 2
movzx ebx, bx
mov dword [ebp - 0x14], eax
movzx eax, word [edx + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
push edx
cmp byte [0x42ac8c], 0
mov word [ebp - 0x16], ax
je 0x418401
mov dword [esp], ebx
movzx ecx, ax
lea edx, [ebp - 0x14]
mov eax, str.Sending_MPDU__
call sym._debug_print_ipv4.part.0
lea eax, [ebp - 0x18]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x14], 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [0x42ac98]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
sub esp, 0x18
mov ebx, eax
cmp eax, 0xffffffff
jne 0x418448
mov eax, str.sendto
call sym._print_last_error
jmp 0x418448
or ebx, 0xffffffff
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop edi
pop ebp
ret

Function at 0x41bb64
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 1
mov dword [esp + 8], 0x11
mov dword [esp + 4], 2
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x41bba7
mov eax, str.failed_to_allocate_a_socket
call sym._print_last_error
jmp 0x41bbf0
lea edx, [ebp - 0x1c]
mov dword [esp], eax
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 4
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
call edi
lea edx, [ebp - 0x1c]
sub esp, 0x14
inc eax
jne 0x41bbf5
mov eax, str.failed_to_set_REUSEADDR_socket_option
call sym._print_last_error
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
or ebx, 0xffffffff
jmp 0x41bc41
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call edi
sub esp, 0x14
inc eax
mov eax, str.failed_to_set_BROADCAST_socket_option
je 0x41bbe1
mov dword [esp + 8], 0x10
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_bind]
sub esp, 0xc
inc eax
mov eax, str.failed_to_bind
je 0x41bbe1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret