joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b61d8
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 0x4e2d20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6c83
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 0x4e2d62
xor edi, edi
jmp 0x4e2d82
push 0
push edi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
push edi
je 0x4e2d7b
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 0x4e2efa
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 0x4e2dd3
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call fcn.00597c69
cmp eax, ebx
mov dword [esi], eax
jne 0x4e2dd1
cmp edi, ebx
je 0x4e2dd1
push 0x8007000e
call fcn.00597bbc
mov ebx, esi
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp + 8], ebx
jne 0x4e2de8
push 0x8007000e
call fcn.00597bbc
test ebx, ebx
mov byte [ebp - 4], 2
mov word [ebp - 0x24], 8
je 0x4e2dfa
mov esi, dword [ebx]
jmp 0x4e2dfc
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 0x4e2e1c
push 0x8007000e
call fcn.00597bbc
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4e2e34
push 0x80004003
call fcn.00597bbc
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 0x4e2e72
push 0x622820
push edi
push esi
call fcn.00597bca
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 0x4e2e93
push eax
call fcn.00597bbc
test ebx, ebx
mov byte [ebp - 4], 0
je 0x4e2eb9
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4e2eb9
mov ecx, ebx
call fcn.004e2f10
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 0x4ec140
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 0x4ec166
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 0x4ec1b1
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 0x4ec1df
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 0x4ec930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b7e9f
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 0x4ec9ba
mov esi, dword [esp + 0x28]
push 0x63546c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x10], 1
jmp 0x4eca59
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 0x4eca21
mov al, byte [esi + ecx]
cmp al, 0x3d
mov byte [esp + 0x14], al
je 0x4eca19
cmp al, 0x7c
je 0x4eca21
cmp al, 0x3b
je 0x4eca21
cmp al, 0xd
je 0x4eca21
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 8]
call fcn.00596ca0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
inc esi
cmp esi, eax
jl 0x4ec9f0
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 0x4ef240
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [ecx + 4]
sub esp, 0x44
test edx, edx
jne 0x4ef253
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 0x4ef2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, ecx
mov eax, dword [edx + 4]
test eax, eax
jne 0x4ef2b3
mov eax, 0x63546c
pop ecx
ret 4
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x6361cc
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push 0x6361cc
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, 0x6361cc
pop edi
pop ecx
ret 4

Function at 0x4ef300
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b821f
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 0x4ef350
mov esi, dword [esp + 0x24]
push 0x63546c
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 0x4ef410
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 0x4ef440
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b8293
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.004ef890
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 0x4f03a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8500
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 0x4f03ff
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 0x4f0452
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 0x4f0487
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 0x4f0430
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004f0380
mov ebx, dword [eax]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004f0960
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 0x4f04d3
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 0x4f0534
push 1
mov ecx, esi
call fcn.004f0eb0
test eax, eax
jne 0x4f04ef
push str.Server_didnt_respond
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::operator
jmp 0x4f052d
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.004f0eb0
test eax, eax
jne 0x4f054c
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 0x4f0430
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 0x4f1ad0
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 0x4f1b22
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 0x4f1afa
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
xor eax, eax
add esp, 0x10
ret
Function at 0x4f2280
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 0x636620
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 0x636620
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 0x4f233f
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 0x4f2440
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 0x4f249c
dec ecx
or ecx, 0xfffffff8
inc ecx
jne 0x4f24a0
inc edx
inc esi
inc eax
cmp eax, 8
jl 0x4f247a
inc edi
cmp edi, 7
jl 0x4f246e
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 0x4f24b2
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 0x4f24f0
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 0x4f2527
inc edi
cmp edi, 8
jl 0x4f251e
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 0x4f2545
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 0x4f2600
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 0x4f2602
ret

Function at 0x4f2620
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 0x4f2638
pop edi
pop esi
ret

Function at 0x4f2660
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 0x4f266e
pop ebx
ret

Function at 0x4f2700
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 0x4f2702
ret
Function at 0x4f2720
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 0x4f2794
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 0x4f2746
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 0x4f275e
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 0x4f2778
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 0x4f2796
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4

Function at 0x4f27c0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x40
xor eax, eax
movsx edx, byte [eax + 0x5d17f8]
inc eax
mov dl, byte [edx + ecx + 0x63]
cmp eax, 0x40
mov byte [esp + eax - 1], dl
jl 0x4f27c5
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 0x4f48a0
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.004f5000
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 + 0x5d1e50]
inc eax
mov cl, byte [esp + edx + 0x3f]
cmp eax, 0x38
mov byte [esp + eax + 7], cl
jl 0x4f48e9
mov edx, dword [esp + 0x88]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.004f4920
pop edi
pop esi
add esp, 0x78
ret 8