joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419540
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4195a3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4195af
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4195bb
xor esi, esi
test edi, edi
je 0x419589
lea eax, [esp + 0xc]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x419590
add esi, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
cmp esi, edi
jb 0x419565
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x198
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int__unsigned_long_int__char_const__
push 0
push str.CHttpToolA::InternetWriteFile:_hRequest_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_char_const___unsigned_long_int_
push 0
push str.CHttpToolA::InternetWriteFile:_pbyBuff_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_char_const___unsigned_long_int_
push 0
push str.CHttpToolA::InternetWriteFile:_cbyBuff_can_not_be_zero.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_char_const___unsigned_long_int_
int3

Function at 0x41a050
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 8], 0
push edi
je 0x41a0a3
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41a0b1
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a070
sub ecx, edi
sar ecx, 1
push 0
push 0
je 0x41a0bf
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
je 0x41a0c9
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.CHttpToolW::OpenConnection:_hInternet_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_char_const___unsigned_long_int__unsigned_long_int_
push 0
push 0
push str.CHttpToolW::OpenConnection:_szServerAddr_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_char_const___unsigned_long_int__unsigned_long_int_
push str.CHttpToolW::OpenConnection:_szServerAddr_can_not_be_an_empty_string.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_char_const___unsigned_long_int__unsigned_long_int_
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x193
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int__unsigned_long_int__wchar_t_const__
int3
Function at 0x41a550
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x41a5b3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41a5c1
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41a5cf
xor esi, esi
test edi, edi
je 0x41a599
lea eax, [esp + 0xc]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x41a5a0
add esi, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
cmp esi, edi
jb 0x41a575
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x198
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int__unsigned_long_int__wchar_t_const__
push 0
push 0
push str.CHttpToolW::InternetWriteFile:_hRequest_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_char_const___unsigned_long_int__unsigned_long_int_
push 0
push 0
push str.CHttpToolW::InternetWriteFile:_pbyBuff_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_char_const___unsigned_long_int__unsigned_long_int_
push 0
push 0
push str.CHttpToolW::InternetWriteFile:_cbyBuff_can_not_be_zero.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_char_const___unsigned_long_int__unsigned_long_int_
int3
Function at 0x41e410
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ecx + 0x18]
sub esp, 8
push 0
test eax, eax
je 0x41e462
lea ecx, [esp + 8]
mov dword [esp + 8], 4
push ecx
push dword [ebp + 8]
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41e457
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x41e46c
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
push 0x51a3f0
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_char_const___unsigned_long_int_
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x190
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int__unsigned_long_int__char_const__
int3
Function at 0x41e500
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x281c
call fcn.004c47b0
mov eax, dword [0x56b114]
xor eax, esp
mov dword [esp + 0x2818], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
test esi, esi
je 0x41e612
cmp dword [ebp + 0xc], 0
jne 0x41e54d
push esi
call sym.R2ClientInstall.exe_public:_static_int___cdecl_Ryeol::CHttpToolA::FileExists_char_const__
add esp, 4
test eax, eax
jne 0x41e61e
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41e628
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41e63a
nop dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0x2800
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41e5ff
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41e5e1
mov esi, edi
nop dword [eax]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, edi
lea ecx, [esp + 0x28]
sub eax, esi
push esi
add eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e646
sub esi, dword [esp + 0x14]
jne 0x41e5b0
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41e63a
jmp 0x41e580
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x191
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int__unsigned_long_int__char_const__
push 0
push 0x51a6ac
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_char_const___unsigned_long_int_
push esi
push 0
push 0x72
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int__unsigned_long_int__char_const__
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25b
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int__unsigned_long_int__char_const__
push 0
push 0x51a4ac
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_char_const___unsigned_long_int_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
push esi
push 0x25e
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int__unsigned_long_int__char_const__
int3
Function at 0x41eb50
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ecx + 0x18]
sub esp, 8
push 0
test eax, eax
je 0x41eba2
lea ecx, [esp + 8]
mov dword [esp + 8], 4
push ecx
push dword [ebp + 8]
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x41eb97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x41ebac
xor eax, eax
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4
push str.CHttpResponseT::GetContentLength:_m_hRequest_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_wchar_t_const___unsigned_long_int_
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x190
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int__unsigned_long_int__wchar_t_const__
int3
Function at 0x41ec40
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x281c
call fcn.004c47b0
mov eax, dword [0x56b114]
xor eax, esp
mov dword [esp + 0x2818], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
test esi, esi
je 0x41ed52
cmp dword [ebp + 0xc], 0
jne 0x41ec8d
push esi
call sym.R2ClientInstall.exe_public:_static_int___cdecl_Ryeol::CHttpToolW::FileExists_wchar_t_const__
add esp, 4
test eax, eax
jne 0x41ed5e
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41ed68
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41ed7a
nop dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0x2800
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41ed3f
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41ed21
mov esi, edi
nop dword [eax]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, edi
lea ecx, [esp + 0x28]
sub eax, esi
push esi
add eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ed86
sub esi, dword [esp + 0x14]
jne 0x41ecf0
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x41ed7a
jmp 0x41ecc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 8
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x191
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int__unsigned_long_int__wchar_t_const__
push 0
push str.CHttpResponseT::SaveContent:_szFilePath_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_wchar_t_const___unsigned_long_int_
push esi
push 0
push 0x72
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int__unsigned_long_int__wchar_t_const__
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25b
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int__unsigned_long_int__wchar_t_const__
push 0
push str.CHttpResponseT::ReadContent:_m_hRequest_can_not_be_NULL.
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_wchar_t_const___unsigned_long_int_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
push esi
push 0x25e
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolW::ThrowException_unsigned_long_int__unsigned_long_int__wchar_t_const__
int3
Function at 0x420290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f102f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x56b114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebx], vtable.Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_.0
lea esi, [ebx + 0x24]
mov dword [ebx + 0x20], vtable.Ryeol::CHttpClientMapT_class_Ryeol::CHttpToolA_.0
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411db0
mov dword [esi], eax
mov dword [ebp - 4], 0
lea esi, [ebx + 0x30]
mov dword [ebx + 0x2c], vtable.Ryeol::CHttpClientMapT_class_Ryeol::CHttpToolA_.0
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00411db0
mov dword [esi], eax
lea ecx, [ebx + 0x54]
call sym.R2ClientInstall.exe_public:_void___thiscall_Ryeol::CHttpPostStatT_class_Ryeol::CHttpToolA_::constructor_void_
lea ecx, [ebx + 0x8c]
call sym.R2ClientInstall.exe_public:_void___thiscall_Ryeol::CHttpPostStatT_class_Ryeol::CHttpToolA_::constructor_void_
mov dword [ebx + 4], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov byte [ebp - 4], 4
call sym.R2ClientInstall.exe_public:_static_char____cdecl_Ryeol::CHttpToolA::CreateUploadBoundary_void_
mov ecx, eax
mov dword [ebx + 8], ecx
test ecx, ecx
je 0x420453
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4203a0
sub ecx, edx
lea eax, [ecx + 0x1f]
push eax
call fcn.004cdcdf
mov ecx, eax
add esp, 4
mov dword [ebx + 0x14], ecx
test ecx, ecx
je 0x42046e
mov edx, dword [sym.R2ClientInstall.exe_char_const__const_Ryeol::CHttpToolA::szMultipartFormDataBoundary]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4203c8
mov edx, dword [ebx + 8]
mov esi, edx
mov edi, dword [ebx + 0x14]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4203e0
sub edx, esi
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4203f0
mov ecx, edx
lea eax, [ebx + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
push dword [ebx + 8]
mov ecx, ebx
call sym.R2ClientInstall.exe_private:_char_const____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::_String2Ansi_char_const___int__
mov dword [ebx + 0xc], eax
jmp 0x420453
mov ecx, ebx
call sym.R2ClientInstall.exe_private:_void___thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::_InitPostContext_void_
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x531d54
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.Out_of_memory
push eax
call fcn.004c78f8
int3
Function at 0x421cc0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.R2ClientInstall.exe_private:_class_Ryeol::CHttpResponseT_class_Ryeol::CHttpToolA_____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::_RequestGetEx_void___void___char_const___unsigned_long_int__char_const___char_const___char_const__

Function at 0x421da0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.R2ClientInstall.exe_private:_void___thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::_StartPostContext_void___void___char_const___unsigned_long_int__char_const___char_const___char_const__

Function at 0x421f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0xe8], 0
je 0x421f82
pop ebp
jmp sym.R2ClientInstall.exe_private:_class_Ryeol::CHttpResponseT_class_Ryeol::CHttpToolA_____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::_ProceedPostContext_unsigned_long_int_
pop ebp
jmp sym.R2ClientInstall.exe_private:_class_Ryeol::CHttpResponseT_class_Ryeol::CHttpToolA_____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::_ProceedUploadContext_unsigned_long_int_
Function at 0x425c80
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.R2ClientInstall.exe_private:_class_Ryeol::CHttpResponseT_class_Ryeol::CHttpToolW_____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolW__class_Ryeol::CHttpEncoderW_::_RequestGetEx_void___void___wchar_t_const___unsigned_long_int__wchar_t_const___wchar_t_const___wchar_t_const__

Function at 0x425d60
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.R2ClientInstall.exe_private:_void___thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolW__class_Ryeol::CHttpEncoderW_::_StartPostContext_void___void___wchar_t_const___unsigned_long_int__wchar_t_const___wchar_t_const___wchar_t_const__

Function at 0x425f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0xe8], 0
je 0x425f52
pop ebp
jmp sym.R2ClientInstall.exe_private:_class_Ryeol::CHttpResponseT_class_Ryeol::CHttpToolW_____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolW__class_Ryeol::CHttpEncoderW_::_ProceedPostContext_unsigned_long_int_
pop ebp
jmp sym.R2ClientInstall.exe_private:_class_Ryeol::CHttpResponseT_class_Ryeol::CHttpToolW_____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolW__class_Ryeol::CHttpEncoderW_::_ProceedUploadContext_unsigned_long_int_
Function at 0x4291c0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
push 0
mov esi, ecx
push 0
push esi
je 0x4291f1
push sym.R2ClientInstall.exe_private:_static_unsigned_long_int___stdcall_CHttpThreadBase::StartThread_void__
push 0
push 0
call fcn.004cde48
add esp, 0x18
test eax, eax
je 0x429235
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]
push sym.R2ClientInstall.exe_private:_static_unsigned_long_int___stdcall_CHttpThreadBase::HttpSendProc_void__
push 0
push 0
call fcn.004cde48
add esp, 0x18
mov dword [esi + 0xf8], eax
test eax, eax
je 0x429235
push dword [esi + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42922e
push 0
push dword [esi + 0xf8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call sym.R2ClientInstall.exe_private:_void___thiscall_CHttpThreadBase::Close_void_
pop esi
pop ebp
ret 4

Function at 0x4292b0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push 0
push esi
push sym.R2ClientInstall.exe_private:_static_unsigned_long_int___stdcall_CHttpThreadBase::HttpSendProc_void__
push 0
push 0
call fcn.004cde48
add esp, 0x18
mov dword [esi + 0xf8], eax
test eax, eax
je 0x429300
push dword [esi + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4292f9
push 0
push dword [esi + 0xf8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call sym.R2ClientInstall.exe_private:_void___thiscall_CHttpThreadBase::Close_void_
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x42fa90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efd10
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56b114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004c3956
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004b0bba
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x43074b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x430734
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x430fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x43102c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ebx, eax
add edi, 0xfffffffe
nop dword [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x431000
push dword [ebp - 4]
mov ecx, 0x15
mov esi, 0x51d990
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x431040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x431077
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x431690
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
mov eax, 0x14
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
movlpd qword [ebp - 0xe], xmm0
mov dword [ebp - 6], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4316e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x4317eb
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x431705
sub edi, ecx
sar edi, 1
cmp edi, 0x104
jge 0x4317eb
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004c5d00
lea ecx, [ebp - 0x210]
add esp, 0xc
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x431740
add edi, edi
cmp edi, 0x20a
jae 0x4317ff
xor eax, eax
mov word [ebp + edi - 0x210], ax
add edi, 2
cmp edi, 0x20a
jae 0x4317ff
mov word [ebp + edi - 0x210], ax
mov dword [ebp - 0x21e], eax
mov dword [ebp - 0x21a], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x216], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
mov eax, 0x414
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x224], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x4317eb
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004c360c
mov esp, ebp
pop ebp
ret 4
call fcn.004c3e58
int3