joyce8/EMBER2024-capa huggingface dataset:
Function at 0x513690
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.004855d0
mov eax, dword [0x62b370]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
push ebx
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0xa8]
push ebp
push esi
mov esi, dword [esp + 0xb8]
mov eax, dword [eax + 4]
push edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x10], eax
sub eax, edi
mov dword [esp + 0x14], eax
cmp esi, edi
jae 0x5136f6
push str.orig_len___md_size
push 0x113
push str.._ssl_s3_cbc.c
call fcn.00524780
add esp, 0xc
cmp edi, 0x40
jbe 0x513712
push str.md_size___EVP_MAX_MD_SIZE
push 0x114
push str.._ssl_s3_cbc.c
call fcn.00524780
add esp, 0xc
lea eax, [esp + 0x28]
neg eax
lea ebp, [esp + 0x28]
and eax, 0x3f
add ebp, eax
lea eax, [edi + 0x100]
cmp esi, eax
jbe 0x513735
mov ebx, esi
sub ebx, edi
sub ebx, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebx
add eax, dword [esp + 0x14]
div edi
push edi
mov esi, edx
push 0
push ebp
mov dword [esp + 0x2c], esi
call fcn.004d7c10
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x18], ecx
cmp ebx, dword [esp + 0xbc]
jae 0x5137ef
mov eax, dword [esp + 0xb4]
mov edx, ebx
mov esi, dword [esp + 0x10]
sub edx, esi
mov edi, esi
mov dword [esp + 0x10], edx
sub edi, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
add eax, esi
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
sub esi, ebx
nop dword [eax + eax]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ebx, edx
mov edi, dword [esp + 0x1c]
not edx
sar edx, 0x1f
not ebx
not dl
sar ebx, 0x1f
mov al, byte [edi + eax]
mov edi, dword [esp + 0xb8]
and dl, al
and dl, bl
or byte [ecx + ebp], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc ecx
mov eax, ecx
inc edx
sub eax, edi
mov dword [esp + 0x10], edx
sar eax, 0x1f
and ecx, eax
mov dword [esp + 0x18], ecx
sub esi, 1
jne 0x5137a0
mov esi, dword [esp + 0x20]
xor ecx, ecx
test edi, edi
je 0x51381e
mov edx, dword [esp + 0x24]
nop dword [eax]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebp]
movzx eax, byte [esi + ebp]
inc esi
mov byte [edx + ecx], al
mov eax, esi
sub eax, edi
inc ecx
sar eax, 0x1f
and esi, eax
cmp ecx, edi
jb 0x513800
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00484636
add esp, 0x9c
ret
Function at 0x514120
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov eax, dword [edx]
inc ebp
push edi
cmp eax, 0x302
jge 0x51414b
cmp eax, 0x100
je 0x51414b
mov esi, dword [esp + 0x14]
cmp ebp, dword [esi + 4]
jbe 0x514168
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea eax, [ecx + ebp]
mov edi, dword [esi + 4]
cmp eax, edi
ja 0x514145
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 0x5141ad
cmp dword [edx + 0x88], 0
jne 0x5141ad
mov eax, dword [edx + 0x58]
cmp dword [eax + 8], 0
jne 0x5141a0
cmp dword [eax + 0xc], 0
jne 0x5141a0
test bl, 1
jne 0x5141a0
or dword [eax], 8
mov eax, dword [edx + 0x58]
test byte [eax], 8
je 0x5141ad
test ebx, ebx
je 0x5141ad
dec ebx
mov eax, dword [edx + 0x80]
push dword [eax]
call fcn.00544c50
add esp, 4
test eax, 0x200000
je 0x5141d6
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
ret
mov edi, dword [esi + 4]
mov ecx, 0xff
mov edx, edi
mov dword [esp + 0x20], edi
sub edx, ebx
sub edx, ebp
not edx
lea eax, [edi - 1]
sar edx, 0x1f
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x514237
mov ebp, dword [esp + 0x20]
mov edi, ebx
dec ebp
add ebp, dword [esi + 0xc]
mov esi, ecx
nop dword [eax]
mov eax, edi
lea ebp, [ebp - 1]
not eax
dec edi
sar eax, 0x1f
movzx ecx, al
movzx eax, byte [ebp + 1]
xor eax, ebx
and ecx, eax
not ecx
and edx, ecx
sub esi, 1
jne 0x514210
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov eax, edx
shr eax, 4
and edx, eax
mov eax, edx
shr eax, 2
and edx, eax
lea eax, [ebx + 1]
pop ebx
lea ecx, [edx + edx]
and ecx, edx
shl ecx, 0x1e
sar ecx, 0x1f
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
mov eax, ecx
mov dword [esi + 4], edi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
ret
Function at 0x514a10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.004855d0
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.00502950
add esp, 0xc
test eax, eax
je 0x514a6b
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.00502950
add esp, 0xc
test eax, eax
jne 0x514a40
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.004d7c10
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x20]
push eax
push 0
call fcn.00502950
add esp, 0x18
test eax, eax
je 0x514be6
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
shl eax, 0xa
test dword [esp + 0x24], eax
je 0x514bc2
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x514bf3
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.00514c20
add esp, 0x3c
test eax, eax
je 0x514c11
add esi, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x50], esi
test edi, edi
jle 0x514bbe
cmp edi, 0x20
jb 0x514b9b
lea eax, [ebx - 1]
lea edx, [ebp - 1]
add eax, edi
add edx, edi
cmp ebp, eax
ja 0x514b51
cmp edx, ebx
jae 0x514b9b
mov eax, edi
and eax, 0x8000001f
jns 0x514b5f
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 0x514b70
cmp ecx, edi
jge 0x514bbe
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 0x514bb0
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.00502950
add esp, 0xc
test eax, eax
jne 0x514ac0
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.00521470
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x521940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004855d0
mov eax, dword [0x62b370]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
test edi, edi
jne 0x521985
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00484636
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.004ec2f4
add esp, 8
test eax, eax
js 0x52196e
mov eax, 8
call fcn.004855d0
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.00521a80
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x52196e
push 0x5aac0c
push edi
call fcn.004de6d7
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x521a61
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x5219ee
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.004df278
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x521a42
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.004855d0
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.00521a80
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x5219e0
sub esi, edi
test esi, esi
jg 0x5219e0
push dword [esp + 0x40]
call fcn.004ddfd7
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.004012d0
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00484636
mov esp, ebp
pop ebp
ret
Function at 0x524640
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x10c
call fcn.004855d0
mov eax, dword [0x62b370]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x5246b3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x5246b3
mov esi, dword [esp + 0x114]
call fcn.005a0790
lea ecx, [esp + 0x118]
add eax, 8
push ecx
push 0
push esi
push eax
call fcn.0042e8b0
push dword [eax + 4]
push dword [eax]
call fcn.004dc844
add esp, 0x18
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00484636
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.0042e8b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004dc909
add esp, 0x1c
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x524750
call fcn.00524500
test eax, eax
jle 0x524750
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.00484636
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.00484636
add esp, 0x10c
ret

Function at 0x5248c0
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.00518000
add esp, 8
test esi, esi
jg 0x524917
je 0x5248f9
cmp esi, 0xffffffff
jne 0x524917
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00524b20
add esp, 4
test eax, eax
je 0x524917
push 0xa
push edi
call fcn.00518700
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x52afa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.004855d0
mov eax, dword [0x62b370]
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 0x52afc5
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 0x52b030
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x52b023
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 0x52b030
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x52b0ac
lea eax, [esi + esi]
call fcn.00485220
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 0x52b10b
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52b060
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 0x52b10b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.004de6b5
mov esi, eax
add esp, 8
test esi, esi
jne 0x52b0be
call fcn.004dea41
cmp dword [eax], 2
je 0x52b0ae
call fcn.004dea41
cmp dword [eax], 9
jne 0x52b10b
push ebx
push edi
call fcn.004de6d7
mov esi, eax
add esp, 8
test esi, esi
je 0x52b10b
push 0x62f3b8
call fcn.005183d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x52b0df
push esi
call fcn.004ddfd7
add esp, 4
jmp 0x52b173
push 0
push edi
call fcn.00518000
push esi
push 1
push 0x6a
push edi
call fcn.00518030
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.00484636
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.00521470
push 0x5c8a0c
push ebx
push 0x5def60
push edi
push str.fopen_
push 5
call fcn.00520a50
add esp, 0x2c
call fcn.004dea41
cmp dword [eax], 2
jne 0x52b15b
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x52b167
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00521470
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.00484636
mov esp, ebp
pop ebp
ret
Function at 0x52d7a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004855d0
mov eax, dword [0x62b370]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.00527230
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00527090
add esp, 0xc
test eax, eax
je 0x52d8a2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00526d80
add esp, 0xc
test eax, eax
je 0x52d8a2
lea eax, [esp + 0x20]
push eax
call fcn.00526fd0
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x52d8c0
push edi
call fcn.0051bf50
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.0052ef30
mov esi, eax
add esp, 0xc
test esi, esi
je 0x52d8a2
push esi
call fcn.0052f540
add esp, 4
test eax, eax
jle 0x52d8a2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.0052ece0
add esp, 0x18
test eax, eax
jle 0x52d8a2
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.0052f460
add esp, 0x14
test eax, eax
jle 0x52d8a2
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.0052eed0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00484636
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x52d8d8
cmp dword [edi], edx
je 0x52d902
inc eax
add ecx, 4
cmp eax, 4
jl 0x52d8c5
push 0x7f
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.00521470
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00484636
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x52d936
push 0x85
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.00521470
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00484636
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00484636
add esp, 0x6c
ret
Function at 0x5358f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004855d0
mov eax, dword [0x62b370]
xor eax, esp
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov edx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
test edi, edi
je 0x53593a
mov dword [esi], edi
jmp 0x53593c
mov edi, dword [esi]
xor eax, eax
test edx, edx
setne al
test ecx, ecx
je 0x535ac6
push edi
call fcn.0052fec0
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x535972
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.00524780
add esp, 0xc
mov ebx, dword [esp + 0xa8]
cmp ebp, ebx
jge 0x5359ca
push dword [esp + 0x10]
lea ebp, [esi + 4]
push edi
push ebp
call fcn.00526e20
add esp, 0xc
test eax, eax
je 0x535ac2
push ebx
push dword [esp + 0x18]
push ebp
call fcn.00526fc0
add esp, 0xc
test eax, eax
je 0x535ac2
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
lea eax, [esi + 4]
push eax
call fcn.00526d80
add esp, 0xc
test eax, eax
je 0x535ac2
jmp 0x535a01
test ebx, ebx
js 0x5359d6
cmp ebx, 0x80
jle 0x5359ea
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.00524780
add esp, 0xc
push ebx
push dword [esp + 0x18]
lea eax, [esi + 0x50]
push eax
call fcn.004d4c70
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x535a24
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.004d7c10
add esp, 0xc
mov ebp, dword [esp + 0x10]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x535a30
push ebp
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.00526e20
add esp, 0xc
test eax, eax
je 0x535ac2
push edi
call fcn.0052fec0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00526fc0
add esp, 0x10
test eax, eax
je 0x535ac2
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x535a70
push ebp
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.00526e20
add esp, 0xc
test eax, eax
je 0x535ac2
push edi
call fcn.0052fec0
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00526fc0
add esp, 0x10
test eax, eax
je 0x535ac2
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00527090
add esp, 8
test eax, eax
jne 0x535acf
xor eax, eax
jmp 0x535ad4
test eax, eax
je 0x535aae
jmp 0x535a28
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00484636
add esp, 0x8c
ret
Function at 0x54e360
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x54e44c
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
cmp esi, 3
jl 0x54e3dd
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
jmp 0x54e431
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x54e3f1
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x54e41b
lea eax, [esi + 0x3c]
jmp 0x54e428
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
sub esi, 3
add ebx, 4
add edi, 3
inc edx
test esi, esi
jg 0x54e380
pop edi
pop esi
mov eax, ebx
mov byte [edx], 0
pop ebx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
ret
Function at 0x557960
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, 0x400
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, 0x80
mov esi, edx
mov ecx, edi
mov byte [ebp], 0
cmp dword [esp + 0x18], ecx
cmovle ecx, dword [esp + 0x18]
test eax, eax
cmovg esi, eax
cmp esi, edx
cmovg esi, edx
mov dword [esp + 0x14], esi
test ecx, ecx
jle 0x5579b5
mov ebx, dword [esp + 0x1c]
mov edx, ebp
sub ebx, ebp
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x5579a3
mov esi, dword [esp + 0x14]
movzx ebx, byte [ecx + ebp - 1]
cmp ecx, edi
jge 0x5579da
mov edx, ebp
movzx eax, byte [edx]
lea edx, [edx + 1]
add eax, ebx
movzx eax, al
movzx ebx, byte [eax + 0x5f2140]
mov byte [ecx + ebp], bl
inc ecx
cmp ecx, edi
jl 0x5579c0
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 7]
sar ebx, 3
neg ecx
sub edi, ebx
and ecx, 7
movzx eax, byte [edi + ebp]
lea esi, [edi + ebp]
mov edx, 0xff
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x5f2140]
mov byte [esi], cl
test edi, edi
je 0x557a28
nop dword [eax + eax]
movzx eax, byte [esi + ebx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x5f2140]
mov byte [esi], cl
sub edi, 1
jne 0x557a10
lea esi, [ebp + 0xfc]
mov edi, 0x40
lea edx, [ebp + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
sub edi, 1
jne 0x557a36
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x558af0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.004855d0
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x2c]
mov esi, dword [esi]
test esi, esi
je 0x558b2d
mov ecx, dword [esp + 0x38]
test edi, edi
je 0x558b2d
mov al, byte [esi + ecx]
dec edi
xor al, byte [ebp]
inc esi
mov byte [ebx], al
inc ebp
inc ebx
and esi, 0xf
jne 0x558b18
mov edx, dword [esp + 0x34]
cmp edi, 0x10
jb 0x558bd1
mov ecx, dword [esp + 0x38]
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, edi
shr eax, 4
mov dword [esp + 0x2c], eax
shl eax, 4
add ebx, eax
add ebp, eax
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
jmp 0x558b74
mov ecx, dword [esp + 0x38]
push dword [esp + 0x30]
push ecx
push edx
call dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
push eax
call fcn.00558d50
add esp, 0x10
cmp esi, 0x10
jae 0x558bb3
mov eax, dword [esp + 0x38]
mov edx, 0xf
sub edx, esi
add eax, esi
shr edx, 2
inc edx
mov ecx, dword [eax + ebp]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [ebx + eax - 4], ecx
sub edx, 1
jne 0x558ba1
mov edx, dword [esp + 0x34]
sub edi, 0x10
add ebx, 0x10
add ebp, 0x10
xor esi, esi
sub dword [esp + 0x2c], 1
jne 0x558b70
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
test edi, edi
je 0x558c12
push dword [esp + 0x30]
push dword [esp + 0x3c]
push edx
call dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
push eax
call fcn.00558d50
mov eax, dword [esp + 0x48]
add esp, 0x10
sub ebp, eax
sub ebx, eax
lea ecx, [esi + eax]
add esi, edi
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edi, 1
jne 0x558c00
mov eax, dword [esp + 0x3c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret