joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101952a
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ecx + 0x86], 0
je 0x101962e
cmp byte [0x1027338], 0
jne 0x101962e
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x101962d
cmp dword [ebp + 0x10], 0
je 0x1019565
cmp dword [ebp + 0x10], 1
jne 0x101962d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea edi, [ecx + 0x80]
call ebx
mov ecx, eax
sub ecx, dword [edi]
mov eax, 0x438
cmp ecx, eax
jae 0x1019586
call ebx
sub eax, dword [edi]
mov bl, 0xc8
cmp eax, 0x50
jbe 0x10195aa
push 0x3e8
mov ecx, 0x438
sub ecx, eax
push ecx
push 0xaf
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebx, eax
add bl, 0x19
test dword [esi + 0x14], 0x1f0000
mov edi, dword [esi + 0x10]
jne 0x10195f2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
push dword [0x10274fc]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x28]
test al, al
jne 0x10195f2
mov edi, dword [edi + 0x28]
test edi, edi
je 0x101962b
mov edi, dword [edi + 0x28]
test edi, edi
je 0x101962b
movzx edi, word [edi + 0x58]
push 0x1003af4
call sub.DUI70.dll_StrToID
cmp ax, di
jne 0x101962b
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov byte [ebp + 0x10], 0
mov byte [ebp + 0x11], 0
mov byte [ebp + 0x12], bl
mov byte [ebp + 0x13], 1
push dword [ebp + 0x10]
push ecx
push eax
push 0
push 0
push dword [esi + 0x18]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GdiAlphaBlend]
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x101c10b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov ebx, 0x80004005
cmp dword [ebp + 0x10], eax
jne 0x101c12a
mov edi, ebx
cmp dword [ebp + 0xc], eax
jne 0x101c131
mov edi, ebx
cmp edi, eax
jl 0x101c265
movzx eax, word [ebp + 8]
push esi
push 0x1003d4c
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x101c155
mov edi, ebx
test edi, edi
jl 0x101c264
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x101c170
mov edi, ebx
test edi, edi
jl 0x101c264
cmp dword [ebp + 0xc], 0
je 0x101c1aa
test esi, esi
je 0x101c1aa
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x101c192
mov edi, ebx
test edi, edi
jl 0x101c264
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
jne 0x101c1aa
mov edi, ebx
test edi, edi
jl 0x101c264
push dword [ebp + 8]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x101c1c5
mov edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
jl 0x101c256
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x101c1e3
mov edi, 0x80004005
test edi, edi
jl 0x101c256
push dword [ebp + 8]
push dword [ebp - 8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, eax
test edi, edi
jl 0x101c256
push esi
call ebx
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.0101bc07
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
test eax, eax
je 0x101c251
mov ecx, dword [eax + 8]
and dword [eax + 8], esi
test ecx, ecx
je 0x101c264
mov ecx, dword [edx]
test ecx, ecx
je 0x101c247
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [ebp + 0x10]
and dword [edx], 0
mov edi, 0x80004005
jmp 0x101c264
mov edi, 0x80004005
test esi, esi
je 0x101c264
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 0xc
Function at 0x101e09c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 6]
push edi
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
mov ebx, 0xff
push ebx
call fcn.01014416
mov edi, eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 7]
push eax
push ebx
mov dword [esi + 0x10], edi
call fcn.01014416
movzx ecx, byte [esi + 0xb]
movzx edx, byte [esi + 0xa]
mov dword [ebp - 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
movzx eax, byte [esi + 0xc]
push eax
push ecx
push edx
push ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov byte [ebp - 0xc], 0xc0
mov byte [ebp - 8], 0xc0
mov byte [ebp - 4], 0xc0
call fcn.01014416
cmp eax, dword [ebp - 0x10]
je 0x101e12e
cmp eax, edi
je 0x101e12e
mov al, byte [esi + 0xa]
mov byte [ebp - 0xc], al
mov al, byte [esi + 0xb]
mov byte [ebp - 8], al
mov al, byte [esi + 0xc]
mov byte [ebp - 4], al
push dword [ebp - 4]
mov dword [esi + 0x2c], edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call fcn.01014416
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
pop edi
mov dword [esi + 0x80], eax
pop esi
pop ebx
leave
ret
Function at 0x101e18f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 9]
push edi
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 7]
push eax
mov ebx, 0xff
push ebx
call fcn.01014416
movzx ecx, byte [esi + 0xb]
movzx edx, byte [esi + 0xa]
mov edi, eax
movzx eax, byte [esi + 0xc]
push eax
push ecx
push edx
push ebx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov byte [ebp - 0xc], 0xc0
mov byte [ebp - 8], 0xc0
mov byte [ebp - 4], 0xc0
call fcn.01014416
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x101e221
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push ebx
call fcn.01014416
cmp dword [ebp - 0x10], eax
je 0x101e221
mov al, byte [esi + 0xa]
mov byte [ebp - 0xc], al
mov al, byte [esi + 0xb]
mov byte [ebp - 8], al
mov al, byte [esi + 0xc]
mov byte [ebp - 4], al
push dword [ebp - 4]
mov dword [esi + 0x2c], edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call fcn.01014416
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
call fcn.01014416
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
pop edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
pop esi
pop ebx
leave
ret

Function at 0x101ebbb
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10261a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0101eafc
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x101ec2e
cmp dword [ebp - 0x94], 5
jb 0x101ec4f
jmp 0x101ec4b
cmp dword [ebp - 0x88], 1
jne 0x101ec4f
cmp dword [ebp - 0x94], 4
ja 0x101ec4b
jne 0x101ec4f
cmp dword [ebp - 0x90], 0
jbe 0x101ec4f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10041ec
call fcn.01017e01
test eax, eax
jge 0x101ec70
mov byte [0x1026ae8], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100c855
leave
ret
Function at 0x1001479
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10014f4
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10014de
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x10014e4
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10014d5
cmp dword [ebp - 8], 0xd2af9
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x10015eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 1
je 0x1001622
push 0x1001778
push dword [ebp + 8]
call fcn.01001590
test eax, eax
pop ecx
pop ecx
jne 0x10017c2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x10016e8
push 0x80000001
call esi
test eax, eax
jne 0x100168c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001744
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100167b
cmp dword [ebp - 0x10], 4
jne 0x100167b
cmp dword [ebp - 0x14], 1
je 0x10017c9
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
mov dword [ebp - 8], ebx
je 0x10016de
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x1001714
push 0x80000002
call esi
test eax, eax
jne 0x10016de
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001760
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10016d5
cmp dword [ebp - 0x10], esi
jne 0x10016d5
cmp dword [ebp - 0x14], 1
jne 0x10016d5
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
xor al, al
jmp 0x10016e3
mov byte [ebp - 1], bl
jmp 0x100167b
Function at 0x10002b60
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [0x1012116c], 0
je 0x10002b6f
mov eax, 1
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push 0x1012116c
call edi
mov esi, eax
test esi, esi
jne 0x10002c0c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push 0x1012116c
call edi
mov esi, eax
test esi, esi
jne 0x10002c0c
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push 0x1012116c
call edi
mov esi, eax
test esi, esi
jne 0x10002c0c
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push 0x1012116c
call edi
mov esi, eax
test esi, esi
jne 0x10002c0c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push 0x1012116c
call edi
mov esi, eax
test esi, esi
jne 0x10002c0c
mov eax, dword [0x1012116c]
test eax, eax
je 0x10002c17
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov dword [0x1012116c], esi
mov eax, esi
pop esi
ret
push 0x10121170
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
mov eax, esi
pop esi
ret
Function at 0x10002c20
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088505
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
test esi, esi
jle 0x10002d64
call fcn.10002b60
test eax, eax
je 0x10002d64
push 0x10121170
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x8003
push dword [0x1012116c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10002de8
push 0
push dword [ebp + 0x14]
push str.jixian123
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10002cc3
push str.CryptHashData_error
jmp 0x10002ded
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x64]
push 0x6801
push dword [0x1012116c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10002ceb
push str.CryptDeriveKey_error
jmp 0x10002ded
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x10002d02
push str.CryptDestroyHash_error
jmp 0x10002ded
mov eax, dword [ebp - 0x68]
xor edi, edi
mov dword [ebp - 0x64], 0
mov edx, 0x3e8
sub esi, edi
cmp esi, edx
jbe 0x10002d1f
add edi, edx
mov ecx, edx
jmp 0x10002d24
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x70], ecx
cmp edx, esi
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
sbb eax, eax
inc eax
push eax
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10002d81
cmp esi, 0x3e8
jbe 0x10002d59
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x70]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
jmp 0x10002d0e
push 0x10121170
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063317
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
lea ecx, [ebp - 0x48]
push str.Error_Code:
mov edi, eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.10003020
mov esi, eax
push 0xa
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.1006e8d7
push eax
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.10003110
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10002e10
push eax
lea ecx, [ebp - 0x88]
call fcn.10002990
push 0x100a515c
lea eax, [ebp - 0x88]
jmp 0x10002dfd
push str.CryptCreateHash_error
lea ecx, [ebp - 0x7c]
call fcn.10002990
push 0x100a515c
lea eax, [ebp - 0x7c]
push eax
call fcn.1006525e
int3
Function at 0x10003af0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10003b50
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b10
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x10003b50
lea eax, [ebx + ebx]
call fcn.100643b0
mov edi, esp
test edi, edi
je 0x10003b50
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 0x3a8
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x10003b52
xor eax, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003b82
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063317
mov esp, ebp
pop ebp
ret
mov eax, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063317
mov esp, ebp
pop ebp
ret
Function at 0x10004ff0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088705
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x30], vtable.CMitFile.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push closesocket
push 3
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push eax
call fcn.10003d00
lea ecx, [ebp - 0x30]
call fcn.100038d0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x1000507d
xor esi, esi
mov dword [ebp - 0x30], vtable.CMitFile.0
jmp 0x1000516e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea ecx, [ebp - 0x50]
push ecx
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x50], xmm0
call esi
mov eax, dword [ebp - 0x50]
inc eax
push eax
call fcn.10063682
add esp, 4
mov dword [ebp - 0x54], 0
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x50], xmm0
push eax
push dword [ebp - 0x2c]
call esi
push 0
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x50]
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x2c]
movlpd qword [ebp - 0x50], xmm0
call esi
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
mov edx, edi
mov byte [eax + edi], 0
call fcn.100036a0
push edi
mov byte [ebp - 4], 1
call fcn.10063325
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x48]
add esp, 4
push eax
call fcn.10004c90
mov ecx, dword [ebp - 0x34]
mov esi, 1
cmp ecx, 0xf
jbe 0x10005140
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005136
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100051bd
push ecx
push edx
call fcn.10063674
add esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x30], vtable.CMitFile.0
test eax, eax
je 0x1000516e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1000519e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005194
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100051bd
push ecx
push edx
call fcn.10063674
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063317
mov esp, ebp
pop ebp
ret 4
call fcn.1006dd1f
int3
Function at 0x10005a50
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x10005bdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x10005bdc
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x10005bdc
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x10005bdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
call edi
test eax, eax
jne 0x10005bdc
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
call edi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x10005bdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x10005bdc
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x10005bdc
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x10005bdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x10005bdc
push 0x10
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x10005bdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x10005bdc
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x10005bdc
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x10005bdc
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer_bak
push esi
call edi
test eax, eax
jne 0x10005bdc
mov eax, dword [esi]
test eax, eax
je 0x10005bce
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov dword [esi], 0
xor al, al
pop esi
pop ebp
ret 4
pop edi
mov al, 1
pop esi
pop ebp
ret 4