joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c340
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x213c
call fcn.10036fa0
mov eax, dword [0x1005d330]
push ebx
push esi
push edi
mov dword [esp + 0x2144], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0x41
lea edi, [esp + 0x29]
push 0x100674e0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push 0x100506fc
push eax
call fcn.10036e11
add esp, 0xc
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x18]
xor eax, eax
mov byte [esp + 0x1138], 0
mov ecx, 0x400
lea edi, [esp + 0x1139]
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x1e]
movzx ecx, word [esp + 0x1a]
movzx edx, word [esp + 0x18]
push eax
push ecx
push edx
lea eax, [esp + 0x1144]
push str._04d_02d_02d
push eax
call fcn.10036e11
lea ecx, [esp + 0x114c]
push ecx
push 0x100674e0
lea edx, [esp + 0x44]
push str._sdata_s.txt
push edx
call fcn.10036e11
lea eax, [esp + 0x4c]
push 0x10050c94
push eax
call fcn.10037995
mov ebx, eax
add esp, 0x2c
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x1000c539
xor eax, eax
mov byte [esp + 0x130], 0
mov ecx, 0x400
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x130]
push str.username_treceived_byte__tsent_byte__r_n
push ecx
call fcn.10036e11
lea eax, [esp + 0x138]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000c451
push ebx
sub eax, edx
push 1
push eax
lea edx, [esp + 0x13c]
push edx
call fcn.100385ee
add esp, 0x10
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x52c]
test eax, eax
je 0x1000c497
mov ecx, dword [esi + 0x530]
sub ecx, eax
mov eax, 0x2f149903
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jge 0x1000c530
mov eax, dword [esi + 0x52c]
add eax, edi
push 0x8067
push eax
mov ecx, esi
call fcn.1000c230
mov ebx, eax
mov eax, dword [esi + 0x52c]
add eax, edi
push 0x8068
push eax
mov ecx, esi
call fcn.1000c230
mov ecx, dword [esi + 0x52c]
push eax
push ebx
add ecx, edi
push ecx
lea eax, [esp + 0x13c]
push 0x10050c58
push eax
call fcn.10036e11
lea eax, [esp + 0x144]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000c4f7
sub eax, ecx
mov ecx, dword [esp + 0x14]
push ecx
push 1
push eax
lea edx, [esp + 0x13c]
push edx
call fcn.100385ee
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
add esp, 0x10
inc ecx
mov dword [esp + 0x10], ecx
add edi, 0x2b8
jmp 0x1000c474
push ebx
call fcn.10037538
add esp, 4
mov ecx, dword [esp + 0x2144]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e0a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x408
mov eax, dword [0x1005d330]
mov dword [esp + 0x404], eax
lea eax, [esp]
push eax
mov ecx, 0x1005ff80
call fcn.10004870
mov ecx, dword [eax]
push ecx
push 0x400
lea edx, [esp + 0xc]
push edx
push str.English
push str.Language
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000e0ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp]
push eax
mov ecx, 0x1005ff80
call fcn.1000e030
mov edx, dword [eax]
mov eax, dword [esp + 0x40c]
lea ecx, [esp + 4]
push ecx
push edx
push str._sLanguage_s.ini
push eax
call fcn.10036e11
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000e148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x404]
call fcn.10036c09
add esp, 0x408
ret

Function at 0x1000e160
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2124
call fcn.10036fa0
mov eax, dword [0x1005d330]
mov dword [esp + 0x2120], eax
push edi
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x41
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call fcn.1000e0a0
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x114]
add esp, 4
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000e1c0
push 0x10050d74
lea ecx, [esp + 0x114]
push 0x10050d70
push ecx
call fcn.10001490
push 0x10050d6c
lea edx, [esp + 0x120]
push 0x10050d68
push edx
call fcn.10001490
add esp, 0x18
xor eax, eax
mov byte [esp + 0x1118], 0
mov ecx, 0x400
lea edi, [esp + 0x1119]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x1000
lea ecx, [esp + 0x1120]
push ecx
lea edx, [esp + 0x11c]
push edx
mov eax, edx
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x1118]
test al, al
je 0x1000e263
xor eax, eax
jmp 0x1000e250
mov cl, byte [esp + eax + 0x1118]
mov byte [esp + eax + 0x110], cl
inc eax
test cl, cl
jne 0x1000e250
push 0x10050d70
lea ecx, [esp + 0x114]
push 0x10050d74
push ecx
call fcn.10001490
push 0x10050d68
lea edx, [esp + 0x120]
push 0x10050d6c
push edx
call fcn.10001490
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x128]
mov ecx, eax
add esp, 0x18
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1000e2a2
mov ecx, dword [esp + 0x2124]
call fcn.10036c09
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000e2c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2124
call fcn.10036fa0
mov eax, dword [0x1005d330]
push ebx
push esi
mov dword [esp + 0x2128], eax
push edi
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x10], bl
mov ecx, 0x41
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], ebx
call fcn.1000e0a0
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], bl
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x11c]
add esp, 4
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1000e326
push 0x10050d74
lea ecx, [esp + 0x11c]
push 0x10050d70
push ecx
call fcn.10001490
push 0x10050d6c
lea edx, [esp + 0x128]
push 0x10050d68
push edx
call fcn.10001490
add esp, 0x18
xor eax, eax
mov byte [esp + 0x1120], bl
mov ecx, 0x400
lea edi, [esp + 0x1121]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x1128]
push ecx
lea edx, [esp + 0x124]
push edx
mov eax, edx
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x1120], bl
je 0x1000e3c3
xor eax, eax
jmp 0x1000e3b0
mov cl, byte [esp + eax + 0x1120]
mov byte [esp + eax + 0x118], cl
inc eax
cmp cl, bl
jne 0x1000e3b0
push 0x10050d70
lea ecx, [esp + 0x11c]
push 0x10050d74
push ecx
call fcn.10001490
push 0x10050d68
lea edx, [esp + 0x128]
push 0x10050d6c
push edx
call fcn.10001490
mov esi, dword [ebp + 8]
add esp, 0x18
lea eax, [esp + 0x118]
push eax
mov ecx, esi
call fcn.100047c0
mov ecx, dword [esp + 0x212c]
mov eax, esi
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1004dfa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.1000c990
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.10008e60
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x10013d92
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10016e30
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10016e91
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x10016e73
cmp eax, 2
jne 0x10016e83
test esi, esi
mov eax, dword [esp + 0x14]
je 0x10016e8d
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x10016e8d
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x10016ea0
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 8]
mov edx, dword [ebp + 8]
mov eax, edx
shr eax, 0x16
lea eax, [ecx + eax*4]
mov ecx, eax
and ecx, 0xff
cmp ecx, 1
jae 0x10016ec5
xor eax, eax
pop ebp
ret
cmp ecx, 0x80
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
push edi
mov edi, dword [esp + 0x1c]
jae 0x10016f0a
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push edi
call ebx
mov edx, dword [ebp + 8]
shr edx, 0xc
and edx, 0x3ff
push eax
lea esi, [eax + edx*4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and esi, 0xfffff000
jmp 0x10016f19
and eax, 0xfffff000
and edx, 0x3ff000
add eax, edx
mov esi, eax
push 0x1000
push esi
push 0
push 4
push edi
call ebx
test eax, eax
je 0x10016f59
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
and esi, 0xfff
add esi, eax
mov edi, esi
sub edi, ecx
mov ebp, 0x70
mov dl, byte [edi + ecx]
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x10016f42
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
Function at 0x10017010
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x50
mov eax, dword [0x1005d330]
push ebx
push ebp
push esi
push edi
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
xor edx, edx
mov ecx, 3
div ecx
mov ecx, dword [esp + 0x6c]
xor ebp, ebp
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x68], ebp
cmp eax, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jbe 0x100170de
mov edx, dword [esp + 0x70]
add edx, 0xfffffffc
mov dword [esp + 0x70], edx
mov bl, byte [esi]
mov al, byte [esi + 1]
movzx edi, bl
inc esi
mov dl, byte [esi + 1]
inc esi
mov ebx, edi
shr ebx, 2
mov bl, byte [esp + ebx + 0x18]
mov byte [ecx], bl
movzx ebx, al
shl edi, 4
mov eax, ebx
shr eax, 4
or eax, edi
and eax, 0x3f
mov al, byte [esp + eax + 0x18]
movzx edi, dl
inc esi
mov byte [ecx + 1], al
inc ecx
mov edx, edi
shr edx, 6
lea eax, [ebx*4]
or edx, eax
and edx, 0x3f
mov dl, byte [esp + edx + 0x18]
inc ecx
and edi, 0x3f
mov al, byte [esp + edi + 0x18]
mov byte [ecx], dl
inc ecx
mov byte [ecx], al
mov eax, dword [esp + 0x70]
add ebp, 4
inc ecx
cmp ebp, eax
jae 0x10017142
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x14]
inc eax
cmp eax, edx
mov dword [esp + 0x68], eax
jb 0x10017067
mov edx, dword [esp + 0x10]
cmp edx, 1
jne 0x10017104
movzx eax, byte [esi]
mov edx, eax
shr edx, 2
mov dl, byte [esp + edx + 0x18]
and eax, 3
mov byte [ecx], dl
shl eax, 4
mov al, byte [esp + eax + 0x18]
inc ecx
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
jmp 0x1001713d
cmp edx, 2
jne 0x10017142
mov al, byte [esi]
mov dl, byte [esi + 1]
movzx eax, al
mov esi, eax
shr esi, 2
mov bl, byte [esp + esi + 0x18]
movzx edx, dl
and eax, 3
mov esi, edx
shl eax, 4
shr esi, 4
mov byte [ecx], bl
or esi, eax
mov al, byte [esp + esi + 0x18]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0xf
mov dl, byte [esp + edx*4 + 0x18]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
pop esi
mov byte [ecx], 0
mov ecx, dword [esp + 0x54]
pop ebp
pop ebx
call fcn.10036c09
add esp, 0x50
ret 0x10

Function at 0x10017160
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
mov eax, dword [esp + 0x218]
push esi
mov esi, dword [esp + 0x218]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x114]
push edx
mov dword [esp + 0xc], eax
push 0
lea eax, [esp + 0x18]
push eax
push 0x40
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x100171c9
pop esi
add esp, 0x210
ret 8
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100171e7
mov eax, 1
pop esi
add esp, 0x210
ret 8
lea edx, [esp + 0x110]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
or eax, 0xffffffff
pop esi
add esp, 0x210
ret 8
Function at 0x10017210
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x1c]
cmp ebx, 3
mov dword [esp + 4], ecx
jae 0x1001722a
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x24]
mov byte [esi], 0
mov byte [esi + ebx - 3], 0xd
mov byte [esi + ebx - 2], 0xa
mov byte [esi + ebx - 1], 0
sub ebx, 3
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ebx
mov ebp, 0
mov edi, ebx
jns 0x10017269
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
test ebx, ebx
jle 0x1001733a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x110]
test ecx, ecx
je 0x1001733a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, 0xea60
ja 0x1001725d
mov ecx, dword [esp + 0x20]
push 1
push ecx
mov ecx, dword [esp + 0x18]
call fcn.10017160
test eax, eax
je 0x10017332
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x20]
sub edi, ebp
push 2
sub esi, edi
push edi
add esi, ebx
push esi
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jle 0x1001725d
push 0x10050d68
push esi
call fcn.10036fe0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10017355
push 0x10050d70
push esi
call fcn.10036fe0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10017355
test ebp, ebp
mov edi, ebp
jle 0x10017326
mov ecx, dword [esp + 0x20]
sub edi, eax
push 0
mov eax, esi
sub eax, edi
push edi
add eax, ebp
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1001725d
cmp eax, edi
jl 0x10017303
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
cmp ebp, edi
jl 0x10017271
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x110]
pop edi
pop esi
xor eax, eax
test edx, edx
pop ebp
setne al
pop ebx
add esp, 0xc
ret 0xc
mov edi, ebx
sub edi, esi
inc edi
xor eax, eax
test edi, edi
jle 0x10017382
sub edi, eax
mov eax, dword [esp + 0x20]
push 0
mov edx, ebx
sub edx, edi
push edi
inc edx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1001725d
cmp eax, edi
jl 0x10017360
mov edi, dword [esp + 0x24]
mov eax, edi
mov byte [ebx], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10017390
sub eax, edx
test eax, eax
jle 0x100173b5
cmp byte [eax + edi - 1], 0xd
jne 0x100173a9
mov byte [eax + edi - 1], 0
cmp byte [eax + edi - 1], 0xa
jne 0x100173b5
mov byte [eax + edi - 1], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100173b6
mov cx, word [0x100506d0]
mov word [edi], cx
mov dl, byte [0x100506d2]
mov byte [edi + 2], dl
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0xc
Function at 0x10017520
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
cmp dword [esp + 0x10], 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
jne 0x100175c1
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
test edi, edi
jle 0x100175b8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x110]
test eax, eax
je 0x100175a1
mov ebx, dword [esp + 0x14]
cmp esi, edi
jge 0x100175a1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x20]
cmp eax, 0xea60
ja 0x100175ae
push 1
push ebx
mov ecx, ebp
call fcn.10017160
test eax, eax
je 0x10017597
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x18]
push 0
sub edx, edi
push edi
add edx, eax
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x100175b8
mov eax, dword [ebp + 0x110]
test eax, eax
jne 0x10017555
mov eax, dword [ebp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, dword [esp + 0x14]
mov ebx, eax
nop
mov eax, dword [ebp + 0x110]
test eax, eax
je 0x100175b8
call esi
sub eax, ebx
cmp eax, 0xea60
ja 0x1001761e
push 1
push edi
mov ecx, ebp
call fcn.10017160
test eax, eax
je 0x100175d0
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x10017631
pop edi
mov dword [esi], 0
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [ecx], 0xffffffff
xor eax, eax
pop ebx
ret 0x10
pop edi
mov dword [esi], eax
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10

Function at 0x10017640
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
ret 0xc
Function at 0x100176b0
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1130
call fcn.10036fa0
mov eax, dword [0x1005d330]
push esi
push edi
mov dword [esp + 0x1134], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 2
jne 0x10017892
mov edi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x110]
test eax, eax
je 0x10017892
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 1
xor eax, eax
cmp dword [esp + eax*4 + 0x24], edi
je 0x10017742
inc eax
cmp eax, 1
jb 0x10017736
cmp eax, 1
jne 0x10017753
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], 2
lea eax, [esp + 0x18]
push eax
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jne 0x100177b0
mov eax, dword [0x1005c168]
test eax, eax
jle 0x10017886
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
mov edx, dword [0x1005c168]
imul edx, edx, 0x3e8
cmp eax, edx
jbe 0x10017886
xor eax, eax
mov ecx, dword [esp + 0x1134]
call fcn.10036c09
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test esi, esi
mov dword [esp + 0x14], eax
jl 0x100178ab
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x20]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10017820
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x130]
push edx
push esi
mov dword [esp + 0x1c], 0x1000
call fcn.10017520
test eax, eax
je 0x1001779a
mov eax, dword [0x1005f39c]
test eax, eax
mov esi, dword [esp + 0xc]
je 0x10017812
mov ecx, dword [ebp + 8]
push 1
push esi
push ecx
call eax
add esp, 0xc
push 0
push esi
lea edx, [esp + 0x130]
push edx
push edi
jmp 0x10017880
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10017886
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x130]
push edx
push edi
mov dword [esp + 0x1c], 0x1000
call fcn.10017520
test eax, eax
je 0x1001779a
mov eax, dword [0x1005f39c]
test eax, eax
mov esi, dword [esp + 0xc]
je 0x10017871
mov ecx, dword [ebp + 8]
push 0
push esi
push ecx
call eax
add esp, 0xc
mov eax, dword [ebp + 0xc]
push 0
push esi
lea edx, [esp + 0x130]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp + 8]
cmp dword [ecx], 2
je 0x10017713
mov eax, 0x10
mov ecx, dword [esp + 0x1134]
call fcn.10036c09
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x1134]
mov eax, 0xa
call fcn.10036c09
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100178d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x110]
push edi
xor edi, edi
cmp eax, edi
je 0x10017991
mov eax, dword [esi + 0x104]
cmp eax, 0xffffffff
mov dword [esi + 0x110], edi
je 0x10017906
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x104], 0xffffffff
mov eax, dword [esi + 0x10c]
cmp eax, edi
je 0x1001794d
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001792e
mov eax, dword [esi + 0x10c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x10c]
cmp eax, edi
je 0x10017991
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], edi
pop edi
mov eax, 1
pop esi
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, 2
lea ebx, [ebx]
mov ecx, dword [0x1007c6c4]
xor edx, edx
test ecx, ecx
jle 0x1001798f
mov eax, 0x1007c6e0
cmp dword [eax - 0x18], ebp
jne 0x1001797b
cmp esi, dword [eax]
jne 0x1001797b
inc edx
add eax, 0x1c
dec ecx
jne 0x10017971
test edx, edx
je 0x1001798f
push 0xa
call ebx
inc edi
cmp edi, 0x64
jl 0x10017960
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
ret