joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc8c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5b5f5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sym.ETermProxy.exe_public:_void___thiscall_CAdoConnection::constructor_void_
lea edi, [esi + 0xc]
push 0
mov ecx, edi
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CSyncObject::CSyncObject
mov dword [edi], 0x5d0d4c
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x14], 1
push eax
mov dword [esi], 0x5d14bc
call fcn.004eb620
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x30], eax
push ecx
call fcn.004eb620
add esp, 8
mov dword [esi + 0x34], eax
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x63547c
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 0x34]
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x20], 1
call sym.ETermProxy.exe_public:_int___thiscall_CAdoConnection::ConnectAccess_class_CString__class_CString__long_int_
mov ecx, dword [esp + 0xc]
cmp eax, 1
sete al
mov byte [esi + 0x2c], al
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0xc

Function at 0x4dc9b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b5f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x5d14bc
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], 0
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0x34]
push eax
call sub.MFC42.DLL_operatordelete
lea edi, [esi + 0xc]
add esp, 8
lea eax, [edi + 8]
mov dword [edi], 0x5d0d4c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.00597746
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call sym.ETermProxy.exe_public_virtual:_void___thiscall_CAdoConnection::destructor_void_
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4df020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b63a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
push str.ProviderSQLOLEDB.1__Data_Source
push ecx
mov dword [esp + 0x34], 3
call sub.MFC42.DLL_operator_2
push str.__Initial_Catalog
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_operator
push str.__User_ID
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x30], 6
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x38]
lea edx, [esp + 0xc]
push ecx
push eax
push edx
mov byte [esp + 0x34], 7
call sub.MFC42.DLL_operator
push str.__PWD
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x30], 8
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x3c]
lea edx, [esp + 4]
push ecx
push eax
push edx
mov byte [esp + 0x34], 9
call sub.MFC42.DLL_operator
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0xc
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x28], 0xb
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 4]
push eax
push ecx
mov ecx, esi
call sym.ETermProxy.exe_public:_int___thiscall_CAdoConnection::Open_char_const___long_int_
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 0x14
Function at 0x4e2cb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6e53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
lea esi, [ebx + 0x18]
mov dword [ebp - 0x10], esp
push edi
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4e2cf2
xor edi, edi
jmp 0x4e2d12
push 0
push edi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
push edi
je 0x4e2d0b
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], 0
test eax, eax
je 0x4e2e8a
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
xor ebx, ebx
mov eax, 1
cmp esi, ebx
mov byte [ebp - 4], al
je 0x4e2d63
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call fcn.00597e99
cmp eax, ebx
mov dword [esi], eax
jne 0x4e2d61
cmp edi, ebx
je 0x4e2d61
push 0x8007000e
call fcn.00597dec
mov ebx, esi
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp + 8], ebx
jne 0x4e2d78
push 0x8007000e
call fcn.00597dec
test ebx, ebx
mov byte [ebp - 4], 2
mov word [ebp - 0x24], 8
je 0x4e2d8a
mov esi, dword [ebx]
jmp 0x4e2d8c
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4e2dac
push 0x8007000e
call fcn.00597dec
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4e2dc4
push 0x80004003
call fcn.00597dec
mov ecx, dword [ebp + 0xc]
mov edi, dword [esi + 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
sub esp, 0x10
mov eax, dword [edi]
mov edx, esp
push edi
mov dword [edx], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edx + 0xc], ecx
call dword [eax + 0x150]
mov esi, eax
test esi, esi
jge 0x4e2e02
push 0x622820
push edi
push esi
call fcn.00597dfa
xor edx, edx
lea eax, [ebp - 0x24]
test esi, esi
sete dl
push eax
mov esi, edx
mov byte [ebp - 4], 2
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4e2e23
push eax
call fcn.00597dec
test ebx, ebx
mov byte [ebp - 4], 0
je 0x4e2e49
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4e2e49
mov ecx, ebx
call fcn.004e2ea0
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ec120
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
push str.HTTP_Downloader
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x4ec146
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [esp + 0x10]
push 4
push eax
push 2
push edi
mov dword [esp + 0x20], 0x2bf20
call ebx
lea ecx, [esp + 0x10]
push 4
push ecx
push 6
push edi
call ebx
mov edx, dword [esp + 0x18]
push 0
push SysReAllocString
push 0
push 0
push edx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x4ec191
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
lea eax, [esp + 0x10]
push 4
push eax
push 6
push esi
call ebx
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
push ebx
push ecx
push ebp
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4ec1bf
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edx, dword [ebx]
push edi
mov byte [edx + ebp], 0
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
Function at 0x4ec910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b806f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [esp + 0x10], esi
lea ecx, [esp + 4]
mov dword [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x2c]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4ec99a
mov esi, dword [esp + 0x28]
push 0x63547c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x10], 1
jmp 0x4eca39
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx - 8]
mov edx, dword [esp + 0x30]
sub ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 4]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 8], esi
jle 0x4eca01
mov al, byte [esi + ecx]
cmp al, 0x3d
mov byte [esp + 0x14], al
je 0x4ec9f9
cmp al, 0x7c
je 0x4eca01
cmp al, 0x3b
je 0x4eca01
cmp al, 0xd
je 0x4eca01
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 8]
call fcn.00596ed0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
inc esi
cmp esi, eax
jl 0x4ec9d0
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::TrimRight
mov esi, dword [esp + 0x28]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 1
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4ef220
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [ecx + 4]
sub esp, 0x44
test edx, edx
jne 0x4ef233
or eax, 0xffffffff
add esp, 0x44
ret 4
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
lea eax, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x54]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
pop edi
add esp, 0x44
ret 4

Function at 0x4ef280
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, ecx
mov eax, dword [edx + 4]
test eax, eax
jne 0x4ef293
mov eax, 0x63547c
pop ecx
ret 4
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x6361dc
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push 0x6361dc
push ecx
mov ecx, dword [edx + 4]
push 0
push eax
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 0x6361dc
pop edi
pop ecx
ret 4

Function at 0x4ef2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b83ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4ef330
mov esi, dword [esp + 0x24]
push 0x63547c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
push ebp
mov ebp, dword [esp + 0x30]
push edi
push ebp
call sub.MFC42.DLL_operatornew
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x30]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [ebx + 4]
push esi
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_3
mov edi, 1
push esi
mov dword [esp + 0x28], edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x30]
add esp, 4
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x4ef3f0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8
Function at 0x4ef420
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b8463
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
lea ecx, [esi + 8]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString_1
lea edi, [esi + 0x10]
mov byte [esp + 0x18], 2
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x14]
mov byte [esp + 0x18], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 5
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 6
call sub.MFC42.DLL_CString::CString_1
mov dword [esi + 0x2c], 0x5d1718
mov dword [esi + 0x30], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
push 0x625120
mov ecx, edi
mov byte [esp + 0x1c], 8
mov dword [esi], 0x5d1700
call sub.MFC42.DLL_CString::operator
push 0x4c
mov ecx, esi
call fcn.004ef870
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4f0380
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b86d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x4f03df
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0x400
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, ebx
mov dword [esi + 0x2c], eax
jne 0x4f0432
push str.Not_enough_memory
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea edi, [esi + 0x18]
push 0x3f
push 1
push ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CAsyncSocket::Create
test eax, eax
jne 0x4f0467
push str.Unable_to_create_the_socket
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x2c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x2c], ebx
jmp 0x4f0410
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004f0360
mov ebx, dword [eax]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004f0940
push eax
push ebx
mov ecx, edi
call sub.MFC42.DLL_CAsyncSocket::Connect
test eax, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4f04b3
push str.Unable_to_connect_to_server
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x18]
jmp 0x4f0514
push 1
mov ecx, esi
call fcn.004f0e90
test eax, eax
jne 0x4f04cf
push str.Server_didnt_respond
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
jmp 0x4f050d
lea ecx, [ebp - 0x6c]
push 0x50
push ecx
call sub.WSOCK32.dll_gethostname
lea edx, [ebp - 0x6c]
lea eax, [ebp - 0x14]
push edx
push str.HELO__s__r_n
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x14]
mov edx, dword [edi]
add esp, 0xc
mov ecx, dword [eax - 8]
push 0
push ecx
push eax
mov ecx, edi
call dword [edx + 0x20]
push 0
mov ecx, esi
call fcn.004f0e90
test eax, eax
jne 0x4f052c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [esi + 0x2c]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x2c], 0
jmp 0x4f0410
lea ecx, [ebp - 0x14]
mov dword [esi + 8], 1
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f1ab0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
xor eax, eax
mov dword [esp], eax
mov word [esp], 2
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4f1b02
push eax
call sub.WSOCK32.dll_htonl
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], eax
push ecx
call sub.WSOCK32.dll_htons
mov word [esp + 2], ax
mov eax, dword [esp + 0x14]
lea edx, [esp]
push 0x10
push edx
push eax
call sub.WSOCK32.dll_bind
add esp, 0x10
ret
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4f1ada
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
xor eax, eax
add esp, 0x10
ret
Function at 0x4f2260
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x174
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
push 0x636630
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.CERT
push 0xb2
push 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov dword [esp + 0x1c], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push str.CERT
push 0xb1
push 0
mov dword [esp + 0x24], eax
call edi
mov esi, eax
push esi
push 0
call ebp
push esi
push 0
mov ebp, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x636630
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x80]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x7f], 0x5c
je 0x4f231f
mov byte [esp + ecx + 0x80], 0x5c
mov byte [esp + ecx + 0x81], 0
mov edi, str.RootCert.pem
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1c], al
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x188]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x18
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x8c]
push 0
push eax
push ebp
push ebx
push ecx
push edx
call sub.SSLEAY32.dll_Ordinal_110
mov ecx, dword [esp + 0x34]
push eax
call sym.ETermProxy.exe_public:_int___thiscall_CSslClientSocket::SockConnect_struct_ssl_method_st___char___int__char___int__char___char___char_const___unsigned_int__char__
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret 8
Function at 0x4f2420
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
lea edi, [ecx + 0x23]
mov ecx, 0xe
or eax, 0xffffffff
mov ebp, dword [esp + 0x58]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x10
or eax, 0xffffffff
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
mov al, byte [edi + ebp]
lea esi, [edx + 1]
mov byte [esp + 0x58], al
xor eax, eax
mov bl, byte [esp + 0x58]
mov cl, 7
sub cl, al
shr bl, cl
and bl, 1
mov byte [esp + edx + 0x14], bl
inc edx
inc esi
mov ecx, esi
and ecx, 0x80000007
jns 0x4f247c
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x4f2480
inc edx
inc esi
inc eax
cmp eax, 8
jl 0x4f245a
inc edi
cmp edi, 7
jl 0x4f244e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
movsx edx, byte [eax + 0x5d1888]
mov ecx, dword [esp]
mov dl, byte [esp + edx + 3]
add ecx, 0x23
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x38
jl 0x4f2492
mov eax, dword [esp]
lea ecx, [eax + 0x23]
lea edx, [eax + 0x3f]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], edx
add esp, 0x44
ret 4

Function at 0x4f24d0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x10
or eax, 0xffffffff
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
add ebp, 0x64
rep stosd dword es:[edi], eax
mov ecx, 0xe
or eax, 0xffffffff
mov edi, ebp
xor esi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov eax, dword [esp + 0x58]
mov dl, byte [edi + eax]
xor eax, eax
mov cl, 7
mov bl, dl
sub cl, al
shr bl, cl
and bl, 1
mov byte [esp + esi + 0x14], bl
inc esi
inc eax
cmp eax, 8
jl 0x4f2507
inc edi
cmp edi, 8
jl 0x4f24fe
xor eax, eax
movsx ecx, byte [eax + 0x5d17b8]
inc eax
mov dl, byte [esp + ecx + 0x13]
cmp eax, 0x40
mov byte [eax + ebp - 1], dl
jl 0x4f2525
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + 0xa4], ebp
lea ecx, [eax + 0x84]
pop ebp
mov dword [eax + 0xa8], ecx
pop ebx
add esp, 0x44
ret 4

Function at 0x4f25e0
Capabilities:
Encrypt data using des

Disassembly:
xor eax, eax
movsx edx, byte [eax + 0x5d18c0]
inc eax
mov dl, byte [edx + ecx + 0x22]
cmp eax, 0x30
mov byte [ecx + eax + 0xab], dl
jl 0x4f25e2
ret

Function at 0x4f2600
Capabilities:
Encrypt data using des

Disassembly:
mov edx, ecx
push esi
push edi
mov ecx, 0xc
lea esi, [edx + 0xdc]
or eax, 0xffffffff
mov edi, esi
rep stosd dword es:[edi], eax
xor eax, eax
movsx ecx, byte [eax + 0x5d1838]
mov edi, dword [edx + 0xa8]
inc eax
cmp eax, 0x30
mov cl, byte [ecx + edi - 1]
mov byte [esi + eax - 1], cl
jl 0x4f2618
pop edi
pop esi
ret

Function at 0x4f2640
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xffffff24
push ebx
lea eax, [ecx + 0xdc]
sub edx, ecx
mov cl, byte [eax - 0x30]
mov bl, byte [eax]
xor bl, cl
mov byte [eax], bl
inc eax
lea ecx, [edx + eax]
cmp ecx, 0x30
jl 0x4f264e
pop ebx
ret

Function at 0x4f26e0
Capabilities:
Encrypt data using des

Disassembly:
xor eax, eax
movsx edx, byte [eax + 0x5d1868]
inc eax
mov dl, byte [edx + ecx + 0x10b]
cmp eax, 0x20
mov byte [ecx + eax + 0x12b], dl
jl 0x4f26e2
ret