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

Disassembly:
push 0xffffffffffffffff
push 0x5b5603
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], 0x5ce6f0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
push 0x621eb0
mov ecx, edi
mov byte [esp + 0x1c], 8
mov dword [esi], 0x5ce6d8
call sub.MFC42.DLL_CString::operator
push 0x4c
mov ecx, esi
call fcn.004ee260
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 0x4eed70
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5870
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 0x4eedcf
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 0x4eee22
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 0x4eee57
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 0x4eee00
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004eed50
mov ebx, dword [eax]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004ef330
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 0x4eeea3
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 0x4eef04
push 1
mov ecx, esi
call fcn.004ef880
test eax, eax
jne 0x4eeebf
push str.Server_didnt_respond
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
jmp 0x4eeefd
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.004ef880
test eax, eax
jne 0x4eef1c
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 0x4eee00
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 0x4f0b70
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 0x633170
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 0x633170
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 0x4f0c2f
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 0x4f0d30
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 0x4f0d8c
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x4f0d90
inc edx
inc esi
inc eax
cmp eax, 8
jl 0x4f0d6a
inc edi
cmp edi, 7
jl 0x4f0d5e
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 0x4f0da2
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 0x4f0de0
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 0x4f0e17
inc edi
cmp edi, 8
jl 0x4f0e0e
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 0x4f0e35
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 0x4f0ef0
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 0x4f0ef2
ret

Function at 0x4f0f10
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 0x4f0f28
pop edi
pop esi
ret

Function at 0x4f0f50
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 0x4f0f5e
pop ebx
ret

Function at 0x4f0ff0
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 0x4f0ff2
ret
Function at 0x4f1010
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 0x4f1084
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 0x4f1036
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 0x4f104e
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 0x4f1068
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 0x4f1086
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4

Function at 0x4f10b0
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 0x4f10b5
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 0x4f3190
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.004f38f0
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 0x4f31d9
mov edx, dword [esp + 0x88]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.004f3210
pop edi
pop esi
add esp, 0x78
ret 8
Function at 0x4f3210
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 0x4f332a
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 0x4f3281
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 8
Function at 0x4f3390
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.004f38f0
lea edx, [esp + 0x50]
lea eax, [esp + 0x90]
push edx
push eax
mov ecx, ebp
call fcn.004f3770
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.004f3630
inc esi
cmp esi, 0x10
jl 0x4f345b
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 0x4f34a0
push 0x40
lea eax, [ebp + 0x680]
push ecx
push eax
mov ecx, ebp
call fcn.004f3930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8
Function at 0x4f34e0
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.004f38f0
lea edx, [esp + 0x50]
lea eax, [esp + 0x90]
push edx
push eax
mov ecx, ebp
call fcn.004f3770
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.004f3630
inc esi
cmp esi, 0x10
jl 0x4f35ab
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 0x4f35f7
push 0x40
lea eax, [ebp + 0x688]
push ecx
push eax
mov ecx, ebp
call fcn.004f3930
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 8

Function at 0x4f3770
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 0x4f3786
pop edi
pop esi
ret 8

Function at 0x4f37a0
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 0x4f37b6
pop edi
pop esi
ret 8

Function at 0x4f37d0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jbe 0x4f37fb
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 0x4f37eb
pop esi
pop ebx
pop edi
ret 0x10
Function at 0x4f38c0
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 0x4f38d6
pop edi
pop esi
ret 8
Function at 0x4f5f00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5b5dbb
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 0x4f8190
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
mov esi, ecx
sub eax, 0x40b
je 0x4f825a
dec eax
je 0x4f81b8
sub eax, 0x13
je 0x4f825a
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 0x4f8335
cmp dword [esi + 0x74], 0x1b
je 0x4f8335
mov edx, dword [esi + 0x3f0]
xor eax, eax
test edx, edx
jle 0x4f8335
mov ecx, dword [esi + 0x3ec]
mov edi, dword [esp + 0x10]
cmp edi, dword [ecx]
je 0x4f820d
inc eax
add ecx, 4
cmp eax, edx
jl 0x4f81f1
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 0x4f8240
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4f8242
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 0x4f833e
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 0x4f828c
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x28]
push eax
lea eax, [esi + 8]
mov edx, dword [ecx]
jmp 0x4f829f
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 0x4f8309
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 0x4f8309
call sub.MFC42.DLL_CAsyncSocket::Detach
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4f831b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4f831d
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 0x4fb280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b65bf
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 [0x622b9c]
mov edx, dword [0x622ba0]
mov dword [esp + 0x10], eax
mov eax, dword [0x622ba4]
mov dword [esp + 0x14], ecx
mov cl, byte [0x622ba8]
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 0x4fb30e
dec eax
or eax, 0xfffffff0
inc eax
mov dl, byte [esp + eax + 0x10]
lea ecx, [esp + 8]
push edx
call fcn.005942a0
dec esi
jne 0x4fb300
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