joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54e290
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.004ee388
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x54e2b6
cmp ecx, 0xffffffff
cmovne eax, ecx
ret

Function at 0x54f1e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x7ff5b4]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x54f231
push 3
push 2
push eax
push eax
push 6
call fcn.00553400
add esp, 0x14
test al, al
je 0x54f225
mov dword [0x7ff5b4], 2
add esp, 0xc
ret
mov dword [0x7ff5b4], 1
jmp 0x54f236
cmp eax, 2
je 0x54f27c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x54f261
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x54f27c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x54fd50
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x74b1ac]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push edi
mov edi, dword [esp + 0x11c]
push 0
mov eax, dword [ebx]
push dword [esp + 0x11c]
push ecx
mov eax, dword [eax + 8]
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x54fdee
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x54fdba
mov dword [edi], 0x51
jmp 0x54fdea
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0052b700
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.00523f80
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x930], esi
mov dword [edi], 0x38
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x108]
pop edi
pop ebx
xor ecx, esp
call fcn.004cd30a
add esp, 0x104
ret

Function at 0x54fe10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x74b1ac]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x1e8]
test dword [eax + 0x44], 0x800
jne 0x54ff3d
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.004e5e40
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x54feca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.0052b700
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00523f80
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004cd30a
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.00524bb0
add esp, 0x10
test al, al
jne 0x54ff3d
push edi
call fcn.004f5785
mov esi, dword [eax]
call fcn.004f5785
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.0052b700
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00523f80
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004cd30a
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.004cd30a
add esp, 0x188
ret
Function at 0x55a1f0
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push 0x11
push str.WWW_Authenticate:
push esi
call fcn.00510ce0
add esp, 0xc
test eax, eax
je 0x55a21e
mov ebp, dword [edi + 0xe8]
cmp ebp, 0x191
je 0x55a240
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.00510ce0
add esp, 0xc
test eax, eax
je 0x55a286
mov ebp, dword [edi + 0xe8]
cmp ebp, 0x197
jne 0x55a286
push esi
call fcn.00539510
mov esi, eax
add esp, 4
test esi, esi
jne 0x55a257
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x197
push esi
sete al
movzx eax, al
push eax
push edi
call fcn.0053b070
push esi
mov edi, eax
call dword [0x74bc2c]
add esp, 0x10
test edi, edi
je 0x55a425
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.00510ce0
add esp, 0xc
test eax, eax
je 0x55a2e2
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x55a2c1
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00524050
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
add eax, 0x208
push eax
push 0xa
lea eax, [esi + 0xf]
push 0
push eax
call fcn.0052d350
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push 0x69d9f0
push 0xb
push str.Connection:
push esi
call fcn.00539460
add esp, 0x14
test al, al
jne 0x55a41a
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00510ce0
add esp, 0xc
test eax, eax
je 0x55a381
mov ecx, dword [edi + 0xe8]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0x55a33c
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.00524050
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.00539460
add esp, 0x14
test al, al
je 0x55a425
push str.CONNECT_responded_chunked
push edi
call fcn.00524050
mov eax, dword [esp + 0x24]
push edi
mov byte [eax + 0x214], 1
call fcn.0054cda0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
push 0x69d9f0
push 0x11
push str.Proxy_Connection:
push esi
call fcn.00539460
add esp, 0x14
test al, al
jne 0x55a41a
push 7
push str.HTTP_1.
push esi
call fcn.004f4050
add esp, 0xc
test eax, eax
jne 0x55a425
mov al, byte [esi + 7]
cmp al, 0x30
je 0x55a3bb
cmp al, 0x31
jne 0x55a425
cmp byte [esi + 8], 0x20
jne 0x55a425
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0x55a425
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x55a425
mov dh, byte [esi + 0xb]
mov al, dh
sub al, 0x30
cmp al, 9
ja 0x55a425
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x55a3ed
cmp al, 0x39
jle 0x55a425
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, dh
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe8], eax
mov dword [edi + 0xd8c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x215], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x55c630
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x74bc28]
mov esi, eax
add esp, 4
test esi, esi
jne 0x55c65b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x55c6aa
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x55c6b2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x55c723
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x55c6e0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x55c755
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x6a1c96
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x6a1c97
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x55c730
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x55c760
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.00510d90
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x74bc28]
mov esi, eax
add esp, 8
test esi, esi
je 0x55c8e2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x55c7e2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x55c853
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x55c810
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x55c885
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x6a1c96
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x6a1c97
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x55c860
push dword [esp + 0x30]
call fcn.00510d90
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x55c8b0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x74bc2c]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x589ee0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x589f07
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x589ef6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x5902b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x84], 0xffffffff
jne 0x5902c2
xor eax, eax
pop ebx
ret
push ebp
push esi
push dword [ebx]
call fcn.0058a340
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x590376
mov ecx, dword [ebx + 0x84]
push edi
cmp ecx, esi
jne 0x590316
test esi, esi
jle 0x590354
mov edx, ebp
lea ecx, [ebx + 4]
mov edi, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x590300
jmp 0x590354
sub eax, ecx
mov byte [ecx + ebx + 0x64], 0x80
cmp eax, 1
jle 0x590334
dec eax
push eax
lea eax, [ebx + 0x65]
add eax, ecx
push 0
push eax
call fcn.004e5e40
add esp, 0xc
test esi, esi
jle 0x590354
mov edx, ebp
lea ecx, [ebx + 0x24]
mov edi, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x590340
push esi
push ebp
push ebp
push dword [ebx]
call fcn.0058a9b0
add esp, 0x10
pop edi
test eax, eax
jne 0x590376
push esi
push ebp
call fcn.00586a70
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x59d4e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.004ce320
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
call fcn.0056b840
mov ebx, eax
push ebx
push esi
call fcn.0056b720
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x59d55f
push 0xf0000040
push 1
xor edi, edi
lea eax, [esp + 0x18]
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x59d543
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0056b790
push esi
call fcn.0056b8e0
add esp, 0x10
test eax, eax
jne 0x59d5d9
push 1
push esi
call fcn.0056b840
mov ebx, eax
push ebx
push esi
call fcn.0056b720
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x59d5d0
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x59d5b4
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.0056b790
push esi
call fcn.0056b8e0
add esp, 0x10
test eax, eax
jne 0x59d5d9
push esi
call fcn.0056b8e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5a0270
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004ce320
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x5a02f0
mov cl, byte [edi]
test cl, cl
je 0x5a02f0
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x5a02a0
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x5a0390
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004ce320
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x5a0413
mov al, byte [ebx]
test al, al
je 0x5a0413
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.00587110
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x5a03b7
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x5ab860
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x5ab878
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x5ab87d
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x5ab955
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
inc edi
movzx eax, byte [edi - 1]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
cmp esi, 3
jb 0x5ab8e9
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x5ab935
shl eax, 0x10
cmp esi, 2
jne 0x5ab8f9
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x5ab91c
mov al, 0x3d
jmp 0x5ab925
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 2], al
mov cl, 0x3d
mov eax, dword [esp + 0x14]
add eax, 3
sub esi, 3
mov byte [eax], cl
add ebp, 4
lea edx, [eax + 1]
add edi, 3
test esi, esi
jg 0x5ab893
pop edi
pop esi
mov eax, ebp
mov byte [edx], 0
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop esi
mov byte [eax], 0
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x5b3ca0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004ce320
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.00510e80
add esp, 4
cmp eax, 0x72
jne 0x5b3e5b
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ebx, eax
push esi
push ebp
push dword [esp + 0x2c]
and eax, 1
shr ebx, 1
push dword [esp + 0x2c]
add eax, ebx
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x24], eax
call fcn.00599c20
push eax
call fcn.005b3a40
add esp, 0x1c
test eax, eax
je 0x5b3e54
push edi
push 0x104
push str.....cryptokdf_tls1_prf.c
push esi
call fcn.0055fdc0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5b3d3b
push 0x105
push str.....cryptokdf_tls1_prf.c
push 0x41
push 0x6f
push 0x34
call fcn.0056dc20
add esp, 0x14
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x1c]
push esi
push edi
push dword [esp + 0x30]
add eax, ebx
push dword [esp + 0x30]
push dword [esp + 0x20]
push eax
call fcn.005667c0
push eax
call fcn.005b3a40
add esp, 0x1c
test eax, eax
jne 0x5b3d7e
push 0x10a
push str.....cryptokdf_tls1_prf.c
push esi
push edi
call fcn.0055feb0
add esp, 0x10
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
xor ebx, ebx
test esi, esi
je 0x5b3e35
cmp esi, 0x40
jb 0x5b3e1a
lea eax, [esi - 1]
lea ecx, [ebp - 1]
add eax, edi
add ecx, esi
cmp ebp, eax
ja 0x5b3da3
cmp ecx, edi
jae 0x5b3e1a
mov edx, esi
lea eax, [ebp + 0x10]
mov esi, edi
lea ecx, [edi + 0x30]
and edx, 0xffffffc0
sub esi, ebp
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x10]
nop
movups xmm0, xmmword [eax - 0x10]
add ebx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebx, edx
jb 0x5b3dc0
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
cmp ebx, esi
jae 0x5b3e35
lea ecx, [ebx + ebp]
mov edx, esi
mov ebp, edi
sub ebp, dword [esp + 0x2c]
sub edx, ebx
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x5b3e27
push 0x10f
push str.....cryptokdf_tls1_prf.c
push esi
push edi
call fcn.0055feb0
add esp, 0x10
mov eax, 1
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
pop ebp
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call fcn.005b3a40
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop esi
pop ecx
ret
Function at 0x5c7100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x5c7173
mov edx, dword [esp + 0x10]
test edx, edx
je 0x5c7173
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [ebx + 0x14]
cmp edx, edi
cmovb edi, edx
test edi, edi
je 0x5c7140
push esi
mov esi, ebp
lea ecx, [ebx + 0x18]
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x5c7130
pop esi
mov eax, dword [ebx + 0x14]
cmp edx, eax
jbe 0x5c7171
sub edx, eax
cmp edx, 0x10
jbe 0x5c7155
mov edx, 0x10
jmp 0x5c7159
test edx, edx
je 0x5c7171
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0x14]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x38], al
inc ecx
cmp ecx, edx
jb 0x5c7160
pop edi
pop ebx
pop ebp
ret
Function at 0x5f69d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.004ce320
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [eax + 0x60]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, dword [ebp + 0x70]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
test ecx, ecx
je 0x5f6a39
test ebx, ebx
je 0x5f6a19
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x5f6a19
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [edi], al
inc esi
inc edi
sub ebx, 1
jne 0x5f6a05
mov dword [ebp + 0x70], ecx
test ebx, ebx
je 0x5f6af4
cmp ecx, 0x40
jne 0x5f6a39
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x5f6a39
inc dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, ebx
and eax, 0x3f
sub ebx, eax
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x24], eax
cmp ebx, 0x40
jb 0x5f6aa7
push dword [esp + 0x24]
mov ecx, ebx
xor ebp, ebp
shr ecx, 6
lea eax, [ecx + edx]
cmp eax, ecx
cmovae ebp, eax
neg edx
cmp eax, ecx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
cmovae edx, ecx
shl edx, 6
push ebp
push edx
push esi
push edi
mov dword [esp + 0x28], edx
call fcn.006169f0
mov eax, dword [esp + 0x28]
add esp, 0x14
sub ebx, eax
add esi, eax
add edi, eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
test eax, eax
jne 0x5f6aa0
inc dword [ebp + 0x24]
mov edx, eax
cmp ebx, 0x40
jae 0x5f6a53
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x5f6af4
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.004e5e40
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.006169f0
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x5f6af1
sub esi, edi
nop dword [eax + eax]
mov al, byte [edx + ebp + 0x30]
lea ecx, [edx + edi]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x5f6ae0
mov dword [ebp + 0x70], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret