joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10068e40
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.100d0c30
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.1011ea60
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x10068ee5
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call sym.libcrypto_1_1.dll_ERR_put_error
push 0x10140560
push esi
push 0x10140564
push dword [esp + 0x30]
push str.fopen_
push 5
call sym.libcrypto_1_1.dll_ERR_add_error_data
add esp, 0x2c
call fcn.1012332d
cmp dword [eax], 2
je 0x10068ec2
call fcn.1012332d
cmp dword [eax], 6
je 0x10068ec2
lea eax, [edi + 2]
lea ecx, [edi + 0x53]
jmp 0x10068ecc
mov eax, 0x80
mov ecx, 0x51
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10140510
call sym.libcrypto_1_1.dll_BIO_new
mov esi, eax
add esp, 4
test esi, esi
jne 0x10068f07
push edi
call fcn.1012216e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x8000
push esi
call sym.libcrypto_1_1.dll_BIO_clear_flags
push edi
push ebx
push 0x6a
push esi
call sym.libcrypto_1_1.dll_BIO_ctrl
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x100a6480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x7c]
test eax, eax
jne 0x100a6496
mov dword [esp + 4], ecx
jmp fcn.100a65b0
mov dword [esp + 4], ecx
jmp eax
Function at 0x100ba440
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
add byte [eax - 0x7ab5b], al
inc dword [eax]
invalid
movsd dword es:[edi], dword [esi]
push ebp
clc
invalid
invalid

Function at 0x100be710
Capabilities:
Encode data using base64

Disassembly:
mov edx, dword [esp + 0xc]
push ebp
xor ebp, ebp
test edx, edx
jle 0x100be7f2
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
inc edi
nop dword [eax + eax]
movzx eax, byte [edi - 1]
cmp edx, 3
jl 0x100be783
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
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
inc esi
and ecx, 0x3f
mov ebx, esi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
and eax, 0x3f
mov ch, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x100be7cc
shl eax, 0x10
cmp edx, 2
jne 0x100be793
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
lea ebx, [esi + 1]
shr ecx, 0x12
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], cl
mov ecx, eax
shr ecx, 0xc
mov esi, ebx
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], cl
cmp edx, 1
jne 0x100be7be
mov cl, 0x3d
jmp 0x100be7ca
shr eax, 6
and eax, 0x3f
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ch, 0x3d
lea eax, [esi + 2]
mov byte [ebx + 1], cl
sub edx, 3
mov byte [eax], ch
add ebp, 4
lea esi, [eax + 1]
add edi, 3
test edx, edx
jg 0x100be730
pop edi
mov byte [esi], 0
mov eax, ebp
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esp + 8]
mov byte [eax], 0
mov eax, ebp
pop ebp
ret
Function at 0x100c6e80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.1011d0a0
mov eax, dword [0x101a7890]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 4], edx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xa8]
mov eax, dword [esi]
test ebx, ebx
je 0x100c6ee8
cmp ebx, eax
je 0x100c6edf
test ebp, ebp
je 0x100c7069
test edi, edi
js 0x100c7069
mov ecx, 1
mov dword [esi], ebx
jmp 0x100c6ef2
test eax, eax
je 0x100c7069
mov ebx, eax
test ebp, ebp
je 0x100c7060
push ebx
call sym.libcrypto_1_1.dll_BIO_meth_get_callback_ctrl
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x100c6f26
push 0x28
push str.cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call sym.libcrypto_1_1.dll_OPENSSL_die
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jge 0x100c6f77
push dword [esp + 0x10]
push ebx
push dword [esi + 4]
call sym.libcrypto_1_1.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x100c7069
push edi
push ebp
push dword [esi + 4]
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x100c7069
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call sym.libcrypto_1_1.dll_EVP_DigestFinal_ex
add esp, 0xc
test eax, eax
je 0x100c7069
mov edi, dword [esi + 0x10]
jmp 0x100c6f94
cmp edi, 0x80
ja 0x100c7069
push edi
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.1011e380
add esp, 0xc
mov dword [esi + 0x10], edi
cmp edi, 0x80
je 0x100c6fb4
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x14]
add eax, edi
push 0
push eax
call fcn.1011e900
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x100c6fc0
push edx
push ebx
push dword [esi + 8]
call sym.libcrypto_1_1.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x100c7069
push ebx
call sym.libcrypto_1_1.dll_BIO_meth_get_callback_ctrl
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0x10
test eax, eax
je 0x100c7069
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x100c7005
push dword [esp + 0x10]
push ebx
push dword [esi + 0xc]
call sym.libcrypto_1_1.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x100c7069
push ebx
call sym.libcrypto_1_1.dll_BIO_meth_get_callback_ctrl
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call sym.libcrypto_1_1.dll_EVP_DigestUpdate
add esp, 0x10
test eax, eax
je 0x100c7069
push dword [esi + 8]
push dword [esi + 4]
call sym.libcrypto_1_1.dll_EVP_MD_CTX_copy_ex
add esp, 8
test eax, eax
je 0x100c7069
mov eax, 1
jmp 0x100c706b
test ecx, ecx
je 0x100c7047
jmp 0x100c6fb8
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011d087
add esp, 0x8c
ret
Function at 0x100cd140
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.1011d0a0
mov eax, dword [0x101a7890]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x44]
cmp ebp, 0x10
ja 0x100cd193
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1011d087
add esp, 0x30
ret
mov edx, ebp
mov dword [esp + 0x10], 0x10
and edx, 0xf
cmove edx, dword [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x10]
test edx, edx
je 0x100cd1d2
push ecx
push ebx
push eax
push edx
push esi
push edi
call sym.libcrypto_1_1.dll_CRYPTO_cbc128_decrypt
mov eax, dword [esp + 0x2c]
add edi, 0xfffffff0
mov ecx, dword [esp + 0x30]
add esi, 0xfffffff0
add esp, 0x18
add edi, ebp
add esi, ebp
push eax
lea eax, [esp + 0x30]
push eax
push edi
call ecx
push dword [esp + 0x1c]
movups xmm0, xmmword [esp + 0x3c]
lea eax, [edi + 0x10]
push eax
lea eax, [esp + 0x30]
push eax
movups xmmword [esp + 0x34], xmm0
call fcn.1011e380
push dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
push eax
call dword [esp + 0x3c]
lea ecx, [esp + 0x4f]
add esp, 0x24
xor eax, eax
lea edx, [ebx + 0xf]
cmp ebx, ecx
ja 0x100cd21d
lea ecx, [esp + 0x1c]
cmp edx, ecx
jae 0x100cd251
lea ecx, [esi + 0xf]
cmp ebx, ecx
ja 0x100cd228
cmp edx, esi
jae 0x100cd251
lea ecx, [edi + 0xf]
cmp ebx, ecx
lea ecx, [esi + 0xf]
ja 0x100cd236
cmp edx, edi
jae 0x100cd251
lea edx, [esp + 0x2b]
cmp esi, edx
ja 0x100cd246
lea edx, [esp + 0x1c]
cmp ecx, edx
jae 0x100cd251
lea edx, [edi + 0xf]
cmp esi, edx
ja 0x100cd269
cmp ecx, edi
jb 0x100cd269
mov cl, byte [esp + eax + 0x1c]
xor cl, byte [ebx + eax]
mov dl, byte [edi + eax]
mov byte [esi + eax], cl
mov byte [ebx + eax], dl
inc eax
cmp eax, 0x10
jb 0x100cd251
jmp 0x100cd283
movups xmm1, xmmword [ebx]
mov eax, 0x10
movups xmm0, xmmword [esp + 0x1c]
pxor xmm1, xmm0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm1
movups xmmword [ebx], xmm0
mov ebx, dword [esp + 0x10]
add ebx, 0x10
cmp eax, ebx
jae 0x100cd2a9
lea ecx, [esp + 0x1c]
sub edi, ecx
sub esi, ecx
lea edx, [esp + 0x1c]
add edx, eax
inc eax
mov cl, byte [edi + edx]
xor cl, byte [edx]
mov byte [esi + edx], cl
cmp eax, ebx
jb 0x100cd296
mov ecx, dword [esp + 0x3c]
lea eax, [ebx + ebp]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011d087
add esp, 0x30
ret
Function at 0x100ce410
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.1011d0a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov ebx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x160]
shld eax, edi, 3
shld ecx, ebx, 3
shl edi, 3
shl ebx, 3
cmp dword [esi + 0x168], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jne 0x100ce465
cmp dword [esi + 0x16c], 0
jne 0x100ce465
lea ebp, [esi + 0x60]
jmp 0x100ce47a
lea ebp, [esi + 0x60]
lea eax, [esi + 0x40]
push ebp
push eax
call edx
mov eax, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x10]
lea edx, [esi + 0x40]
bswap eax
xor dword [edx], eax
bswap ecx
xor dword [esi + 0x48], ecx
push ebp
bswap edi
xor dword [edx + 4], edi
bswap ebx
xor dword [esi + 0x4c], ebx
push edx
call dword [esp + 0x1c]
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x40]
xor dword [ecx], eax
add esp, 8
mov eax, dword [esi + 0x24]
xor dword [ecx + 4], eax
mov eax, dword [esi + 0x28]
xor dword [esi + 0x48], eax
mov eax, dword [esi + 0x2c]
xor dword [esi + 0x4c], eax
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
test edx, edx
je 0x100ce4dc
mov eax, dword [esp + 0x14]
cmp eax, 0x10
ja 0x100ce4dc
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
jmp sym.libcrypto_1_1.dll_CRYPTO_memcmp
or eax, 0xffffffff
add esp, 8
ret
Function at 0x100ce6d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.1011d0a0
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi + 0x160]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esp + 0x14], edi
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebx, 0xc
jne 0x100ce779
mov eax, dword [esp + 0x18]
lea edi, [ebx - 0xb]
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov byte [esi + 0xf], 1
jmp 0x100ce8c3
mov dword [esp + 0xc], ebx
push ebp
mov ebp, dword [esp + 0x1c]
cmp ebx, 0x10
jb 0x100ce7f1
mov edi, ebp
lea ecx, [esi + 0xf]
mov eax, ebx
sub edi, esi
shr eax, 4
mov dword [esp + 0x20], eax
lea eax, [edi + ecx]
cmp esi, eax
ja 0x100ce7c0
cmp ecx, ebp
jb 0x100ce7c0
mov eax, esi
mov edx, 0x10
nop dword [eax]
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x100ce7b0
jmp 0x100ce7ce
movups xmm1, xmmword [esi]
movups xmm0, xmmword [ebp]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
lea eax, [esi + 0x60]
push eax
push esi
call dword [esp + 0x20]
add esp, 8
lea ecx, [esi + 0xf]
add ebp, 0x10
add edi, 0x10
sub ebx, 0x10
sub dword [esp + 0x20], 1
jne 0x100ce797
mov edi, dword [esp + 0x18]
test ebx, ebx
je 0x100ce89c
xor edx, edx
test ebx, ebx
je 0x100ce892
cmp ebx, 0x40
jb 0x100ce872
lea eax, [ebp - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, ebx
cmp esi, eax
ja 0x100ce81a
cmp ecx, ebp
jae 0x100ce872
mov ecx, ebx
mov edi, ebp
and ecx, 0xffffffc0
mov eax, esi
sub edi, esi
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax + edi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edx + ebp + 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [edx + ebp + 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [edx + ebp + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x100ce825
cmp edx, ebx
jae 0x100ce88e
sub ebp, esi
lea ecx, [edx + esi]
sub ebx, edx
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub ebx, 1
jne 0x100ce880
mov edi, dword [esp + 0x18]
lea eax, [esi + 0x60]
push eax
push esi
call edi
add esp, 8
mov eax, dword [esp + 0x10]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0xc], eax
lea eax, [esi + 0x60]
push eax
bswap ecx
xor dword [esi + 8], ecx
push esi
call edi
mov edi, dword [esi + 0xc]
add esp, 8
bswap edi
pop ebp
push dword [esi + 0x174]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100cfcf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.1011d0a0
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x14]
cmp esi, ebx
jbe 0x100cfd9d
mov ecx, dword [ebp + 0x18]
cmp esi, ecx
jb 0x100cfd4a
mov eax, esi
sub eax, ecx
add eax, 4
and eax, 0xfffffffc
add eax, ecx
push 0x7a
mov dword [ebp + 0x18], eax
push str.cryptomodesocb128.c
shl eax, 4
push eax
push dword [ebp + 0x40]
call sym.libcrypto_1_1.dll_CRYPTO_realloc
add esp, 0x10
test eax, eax
jne 0x100cfd47
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [ebp + 0x40], eax
cmp ebx, esi
jae 0x100cfd9a
mov eax, ebx
shl eax, 4
mov dword [esp + 0xc], eax
mov eax, esi
mov esi, dword [esp + 0xc]
sub eax, ebx
mov dword [esp + 0x18], eax
push edi
mov ecx, dword [ebp + 0x40]
add ecx, esi
mov al, byte [ecx]
lea edi, [ecx + 0x10]
push edi
shr al, 7
movzx eax, al
push 1
push ecx
imul ebx, eax, 0x87
call fcn.100cfb30
xor byte [edi + 0xf], bl
add esp, 0xc
add esi, 0x10
sub dword [esp + 0x1c], 1
jne 0x100cfd64
mov esi, dword [esp + 0x20]
mov ebx, esi
pop edi
mov dword [ebp + 0x14], ebx
shl esi, 4
add esi, dword [ebp + 0x40]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100e6530
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x80
call fcn.1011d0a0
mov eax, dword [0x101a7890]
xor eax, esp
mov dword [esp + 0x7c], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100e65ac
lea eax, [esp + 0x38]
push eax
push 0x40
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100e65a0
mov eax, 8
call fcn.1011d0a0
movsd xmm0, qword [0x10173e00]
lea eax, [esp + 0x40]
movsd qword [esp], xmm0
push 0x40
push eax
call sym.libcrypto_1_1.dll_RAND_add
add esp, 0x10
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100e6610
lea eax, [esp + 0x38]
push eax
push 0x40
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100e6604
mov eax, 8
call fcn.1011d0a0
movsd xmm0, qword [0x10173e00]
lea eax, [esp + 0x40]
movsd qword [esp], xmm0
push 0x40
push eax
call sym.libcrypto_1_1.dll_RAND_add
add esp, 0x10
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [0x101a6374], 0
je 0x100e6659
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x100e662f
mov dword [0x101a6374], eax
jmp 0x100e6659
mov eax, 8
call fcn.1011d0a0
xorps xmm0, xmm0
lea eax, [esp + 0x18]
movsd qword [esp], xmm0
push 8
push eax
call sym.libcrypto_1_1.dll_RAND_add
add esp, 0x10
cmp dword [0x101a6374], 0
jne 0x100e6684
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 8], eax
mov eax, 8
call fcn.1011d0a0
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 4
push eax
call sym.libcrypto_1_1.dll_RAND_add
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.1011d0a0
movsd xmm0, qword [0x1013fb10]
lea eax, [esp + 0x20]
movsd qword [esp], xmm0
push 0x20
push eax
call sym.libcrypto_1_1.dll_RAND_add
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0xc], eax
mov eax, 8
call fcn.1011d0a0
movsd xmm0, qword [0x1013fb10]
lea eax, [esp + 0x14]
movsd qword [esp], xmm0
push 4
push eax
call sym.libcrypto_1_1.dll_RAND_add
mov ecx, dword [esp + 0x8c]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.1011d087
mov esp, ebp
pop ebp
ret
Function at 0x100e6710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.1011d0a0
mov eax, dword [0x101a7890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 1
push edi
push edi
push str.RANDFILE
mov dword [ebp - 8], str.RANDFILE
call ebx
mov esi, eax
test esi, esi
jne 0x100e6794
push eax
push eax
push str.HOME
mov dword [ebp - 8], str.HOME
mov dword [ebp - 0xc], edi
call ebx
mov esi, eax
test esi, esi
jne 0x100e6794
push eax
push eax
push str.USERPROFILE
mov dword [ebp - 8], str.USERPROFILE
call ebx
mov esi, eax
test esi, esi
jne 0x100e6794
push eax
push eax
push str.SYSTEMROOT
mov dword [ebp - 8], str.SYSTEMROOT
call ebx
mov esi, eax
test esi, esi
je 0x100e6805
lea eax, [esi + esi]
call fcn.1011d7a0
mov eax, esp
push esi
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call ebx
cmp eax, esi
jae 0x100e67f3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
je 0x100e67f3
call fcn.1011d7a0
mov esi, esp
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, esi
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x100e680e
test edi, edi
jne 0x100e6812
mov edi, 0x10173e5c
jmp 0x100e6817
mov edx, edi
mov edi, 0x10173e5c
jmp 0x100e6817
test edi, edi
je 0x100e688d
cmp byte [edi], 0
je 0x100e688d
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100e6820
mov ebx, dword [ebp + 0xc]
sub ecx, esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x100e685f
lea eax, [ecx + 1]
cmp eax, ebx
jae 0x100e685f
push ebx
push edi
push esi
call sym.libcrypto_1_1.dll_OPENSSL_strlcpy
add esp, 0xc
cmp eax, ebx
jb 0x100e6889
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011d087
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, ebx
jae 0x100e6889
push ebx
push edi
push esi
call sym.libcrypto_1_1.dll_OPENSSL_strlcpy
push ebx
push 0x10149c3c
push esi
call sym.libcrypto_1_1.dll_OPENSSL_strlcat
push ebx
push str..rnd
push esi
call sym.libcrypto_1_1.dll_OPENSSL_strlcat
add esp, 0x24
mov cl, byte [esi]
jmp 0x100e6895
mov esi, dword [ebp + 8]
xor cl, cl
mov byte [esi], 0
xor eax, eax
test cl, cl
cmovne eax, esi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011d087
mov esp, ebp
pop ebp
ret
Function at 0x100e68b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.1011d0a0
mov eax, dword [0x101a7890]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x44], edi
test eax, eax
jne 0x100e68f5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.1011d087
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100e68de
push 0x10149908
push eax
call fcn.100d0c30
mov ebx, eax
add esp, 8
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x100e6a15
push 0x30
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.1011e900
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.101226ad
add esp, 4
push eax
call fcn.1012c5f2
add esp, 8
test eax, eax
js 0x100e6a0c
mov eax, 8
call fcn.1011d0a0
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call sym.libcrypto_1_1.dll_RAND_add
add esp, 0x10
test dword [esp + 0x4e], 0x2000
je 0x100e6990
mov eax, 0x800
cmp esi, 0xffffffff
push 0
push ebx
cmove esi, eax
call fcn.1012bc76
add esp, 8
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x100e699e
cmp esi, edi
cmovl edi, esi
push ebx
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.101228ac
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x100e69f2
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.1011d0a0
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push ebx
push eax
call sym.libcrypto_1_1.dll_RAND_add
add dword [esp + 0x54], ebx
add esp, 0x10
mov ebx, dword [esp + 0x40]
test esi, esi
jle 0x100e6990
sub esi, edi
test esi, esi
jg 0x100e6990
lea eax, [esp + 0x78]
push 0x400
push eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
mov ebx, dword [esp + 0x48]
add esp, 8
mov edi, dword [esp + 0x44]
push ebx
call fcn.1012216e
add esp, 4
mov ecx, dword [esp + 0x47c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011d087
mov esp, ebp
pop ebp
ret
Function at 0x100e6a30
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x438
call fcn.1011d0a0
mov eax, dword [0x101a7890]
xor eax, esp
mov dword [esp + 0x434], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x448]
lea eax, [esp + 0x10]
push eax
push edi
xor esi, esi
xor ebp, ebp
call fcn.1012c5fd
add esp, 8
cmp eax, 0xffffffff
je 0x100e6a8e
test dword [esp + 0x16], 0x2000
je 0x100e6a8e
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.1011d087
add esp, 0x438
ret
push 0x10173e08
push edi
call fcn.100d0c30
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x100e6b28
push ebx
push 0x180
push edi
call fcn.1012bca0
mov ebx, 0x400
add esp, 8
mov eax, ebx
nop
cmp ebx, 0x400
mov edi, ebx
cmovg edi, eax
lea eax, [esp + 0x44]
push edi
push eax
sub ebx, 0x400
call sym.libcrypto_1_1.dll_RAND_bytes
push dword [esp + 0x18]
test eax, eax
mov eax, 1
push edi
push eax
cmovle ebp, eax
lea eax, [esp + 0x58]
push eax
call fcn.101206f2
add esp, 0x18
test eax, eax
jle 0x100e6b0a
add esi, eax
test ebx, ebx
jle 0x100e6b0c
mov eax, 0x400
jmp 0x100e6ac0
xor esi, esi
push dword [esp + 0x10]
call fcn.1012216e
lea eax, [esp + 0x48]
push 0x400
push eax
call sym.libcrypto_1_1.dll_OPENSSL_cleanse
add esp, 0xc
pop ebx
mov ecx, dword [esp + 0x440]
or eax, 0xffffffff
test ebp, ebp
pop edi
cmovne esi, eax
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.1011d087
add esp, 0x438
ret
Function at 0x100f18a0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x100f18b4
mov dword [esp + 0x18], sym.libcrypto_1_1.dll_SEED_encrypt
jmp sym.libcrypto_1_1.dll_CRYPTO_cbc128_encrypt
mov dword [esp + 0x18], sym.libcrypto_1_1.dll_SEED_decrypt
jmp sym.libcrypto_1_1.dll_CRYPTO_cbc128_decrypt