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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call sym.Install.exe_protected:_static_class_CWndShadow____cdecl_CWndShadow::FindShadowWindow_struct_HWND____
mov ebx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp + 0xc]
dec eax
pop ecx
mov ecx, dword [ebp + 0x10]
sub eax, 1
je 0x457cc0
sub eax, 1
je 0x457c71
dec eax
sub eax, 1
je 0x457c0e
sub eax, 0xa
je 0x457bf3
sub eax, 9
je 0x457bb1
sub eax, 0x6a
je 0x457b90
sub eax, 0x1b0
jne 0x457cc9
test byte [esi + 0xc], 2
je 0x457cc9
push edi
mov ecx, esi
call sym.Install.exe_protected:_void___thiscall_CWndShadow::Update_struct_HWND____
jmp 0x457cc9
push edi
call sym.Install.exe_protected:_static_int___cdecl_CWndShadow::GetShadowWindowIndex_struct_HWND____
pop ecx
test eax, eax
js 0x457cc9
push 1
push eax
mov ecx, sym.Install.exe_class_DuiLib::CDuiValArray_CWndShadow::s_ShadowArray
call sym.Install.exe_public:_bool___thiscall_DuiLib::CDuiValArray::Remove_int__int_
jmp 0x457cc9
mov al, byte [esi + 0xc]
test al, 1
je 0x457cc9
test ecx, ecx
jne 0x457bd3
push ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xc], 0xf9
jmp 0x457cc9
test al, 4
jne 0x457cc9
push 8
push dword [esi + 4]
mov byte [esi + 0x18], 1
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [esi + 0xc], 6
jmp 0x457cc9
cmp byte [esi + 0x18], 0
je 0x457cc9
push edi
mov ecx, esi
call sym.Install.exe_protected:_void___thiscall_CWndShadow::Update_struct_HWND____
mov byte [esi + 0x18], 0
jmp 0x457cc9
mov al, byte [esi + 0xc]
test al, 1
je 0x457cc9
cmp ecx, 2
je 0x457c5d
cmp ecx, 1
je 0x457c5d
test al, 4
je 0x457c6c
cmp bx, word [esi + 0x14]
ja 0x457c42
mov eax, ebx
shr eax, 0x10
cmp ax, word [esi + 0x16]
ja 0x457c42
push edi
mov ecx, esi
call sym.Install.exe_protected:_void___thiscall_CWndShadow::Update_struct_HWND____
jmp 0x457c46
mov byte [esi + 0x18], 1
test byte [esi + 0xc], 2
jne 0x457c6c
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [esi + 0xc], 2
jmp 0x457c6c
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xc], 0xfd
mov dword [esi + 0x14], ebx
jmp 0x457cc9
test byte [esi + 0xc], 2
je 0x457cc9
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
xor edx, edx
push 0x15
push edx
push edx
cmp dword [esi + 0x20], edx
je 0x457c9c
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0x28]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [esi + 0x24]
jmp 0x457cb3
movsx ecx, byte [esi + 0xf]
movsx eax, byte [esi + 0x11]
sub eax, ecx
add eax, dword [ebp - 0x10]
push eax
movsx eax, byte [esi + 0x10]
sub eax, ecx
add eax, dword [ebp - 0x14]
push eax
push edx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x457cc9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [esi + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bebdd
leave
ret 0x10
Function at 0x467f4d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.Install.exe_public_virtual:_void___thiscall_DuiLib::CControlUI::Move_struct_tagSIZE__bool_
mov ecx, dword [esi + 0x6d8]
test ecx, ecx
je 0x467fc9
lea eax, [ebp - 0x14]
push eax
call fcn.004674f4
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6d8]
test eax, eax
je 0x467fa5
push 0
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x467fc9
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004bebdd
leave
ret 0xc

Function at 0x467fd8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x468062
cmp dword [esi + 0x10], 0
je 0x468062
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004bf660
mov ebx, esp
test ebx, ebx
je 0x468062
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.0042d594
mov ecx, dword [esi + 0x10]
xor eax, eax
push 1
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call sym.Install.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool__bool_
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call sym.Install.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::IsLayered_void_
test al, al
je 0x468062
mov ecx, dword [esi + 0x10]
call sym.Install.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.004bebdd
leave
ret 0x10
Function at 0x46890b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sym.Install.exe_public_virtual:_void___thiscall_DuiLib::CControlUI::SetPos_struct_tagRECT__bool_
mov ecx, dword [ebx + 0x6d8]
test ecx, ecx
je 0x46898f
lea eax, [ebp - 0x14]
push eax
call fcn.004674f4
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6d8]
test eax, eax
je 0x46896b
push 0
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46898f
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bebdd
leave
ret 0x14
Function at 0x46b82d
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x4ede47
call fcn.004bf5f2
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x6e8], ebx
cmp dword [edi + 4], ebx
jne 0x46b8bf
lea eax, [ebp - 0xa8]
push eax
call fcn.0046b495
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x24]
mov ecx, eax
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____
mov esi, dword [edi + 0x10]
mov ecx, esi
call sym.Install.exe_public:_int___thiscall_DuiLib::CLabelUI::GetFont_void_const
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call sym.Install.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]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], ebx
call sym.Install.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
lea ecx, [ebp - 0x94]
mov bl, al
call sym.Install.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov esi, 0x6d8
test bl, bl
je 0x46b8fa
mov eax, dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, esi
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
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.004bf5b0
ret 4
Function at 0x46b937
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.Install.exe_public_virtual:_void___thiscall_DuiLib::CControlUI::Move_struct_tagSIZE__bool_
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x46b9b3
lea eax, [ebp - 0x14]
push eax
call fcn.0046b495
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [esi + 0x6f0]
test eax, eax
je 0x46b98f
push 0
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46b9b3
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004bebdd
leave
ret 0xc

Function at 0x46ba9c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5383c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sym.Install.exe_public_virtual:_void___thiscall_DuiLib::CControlUI::SetPos_struct_tagRECT__bool_
mov ecx, dword [ebx + 0x6f0]
test ecx, ecx
je 0x46bb20
lea eax, [ebp - 0x14]
push eax
call fcn.0046b495
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov ecx, dword [ebx + 0x6f0]
test eax, eax
je 0x46bafc
push 0
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46bb20
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
call sym.Install.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bebdd
leave
ret 0x14
Function at 0x47ab30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x47abbc
push esi
call fcn.0048d670
add esp, 4
test al, al
jne 0x47abbc
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x47ab53
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00497780
add esp, 0xc
test eax, eax
je 0x47ab87
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00497780
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x47ab89
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x47abb5
mov al, byte [esi]
push eax
call fcn.00487d90
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x47ab97
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4835f0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x71e], 0
je 0x483687
cmp dword [edi + 0x1b0], 0
je 0x483641
push esi
push 1
push edi
call fcn.00475f00
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00475f00
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov edx, dword [esp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x483656
sub ecx, 1
je 0x483656
sub ecx, 1
jne 0x483687
push dword [edi + 0x148]
lea eax, [edx*2 + 0x4fd6d0]
push 1
add eax, edx
push 2
push eax
call fcn.004c8db7
push dword [edi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004c8db7
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x483c10
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5383c4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 4], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push ebp
push esi
mov esi, 0x170
mov edx, dword [ecx + 0x14c]
cmp dword [esp + 0x120], edx
push edi
sete al
lea eax, [eax*4 + 0x148]
mov ebp, dword [eax + ecx]
mov eax, 0x180
cmove esi, eax
mov eax, dword [ecx + 0x2a0]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x483d13
xor eax, eax
cmp dword [esp + 0x124], edx
sete al
lea eax, [eax*4 + 0x160]
cmp dword [eax + ecx], 0x4838e0
jne 0x483d13
cmp dword [esi], 0
je 0x483cae
test edi, edi
je 0x483d13
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004950f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x483d13
test al, 1
je 0x483d13
mov ecx, dword [esi]
test ecx, ecx
jne 0x483cfc
mov eax, dword [ebx + 0x4e8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x538388]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x483d47
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x483d13
add dword [esi + 8], eax
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x483d82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x483d58
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x483d82
mov ecx, dword [esp + 0x10]
mov eax, 0x1b
mov dword [ecx], 0xffffffff
jmp 0x483d88
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00496c80
push eax
push str.Send_failure:__s
push ebx
call fcn.00483690
add esp, 0x18
mov dword [ebx + 0x96c], esi
mov eax, 0x37
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bebdd
add esp, 0x10c
ret
Function at 0x484180
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x19c], 0
je 0x48419d
push eax
call fcn.0047d200
add esp, 4
test eax, eax
je 0x4841be
mov al, 1
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x4841be
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
ret
xor al, al
ret

Function at 0x484410
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x5383c4]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.004c0a60
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x484497
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00496c80
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4844d7
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00484000
add esp, 0x10
test al, al
jne 0x4844e0
call fcn.004c45cc
mov esi, dword [eax]
call fcn.004c45cc
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00496c80
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00483690
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bebdd
add esp, 0x188
ret
Function at 0x4861d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4fdb38
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4861ea
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4fdb54
push esi
call fcn.004d58f0
add esp, 8
test eax, eax
je 0x486232
test ebp, ebp
je 0x486223
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x486258
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x486258
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x48630f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486275
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x538388]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x486305
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x486305
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4862a7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4862c0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4862d0
test ebp, ebp
je 0x4862fc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x53838c]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x53838c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x48d7b0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x48d7c2
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x48d7d6
xor al, al
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
ret
Function at 0x497e40
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0048cbc0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.004da69c
push dword [esp + 0x40]
mov edi, eax
call fcn.004da69c
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x497ed5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0048cbc0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0048cc70
add esp, 0x20
test edx, edx
ja 0x497ef9
jb 0x497ec7
cmp eax, 0x3e8
ja 0x497ef9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x497e90
test edi, edi
je 0x497ee2
push edi
call fcn.004c4643
add esp, 4
test esi, esi
je 0x497eef
push esi
call fcn.004c4643
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x497f06
push edi
call fcn.004c4643
add esp, 4
test esi, esi
je 0x497f13
push esi
call fcn.004c4643
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x497f20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x5383c4]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x498112
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x24], xmm0
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x498100
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x498100
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x498100
cmp dword [esp + 8], 0x10
jl 0x498100
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x498100
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x498100
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x498100
push 1
push esi
call fcn.004b0a70
add esp, 8
test eax, eax
js 0x498100
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.00494c00
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x498100
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x498100
cmp dword [esp + 8], 0x10
jl 0x498100
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x498100
cmp dword [esp + 8], 0x10
jl 0x498100
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x498100
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x498100
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x498100
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004bebdd
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.004bebdd
add esp, 0x34
ret