joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6f311c80
Capabilities:
Encode data using xor

Disassembly:
sbb esi, esp
je 0x6f311cb6
mov byte [ebx - 0xd5a0d1f], bh
xchg edi, eax
mov ebp, 0x75335c8c
adc eax, 0xb17f03ce
mov ch, byte [ebp - 0x27067d57]
jge 0x6f311cb5
invalid
inc ebx
pop es
mov ebx, 0xce893078
add al, 0xe8
imul ebp, dword [edx], 0xffffffec
xor byte [ecx + 0x6be804ce], cl
sub ch, ah
lahf
and dword [eax - 0x12], eax
jb 0x6f311cb9
sti
fisubr dword [ebx - 0x53]
lodsd eax, dword [esi]
mov eax, 0x58e7458c
jl 0x6f311d00
mov ecx, 0x2a5af68a
in eax, dx
xor bh, byte [esi - 0x44006d23]
in eax, dx
salc
pop ebp
cmpsd dword [esi], dword es:[edi]
or dword [edi + 0x1c], esp
dec esi
lea ecx, [ecx]
invalid
dec eax
push esi
cmp al, 0x84
sub esp, esp
in al, 6
mov ebp, 0xc660614a
dec eax
adc edi, eax
fild qword [eax - 0x51693445]
push ebx
dec esi
cmp eax, 0xe55e7d23
aam 0x8f
push edi
dec esp
cmp eax, 0x6ee93dcf
movsd dword es:[edi], dword [esi]
test eax, 0xc5cebe97
outsb dx, byte [esi]
mov bh, 0x47
out dx, eax
dec esp
fild word [eax]
cli
inc ecx
xlatb
mov ebx, 0x93e8ecc9
mov byte [eax - 0x63], cl
aas
ror ah, 1
pop edi
popfd
aam 0x65
pop ds
jns 0x6f311d77
iretd
ja 0x6f311d22
test dword [0x806ee2b7], 0xb875dc5a
push esi
inc edi
dec eax
invalid
xchg esp, eax
lodsd eax, dword [esi]
push ebp
sbb ebp, dword [edx + 0x662985aa]
or al, 0x6e
in eax, dx
adc bl, dl
or byte [ecx], 0x5c
xchg ebx, eax
push ecx
outsd dx, dword [esi]
cmc
and bl, byte [esi - 0x29576e27]
popfd
ret 0x8904

Function at 0x6f312310
Capabilities:
Encode data using xor

Disassembly:
pop edx
stosd dword es:[edi], eax
push cs
push ebp
invalid
xor eax, 0x39433375
hlt
stosd dword es:[edi], eax
add eax, 0xafaa7caa
jbe 0x6f31229c
add eax, 0x216363e6
sbb esi, dword [esi + 0xc8fb2d6]
movsd dword es:[edi], dword [esi]
jecxz 0x6f3122ce
adc al, 0xcf
xlatb
mov al, 0xfd
aas
add byte [ebp - 0x7e40fce2], bl
jg 0x6f3122e3
xchg edi, eax
scasd eax, dword es:[edi]
add dword [edx - 0x4df0390b], eax
and dword [ebp + 0x3d], ebp
mov ebx, 0x1ac8a6fe
psadbw mm5, mm5
cmp eax, 0xc8a6febb
sbb cl, byte [edi]
imul ch
shr dword [ebp - 0x4694ec0a], 1
test dword [ebx - 0x18946dec], esp
lcall 0x44bf, 0xfe8d688
mov ah, 0x46
not byte [ebx]
imul edi, dword [ecx - 0x6deb5c7b], 0x6b
out 0x9a, eax
mov dh, dl
call 0x2375e231
inc esi
or ebp, dword [edi + 0x4b62a3ed]
salc
jb 0x6f31238b
loopne 0x6f312305
jecxz 0x6f3122d6
pop esi
mov bh, 0x26
adc cl, byte [esi]
imul edi, dword [edi], 0xd7b3be8a
jb 0x6f3123b6
dec edi
out 0xde, al
mov ebp, 0xd1a63a26
mov byte [0x469891f3], al
push edi
dec eax
aad 0x94
pushal
rcr dword [ebx + 0xacc48d6], 0x43
pop edi
or al, 0xc4
popal
int3
aas
invalid
mov byte [ecx + 0x7b793040], bl
adc eax, dword [edi]
rol dword [ebp + 0x52], 1
lcall 0xde7f, 0x833b6529
push edx
das
test al, 0xe6
push ebp
sbb ebx, dword [eax + 0x56fe146f]
stc
inc esi
xor eax, 0x3db07ff0
aad 0x8d
xchg ebp, eax
or ebp, dword [edx + 0x53ba61b7]
sbb byte [edi - 0x5d96a37b], cl
movsd dword es:[edi], dword [esi]
push ss
insd dword es:[edi], dx
pop ss
dec esi
cli
outsd dx, dword [esi]
invalid

Function at 0x6f32f0d0
Capabilities:
Encode data using xor

Disassembly:
sti
mov eax, 0xa278558d
xchg edx, eax
xchg ebx, eax
popal
invalid
Function at 0x6f3399dc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x6891d07b
add dword ds:[edi - 0x793b7140], edi
enter 0x4ae0, 0xffffffffffffffcc
jp 0x6f339976
xlatb
ret 0x49f7
leave
push es
inc ebp
bound esi, qword [ebx + 0x6f]
jg 0x6f3399ac
or eax, dword [edx + 0x6c27c915]
pop ds
push 0x27d3c0c3
shl dword [edi], cl
nop
push ds
xor eax, 0x656686f4
inc esi
sti
push edx
jl 0x6f3399ef
sbb byte [edx - 0x76], 0x6d
punpcklbw mm7, dword [edi]
loope 0x6f339a0c
inc ecx
inc ecx
invalid
invalid
Function at 0x407da0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 3
push esi
jl 0x407e34
mov eax, 0xaaaaaaab
push edi
mul ebp
mov edi, edx
mov esi, dword [esp + 0x14]
shr edi, 1
lea eax, [edi*4]
sub eax, edi
neg eax
add ebp, eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [esi]
add esi, 3
shr ecx, 2
inc eax
mov dl, byte [ecx + 0x45f588]
mov byte [eax - 1], dl
mov cl, byte [esi - 3]
xor edx, edx
and ecx, 3
mov dl, byte [esi - 2]
shl ecx, 4
shr edx, 4
or ecx, edx
inc eax
mov cl, byte [ecx + 0x45f588]
mov byte [eax - 1], cl
mov dl, byte [esi - 2]
xor ecx, ecx
and edx, 0xf
mov cl, byte [esi - 1]
shl edx, 2
shr ecx, 6
or edx, ecx
inc eax
mov dl, byte [edx + 0x45f588]
mov byte [eax - 1], dl
mov cl, byte [esi - 1]
and ecx, 0x3f
inc eax
dec edi
mov dl, byte [ecx + 0x45f588]
mov byte [eax - 1], dl
jne 0x407dd0
pop edi
jmp 0x407e3c
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test ebp, ebp
jle 0x407eb0
xor ecx, ecx
mov cl, byte [esi]
shr ecx, 2
inc eax
mov dl, byte [ecx + 0x45f588]
mov byte [eax - 1], dl
mov cl, byte [esi]
and cl, 3
shl cl, 4
cmp ebp, 1
mov byte [esp + 0x10], cl
jle 0x407e6e
mov dl, byte [esi + 1]
shr dl, 4
or cl, dl
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
inc eax
cmp ebp, 2
mov dl, byte [ecx + 0x45f588]
mov byte [eax - 1], dl
jge 0x407e95
mov cl, 0x3d
pop esi
mov byte [eax], cl
inc eax
pop ebp
mov byte [eax], cl
mov byte [eax + 1], 0
ret
mov cl, byte [esi + 1]
pop esi
and ecx, 0xf
inc eax
pop ebp
mov cl, byte [ecx*4 + 0x45f588]
mov byte [eax - 1], cl
mov byte [eax], 0x3d
mov byte [eax + 1], 0
ret
pop esi
mov byte [eax], 0
pop ebp
ret
Function at 0x409d60
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1c70
call fcn.0043ae00
push ebx
push esi
push edi
push 0x473ad0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x473aa0]
mov ecx, 0xff
mov byte [esp + 0x70], al
xor eax, eax
lea edi, [esp + 0x71]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
push 0x473bd8
lea ecx, [esp + 0x878]
push 0x400
push ecx
stosw word es:[edi], ax
push 0x473aa0
push str.RegCode
push str.System
stosb byte es:[edi], al
call esi
push 0x473bd8
lea edx, [esp + 0x474]
push 0x400
push edx
push 0x473aa0
push str.UserName
push str.System
call esi
lea eax, [esp + 0x470]
lea ecx, [esp + 0x874]
push eax
push ecx
call fcn.004095b0
mov dword [0x51f6c4], eax
mov al, 0x43
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov edi, 0x46e14c
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
mov byte [esp + 0xe], 0x50
mov byte [esp + 0xf], 0x72
mov byte [esp + 0x10], 0x6f
mov byte [esp + 0x11], 0x78
mov byte [esp + 0x12], 0x79
mov byte [esp + 0x13], 0
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0042fcd0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
mov al, byte [0x473aa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0xc78], al
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0xc79]
rep stosd dword es:[edi], eax
mov eax, dword [0x51f6c4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x409ee7
lea ecx, [esp + 0xc6c]
push ecx
push 0x7f
call fcn.0042e890
lea edx, [esp + 8]
lea eax, [esp + 0xc74]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.0043afc4
add esp, 0x14
call fcn.00451565
test eax, eax
je 0x409f36
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x409f36
jmp 0x409f27
lea eax, [esp + 0xc6c]
push eax
push 0x80
call fcn.0042e890
lea ecx, [esp + 8]
lea edx, [esp + 0xc74]
push ecx
lea eax, [esp + 0x70]
push edx
push eax
call fcn.0043afc4
add esp, 0x14
call fcn.00451565
test eax, eax
je 0x409f36
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x409f36
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x64]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x473ad0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0x1c70
ret

Function at 0x409f50
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x409f80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x40a260
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x16c
push esi
push edi
push 0x473ab0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x473aa0]
mov ecx, 0x41
mov byte [esp + 0x6c], al
xor eax, eax
lea edi, [esp + 0x6d]
push 0x5018f0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x70]
push str._slog.ini
push ecx
call fcn.0043afc4
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
push 0
push str.MailIndex
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov al, byte [0x473aa0]
mov byte [esp + 8], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, 0x3e7
stosb byte es:[edi], al
jl 0x40a2e8
push 1
lea ecx, [esp + 0xc]
push 0x46e150
push ecx
jmp 0x40a2f6
lea edx, [esi + 1]
lea eax, [esp + 8]
push edx
push 0x46e150
push eax
call fcn.0043afc4
add esp, 0xc
lea ecx, [esp + 0x6c]
lea edx, [esp + 8]
push ecx
push edx
push str.MailIndex
push str.System
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x473ab0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
add esp, 0x16c
ret
Function at 0x40ad20
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x508
push ebx
push esi
push edi
push 0x473bd8
call fcn.0042fcd0
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push 0x46f1bc
push str.System
call ebx
mov edi, 0x473ce0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
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]
lea ecx, [esp + 0x10]
push ecx
push 3
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0x114]
push str.English
push edx
call fcn.0043afc4
lea eax, [esp + 0x14]
push 0x46f03c
push eax
call fcn.0043fa60
add esp, 0x10
test eax, eax
jne 0x40adbd
lea ecx, [esp + 0x114]
push str.ChineseGB
push ecx
call fcn.0043afc4
add esp, 8
lea edx, [esp + 0xc]
push 0x46f1a4
push edx
call fcn.0043fa60
add esp, 8
test eax, eax
jne 0x40ade8
lea eax, [esp + 0x114]
push str.ChineseBig5
push eax
call fcn.0043afc4
add esp, 8
lea ecx, [esp + 0x114]
push 0x473bd8
push ecx
push 0x46f18c
push str.System
call ebx
pop edi
pop esi
pop ebx
add esp, 0x508
ret
Function at 0x40e440
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xb0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x2c], 2
jne 0x40e4be
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 4]
mov dword [esp + 0xc], 1
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0
push edx
push 0
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xb0
ret

Function at 0x40ebe0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
call edi
test eax, eax
jne 0x40ec48
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x40ec52
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x40ebd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40ec48
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret 4
Function at 0x410e30
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x10], eax
call edi
test eax, eax
je 0x410e62
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x410eac
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x410e20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x410ed6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret 4
Function at 0x410f90
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, 0x100c
call fcn.0043ae00
push ebx
mov ebx, dword [esp + 0x1014]
push ebp
push esi
lea eax, [ebx + ebx*2]
push edi
mov edi, ecx
push 8
lea eax, [eax + eax*4]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
lea esi, [eax + eax*4]
mov eax, dword [0x51a850]
shl esi, 2
push edx
mov ecx, edi
mov ebp, dword [esi + eax]
mov byte [esp + 0x1024], 0
push ebp
mov dword [esp + 0x20], 2
call fcn.004112c0
test eax, eax
je 0x41114f
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x18], 0
mov al, byte [esp + 0x18]
cmp al, 5
jne 0x41104f
mov eax, dword [0x4f77c0]
test eax, eax
je 0x41114f
movsx eax, byte [esp + 0x19]
cmp eax, 0xff
mov dword [esp + 0x10], eax
jg 0x41114f
lea ecx, [esp + 0x10]
push 8
lea edx, [esp + 0x1e]
push ecx
push edx
push ebp
mov ecx, edi
call fcn.004112c0
test eax, eax
je 0x41114f
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebx
call fcn.00412c90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 4
cmp al, 4
jne 0x41110d
mov eax, dword [0x4f77c0]
test eax, eax
je 0x41114f
mov eax, dword [0x4f77c4]
test eax, eax
je 0x41114f
cmp dword [0x4f679c], 1
jne 0x41108b
mov ecx, dword [0x51a850]
cmp dword [esi + ecx + 0x20], 0xffffffff
je 0x41114f
lea edx, [esp + 0x10]
push 8
lea eax, [esp + 0x1e]
push edx
push eax
push ebp
mov ecx, edi
mov dword [esp + 0x20], 7
call fcn.004112c0
test eax, eax
je 0x41114f
mov eax, dword [esp + 0x10]
mov cl, byte [esp + eax + 0x19]
test cl, cl
je 0x4110f3
lea ecx, [esp + 0x14]
push 8
lea edx, [esp + eax + 0x1e]
push ecx
push edx
push ebp
mov ecx, edi
mov dword [esp + 0x24], 1
call fcn.004112c0
test eax, eax
je 0x41114f
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x106
mov dword [esp + 0x10], eax
jg 0x41114f
mov cl, byte [esp + eax + 0x19]
test cl, cl
jne 0x4110bb
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push ebx
call fcn.00414490
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 4
cmp al, 1
jne 0x41114f
cmp dword [0x4f679c], 1
jne 0x411127
mov ecx, dword [0x51a850]
cmp dword [esi + ecx + 0x20], 0xffffffff
je 0x41114f
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edx, dword [0x51a850]
push 0
push eax
push ebp
push ebx
mov ecx, edi
mov dword [esi + edx + 4], eax
call fcn.0041fb50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 4
Function at 0x411190
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x118
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
jle 0x4112a3
mov edi, dword [esp + 0x128]
cmp edi, 0xffffffff
je 0x4112a3
mov eax, dword [0x46ed38]
mov dword [esp + 0x10], 1
cmp eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
je 0x41128b
mov ebx, dword [sym.imp.WS2_32.dll_select]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push 0x40
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 1
call ebx
test eax, eax
jne 0x411216
mov eax, dword [0x502140]
cmp eax, 0xffffffff
je 0x41122b
lea eax, [eax + eax*2]
inc esi
lea edx, [eax + eax*4]
shl edx, 2
cmp esi, edx
jg 0x41128b
jmp 0x41122b
xor esi, esi
test eax, eax
jl 0x41128b
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x411242
mov eax, dword [0x46ed38]
test eax, eax
jne 0x4111da
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x118
ret 0xc
mov ebx, dword [esp + 0x130]
mov esi, dword [esp + 0x12c]
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x28]
push 1
push edx
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x411283
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x118
ret 0xc
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x411299
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x118
ret 0xc
push ebx
push esi
call fcn.0040eee0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x118
ret 0xc
Function at 0x4112c0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, dword [esp + 0x13c]
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp eax, ebx
jle 0x41149f
mov ebp, dword [esp + 0x138]
cmp ebp, 0xffffffff
je 0x41149f
mov dword [esp + 0x20], eax
mov eax, dword [0x46ed38]
cmp eax, ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
je 0x411473
mov edi, dword [esp + 0x13c]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
push ebx
push ebx
push ecx
push 0x40
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jne 0x411366
mov eax, dword [0x502140]
cmp eax, 0xffffffff
je 0x4113ef
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax*2]
inc ecx
lea edx, [eax + eax*4]
mov dword [esp + 0x14], ecx
shl edx, 2
cmp ecx, edx
jg 0x411473
jmp 0x4113ef
cmp eax, ebx
mov dword [esp + 0x14], ebx
jl 0x411473
lea eax, [esp + 0x30]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4113ef
mov eax, dword [esp + 0x144]
mov ecx, dword [esi]
cmp eax, 8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
jne 0x41140a
push ebx
lea edx, [esp + 0x28]
push ebx
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x28]
push 1
push ecx
push ebp
mov dword [esp + 0x40], ebx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x41146f
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x41146f
mov edx, dword [esp + 0x1c]
push eax
push edx
call fcn.0040eee0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
add esp, 8
cmp ecx, eax
jge 0x411482
add edi, ecx
sub eax, ecx
mov dword [esi], eax
cmp dword [0x46ed38], ebx
jne 0x411315
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 0x10
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x28]
push 1
push edx
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x411434
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x411438
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x144], 2
je 0x411454
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.0040eee0
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi], eax
mov byte [eax + edi], bl
mov ecx, dword [esi]
xor eax, eax
pop edi
cmp ecx, ebx
pop esi
pop ebp
setne al
pop ebx
add esp, 0x124
ret 0x10
mov dword [esi], ebx
mov byte [edi], bl
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 0x10
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
mov eax, 1
mov byte [ecx + edi], bl
mov dword [esi], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 0x10
mov eax, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
mov byte [eax], bl
mov eax, 1
pop ebx
add esp, 0x124
ret 0x10
Function at 0x411550
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
push esi
push edi
push 1
push 0
push 0
push 0
push 2
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x20], eax
call edi
test eax, eax
je 0x411582
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x28]
mov word [esp + 0x14], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x14]
push 0x10
push ecx
push edx
mov word [esp + 0x22], ax
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x4115cc
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 4
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x20
push 0xffff
push edx
mov dword [esp + 0x20], 1
call edi
mov ecx, dword [esi + 0x20]
lea eax, [esp + 8]
push 4
push eax
push 0x1001
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x1000
call edi
mov eax, dword [esi + 0x20]
lea edx, [esp + 8]
push 4
push edx
push 0x1002
push 0xffff
push eax
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push esi
push 0x411540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret 4

Function at 0x411660
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x1218
call fcn.0043ae00
mov eax, dword [0x46ed38]
push ebx
push ebp
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
je 0x41176b
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [sym.imp.WS2_32.dll_recvfrom]
mov eax, dword [edi + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x34]
push 0
push edx
push 0x40
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 1
call ebx
test eax, eax
je 0x41175e
jl 0x411775
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x18], 0x10
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41175e
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [edi + 0x20]
push eax
push 0
lea ecx, [esp + 0x230]
push 0x1000
push ecx
push edx
call ebp
mov esi, eax
test esi, esi
jle 0x41175e
mov eax, dword [esp + 0x20]
push eax
call fcn.00414d20
add esp, 4
test eax, eax
je 0x41171c
push 0xa
jmp 0x411758
push 0x1000
lea ecx, [esp + 0x228]
push esi
push ecx
lea ecx, [esp + 0x13c]
call fcn.004256b0
test eax, eax
jle 0x411756
mov ecx, dword [edi + 0x20]
lea edx, [esp + 0x1c]
push 0x10
push edx
push 0
push eax
lea eax, [esp + 0x234]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x46ed38]
test eax, eax
jne 0x411699
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1218
ret