joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453e1d
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x528f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.00453daa
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.0045399b
xor ebx, ebx
push 0x206
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea ebx, [ebp + eax*2 - 0x20c]
jmp 0x453eaf
lea eax, [ebx - 2]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x453eb9
cmp cx, 0x2f
je 0x453eb9
mov ebx, eax
lea eax, [ebp - 0x20c]
cmp ebx, eax
ja 0x453e9b
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 0x18
test eax, eax
je 0x453eed
and word [eax], 0
cmp word [ebp - 0x20c], 0
lea eax, [ebp - 0x20c]
jne 0x453f0b
push str.log.tlg
push edi
push eax
call sym.QQProtectUpd.exe_wcslcpy
jmp 0x453f17
push str..tlg
push edi
push eax
call sym.QQProtectUpd.exe_wcslcat
add esp, 0xc
push 1
lea ebx, [esi + 0x24]
and word [ebx], 0
push 0x1a
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebx], 0
je 0x453f58
push ebx
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [esi + eax*2 + 0x22], 0x5c
pop ecx
je 0x453f58
push 0x4fed54
push edi
push ebx
call sym.QQProtectUpd.exe_wcslcat
add esp, 0xc
push str.Tencent_
push edi
push ebx
call sym.QQProtectUpd.exe_wcslcat
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.Logs_
push edi
push ebx
call sym.QQProtectUpd.exe_wcslcat
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call sym.QQProtectUpd.exe_wcslcat
add esp, 0xc
push str.NoTXLog
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x453fba
mov byte [esi + 0x23f], 1
jmp 0x453fc1
mov ecx, esi
call fcn.0045383d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb642
leave
ret
Function at 0x454229
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19010
call fcn.004cb810
mov eax, dword [0x528f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x23f], 0
push edi
mov dword [ebp - 0x19010], esi
jne 0x4543d4
or dword [ebp - 0x19008], 0xffffffff
lea edi, [esi + 0x24]
push edi
lea ecx, [ebp - 0x19008]
call fcn.00453cb7
test eax, eax
jne 0x4542d9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x454298
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
lea ecx, [ebp - 0x19008]
call fcn.00453cb7
test eax, eax
jne 0x4542d9
xor ebx, ebx
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea ecx, [ebp - 0x19008]
call fcn.00453cb7
test eax, eax
jne 0x4542b8
inc ebx
cmp ebx, 3
jb 0x45429a
cmp ebx, 3
jne 0x4542d9
cmp dword [ebp - 0x19008], 0xffffffff
je 0x4542d2
push dword [ebp - 0x19008]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x45441f
cmp dword [ebp - 0x19008], 0xffffffff
je 0x4542f4
push 2
push 0
push 0
push dword [ebp - 0x19008]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x18fff
xor edi, edi
lea eax, [ebp - 0x19003]
push edi
push eax
mov byte [ebp - 0x19004], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esi + 0x240]
mov dword [ebp - 0x1900c], edi
call fcn.0049ea92
test eax, eax
jbe 0x4543ac
mov ebx, 0x19000
push dword [ebp - 0x1900c]
lea ecx, [esi + 0x240]
call fcn.0047d925
mov esi, dword [eax]
mov eax, dword [esi]
add eax, edi
cmp eax, ebx
jbe 0x454360
push edi
lea eax, [ebp - 0x19004]
push eax
lea ecx, [ebp - 0x19008]
call fcn.00453814
xor edi, edi
mov eax, dword [esi]
cmp eax, ebx
push eax
push esi
jbe 0x454375
lea ecx, [ebp - 0x19008]
call fcn.00453814
jmp 0x454387
lea eax, [ebp + edi - 0x19004]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add edi, dword [esi]
mov ecx, dword [ebp - 0x19010]
inc dword [ebp - 0x1900c]
add ecx, 0x240
call fcn.0049ea92
cmp dword [ebp - 0x1900c], eax
mov esi, dword [ebp - 0x19010]
jb 0x454330
push edi
lea eax, [ebp - 0x19004]
push eax
lea ecx, [ebp - 0x19008]
call fcn.00453814
cmp dword [ebp - 0x19008], 0xffffffff
je 0x4543d4
push dword [ebp - 0x19008]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x240
mov ecx, esi
xor edi, edi
call fcn.0049ea92
test eax, eax
jbe 0x454415
cmp byte [ebp + 8], 0
je 0x4543fe
push edi
mov ecx, esi
call fcn.0047d925
push dword [eax]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push edi
mov ecx, esi
call fcn.0047d925
and dword [eax], 0
mov ecx, esi
inc edi
call fcn.0049ea92
cmp edi, eax
jb 0x4543e7
mov ecx, esi
call fcn.0045be21
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb642
leave
ret 4
Function at 0x454430
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x528f34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x23f], 0
push edi
mov dword [ebp - 0x410], esi
jne 0x4545d7
or dword [ebp - 0x408], 0xffffffff
lea edi, [esi + 0x24]
push edi
lea ecx, [ebp - 0x408]
call fcn.00453cb7
test eax, eax
jne 0x4544dc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x45449b
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
lea ecx, [ebp - 0x408]
call fcn.00453cb7
test eax, eax
jne 0x4544dc
xor ebx, ebx
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
lea ecx, [ebp - 0x408]
call fcn.00453cb7
test eax, eax
jne 0x4544bb
inc ebx
cmp ebx, 3
jb 0x45449d
cmp ebx, 3
jne 0x4544dc
cmp dword [ebp - 0x408], 0xffffffff
je 0x4544d5
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x454622
cmp dword [ebp - 0x408], 0xffffffff
je 0x4544f7
push 2
push 0
push 0
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x3ff
xor edi, edi
lea eax, [ebp - 0x403]
push edi
push eax
mov byte [ebp - 0x404], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esi + 0x240]
mov dword [ebp - 0x40c], edi
call fcn.0049ea92
test eax, eax
jbe 0x4545af
mov ebx, 0x400
push dword [ebp - 0x40c]
lea ecx, [esi + 0x240]
call fcn.0047d925
mov esi, dword [eax]
mov eax, dword [esi]
add eax, edi
cmp eax, ebx
jbe 0x454563
push edi
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.00453814
xor edi, edi
mov eax, dword [esi]
cmp eax, ebx
push eax
push esi
jbe 0x454578
lea ecx, [ebp - 0x408]
call fcn.00453814
jmp 0x45458a
lea eax, [ebp + edi - 0x404]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add edi, dword [esi]
mov ecx, dword [ebp - 0x410]
inc dword [ebp - 0x40c]
add ecx, 0x240
call fcn.0049ea92
cmp dword [ebp - 0x40c], eax
mov esi, dword [ebp - 0x410]
jb 0x454533
push edi
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.00453814
cmp dword [ebp - 0x408], 0xffffffff
je 0x4545d7
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x240
mov ecx, esi
xor edi, edi
call fcn.0049ea92
test eax, eax
jbe 0x454618
cmp byte [ebp + 8], 0
je 0x454601
push edi
mov ecx, esi
call fcn.0047d925
push dword [eax]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push edi
mov ecx, esi
call fcn.0047d925
and dword [eax], 0
mov ecx, esi
inc edi
call fcn.0049ea92
cmp edi, eax
jb 0x4545ea
mov ecx, esi
call fcn.0045be21
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb642
leave
ret 4
Function at 0x45bb28
Capabilities:
Create thread

Disassembly:
push 0x18
mov eax, 0x4d4aed
call fcn.004cbc30
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xc], edi
jne 0x45bb42
call fcn.0045bb0d
cmp dword [esi + 4], edi
je 0x45bb4f
xor eax, eax
call fcn.004cbd08
ret
push 0x4dcd18
push str..CTXThreadModel::StartThread
push str.CTXThreadModel::StartThread
push 1
push 0x103
lea eax, [ebp - 0x24]
push str.....SourceCommonThreadModelThreadModel.cpp
push eax
call fcn.0045ba29
add esp, 0x1c
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0x45b9f6
push edi
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
jg 0x45bbac
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0045baa8
mov eax, edi
jmp 0x45bb49
cmp dword [esi + 0x10], edi
mov dword [esi + 4], eax
je 0x45bbbd
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esi + 0x18], edi
xor edi, edi
mov dword [esi + 0xc], 1
inc edi
jmp 0x45bb9c

Function at 0x45bc3f
Capabilities:
Terminate thread

Disassembly:
push 0x14
mov eax, 0x4d3934
call fcn.004cbc30
mov esi, ecx
xor eax, eax
inc eax
cmp dword [esi + 4], 0
mov dword [esi + 0x18], eax
je 0x45bce2
push 0x4dcd18
push str..CTXThreadModel::StopThread
mov edi, str.CTXThreadModel::StopThread
push edi
push eax
push 0x151
mov ebx, str.....SourceCommonThreadModelThreadModel.cpp
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0045ba29
add esp, 0x1c
push dword [esi + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45bccf
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp + 8]
push eax
push 0x4dd0ec
push 0x4e623c
push 2
push edi
push 0x15a
push ebx
mov dword [ebp + 8], edi
call fcn.0042b380
add esp, 0x1c
mov ecx, esi
call fcn.0045bb0d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0045baa8
call fcn.004cbd08
ret 4

Function at 0x45bcea
Capabilities:
Terminate thread

Disassembly:
push 0x14
mov eax, 0x4d3934
call fcn.004cbc30
mov ebx, ecx
cmp dword [ebx + 4], 0
jne 0x45bd05
xor eax, eax
jmp 0x45bd8c
push 0x4dcd18
push str..CTXThreadModel::WaitThread
mov edi, str.CTXThreadModel::WaitThread
push edi
push 1
push 0x17a
lea eax, [ebp - 0x20]
push str.....SourceCommonThreadModelThreadModel.cpp
push eax
call fcn.0045ba29
add esp, 0x1c
push dword [ebp + 8]
and dword [ebp - 4], 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x45bd77
lea eax, [ebp + 8]
push eax
push 0x4dd0ec
push 0x4e623c
push 2
push edi
push 0x187
push str.....SourceCommonThreadModelThreadModel.cpp
mov dword [ebp + 8], edi
call fcn.0042b380
add esp, 0x1c
push 1
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, ebx
call fcn.0045bb0d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0045baa8
mov eax, esi
call fcn.004cbd08
ret 4
Function at 0x45be5c
Capabilities:
Terminate thread

Disassembly:
push 8
mov eax, 0x4d0f2b
call fcn.004cbc30
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], method.ATL::CComObjectNoLock_class_CTXTimerCallback_class_QPU::UI::CErrorDlg__.virtual_20
mov eax, dword [esi + 4]
and dword [ebp - 4], 0
test eax, eax
je 0x45bebf
cmp dword [esi + 0xc], 0
je 0x45beb8
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [ebp - 0x10]
push ecx
push 0x4dd0ec
push 0x4e623c
mov eax, str.CTXThreadModel::CTXThreadModel
push 2
push eax
push 0xdb
push str.....SourceCommonThreadModelThreadModel.cpp
mov dword [ebp - 0x10], eax
call fcn.0042b380
add esp, 0x1c
mov ecx, esi
call fcn.0045bb0d
push dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x14]
call edi
add esi, 0x1c
mov ecx, esi
call fcn.0045be21
mov ecx, esi
call fcn.00474371
call fcn.004cbd08
ret
Function at 0x462991
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x210
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
inc ebx
cmp dword [ebp + 8], edi
mov esi, ecx
mov dword [eax], edi
je 0x4629c5
mov eax, dword [esi + 0xbc]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], ebx
cmp dword [ebp + 0xc], edi
je 0x4629dc
mov eax, dword [esi + 0xbc]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], ebx
cmp dword [ebp + 0xc], edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x3e8
push edi
je 0x4629ff
cmp dword [ebp + 8], edi
lea eax, [ebp - 0x10c]
push eax
jne 0x462a00
push edi
jmp 0x462a07
push edi
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi + 0xbc]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
je 0x462a8f
cmp eax, 0xffffffff
jne 0x462a4f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0xd8]
push str.Id__lu___1__nCnt
push 0x4e6dfc
push 3
push str.CTXHttpDownload::SelectSocket
push 0x783
push str.....SourceCommonNetworkHttpHttpDownload.cpp
call fcn.00442b40
add esp, 0x1c
cmp dword [ebp + 0xc], edi
je 0x462a6f
lea eax, [ebp - 0x10c]
push eax
push dword [esi + 0xbc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x462a6f
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
cmp dword [ebp + 8], edi
je 0x462a8f
lea eax, [ebp - 0x210]
push eax
push dword [esi + 0xbc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x462a8f
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x463824
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x7c]
mov dword [eax], ebx
call sym.QQProtectUpd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x4004667f
mov dword [edi], ebx
push dword [esi + 0xbc]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 4], ebx
jne 0x4638cf
push dword [esi + 0x78]
push dword [esi + 0xb8]
push dword [esi + 0xd8]
push str.Id__lu__ioctlsocket_dwLen__0_Server_Close_TCP_m_bReuseTCP__d__dwTmpRecvCurPos__u_
push 0x4e6dfc
push 3
push str.CTXHttpDownload::ReadData
push 0xa02
push str.....SourceCommonNetworkHttpHttpDownload.cpp
call fcn.00442b40
add esp, 0x24
push dword [esi + 0xbc]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
inc eax
mov dword [esi + 0xbc], ebx
mov dword [edi], eax
cmp dword [esi + 0xb8], ebx
je 0x46397e
cmp dword [esi + 0x78], ebx
jne 0x46397e
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], ebx
xor eax, eax
jmp 0x46397e
cmp dword [esi + 0x70], ebx
jne 0x4638fa
push 0x2801
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], 0x2800
call fcn.004cb568
mov ecx, dword [esi + 0x74]
inc ecx
push ecx
push ebx
push eax
mov dword [esi + 0x70], eax
call sub.MSVCR80.dll_memset
add esp, 0x10
mov edx, dword [ebp - 4]
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x74]
lea edi, [ecx + edx]
cmp edi, eax
jbe 0x46390e
sub eax, ecx
mov edx, eax
mov eax, dword [esi + 0x70]
push ebx
push edx
add eax, ecx
push eax
push dword [esi + 0xbc]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x463945
cmp edi, ebx
je 0x463945
add dword [esi + 0x78], edi
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x78]
push dword [ebp + 0xc]
mov byte [eax + ecx], bl
mov ecx, esi
call sym.QQProtectUpd.exe_private:_int___thiscall_CTXHttpDownload::AnalyseResponseData_int__
jmp 0x46397e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push dword [esi + 0xd8]
push str.Id__lu__recv__d__Server_Close_TCP_dwLastError__u_
push 0x4e6dfc
push 3
push str.CTXHttpDownload::ReadData
push 0xa26
push str.....SourceCommonNetworkHttpHttpDownload.cpp
call fcn.00442b40
mov ecx, dword [ebp + 8]
xor eax, eax
add esp, 0x24
inc eax
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4698f8
Capabilities:
Enumerate pe sections

Disassembly:
push 0x84
mov eax, 0x4d25f3
call fcn.004cbc99
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, ecx
lea ecx, [eax + 4]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], esi
call fcn.00468043
cmp esi, 0x16
jb 0x46993d
lea eax, [esi + ebx - 0x16]
jmp 0x469939
cmp byte [eax], 0x50
jne 0x469938
cmp dword [eax], 0x6054b50
je 0x469947
dec eax
cmp eax, ebx
jae 0x46992b
xor al, al
call fcn.004cbd1c
ret 0xc
mov cx, word [eax + 0xa]
cmp cx, word [eax + 8]
jne 0x46993d
mov cx, word [eax + 6]
cmp cx, word [eax + 4]
jne 0x46993d
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov edi, dword [eax + 0x10]
lea eax, [edi + 4]
cmp eax, esi
mov dword [ebp - 4], ecx
jae 0x469a91
lea esi, [ebx + edi]
cmp dword [esi], 0x2014b50
jne 0x469a91
lea eax, [edi + 0x2e]
cmp dword [ebp - 0x58], eax
jb 0x469ab5
movzx ecx, word [esi + 0x1e]
movzx eax, word [esi + 0x20]
add eax, ecx
movzx ecx, word [esi + 0x1c]
lea eax, [eax + ecx + 0x2e]
add edi, eax
cmp dword [ebp - 0x58], edi
mov dword [ebp - 0x74], edi
jb 0x469ab5
mov eax, dword [esi + 0x2a]
lea ecx, [eax + 0x1e]
cmp dword [ebp - 0x58], ecx
jb 0x469ab5
add ebx, eax
movzx edx, word [ebx + 0x1a]
movzx ecx, word [ebx + 0x1c]
add ecx, edx
mov edx, dword [esi + 0x14]
lea edi, [ecx + edx + 0x1e]
add eax, edi
cmp dword [ebp - 0x58], eax
jb 0x469ab5
lea ecx, [ebp - 0x54]
call fcn.004659df
movzx eax, word [ebx + 0x1a]
push eax
lea eax, [ebx + 0x1e]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call dword [0x4dc37c]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
sub edi, dword [esi + 0x14]
mov ecx, dword [ebp - 0x24]
add edi, dword [esi + 0x2a]
and ecx, 0xfffffff8
mov dword [ebp - 0x38], edi
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x2c], eax
mov ax, word [ebx + 6]
mov word [ebp - 0x28], ax
mov ax, word [esi + 0xa]
mov word [ebp - 0x26], ax
mov eax, dword [esi + 0x26]
shr eax, 4
and eax, 1
or eax, ecx
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x24], eax
je 0x469a6a
test al, 1
jne 0x469a76
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00468569
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00435970
mov ebx, dword [ebp - 0x5c]
lea eax, [edi + 4]
cmp eax, dword [ebp - 0x58]
jb 0x469977
mov esi, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push eax
lea ecx, [esi + 4]
call fcn.0046844b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
mov dword [esi], ebx
call fcn.00436c20
mov al, 1
jmp 0x46993f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00436c20
jmp 0x46993d
Function at 0x46cc4c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [0x5294dc]
cmp dword [edi + 0x22c], 0
je 0x46cc6b
mov eax, dword [ebp + 8]
mov dword [edi + 0x230], eax
pop edi
pop ebp
ret
mov eax, str._nMIRACL_error_from_routine
call fcn.0046cc22
mov eax, dword [edi + 0x20]
cmp eax, 0x18
jge 0x46cc8a
mov eax, dword [edi + eax*4 + 0x24]
mov eax, dword [eax*4 + 0x528778]
jmp 0x46cc8f
mov eax, 0x4e9de0
call fcn.0046cc22
mov ebx, dword [sym.imp.MSVCR80.dll___iob_func]
call ebx
add eax, 0x20
push eax
push 0xa
call dword [sym.imp.MSVCR80.dll_fputc]
mov esi, dword [edi + 0x20]
dec esi
pop ecx
pop ecx
js 0x46ccf0
lea edi, [edi + esi*4 + 0x24]
mov eax, str.______________called_from
call fcn.0046cc22
cmp esi, 0x18
jge 0x46ccce
mov eax, dword [edi]
mov eax, dword [eax*4 + 0x528778]
jmp 0x46ccd3
mov eax, 0x4e9de0
call fcn.0046cc22
call ebx
add eax, 0x20
push eax
push 0xa
call dword [sym.imp.MSVCR80.dll_fputc]
dec esi
pop ecx
sub edi, 4
test esi, esi
pop ecx
jge 0x46ccb4
mov eax, dword [ebp + 8]
dec eax
cmp eax, 0x17
ja case.default.0x46ccfd
jmp dword [eax*4 + 0x46cdc8]
mov eax, str.Number_base_too_big_for_representation_n
jmp 0x46cdb9
mov eax, str.Division_by_zero_attempted_n
jmp 0x46cdb9
mov eax, str.Overflow___Number_too_big_n
jmp 0x46cdb9
mov eax, str.Internal_result_is_negative_n
jmp 0x46cdb9
mov eax, str.Input_format_error_n
jmp 0x46cdb9
mov eax, str.Illegal_number_base_n
jmp 0x46cdb9
mov eax, str.Illegal_parameter_usage_n
jmp 0x46cdb9
mov eax, str.Out_of_space_n
jmp 0x46cdb9
mov eax, str.Even_root_of_a_negative_number_n
jmp 0x46cdb9
mov eax, str.Raising_integer_to_negative_power_n
jmp 0x46cdb9
mov eax, str.Attempt_to_take_illegal_root_n
jmp 0x46cdb9
mov eax, str.Integer_operation_attempted_on_Flash_number_n
jmp 0x46cdb9
mov eax, str.Flash_overflow_n
jmp 0x46cdb9
mov eax, str.Numbers_too_big_n
jmp 0x46cdb9
mov eax, str.Log_of_a_non_positive_number_n
jmp 0x46cdb9
mov eax, str.Flash_to_double_conversation_failure_n
jmp 0x46cdb9
mov eax, str.I_O_buffer_overflow_n
jmp 0x46cdb9
mov eax, str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x46cdb9
mov eax, str.Illegal_modulus__n
jmp 0x46cdb9
mov eax, str.No_modulus_defined_n
jmp 0x46cdb9
mov eax, str.Exponent_too_big_n
jmp 0x46cdb9
mov eax, str.Number_Base_must_be_power_of_2_n
jmp 0x46cdb9
mov eax, str.Specified_double_length_type_isnt_double_length_n
jmp 0x46cdb9
mov eax, str.Specified_basis_is_NOT_irreducible_n
call fcn.0046cc22
push 0
call dword [sym.imp.MSVCR80.dll_exit]
mov edi, edi
add al, 0xcd
inc esi
add byte [esi], cl
int 0x46
add byte [eax], bl
int 0x46
add byte [edx], ah
int 0x46
add byte [ecx*8 - 0x32c9ffba], ch
inc esi
add byte [0x440046cd], bh
int 0x46
add byte [ebx - 0x33], cl
inc esi
add byte [edx - 0x33], dl
inc esi
add byte [ecx - 0x33], bl
inc esi
add byte [eax - 0x33], ah
inc esi
add byte [edi - 0x33], ah
inc esi
add byte [esi - 0x33], ch
inc esi
add byte [ebp - 0x33], dh
inc esi
add byte [ebp + ecx*8 + 0x46], bh
add byte [ebx - 0x75ffb933], al
int 0x46
add byte [ecx - 0x67ffb933], dl
int 0x46
add byte [edi - 0x59ffb933], bl
int 0x46
add byte [ebp - 0x4bffb933], ch
int 0x46
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
Function at 0x46cf0b
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x5294dc]
and dword [ecx + 0x134], 0
and dword [ecx + 0x130], 0
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
inc esi
xor dword [ecx + 0x9c], edi
mov dword [ebp + 8], 0xe
push ebx
mov eax, dword [ebp + 8]
cdq
push 0x25
pop ebx
idiv ebx
add dword [ebp + 8], 0xe
sub edi, esi
lea eax, [ecx + edx*4 + 0x9c]
xor dword [eax], esi
cmp dword [ebp + 8], 0x206
mov eax, esi
mov esi, edi
mov edi, eax
jl 0x46cf38
mov esi, 0x3e8
pop ebx
call fcn.0046ce91
dec esi
jne 0x46cf65
pop edi
pop esi
pop ebp
ret