joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ec100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x10356534]
xor ecx, ebp
mov dword [esp + 0x58], ecx
movzx ecx, byte [eax]
jmp 0x100ec140
xor edx, edx
cmp cl, 0x25
sete dl
movzx ecx, byte [eax + edx + 1]
add eax, edx
inc eax
test cl, cl
je 0x100ec275
cmp cl, 0x25
jne 0x100ec130
cmp byte [eax + 1], 0x25
je 0x100ec130
lea ebx, [esp + 0x18]
push esi
push edi
push eax
push 0x40
push ebx
call fcn.100a65e0
add esp, 0x14
nop word cs:[eax + eax]
movzx ecx, byte [ebx]
inc ebx
cmp cl, 0x20
je 0x100ec170
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
cmp eax, 8
jne 0x100ec1ef
dec ebx
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
add esp, 4
fstp qword [esp + 0x10]
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [0x101635c0]
ucomisd xmm0, xmm1
jae 0x100ec1ab
xorpd xmm1, xmm1
subsd xmm0, xmm1
movsd qword [esp + 8], xmm0
setae al
fld qword [esp + 8]
fnstcw word [esp + 4]
movzx ecx, word [esp + 4]
or ecx, 0xc00
mov word [esp + 6], cx
fldcw word [esp + 6]
fistp qword [esp + 8]
fldcw word [esp + 4]
movzx esi, al
shl esi, 0x1f
xor esi, dword [esp + 0xc]
mov edi, dword [esp + 8]
jmp 0x100ec275
xor eax, eax
cmp cl, 0x2d
sete al
xor edx, edx
cmp byte [ebx + eax - 1], 0x2b
sete dl
add edx, eax
mov ch, byte [ebx + edx - 1]
mov al, ch
add al, 0xd0
mov byte [esp + 3], al
mov eax, 0
mov esi, 0
cmp byte [esp + 3], 9
ja 0x100ec25f
add ebx, edx
xor edx, edx
xor esi, esi
nop word cs:[eax + eax]
mov eax, edx
mov edx, 0xa
mul edx
mov edi, eax
movzx eax, ch
add esi, esi
lea esi, [esi + esi*4]
add eax, 0xffffffd0
add eax, edi
adc esi, edx
mov ch, byte [ebx]
mov byte [esp + 3], ch
add ch, 0xd0
inc ebx
mov edx, eax
cmp ch, 0xa
mov ch, byte [esp + 3]
jb 0x100ec230
mov edi, eax
neg edi
mov edx, 0
sbb edx, esi
cmp cl, 0x2d
cmovne edi, eax
cmovne edx, esi
mov esi, edx
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.100f6c33
mov eax, edi
mov edx, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100ec960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
sub esp, 0x6c
movss xmm0, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
mov ecx, dword [0x10356534]
xor ecx, esp
mov dword [esp + 0x68], ecx
movzx ecx, byte [eax]
test cl, cl
je 0x100eca6e
mov edi, dword [esp + 0x7c]
jmp 0x100ec9a8
xor edx, edx
cmp cl, 0x25
sete dl
movzx ecx, byte [eax + edx + 1]
add eax, edx
inc eax
test cl, cl
je 0x100eca6e
cmp cl, 0x25
jne 0x100ec990
cmp byte [eax + 1], 0x25
je 0x100ec990
cvtss2sd xmm0, xmm0
movsd qword [esp + 0xc], xmm0
mov dword [esp + 8], eax
lea esi, [esp + 0x28]
mov dword [esp], esi
mov dword [esp + 4], 0x40
call fcn.100a65e0
nop word cs:[eax + eax]
movzx eax, byte [esi]
inc esi
cmp al, 0x20
je 0x100ec9e0
and edi, 0xfffffffe
cmp edi, 8
jne 0x100eca06
dec esi
mov dword [esp], esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
jmp 0x100eca6e
xor ecx, ecx
cmp al, 0x2d
sete cl
xor edx, edx
cmp byte [esi + ecx - 1], 0x2b
sete dl
add edx, ecx
movzx ecx, byte [esi + edx - 1]
mov ah, cl
add ah, 0xd0
xorps xmm0, xmm0
cmp ah, 9
ja 0x100eca63
add esi, edx
xorps xmm0, xmm0
movss xmm1, dword [0x10156a58]
nop dword [eax + eax]
movzx ecx, cl
add ecx, 0xffffffd0
xorps xmm2, xmm2
cvtsi2ss xmm2, ecx
mulss xmm0, xmm1
addss xmm0, xmm2
movzx ecx, byte [esi]
mov edx, ecx
add dl, 0xd0
inc esi
cmp dl, 0xa
jb 0x100eca40
cmp al, 0x2d
jne 0x100eca6e
xorps xmm0, xmmword [0x101540d0]
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
fstp xword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.100f6c33
fld xword [esp + 0x1c]
add esp, 0x6c
pop esi
pop edi
ret
Function at 0x100ed170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
movsd xmm0, qword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x10356534]
xor ecx, ebp
mov dword [esp + 0x74], ecx
movzx ecx, byte [eax]
test cl, cl
je 0x100ed27f
mov edi, dword [ebp + 0xc]
jmp 0x100ed1b8
xor edx, edx
cmp cl, 0x25
sete dl
movzx ecx, byte [eax + edx + 1]
add eax, edx
inc eax
test cl, cl
je 0x100ed27f
cmp cl, 0x25
jne 0x100ed1a0
cmp byte [eax + 1], 0x25
je 0x100ed1a0
movsd qword [esp + 0xc], xmm0
mov dword [esp + 8], eax
lea esi, [esp + 0x34]
mov dword [esp], esi
mov dword [esp + 4], 0x40
call fcn.100a65e0
nop word cs:[eax + eax]
movzx eax, byte [esi]
inc esi
cmp al, 0x20
je 0x100ed1f0
and edi, 0xfffffffe
cmp edi, 8
jne 0x100ed216
dec esi
mov dword [esp], esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
jmp 0x100ed27f
xor ecx, ecx
cmp al, 0x2d
sete cl
xor edx, edx
cmp byte [esi + ecx - 1], 0x2b
sete dl
add edx, ecx
movzx ecx, byte [esi + edx - 1]
mov ah, cl
add ah, 0xd0
xorpd xmm0, xmm0
cmp ah, 9
ja 0x100ed273
add esi, edx
xorpd xmm0, xmm0
movsd xmm1, qword [0x10163848]
nop word [eax + eax]
movzx ecx, cl
add ecx, 0xffffffd0
xorps xmm2, xmm2
cvtsi2sd xmm2, ecx
mulsd xmm0, xmm1
addsd xmm0, xmm2
movzx ecx, byte [esi]
mov edx, ecx
add dl, 0xd0
inc esi
cmp dl, 0xa
jb 0x100ed250
cmp al, 0x2d
jne 0x100ed27f
xorpd xmm0, xmmword [0x1015b190]
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp xword [esp + 0x28]
mov ecx, dword [esp + 0x74]
xor ecx, ebp
call fcn.100f6c33
fld xword [esp + 0x28]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x100edc3f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov eax, dword [0x10356534]
xor eax, esp
mov dword [esp + 0xc], eax
mov esi, dword [0x1035bd08]
imul ebp, ecx, 0x2c
mov eax, dword [esi + ebp]
movzx ecx, byte [esi + ebp + 0x14]
xor edx, edx
and ecx, 1
sete dl
lea edx, [edx + edx*4]
lea edi, [eax + edx]
add edi, 0xfffffffb
lea eax, [ecx + ecx + 5]
lea ecx, [esp + 8]
push ecx
push 0x40
mov dword [esp + 0xc], eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100edcc0
lea ecx, [esi + ebp]
add ecx, 0x14
test ebx, ebx
mov dword [esp], ecx
je 0x100edcc7
mov byte [edi], 0xe9
mov eax, dword [esi + ebp + 4]
sub eax, edi
add eax, 0xfffffffb
mov dword [edi + 1], eax
test byte [ecx], 1
lea edx, [esp + 8]
je 0x100edcea
add esi, ebp
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100edcea
mov esi, 0xa
jmp 0x100edd23
test byte [ecx], 1
lea eax, [esi + ebp + 0xc]
lea edx, [esp + 8]
jne 0x100edce0
mov cl, byte [eax + 4]
mov byte [edi + 4], cl
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x100edcea
mov ecx, dword [eax]
mov eax, dword [eax + 3]
mov dword [edi + 3], eax
mov dword [edi], ecx
push edx
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp]
mov al, byte [edx]
and bl, 1
mov ecx, ebx
add cl, bl
and al, 0xf9
or al, cl
shl bl, 2
or bl, al
mov byte [edx], bl
xor esi, esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.100f6c33
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100edd38
Capabilities:
Resume thread

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [ecx]
test eax, eax
je 0x100edd8c
mov esi, ecx
cmp dword [ecx + 8], 0
je 0x100edd7d
xor ebx, ebx
inc ebx
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
push dword [eax + ebx*4 - 4]
push 0
push 0x5a
call ebp
test eax, eax
je 0x100edd71
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [esi + 8]
jae 0x100edd7b
mov eax, dword [esi]
inc ebx
jmp 0x100edd53
mov eax, dword [esi]
push eax
push 0
push dword [0x1035bd04]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100ede98
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov eax, dword [0x1035bd14]
test eax, eax
je 0x100edead
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x100edefc
mov eax, dword [eax]
jmp 0x100ede9e
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100edf06
mov ecx, eax
add ecx, 0x20
xor esi, esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov edx, 0x20
mov dword [ecx], esi
mov dword [eax + 4], ecx
mov esi, ecx
add ecx, 0x20
add edx, 0x20
cmp edx, 0xfe1
jb 0x100eded7
mov edx, dword [0x1035bd14]
mov dword [eax], edx
mov dword [0x1035bd14], eax
add ecx, 0xffffffe0
mov edx, dword [ecx]
mov dword [eax + 4], edx
inc dword [eax + 8]
jmp 0x100edf08
xor ecx, ecx
mov eax, ecx
pop esi
ret
Function at 0x100f760a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push 0x1019dd00
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100f75e6
pop esi
leave
ret 8
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 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4024d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x411ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x41928c]
test eax, eax
jne 0x40257b
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402562
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x402562
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x41928c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004113ee
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402590
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x4027f0
Capabilities:
Send icmp echo request

Disassembly:
sub esp, 0x24
push esi
push edi
call sub.iphlpapi.dll_IcmpCreateFile
mov esi, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
mov edx, dword [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 8]
push eax
push 0x24
push ecx
push 0
push 4
push str.ping
push edx
push esi
mov dword [esp + 0x30], 0xffffffff
call sub.iphlpapi.dll_IcmpSendEcho
push esi
call sub.iphlpapi.dll_IcmpCloseHandle
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x24
ret 8

Function at 0x4032a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xc]
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
call sub.WSOCK32.dll_gethostname
mov al, byte [esp + 0xc]
test al, al
jne 0x4032de
push str.0.0.0.0
jmp 0x403301
lea ecx, [esp + 0xc]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x4032f3
push str.0.0.0.0
jmp 0x403301
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_inet_ntoa
push eax
mov esi, dword [esp + 0x114]
mov ecx, esi
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret 4
Function at 0x405210
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x411f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x24]
push edi
mov dword [ebp], 0
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40524b
xor eax, eax
jmp 0x4053c6
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push edi
call sub.MFC42.DLL_CString::CString
mov ecx, 0x419170
call fcn.004027d0
push eax
call sub.WSOCK32.dll_htonl
push edi
lea ecx, [esp + 0x30]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jg 0x4052a3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004113ee
xor eax, eax
jmp 0x4053c6
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x24]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004113ee
test esi, esi
jne 0x4052ef
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004113ee
xor eax, eax
jmp 0x4053c6
mov eax, dword [esp + 0x28]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString
mov ecx, 0x419170
call fcn.004027d0
push eax
call sub.WSOCK32.dll_htonl
not eax
mov ecx, eax
and ecx, ebx
cmp ecx, eax
jne 0x405332
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004113ee
xor eax, eax
jmp 0x4053c6
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.224.0.0.0
call sub.MFC42.DLL_CString::CString
mov ecx, 0x419170
call fcn.004027d0
push eax
call sub.WSOCK32.dll_htonl
cmp ebx, eax
jb 0x40536c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004113ee
xor eax, eax
jmp 0x4053c6
push 0xa
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call sub.MFC42.DLL_CString::CString
mov ecx, 0x419170
call fcn.004027d0
push eax
mov ecx, 0x419170
call fcn.004027f0
test eax, eax
jne 0x4053b0
lea ecx, [esp + 0x2c]
mov dword [ebp], 1
mov dword [esp + 0x1c], 0xffffffff
call fcn.004113ee
xor eax, eax
jmp 0x4053c6
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004113ee
mov eax, 1
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4066e0
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0xffffffffffffffff
push 0x41212f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x30], 1
mov dword [ebp], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0x14]
mov edi, eax
push edx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40676e
push edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x34]
add esp, 4
mov ecx, esi
push 0x4190a0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x18], 1
jmp 0x406832
cmp eax, ebx
jne 0x406811
lea ecx, [esp + 0x34]
mov esi, edi
call sub.MFC42.DLL_CString::CString_1
cmp edi, ebx
mov byte [esp + 0x28], 2
je 0x4067e8
lea eax, [esi + 0x1b0]
lea ecx, [esp + 0x34]
push eax
call fcn.00411460
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp]
inc ecx
mov dword [ebp], ecx
mov esi, dword [esi]
cmp esi, ebx
je 0x4067e8
lea edx, [esp + 0x10]
push 0x418fd8
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call fcn.00411478
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 2
call fcn.004113ee
jmp 0x40678a
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.004113ee
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
jmp 0x40682a
push edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x34]
add esp, 4
mov ecx, esi
push 0x4190a0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.004113ee
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x406ac0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
push edi
lea edi, [ebp - 0x444]
mov ecx, 0x111
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x404], eax
mov esi, esp
mov ecx, dword [ebp - 0x404]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x404], 0
mov esi, esp
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
pop edi
pop esi
pop ebx
add esp, 0x444
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x40d080
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
lea edi, [ebp - 0x58]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 1
mov esi, esp
push 0
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40d0dc
mov esi, esp
push str._1_Socket_create_failure_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
or eax, 0xffffffff
jmp 0x40d193
mov dword [ebp - 8], 1
mov esi, esp
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
test eax, eax
je 0x40d123
mov esi, esp
push str._2_SO_REUSEADDR_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
or eax, 0xffffffff
jmp 0x40d193
push 0x10
push 0
lea edx, [ebp - 0x18]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x18], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov esi, esp
mov cx, word [ebp + 0x10]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov word [ebp - 0x16], ax
mov esi, esp
push 0x10
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WSOCK32.dll_bind]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
test eax, eax
je 0x40d190
mov esi, esp
push str._3_bind_failure_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
or eax, 0xffffffff
jmp 0x40d193
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
add esp, 0x58
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret