joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51c0f2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056e987
leave
ret

Function at 0x51d476
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x51d499
or esi, 1
push 2
call edi
test ax, ax
jns 0x51d4a5
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x51d4b1
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x51d4bd
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x5221ed
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x522219
cmp esi, dword [edi + 0x108]
je 0x522219
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x108]
cmp esi, eax
je 0x5222ff
test eax, eax
je 0x522280
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x17
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x14c]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0x108]
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
and dword [edi + 0x108], 0
test esi, esi
je 0x5222ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x5222ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x5222ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
test al, al
je 0x5222ff
xorps xmm0, xmm0
mov dword [edi + 0x108], esi
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x14c]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0x108]
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
leave
ret 4
Function at 0x52a525
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jmp 0x52a5d4
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x52a5d8
cmp dword [ebp - 0x1c], 0x10
jne 0x52a5a3
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x52a5a3
mov eax, dword [ebp - 0x18]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
call sym.yuntun.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::TranslateMessage_struct_tagMSG__const_
pop ecx
test al, al
jne 0x52a5c5
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x52a5d8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x52a570
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x52a5f6
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x52a5fb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x52a62d
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x52b763
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x120]
mov edi, dword [ebp + 8]
test al, al
jne 0x52b79c
mov eax, dword [edi]
sub eax, 9
cmp eax, 0xc
ja 0x52b79c
mov ecx, dword [esi + 0x568]
push edi
test ecx, ecx
je 0x52b86f
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x52b876
mov ecx, dword [esi + 0x568]
test ecx, ecx
je 0x52b7ff
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax + 0x458], 0
je 0x52b7ff
cmp dword [edi], 0xf
jne 0x52b7ff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
test al, al
je 0x52b876
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
lea esi, [esi + 0x558]
mov edi, dword [esi]
and ax, cx
mov ecx, esi
je 0x52b7f8
call dword [edi + 0x10]
neg al
mov ecx, esi
sbb al, al
inc al
push eax
call dword [edi + 0x18]
jmp 0x52b876
push 1
call dword [edi + 0x14]
jmp 0x52b876
cmp dword [edi], 0xd
je 0x52b7b9
cmp dword [edi], 0xe
jne 0x52b82c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
test al, al
je 0x52b876
mov ecx, dword [esi + 0x44]
xor eax, eax
push eax
push eax
push eax
push str.itemclick
push esi
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
jmp 0x52b876
cmp dword [edi], 9
je 0x52b876
cmp dword [edi], 0xb
jne 0x52b854
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
test al, al
je 0x52b876
or dword [esi + 0x564], 8
mov ecx, esi
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CListContainerElementUI::Invalidate_void_
jmp 0x52b876
cmp dword [edi], 0xa
jne 0x52b86e
mov eax, dword [esi + 0x564]
test al, 8
je 0x52b876
and eax, 0xfffffff7
mov dword [esi + 0x564], eax
jmp 0x52b84b
push edi
mov ecx, esi
call sym.yuntun.exe_public_virtual:_void___thiscall_DuiLib::CListElementUI::DoEvent_struct_DuiLib::tagTEventUI__
pop edi
pop esi
pop ebp
ret 4
Function at 0x539ac7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x6c4], edi
je 0x539b31
cmp dword [ebp + 8], 0x100
jne 0x539b20
cmp word [ebp + 0xc], 0xd
jne 0x539b20
cmp byte [esi + 0x6ca], 0
je 0x539b07
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x539b20
cmp byte [esi + 0x6cb], 0
jne 0x539b20
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x539b1c
push edi
push edi
push edi
push str.return
push esi
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x539b34
mov eax, dword [esi + 0x6c4]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x53eb53
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.yuntun.exe_public_virtual:_void___thiscall_DuiLib::CListUI::DoEvent_struct_DuiLib::tagTEventUI__
Function at 0x5515eb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x551675
cmp dword [esi + 0x10], 0
je 0x551675
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0056fde0
mov ebx, esp
test ebx, ebx
je 0x551675
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1d4
call fcn.00515ceb
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
xor ecx, ecx
push ecx
push ecx
push ecx
push str.textchanged
push dword [esi + 0x10]
mov ecx, eax
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call sym.yuntun.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::IsLayered_void_
test al, al
je 0x551675
mov ecx, dword [esi + 0x10]
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CControlUI::Invalidate_void_
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e987
leave
ret 0x10
Function at 0x557199
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x557237
push esi
mov esi, 0xff
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
pop esi
test eax, eax
je 0x557237
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.005868f0
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
jmp 0x557239
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e987
leave
ret

Function at 0x55892e
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x649ffc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0x210], ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, dword [ebp + 0xc]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x55897c
cmp esi, 0x28
jbe 0x558976
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x55897c
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00586790
add esp, 0xc
shl edi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e987
leave
ret
Function at 0x558c53
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x5bef26
call fcn.0056fe77
mov esi, ecx
mov dword [ebp - 0x98], esi
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
test eax, eax
je 0x558d70
lea eax, [ebp - 0xa8]
push eax
call sym.yuntun.exe_public:_struct_tagRECT___thiscall_DuiLib::CHotKeyWnd::CalPos_void_
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call sym.yuntun.exe_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
xor ecx, ecx
lea esi, [ebp - 0xa8]
push ecx
sub esp, 0x10
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
push 0x40000080
push ecx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x98]
mov ecx, edi
call sym.yuntun.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x558d70
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [edi + 0x10]
mov esi, eax
call sym.yuntun.exe_public:_int___thiscall_DuiLib::CLabelUI::GetFont_void_const
push eax
mov ecx, esi
call sym.yuntun.exe_public:_struct_DuiLib::tagTFontInfo____thiscall_DuiLib::CPaintManagerUI::GetFontInfo_int_
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
movzx eax, word [ecx + 0x7ae]
push eax
movzx eax, word [ecx + 0x7ac]
mov ecx, edi
push eax
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CHotKeyWnd::SetHotKey_unsigned_short_int__unsigned_short_int_
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call sym.yuntun.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CHotKeyWnd::GetHotKeyName_void_
mov ecx, dword [edi + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1d4
push eax
call fcn.00515c5d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.yuntun.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x118]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.0056fe21
ret 4
Function at 0x5678f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x56791e
cmp eax, edi
jge 0x567912
push esi
call fcn.005632c6
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x567941
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x567927
mov dword [esi + 8], edx
jmp 0x567956
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x56794c
xor dl, dl
jmp 0x567951
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x567941
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x567990
push str.zlib_corrupt
call fcn.005631f1
add esp, 4
jmp 0x5679d0
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x5679a0
push str.read_past_buffer
jmp 0x567986
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x5679ba
push edi
push ecx
push esi
call fcn.0056a471
add esp, 0xc
test eax, eax
je 0x5679d0
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.005868f0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x5723df
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5a8d39
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a8bb8

Function at 0x5add42
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ada02
Function at 0x421da0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x6c6f60]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x420]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x421e2f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.005e2940
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x421e6a
push str.Received_too_short_packet
push ebx
call fcn.0040c610
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c950e
add esp, 0x88
ret
mov eax, edi
call fcn.00420cb0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x421e83
jmp dword [eax*4 + 0x421f6c]
cmp edx, 4
jle case.0x421e83.4
mov eax, edi
call fcn.00420cc0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x421e83.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.0040cad0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x421ed6
mov ecx, 5
mov eax, esi
call fcn.00421d20
mov eax, edi
jmp 0x421e51
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
mov ecx, dword [ebx + 0x70]
adc dword [ebx + 0x74], edx
mov eax, dword [ebx + 0x74]
push eax
push ecx
push ebx
call fcn.00415660
jmp 0x421f42
mov eax, edi
call fcn.00420cc0
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x625380
push ebx
mov dword [esi + 8], edx
call fcn.0040c580
jmp 0x421f42
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.00420d50
add esp, 0xc
test eax, eax
je case.0x421e83.4
jmp 0x421e51
push str.Internal_error:_Unexpected_packet
push 0x6a66a4
push ebx
call fcn.0040c610
add esp, 0xc
push ebp
call fcn.00415740
add esp, 4
test eax, eax
je 0x421e4f
mov ecx, 5
mov eax, esi
call fcn.00421d20
mov eax, 0x2a
jmp 0x421e51

Function at 0x4237f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6c6f60]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x423825
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0040c610
add esp, 0xc
jmp 0x42385e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x423850
shr eax, 8
test al, al
jne 0x423850
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005c950e
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0040c610
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.005c950e
add esp, 0x194
ret
Function at 0x4356a0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x4356d2
push 0x2e
push esi
call fcn.005e48f0
add esp, 8
test eax, eax
je 0x4356d0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x4370a0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4370c2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4370b6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4370f2
cmp dword [esi + 8], 0
jne 0x4370e5
mov ecx, dword [eax + 8]
push 0x6a6708
push ecx
call fcn.005ec2cc
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4370e5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.005f6105
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x437114
mov eax, dword [esi + 8]
test eax, eax
je 0x43710e
push eax
call fcn.005e7e28
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x448670
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov dword [ebp - 0x218], eax
test edi, edi
je 0x448792
lea eax, [ebp - 0x210]
push eax
push 0x5faaec
push 1
push 0
push 0x5faddc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x448792
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5fae3c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x448786
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
test esi, esi
jne 0x4486fd
push dword [0x639f5c]
jmp 0x4486fe
push esi
push eax
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x218]
test edx, edx
je 0x448719
mov eax, dword [ebp - 0x210]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x21c]
test edx, edx
je 0x448740
mov eax, dword [ebp - 0x210]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test ebx, ebx
je 0x44875f
push ebx
push edi
lea eax, [ebp - 0x20c]
push 0x6028ec
push eax
call fcn.00577f15
add esp, 0x10
jmp 0x4487eb
push 0x5c
test esi, esi
je 0x448768
push esi
jmp 0x44876e
push dword [0x639f5c]
call fcn.00577ca1
add esp, 8
test eax, eax
jne 0x4487a5
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057468d
mov esp, ebp
pop ebp
ret
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x6028e0
push eax
call fcn.00577f15
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4487c4
sub ecx, edx
mov eax, 0x6b
sar ecx, 1
mov dword [ebp + ecx*2 - 0x212], 0x6e006c
mov word [ebp + ecx*2 - 0x20e], ax
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setns al
xor ecx, ebp
pop esi
pop ebx
call fcn.0057468d
mov esp, ebp
pop ebp
ret