joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59e290
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.0053e710
mov eax, dword [0x7ec540]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x19]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x400
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x30], 0
call fcn.006fba50
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call fcn.006fba50
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.00714d24
add esp, 0x28
nop
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x59e46f
cmp word [ebx + 8], 2
jne 0x59e392
cmp word [ebx + 0xa], 4
jne 0x59e392
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x59e392
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.0059e210
mov dword [edi], eax
test eax, eax
je 0x59e468
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x59e360
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.00714d24
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x59e41f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x59e3b6
sub ecx, edx
je case.0x59e47f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x59e3f0
test dl, dl
je 0x59e3ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x59e3f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x59e3d0
xor eax, eax
jmp 0x59e3f5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x59e47f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x59e47f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x59e320
mov esi, 0x2afb
jmp 0x59e492
cmp dword [esp + 0x844], esi
je 0x59e492
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x59e430
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.007116b8
mov edi, eax
add esp, 8
test edi, edi
je 0x59e458
push ebp
push ebx
push edi
call fcn.00714838
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x59e492
mov esi, 8
jmp 0x59e492
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x59e47f.11001
jmp dword [eax*4 + 0x59e4b0]
mov esi, 0x2afa
jmp 0x59e492
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00541f33
add esp, 0x820
ret 0x18
Function at 0x59eb10
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.0053e710
mov eax, dword [0x7ec540]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x7f4584], 0
mov dword [esp], 0x7a8ff4
mov dword [esp + 4], 0x59e510
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x59e8c0
mov dword [esp + 0x10], 0x7a9000
mov dword [esp + 0x14], 0x59e4c0
jne 0x59ec76
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x59ec6c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00714838
push 0x7c9050
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.00714641
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x59ebdf
push 0x7a8ff4
push edi
call ebx
test eax, eax
jne 0x59ec26
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00714838
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.00714641
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x59ec68
push 0x7a8ff4
push edi
call ebx
test eax, eax
je 0x59ec65
xor esi, esi
lea eax, [esp + 0x10]
nop dword [eax]
push dword [eax + esi*8]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x59ec65
inc esi
lea eax, [esp + 0x10]
cmp esi, 3
jl 0x59ec30
mov eax, dword [esp + 0x14]
mov dword [0x7ecc2c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x7ecc34], eax
mov eax, dword [esp + 0x24]
mov dword [0x7ecc3c], eax
jmp 0x59ec68
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x7f4584], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x7ecc2c]
call fcn.00541f33
add esp, 0x230
ret 4
Function at 0x5a3090
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 4]
dec edx
xor eax, ecx
mov dword [esp + 0x10], edx
and eax, edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x5a31a6
push edi
cmp esi, 4
jb 0x5a3181
mov ecx, dword [ebp]
lea edi, [esi - 1]
mov edx, dword [ebx]
lea ebp, [esi - 1]
lea ebp, [ecx + ebp*4]
cmp edx, ebp
lea edi, [edx + edi*4]
mov ebp, dword [esp + 0x18]
ja 0x5a3124
cmp edi, ecx
jae 0x5a3181
cmp edx, ebx
ja 0x5a312c
cmp edi, ebx
jae 0x5a3181
cmp edx, ebp
ja 0x5a3134
cmp edi, ebp
jae 0x5a3181
lea edi, [esi - 1]
lea edi, [ecx + edi*4]
cmp ecx, ebx
ja 0x5a3142
cmp edi, ebx
jae 0x5a3181
cmp ecx, ebp
ja 0x5a314a
cmp edi, ebp
jae 0x5a3181
mov edi, esi
and edi, 0xfffffffc
nop
movups xmm3, xmmword [edx + eax*4]
movups xmm2, xmmword [ecx + eax*4]
movaps xmm1, xmm3
xorps xmm1, xmm2
andps xmm1, xmm4
movaps xmm0, xmm1
xorps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [ecx + eax*4], xmm0
movups xmmword [edx + eax*4], xmm1
add eax, 4
cmp eax, edi
jl 0x5a3150
mov dword [esp + 0x18], eax
cmp eax, esi
jge 0x5a31a5
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x14]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x5a3181
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5a3740
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x24
call fcn.0053e710
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
xor ecx, ecx
push edi
mov dword [esp + 0x14], 0
xor ebx, ebx
mov dword [esp + 0x10], ecx
call fcn.005a2830
mov esi, eax
add esp, 4
lea eax, [esi + 7]
cdq
and edx, 7
lea ecx, [edx + eax]
sar ecx, 3
cmp dword [esp + 0x44], ebx
jne 0x5a37b1
mov ebx, dword [edi + 0xc]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xff
mov dword [esp + 0x10], eax
lea eax, [ecx*8]
cmp eax, esi
jne 0x5a37a9
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 0xc], eax
jmp 0x5a37b3
mov eax, ebx
mov dword [esp + 0xc], eax
jmp 0x5a37b3
xor eax, eax
mov esi, dword [esp + 0x3c]
add eax, ecx
cmp esi, 0xffffffff
jne 0x5a37f1
mov esi, eax
mov dword [esp + 0x3c], esi
mov ecx, dword [edi + 8]
shl ecx, 2
test ecx, ecx
jne 0x5a3870
test esi, esi
je 0x5a3904
push esi
push ecx
push dword [esp + 0x40]
call fcn.006fba50
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret
cmp esi, eax
jge 0x5a37c4
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x10]
mov dword [esp + 0x2c], eax
movups xmmword [esp + 0x1c], xmm0
psrldq xmm0, 4
movd ecx, xmm0
test ecx, ecx
jle 0x5a3832
mov eax, dword [esp + 0x1c]
lea eax, [eax + ecx*4]
nop dword [eax + eax]
cmp dword [eax - 4], 0
lea eax, [eax - 4]
jne 0x5a382e
dec ecx
test ecx, ecx
jg 0x5a3820
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x28]
xor edx, edx
test ecx, ecx
cmove eax, edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
call fcn.005a2830
add eax, 7
add esp, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0xc]
cmp esi, eax
jge 0x5a37c4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
cmp edx, 1
je 0x5a3880
dec eax
add eax, esi
mov edi, dword [edi + 4]
mov dword [esp + 0x44], eax
xor eax, eax
cmp edx, 1
push ebp
sete al
shl edi, 2
xor ebp, ebp
lea eax, [eax*2 - 1]
mov dword [esp + 0x18], eax
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x5a3903
mov dword [esp + 0x10], esi
neg edi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov edx, ebp
shr edx, 2
mov ecx, ebp
and ecx, 3
shl ecx, 3
mov edx, dword [eax + edx*4]
mov eax, edi
shr edx, cl
mov ecx, ebp
shr eax, 0x1f
neg al
and dl, al
mov eax, dword [esp + 0x48]
xor dl, byte [esp + 0x14]
add bl, dl
cmp bl, dl
mov byte [eax], bl
sbb ebx, ebx
sub ecx, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
neg ebx
shr ecx, 0x1f
inc edi
add ebp, ecx
mov dword [esp + 0x48], eax
sub dword [esp + 0x10], 1
jne 0x5a38b5
mov esi, dword [esp + 0x40]
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x5a6270
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x14]
call fcn.00607670
push 0x62
push edi
mov ebx, eax
call fcn.006fbbb0
add esp, 0x10
neg eax
sbb esi, esi
and esi, 0xfffffff0
add esi, 0x11
test ebx, ebx
jne 0x5a6322
call fcn.0054cc90
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.0054cd90
add esp, 0xc
push edi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.0054cea0
add esp, 0x14
call fcn.0070acc3
cmp dword [eax], 2
je 0x5a62f2
call fcn.0070acc3
cmp dword [eax], 6
je 0x5a62f2
mov esi, 0x80002
lea edi, [ebx + 0x4d]
jmp 0x5a62fa
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.0054cc90
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.0054cd90
push 0
push esi
push 0x20
call fcn.0054cea0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x74724c
call fcn.0054af30
mov edi, eax
add esp, 4
test edi, edi
jne 0x5a6344
push ebx
call fcn.007116c3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x8000
push edi
call fcn.0054af20
push ebx
push esi
push 0x6a
push edi
call fcn.0054bbe0
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x5ae9d0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
test eax, eax
je 0x5ae9e8
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x5ae9ed
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x5aeac5
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 0x5aea59
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 0x5aeaa5
shl eax, 0x10
cmp esi, 2
jne 0x5aea69
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 0x5aea8c
mov al, 0x3d
jmp 0x5aea95
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 0x5aea03
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 0x5afe50
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x27
push str.crypto_thread_arch_thread_win.c
push 4
call fcn.0054c7a0
mov edi, dword [esp + 0x18]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5afe94
push 0
push 0
push edi
push 0x5aff00
push 0
push 0
call fcn.0070868c
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x5afe94
mov dword [edi + 0x10], esi
mov eax, 1
pop edi
pop esi
ret
push 0x34
push str.crypto_thread_arch_thread_win.c
push esi
mov dword [edi + 0x10], 0
call fcn.0054c6e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret

Function at 0x5b09d0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.0053e710
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x5b0a18
call fcn.0054cc90
push str.BIO_connect
push 0x56
push str.crypto_bio_bio_sock2.c
call fcn.0054cd90
push 0
push 0x87
push 0x20
call fcn.0054cea0
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
push esi
and eax, 1
push eax
push edi
call fcn.0059e070
add esp, 8
test eax, eax
je 0x5b0aa7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x5b0aae
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x5b0aae
call fcn.0054cc90
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.0054cd90
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0054cea0
call fcn.0054cc90
push str.BIO_connect
push 0x62
push str.crypto_bio_bio_sock2.c
call fcn.0054cd90
push 0
push 0x89
push 0x20
call fcn.0054cea0
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x5b0b1f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x5b0b1f
call fcn.0054cc90
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.0054cd90
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0054cea0
call fcn.0054cc90
push str.BIO_connect
push 0x6c
push str.crypto_bio_bio_sock2.c
call fcn.0054cd90
push 0
push 0x8a
push 0x20
call fcn.0054cea0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.0059f180
add esp, 4
push eax
push esi
call fcn.00591070
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5b0bb1
push eax
call fcn.00552c00
add esp, 4
test eax, eax
jne 0x5b0aa7
call fcn.0054cc90
push str.BIO_connect
push 0xb2
push str.crypto_bio_bio_sock2.c
call fcn.0054cd90
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0054cea0
call fcn.0054cc90
push str.BIO_connect
push 0xb4
push str.crypto_bio_bio_sock2.c
call fcn.0054cd90
push 0
push 0x67
push 0x20
call fcn.0054cea0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x5d1750
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
movzx eax, cl
and eax, 1
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x5d1792
push ebx
add edi, esi
lea ebx, [edx + esi]
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x5d1772
pop ebx
pop edi
pop esi
ret
Function at 0x5fb510
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0053e710
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
call fcn.005fb160
mov ebx, eax
push ebx
push esi
call fcn.005fb300
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5fb58f
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 0x5fb573
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.005fb390
push esi
call fcn.005fb140
add esp, 0x10
test eax, eax
jne 0x5fb609
push 1
push esi
call fcn.005fb160
mov ebx, eax
push ebx
push esi
call fcn.005fb300
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5fb600
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 0x5fb5e4
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.005fb390
push esi
call fcn.005fb140
add esp, 0x10
test eax, eax
jne 0x5fb609
push esi
call fcn.005fb140
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x60ea10
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.0053e710
mov eax, dword [0x7ec540]
xor eax, esp
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x48], 0x1d
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x58]
je 0x60ea4c
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00541f33
add esp, 0x40
ret
test esi, esi
je 0x60eb5b
cmp dword [esp + 0x54], 0x30
jne 0x60eb5b
push 0x30
push edi
push esi
call fcn.0060e7b0
add esp, 0xc
test eax, eax
jle 0x60eb5b
movaps xmm0, xmmword [str.6666666666666666_]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.0060e7b0
add esp, 0xc
test eax, eax
je 0x60eb5b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0060e8b0
add esp, 8
test eax, eax
je 0x60eb5b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.006fba50
push 0x30
push edi
push esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.0060e7b0
add esp, 0x18
test eax, eax
jle 0x60eb5b
movaps xmm0, xmmword [0x74cd00]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.0060e7b0
add esp, 0xc
test eax, eax
je 0x60eb5b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0060e7b0
add esp, 0xc
test eax, eax
je 0x60eb5b
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.004e6520
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00541f33
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00541f33
add esp, 0x40
ret

Function at 0x60f200
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x4c
push 0
lea eax, [esi + 0x20]
push eax
call fcn.006fba50
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x18
pop esi
ret
Function at 0x62f2b0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.0053e710
mov eax, dword [0x7ec540]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xf0]
push esi
mov esi, dword [esp + 0xf8]
push edi
push eax
push 0x7c9320
push ecx
call fcn.0055ea10
mov edi, eax
add esp, 0xc
test edi, edi
je 0x62f332
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.0055e5d0
push edi
mov esi, eax
call fcn.0055ea60
add esp, 0x1c
test esi, esi
jne 0x62f34c
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.004e6520
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00541f33
add esp, 0xe4
ret
mov al, byte [esp + 0xcb]
and byte [esp + 0xac], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esp + 0xcb], al
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.006335b0
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00631c20
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.004e6520
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00541f33
add esp, 0xe4
ret
Function at 0x63b370
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea edx, [eax + 0x3c]
movd xmm0, ebx
pshufd xmm4, xmm0, 0
lea ecx, [esi + 0x3c]
cmp eax, ecx
ja 0x63b3bf
cmp edx, esi
jb 0x63b3bf
push edi
sub esi, eax
mov edi, 0x10
nop dword [eax]
mov edx, dword [eax + esi]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor ecx, edx
and ecx, ebx
xor edx, ecx
mov dword [eax + esi - 4], edx
xor dword [eax - 4], ecx
sub edi, 1
jne 0x63b3a0
pop edi
pop esi
pop ebx
ret
sub esi, eax
mov ecx, 4
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
movups xmm3, xmmword [eax - 0x10]
movaps xmm2, xmm1
xorps xmm2, xmm3
andps xmm2, xmm4
movaps xmm0, xmm2
xorps xmm2, xmm3
xorps xmm0, xmm1
movups xmmword [esi + eax - 0x10], xmm0
movups xmmword [eax - 0x10], xmm2
sub ecx, 1
jne 0x63b3d0
pop esi
pop ebx
ret