joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef130
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5bb0
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 0x4ef18f
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 0x4ef1e2
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 0x4ef217
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 0x4ef1c0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004ef110
mov ebx, dword [eax]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004ef6f0
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 0x4ef263
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 0x4ef2c4
push 1
mov ecx, esi
call fcn.004efc40
test eax, eax
jne 0x4ef27f
push str.Server_didnt_respond
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
jmp 0x4ef2bd
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.004efc40
test eax, eax
jne 0x4ef2dc
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 0x4ef1c0
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 0x4f0f30
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 0x633180
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 0x633180
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 0x4f0fef
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 0x4f10f0
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 0x4f114c
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x4f1150
inc edx
inc esi
inc eax
cmp eax, 8
jl 0x4f112a
inc edi
cmp edi, 7
jl 0x4f111e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
movsx edx, byte [eax + 0x5ce860]
mov ecx, dword [esp]
mov dl, byte [esp + edx + 3]
add ecx, 0x23
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x38
jl 0x4f1162
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 0x4f11a0
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 0x4f11d7
inc edi
cmp edi, 8
jl 0x4f11ce
xor eax, eax
movsx ecx, byte [eax + 0x5ce790]
inc eax
mov dl, byte [esp + ecx + 0x13]
cmp eax, 0x40
mov byte [eax + ebp - 1], dl
jl 0x4f11f5
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 0x4f12b0
Capabilities:
Encrypt data using des

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

Function at 0x4f12d0
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 + 0x5ce810]
mov edi, dword [edx + 0xa8]
inc eax
cmp eax, 0x30
mov cl, byte [ecx + edi - 1]
mov byte [esi + eax - 1], cl
jl 0x4f12e8
pop edi
pop esi
ret

Function at 0x4f1310
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 0x4f131e
pop ebx
ret

Function at 0x4f13b0
Capabilities:
Encrypt data using des

Disassembly:
xor eax, eax
movsx edx, byte [eax + 0x5ce840]
inc eax
mov dl, byte [edx + ecx + 0x10b]
cmp eax, 0x20
mov byte [ecx + eax + 0x12b], dl
jl 0x4f13b2
ret
Function at 0x4f13d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, ecx
mov ecx, 8
or eax, 0xffffffff
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x30]
test al, al
je 0x4f1444
mov esi, dword [edx + 0xa4]
xor eax, eax
mov cl, byte [edx + eax + 0x12c]
mov bl, byte [esi + eax]
xor cl, bl
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 0x20
jl 0x4f13f6
xor eax, eax
mov ecx, dword [edx + 0xa8]
mov esi, dword [edx + 0xa4]
mov cl, byte [ecx + eax]
mov byte [esi + eax], cl
inc eax
cmp eax, 0x20
jl 0x4f140e
xor eax, eax
mov ecx, dword [edx + 0xa8]
mov bl, byte [esp + eax + 0xc]
mov byte [ecx + eax], bl
inc eax
cmp eax, 0x20
jl 0x4f1428
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
xor eax, eax
mov ecx, dword [edx + 0xa4]
mov bl, byte [ecx + eax]
lea esi, [ecx + eax]
mov cl, byte [edx + eax + 0x12c]
xor bl, cl
inc eax
cmp eax, 0x20
mov byte [esi], bl
jl 0x4f1446
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4

Function at 0x4f1470
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x40
xor eax, eax
movsx edx, byte [eax + 0x5ce7d0]
inc eax
mov dl, byte [edx + ecx + 0x63]
cmp eax, 0x40
mov byte [esp + eax - 1], dl
jl 0x4f1475
push esi
push edi
lea edi, [ecx + 0x64]
mov ecx, 0x10
lea esi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x40
ret
Function at 0x4f3560
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x78
push esi
mov esi, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x88]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, esi
call fcn.004f3cc0
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
movsx edx, byte [eax + 0x5cee28]
inc eax
mov cl, byte [esp + edx + 0x3f]
cmp eax, 0x38
mov byte [esp + eax + 7], cl
jl 0x4f35a9
mov edx, dword [esp + 0x88]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.004f35e0
pop edi
pop esi
add esp, 0x78
ret 8
Function at 0x4f35e0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc4]
mov ecx, 7
mov esi, eax
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x1c]
mov ecx, 7
lea edi, [esp + 0x6c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x10], eax
lea ecx, [ecx + ecx*2]
shl ecx, 8
add ecx, edx
mov dword [esp + 0x14], ecx
movsx eax, byte [eax + 0x5cee90]
mov edx, eax
lea edi, [esp + 0x34]
neg edx
lea esi, [esp + eax + 0x50]
lea ebp, [edx + 0x1c]
mov ecx, ebp
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esi, [esp + 0x50]
mov ebx, ecx
lea edi, [esp + edx + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
lea esi, [esp + eax + 0x6c]
mov ebx, ecx
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esi, [esp + 0x6c]
lea edi, [esp + edx + 0x34]
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xd
lea edi, [esp + 0x89]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
lea esi, [esp + 0x34]
lea edi, [esp + 0x88]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x18]
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
movsx ecx, byte [eax + 0x5cee60]
inc eax
mov cl, byte [esp + ecx + 0x87]
cmp eax, 0x30
mov byte [edx + eax - 1], cl
jl 0x4f36fa
mov eax, dword [esp + 0x10]
mov ecx, 7
lea esi, [esp + 0x34]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
inc eax
mov ecx, 7
lea esi, [esp + 0x18]
lea edi, [esp + 0x6c]
add edx, 0x30
cmp eax, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x4f3651
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 8
Function at 0x4f3760
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd1]
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x94]
push eax
push ecx
mov ecx, ebp
call fcn.004f3cc0
lea edx, [esp + 0x50]
lea eax, [esp + 0x90]
push edx
push eax
mov ecx, ebp
call fcn.004f3b40
mov ecx, 8
lea esi, [esp + 0x50]
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x70]
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x118]
xor esi, esi
push edi
lea ecx, [esp + 0x14]
push esi
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, ebp
call fcn.004f3a00
inc esi
cmp esi, 0x10
jl 0x4f382b
mov ecx, 8
lea esi, [esp + 0x10]
lea edi, [esp + 0xd0]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x30]
lea edi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x600]
movsx edx, byte [eax + 0x5cf130]
inc eax
mov dl, byte [esp + edx + 0xcf]
cmp eax, 0x40
mov byte [ecx + eax - 1], dl
jl 0x4f3870
push 0x40
lea eax, [ebp + 0x680]
push ecx
push eax
mov ecx, ebp
call fcn.004f3d00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8
Function at 0x4f38b0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd1]
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x94]
push eax
push ecx
mov ecx, ebp
call fcn.004f3cc0
lea edx, [esp + 0x50]
lea eax, [esp + 0x90]
push edx
push eax
mov ecx, ebp
call fcn.004f3b40
mov ecx, 8
lea esi, [esp + 0x50]
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x70]
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x118]
xor esi, esi
mov ecx, 0xf
push edi
sub ecx, esi
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov ecx, ebp
call fcn.004f3a00
inc esi
cmp esi, 0x10
jl 0x4f397b
mov ecx, 8
lea esi, [esp + 0x10]
lea edi, [esp + 0xd0]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x30]
lea edi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x640]
movsx edx, byte [eax + 0x5cf130]
inc eax
mov dl, byte [esp + edx + 0xcf]
cmp eax, 0x40
mov byte [ecx + eax - 1], dl
jl 0x4f39c7
push 0x40
lea eax, [ebp + 0x688]
push ecx
push eax
mov ecx, ebp
call fcn.004f3d00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8

Function at 0x4f3b40
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
mov ecx, 0x5ceea0
push edi
mov edi, dword [esp + 0xc]
sub ecx, eax
mov esi, 0x40
movsx edx, byte [ecx + eax]
inc eax
dec esi
mov dl, byte [edx + edi - 1]
mov byte [eax - 1], dl
jne 0x4f3b56
pop edi
pop esi
ret 8

Function at 0x4f3b70
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
mov ecx, 0x5ceee0
push edi
mov edi, dword [esp + 0xc]
sub ecx, eax
mov esi, 0x30
movsx edx, byte [ecx + eax]
inc eax
dec esi
mov dl, byte [edx + edi - 1]
mov byte [eax - 1], dl
jne 0x4f3b86
pop edi
pop esi
ret 8

Function at 0x4f3ba0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jbe 0x4f3bcb
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x1c]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x4f3bbb
pop esi
pop ebx
pop edi
ret 0x10
Function at 0x4f3c90
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
mov ecx, 0x5cf110
push edi
mov edi, dword [esp + 0xc]
sub ecx, eax
mov esi, 0x20
movsx edx, byte [ecx + eax]
inc eax
dec esi
mov dl, byte [edx + edi - 1]
mov byte [eax - 1], dl
jne 0x4f3ca6
pop edi
pop esi
ret 8
Function at 0x4f62f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5b60fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esp + 0xc], esi
lea edi, [esi + 8]
push ebx
mov ecx, edi
call sub.MFC42.DLL_CSyncObject::CSyncObject
mov dword [edi], 0x5cdd24
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x5cf288
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 4], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4f8580
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
mov esi, ecx
sub eax, 0x40b
je 0x4f864a
dec eax
je 0x4f85a8
sub eax, 0x13
je 0x4f864a
pop edi
pop esi
mov al, 1
ret 0xc
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4f8725
cmp dword [esi + 0x74], 0x1b
je 0x4f8725
mov edx, dword [esi + 0x3f0]
xor eax, eax
test edx, edx
jle 0x4f8725
mov ecx, dword [esi + 0x3ec]
mov edi, dword [esp + 0x10]
cmp edi, dword [ecx]
je 0x4f85fd
inc eax
add ecx, 4
cmp eax, edx
jl 0x4f85e1
mov edx, dword [esi + 0x50]
lea ecx, [esi + 0x50]
call dword [edx + 0x1c]
pop edi
pop esi
mov al, 1
ret 0xc
mov ecx, esi
call sym.ETermProxy.exe_public:_void___thiscall_CClientObject::StartTimer_void_
mov edx, dword [edi + 4]
mov ecx, dword [esi + 0x38]
push edx
mov edx, dword [edi]
mov eax, dword [ecx]
push edx
call dword [eax + 0x48]
lea ecx, [esi + 0x50]
mov dword [edi + 8], eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4f8630
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4f8632
xor eax, eax
mov eax, dword [eax + 0x20]
push edi
push esi
push 0x416
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov al, 1
ret 0xc
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4f872e
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call sym.ETermProxy.exe_public:_void___thiscall_CClientObject::StartTimer_void_
cmp edi, 0x40b
jne 0x4f867c
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x28]
push eax
lea eax, [esi + 8]
mov edx, dword [ecx]
jmp 0x4f868f
mov ecx, dword [esi + 0x70]
push 0x162
mov eax, dword [ecx + 0x9c]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push eax
call dword [edx + 0x4c]
mov edi, eax
test edi, edi
je 0x4f86f9
mov ecx, dword [esi + 0x38]
mov eax, 0x1388
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 0x1005
push 0xffff
push edx
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x10]
push 4
push eax
mov edx, dword [ecx + 4]
push 0x1006
push 0xffff
push edx
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 4]
mov dword [esi + 0x14c], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4f86f9
call sub.MFC42.DLL_CAsyncSocket::Detach
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4f870b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4f870d
xor eax, eax
neg edi
mov eax, dword [eax + 0x20]
sbb edi, edi
neg edi
dec edi
push edi
push esi
push 0x415
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [esi + 0x50]
lea ecx, [esi + 0x50]
call dword [edx + 0x1c]
pop edi
pop esi
mov al, 1
ret 0xc
Function at 0x4fb670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b68ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [str.1234567890abcdef]
mov ecx, dword [0x622bfc]
mov edx, dword [0x622c00]
mov dword [esp + 0x10], eax
mov eax, dword [0x622c04]
mov dword [esp + 0x14], ecx
mov cl, byte [0x622c08]
push 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], cl
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov edi, dword [sym.imp.MSVCRT.dll_rand]
add esp, 8
mov esi, 0xc
call edi
and eax, reloc.OLEAUT32.dll_SafeArrayDestroy
jns 0x4fb6fe
dec eax
or eax, 0xfffffff0
inc eax
mov dl, byte [esp + eax + 0x10]
lea ecx, [esp + 8]
push edx
call fcn.005945f0
dec esi
jne 0x4fb6f0
mov esi, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4