joyce8/EMBER2024-capa huggingface dataset:
Function at 0x561eb1
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
neg esi
mov dword [ebp - 4], ecx
push edi
sbb esi, esi
add esi, 0xb
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
test edi, edi
jne 0x561efa
cmp dword [ebp + 0x10], eax
jne 0x561efa
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.00561f04
test eax, eax
je 0x561efa
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x561f04
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x561f28
test al, 7
je 0x561f28
and eax, 0xfffffff8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x561f2a
xor eax, eax
pop ebp
ret 4
Function at 0x561f2e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x254]
mov dword [ebp - 0x268], ecx
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x260], xmm0
call fcn.00689b00
add esp, 0xc
lea ecx, [ebp - 0x258]
push 0x7002dc
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00554b84
add esp, 0xc
lea ecx, [ebp - 0x258]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x264]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x25c]
mov ebx, eax
mov edi, dword [ebp - 0x260]
cmp ebx, 0xffffffff
je 0x5620a7
xor eax, eax
inc eax
test eax, eax
je 0x5620a0
test byte [ebp - 0x254], 0x10
je 0x56207a
push 0x771540
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x56208d
push 0x700418
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x56208d
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x258]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00554b84
add esp, 0xc
lea ecx, [ebp - 0x258]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
push ecx
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__
mov ecx, dword [ebp - 0x268]
call fcn.00561f2e
add edi, eax
lea ecx, [ebp - 0x25c]
adc esi, edx
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x56208d
and dword [ebp - 0x26c], 0
add edi, dword [ebp - 0x234]
adc esi, dword [ebp - 0x238]
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x561fd3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x264]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
mov edx, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret 4
Function at 0x5635a3
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, str.Http
push dword [esi + 0xd8]
push str.Id__lu__CancelDownload
push ebx
push 2
push str.func
push 0x814
push str.file
call fcn.004ce9b9
xor edi, edi
push edi
push dword [esi + 0xe4]
call sym.txupd.exe_int___cdecl_TXTimer::EraseTimerCallback_struct_ITXTimerCallback___unsigned_int_
push edi
push dword [esi + 0xec]
call sym.txupd.exe_int___cdecl_TXTimer::EraseAsyncCallback_struct_ITXAsyncCallback___unsigned_int_
add esp, 0x2c
lea ecx, [esi + 4]
push 0x1388
call sym.txupd.exe_public:_int___thiscall_CTXThreadModel::StopThread_unsigned_long_int_
test eax, eax
jne 0x563630
push dword [esi + 8]
push dword [esi + 0xd8]
push str.Id__lu__CancelDownload__TerminateThread__THandle_u
push ebx
push 2
push str.func
push 0x81b
push str.file
call fcn.004ce9b9
add esp, 0x20
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
cmp dword [esi + 0x30], edi
je 0x56363a
push edi
jmp 0x56363c
push 1
call sym.txupd.exe_private:_void___thiscall_CTXHttpDownload::FreeSocket_bool_
mov dword [esi + 0x30], edi
pop edi
pop esi
pop ebx
ret
Function at 0x56605f
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
and dword [eax], 0
lea ecx, [esi + 0x7c]
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0x4004667f
and dword [ebx], 0
push dword [esi + 0xb8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x56610e
push dword [esi + 0x78]
push dword [esi + 0xb4]
push dword [esi + 0xd8]
push str.Id__lu__ioctlsocket_dwLen__0_Server_Close_TCP_m_bReuseTCP__d__dwTmpRecvCurPos__u_
push str.Http
push 3
push str.func
push 0xafe
push str.file
call fcn.004ce9b9
add esp, 0x24
push dword [esi + 0xb8]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
xor ecx, ecx
inc eax
mov dword [esi + 0xb8], ecx
mov dword [ebx], eax
cmp dword [esi + 0xb4], ecx
je 0x5661c0
cmp dword [esi + 0x78], ecx
jne 0x5661c0
mov dword [esi + 0xd0], eax
xor eax, eax
mov dword [esi + 0xd4], ecx
jmp 0x5661c0
cmp dword [esi + 0x70], 0
jne 0x56613f
and dword [esi + 0x78], 0
push 0x2801
mov dword [esi + 0x74], 0x2800
call fcn.00682d64
mov ecx, dword [esi + 0x74]
inc ecx
mov dword [esi + 0x70], eax
push ecx
push 0
push eax
call fcn.00689b00
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, dword [esi + 0x78]
lea eax, [edx + ecx]
cmp eax, dword [esi + 0x74]
jbe 0x56614f
mov ecx, dword [esi + 0x74]
sub ecx, edx
mov eax, dword [esi + 0x70]
push edi
push 0
push ecx
add eax, edx
push eax
push dword [esi + 0xb8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x566189
test edi, edi
je 0x566189
add dword [esi + 0x78], edi
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x70]
push dword [ebp + 0xc]
mov byte [ecx + eax], 0
mov ecx, esi
call sym.txupd.exe_private:_int___thiscall_CTXHttpDownload::AnalyseResponseData_int__
jmp 0x5661bf
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 str.Http
push 3
push str.func
push 0xb22
push str.file
call fcn.004ce9b9
xor eax, eax
add esp, 0x24
inc eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x566ccf
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [eax], edx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x218], ecx
push edi
mov dword [ebp - 0x21c], eax
mov dword [ecx], edx
xor ecx, ecx
inc ecx
test ebx, ebx
je 0x566d1b
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], ecx
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x566d34
mov eax, dword [esi + 0xb8]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x214], edx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], 0x3e8
push eax
push edx
test edi, edi
je 0x566d6f
lea eax, [ebp - 0x108]
push eax
test ebx, ebx
je 0x566d6c
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [esi + 0xb8]
inc eax
push eax
jmp 0x566d7f
push edx
jmp 0x566d62
mov ecx, dword [esi + 0xb8]
lea eax, [ebp - 0x20c]
push edx
push eax
inc ecx
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x566e0f
cmp eax, 0xffffffff
jne 0x566dc3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0xd8]
push str.Id__lu___1__nCnt
push str.Http
push 3
push str.func
push 0x85f
push str.file
call fcn.004ce9b9
add esp, 0x1c
test edi, edi
je 0x566de9
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0xb8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x566de9
mov eax, dword [ebp - 0x218]
mov dword [eax], 1
test ebx, ebx
je 0x566e0f
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0xb8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x566e0f
mov eax, dword [ebp - 0x21c]
mov dword [eax], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret 0x10
Function at 0x56e420
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x10c
call fcn.006839e0
mov eax, dword [0x7b088c]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x56e495
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x56e495
mov esi, dword [esp + 0x114]
push 2
call fcn.0069160e
add esp, 4
lea ecx, [esp + 0x118]
push ecx
push 0
push esi
push eax
call fcn.00428662
push dword [eax + 4]
push dword [eax]
call fcn.006a28ee
add esp, 0x18
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00682c16
add esp, 0x10c
ret
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00428662
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.006a2c06
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.0056e2e0
test eax, eax
jle 0x56e525
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00682c16
add esp, 0x10c
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.00682c16
add esp, 0x10c
ret
Function at 0x576d81
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, ecx
test edi, edi
je 0x576eb8
push ebx
cmp dword [esi], eax
jne 0x576e39
cmp dword [esi + 0x10], eax
je 0x576e0c
push eax
push dword [esi + 8]
push dword [esi + 0x10]
call fcn.006ae31c
push dword [esi + 0x10]
lea ebx, [esi + 0x14]
mov dword [ebp + 8], eax
push 0x400
push 1
push ebx
call fcn.006ade81
add esp, 0x1c
test eax, eax
je 0x576dd8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [edi], ebx
jmp 0x576e63
push eax
push dword [ebp + 8]
mov edi, 0x712804
mov ebx, str.func
push dword [esi + 0x418]
push str.Id__lu__fseek_or_fread_failed__fseek_Ret___d__fread_nLen___lu
push edi
push 2
push ebx
push 0x8a
push str.file
call fcn.004ce9b9
add esp, 0x24
jmp 0x576e94
push dword [esi + 0x418]
mov edi, 0x712804
mov ebx, str.func
push str.Id__lu__m_pFile__NULL
push edi
push 2
push ebx
push 0x8f
push str.file
call fcn.004ce9b9
add esp, 0x1c
jmp 0x576e94
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 8]
je 0x576e68
cmp dword [esi + 0x414], eax
je 0x576e68
mov eax, 0x400
cmp ecx, eax
cmova ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x414]
add eax, dword [esi + 8]
mov dword [edi], eax
xor eax, eax
inc eax
jmp 0x576eb7
push ecx
push dword [esi + 0x418]
mov edi, 0x712804
mov ebx, str.func
push str.Id__lu___dwLeftLen___0_or_m_pBuf_NULL__dwLeftLen___lu
push edi
push 2
push ebx
push 0xa6
push str.file
call fcn.004ce9b9
add esp, 0x20
push dword [esi + 0x418]
push str.Id__lu___Impossible
push edi
push 2
push ebx
push 0xaa
push str.file
call fcn.004ce9b9
add esp, 0x1c
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x577097
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xc], ebx
je 0x5770b3
push dword [esi + 0xc]
call fcn.006adbc9
pop ecx
mov dword [esi + 0xc], ebx
lea edi, [esi + 8]
push 0xffffffffffffffff
mov ecx, edi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea eax, [ebp - 4]
push eax
call sym.txupd.exe_class_CTXStringA___cdecl_Util::Convert::Utf8FromWS_wchar_t_const___int_
add esp, 0xc
cmp dword [esi + 4], ebx
je 0x577138
mov ecx, edi
call sym.txupd.exe_public:_bool___thiscall_CTXStringW::IsEmpty_void_const
test al, al
jne 0x577138
push 0x77091c
mov ecx, edi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call fcn.006ada80
pop ecx
pop ecx
test eax, eax
je 0x577138
push eax
call fcn.006adbc9
pop ecx
mov ecx, edi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x577138
mov ecx, edi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push dword [esi + 0x28]
push str.Id__lu__Delete_Http_TmpFile_Fail_Error___s_
push 0x712804
push 2
push str.func
push 0x59
push str.file
call fcn.004ce9b9
add esp, 0x20
cmp dword [esi + 0x10], ebx
je 0x57714c
push 1
push dword [esi + 0x10]
call fcn.00682c08
pop ecx
pop ecx
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x1c], ebx
je 0x577160
push 1
push dword [esi + 0x1c]
call fcn.00682c08
pop ecx
pop ecx
mov dword [esi + 0x1c], ebx
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
mov ecx, edi
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x577191
Capabilities:
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_int___thiscall_CTXStringW::GetLength_void_const
test eax, eax
jle 0x5772b9
lea esi, [eax - 1]
push esi
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t___thiscall_CTXStringW::GetAt_int_const
push 0x5c
pop ecx
cmp ax, cx
jne 0x5771e7
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Left_int_
push eax
lea ecx, [ebp + 8]
call fcn.0051b603
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 0x20
je 0x577258
test bl, 1
je 0x577217
mov ecx, ebx
and ecx, 0xfffffffe
push ecx
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0xc], 0
je 0x577258
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push str.CreateParentDirectory_Fail___s___delete_file
push 0x712804
push 2
push str.func
push 0xae
push str.file
call fcn.004ce3cb
add esp, 0x1c
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, 0xffffffff
je 0x577262
test bl, 0x10
jne 0x5772b4
push 0x5c
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_int___thiscall_CTXStringW::ReverseFind_wchar_t_const
cmp eax, 0xffffffff
je 0x5772b9
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_class_CTXStringW___thiscall_CTXStringW::Left_int_
xor esi, esi
lea ecx, [ebp + 0xc]
push esi
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
mov ecx, edi
call fcn.00577191
push esi
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp + 0xc]
test eax, eax
jne 0x5772af
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x5772bb
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
xor esi, esi
inc esi
jmp 0x5772bb
xor esi, esi
lea ecx, [ebp + 8]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5772ce
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x577302
cmp dword [esi + 0xc], 0
je 0x577302
cmp dword [esi + 0x18], 0
jbe 0x577302
push dword [esi + 0xc]
push dword [esi + 0x18]
push 1
push dword [esi + 0x10]
call fcn.006b053f
add esp, 0x10
cmp eax, dword [esi + 0x18]
je 0x5772fe
xor eax, eax
pop esi
ret
and dword [esi + 0x18], 0
xor eax, eax
inc eax
pop esi
ret
Function at 0x57774e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
je 0x577888
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x577888
xor ecx, ecx
cmp dword [esi], ecx
je 0x577812
cmp dword [esi + 0xc], ecx
je 0x577888
cmp dword [esi + 0x10], ecx
jne 0x5777a4
mov ebx, 0x10000
push ebx
call fcn.00682d64
push ebx
push 0
push eax
mov dword [esi + 0x10], eax
call fcn.00689b00
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x14], ebx
mov ebx, dword [esi + 0x14]
sub ebx, dword [esi + 0x18]
cmp ebx, edi
jbe 0x5777c4
push edi
push eax
mov eax, dword [esi + 0x18]
add eax, dword [esi + 0x10]
push eax
call fcn.00689000
add esp, 0xc
add dword [esi + 0x18], edi
jmp 0x57780d
push ebx
push eax
mov eax, dword [esi + 0x18]
add eax, dword [esi + 0x10]
push eax
call fcn.00689000
push dword [esi + 0xc]
push dword [esi + 0x14]
push 1
push dword [esi + 0x10]
call fcn.006b053f
add esp, 0x1c
cmp eax, dword [esi + 0x14]
jne 0x577888
and dword [esi + 0x18], 0
cmp ebx, edi
jae 0x57780d
mov ecx, dword [ebp + 8]
sub edi, ebx
push edi
add ecx, ebx
mov dword [esi + 0x18], edi
push ecx
push dword [esi + 0x10]
call fcn.00689000
add esp, 0xc
xor eax, eax
inc eax
jmp 0x57788a
mov ebx, 0x10000
cmp dword [esi + 0x1c], ecx
jne 0x577841
push 0x10002
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ecx
call fcn.00682d64
mov dword [esp], 0x10002
push 0
push eax
mov dword [esi + 0x1c], eax
call fcn.00689b00
add esp, 0xc
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
add eax, edi
cmp eax, ecx
jbe 0x577907
lea eax, [ecx + 0x10000]
mov edx, 0x61a8000
cmp eax, edx
jbe 0x577891
push edx
push eax
push dword [esi + 0x28]
push str.Id__lu__Recv_Buf_Len__lu____MAX__d__FAIL
push 0x712804
push 2
push str.func
push 0x18c
push str.file
call fcn.004ce9b9
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
lea eax, [ecx + 0x10002]
push eax
call fcn.00682d64
pop ecx
mov ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ebp + 0xc], ecx
test ecx, ecx
jne 0x5778d5
add eax, ebx
push eax
push dword [esi + 0x28]
push str.Id__lu__Recv_new_Buf__lu__FAIL
push 0x712804
push 2
push str.func
push 0x193
push str.file
call fcn.004ce9b9
add esp, 0x20
jmp 0x577888
add eax, 0x10002
push eax
push 0
push ecx
call fcn.00689b00
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call fcn.00689000
push 1
push dword [esi + 0x1c]
call fcn.00682c08
mov eax, dword [ebp + 0xc]
add esp, 0x20
add dword [esi + 0x20], ebx
mov dword [esi + 0x1c], eax
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x20]
jbe 0x577932
push ebx
push edi
push dword [esi + 0x28]
push str.Id__lu__Error_the_One_PK__Len__lu____PKMAX__d__FAIL
push 0x712804
push 2
push str.func
push 0x1a1
jmp 0x57787b
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 8]
add eax, edx
push edi
push ecx
push eax
call fcn.00689000
add esp, 0xc
add dword [esi + 0x24], edi
jmp 0x57780d
Function at 0x57e8b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
cmovge ebp, edi
cmovge edi, edx
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x57e8d9
mov eax, ebx
jmp 0x57e8e3
push eax
push ebx
call fcn.005578b0
add esp, 8
test eax, eax
jne 0x57e8eb
pop edi
pop ebp
pop ebx
ret
xor eax, eax
cmp dword [ebp + 4], eax
jle 0x57e90a
push esi
mov ecx, dword [edi]
mov edx, dword [ebp]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebx]
xor esi, dword [edx + eax*4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebp + 4]
jl 0x57e8f3
pop esi
cmp eax, dword [edi + 4]
jge 0x57e920
nop
mov ecx, dword [edi]
mov edx, dword [ebx]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [edi + 4]
jl 0x57e910
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
test ecx, ecx
jle 0x57e943
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x57e940
dec ecx
test ecx, ecx
jg 0x57e932
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x581a70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.006839e0
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x581a95
push 0
sub ecx, edx
mov dword [ebp - 0x1c], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x581b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x581af3
push 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x581b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x581b7c
lea eax, [esi + esi]
call fcn.006841b0
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x1c]
push 0xfde9
call esi
test eax, eax
je 0x581bdb
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x581b30
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x581bdb
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.006ada80
mov esi, eax
add esp, 8
test esi, esi
jne 0x581b8e
call fcn.006a3919
cmp dword [eax], 2
je 0x581b7e
call fcn.006a3919
cmp dword [eax], 9
jne 0x581bdb
push ebx
push edi
call fcn.006adae9
mov esi, eax
add esp, 8
test esi, esi
je 0x581bdb
push 0x7a83d0
call fcn.005822f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x581baf
push esi
call fcn.006adbc9
add esp, 4
jmp 0x581c43
push 0
push edi
call fcn.00581d40
push esi
push 1
push 0x6a
push edi
call fcn.00581d70
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0055b840
push 0x71cf64
push ebx
push 0x71cf68
push edi
push str.fopen_
push 5
call fcn.0055aa00
add esp, 0x2c
call fcn.006a3919
cmp dword [eax], 2
jne 0x581c2b
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x581c37
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0055b840
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00682c16
mov esp, ebp
pop ebp
ret