joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ab812
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x101ab899
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x101ab871
jmp 0x101ab923
mov dword [0x101b2724], 0x636
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101ab8e8
jmp 0x101ab923
mov eax, 0x18d0
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
je 0x101ab932
jmp 0x101ab923
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x101ab8c6
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
jl 0x101ab899
mov eax, dword [ebp - 0x28]
mov dword [0x101b2728], 0x258e
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x101ab853
jmp 0x101ab923
mov dword [0x101b2724], 0x3d46
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x101ab923
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101ab923
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x101ab83f
mov eax, 0x1088
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jmp 0x101ab932
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [0x101b2724], ecx
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x101abafb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b2730], 0
mov byte [0x101b2734], 0
mov edi, dword [0x101b2724]
add edi, 0xfffff8e9
mov dword [0x101b2728], edi
mov dword [0x101b272c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101abb63
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x101b272c], 0
mov dword [ebp - 0x20], eax
jmp 0x101abb9f
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x101b2724], 0x7c1
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101b2728], 0x17ea
mov eax, dword [0x101b272c]
add eax, 1
mov dword [0x101b272c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101abb63
jmp 0x101abb52
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101b2738], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101b2730]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101b2738], esi
mov dword [0x101b2724], 0xa1b
mov eax, esi
cdq
idiv ecx
mov dword [0x101b2730], edx
mov dword [0x101b2728], 0xd32
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101b2734], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101b2734]
mov esi, dword [0x101b2730]
mov byte [ebx + esi], cl
mov esi, dword [0x101b272c]
add esi, 1
mov dword [0x101b272c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x101abb9f
jmp 0x101abb4a
Function at 0x101abfea
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101b2728], 0x1e49
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x101ac054
lea eax, [ebp - 0x24]
mov dword [0x101b2728], 0x1a22
mov ecx, dword [0x101b2724]
add ecx, 0xffffefe3
mov dword [0x101b2724], ecx
mov dword [ebp - 0x34], eax
call fcn.101ab4f4
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101ab104
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x101ac128
jmp 0x101ac080
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101ad33c]
mov dh, byte [eax + 0x101ad30d]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
je 0x101ac00e
jmp 0x101ac054
mov eax, dword [ebp - 0x38]
mov dword [0x101b2724], 0x2091
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.101ab94f
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101b2724], 0x1f7a
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x40], ecx
mov dword [0x101b2728], 0x8aa
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x3c], ecx
add ecx, 0x263a
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x101ac11f
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x101ac43a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x1e25
xor ebx, ebx
mov dword [0x101b272c], 0
mov dword [0x101b2730], 0
mov dword [0x101b273c], 0
mov dword [0x101b2724], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x101ac5ca
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
add ecx, 1
mov edi, edx
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101b272c], edx
mov dword [0x101b2724], 0x3264
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101b2730], edx
mov ecx, dword [0x101b2728]
add ecx, 0xfffff82b
mov dword [0x101b2728], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101b2734], cl
mov dword [0x101b2724], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101b2728], 0x112a
mov cl, byte [0x101b2734]
mov edx, dword [0x101b2730]
mov byte [ebx + edx], cl
mov edx, dword [0x101b272c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101b2730]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101b2728], 0x55d
and ecx, 0xff
mov dword [0x101b273c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov dword [0x101b2724], 0x65f
mov dword [0x101b2728], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x3c], edi
je 0x101ac5bd
mov eax, dword [0x101b272c]
mov ecx, dword [0x101b2730]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
jmp 0x101ac4a5
mov eax, dword [0x101b2724]
add eax, 0xe82
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x101b2724], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101ac5da
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov edx, dword [0x101b2724]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101b2728], esi
add edx, 0xffffe928
mov dword [0x101b2724], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101abd0f
lea ecx, [0x101aba94]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], edx
mov dword [esp + 0x3c], 0x138e00
mov edx, dword [0x101b2710]
mov dword [esp + 0x88], edx
mov edx, dword [0x101b2714]
mov dword [esp + 0x74], edx
mov edx, dword [0x101b2718]
mov dword [esp + 0x5c], edx
mov edx, dword [0x101b271c]
mov dword [esp + 0x4c], edx
mov dword [0x101b2724], 0x5bd
mov edx, dword [0x101b2720]
mov dword [esp + 0x8c], edx
mov dword [0x101b2728], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x101ac6cd
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
jne 0x101ac6dc
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x40], edx
mov dword [0x101b2724], 0xe1c
call fcn.101ab812
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x101ac6f0
jmp 0x101ac71a
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x101ac687
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101ac6cd
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101abfea
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10006f9e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x28]
xor ecx, ecx
cmp dword [ebp + 0x24], 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov bl, cl
push ecx
push ecx
push 2
push ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push ecx
push 0x40000000
push eax
mov dword [ebp - 0x18], 0xb0b5f11e
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x10007039
cmp esi, 0xffffffff
je 0x10007039
push 0
lea eax, [ebp + 0x28]
push eax
push 0x18
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007032
cmp dword [ebp + 0x28], 0x18
jne 0x10007032
push 0
lea eax, [ebp + 0x28]
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007032
cmp edi, dword [ebp + 0x28]
jne 0x10007032
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.10003be3
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000704e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10043ba3
call fcn.10029f1c
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], 1
push eax
push 0x2000
push eax
push eax
push 2
mov bl, al
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 1
push dword [ebp + 8]
push edi
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x10007159
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
push 6
cmovae eax, dword [ebp + 0x24]
push esi
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov dword [ebp - 0x18], esi
mov esi, dword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
push edi
call esi
test eax, eax
je 0x1000714e
push dword [ebp - 0x1c]
call fcn.10025e1e
cmp dword [ebp + 0x38], 8
pop ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 6
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call esi
test eax, eax
je 0x10007145
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x10007145
cmp esi, 0xffffffff
je 0x10007145
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000713e
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jne 0x1000713e
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.1002ab36
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
xor esi, esi
push 1
push edi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push esi
push 1
lea ecx, [ebp + 0xc]
call fcn.10003be3
push esi
push 1
lea ecx, [ebp + 0x24]
call fcn.10003be3
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1000718b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ecx, ecx
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
mov bl, cl
push ecx
cmovae eax, dword [ebp + 0xc]
push ecx
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x100071f4
cmp esi, 0xffffffff
je 0x100071f4
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push dword [edi + 8]
push dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100071ec
mov eax, dword [edi + 8]
cmp eax, dword [ebp - 4]
jne 0x100071ec
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.10003be3
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100072bd
Capabilities:
Encrypt data using des via winapi
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 0x1c]
mov byte [ebp - 1], dl
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
test esi, esi
je 0x100072fb
cmp dword [ebp + 0x20], eax
jb 0x100072fb
push eax
push dword [ebp + 8]
push esi
call fcn.1002a330
mov eax, dword [ebp + 0xc]
mov ecx, esi
add esp, 0xc
mov dword [ebp + 8], ecx
xor edx, edx
jmp 0x100072fe
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
cmp esi, 0x6801
jne 0x10007326
cmp ebx, 0x10
jbe 0x10007326
push ebx
push dword [ebp + 0x10]
push eax
push ecx
call fcn.100073ec
add esp, 0x10
mov al, 1
jmp 0x100073e6
push 0xf0000000
push 1
push edx
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100073e3
mov dword [ebp - 0x14], ebx
add ebx, 0xc
push edi
push ebx
mov dword [ebp - 0x1c], 0x208
mov dword [ebp - 0x18], esi
call fcn.10025e1e
push dword [ebp + 0x14]
mov edi, eax
mov dword [ebp + 0x1c], eax
push dword [ebp + 0x10]
lea esi, [ebp - 0x1c]
add eax, 0xc
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1002a330
mov esi, dword [ebp + 0x1c]
lea eax, [ebp - 8]
add esp, 0x10
xor edi, edi
push eax
push 1
push edi
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x100073d1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push edi
push 1
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x100073be
cmp dword [ebp + 0x18], 0x6601
jne 0x100073c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090005
jne 0x100073c8
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x10], eax
sete byte [ebp - 1]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push esi
call fcn.1002ab36
pop ecx
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100073ec
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor esi, esi
push edi
mov edi, esi
mov eax, esi
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x100073fe
mov ebx, esi
mov eax, dword [ebp + 0x10]
mov dl, byte [ebp + ebx - 0x104]
movzx ecx, dl
movzx eax, byte [edi + eax]
add esi, eax
add esi, ecx
and esi, 0xff
inc edi
cmp edi, dword [ebp + 0x14]
sbb eax, eax
and edi, eax
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + ebx - 0x104], al
inc ebx
mov byte [ebp + esi - 0x104], dl
cmp ebx, 0x100
jb 0x1000740f
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ebx, esi
test edi, edi
je 0x100074ac
inc esi
mov ecx, 0xff
and esi, ecx
mov dl, byte [ebp + esi - 0x104]
movzx eax, dl
add ebx, eax
and ebx, ecx
mov al, byte [ebp + ebx - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + ebx - 0x104], dl
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, dl
add ecx, eax
and ecx, 0xff
mov al, byte [ebp + ecx - 0x104]
mov ecx, dword [ebp + 8]
xor byte [ecx], al
inc ecx
mov dword [ebp + 8], ecx
dec edi
jne 0x1000745b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000969e
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov eax, 0x10043cf3
call fcn.10029f1c
sub esp, 0xd0
push ebx
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0x10]
and dword [ebp - 4], 0
xor bl, bl
cmp dword [ebp + 0x24], 8
push 0x20
cmovae ecx, dword [ebp + 0x10]
xor eax, eax
cmp byte [ebp + 0xc], al
pop edx
cmovne eax, edx
or eax, 0xf0000000
push eax
push dword [ebp + 0x28]
lea eax, [ebp - 0x10]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100097be
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
push edi
xor edi, edi
inc edi
push edi
push eax
push 0
push 2
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x100097a4
push esi
push dword [ebp - 0x14]
call fcn.10025e1e
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push 2
push dword [ebp - 0x10]
call ebx
test eax, eax
setne al
mov byte [ebp + 0xf], al
test al, al
je 0x1000978f
push 1
push 3
lea ecx, [ebp - 0xdc]
call fcn.10009eea
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.100098a5
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xdc]
call fcn.1000a54c
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.10003eab
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003be3
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0
call fcn.1000a0d9
push esi
call fcn.1002ab36
cmp byte [ebp + 0xf], 0
pop ecx
push 2
pop edi
jne 0x10009712
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x10]
cmp eax, 0x103
sete bl
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
push 0
push 1
lea ecx, [ebp + 0x10]
call fcn.10003be3
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000a95f
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, str.______qwertyUIOPAzxcvbnmQQQQQQQQQQQQ____
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push 0xa
pop ecx
push 0xf0000000
movsw word es:[edi], word [esi]
lea eax, [ebp - 8]
xor ebx, ebx
push 1
push ebx
movsb byte es:[edi], byte [esi]
mov esi, str.0123456789012345678901234567890123456789
mov dword [ebp - 8], ebx
lea edi, [ebp - 0x48]
mov dword [ebp - 4], ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1000aa52
xor eax, eax
mov byte [ebp - 0x1c], bl
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
push 0x10
pop esi
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea eax, [edi + 0x70]
push eax
push dword [ebp - 4]
call esi
push ebx
push 0x2f
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 4]
call esi
push ebx
push 0x10
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push ebx
push 0x29
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x6801
push 0x10
push eax
lea eax, [edi + 0x80]
push 0x10
push eax
call fcn.100072bd
add esp, 0x1c
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret