joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015cf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10263fdc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push 0x1024d710
push str.CertVerify
push str.Service
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret

Function at 0x10015d80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10263fdc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push 0x1024d710
push str.YZTRemoteSeal
push str.Service
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret

Function at 0x10015e10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10263fdc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push 0x1024d710
push str.ExpertSign
push str.Service
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret
Function at 0x10015ea0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10263fdc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push 0x1024d710
push str.ExpertCASS
push str.Service
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret

Function at 0x10015f30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10263fdc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push 0x1024d710
push str.SCSvc
push str.SCSign
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret

Function at 0x10015fd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10263fdc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov dword [ebp - 0x408], 0
mov word [ebp - 0x404], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 0x200
lea edx, [ebp - 0x404]
push edx
push 0x1024d710
push str.SCAppKey
push str.SCSign
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_wchar_t_const___int_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret
Function at 0x10016950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10263fdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, esi
mov dword [ebp - 0x210], 0
call dword [sym.imp.szutils.dll_public:_bool___thiscall_TCommon::TString::IsEmpty_void_const]
test al, al
je 0x100169d8
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call dword [0x101d9b14]
push str.SZCA_
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_class_TCommon::TString_const____thiscall_TCommon::TString::operator_wchar_t_const__]
mov ecx, esi
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.szutils.dll_void___cdecl_TCommon::TCreateDirectory_wchar_t_const__]
add esp, 4
push esi
mov ecx, edi
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_class_TCommon::TString_const__]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.101ce9e2
mov esp, ebp
pop ebp
ret

Function at 0x10016a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x1024fcfc
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x10016a9b
mov edx, dword [ebp - 4]
push esi
push edi
push 2
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fseek]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_ftell]
mov ecx, dword [ebp - 4]
push ecx
mov edi, eax
call dword [sym.imp.MSVCR100.dll_rewind]
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x10016a6a
mov edx, dword [ebp - 4]
push edx
push edi
push 1
push esi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov edi, eax
mov ecx, ebx
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TBuffer::Empty_void_]
push edi
push esi
mov ecx, ebx
call dword [sym.imp.szutils.dll_public:_int___thiscall_TCommon::TBuffer::Append_unsigned_char_const___unsigned_long_int_]
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 8
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10016ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10016aff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1001c990
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d65c9
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10263fdc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x12c]
call dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TBuffer::Empty_void_]
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001c9e7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1001c9e7
push ecx
push eax
lea ecx, [edi + 0x12c]
call dword [sym.imp.szutils.dll_public:_int___thiscall_TCommon::TBuffer::Append_unsigned_char_const___unsigned_long_int_]
mov dword [edi + 0x10], 2
jmp 0x1001ca4b
test byte [0x10268890], 1
jne 0x1001ca2a
or dword [0x10268890], 1
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.szutils.dll_public:_void___thiscall_TCommon::TString::constructor_void_]
mov ecx, 0x10268778
call esi
mov ecx, 0x10268804
mov byte [ebp - 4], 1
call esi
push 0x101d8be0
call fcn.101cebcb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x10268778
call dword [sym.imp.szutils.dll_public:_wchar_t_const____thiscall_TCommon::TString::operator_wchar_t_const__void_const]
push eax
push 1
push 0x1024f970
push str.GlobalSetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x10], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1001f3d0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_malloc]
push edi
push 0x288
call esi
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov edi, eax
add esp, 4
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], 0x288
call ebx
cmp eax, 0x6f
jne 0x1001f41b
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 4]
push ecx
call esi
add esp, 8
lea edx, [ebp - 4]
mov edi, eax
push edx
push edi
call ebx
test eax, eax
jne 0x1001f4d3
mov esi, edi
test edi, edi
je 0x1001f4bd
mov eax, 6
cmp dword [esi + 0x1a0], eax
je 0x1001f454
mov esi, dword [esi]
test esi, esi
jne 0x1001f432
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x10c]
push 0x102509a4
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
movzx eax, byte [esi + 0x197]
push ecx
movzx ecx, byte [esi + 0x196]
push edx
movzx edx, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push str._02X__02X__02X__02X__02X__02X
push 0x12
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
mov edx, dword [ebp + 0xc]
add esi, 0x1b0
push esi
push 0x10
push edx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0x38
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10024db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d1b8a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10263fdc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi], ebx
push 8
mov dword [ebp - 4], ebx
call sub.mfc100u.dll_new
add esp, 4
cmp eax, ebx
je 0x10024eb5
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov dword [edi], ebx
push 8
mov byte [ebp - 4], 2
call sub.mfc100u.dll_new
add esp, 4
cmp eax, ebx
je 0x10024e90
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x40], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov byte [esi + 0x7e], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x10256524
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x10256524
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3

Function at 0x10034e70
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 0x24]
cmp dword [esi], 5
je 0x10034e8b
push edi
call fcn.100348c0
add esp, 4
test eax, eax
jle 0x10034ed4
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x20]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.10035650
add esp, 8
test esi, esi
jg 0x10034ed2
push esi
call fcn.10054f40
add esp, 4
test eax, eax
je 0x10034ed2
push 0xa
push edi
call fcn.10035670
add esp, 8
mov eax, esi
pop edi
pop esi
ret
Function at 0x10036970
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
movzx edi, byte [esp + 0x10]
mov eax, edi
and eax, 1
add esi, ecx
add edx, ecx
test ecx, ecx
je 0x100369a3
push ebx
lea esp, [esp]
movzx ebx, byte [edx - 1]
dec edx
xor ebx, edi
add eax, ebx
dec esi
mov byte [esi], al
shr eax, 8
dec ecx
jne 0x10036990
pop ebx
pop edi
pop esi
ret

Function at 0x1003f430
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x10042560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, edi
mov ecx, ebp
cmp edi, 4
jb 0x10042588
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10042590
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x10042574
test esi, esi
je case.0x1004264e.2
movzx eax, byte [edx]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x100425d7
cmp esi, 1
jbe case.0x1004264e.2
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x100425d7
cmp esi, 2
jbe case.0x1004264e.2
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x100425d7
cmp esi, 3
jbe case.0x1004264e.2
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jle case.0x1004264e.2
mov ebx, dword [esp + 0x10]
xor edx, edx
test edi, edi
jle 0x10042600
mov esi, ebx
mov eax, ebp
sub esi, ebp
mov cl, byte [esi + eax]
cmp cl, byte [eax]
jne 0x10042600
inc edx
inc eax
cmp edx, edi
jl 0x100425f3
lea eax, [edi - 1]
test eax, eax
js 0x1004261f
mov esi, ebx
lea ecx, [eax + ebp]
sub esi, ebp
mov edi, edi
cmp byte [ecx + esi], 0
jne 0x1004261f
cmp byte [ecx], 0xff
jne 0x1004261f
dec ecx
dec eax
jns 0x10042610
cmp edx, eax
jl case.0x1004264e.2
jle 0x10042630
pop esi
pop ebp
lea eax, [edx*8]
pop ebx
ret
mov cl, byte [edx + ebx]
mov bl, byte [edx + ebp]
mov al, bl
xor al, cl
mov byte [esp + 0x10], cl
movzx ecx, al
dec ecx
cmp ecx, 0x7e
ja case.0x1004264e.2
movzx ecx, byte [ecx + 0x100426c0]
jmp dword [ecx*4 + 0x100426a0]
mov esi, 7
jmp 0x10042684
mov esi, 6
jmp 0x10042684
mov esi, 5
jmp 0x10042684
mov esi, 4
jmp 0x10042684
mov esi, 3
jmp 0x10042684
mov esi, 2
jmp 0x10042684
mov esi, 1
test byte [esp + 0x10], al
jne case.0x1004264e.2
and bl, al
cmp bl, al
jne case.0x1004264e.2
lea eax, [esi + edx*8]
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x10048060
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x100480a4
mov al, byte [edx]
test al, al
je 0x100480a4
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x10048077
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100480b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
test esi, esi
je 0x10048107
mov al, byte [esi]
test al, al
je 0x10048107
push ebx
mov ebx, 0x100
jmp 0x100480d0
movsx eax, al
push eax
call fcn.1004bcb0
or eax, ebx
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add esp, 4
rol edi, cl
inc esi
add ebx, 0x100
xor edi, eax
mov al, byte [esi]
test al, al
jne 0x100480d0
mov eax, edi
shr eax, 0x10
pop ebx
xor eax, edi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x1004ac90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x1004ad1b
mov edx, dword [esp + 8]
lea ecx, [edx - 1]
not edx
shr edx, 0x1f
push esi
mov esi, dword [edi + 4]
shr ecx, 0x1f
and ecx, edx
mov edx, dword [eax + 4]
xor edx, esi
dec ecx
and edx, ecx
xor esi, edx
mov dword [edi + 4], esi
xor dword [eax + 4], edx
mov esi, dword [edi + 0xc]
mov edx, dword [eax + 0xc]
xor edx, esi
and edx, ecx
xor esi, edx
mov dword [edi + 0xc], esi
xor dword [eax + 0xc], edx
mov esi, dword [edi + 0x10]
mov edx, dword [eax + 0x10]
xor edx, esi
and edx, ecx
and edx, 4
xor esi, edx
mov dword [edi + 0x10], esi
xor dword [eax + 0x10], edx
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x1004ad1a
push ebx
push ebp
mov edx, dword [edi]
mov ebx, dword [edx + esi*4]
lea ebp, [edx + esi*4]
mov edx, dword [eax]
mov edx, dword [edx + esi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + esi*4], edx
lea ebx, [ebx + esi*4]
inc esi
cmp esi, dword [esp + 0x20]
jl 0x1004acf3
pop ebp
pop ebx
pop esi
pop edi
ret

Function at 0x1004c5b0
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x1004c610
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret

Function at 0x1004cbb0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
lea eax, [ecx + 1]
ret
Function at 0x1004cc50
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret
Function at 0x10054460
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x100544a1
push 0xc3
push str.crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.1003c300
add esp, 0x14
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x10054510
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.101cf170
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp esi, 0xffffffff
jne 0x1005454c
push 0x52
push str.crypto_bio_b_sock2.c
push 0x87
push 0x8a
push 0x20
call fcn.1003c300
add esp, 0x14
xor eax, eax
pop esi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
and eax, 1
push eax
push esi
call fcn.10054460
add esp, 8
test eax, eax
jne 0x1005456b
pop ebx
pop esi
pop ecx
ret
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x100545b4
push 4
lea ecx, [esp + 0x10]
push ecx
push 8
push 0xffff
push esi
call edi
test eax, eax
je 0x100545b4
push 0x5c
push str.crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call fcn.1003c300
push 0x5d
push str.crypto_bio_b_sock2.c
push 0x89
jmp 0x10054641
test bl, 0x10
je 0x100545f0
push 4
lea edx, [esp + 0x10]
push edx
push 1
push 6
push esi
call edi
test eax, eax
je 0x100545f0
push 0x65
push str.crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0xe
push 2
call fcn.1003c300
push 0x66
push str.crypto_bio_b_sock2.c
push 0x8a
jmp 0x10054641
mov edi, dword [esp + 0x18]
push edi
call fcn.100546d0
add esp, 4
push eax
push edi
call fcn.100546c0
add esp, 4
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10054657
push eax
call fcn.10054f40
add esp, 4
test eax, eax
jne 0x10054650
push 0x6e
push str.crypto_bio_b_sock2.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
push 2
call fcn.1003c300
push 0x6f
push str.crypto_bio_b_sock2.c
push 0x67
push 0x8a
push 0x20
call fcn.1003c300
add esp, 0x28
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
pop edi
pop ebx
mov eax, 1
pop esi
pop ecx
ret