joyce8/EMBER2024-capa huggingface dataset:
Function at 0x589576
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x589667
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [edi + 0x20]
cmp eax, 0x36ee80
jb 0x5895ab
call ebx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], eax
call fcn.00589860
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
call ebx
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [edi + 0x18]
call fcn.00589b32
mov esi, dword [ebp - 8]
lea ecx, [edi + 0x18]
cmp esi, dword [ecx]
je 0x589605
call ebx
sub eax, dword [esi + 0x1c]
cmp eax, 0x1388
jae 0x5895f5
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x589666
push esi
lea eax, [ebp - 8]
push eax
lea ecx, [edi + 0x18]
call fcn.005898d0
lea ecx, [edi + 0x18]
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.005890d2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0058942a
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
push str.sock0x_x__action_s__err_d
push str.SocketError
push 2
push str.func
push 0x434
push str.file
call fcn.004e4f3c
add esp, 0x2c
lea ecx, [ebp - 4]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5986dc
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0x1388
mov dword [esi], 0x72cf70
call sym.txupd.exe_public:_int___thiscall_CTXThreadModel::StopThread_unsigned_long_int_
lea ecx, [esi + 0x38]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
mov ecx, esi
pop esi
jmp sym.txupd.exe_protected_virtual:_void___thiscall_CTXThreadModel::destructor_void_
Function at 0x59ea80
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.00581d40
add esp, 8
test esi, esi
jg 0x59ead7
je 0x59eab9
cmp esi, 0xffffffff
jne 0x59ead7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0059ed40
add esp, 4
test eax, eax
je 0x59ead7
push 0xa
push edi
call fcn.005826b0
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x5a0850
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.006839e0
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x2c]
mov dword [edi], 0
mov ebx, dword [esi]
test dword [ebx + 0x10], 0x100000
je 0x5a089d
mov eax, dword [ebx + 0x18]
push 0
push 0
push dword [esp + 0x30]
push esi
call eax
add esp, 0x10
test eax, eax
js 0x5a0a36
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x14
ret
test dword [esi + 0x5c], 0x100
mov ebx, dword [ebx + 4]
mov dword [esp + 0x1c], ebx
je 0x5a08db
cmp dword [esi + 0xc], 0
je 0x5a0a3f
push 0x20b
push str..cryptoevpevp_enc.c
push 0x8a
push 0x65
push 6
call fcn.0055b840
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x14
ret
cmp ebx, 1
jbe 0x5a0a3f
cmp dword [esi + 0xc], 0
jne 0x5a0a1e
cmp dword [esi + 0x64], 0
je 0x5a0a1e
cmp ebx, 0x20
jbe 0x5a0914
push str.b___sizeof_ctx__final
push 0x218
push str..cryptoevpevp_enc.c
call fcn.0056e560
add esp, 0xc
lea eax, [ebx + esi]
mov edx, ebx
mov dword [esp + 0x14], eax
mov al, byte [eax + 0x6b]
mov byte [esp + 0xf], al
push ebp
movzx ebp, al
sub edx, ebp
mov eax, ebp
xor eax, ebx
mov ecx, ebp
or edx, eax
not ecx
sar ecx, 0x1f
not edx
mov eax, ebx
sar edx, 0x1f
sar eax, 0x1f
and al, cl
or dl, al
lea eax, [ebp - 1]
sar eax, 0x1f
and al, cl
not al
and dl, al
mov dword [esp + 0x14], edx
cmp ebx, 1
jbe 0x5a09db
mov esi, dword [esp + 0x18]
mov eax, ebp
sar eax, 0x1f
mov edi, 1
mov dword [esp + 0x1c], eax
add esi, 0x6a
movzx ebx, byte [esi]
lea esi, [esi - 1]
movzx eax, byte [esp + 0x13]
xor ebx, eax
mov eax, ebp
xor eax, edi
not eax
sar eax, 0x1f
movzx edx, al
mov eax, edi
sub eax, ebp
sar eax, 0x1f
movzx eax, al
and edx, eax
mov eax, edi
not eax
inc edi
sar eax, 0x1f
movzx ecx, al
mov eax, dword [esp + 0x1c]
movzx eax, al
and ecx, eax
lea eax, [ebx - 1]
sar eax, 0x1f
not ebx
or edx, ecx
sar ebx, 0x1f
and al, bl
mov ebx, dword [esp + 0x20]
and al, dl
not dl
or al, dl
mov edx, dword [esp + 0x14]
and dl, al
mov dword [esp + 0x14], edx
cmp edi, ebx
jb 0x5a0973
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
lea ebp, [ebx - 1]
xor ecx, ecx
test ebp, ebp
je 0x5a0a02
mov edi, dword [esp + 0x2c]
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x6c]
and al, dl
mov byte [ecx + edi], al
inc ecx
cmp ecx, ebp
jb 0x5a09f0
mov edi, dword [esp + 0x30]
sub bl, byte [esp + 0x13]
movzx ecx, bl
movzx eax, dl
and ecx, eax
movzx eax, dl
pop ebp
mov dword [edi], ecx
and eax, 1
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0x215
push str..cryptoevpevp_enc.c
push 0x6d
push 0x65
push 6
call fcn.0055b840
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov dword [edi], 0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x5c0f1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ecx, 0xabe974
call fcn.0041c516
lea eax, [ebp + 8]
mov ecx, 0xabe96c
push eax
call fcn.005c08d3
mov ecx, dword [0xabe96c]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp eax, ecx
je 0x5c0f57
cmp esi, dword [eax + 0x10]
jb 0x5c0f57
mov dword [ebp - 8], eax
jmp 0x5c0f5c
mov dword [ebp - 0xc], ecx
mov eax, ecx
xor ebx, ebx
inc ebx
cmp eax, ecx
je 0x5c0f8c
push esi
push str._sock_recv_thread_exists__return__sock0x_x
push str.sock
push 3
push str.func
push 0x151
push str.file
call fcn.004e4f3c
add esp, 0x1c
jmp 0x5c1080
push 0x14
call fcn.00682bd5
mov edi, eax
xor ebx, ebx
pop ecx
test edi, edi
je 0x5c0fac
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
jmp 0x5c0fae
mov edi, ebx
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
xor eax, eax
push ebx
inc eax
mov dword [edi], esi
push ebx
push eax
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push edi
push 0x5c24df
push ebx
push ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x5c1039
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
mov edi, 0xabe96c
push eax
mov ecx, edi
mov dword [ebp - 0x14], esi
call fcn.005c013f
push eax
add eax, 0x10
mov ecx, edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.005c0660
push dword [0xabe970]
push esi
push str.create_recv_thread_ok__sock0x_x__runningThread_lu
push str.sock
push 2
push str.func
push 0x162
push str.file
call fcn.004e4f3c
xor ebx, ebx
add esp, 0x20
inc ebx
jmp 0x5c1080
mov esi, dword [0xabe970]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push dword [ebp - 4]
push str._Fail_to_Create_Recv_Thread__Sock0x_x__threadCount_u__err_u
push str.sock
push 2
push str.func
push 0x167
push str.file
call fcn.004e4f3c
add esp, 0x24
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x14
push edi
call fcn.00682c08
pop ecx
pop ecx
mov ecx, 0xabe974
call fcn.0041c51e
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c13b4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push esi
push edi
mov esi, ecx
je 0x5c13fd
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x5c13fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
push dword [esi + 0xcc]
call sym.txupd.exe_void___cdecl_Util::Network::LogSocketError_unsigned_int__int__int_
add esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_bind]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5c142d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
push dword [esi + 0xcc]
call sym.txupd.exe_void___cdecl_Util::Network::LogSocketError_unsigned_int__int__int_
add esp, 0xc
xor eax, eax
cmp edi, 0xffffffff
pop edi
setne al
pop esi
pop ebp
ret 0xc
Function at 0x5c14b1
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x28], edi
test esi, esi
jne 0x5c14d6
xor eax, eax
jmp 0x5c1610
push ebx
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00689b00
add esp, 0xc
lea ecx, [ebp - 0x24]
push 0xffffffffffffffff
push esi
push dword [ebp - 0x28]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_struct_tagUTF8__wchar_t_const___int_
lea ecx, [ebp - 0x24]
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const
push 2
mov esi, eax
pop eax
push esi
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x5c15e9
push 0x20
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x1c], ebx
push ebx
push eax
call fcn.00689b00
add esp, 0xc
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x11
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, dword [ebp - 0x1c]
mov esi, ebx
mov dword [ebp - 0x20], ebx
test eax, eax
jne 0x5c15c9
test edi, edi
je 0x5c162d
push 0x400
call fcn.00682d64
mov esi, eax
pop ecx
push 2
mov dword [ebp - 0x2c], esi
mov ebx, esi
lea eax, [esi + 0x3fc]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
pop ecx
mov eax, dword [edi + 0x18]
cmp cx, word [eax]
jne 0x5c15a2
cmp dword [edi + 0x10], 0x10
jne 0x5c15a2
push 4
add eax, 4
push eax
push ebx
call fcn.00689000
add esp, 0xc
add ebx, 4
inc esi
push 2
pop ecx
cmp ebx, dword [ebp - 0x18]
jae 0x5c15ae
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x5c157e
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov dword [eax], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, dword [ebp - 0x2c]
jmp 0x5c15d4
test edi, edi
je 0x5c162d
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x20], 0
jle 0x5c1622
mov eax, dword [esi]
push esi
mov dword [ebp - 0x10], eax
call fcn.00682d6d
mov edi, dword [ebp - 0x28]
pop ecx
push dword [ebp + 0xc]
call fcn.006af001
pop ecx
mov word [ebp - 0x12], ax
lea ecx, [ebp - 0x14]
mov eax, dword [edi]
push 0x10
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov ebx, eax
lea ecx, [ebp - 0x24]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00682c16
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x5c162d
push esi
call fcn.00682d6d
pop ecx
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x5c1605
Function at 0x5c20a6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 0xabe974
push ebx
push edi
call fcn.0041c516
lea eax, [ebp + 8]
mov edi, 0xabe96c
push eax
mov ecx, edi
call fcn.005c08d3
mov ecx, dword [0xabe96c]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x5c20df
cmp ebx, dword [eax + 0x10]
jb 0x5c20df
mov dword [ebp - 0xc], eax
jmp 0x5c20e4
mov dword [ebp - 8], ecx
mov eax, ecx
cmp eax, ecx
jne 0x5c2111
push ebx
push str._fail_to_remove_recv_thread:_sock_does_not_exist__Sock0x_x
push str.sock
push 2
push str.func
push 0x17a
push str.file
call fcn.004e4f3c
add esp, 0x1c
jmp 0x5c2218
push esi
mov esi, dword [eax + 0x14]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.005c3060
push dword [esi + 0x10]
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
mov eax, dword [ebp - 4]
push 0x3e8
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub eax, edi
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push dword [edi + 0xc]
call esi
push dword [edi + 0x10]
and dword [edi + 0xc], 0
call esi
and dword [edi + 0x10], 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x5c21b2
push 0x14
push edi
call fcn.00682c08
push dword [0xabe970]
push dword [ebp - 0xc]
push ebx
push str.success_to_remove_recv_thread__Sock0x_x__Tick_u_ms__runningThread_d
push str.sock
push 2
push str.func
push 0x195
push str.file
call fcn.004e4f3c
add esp, 0x2c
jmp 0x5c2217
cmp eax, 0x102
jne 0x5c21e5
push dword [0xabe970]
push ebx
push str._wait_timeout_when_remove_recv_thread__Sock0x_x__runningThread_d
push str.sock
push 2
push str.func
push 0x19c
push str.file
call fcn.004e4f3c
add esp, 0x20
jmp 0x5c2217
mov esi, dword [0xabe970]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebx
push str._wait_fail_when_remove_recv_thread__Sock0x_x__runningThread_d__err_u
push str.sock
push 2
push str.func
push 0x1a3
push str.file
call fcn.004e4f3c
add esp, 0x24
pop esi
mov ecx, 0xabe974
call fcn.0041c51e
xor eax, eax
pop edi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d7370
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xb0
call fcn.006839e0
mov eax, dword [0x7b088c]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xbc]
push ebp
push esi
push edi
mov eax, dword [eax + 4]
xor ebp, ebp
mov edi, dword [esp + 0xcc]
mov esi, eax
sub esi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0xd0], edi
jae 0x5d73d6
push str.orig_len___md_size
push 0xef
push str.._ssl_s3_cbc.c
call fcn.0056e560
add esp, 0xc
cmp edi, 0x40
jbe 0x5d73f2
push str.md_size___EVP_MAX_MD_SIZE
push 0xf0
push str.._ssl_s3_cbc.c
call fcn.0056e560
add esp, 0xc
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0x3c]
neg eax
lea ebx, [esp + 0x3c]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp ecx, eax
jbe 0x5d7420
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x40], esi
call fcn.00689b00
add esp, 0xc
mov dword [esp + 0x10], 0
cmp ebp, dword [esp + 0xd0]
jae 0x5d7516
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov eax, dword [esp + 0xc8]
not edx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x18]
mov ebx, edx
not ebx
mov esi, edx
mov eax, dword [eax + 0xc]
sub esi, ecx
mov dword [esp + 0x2c], ebx
mov ebx, ebp
sub ebx, edx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], eax
add ebx, dword [esp + 0x24]
mov eax, ebp
xor eax, ecx
mov edx, ebp
xor edx, dword [esp + 0x18]
or ebx, eax
mov eax, dword [esp + 0x28]
not ebx
mov ecx, dword [esp + 0x14]
and eax, ebp
or edx, ecx
or ebx, eax
mov eax, dword [esp + 0x2c]
not edx
and eax, ebp
sar ebx, 0x1f
or edx, eax
inc ebp
mov eax, dword [esp + 0x30]
sar edx, 0x1f
not dl
mov al, byte [eax + ecx]
mov ecx, dword [esp + 0x10]
and dl, al
and dl, bl
mov ebx, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x14], ebx
or byte [ecx + esi], dl
mov edx, ecx
inc edx
mov ecx, edx
mov eax, edx
xor ecx, edi
sub eax, edi
not ecx
and ecx, eax
mov eax, edx
not eax
and eax, edi
or ecx, eax
sar ecx, 0x1f
and edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + 0xd0]
jb 0x5d7493
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x5d754e
mov ebp, dword [esp + 0x38]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
xor ecx, edi
mov eax, esi
sub eax, edi
not ecx
and ecx, eax
inc edx
mov eax, esi
not eax
and eax, edi
or ecx, eax
sar ecx, 0x1f
and esi, ecx
cmp edx, edi
jb 0x5d7520
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00682c16
add esp, 0xb0
ret
Function at 0x5d7f10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.006839e0
mov edx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov eax, dword [edx]
inc ebp
push edi
cmp eax, 0x302
jge 0x5d7f48
cmp eax, 0x100
je 0x5d7f48
mov esi, dword [esp + 0x20]
cmp ebp, dword [esi + 4]
jbe 0x5d7f65
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
lea eax, [ecx + ebp]
mov edi, dword [esi + 4]
cmp eax, edi
ja 0x5d7f3f
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edi, ecx
mov dword [esi + 4], edi
test dword [edx + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x5d7faa
cmp dword [edx + 0x88], 0
jne 0x5d7faa
mov eax, dword [edx + 0x58]
cmp dword [eax + 8], 0
jne 0x5d7f9d
cmp dword [eax + 0xc], 0
jne 0x5d7f9d
test bl, 1
jne 0x5d7f9d
or dword [eax], 8
mov eax, dword [edx + 0x58]
test byte [eax], 8
je 0x5d7faa
test ebx, ebx
je 0x5d7faa
dec ebx
mov eax, dword [edx + 0x80]
push dword [eax]
call fcn.0059c090
add esp, 4
test eax, 0x200000
je 0x5d7fd6
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov ebp, dword [esi + 4]
mov edx, ebp
mov dword [esp + 0x18], ebp
xor edx, ecx
mov eax, ebp
sub eax, ecx
not ecx
or edx, eax
and ecx, ebp
not edx
lea eax, [ebp - 1]
or edx, ecx
mov ecx, 0xff
sar edx, 0x1f
cmp eax, ecx
mov dword [esp + 0x2c], edx
cmovb ecx, eax
xor edi, edi
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x5d8074
mov eax, dword [esi + 0xc]
mov ecx, ebx
dec ebp
sar ecx, 0x1f
add eax, ebp
mov dword [esp + 0x10], ecx
mov esi, ebx
mov dword [esp + 0x20], eax
mov ebp, edx
mov eax, edi
xor eax, ebx
or eax, esi
dec esi
not eax
sar eax, 0x1f
movzx edx, al
mov eax, edi
not eax
inc edi
sar eax, 0x1f
movzx ecx, al
mov eax, dword [esp + 0x10]
movzx eax, al
and ecx, eax
or edx, ecx
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx]
dec ecx
xor eax, ebx
mov dword [esp + 0x20], ecx
and edx, eax
not edx
and ebp, edx
cmp edi, dword [esp + 0x14]
jb 0x5d8027
mov esi, dword [esp + 0x24]
mov edx, ebp
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x18]
not edx
movzx eax, dl
lea ecx, [eax - 1]
not eax
sar eax, 0x1f
sar ecx, 0x1f
and ecx, eax
lea eax, [ebx + 1]
and eax, ecx
sub ebp, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
pop ebx
pop edi
mov dword [esi + 4], ebp
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x5dc680
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.006839e0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea eax, [esp + 0x14]
xor esi, esi
push eax
push edi
call fcn.005a8d40
add esp, 0xc
test eax, eax
je 0x5dc6db
nop dword [eax]
mov ecx, dword [esp + 0x10]
lea eax, [esi + 1]
shl ecx, 0xa
inc edi
and ecx, dword [esp + 0x24]
cmove eax, esi
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.005a8d40
add esp, 0xc
test eax, eax
jne 0x5dc6b0
mov eax, dword [esp + 0x54]
cdq
idiv esi
mov edi, dword [esp + 0x60]
cmp esi, 1
mov ebp, dword [esp + 0x58]
mov esi, 0
cmovne esi, dword [esp + 0x54]
push edi
push 0
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x60], esi
call fcn.00689b00
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.005a8d40
add esp, 0x18
test eax, eax
je 0x5dc856
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x24], eax
je 0x5dc832
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5dc863
push edi
push ebx
push dword [esp + 0x54]
and esi, 1
push dword [esp + 0x54]
add esi, dword [esp + 0x28]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x84]
push esi
push ecx
call fcn.005dc890
add esp, 0x3c
test eax, eax
je 0x5dc881
add esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x50], esi
test edi, edi
jle 0x5dc82e
cmp edi, 0x20
jb 0x5dc80b
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x5dc7c1
cmp edx, ebx
jae 0x5dc80b
mov eax, edi
and eax, 0x8000001f
jns 0x5dc7cf
dec eax
or eax, 0xffffffe0
inc eax
mov edx, edi
mov esi, ebx
sub edx, eax
mov eax, ebp
sub esi, ebp
nop dword [eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
add ecx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x5dc7e0
cmp ecx, edi
jge 0x5dc82e
mov esi, ebx
lea eax, [ecx + ebp]
mov edx, edi
sub esi, ebp
sub edx, ecx
nop word [eax + eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x5dc820
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.005a8d40
add esp, 0xc
test eax, eax
jne 0x5dc730
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.0055b840
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret