joyce8/EMBER2024-capa huggingface dataset:
Function at 0x845f530
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000040
push 0x18
push 0
mov esi, ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x845f56e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
push 0x94
call fcn.0847e6ac
push 0x94
push 0
push eax
mov dword [esi + 0x10], eax
call fcn.0849dde0
mov eax, dword [esi + 0x10]
push 0x80
push 0x10402630
push 0x94
mov dword [eax], 0x206
mov dword [eax + 4], 0xa400
mov eax, dword [esi + 0x10]
mov dword [eax + 8], 0x31415352
mov dword [eax + 0xc], 0x400
mov dword [eax + 0x10], 0x10001
mov eax, dword [esi + 0x10]
add eax, 0x14
push eax
call fcn.0849bbc8
add esp, 0x20
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x94
push dword [esi + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x845f559
push edi
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x845f61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [esi + 0xc]
push ebx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x845f67f
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x845f67f
push dword [ebp - 8]
call fcn.0847e6ac
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.0849dde0
add esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x845f696
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 4]
add eax, 0xc
mov dword [esi + 0x18], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
pop ebx
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
pop esi
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
Function at 0x845f6c0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xf0000040
push 0x18
push 0
push 0
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x845f74e
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x845f74e
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x845f74e
lea eax, [esi + 4]
push eax
push 1
push dword [ebp - 8]
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x845f74e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
je 0x845f75c
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret 8
Function at 0x8460940
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84f9536
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
sub esp, 0xc
mov dword [ebp - 0x288], 0x6b774142
mov ecx, esp
mov dword [ebp - 0x284], 0x74416949
mov dword [ebp - 0x280], 0x3673524a
lea eax, [ebp - 0x218]
mov dword [ebp - 0x27c], 0x356f434e
mov dword [ebp - 0x278], 0x5830424a
mov dword [ebp - 0x274], 0x5030544f
mov dword [ebp - 0x270], 0x6d67525a
mov dword [ebp - 0x26c], 0x5a77414f
mov dword [ebp - 0x268], 0x49386a49
mov dword [ebp - 0x264], 0x5534794a
mov dword [ebp - 0x260], 0x71674246
mov dword [ebp - 0x25c], 0x7077515a
mov dword [ebp - 0x258], 0x386b6d4b
mov dword [ebp - 0x254], 0x71457750
mov dword [ebp - 0x250], 0x3873334a
mov dword [ebp - 0x24c], 0x4c414741
mov dword [ebp - 0x248], 0x54593350
mov dword [ebp - 0x244], 0x4c4d4346
mov dword [ebp - 0x240], 0x73306e49
mov dword [ebp - 0x23c], 0x6d4d7844
mov dword [ebp - 0x238], 0x7241524b
mov dword [ebp - 0x234], 0x7a426741
mov dword [ebp - 0x230], 0x37426a66
mov dword [ebp - 0x22c], 0x31736942
mov dword [ebp - 0x228], 0x52675446
mov dword [ebp - 0x224], 0x7977484f
mov dword [ebp - 0x220], 0x4177414e
mov dword [ebp - 0x21c], 0x45424141
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
push dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
push 0
call fcn.08405280
lea eax, [ebp - 0x29c]
push eax
call fcn.0844ba20
add esp, 0x10
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
mov dword [ebp - 4], 0
sar eax, 1
jne 0x8460af6
push str.invalid_vector_T__subscript
call fcn.0847ecf2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x28c]
call fcn.08408480
push esi
push eax
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 1
push eax
call fcn.08446230
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x290]
test eax, eax
setne bl
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x8460b4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x8460b6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x29c]
test ecx, ecx
je 0x8460b80
push ecx
call fcn.0849b460
add esp, 4
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.0849cd1e
mov esp, ebp
pop ebp
ret
Function at 0x8464540
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x84645f5
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x84645f5
cmp dword [ebp - 8], 0x103
jne 0x84645f5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x84645d0
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x84645b8
cmp dword [ebp - 8], 0x103
jne 0x84645b8
mov ecx, 1
xor eax, eax
test ecx, ecx
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor eax, eax
test ecx, ecx
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
pop esi
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
Function at 0x84651b0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xff
push 0x100
push eax
call fcn.0849e3aa
xor eax, eax
add esp, 0x14
cmp dword [esi + 0x24c], 0
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
jne 0x846520b
push eax
call fcn.0849f300
add esp, 4
lea eax, [esi + 0x2c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x8465240
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
Function at 0x8466e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x8466f1b
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x8466edd
cmp eax, 2
jne 0x8466ef9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x8466f15
test ecx, ecx
je 0x8466f10
test cl, 1
jne 0x8466ef9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x8466f15
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x8468140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84f9a46
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.0849dde0
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x8468204
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x8468204
call fcn.08449890
mov esi, eax
jmp 0x84682f1
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x8468227
call fcn.08449890
jmp 0x84682e4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x8468245
call fcn.08449890
jmp 0x84682e4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x8468266
mov esi, 0x8007000e
jmp 0x84682e6
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.084488f0
jmp 0x8468290
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x84682a7
mov esi, 0x8007000e
jmp 0x84682e6
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x84682c7
call fcn.08449890
jmp 0x84682e4
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.08467fe0
mov esi, eax
test edi, edi
je 0x84682f1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x8468310
lea ecx, [ebp - 0x420]
call fcn.0844c920
lea ebx, [ebx]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x846ad90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0xc], eax
xor edi, edi
xor eax, eax
cmp dword [ebp + 0xc], eax
push edi
push 0x20
setne al
inc eax
push eax
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x846addd
call fcn.08449890
mov esi, eax
test esi, esi
jne 0x846ae11
jmp 0x846addf
mov edi, eax
push 0
test ebx, ebx
lea eax, [ebp - 8]
cmovne eax, ebx
push eax
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x846ae04
call fcn.08449890
mov esi, eax
jmp 0x846ae06
xor esi, esi
test edi, edi
je 0x846ae11
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x846ae2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret
Function at 0x846cf50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x846cf69
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x846cf75
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x846cf70
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x846cfe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x846cff5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x846d000
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x846d000
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x8470370
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84fa13b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x184002c0]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xa4], eax
call fcn.0845f1b0
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.08441940
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x8470405
push eax
call fcn.0849babc
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 1
push 0
push dword [edi + 8]
call ebx
test eax, eax
jne 0x8470434
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x84704a2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, dword [edi + 0x1c]
push eax
mov dword [ecx], eax
call fcn.0847e6ac
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push 0
push eax
call fcn.0849dde0
mov eax, dword [edi + 0x1c]
push eax
push dword [edi + 0x18]
push eax
push dword [esi]
call fcn.0849bbc8
mov eax, dword [ebp - 0x1c]
mov esi, dword [esi]
add esi, dword [edi + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push esi
call fcn.0849bbc8
add esp, 0x30
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [edi + 8]
call ebx
test eax, eax
jne 0x84704a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x84704a2
xor esi, esi
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x84704c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x84704e6
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0849cd1e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x8470510
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84fa18b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x184002c0]
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 eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xa4], eax
call fcn.0845f1b0
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.08441940
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x84705a5
push eax
call fcn.0849babc
add esp, 4
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 1
push 0
push dword [edi + 4]
call esi
test eax, eax
jne 0x84705d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x847062d
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push eax
mov dword [ecx], eax
call fcn.0847e6ac
mov ecx, dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ecx]
push 0
push eax
call fcn.0849dde0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push dword [ebx]
call fcn.0849bbc8
add esp, 0x20
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push dword [ebx]
push 0
push 1
push 0
push dword [edi + 4]
call esi
test eax, eax
jne 0x847062b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x847062d
xor esi, esi
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x8470650
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x8470671
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0849cd1e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x84795f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84fa910
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x184002c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp + 0x24]
mov byte [ebp - 4], 1
test bl, bl
je 0x8479684
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.08464060
add esp, 4
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x10]
and esi, 0xffffff00
add esi, 0x20206
jmp 0x8479689
mov esi, 0x20206
push esi
push eax
push dword [edi]
lea ecx, [ebp - 0x20]
call fcn.084657b0
mov edi, eax
test edi, edi
je 0x84796b6
cmp byte [ebp + 0x28], 0
je 0x84796b2
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0844b560
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x84796f2
test bl, bl
je 0x84796d5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.08464060
add esp, 4
test eax, eax
je 0x84796d5
or esi, 0x100
jmp 0x84796db
or esi, 0x200
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push esi
push dword [ebp - 0x10]
push dword [eax]
call fcn.084657b0
mov edi, eax
test edi, edi
je 0x84796fc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x8479731
push eax
jmp 0x847972b
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
sub eax, ecx
jne 0x8479710
push str.invalid_vector_T__subscript
call fcn.0847ecf2
mov esi, dword [ebp - 0x20]
push eax
push ecx
push dword [ebp + 0x20]
push 0
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test esi, esi
je 0x8479731
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x8479741
push eax
call fcn.0849b460
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret