joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470e1a
Capabilities:
Encode data using xor

Disassembly:
push 0x34
mov eax, 0x515438
call fcn.004b9729
mov ecx, dword [ebp + 8]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov edi, ecx
xor eax, eax
xor edx, edx
xor ebx, ebx
and dword [ebp - 0x3c], ebx
inc edx
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x40], edx
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0xc]
cmp ecx, 0x35
jl 0x470ebe
lea eax, [ecx - 0x35]
push eax
push 0x23
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040cc6a
mov esi, dword [eax]
push esi
mov byte [ebp - 4], 4
call fcn.0040cf6b
pop ecx
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.0040ceec
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
add eax, 0xfffffff0
push ecx
push ecx
mov esi, esp
push eax
call fcn.0040c702
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.00471924
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov esi, ecx
sub esi, eax
je 0x470f25
push dword [ebp - 0x38]
and dword [ebp - 0x2c], 0
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00408122
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0040899f
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0040a384
call fcn.00470814
add esp, 0xc
add eax, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub esi, dword [ebp - 0x3c]
je 0x470f55
mov al, byte [eax + edi]
xor al, byte [ebx + 0x5b2024]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.00413df8
inc ebx
xor eax, eax
cmp ebx, 0x1e
cmovge ebx, eax
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, esi
jb 0x470f2c
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x1d]
push eax
mov byte [ebp - 0x1d], 0
call fcn.00413df8
lea ecx, [ebp - 0x30]
call fcn.0040ee97
lea ecx, [ebp - 0x1c]
call fcn.0040ee97
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, dword [ebp - 0x34]
call fcn.004b96d8
ret
Function at 0x470f89
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x515496
call fcn.004b9729
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], esi
mov edi, ecx
mov dword [ebp - 0x34], esi
xor eax, eax
xor edx, edx
inc edx
mov ebx, esi
mov dword [ebp - 4], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
xor eax, eax
mov dword [ebp - 0x3c], edx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 0xc]
cmp ecx, 0x35
jl 0x47102c
lea eax, [ecx - 0x35]
push eax
push 0x23
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.00468682
mov esi, dword [eax]
push esi
mov byte [ebp - 4], 4
call fcn.00468ac1
pop ecx
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.004689b5
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00466cf4
call fcn.00471924
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov esi, ecx
sub esi, eax
je 0x47108a
push dword [ebp - 0x30]
and dword [ebp - 0x28], 0
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408122
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0040899f
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.0040a384
call fcn.00470814
add esp, 0xc
add eax, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub esi, dword [ebp - 0x34]
je 0x4710c3
movzx ecx, byte [eax + edi]
movsx ax, byte [ebx + 0x5b2024]
xor cx, ax
movzx eax, cx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0046b8a2
inc ebx
xor eax, eax
cmp ebx, 0x1e
cmovge ebx, eax
mov eax, dword [ebp - 0x1c]
inc edi
cmp edi, esi
jb 0x471091
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x20]
and dword [ebp - 0x20], 0
push eax
call fcn.0046b8a2
lea ecx, [ebp - 0x2c]
call fcn.0040ee97
lea ecx, [ebp - 0x1c]
call fcn.0040ee97
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, dword [ebp - 0x38]
call fcn.004b96d8
ret
Function at 0x471873
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x51559d
call fcn.004b9729
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor edx, edx
push edx
push edx
push ecx
push edx
push 1
push dword [eax - 0xc]
mov dword [ebp - 4], edx
push eax
call esi
test eax, eax
je 0x4718dd
push dword [ebp - 0x14]
call fcn.0049a720
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.004bd8d0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
add esp, 0x10
push 0
push 0
push eax
push ebx
push 1
push dword [ecx - 0xc]
push ecx
call esi
test eax, eax
jne 0x4718ee
push ebx
call fcn.004b8805
pop ecx
mov ecx, edi
call fcn.00467484
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x47190f
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.004719b2
mov esi, eax
test esi, esi
je 0x471908
mov ecx, edi
call fcn.00467484
push ebx
call fcn.004b8805
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, esi
call fcn.004b96d8
ret 8

Function at 0x471924
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x5155ca
call fcn.004b9729
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x47199f
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x471961
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x471997
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00414b4d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov esi, dword [edi - 0xc]
push eax
push ebx
call fcn.00410335
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x47199f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, ebx
call fcn.004b96d8
ret
Function at 0x4719b2
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x5155fa
call fcn.004b9729
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.0049a720
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.004bd8d0
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.004b880a
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x471a2c
push esi
call fcn.004b8805
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.00467484
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x471a92
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.00473466
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.00468ac1
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.004689b5
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x471a89
push dword [ebp - 0x120]
call fcn.004b86fe
pop ecx
push esi
call fcn.004b8805
pop ecx
xor eax, eax
call fcn.004b96d8
ret 0xc

Function at 0x471a9a
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x51562d
call fcn.004b9729
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.0049a720
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.004bd8d0
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.004b880a
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x471b14
push esi
call fcn.004b8805
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.00467484
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x471b7a
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.00473466
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.00468ac1
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.004689b5
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x471b71
push dword [ebp - 0x120]
call fcn.004b86fe
pop ecx
push esi
call fcn.004b8805
pop ecx
xor eax, eax
call fcn.004b96d8
ret 0xc
Function at 0x472c41
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push 0x24
mov eax, 0x5158cd
call fcn.004b9729
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.00467484
push 0x10
pop edi
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x28]
call fcn.00466c6a
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004688f2
push edi
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0046896b
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x28]
test eax, eax
je 0x472d9c
push dword [ebp - 0x14]
call fcn.0046896b
push 0x20
pop eax
push eax
mov dword [ebp - 0x24], eax
call fcn.0049a720
mov esi, dword [ebp - 0x28]
mov edi, eax
mov dword [ebp - 0x2c], edi
pop ecx
test edi, edi
jne 0x472ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x472dac
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x472cf9
push edi
call fcn.004b8805
pop ecx
jmp 0x472cc1
push dword [ebp - 0x24]
push ebx
push edi
call fcn.004bd8d0
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
add esp, 0xc
push esi
call fcn.004688f2
push esi
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0046896b
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1c]
test eax, eax
jne 0x472d4a
call fcn.0046896b
jmp 0x472cf0
call fcn.0046896b
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x472cf0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push dword [ebp - 0x20]
mov edi, eax
call fcn.00468ac1
pop ecx
mov ecx, dword [ebp - 0x30]
push eax
push dword [ebp - 0x20]
call fcn.00470614
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], ebx
call fcn.004b8805
pop ecx
test edi, edi
jne 0x472dae
jmp 0x472cc1
push 0xffffffffffffffff
call fcn.004744de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x28]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.0040ce73
mov eax, ebx
call fcn.004b96d8
ret
Function at 0x4736af
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5b22e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf0000040
push 0x18
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4736e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4737e8
push edi
mov edi, 0x94
push edi
call fcn.0049a720
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.004bd8d0
mov eax, dword [esi + 0x10]
push 0x80
push 0x53e878
push edi
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.004b880a
add esp, 0x20
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [esi + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4737cb
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x4737cb
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 0x4737cb
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 0x4737cb
push dword [ebp - 8]
call fcn.0049a720
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.004bd8d0
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 0x4737d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4737e7
mov eax, dword [esi + 0x14]
add eax, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9652
mov esp, ebp
pop ebp
ret
Function at 0x4737f8
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5b22e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0xf0000040
push 0x18
push ebx
mov esi, ecx
mov dword [ebp - 8], ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47386f
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x47386f
push ebx
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x47386f
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 0x47386f
xor eax, eax
jmp 0x473883
cmp dword [ebp - 8], ebx
je 0x47387d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9652
mov esp, ebp
pop ebp
ret 8

Function at 0x473ae3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.004739ee
pop ecx
test eax, eax
jne 0x473af6
inc eax
pop ebp
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x473b15
push dword [ebp + 8]
call fcn.004739ee
neg eax
pop ecx
sbb eax, eax
inc eax
pop ebp
ret
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x4740f5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x515b43
call fcn.004b9729
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x28]
mov edx, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x20019
push edx
call fcn.00473e3e
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4741a8
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4741a0
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
call fcn.00414b4d
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.00410335
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x47420f
lea ecx, [ebp - 0x28]
call fcn.00470978
cmp byte [ebp + 0x1c], 0
jne 0x474221
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push 0x20219
push dword [ebp - 0x14]
push dword [eax]
call fcn.00473dc4
mov edi, eax
test edi, edi
jne 0x474221
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x474219
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
call fcn.00414b4d
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.00410335
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x1c]
push esi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x474219
lea ecx, [ebp - 0x28]
call fcn.00470978
jmp 0x474223
lea ecx, [ebp - 0x28]
call fcn.00470978
mov esi, edi
lea ecx, [ebp - 0x28]
call fcn.00470978
mov eax, esi
call fcn.004b96d8
ret
Function at 0x476bd7
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x9c
mov eax, 0x51614c
call fcn.004b9729
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xa8], eax
call fcn.00473518
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00409bcc
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], eax
je 0x476c4b
push dword [ebp - 0xa8]
call fcn.004b86fe
pop ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x476cd2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, dword [ebx + 0x1c]
push eax
mov dword [ecx], eax
call fcn.0049a720
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push edi
push eax
call fcn.004bd8d0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
push dword [esi]
call fcn.004b880a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [eax - 0xc]
add esi, dword [edx]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push esi
call fcn.004b880a
add esp, 0x30
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push esi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x476cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040ce73
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, edi
call fcn.004b96d8
ret 0xc
Function at 0x476cfa
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x9c
mov eax, 0x51618f
call fcn.004b9729
mov edi, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xa8], eax
call fcn.00473518
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00409bcc
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], eax
je 0x476d6e
push dword [ebp - 0xa8]
call fcn.004b86fe
pop ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 1
push esi
push dword [edi + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
call edi
test eax, eax
je 0x476ddd
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push eax
mov dword [ecx], eax
call fcn.0049a720
mov ecx, dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ecx]
push esi
push eax
call fcn.004bd8d0
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.004b880a
add esp, 0x20
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push dword [ebx]
mov eax, dword [ebp - 0x24]
push esi
push 1
push esi
push dword [eax + 4]
call edi
test eax, eax
jne 0x476de5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040ce73
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ce73
mov eax, esi
call fcn.004b96d8
ret 0xc