joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9015
Capabilities:
Accept command line arguments

Disassembly:
push 0x20
mov eax, 0x590f1d
call fcn.00584f68
mov esi, ecx
mov dword [ebp - 0x1c], esi
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
lea ecx, [esi + 0x240]
push ebx
mov dword [ebp - 4], ebx
call fcn.004a820e
lea edi, [esi + 0x238]
mov byte [esi + 0x23d], 1
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], ebx
mov byte [esi + 0x23c], 1
mov dword [esi + 0x234], 3
mov dword [edi], 0x3e8
mov byte [esi + 0x23e], 1
mov byte [esi + 0x23f], bl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x14]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call sym.txupd.exe_void___cdecl_Util::Convert::SplitCmdString_class_CTXStringW_const___class_std::vector_class_CTXStringW__class_std::allocator_class_CTXStringW____
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ecx
je 0x4a918b
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
sar eax, 2
cmp eax, ecx
mov dword [ebp - 0x18], eax
jbe 0x4a918b
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
call fcn.004a76a1
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4a917c
cmp word [eax], 0x2f
jne 0x4a9121
movzx eax, word [eax + 2]
push eax
call dword [sym.imp.MSVCR80.dll_iswdigit]
test eax, eax
pop ecx
je 0x4a911e
mov eax, dword [ebp - 0x10]
cmp word [eax + 4], bx
jne 0x4a911e
movzx eax, word [eax + 2]
sub eax, 0x30
jmp 0x4a9144
mov eax, dword [ebp - 0x10]
push 0xa
push str._loglevel:
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4a914c
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
pop ecx
mov dword [esi + 0x234], eax
jmp 0x4a917c
push 8
push str._logbuf:
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4a917c
push edi
push dword [ebp - 0x10]
call sym.txupd.exe_bool___cdecl_Util::Convert::StringToDWordW_wchar_t_const___unsigned_long_int__
add dword [edi], 8
cmp dword [edi], 1
pop ecx
pop ecx
ja 0x4a917c
mov byte [esi + 0x23d], bl
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jb 0x4a90d9
mov ecx, esi
call fcn.004a7a48
test eax, eax
jne 0x4a919c
mov byte [esi + 0x23c], bl
mov ecx, esi
call fcn.004a7dc4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004a8c51
mov eax, esi
call fcn.00585040
ret
Function at 0x4adbcf
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
cmp dword [eax + 8], 0xffffffff
mov dword [ebp - 0x418], eax
jne 0x4addad
push ebx
push esi
push edi
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
push esi
lea eax, [ebp - 0x412]
push ebx
push eax
mov word [ebp - 0x414], bx
call sub.MSVCR80.dll_memset
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edi, [ebp + eax*2 - 0x414]
jmp 0x4adc6a
lea eax, [edi - 2]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x4adc74
cmp cx, 0x2f
je 0x4adc74
mov edi, eax
lea eax, [ebp - 0x414]
cmp edi, eax
ja 0x4adc56
push edi
call dword [sym.imp.MSVCR80.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x414]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
lea eax, [ebp - 0x414]
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 0x18
cmp eax, ebx
je 0x4adca7
mov word [eax], bx
cmp word [ebp - 0x414], bx
lea eax, [ebp - 0x414]
jne 0x4adcc4
push str.perf.tlg
push esi
push eax
call sym.txupd.exe_wcslcpy
jmp 0x4adcd0
push str..perf.tlg
push esi
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x20c]
push eax
mov word [ebp - 0x20c], bx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x20c], bx
je 0x4add29
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebp + eax*2 - 0x20e], 0x5c
pop ecx
je 0x4add29
push 0x5d13ac
lea eax, [ebp - 0x20c]
push esi
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
push str.Tencent_
lea eax, [ebp - 0x20c]
push esi
push eax
call sym.txupd.exe_wcslcat
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
push str.Logs_
lea eax, [ebp - 0x20c]
push esi
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x418]
pop edi
pop esi
mov dword [ecx + 8], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00584870
leave
ret
Function at 0x4addb9
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.MSVCR80.dll_wcslen]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
call esi
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
call esi
mov edi, dword [ebp + 8]
push dword [edi + 0x38]
mov ebx, eax
mov dword [ebp - 8], ebx
call esi
mov ecx, dword [edi + 0x18]
mov dword [ebp + 8], eax
add eax, ebx
add eax, dword [ebp - 4]
lea ebx, [ecx + eax*2 + 9]
and ebx, 0xfffffffc
lea eax, [ebx + 0xa8]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4adf91
push 0x30
push edi
push esi
call sub.MSVCR80.dll_memcpy
add ebx, 0xa8
movzx eax, bx
mov ebx, dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0xa8]
mov ecx, eax
sub ecx, esi
mov word [esi + 0x38], cx
add ebx, ebx
lea ecx, [ebx + 2]
push ecx
push dword [edi + 0x38]
push eax
call sub.MSVCR80.dll_memcpy
lea ebx, [esi + ebx + 0xaa]
mov eax, ebx
sub eax, esi
mov word [esi + 0x3a], ax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push dword [ebp + 0xc]
push ebx
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add eax, eax
and ecx, 0x3f
mov cx, word [ecx*2 + 0x60fa08]
xor edx, edx
add eax, ebx
add esp, 0x24
cmp dword [ebp - 4], edx
mov word [eax], cx
mov dword [ebp + 0xc], edx
jbe 0x4adea5
lea ecx, [ebx + edx*2]
and edx, 0x3f
mov dx, word [edx*2 + 0x60fa08]
xor word [ecx], dx
mov edx, dword [ebp + 0xc]
inc edx
cmp edx, dword [ebp - 4]
mov dword [ebp + 0xc], edx
jb 0x4ade88
lea ebx, [eax + 2]
mov eax, ebx
sub eax, esi
mov word [esi + 0x3c], ax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push dword [ebp + 0x10]
push ebx
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
add eax, eax
and ecx, 0x3f
mov cx, word [ecx*2 + 0x60fa08]
xor edx, edx
add eax, ebx
add esp, 0xc
cmp dword [ebp - 8], edx
mov word [eax], cx
mov dword [ebp + 0xc], edx
jbe 0x4adf01
lea ecx, [ebx + edx*2]
and edx, 0x3f
mov dx, word [edx*2 + 0x60fa08]
xor word [ecx], dx
mov edx, dword [ebp + 0xc]
inc edx
cmp edx, dword [ebp - 8]
mov dword [ebp + 0xc], edx
jb 0x4adee4
add eax, 2
mov ecx, eax
sub ecx, esi
mov word [esi + 0x3e], cx
push dword [edi + 0x18]
push dword [edi + 0x30]
push eax
call sub.MSVCR80.dll_memcpy
and word [esi + 0x40], 0
mov ebx, dword [sym.imp.MSVCR80.dll_wcsrchr]
push 0x5c
push dword [edi + 0x34]
call ebx
push 0x2f
push dword [edi + 0x34]
mov dword [ebp + 0xc], eax
call ebx
add esp, 0x1c
cmp dword [ebp + 0xc], eax
ja 0x4adf3f
mov dword [ebp + 0xc], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x4adf4e
mov eax, dword [edi + 0x34]
mov dword [ebp + 0xc], eax
jmp 0x4adf52
add dword [ebp + 0xc], 2
push 0x20
push dword [ebp + 0xc]
lea eax, [esi + 0x68]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov word [esi + 0xa6], bx
mov dword [esi + 0x30], 0x3e8
mov dword [ebp - 0xc], ebx
push dword [esi]
push esi
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4af582
Capabilities:
Accept command line arguments

Disassembly:
push 0x1c
mov eax, 0x591416
call fcn.00584f68
mov esi, ecx
mov dword [ebp - 0x18], esi
xor edi, edi
xor ebx, ebx
inc ebx
mov dword [esi], edi
mov byte [esi + 4], bl
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
lea ecx, [esi + 0x38]
mov dword [ebp - 4], edi
mov dword [esi + 0x34], 0x32
call fcn.004aea12
lea ecx, [esi + 0x44]
mov byte [ebp - 4], bl
call fcn.004aeab2
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
call sym.txupd.exe_void___cdecl_Util::Misc::SplitCmdString_class_CTXStringW_const___class_std::vector_class_CTXStringW__class_std::allocator_class_CTXStringW____
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x10], ebx
je 0x4af684
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
sar eax, 2
cmp eax, ebx
mov dword [ebp - 0x14], eax
jbe 0x4af684
push dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
call fcn.004a76a1
mov ecx, eax
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
mov ebx, eax
cmp ebx, edi
je 0x4af679
push 6
push str._perf:
push ebx
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4af656
add ebx, 0xc
push esi
push ebx
call sym.txupd.exe_bool___cdecl_Util::Convert::StringToDWordW_wchar_t_const___unsigned_long_int__
pop ecx
jmp 0x4af678
push 8
push str._perflm:
push ebx
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4af679
add ebx, 0x10
push ebx
call dword [sym.imp.MSVCR80.dll__wtoi]
mov dword [esi + 0x34], eax
pop ecx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x4af61c
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [esi], edi
jbe 0x4af69e
mov ecx, esi
call fcn.004adfab
call sym.txupd.exe_void___cdecl_Util::Perf::SetSingleProcess_void_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004a8c51
mov eax, esi
call fcn.00585040
ret
Function at 0x4b9208
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 0x4b923c
mov eax, dword [esi + 0xbc]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], ebx
cmp dword [ebp + 0xc], edi
je 0x4b9253
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 0x4b9276
cmp dword [ebp + 8], edi
lea eax, [ebp - 0x10c]
push eax
jne 0x4b9277
push edi
jmp 0x4b927e
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 0x4b9306
cmp eax, 0xffffffff
jne 0x4b92c6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0xd8]
push str.Id__lu___1__nCnt
push 0x5b2f84
push 3
push str.CTXHttpDownload::SelectSocket
push 0x783
push str.....SourceCommonNetworkHttpHttpDownload.cpp
call fcn.00452950
add esp, 0x1c
cmp dword [ebp + 0xc], edi
je 0x4b92e6
lea eax, [ebp - 0x10c]
push eax
push dword [esi + 0xbc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b92e6
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
cmp dword [ebp + 8], edi
je 0x4b9306
lea eax, [ebp - 0x210]
push eax
push dword [esi + 0xbc]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b9306
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x4ba09b
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.txupd.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 0x4ba146
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 0x5b2f84
push 3
push str.CTXHttpDownload::ReadData
push 0xa02
push str.....SourceCommonNetworkHttpHttpDownload.cpp
call fcn.00452950
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 0x4ba1f5
cmp dword [esi + 0x78], ebx
jne 0x4ba1f5
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], ebx
xor eax, eax
jmp 0x4ba1f5
cmp dword [esi + 0x70], ebx
jne 0x4ba171
push 0x2801
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], 0x2800
call fcn.0058432a
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 0x4ba185
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 0x4ba1bc
cmp edi, ebx
je 0x4ba1bc
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.txupd.exe_private:_int___thiscall_CTXHttpDownload::AnalyseResponseData_int__
jmp 0x4ba1f5
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 0x5b2f84
push 3
push str.CTXHttpDownload::ReadData
push 0xa26
push str.....SourceCommonNetworkHttpHttpDownload.cpp
call fcn.00452950
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 0x4c1fc6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x58
push 0
push esi
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0xc
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x11
push dword [ebp + 8]
call edi
test eax, eax
push 0
lea eax, [ebp - 0x104]
push 0
push eax
setne byte [ebp - 0x105]
call dword [sym.imp.MSVCR80.dll_wcstoul]
add esp, 0xc
cmp byte [ebp - 0x105], 0
mov dword [esi], eax
je 0x4c2044
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x12
push dword [ebp + 8]
call edi
test eax, eax
mov byte [ebp - 0x105], 1
jne 0x4c204b
mov byte [ebp - 0x105], 0
push 0
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.MSVCR80.dll_wcstoul]
add esp, 0xc
cmp byte [ebp - 0x105], 0
mov dword [esi + 4], eax
je 0x4c2080
push 0x10
lea eax, [esi + 0x18]
push eax
push 0xe
push dword [ebp + 8]
call edi
test eax, eax
je 0x4c2080
mov al, 1
jmp 0x4c2082
xor al, al
test al, al
lea ecx, [esi + 0x18]
mov dword [esi + 0xc], ecx
je 0x4c20a1
push 0x10
lea eax, [esi + 0x38]
push eax
push 0xf
push dword [ebp + 8]
call edi
test eax, eax
je 0x4c20a1
mov al, 1
jmp 0x4c20a3
xor al, al
test al, al
lea ecx, [esi + 0x38]
mov dword [esi + 0x10], ecx
je 0x4c20ca
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x1010
push dword [ebp + 8]
call edi
test eax, eax
mov byte [ebp - 0x105], 1
jne 0x4c20d1
mov byte [ebp - 0x105], 0
push 0
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.MSVCR80.dll_wcstoul]
add esp, 0xc
cmp byte [ebp - 0x105], 0
mov dword [esi + 0x14], eax
je 0x4c2108
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x10
push dword [ebp + 8]
call edi
test eax, eax
je 0x4c2108
mov al, 1
jmp 0x4c210a
xor al, al
cmp word [ebp - 0x104], 0
lea edx, [ebp - 0x104]
je 0x4c215d
movzx ecx, word [ebp - 0x104]
cmp cx, 0x31
jb 0x4c213d
cmp cx, 0x39
ja 0x4c213d
mov edi, dword [esi + 8]
imul edi, edi, 0xa
movzx ebx, cx
lea edi, [edi + ebx - 0x30]
mov dword [esi + 8], edi
cmp cx, 0x30
je 0x4c2153
cmp word [edx + 2], 0
jne 0x4c2153
mov ecx, dword [esi + 8]
imul ecx, ecx, 0xa
mov dword [esi + 8], ecx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4c2121
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00584870
leave
ret
Function at 0x4c39e5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4c3a5a
push edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4c3a59
push esi
push 0x290
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp + 8]
mov esi, eax
push 0x104
push esi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0x10
mov word [esi + 0x208], bx
mov dword [esi + 0x288], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
push ebx
push ebx
push esi
push 0x4c384e
push ebx
push ebx
mov dword [esi + 0x28c], eax
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c3a5d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x4c3ae3
cmp dword [ebp + 0xc], 0
je 0x4c3ae3
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4c3ae2
push esi
push edi
push 0x290
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp + 8]
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov esi, eax
push 0x104
push esi
call edi
push dword [ebp + 0xc]
lea eax, [esi + 0x208]
push 0x40
push eax
call edi
add esp, 0x1c
mov dword [esi + 0x288], ebx
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x28c], eax
xor eax, eax
push eax
push eax
push esi
push 0x4c384e
push eax
push eax
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c84ee
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x6115dc]
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 0x4c851b
mov esi, 0x3e8
pop ebx
call fcn.004c8474
dec esi
jne 0x4c8548
pop edi
pop esi
pop ebp
ret
Function at 0x4dabb5
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x5b8090
mov dword [esi + 4], 0xc0000001
mov ecx, dword [0x6562d4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp fcn.0050ebef

Function at 0x4dbb95
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x5b82e0
mov dword [esi + 4], 0xc0000001
mov ecx, dword [0x6562d4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, esi
pop esi
jmp fcn.005157a7

Function at 0x4dd1b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596356
mov eax, dword fs:[0]
push eax
mov eax, 0x1004c
call fcn.005848d0
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 1
push str.FSControl::CheckFSTypeByFlag
push 0x5b8728
xor esi, esi
push esi
lea ecx, [ebp - 0x10058]
mov dword [ebp - 0x10024], edi
mov dword [ebp - 0x10028], eax
call fcn.0051db88
push esi
push esi
push 3
push esi
push 7
push bind
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10014], 0x80004005
mov dword [ebp - 0x10018], 0x20000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4dd308
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 0x10020]
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push ebx
mov dword [ebp - 0x10020], esi
call edi
test eax, eax
je 0x4dd2e3
mov edx, dword [ebp - 0x10020]
cmp edx, 0x200
jbe 0x4dd2e3
mov cl, byte [ebp - 0xfff2]
xor eax, eax
inc eax
shl eax, cl
add edx, 0xfffffffc
imul eax, dword [ebp - 0xffe0]
add eax, 0x260
cmp eax, edx
ja 0x4dd2a8
mov eax, dword [ebp + eax - 0x10010]
mov dword [ebp - 0x10018], eax
jmp 0x4dd2dd
push esi
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4dd2e3
push esi
lea eax, [ebp - 0x1001c]
push eax
push 4
lea eax, [ebp - 0x10018]
push eax
push ebx
mov dword [ebp - 0x1001c], esi
call edi
test eax, eax
je 0x4dd2e3
cmp dword [ebp - 0x1001c], 4
jne 0x4dd2e3
mov dword [ebp - 0x10014], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10014], esi
jl 0x4dd308
mov eax, dword [ebp - 0x10018]
mov ecx, dword [ebp - 0x10028]
shr eax, 0x1d
and eax, 1
mov dword [ecx], eax
jmp 0x4dd331
push dword [ebp - 0x10024]
push 0x5b87f8
push str.FileSystem
push 2
push str.CTXFSControlMgr::CheckFSTypeByFlag
push 0xe9
push str.....SourceCommonFileSystemFSControlMgr.cpp
call fcn.004587e0
add esp, 0x1c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10058]
call fcn.0051dd5e
mov eax, dword [ebp - 0x10014]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584870
leave
ret