joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64e0b7
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x6ed052
call fcn.006899cc
sub esp, 0x4c
push esi
mov esi, ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
sub eax, 1
je 0x64e0f1
sub eax, 1
je 0x64e0f1
sub eax, 0x76a
je 0x64e0f1
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0064d7a2
jmp 0x64e253
cmp dword [ebp + 8], 0x76c
push edi
jne 0x64e207
and dword [ebp - 0x40], 0
and dword [ebp - 0x30], 0
push 0xf
pop edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x40], 0
mov eax, dword [esi + 0x88]
mov byte [ebp - 4], 1
sub eax, 0
je 0x64e12e
sub eax, 1
jne 0x64e13d
push 9
push str.lrecBadAd
jmp 0x64e135
push 7
push str.ftBadAd
lea ecx, [ebp - 0x40]
call fcn.00414b60
and dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x18], 0
push 0xa
push str.BAdSendBtn
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], 0
call fcn.00414b60
push 0
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004a8bc5
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp eax, 0x10
jb 0x64e1a9
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x64e1a0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x14], edi
push eax
push eax
push eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x14
call fcn.00492aa8
lea ecx, [ebp - 0x58]
call fcn.0040fad0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x64e207
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x64e1fe
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push 0
call fcn.0064e5ec
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
jb 0x64e229
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x8c]
push eax
mov ecx, edi
call fcn.004482e2
cmp dword [edi + 0x14], 8
jb 0x64e23f
mov edi, dword [edi]
push edi
push dword [ebp + 8]
push dword [esi + 0x40]
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
lea ecx, [ebp + 0x10]
call fcn.0044823e
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x20
Function at 0x64e827
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x6ed0a2
call fcn.006899cc
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.005bc4b4
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x40], eax
xor eax, eax
mov dword [edi], 0x767f80
mov byte [edi + 0x38], cl
mov dword [edi + 0x3c], esi
mov dword [edi + 0x44], ecx
push 7
pop ebx
mov dword [edi + 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [edi + 0x58], ecx
mov dword [edi + 0x5c], ebx
mov word [edi + 0x48], ax
push dword [ebp + 0x18]
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 1
call fcn.00413860
push dword [ebp + 0x10]
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 2
call fcn.00449a5e
and dword [edi + 0xc0], 0
xor eax, eax
and dword [edi + 0xc4], 0
and dword [edi + 0xd4], 0
mov dword [edi + 0xd8], ebx
mov word [edi + 0xc4], ax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
or dword [edi + 0x10], 0x84
mov ecx, edi
push 1
push esi
push dword [ebp + 8]
mov byte [ebp - 4], 4
mov dword [edi + 0xdc], eax
mov byte [edi + 0xe0], bl
call fcn.005bc600
push 0x200
push ebx
push dword [edi + 4]
call fcn.005bc5bb
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x64e8ff
sub ecx, edx
push ecx
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
call fcn.00414b60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.005dc84b
mov ecx, dword [ebp - 0x14]
mov bl, al
cmp ecx, 0x10
jb 0x64e959
mov edx, dword [ebp - 0x28]
inc ecx
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0xc], edx
cmp ecx, 0x1000
jb 0x64e950
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0044810a
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call fcn.0068976d
pop ecx
pop ecx
test bl, bl
je 0x64e964
mov byte [edi + 0xe0], 1
cmp byte [ebp + 0x20], 0
je 0x64e977
cmp byte [edi + 0xe0], 0
jne 0x64e977
push 5
jmp 0x64e979
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x657b41
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
cmp byte [esi + 6], 0
je 0x657c70
push ebx
mov ebx, dword [esp + 0x5c]
lea eax, [esi + 0x1a8]
push edi
push 1
push eax
movzx eax, byte [0x7e5a0c]
mov ecx, ebx
mov edx, dword [ebx]
push eax
push 1
call dword [edx + 0x11c]
xor edi, edi
lea ecx, [ebx + 0x1ac]
mov dword [esp + 0xc], edi
cmp dword [ebx + 0x1bc], edi
jbe 0x657c6e
push ebp
lea ebp, [esi + 0x1a0]
mov dword [esp + 0x14], ebp
mov eax, dword [ebx + 0x1b8]
add eax, edi
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00445f03
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.0049f93e
lea ecx, [eax + 0xc7]
call fcn.004757fe
push eax
lea eax, [esp + 0x34]
mov ecx, ebp
push eax
call fcn.00656a25
lea ecx, [ebx + 0x1ac]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov ebp, dword [eax]
mov eax, dword [ebx + 0x1b8]
add eax, edi
mov dword [esp + 0x24], eax
call fcn.00445f03
mov ecx, eax
call fcn.0049f93e
mov ebx, eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [ebx + 0xc7]
call fcn.004757fe
mov esi, eax
lea edi, [ebp + 0x24]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
mov al, byte [ebx + 0x7d]
shr al, 5
xor al, byte [ebp + 0x39]
and al, 4
mov edi, dword [esp + 0x10]
xor byte [ebp + 0x39], al
mov cl, byte [ebx + 0x7c]
mov al, byte [ebp + 0x39]
and al, 0xfe
shr cl, 7
or cl, al
mov byte [ebp + 0x39], cl
mov al, byte [ebx + 0x7f]
shr al, 5
xor al, cl
and al, 2
xor al, cl
mov byte [ebp + 0x39], al
mov al, byte [ebx + 0x7c]
mov ebx, dword [esp + 0x64]
and al, 0x1f
inc edi
mov byte [ebp + 0x38], al
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], edi
lea ecx, [ebx + 0x1ac]
cmp edi, dword [ebx + 0x1bc]
jb 0x657b94
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x50
ret 4
Function at 0x659498
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x6edb9d
call fcn.006899cc
sub esp, 0x48
mov al, byte [ebp + 8]
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x54]
push esi
push edi
mov byte [ebx + 0x88], al
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea eax, [ebx + 0x94]
push eax
call fcn.0040fd80
push dword [ebx + 4]
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, eax
lea edi, [ebp - 0x24]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x20]
push 0x767
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x216
push esi
push edi
push 0
push 0
push dword [ebx + 0x84]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
push edi
mov ecx, ebx
call fcn.005bcd07
mov ecx, dword [ebx + 0x38]
push esi
push edi
push 0
push 0
call fcn.00597b1d
cmp byte [ebp + 8], 0
je 0x65954e
push 8
push str._prefs1
lea ecx, [ebp - 0x54]
call fcn.00414c90
mov ecx, dword [ebx + 0x38]
call fcn.00593892
xor eax, eax
mov dword [ebp - 0x28], 0xf
push eax
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
push 0x77a89f
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x3c], al
call fcn.00414b60
mov ecx, dword [ebx + 0x38]
lea eax, [ebp - 0x3c]
push 0
push 1
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
call fcn.005942f3
mov eax, dword [ebp - 0x28]
mov esi, 0x1000
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x6595c9
mov ecx, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, esi
jb 0x6595c0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0044810a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
cmp byte [ebp + 8], 0
jne 0x6595d5
cmp byte [ebp + 0xc], 0
je 0x659613
mov ecx, ebx
call fcn.005bce85
movzx eax, byte [ebx + 0x80]
push eax
push dword [ebx + 4]
push dword [ebx + 0x84]
call fcn.0064e5ec
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x38]
call fcn.005977e4
push 0
push dword [0x7f84a0]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x659645
mov ecx, dword [ebp - 0x54]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
cmp eax, esi
jb 0x65963c
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0044810a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x65b32b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, 0x821b74
mov dword [0x821b70], eax
mov eax, dword [ebp + 8]
cmp eax, ecx
je 0x65b34f
push dword [ebp + 0x10]
push dword [eax + 4]
push dword [eax]
call fcn.0058fd49
mov al, byte [ebp + 0x10]
mov byte [0x821b80], al
lea eax, [ebp + 0xc]
push eax
xor eax, eax
push eax
push 0x821b70
push 0x65bced
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x821b6c], eax
pop ebp
ret 0xc

Function at 0x65d3e4
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x1c], esi
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
sub ebx, dword [esp + 0x20]
push dword [esi + 0x3c]
sub edi, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_GetDC]
cmp dword [esi + 0x68], 0
mov ebp, eax
mov dword [esp + 0x10], ebp
jne 0x65d42d
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x68], eax
push dword [esi + 0x6c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push edi
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esi + 0x68]
mov dword [esi + 0x6c], eax
call ebp
push 0xcc0020
push 0
push 0
push dword [esp + 0x1c]
mov ebx, eax
push dword [esp + 0x24]
push edi
xor edi, edi
push edi
push edi
push dword [esi + 0x68]
call dword [sym.imp.GDI32.dll_BitBlt]
fld dword [0x76684c]
lea esi, [esp + 0x2c]
sub esp, 0x10
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
fstp dword [esp]
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.005bde31
push ebx
push dword [esi + 0x68]
call ebp
push dword [esp + 0x10]
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x65e77c
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 8], ecx
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
test ebp, ebp
je 0x65e85d
push esi
push edi
lea esi, [ebx + 0x1c]
lea edi, [esp + 0x20]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp + 1]
push edi
push eax
call fcn.0065e2f4
mov esi, dword [eax]
and dword [eax], 0
cmp dword [esp + 0x34], 0
mov dword [esp + 0x14], esi
je 0x65e7d1
push dword [esp + 0x34]
call fcn.00689a0e
pop ecx
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
push edi
push esi
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x1c]
cdq
sub eax, edx
sar edi, 1
push 1
push dword [ebx + 0x18]
mov esi, eax
sar esi, 1
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x10]
push dword [eax + 0xac]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [esp + 0x38]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebp
mov ebp, dword [esp + 0x18]
push ebp
push esi
push edi
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_TextOutW]
pop edi
pop esi
test ebp, ebp
je 0x65e85d
push ebp
call fcn.00689a0e
pop ecx
pop ebp
pop ebx
add esp, 0x20
ret 8

Function at 0x65fc26
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 5
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0x60]
push 0x254
push eax
mov eax, dword [esi + 0x64]
sub eax, dword [esi + 0x5c]
push eax
push dword [esi + 0x60]
push dword [esi + 0x5c]
push 0
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
ret
Function at 0x666de8
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x44
mov eax, 0x6ee90d
call fcn.006899cc
sub esp, 0x44
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x1c], edi
je 0x666faa
cmp dword [esi + 0x34], edi
je 0x666faa
push ebx
lea ebx, [esi + 0xc]
mov dword [ebp + 0x10], edi
push ebx
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
call fcn.00448193
push 0x6f68b8
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], edi
call fcn.004578e2
cmp dword [esi + 0x38], 8
lea ecx, [esi + 0x24]
jb 0x666e43
mov ecx, dword [esi + 0x24]
push dword [esi + 0x34]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00448284
xor eax, eax
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x3c], 7
mov word [ebp + 0x28], ax
mov byte [ebp - 4], 1
cmp dword [esi + 0x4c], edi
je 0x666ea8
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
jb 0x666e77
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x20]
lea ecx, [ebp + 0x28]
push eax
call fcn.00448307
push 0x6f5d68
lea ecx, [ebp + 0x28]
call fcn.004578e2
cmp dword [esi + 0x50], 8
lea ecx, [esi + 0x3c]
jb 0x666e9c
mov ecx, dword [esi + 0x3c]
push dword [esi + 0x4c]
push ecx
lea ecx, [ebp + 0x28]
call fcn.00448284
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
pop edi
push edi
push 0
push eax
call fcn.0068ccc0
or dword [esi + 0x54], 0xffffffff
add esp, 0xc
mov dword [ebp - 0x50], edi
push 8
pop edi
cmp dword [ebx + 0x14], edi
jb 0x666ed4
mov ebx, dword [ebx]
lea ecx, [ebp + 0x28]
cmp dword [ebp + 0x3c], edi
jb 0x666edf
mov ecx, dword [ebp + 0x28]
lea eax, [ebp + 0x10]
cmp dword [ebp + 0x24], edi
jb 0x666eea
mov eax, dword [ebp + 0x10]
lea edx, [ebp]
push edx
lea edx, [ebp - 0x50]
push edx
push ebx
xor ebx, ebx
push ebx
push 0x4008
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x666f1e
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x666f1e
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x3c]
mov esi, dword [esi + 0x54]
cmp eax, edi
jb 0x666f5b
mov ecx, dword [ebp + 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x40], ecx
cmp eax, 0x1000
jb 0x666f52
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x40]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x40]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
xor eax, eax
mov dword [ebp + 0x38], ebx
mov word [ebp + 0x28], ax
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x3c], 7
pop ebx
cmp eax, edi
jb 0x666fa6
mov ecx, dword [ebp + 0x10]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], ecx
cmp eax, 0x1000
jb 0x666f9d
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x44]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov eax, esi
jmp 0x666fad
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add ebp, 0x48
leave
ret
Function at 0x66821f
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
push 0
mov esi, ecx
lea ecx, [ebp - 0x28]
push 0
call fcn.004df668
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, dword [ebp + 8]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x668256
push 0xfffffffffffffffe
pop eax
jmp 0x6682eb
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push edi
call fcn.006681ea
test eax, eax
je 0x66827f
push 0xa
push 0x56c
call fcn.005ba91d
push eax
mov ecx, esi
call fcn.00668ab8
or eax, 0xffffffff
jmp 0x6682eb
lea ecx, [ebp - 0x14]
call fcn.004df6ce
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.00668419
test eax, eax
jne 0x6682eb
lea ecx, [ebp - 0x14]
call fcn.004788c6
test al, al
je 0x6682b1
push 0xa
push 0x584
jmp 0x66826d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0048ba49
lea eax, [ebp - 0x14]
push eax
push 0x704134
lea eax, [ebp - 0x38]
push 0x10
push eax
call fcn.00474b25
add esp, 0x10
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x14]
push eax
push dword [edi]
call fcn.006682f1
pop edi
pop esi
leave
ret 0x10

Function at 0x6682f1
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 0x6ee99c
call fcn.006899cc
sub esp, 0x8c
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x8004667e
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x668329
or eax, eax
jmp 0x66840a
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0048ba49
mov byte [ebp - 0xd], 1
call fcn.00489fdc
push dword [ebp - 0x18]
and dword [ebp - 4], 0
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x66839e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
je 0x668396
cmp esi, 0x2734
je 0x668396
push esi
push 0x4a4
call fcn.005ba91d
push eax
mov ecx, ebx
call fcn.006689ea
mov dword [ebp - 4], 1
jmp 0x668402
push dword [ebp + 0xc]
call fcn.00487ff9
mov dword [ebp - 4], 2
call fcn.0048a01d
push dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push dword [ebp + 8]
call fcn.006687e6
mov esi, eax
mov byte [ebp + 0x13], 1
call fcn.00489fdc
mov dword [ebp - 4], 3
test esi, esi
je 0x6683f3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x57c
call fcn.005ba91d
push eax
mov ecx, ebx
call fcn.006689ea
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp + 0xc]
call fcn.00489c1a
mov dword [ebp - 4], 4
call fcn.0048a01d
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x6684de
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
and dword [ebp + 0x10], 0
push edi
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 4], eax
jmp 0x66853f
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.00668764
test eax, eax
jne 0x668543
push eax
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x668556
mov eax, dword [ebp + 0xc]
sub esi, eax
add dword [ebp - 4], eax
add edi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x668552
test eax, eax
je 0x668552
test esi, esi
jg 0x6684fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
jmp 0x66854b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4a5
call fcn.005ba91d
push eax
mov ecx, ebx
call fcn.006689ea
neg esi
mov eax, esi
jmp 0x66854b

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov dword [ebp - 8], esi
xor edi, edi
mov dword [ebp - 4], eax
jmp 0x6688be
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 8]
call fcn.006687e6
test eax, eax
jne 0x6688c2
push eax
push eax
push eax
lea eax, [ebp + 0x10]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x6688d5
mov eax, dword [ebp + 0x10]
sub esi, eax
add dword [ebp - 4], eax
add edi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x6688d1
test esi, esi
jg 0x668882
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, edi
jmp 0x6688ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x4a6
call fcn.005ba91d
push eax
mov ecx, ebx
call fcn.006689ea
neg esi
mov eax, esi
jmp 0x6688ca