joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x414c7e
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x414c8a
mov al, 1
jmp 0x414e03
mov dword [ebp - 0x20], 8
call fcn.00417280
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x14], eax
call fcn.00417280
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004172b0
add esp, 8
movzx eax, al
test eax, eax
je 0x414ccd
xor al, al
jmp 0x414e03
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.004126b0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x48]
call fcn.00416980
mov ecx, eax
call fcn.00413930
mov esi, eax
lea ecx, [ebp - 0x48]
call fcn.004192f0
add esi, eax
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416980
mov ecx, eax
call fcn.00413930
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
call fcn.00419870
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414d41
cmp dword [ebp - 0x10], 1
je 0x414d48
cmp dword [ebp - 0x10], 3
je 0x414dd4
jmp 0x414de5
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00416980
mov ecx, eax
call fcn.00413930
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0xc], edx
je 0x414da4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
call fcn.00416980
mov ecx, eax
call fcn.00413930
push eax
call fcn.004211c9
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x414da4
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x48]
call fcn.004132d0
mov al, byte [ebp - 1]
jmp 0x414e03
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x414dc0
mov byte [ebp - 2], 1
lea ecx, [ebp - 0x48]
call fcn.004132d0
mov al, byte [ebp - 2]
jmp 0x414e03
cmp dword [ebp - 0xc], 0
jne 0x414dd2
push 0
push 8
lea ecx, [ebp - 0x48]
call fcn.004164f0
jmp 0x414df6
mov byte [ebp - 3], 1
lea ecx, [ebp - 0x48]
call fcn.004132d0
mov al, byte [ebp - 3]
jmp 0x414e03
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004132d0
mov al, byte [ebp - 4]
jmp 0x414e03
jmp 0x414cd9
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4279ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427830
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x408955
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
mov edi, 0xa428409
call fcn.00408971
dec edi
xor dword [esi], ebx
sub eax, eax
inc esi
cmp esi, ecx
jne fcn.00408955
ret
Function at 0x10008d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x10008e2a
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x10008dbd
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.libcrypto_1_1.dll_CF_encrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10008d83
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10008ef3
call 0x10008dcf
pop edx
lea ecx, [edx + 0x171]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x10008e8a
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.libcrypto_1_1.dll_CF_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10008e3b
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10008ef3
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.libcrypto_1_1.dll_CF_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x10008eee
jmp 0x10008ef3
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10010640
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push ecx
mov eax, dword [esp + 0x34]
push eax
push ebx
cmp ecx, 0
je 0x1001071b
and ebp, 0xfffffff8
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
je 0x100106b6
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call sym.libcrypto_1_1.dll_CES_encrypt1
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10010684
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x100107d4
call 0x100106c8
pop edx
lea ecx, [edx + 0x138]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
je 0x10010773
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call sym.libcrypto_1_1.dll_CES_encrypt1
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x1001072c
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x100107d4
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call sym.libcrypto_1_1.dll_CES_encrypt1
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x100107cf
jmp 0x100107d4
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10010840
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x10010924
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x100108bf
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call sym.libcrypto_1_1.dll_CES_encrypt3
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x1001088d
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x100109dd
call 0x100108d1
pop edx
lea ecx, [edx + 0x12f]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x1001097c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call sym.libcrypto_1_1.dll_CES_decrypt3
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10010935
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x100109dd
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call sym.libcrypto_1_1.dll_CES_decrypt3
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x100109d8
jmp 0x100109dd
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10060640
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.1011d0a0
push esi
push edi
mov edi, dword [esp + 0x38]
xor esi, esi
mov eax, edi
sub eax, esi
je 0x10060688
sub eax, 2
je 0x10060688
sub eax, 0x15
je 0x10060688
push 0x289
push str.crypto_bio_b_addr.c
push 0x83
push 0x87
push 0x20
call sym.libcrypto_1_1.dll_CRR_put_error
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
call sym.libcrypto_1_1.dll_CIO_sock_init
cmp eax, 1
jne 0x10060680
cmp dword [esp + 0x34], 1
xorps xmm0, xmm0
mov eax, dword [esp + 0x3c]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0xc], edi
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x10], eax
jne 0x100606b7
or dword [esp + 8], 1
push dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test edi, edi
je 0x10060705
push 0x2b5
push str.crypto_bio_b_addr.c
push 2
push 0x87
push 0x20
call sym.libcrypto_1_1.dll_CRR_put_error
push edi
call fcn.10060b00
push eax
push 1
call sym.libcrypto_1_1.dll_CRR_add_error_data
add esp, 0x20
pop edi
mov eax, esi
pop esi
add esp, 0x20
ret
mov esi, 1
pop edi
mov eax, esi
pop esi
add esp, 0x20
ret

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

Disassembly:
cmp dword [esp + 8], 0
je 0x10062ab8
push 0x174
push str.crypto_bio_b_sock.c
push 0x8c
jmp 0x10062b34
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
mov eax, dword [esp + 0x10]
push dword [eax]
call sym.libcrypto_1_1.dll_C509_REVOKED_get0_serialNumber
add esp, 4
push eax
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10062b1e
push 0x169
push str.crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10
push 2
call sym.libcrypto_1_1.dll_CRR_put_error
push 0x16a
push str.crypto_bio_b_sock.c
push 0x84
push 0x8d
push 0x20
call sym.libcrypto_1_1.dll_CRR_put_error
add esp, 0x28
xor eax, eax
ret
cmp dword [esp + 8], 0x1c
jbe 0x10062b46
push 0x16e
push str.crypto_bio_b_sock.c
push 0x85
push 0x8d
push 0x20
call sym.libcrypto_1_1.dll_CRR_put_error
add esp, 0x14
xor eax, eax
ret
mov eax, 1
ret

Function at 0x10062bd0
Capabilities:
Set socket configuration

Disassembly:
push esi
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x10062c08
push 0xcc
push str.crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call sym.libcrypto_1_1.dll_CRR_put_error
add esp, 0x14
mov eax, esi
pop esi
ret

Function at 0x10062c10
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 0x10062c50
push 0xcc
push str.crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call sym.libcrypto_1_1.dll_CRR_put_error
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
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_CRR_put_error
push 0x10140560
push esi
push 0x10140564
push dword [esp + 0x30]
push str.fopen_
push 5
call sym.libcrypto_1_1.dll_CRR_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_CRR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10140510
call sym.libcrypto_1_1.dll_CIO_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_CIO_clear_flags
push edi
push ebx
push 0x6a
push esi
call sym.libcrypto_1_1.dll_CIO_ctrl
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
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_CIO_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_CPENSSL_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_CVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x100c7069
push edi
push ebp
push dword [esi + 4]
call sym.libcrypto_1_1.dll_CVP_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_CVP_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_CVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x100c7069
push ebx
call sym.libcrypto_1_1.dll_CIO_meth_get_callback_ctrl
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call sym.libcrypto_1_1.dll_CVP_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_CVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x100c7069
push ebx
call sym.libcrypto_1_1.dll_CIO_meth_get_callback_ctrl
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call sym.libcrypto_1_1.dll_CVP_DigestUpdate
add esp, 0x10
test eax, eax
je 0x100c7069
push dword [esi + 8]
push dword [esi + 4]
call sym.libcrypto_1_1.dll_CVP_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 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_CAND_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_CAND_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_CAND_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_CAND_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_CAND_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_CAND_add
mov ecx, dword [esp + 0x8c]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.1011d087
mov esp, ebp
pop ebp
ret