joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c7f0
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x1b4], 0
je 0x40c809
call fcn.0040cdf0
push 0
call dword [sym.imp.USER32.dll_GetDC]
push dword [esi + 0x68]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x64]
mov dword [ebp - 8], eax
call ebx
push 8
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x40c84e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [esi + 0x64]
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
mov dword [edi], eax
jmp 0x40c850
xor edi, edi
push edi
mov ecx, esi
call fcn.0040ce50
test edi, edi
je 0x40c86b
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push edi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov edi, dword [ebp - 8]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esi + 0x50]
sub edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
sub ecx, dword [esi + 0x44]
push edx
push ecx
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
push edi
push dword [ebp - 4]
call ebx
mov eax, dword [esi + 0x50]
sub eax, dword [esi + 0x48]
push 0xcc0020
push dword [esi + 0x48]
push dword [esi + 0x44]
push dword [esi + 0x64]
push eax
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x44]
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
push dword [ebp - 4]
call ebx
push eax
push dword [ebp - 4]
call ebx
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx + 0xc]
cmp eax, method.ui::Checkbox.virtual_12
jne 0x40c91f
call dword [edx + 0x10]
push dword [eax + 0x78]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c8fd
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call eax
jmp 0x40c8db
Function at 0x40ede0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x11
mov edi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [ebp + 8]
shr eax, 0xf
and al, 1
cmp ecx, 0x1b
je 0x40eee2
cmp ecx, 0x5a
je 0x40eece
cmp dword [edi + 0x148], 5
jne 0x40eec5
add ecx, 0xffffffdd
cmp ecx, 0xb
ja case.0x40ee23.41
jmp dword [ecx*4 + 0x40eef4]
xor eax, eax
mov dword [edi + 0x1a4], eax
jmp case.0x40ee23.41
mov ecx, dword [edi + 0x184]
mov eax, 0x38e38e39
sub ecx, dword [edi + 0x180]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
mov word [edi + 0x1a4], ax
mov eax, dword [edi + 0x184]
mov ax, word [eax - 0x14]
mov word [edi + 0x1a6], ax
jmp case.0x40ee23.41
lea ecx, [edi + 0x154]
call fcn.00416290
jmp case.0x40ee23.41
lea ecx, [edi + 0x154]
call fcn.004163b0
jmp case.0x40ee23.41
lea ecx, [edi + 0x154]
call fcn.00416480
jmp case.0x40ee23.41
lea ecx, [edi + 0x154]
call fcn.00416540
jmp case.0x40ee23.41
lea ecx, [edi + 0x154]
call fcn.00416640
lea eax, [edi + 0x44]
push eax
lea esi, [edi + 0x94]
push esi
push esi
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x2c]
xor al, al
pop edi
pop esi
pop ecx
pop ebp
ret 4
test al, al
je 0x40eee9
mov ecx, edi
call fcn.0040ef30
mov al, 1
pop edi
pop esi
pop ecx
pop ebp
ret 4
mov ecx, edi
call fcn.0040a610
pop edi
mov al, 1
pop esi
pop ecx
pop ebp
ret 4
Function at 0x410e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4b7108]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x410f7b
cmp byte [edi + 0x3d], 0
je 0x410f7b
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x410e8d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x38]
lea ebx, [esp + 0x14]
cmp ecx, 0x10
lea esi, [esp + 0x14]
cmovae ebx, edx
cmovae esi, edx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x410f8f
mov dword [esp + 0xc], esi
xor eax, eax
sub eax, 0
je 0x410f02
sub eax, 1
je 0x410f06
sub eax, 2
je 0x410f54
xor bl, bl
jmp 0x410f56
mov byte [edi + 0x3d], 0
cmp ecx, 0x10
lea eax, [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x410f39
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00473f6a
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov edx, dword [esp + 0x14]
cmp esi, eax
jne 0x410efe
cmp byte [edi + 0x3d], 0
je 0x410f54
test esi, esi
jne 0x410ec4
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.004014d0
jmp 0x410ebc
mov bl, 1
cmp ecx, 0x10
jb 0x410f67
inc ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00402e00
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x38]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [esp + 0x20]
call dword [eax + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
jmp 0x410eef
Function at 0x4202a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 4], ebx
lea ecx, [ebx + 8]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x420385
mov eax, dword [ebp + 8]
cmp eax, 0x100
je 0x4202cd
cmp eax, 0x101
jne 0x42033a
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
shr esi, 0xf
and esi, 1
push 0x11
add esi, esi
call edi
shr eax, 0xf
mov ebx, esi
or ebx, 4
and al, 1
push 0x12
cmove ebx, esi
call edi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
shr eax, 0xf
cmp dword [ebp + 8], 0x100
mov dword [ebp - 0x14], esi
setne cl
mov dword [ebp - 0x10], ecx
mov ecx, ebx
or ecx, 8
and al, 1
lea eax, [ebp - 0x14]
cmove ecx, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
lea ecx, [ebx + 0x8c]
call fcn.0041c650
test al, al
jne 0x42038a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
jmp 0x42033d
mov esi, dword [ebp + 0xc]
cmp eax, 0x100
jne 0x420361
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 0x64]
call eax
xor ecx, ecx
test al, al
setne cl
xor eax, eax
mov dword [ebx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x101
jne 0x420385
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 0x68]
call eax
xor ecx, ecx
test al, al
setne cl
xor eax, eax
mov dword [ebx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor ecx, ecx
mov dword [ebx + 4], ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4209b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x100]
mov byte [ebp - 1], cl
mov edx, dword [ebp + 0x10]
mov al, byte [edx + 0x101]
mov byte [ebp - 2], al
mov ecx, 1
imul edx, ecx, 0
add edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], 0
jmp 0x4209ee
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0xc]
jge 0x420a9e
movzx edx, byte [ebp - 1]
add edx, 1
and edx, 0x800000ff
jns 0x420a11
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
movzx eax, byte [ebp - 2]
add edx, eax
and edx, 0x800000ff
jns 0x420a35
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
add ecx, dword [ebp - 8]
push ecx
movzx edx, byte [ebp - 1]
add edx, dword [ebp - 8]
push edx
call fcn.00420ac0
add esp, 8
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp - 8]
movzx eax, byte [ecx + eax]
add edx, eax
and edx, 0x800000ff
jns 0x420a78
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 3], dl
movzx ecx, byte [ebp - 3]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov byte [eax], dl
jmp 0x4209e5
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx + 0x100], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
mov esp, ebp
pop ebp
ret

Function at 0x420e00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b7108]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x13], 0x59
mov byte [ebp - 0x12], 0x4d
mov byte [ebp - 0x11], 0x66
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], 0x25
mov byte [ebp - 0xe], 0x41
mov byte [ebp - 0xd], 0x75
mov byte [ebp - 0xc], 0x69
mov byte [ebp - 0xb], 0x33
mov byte [ebp - 0xa], 0x48
mov byte [ebp - 9], 0x55
mov byte [ebp - 8], 0x76
mov byte [ebp - 7], 0x26
mov byte [ebp - 6], 0x39
mov byte [ebp - 5], 0x35
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402d40
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
Function at 0x429320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x42934c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x42933d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x429380
cmp dword [esi + 8], 0
jne 0x429370
push 0x490d78
push dword [eax + 8]
call fcn.00473d1b
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x429370
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004769d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4293a2
mov eax, dword [esi + 8]
test eax, eax
je 0x42939c
push eax
call fcn.00474038
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x42c050
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x42c0ce
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x42c09e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00434bb0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0042bd40
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x8584], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42c2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x42c2d9
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x42c30f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x493650
push 2
push eax
call fcn.00473f6a
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00473f6a
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42c8a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4b7108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4baccc]
mov dword [ebp - 0xa8], 0x4020
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xac], 4
push esi
test eax, eax
jne 0x42c96a
push 0x9c
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00466930
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
mov dword [ebp - 0x9c], 6
push 3
push 2
push 0
push 0
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x42c95e
mov dword [0x4baccc], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
mov dword [0x4baccc], 1
jmp 0x42c96f
cmp eax, 2
je 0x42c9bd
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x42c9a3
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0xa8]
jg 0x42c9bd
push 4
lea eax, [ebp - 0xa8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
Function at 0x42cb60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b7108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x42cd2d
cmp byte [edi + 0x251], 0
push esi
jne 0x42cd23
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42cbeb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00434bb0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0042bd40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.00466930
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42cc54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00434bb0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0042bd40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
push eax
lea esi, [edi + 0xb8]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0042d210
add esp, 0xc
test al, al
jne 0x42cca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00434bb0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0042bd40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x11c]
push eax
lea eax, [edi + 0xec]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0042d210
add esp, 0xc
test al, al
jne 0x42cd23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00434bb0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0042bd40
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
push edi
call fcn.0042c7e0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
Function at 0x42d580
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b7108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x3ec], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42d5dd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0042bde0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3f0]
mov dword [ebp - 0x10], 1
call fcn.00433480
push dword [esi + 0x3f4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00433480
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x42d64d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0042bde0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044ee41
mov esp, ebp
pop ebp
ret

Function at 0x42d660
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x2e6]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42d6ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00434bb0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042bde0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0042bde0
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x433440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0041a260
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0047c21d

Function at 0x433f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x433f41
jmp dword [eax*4 + 0x433fb4]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret
Function at 0x434190
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x43430b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4342f7
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x434288
cmp dword [edi + 0x18], 0
je 0x434288
mov eax, dword [edi + 0x10]
test eax, eax
je 0x434288
cmp eax, 0x10
jb 0x434288
push 0x20
call dword [0x4b70e0]
mov esi, eax
add esp, 4
test esi, esi
je 0x4342ec
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x4b70e0]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4342db
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x434276
push eax
call dword [0x4b70ec]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4342c1
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x434285
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4341d0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4342a5
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4342f3
push ebx
call fcn.00434150
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x4b70e4]
push esi
call dword [0x4b70e4]
add esp, 8
jmp 0x434296
push esi
mov edi, 8
call dword [0x4b70e4]
add esp, 4
jmp 0x434296
mov edi, 8
jmp 0x434296
test ebx, ebx
jne 0x434303
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4353c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00475ad5
add esp, 0x18
test eax, eax
je 0x4353e2
cmp eax, 0xffffffff
jne 0x4353e4
xor eax, eax
pop ebp
ret
Function at 0x43cd20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b7108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x43cd6d
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0042bd40
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x43cd95
shr eax, 8
test al, al
jne 0x43cd95
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0042bd40
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.0044ee41
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x154]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43d608
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0042bd40
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.0043ceb0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret