joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb1b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x83e06c]
xor edx, edx
cmp eax, edx
jne 0x4bb1d6
xor eax, eax
mov byte [eax + 0x83df6c], al
inc eax
cmp eax, 0x100
jl 0x4bb1be
mov dword [0x83e06c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x83df6c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4bb267
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4bb23a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4bb208
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4bb2e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4bb333
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4bb31a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c1ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fbaee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004c2600
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x7ccb8c
call fcn.004e878b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4c1d73
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e878b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4c1d6c
push 0
mov ecx, eax
call fcn.004b8de0
mov dword [esi + 0xc], eax
jmp 0x4c1d75
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4c1d75
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4eae76
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4eaeae
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e8ef1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e8ec9
jmp 0x4eaeba
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ec671
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ec6b3
call fcn.004f2b14
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ec6b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ec6aa
xor eax, eax
jmp 0x4ec6bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ec6c1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ee1df
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4fc31c
call fcn.004d9924
push ecx
push ecx
push esi
push 0x14
call fcn.004e878b
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4ee232
mov ecx, esi
call fcn.004e8fe7
mov eax, dword [0x7f30e8]
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CFileException.0
mov dword [esi + 0xc], eax
call fcn.004e8bd3
jmp 0x4ee234
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x7db8d0
push eax
mov dword [ebp - 0x10], esi
call fcn.004d8cbc
pop esi

Function at 0x4f3044
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f3072
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f3090
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f2faa
jmp 0x4f3090
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f3090
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f2faa
test edi, edi
mov eax, edi
jne 0x4f307a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40b02c], 0x8088405
inc edx
mov dword [0x40b02c], edx
mul edx
mov eax, edx
ret

Function at 0x4050f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405131
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403230
jmp 0x40513a
mov eax, ebx
mov edx, esi
call fcn.004031e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405144
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405165
mov al, byte [esp]
jmp 0x405167
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40675c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4067a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004066f8
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067ab
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x4069ac
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406a3a
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4069f7
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403230
jmp 0x406a24
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406a0b
lea eax, [ebp - 4]
call fcn.00403150
jmp 0x406a1a
lea edx, [ebp - 4]
call fcn.00406870
test ebx, ebx
je 0x406a1a
dec ebx
jmp 0x4069fc
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a41
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x406a48
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404ccc
add esp, 0x104
pop ebx
ret
Function at 0x406b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406cb1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406c9b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406be9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406c9b
cmp dword [ebp - 0xc], 0
jne 0x406bfe
mov eax, dword [ebp - 4]
call fcn.00403150
mov bl, 1
jmp 0x406c9b
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403230
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.004033d8
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406bb5
test eax, eax
jne 0x406c9b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406c45
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406c9b
jmp 0x406c45
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x406c58
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x406c42
cmp dword [ebp - 8], 7
jne 0x406c67
cmp dword [ebp - 0xc], 0
je 0x406c67
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004034a8
cmp dword [ebp - 8], 7
jne 0x406c8e
cmp dword [ebp - 0xc], 0
je 0x406c8e
lea eax, [ebp - 0x10]
call fcn.004033d8
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031a0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cb8
lea eax, [ebp - 0x10]
call fcn.00403150
ret

Function at 0x4075ec
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b558
mov eax, esi
mov edx, 8
test al, 1
je 0x407608
shr eax, 1
xor eax, 0xedb88320
jmp 0x40760a
shr eax, 1
dec edx
jne 0x4075fb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4075f4
pop esi
ret

Function at 0x407620
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b554], 0
jne 0x407643
call fcn.004075ec
push 1
push 0x40b554
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40766e
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b558]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407649
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408bc4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408b78
test al, al
jne 0x408be5
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408c31
xor eax, eax
push ebp
push 0x408c21
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033cc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c28
lea eax, [ebp - 0xc]
call fcn.00408bb4
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408f38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x409027
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406a74
mov edx, dword [ebp - 8]
mov ecx, 0x409040
xor eax, eax
call fcn.00408e2c
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x408ff5
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x408f58
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408a04
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404b80
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00406fec
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.004089d4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x40454c
call fcn.0040577c
call fcn.00402e88
jmp 0x408f58
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40902e
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403170
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403170
ret

Function at 0x409070
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40a07c], 2
jne 0x4090dd
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x409095
call fcn.00409050
jmp 0x4090ef
lea eax, [esp + 8]
push eax
push 0x4090f4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4090dd
call fcn.00409050
jmp 0x4090ef
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x4090ef
call fcn.00409050
add esp, 0x14
ret
Function at 0x67801620
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], str.SoftwareWineCryptoDSS_s
mov dword [esp + 0xc], 0x7fffffff
mov dword [esp + 8], eax
mov dword [esp], 5
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
mov edx, 0xffffffff
leave
test eax, eax
cmovs eax, edx
ret

Function at 0x67801670
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x138]
mov esi, edx
push ebx
mov ebx, eax
lea eax, [eax + 0x10]
sub esp, 0x15c
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineCryptoDSS_s
call sym._sprintf.constprop.0
xor eax, eax
test byte [ebx + 4], 0x20
mov dword [esp + 0x1c], esi
setne al
mov dword [esp + 4], edi
sub eax, 0x7fffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret

Function at 0x67801780
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x138]
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x14c
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineCryptoDSS_s
call sym._sprintf.constprop.0
xor eax, eax
and esi, 0x20
mov dword [esp + 0x10], ebx
setne al
mov dword [esp + 4], edi
sub eax, 0x7fffffff
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
Function at 0x678019b0
Capabilities:
Encrypt data using dpapi
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x2c]
mov esi, str.KeyExchangeKeyPair
push ebx
mov ebx, eax
mov eax, str.SignatureKeyPair
sub esp, 0x5c
cmp ecx, 2
mov dword [ebp - 0x3c], edx
cmove esi, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.V2CAPIDSAPRIVATEBLOB
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._BCryptExportKey_28
sub esp, 0x1c
test eax, eax
je 0x67801a20
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
mov dword [esp], ecx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x67801a0f
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [ebp - 0x40], eax
mov dword [esp + 8], str.V2CAPIDSAPRIVATEBLOB
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov ebx, 1
mov dword [esp], eax
call sym._BCryptExportKey_28
mov edx, dword [ebp - 0x40]
sub esp, 0x1c
test eax, eax
je 0x67801a90
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov dword [esp + 0x10], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CryptProtectData]
mov edx, dword [ebp - 0x40]
sub esp, 0x1c
test eax, eax
mov ebx, eax
je 0x67801a77
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 3
xor ebx, ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x1c]
sete bl
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov edx, dword [ebp - 0x40]
sub esp, 4
jmp 0x67801a77
Function at 0x67801bc0
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x2c]
lea esi, [ebp - 0x30]
push ebx
mov ebx, str.SignatureKeyPair
sub esp, 0x6c
mov dword [ebp - 0x3c], eax
cmp edx, 2
mov eax, str.KeyExchangeKeyPair
cmovne ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [ebp - 0x40], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x67801c78
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x67801c78
mov dword [esp + 0x10], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x14], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
call eax
mov ecx, dword [ebp - 0x48]
sub esp, 0x18
test eax, eax
je 0x67801c88
mov ebx, dword [sym.imp.ucrtbase.dll_free]
xor edi, edi
mov dword [esp], ecx
call ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.crypt32.dll_CryptUnprotectData]
mov ecx, dword [ebp - 0x3c]
sub esp, 0x1c
test eax, eax
je 0x67801c5b
mov eax, dword [ebp - 0x4c]
xor edx, edx
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
call sym._create_key
mov ecx, dword [ebp - 0x3c]
test eax, eax
mov edi, eax
je 0x67801d81
lea eax, [eax + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.V2CAPIDSAPRIVATEBLOB
mov dword [esp + 4], 0
mov dword [esp], 0x2d1
mov dword [ebp - 0x3c], ecx
call sym._BCryptImportKeyPair_28
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebp - 0x3c]
sub esp, 0x1c
test eax, eax
jne 0x67801d55
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov ecx, dword [ebp - 0x3c]
sub esp, 4
jmp 0x67801c63
test byte [0x67805018], 4
jne 0x67801d89
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call sym._BCryptDestroyKey_4
mov ebx, dword [sym.imp.ucrtbase.dll_free]
sub esp, 4
mov dword [esp], edi
xor edi, edi
call ebx
mov ecx, dword [ebp - 0x3c]
jmp 0x67801d3b
mov ebx, dword [sym.imp.ucrtbase.dll_free]
jmp 0x67801d3b
mov dword [esp + 0xc], str.failed_to_import_key_n
mov dword [esp + 8], str.import_key
mov dword [esp + 4], 0x67805018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x3c]
jmp 0x67801d5e
Function at 0x67803140
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
test byte [0x67805018], 8
jne 0x67803180
xor eax, eax
cmp dword [ebx], 0x434f4e54
je 0x678031ba
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str._p___lu___p_n
mov dword [esp + 8], str.CPGenRandom
mov dword [esp + 4], 0x67805018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
xor eax, eax
cmp dword [ebx], 0x434f4e54
jne 0x6780316f
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_SystemFunction036]
sub esp, 8
lea esp, [ebp - 0x10]
movzx eax, al
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc

Function at 0x678035b0
Capabilities:
Hash data via bcrypt

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
test byte [0x67805018], 8
jne 0x67803648
xor eax, eax
cmp dword [ebx], 0x48415348
jne 0x678035fa
mov edx, dword [ebx + 0x4c]
test edx, edx
je 0x67803610
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x8009000c
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._BCryptHashData_16
sub esp, 0x10
test eax, eax
sete al
lea esp, [ebp - 0x10]
pop ecx
movzx eax, al
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._p___p___p___lu___08lx_n
mov dword [esp + 8], str.CPHashData
mov dword [esp + 4], 0x67805018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x678035db

Function at 0x67803d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x67803d8b
cmp byte [esi + ebx - 1], 0xa
je 0x67803d5f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x678090a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret