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

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x20]
call fcn.0049b2c0
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x64c024]
mov edi, eax
add esp, 8
test edi, edi
je 0x4d0a18
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4d092c
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4d0991
mov dword [esp + 0x18], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4d0950
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 0x10]
jae 0x4d09bd
mov eax, dword [esi + 4]
push 1
push 0x5e4d50
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5e4d51
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4d0996
push dword [esp + 0x28]
call fcn.0049b2c0
mov ecx, dword [edi]
push eax
push dword [esp + 0x2c]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x4d09e8
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x64c028]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
Function at 0x4ef180
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.005cf470
mov eax, dword [0x64c00c]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x30], eax
mov esi, dword [esi + 4]
mov dword [esp + 0x1c], esi
sub esi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0xc8], edi
jae 0x4ef1e4
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.005161b0
add esp, 0xc
cmp edi, 0x40
jbe 0x4ef200
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.005161b0
add esp, 0xc
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp ecx, eax
jbe 0x4ef22e
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 + 0x38], esi
call fcn.005a52f0
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x4ef30b
mov ecx, dword [esp + 0x1c]
mov esi, ebx
mov edx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x1f
sub ebp, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc0]
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea ebx, [ecx + ebp]
shr ebx, 0x1f
lea ecx, [edi + ebp]
shr ecx, 0x1f
xor cl, dl
xor dl, bl
or cl, dl
mov edx, ebp
xor cl, bl
shr edx, 0x1f
xor dl, byte [esp + 0x14]
dec cl
mov dword [esp + 0x28], ecx
mov cl, byte [eax + ebp]
mov al, bl
xor al, byte [esp + 0x14]
inc ebp
or dl, al
xor dl, bl
mov ebx, dword [esp + 0x18]
neg dl
and dl, cl
and dl, byte [esp + 0x28]
or byte [ebx + esi], dl
inc ebx
mov edx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, edi
mov eax, ebx
xor ecx, edi
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0xc8]
jb 0x4ef291
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x4ef33f
mov ebp, dword [esp + 0x30]
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
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x4ef315
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00483ab6
add esp, 0xa8
ret
Function at 0x4efe70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005cf470
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
inc ebp
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x4eff32
mov edx, dword [esp + 0x1c]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x4eff36
add dword [esi + 0xc], edx
add dword [esi + 0x10], edx
sub ecx, edx
mov dword [esi + 4], ecx
test dword [edi + 0x100], 0x200
mov eax, dword [esi + 0xc]
push ebx
movzx ebx, byte [eax + ecx - 1]
je 0x4eff07
cmp dword [edi + 0x88], 0
jne 0x4eff07
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x5eade4
push eax
call fcn.00515ee0
add esp, 0xc
test eax, eax
jne 0x4efefa
test bl, 1
jne 0x4efefa
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x4eff07
test ebx, ebx
je 0x4eff07
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.004d38f0
mov edi, dword [esi + 4]
add esp, 4
and eax, 0x200000
je 0x4eff3d
sub edi, ebx
mov eax, 1
dec edi
pop ebx
mov dword [esi + 4], edi
pop edi
pop esi
pop ebp
pop ecx
ret
cmp ebp, ecx
jbe 0x4efeb7
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
lea ecx, [ebx + ebp]
mov edx, edi
sub edx, ecx
mov eax, edi
xor edx, ecx
xor eax, ecx
or edx, eax
mov ecx, 0xff
xor edx, edi
lea eax, [edi - 1]
shr edx, 0x1f
dec edx
cmp eax, ecx
mov dword [esp + 0x24], edx
cmovb ecx, eax
xor edx, edx
test ecx, ecx
je 0x4effbf
mov ebp, dword [esi + 0xc]
mov eax, ebx
shr eax, 0x1f
dec ebp
mov dword [esp + 0x18], eax
add ebp, edi
mov esi, ecx
nop word [eax + eax]
mov ecx, ebx
lea ebp, [ebp - 1]
sub ecx, edx
mov eax, edx
shr ecx, 0x1f
inc edx
shr eax, 0x1f
xor cl, al
xor al, byte [esp + 0x18]
or cl, al
movzx eax, byte [ebp + 1]
xor cl, byte [esp + 0x18]
xor eax, ebx
dec cl
movzx ecx, cl
and ecx, eax
mov eax, dword [esp + 0x24]
not ecx
and eax, ecx
mov dword [esp + 0x24], eax
cmp edx, esi
jb 0x4eff80
mov esi, dword [esp + 0x1c]
jmp 0x4effc3
mov eax, dword [esp + 0x24]
not eax
movzx ecx, al
lea eax, [ebx + 1]
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub edi, eax
shl eax, 8
or dword [esi], eax
mov dword [esi + 4], edi
mov dword [esp + 0x24], ecx
not ecx
pop ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x4fee70
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.004fef90
mov edi, eax
add esp, 8
test edi, edi
jne 0x4fef01
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0050ce40
push 0x5e6908
push esi
push 0x5ebbd0
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.0050c280
add esp, 0x2c
call fcn.005a91e6
cmp dword [eax], 2
je 0x4feedf
call fcn.005a91e6
cmp dword [eax], 6
je 0x4feedf
lea eax, [edi + 2]
mov ecx, 0xb8
jmp 0x4feee9
mov eax, 0x80
mov ecx, 0xb6
push ecx
push str..crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.0050ce40
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x64edc8
call fcn.004ff580
mov esi, eax
add esp, 4
test esi, esi
jne 0x4fef22
push edi
call fcn.005b33d0
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.004ff1a0
push edi
push 1
push 0x6a
push esi
call fcn.004ff1d0
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x50a5b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.005cf470
mov eax, dword [0x64c00c]
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
je 0x50a6fa
lea eax, [esp + 0x48]
push eax
push edi
call fcn.005b2ffb
add esp, 8
test eax, eax
js 0x50a6fa
lea eax, [ebx + 8]
call fcn.005cf470
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.0050a2d0
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x50a6fa
push 0x636840
push edi
call fcn.005b3c4d
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x50a6e3
test dword [esp + 0x4e], 0x2000
je 0x50a662
push ebx
push 4
mov ecx, 0x800
cmp esi, 0xffffffff
push ebx
push eax
cmove esi, ecx
call fcn.005be661
mov eax, dword [esp + 0x50]
add esp, 0x10
mov edi, 0x400
test esi, esi
jle 0x50a670
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.005b3f18
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x50a6c4
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.005cf470
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.0050a2d0
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x50a662
sub esi, edi
test esi, esi
jg 0x50a662
push dword [esp + 0x40]
call fcn.005b33d0
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.0051ab20
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00483ab6
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x47c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00483ab6
mov esp, ebp
pop ebp
ret
Function at 0x516050
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.005cf470
mov eax, dword [0x64c00c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x5160ef
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x5160ef
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.004075d0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005ad4a4
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00483ab6
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.004075d0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005ad4a4
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.00515f10
test eax, eax
jle 0x516183
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x516197
push 0
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 + 0x104]
xor ecx, esp
call fcn.00483ab6
add esp, 0x108
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 + 0x108]
pop esi
xor ecx, esp
call fcn.00483ab6
add esp, 0x108
ret
Function at 0x526bb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x90
call fcn.005cf470
mov eax, dword [0x64c00c]
xor eax, esp
mov dword [esp + 0x8c], eax
mov edx, dword [esp + 0xa4]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 4], edx
push ebp
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x10], ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xac]
mov eax, dword [esi]
test ebx, ebx
je 0x526c1c
cmp ebx, eax
je 0x526c13
test ebp, ebp
je 0x526d99
test edi, edi
js 0x526d99
mov ecx, 1
mov dword [esi], ebx
jmp 0x526c26
test eax, eax
je 0x526d99
mov ebx, eax
test ebp, ebp
je 0x526d90
push ebx
call fcn.0051de30
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x526c5a
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.005161b0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jge 0x526cab
push dword [esp + 0x10]
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.005057b0
add esp, 0xc
test eax, eax
je 0x526d99
push edi
push dword [esp + 0x1c]
push ebp
call fcn.00505960
add esp, 0xc
test eax, eax
je 0x526d99
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.00505710
add esp, 0xc
test eax, eax
je 0x526d99
mov edi, dword [esi + 0x4c]
jmp 0x526cc8
cmp edi, 0x80
ja 0x526d99
push edi
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.005a5500
add esp, 0xc
mov dword [esi + 0x4c], edi
cmp edi, 0x80
je 0x526ce8
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x50]
add eax, edi
push 0
push eax
call fcn.005a52f0
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
nop
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x526cf0
push edx
lea edi, [esi + 0x1c]
push ebx
push edi
call fcn.005057b0
add esp, 0xc
test eax, eax
je 0x526d99
push ebx
call fcn.0051de30
push eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00505960
add esp, 0x10
test eax, eax
je 0x526d99
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x526d34
push dword [esp + 0x10]
lea edi, [esi + 0x34]
push ebx
push edi
call fcn.005057b0
add esp, 0xc
test eax, eax
je 0x526d99
push ebx
call fcn.0051de30
push eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00505960
add esp, 0x10
test eax, eax
je 0x526d99
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00505b70
add esp, 8
test eax, eax
je 0x526d99
mov eax, 1
jmp 0x526d9b
test ecx, ecx
je 0x526d75
jmp 0x526cec
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00483ab6
add esp, 0x90
ret
Function at 0x52a960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.005cf470
mov eax, dword [0x64c00c]
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.00505d10
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00505b70
add esp, 0xc
test eax, eax
je 0x52aa62
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00505710
add esp, 0xc
test eax, eax
je 0x52aa62
lea eax, [esp + 0x20]
push eax
call fcn.00505970
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x52aa80
push edi
call fcn.00506640
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.0052af70
mov esi, eax
add esp, 0xc
test esi, esi
je 0x52aa62
push esi
call fcn.0052b9a0
add esp, 4
test eax, eax
jle 0x52aa62
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.0052ace0
add esp, 0x18
test eax, eax
jle 0x52aa62
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.0052b8b0
add esp, 0x14
test eax, eax
jle 0x52aa62
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.0052af10
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00483ab6
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x52aa98
cmp dword [edi], edx
je 0x52aac2
inc eax
add ecx, 4
cmp eax, 4
jl 0x52aa85
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.0050ce40
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00483ab6
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x52aaf6
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.0050ce40
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00483ab6
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.00483ab6
add esp, 0x6c
ret
Function at 0x554cf0
Capabilities:
Encode data using base64

Disassembly:
mov eax, 4
call fcn.005cf470
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 4], ecx
test esi, esi
jle 0x554df3
mov edx, dword [esp + 0xc]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
inc edi
nop dword [eax]
movzx eax, byte [edi - 1]
cmp esi, 3
jb 0x554d78
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 + 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
mov ecx, eax
and ecx, 0x3f
shr eax, 6
add edx, 2
and eax, 0x3f
mov bl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x554dc4
shl eax, 0x10
cmp esi, 2
jne 0x554d88
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
add edx, 2
mov ecx, edx
cmp esi, 1
jne 0x554db6
mov al, 0x3d
jmp 0x554dc2
shr eax, 6
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov bl, 0x3d
lea ebp, [ecx + 2]
mov byte [edx], al
mov byte [ecx + 1], bl
sub esi, 3
mov ecx, dword [esp + 0x10]
add edi, 3
add ecx, 4
mov edx, ebp
mov dword [esp + 0x10], ecx
test esi, esi
jg 0x554d20
pop edi
mov byte [ebp], 0
mov eax, ecx
pop ebp
pop ebx
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], cl
mov eax, ecx
pop ecx
ret
Function at 0x554fa0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x14
call fcn.005cf470
mov eax, dword [0x64c00c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x20]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
xor esi, esi
movsx edx, byte [edi]
lea edi, [edi + 1]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x55504b
mov eax, dword [esp + ecx*4 + 0x10]
mov esi, 1
lea eax, [eax + eax*4]
lea eax, [eax - 0x18]
lea eax, [edx + eax*2]
mov dword [esp + ecx*4 + 0x10], eax
cmp eax, 0xff
jbe 0x554fd7
xor esi, esi
call fcn.00555470
cmp eax, 1
jne 0x5550f3
test esi, esi
jne 0x55514c
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.00515cf0
add esp, 0x10
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x5550b1
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
jmp 0x5550c4
cmp edx, 0x2e
jne 0x555079
test esi, esi
je 0x55505f
cmp ecx, 3
je 0x555002
inc ecx
jmp 0x554fd5
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.0050ce40
add esp, 0x14
jmp 0x5550e3
test edx, edx
jne 0x555002
cmp ecx, 3
jne 0x555002
test esi, esi
je 0x555002
movzx eax, byte [esp + 0x10]
lea esi, [edx + 1]
mov byte [ebx], al
movzx eax, byte [esp + 0x14]
mov byte [ebx + 1], al
movzx eax, byte [esp + 0x18]
mov byte [ebx + 2], al
movzx eax, byte [esp + 0x1c]
mov byte [ebx + 3], al
jmp 0x555004
cmp word [ecx + 8], 2
je 0x555108
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.0050ce40
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.00515cf0
add esp, 0x24
push ebp
push str.host
push 2
call fcn.0050c280
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00483ab6
add esp, 0x14
ret
mov eax, dword [ecx + 0xc]
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
mov eax, dword [eax]
push 0xa
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
call fcn.00515cf0
add esp, 0x10
mov ecx, dword [esp + 0x20]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00483ab6
add esp, 0x14
ret

Function at 0x5554f0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x555530
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.0050ce40
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret