joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40afa0
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40afac
xor al, al
pop esi
ret
push ebx
push edi
push 0x2000
call fcn.00430ef4
add esp, 4
mov edi, eax
push 0x1000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x40afe0
push edi
call fcn.00430eef
add esp, 4
xor al, al
pop edi
pop ebx
pop esi
ret
push dword [esi]
call fcn.00430eef
add esp, 4
mov dword [esi], edi
lea eax, [ebx - 1]
mov dword [esi + 4], eax
mov al, 1
pop edi
pop ebx
pop esi
ret

Function at 0x40d640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.004059c0
mov eax, dword [ebx]
test eax, eax
je 0x40d713
lea edi, [esi + 4]
push edi
push 0
lea ecx, [esi + 8]
push ecx
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d713
mov eax, dword [edi]
test eax, eax
je 0x40d721
add eax, 4
push eax
call fcn.00430ef4
mov dword [esi], eax
add esp, 4
mov ecx, dword [edi]
push edi
mov byte [eax + ecx], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 1], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 2], 0
mov eax, dword [esi]
mov ecx, dword [edi]
mov byte [ecx + eax + 3], 0
lea eax, [esi + 8]
push dword [esi]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esi + 8], 7
jne 0x40d727
mov ecx, dword [edi]
cmp ecx, 4
jbe 0x40d727
mov edx, dword [esi]
xor eax, eax
shr ecx, 1
sub ecx, 1
je 0x40d6ff
lea ebx, [eax + 0xa]
xor ecx, ecx
cmp cx, word [edx + eax*2]
jne 0x40d6f5
cmp word [edx + eax*2 + 2], cx
je 0x40d6f5
mov word [edx + eax*2], bx
mov ecx, dword [edi]
inc eax
shr ecx, 1
dec ecx
cmp eax, ecx
jb 0x40d6e2
mov eax, dword [edi]
shr eax, 1
xor ecx, ecx
pop edi
mov word [edx + eax*2 - 2], cx
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40d760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
test esi, esi
jne 0x40d795
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 8
push edi
test eax, eax
mov edi, 0x46cc74
mov ecx, esi
cmovne edi, eax
call fcn.0040ad00
mov eax, dword [ebx]
test eax, eax
je 0x40d83e
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d83e
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x40d7e9
cmp eax, 2
je 0x40d7e9
cmp eax, 7
jne 0x40d83e
mov ebx, dword [ebp - 8]
mov ecx, esi
add ebx, 4
mov dword [ebp - 8], ebx
push 0
shr ebx, 1
push ebx
call fcn.0040b080
lea eax, [ebx - 1]
mov ecx, esi
push eax
call fcn.0040ae30
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx - 2]
push eax
mov ecx, esi
call fcn.0040ae30
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0040ae10
push eax
mov eax, dword [ebp - 0x10]
push 0
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40d853
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0xc], 7
jne 0x40d889
cmp ebx, 3
jbe 0x40d889
mov ecx, esi
call fcn.0040ae10
lea edx, [ebx - 1]
xor ecx, ecx
test edx, edx
je 0x40d889
lea edi, [ecx + 0xa]
xor esi, esi
cmp si, word [eax + ecx*2]
jne 0x40d884
cmp word [eax + ecx*2 + 2], si
je 0x40d884
mov word [eax + ecx*2], di
inc ecx
cmp ecx, edx
jb 0x40d871
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430eab
mov esp, ebp
pop ebp
ret 8

Function at 0x40d930
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.0040d470
cmp dword [edi], 0
je 0x40d9a3
push 0x1fe
mov dword [ebp - 8], 0x1fe
call fcn.00430ef4
add esp, 4
mov dword [esi], eax
lea ecx, [ebp - 8]
push 0
push 0
push 0
push 0
push ecx
push eax
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40d995
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], 0xffffffff
jmp 0x40d99c
mov dword [esi + 4], 0xfffffffe
mov dword [esi + 8], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00430eab
mov esp, ebp
pop ebp
ret 8
Function at 0x40d9c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.0040d470
cmp dword [edi], 0
je 0x40da2b
push ebx
push 0x7ffe
mov dword [ebp - 8], 0x7ffe
call fcn.00430ef4
add esp, 4
mov dword [esi], eax
lea ebx, [esi + 8]
lea ecx, [esi + 4]
push ebx
push 0
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40da2a
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], 0xffffffff
mov dword [ebx], ecx
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00430eab
mov esp, ebp
pop ebp
ret 8

Function at 0x40daa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push ebx
mov dword [ebp - 4], eax
cmp dword [eax], 0
je 0x40db1c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40db1c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x40dad2
cmp edx, 1
jae 0x40dad2
mov edx, edi
call fcn.0040de60
mov edx, eax
cmp edi, 7
jne 0x40dafe
cmp edx, 2
jbe 0x40dafe
push esi
mov esi, edx
xor eax, eax
shr esi, 1
sub esi, 1
je 0x40dafd
cmp word [ecx + eax*2], 0xa
jne 0x40daf5
xor ebx, ebx
mov word [ecx + eax*2], bx
inc eax
cmp eax, esi
jb 0x40dae8
mov ebx, dword [ebp + 8]
pop esi
mov eax, dword [ebp - 4]
push edx
push ecx
push edi
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40dc90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44de50
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
call fcn.0040abc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
call fcn.0040d4e0
push 0x20019
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040d5f0
mov ecx, edi
call fcn.0040da40
test eax, eax
je 0x40dd75
lea esi, [eax - 1]
test esi, esi
js 0x40dd75
push esi
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.0040d930
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x38]
call fcn.0040d560
cmp dword [ebp - 0x34], 0xffffffff
je 0x40dd70
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
push 0x46dcd0
push ebx
call fcn.0040adb0
lea ecx, [ebp - 0x20]
call fcn.0040ae10
push eax
mov ecx, edi
call fcn.0040dc90
sub esi, 1
jns 0x40dd11
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
push ebx
movq qword [ebp - 0x18], xmm0
call fcn.0040ac00
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040aee0
test al, al
jne 0x40dd9c
xor bl, bl
jmp 0x40ddff
push ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push ebx
movq qword [ebp - 0x28], xmm0
call fcn.0040ac00
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040ad50
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.0040b700
push 0x20019
lea ecx, [ebp - 0x28]
call fcn.0040ae10
push eax
mov ecx, edi
call fcn.0040d5f0
test al, al
jne 0x40dde1
xor bl, bl
jmp 0x40ddf7
lea ecx, [ebp - 0x18]
call fcn.0040ae10
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
lea ecx, [ebp - 0x28]
call fcn.0040acf0
lea ecx, [ebp - 0x18]
call fcn.0040acf0
lea ecx, [ebp - 0x38]
call fcn.0040acf0
lea ecx, [ebp - 0x20]
call fcn.0040acf0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4
Function at 0x40e0d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dec8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.0040ac00
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 2
call fcn.0040dea0
mov esi, eax
test esi, esi
jne 0x40e12f
xor bl, bl
jmp 0x40e144
lea ecx, [ebp - 0x18]
call fcn.0040ae10
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
lea ecx, [ebp - 0x18]
call fcn.0040acf0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret
Function at 0x40e720
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
xor edi, edi
push 0xf01ff
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40e889
push ebx
push 0x4507e8
push 0x94
mov dword [esi], 0x94
call fcn.00431280
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40e888
push 0x4507e8
push dword [esi]
call fcn.00431280
mov edi, eax
add esp, 8
test edi, edi
je 0x40e87f
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea ecx, [ebx + 4]
push ecx
push str.SeRestorePrivilege
push 0
mov dword [ebx], 0xc
call esi
lea eax, [ebx + 0x10]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call esi
lea eax, [ebx + 0x1c]
push eax
push str.SeDebugPrivilege
push 0
call esi
lea eax, [ebx + 0x28]
push eax
push str.SeSecurityPrivilege
push 0
call esi
lea eax, [ebx + 0x34]
push eax
push str.SeBackupPrivilege
push 0
call esi
lea eax, [ebx + 0x40]
push eax
push str.SeImpersonatePrivilege
push 0
call esi
lea eax, [ebx + 0x4c]
push eax
push str.SeSystemProfilePrivilege
push 0
call esi
lea eax, [ebx + 0x58]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call esi
lea eax, [ebx + 0x64]
push eax
push str.SeTrustedCredManAccessPrivilege
push 0
call esi
lea eax, [ebx + 0x70]
push eax
push str.SeTcbPrivilege
push 0
call esi
lea eax, [ebx + 0x7c]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call esi
lea eax, [ebx + 0x88]
push eax
push str.SeShutdownPrivilege
push 0
call esi
lea eax, [ebx + 0xc]
mov ecx, 0xc
nop dword [eax]
mov dword [eax], 2
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x40e850
mov eax, dword [ebp - 0xc]
push eax
push edi
push dword [eax]
push ebx
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40e87f
push edi
call fcn.00430eef
add esp, 4
xor edi, edi
push ebx
call fcn.00430eef
add esp, 4
pop ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x40e897
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00430eab
mov esp, ebp
pop ebp
ret
Function at 0x410710
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push ebx
push 0xfa0
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x41074c
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x46e48c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x410739
push esi
push edi
sub esp, 8
lea ecx, [ebx + 0xfa4]
push dword [ebp - 0xc]
call fcn.0040c3d0
mov eax, dword [ebp - 0xc]
lea ecx, [ebx + 0xfac]
sub esp, 8
add eax, 2
push eax
call fcn.0040c3d0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x46dcd0
lea ecx, [ebx + 0xfac]
call fcn.0040ae10
push eax
lea ecx, [ebx + 0xfa4]
call fcn.0040ae10
push eax
push str.StringFileInfo_
lea ecx, [ebx + 0xfb4]
call fcn.0040adb0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4

Function at 0x4109a0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
cmp byte [ebx + 0x34], 0
lea ecx, [ebx + 8]
jne 0x4109b2
pop ebx
jmp fcn.0040ae10
mov eax, dword [ebx]
push esi
push edi
push 1
mov esi, dword [eax]
push 0
push 0x104
push 0
push 0x800
call fcn.0040b080
push eax
push dword [ebx]
call dword [esi + 0xc]
lea ecx, [ebx + 8]
test eax, eax
jns 0x4109e2
pop edi
pop esi
pop ebx
jmp fcn.0040ae10
call fcn.0040ae10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410a0f
push 0x800
lea ecx, [ebx + 8]
call fcn.0040ae10
push eax
lea ecx, [ebx + 8]
call fcn.0040ae10
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
pop edi
pop esi
lea ecx, [ebx + 8]
pop ebx
jmp fcn.0040ae10

Function at 0x410c90
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov esi, ecx
mov ebx, edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x410cc7
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x410cec
push ebx
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x410cf3
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop esi
xor al, al
pop ebx
ret 4
pop esi
mov al, 1
pop ebx
ret 4
Function at 0x410d00
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e130
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or eax, 0xffffffff
test edi, edi
cmove edi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
cmp edi, eax
je 0x410e9f
test edi, edi
je 0x410e9f
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
xor bl, bl
call fcn.00410c90
test al, al
je 0x410e9f
push 0x4507e8
push 0x80000
mov dword [ebp - 0x18], 0x80000
call fcn.00431280
mov esi, eax
add esp, 8
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x410e72
push 0
lea eax, [ebp - 0x18]
push eax
push 0x80000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410e0e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x410e0e
push 0
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x410e72
call fcn.0040c890
push 0
lea eax, [ebp - 0x18]
push eax
push 0x80000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410dd6
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push 0
push eax
push edx
push 4
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x410e72
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push dword [esi]
call fcn.00427150
test eax, eax
je 0x410e6f
push 0
push esi
mov esi, dword [ebp - 0x24]
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x410e72
mov edx, dword [ebp - 0x2c]
mov ecx, esi
push 0
push 0xffff
push dword [ebp - 0x30]
mov edx, dword [edx]
call fcn.0040cce0
mov bl, al
jmp 0x410e72
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410e82
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x410e90
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test esi, esi
je 0x410ea1
push esi
call fcn.00430eef
add esp, 4
jmp 0x410ea1
xor bl, bl
cmp edi, 0xffffffff
je 0x410eb1
test edi, edi
je 0x410eb1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 8
Function at 0x410ee0
Capabilities:
Contain obfuscated stackstrings
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov edi, ecx
cmp dword [eax], 0xa070
je 0x410f15
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4
push 0x20
push str.9F15E8B42592E073F0A14AFF69039F7D
mov edx, 0x20
mov dword [ebp - 0x40], 0x208
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x3c], 0x6610
mov dword [ebp - 0x38], 0x20
call fcn.00430dd0
add esp, 8
lea eax, [ebp - 0x40]
push esi
push 0
push 0
push 0x2c
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x410f01
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x34333231
push eax
push 1
push dword [esi]
mov dword [ebp - 0x10], 0x38373635
mov dword [ebp - 0xc], 0x32313039
mov dword [ebp - 8], 0x36353433
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4

Function at 0x410fa0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x410fea
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret
Function at 0x411120
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xa070
mov eax, ecx
push ebx
mov ebx, edx
mov dword [ebp - 0x10], eax
jne 0x411228
test eax, eax
je 0x411228
cmp dword [ebx], 0
je 0x411228
push edi
call fcn.00410fa0
mov edi, eax
test edi, edi
jne 0x411174
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
lea edx, [ebp - 8]
push esi
mov dword [ebp - 0xc], eax
mov ecx, edi
lea eax, [ebp + 8]
mov dword [ebp - 8], 0
push eax
xor esi, esi
call fcn.00410ee0
test al, al
je 0x4111fc
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 1
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4111fc
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4111fc
push 0x4507e8
push eax
call fcn.00431280
mov esi, eax
add esp, 8
test esi, esi
je 0x4111fc
push dword [ebx]
mov edx, dword [ebp - 0xc]
mov ecx, esi
push dword [ebp - 0x10]
call fcn.00430dd0
add esp, 8
push dword [ebp - 0xc]
push ebx
push esi
push 0
push 1
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x4111fc
push esi
call fcn.00430eef
add esp, 4
xor esi, esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x41120a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4

Function at 0x411240
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47b00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xa070
push ebx
push edi
mov ebx, edx
mov edi, ecx
jne 0x4112f9
test edi, edi
je 0x4112f9
cmp dword [ebx], 0
je 0x4112f9
push esi
call fcn.00410fa0
mov esi, eax
test esi, esi
jne 0x411295
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov dword [ebp - 8], 0
push eax
lea edx, [ebp - 8]
mov byte [ebp - 9], 0
mov ecx, esi
call fcn.00410ee0
test al, al
je 0x4112ca
push ebx
push edi
push 0
push 1
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
setne bl
jmp 0x4112cd
mov bl, byte [ebp - 9]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4112db
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.00430eab
mov esp, ebp
pop ebp
ret 4