joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5233c5
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [edi + 0x10]
push eax
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov esi, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
push 6
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x523420
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov ecx, dword [esi]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
mov dword [esi], eax
je 0x52341b
mov edx, dword [ebp - 4]
mov dword [ecx], edx
add eax, 0x10
jmp 0x523422
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x53005f
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x59e027
call fcn.00584f68
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x28], ebx
jne 0x530114
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
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 - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
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 - 0x14]
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
inc eax
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], eax
je 0x5300ff
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
cmp esi, eax
jbe 0x5300ff
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
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
je 0x5300f7
push 0xa
push 0x5c0950
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x5300f7
mov dword [edi + 0x2c], ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jb 0x5300c9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov dword [edi + 0x28], eax
call fcn.004a8c51
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x28], eax
je 0x53013a
cmp dword [edi + 0x2c], ebx
je 0x530136
push ebx
push 0x5b2004
push 0x5c36d4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x53013d
xor eax, eax
inc eax
call fcn.00585040
ret
Function at 0x5304a7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x44
mov eax, 0x59e111
call fcn.00584f68
push 0x5a3f7c
push str..FS_SS
push str.CSSFile::Close
push 1
push 0xad
mov ebx, str.....SourceCommonFileSystemSSFileSystemSSFile.cpp
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.004b1d3b
add esp, 0x1c
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push 1
push str.SS::Close
push 0x5c36c8
push esi
lea ecx, [ebp - 0x50]
call fcn.0051db88
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebp - 4], 1
call edi
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.0053005f
test eax, eax
jne 0x530519
mov byte [ebp - 4], al
jmp 0x5305cb
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp eax, ecx
je 0x5305c8
cmp dword [eax + 4], ecx
je 0x5305c8
cmp dword [esi + 8], ecx
je 0x5305c8
dec dword [eax + 0xc]
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xc], ecx
jne 0x530569
push dword [esi + 8]
call fcn.004de004
mov ecx, eax
call fcn.004dfbaf
test eax, eax
je 0x530569
push dword [esi + 0xc]
mov ecx, dword [esi + 8]
call fcn.0051523d
mov ecx, dword [esi + 8]
call fcn.0051354f
and dword [esi + 0xc], 0
call edi
sub eax, dword [ebp + 8]
cmp eax, 0xa
jbe 0x5305ac
push eax
push dword [esi + 0x14]
mov eax, dword [esi + 8]
push ecx
add eax, 8
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
push str.Path_s_FileName_s_CostTime__d
push str.PerfFS.CloseFile
push 4
push str.CSSFile::Close
push 0xcf
push ebx
call fcn.0046fa20
add esp, 0x24
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.0051dd5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004b1dba
xor eax, eax
jmp 0x5305e4
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x50]
call fcn.0051dd5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004b1dba
mov eax, 0x80004005
call fcn.00585040
ret 4
Function at 0x531564
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
mov eax, 0x59e41e
call fcn.00584f68
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x68], ebx
jne 0x531619
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
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 - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
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 - 0x14]
mov byte [ebp - 4], bl
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor eax, eax
inc eax
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], eax
je 0x531604
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
cmp esi, eax
jbe 0x531604
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
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
je 0x5315fc
push 0xa
push 0x5c0950
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x5315fc
mov dword [edi + 0x6c], ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jb 0x5315ce
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov dword [edi + 0x68], eax
call fcn.004a8c51
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x68], eax
je 0x53163f
cmp dword [edi + 0x6c], ebx
je 0x53163b
push ebx
push 0x5b2004
push 0x5c3b2c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x531642
xor eax, eax
inc eax
call fcn.00585040
ret
Function at 0x533cf4
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
inc edi
push edi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.iphlpapi.dll_GetIpForwardTable
push edi
lea eax, [ebp - 8]
push eax
push esi
call sub.iphlpapi.dll_GetIpAddrTable
cmp dword [ebp - 4], esi
jbe 0x533e47
cmp dword [ebp - 8], esi
jbe 0x533e47
mov esi, dword [sym.imp.MSVCR80.dll_malloc]
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 8]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call esi
test ebx, ebx
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0xc], esi
je 0x533e36
test esi, esi
je 0x533e2c
push dword [ebp - 4]
push 0
push ebx
call sub.MSVCR80.dll_memset
push dword [ebp - 8]
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0x18
push edi
lea eax, [ebp - 4]
push eax
push ebx
call sub.iphlpapi.dll_GetIpForwardTable
test eax, eax
jne 0x533e2c
push edi
lea eax, [ebp - 8]
push eax
push esi
call sub.iphlpapi.dll_GetIpAddrTable
test eax, eax
jne 0x533e2c
and dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
or ebx, 0xffffffff
test esi, esi
mov edi, ebx
mov dword [ebp - 0x18], ebx
jbe 0x533e2c
add eax, 8
cmp dword [ebp + 8], 0
jbe 0x533dd7
mov ecx, dword [eax - 4]
test ecx, ecx
jbe 0x533dd7
cmp dword [eax], 0
jbe 0x533dd7
mov edx, dword [eax]
mov ebx, edx
and ebx, dword [ebp + 8]
and ecx, edx
cmp ecx, ebx
je 0x533e02
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], 0
jne 0x533df5
cmp dword [eax], 0
jne 0x533df5
cmp edi, 0xffffffff
je 0x533dec
cmp dword [eax + 0x20], edi
jae 0x533df5
mov ebx, dword [eax + 0xc]
mov edi, dword [eax + 0x20]
mov dword [ebp - 0x18], ebx
inc dword [ebp - 0x10]
add eax, 0x38
cmp dword [ebp - 0x10], esi
jb 0x533db5
jmp 0x533e05
mov ebx, dword [eax + 0xc]
cmp ebx, 0xffffffff
je 0x533e2c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
xor edx, edx
test ecx, ecx
jbe 0x533e2c
add eax, 4
cmp dword [eax + 4], ebx
je 0x533e27
inc edx
add eax, 0x18
cmp edx, ecx
jb 0x533e18
jmp 0x533e2c
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
cmp dword [ebp - 0xc], 0
pop ebx
je 0x533e47
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
leave
ret 4
Function at 0x534d82
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x534df9
cmp word [ebx + 8], 2
jne 0x534dd8
cmp word [ebx + 0xa], 4
jne 0x534dd8
mov esi, dword [ebx + 0xc]
jmp 0x534dd2
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00534d1a
test eax, eax
mov dword [edi], eax
je 0x534df4
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x534db6
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call dword [sym.imp.MSVCR80.dll_strncpy_s]
add esp, 0x10
xor eax, eax
jmp 0x534e1f
push 8
pop eax
jmp 0x534e1f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x534e1f
dec ecx
je 0x534e1a
dec ecx
je 0x534e13
dec ecx
jmp 0x534e1f
mov eax, 0x2afb
jmp 0x534e1f
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x53542d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6553a4], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x534fe8
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x535270
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.00534fa9
jne 0x5355b3
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x5355a9
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_strcpy_s]
push esi
push edi
lea eax, [ebp - 0x218]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x110]
push esi
push eax
call ebx
push str.ws2_32
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x535508
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x535504
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x53555f
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push esi
push eax
call ebx
push str.wship6
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5355a6
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x53555b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x5355a6
xor esi, esi
push dword [ebp + esi*8 - 0x230]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + esi*8 - 0x22c], eax
je 0x535582
inc esi
cmp esi, 3
jl 0x535561
jmp 0x53558b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x5355a6
xor eax, eax
mov ecx, dword [ebp + eax - 0x22c]
mov dword [eax + 0x6101fc], ecx
add eax, 8
cmp eax, 0x18
jl 0x535591
pop edi
pop esi
pop ebx
mov dword [0x6553a4], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax*8 + 0x6101fc]
xor ecx, ebp
call fcn.00584870
leave
ret 4
Function at 0x53ba80
Capabilities:
Read file on windows

Disassembly:
push 0x34
mov eax, 0x59f572
call fcn.00584f68
mov esi, ecx
mov ecx, dword [esi + 0xc]
cmp dword [ebp + 0x14], ecx
mov eax, dword [esi + 8]
mov ebx, dword [ebp + 0x10]
jb 0x53baa8
ja 0x53baa2
cmp ebx, eax
jbe 0x53baa8
mov ecx, ebx
sub ecx, eax
jmp 0x53baac
sub eax, ebx
mov ecx, eax
push dword [ebp + 0xc]
xor edi, edi
push ecx
push edi
push str.CD::ReadIO
push 0x5c5414
push esi
lea ecx, [ebp - 0x40]
call fcn.0051dc66
mov eax, dword [ebp + 0xc]
xor ecx, ecx
add eax, ebx
adc ecx, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
mov dword [esi + 0xc], ecx
jne 0x53baf8
mov edi, 0xe06303e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0051dd5e
mov eax, edi
call fcn.00585040
ret 0x10
cmp dword [ebp + 8], edi
jne 0x53bb04
mov edi, 0x80070057
jmp 0x53bae2
push edi
push edi
push dword [ebp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x53bb1c
mov edi, 0xe06303e8
jmp 0x53bae2
mov ebx, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53bb15
cmp ebx, dword [ebp - 0x10]
je 0x53bae2
mov edi, 0x206303e8
jmp 0x53bae2

Function at 0x53bb40
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x59f595
call fcn.00584f68
mov esi, ecx
mov ecx, dword [esi + 0xc]
cmp dword [ebp + 0x14], ecx
mov eax, dword [esi + 8]
mov ebx, dword [ebp + 0x10]
jb 0x53bb68
ja 0x53bb62
cmp ebx, eax
jbe 0x53bb68
mov ecx, ebx
sub ecx, eax
jmp 0x53bb6c
sub eax, ebx
mov ecx, eax
push dword [ebp + 0xc]
xor edi, edi
push ecx
push edi
push str.CD::WriteIO
push 0x5c5414
push esi
lea ecx, [ebp - 0x40]
call fcn.0051dc66
mov eax, dword [ebp + 0xc]
xor ecx, ecx
add eax, ebx
adc ecx, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
mov dword [esi + 0xc], ecx
jne 0x53bbb2
mov esi, 0xe06303e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0051dd5e
mov eax, esi
jmp 0x53bc14
cmp dword [ebp + 8], edi
jne 0x53bbbe
mov esi, 0x80070057
jmp 0x53bba2
push edi
push edi
push dword [ebp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x53bbd6
mov esi, 0xe06303e8
jmp 0x53bba2
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x53bc03
cmp edi, dword [ebp - 0x10]
jne 0x53bc03
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0051dd5e
xor eax, eax
jmp 0x53bc14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0051dd5e
mov eax, 0xe06303e8
call fcn.00585040
ret 0x10
Function at 0x541270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x6564e0], ecx
add edx, 1
cmp edx, 0x100
jb 0x541272
ret

Function at 0x541330
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, dword [esp + 4]
test ecx, ecx
push esi
mov esi, edx
jbe 0x54135f
lea ecx, [ecx]
movzx edx, byte [esi]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x6564e0]
sub ecx, 1
add esi, 1
test ecx, ecx
ja 0x541340
pop esi
ret 4
Function at 0x541760
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x284
mov eax, dword [0x610304]
xor eax, esp
mov dword [esp + 0x280], eax
push esi
mov esi, dword [esp + 0x28c]
cmp dword [esi + 0x14], 0
je 0x5418ba
cmp byte [0x6553cb], 0
je 0x5418ba
push 0x104
lea eax, [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x7c]
push 0x5c
push ecx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x5417c2
mov word [eax + 2], 0
push str.debug_message.exe
lea edx, [esp + 0x80]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x5417ec
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
jmp 0x5417f3
lea ecx, [esi + 4]
mov dword [esp + 4], ecx
mov edx, dword [esi + 0x14]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x10], edx
call fcn.00550e40
add esp, 8
cmp dword [esp + 0x74], 0
je 0x5418b0
push 0x44
lea edx, [esp + 0x20]
push 0
push edx
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x70]
mov esi, 8
add esp, 0xc
cmp dword [esp + 0x78], esi
mov dword [esp + 0x1c], 0x44
jae 0x541843
lea eax, [esp + 0x64]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x54188f
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
jmp 0x5418b0
cmp dword [esp + 0x78], esi
mov eax, dword [esp + 0x64]
jae 0x54189d
lea eax, [esp + 0x64]
push 0x40010
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x284]
pop esi
xor ecx, esp
call fcn.00584870
add esp, 0x284
ret
Function at 0x547060
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc4
mov eax, dword [0x610304]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
mov dword [esp + 8], ecx
push esi
mov esi, dword [esp + 0xd0]
xor ebx, ebx
lea ecx, [esp + 0xac]
mov dword [esp + 8], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0xac]
push eax
push 3
push esi
call fcn.00553c30
add esp, 0xc
cmp dword [esp + 0xc0], ebx
jne 0x5470c2
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x547174
cmp dword [esp + 0xc4], 8
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], ebx
jae 0x5470de
lea eax, [esp + 0xb0]
push edi
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
call fcn.005416d0
cmp eax, 4
jg 0x547142
test edi, edi
jne 0x547142
lea ebx, [edi + 1]
call sub.KERNEL32.dll_GetLastError
push eax
push 4
push 0x18d
push str..command_line.cc
lea ecx, [esp + 0x24]
call fcn.005428f0
add eax, 0xc
push str.CommandLineToArgvW_failed_on_command_line:
push eax
call fcn.004701f0
add esp, 8
cmp dword [esi + 0x18], 8
jb 0x547135
mov esi, dword [esi + 4]
jmp 0x547138
add esi, 4
push esi
push eax
call fcn.00541990
add esp, 8
test bl, 1
je 0x547150
lea ecx, [esp + 0x14]
call fcn.00542950
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edi
push edx
call fcn.00546fc0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
pop edi
mov ecx, dword [esp + 0xc8]
pop esi
pop ebx
xor ecx, esp
call fcn.00584870
add esp, 0xc4
ret 4

Function at 0x547250
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x1c
cmp dword [0x6553e8], 0
jne 0x5472ad
push 0x20
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x54727a
push 0
mov ecx, eax
call fcn.005469d0
mov dword [0x6553e8], eax
jmp 0x547284
mov dword [0x6553e8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 4]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, dword [0x6553e8]
lea eax, [esp]
push eax
call fcn.00547060
lea ecx, [esp]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esp, 0x1c
ret
Function at 0x5476e0
Capabilities:
Move file

Disassembly:
sub esp, 0x43c
mov eax, dword [0x610304]
xor eax, esp
mov dword [esp + 0x438], eax
push esi
mov esi, dword [esp + 0x444]
mov eax, 0x104
cmp dword [esi + 0x14], eax
push edi
jae 0x547824
mov edi, dword [esp + 0x44c]
cmp dword [edi + 0x14], eax
jae 0x547824
push 0x208
lea eax, [esp + 0x2e]
push 0
push eax
mov word [esp + 0x34], 0
call sub.MSVCR80.dll_memset
push 0x208
lea ecx, [esp + 0x246]
push 0
push ecx
mov word [esp + 0x24c], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
cmp dword [esi + 0x18], 8
jb 0x54775f
mov ecx, dword [esi + 4]
jmp 0x547762
lea ecx, [esi + 4]
lea edx, [esp + 0x28]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x547766
cmp dword [edi + 0x18], 8
jb 0x547782
mov ecx, dword [edi + 4]
jmp 0x547785
lea ecx, [edi + 4]
lea edx, [esp + 0x234]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x547790
xor eax, eax
cmp byte [esp + 0x450], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea edx, [esp + 0x28]
lea eax, [esp + 0x234]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov word [esp + 0x18], 0x614
jne 0x5477fb
mov word [esp + 0x18], 0x1694
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
pop edi
add eax, 1
pop esi
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00584870
add esp, 0x43c
ret
mov ecx, dword [esp + 0x440]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.00584870
add esp, 0x43c
ret

Function at 0x5478c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x5478cf
mov eax, dword [eax + 4]
jmp 0x5478d2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5478e5
shr eax, 4
and eax, 1
ret
xor al, al
ret