joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab870
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0
push 0x20119
xor eax, eax
mov byte [ebp - 4], 1
push 0x5f92f0
xor edx, edx
mov dword [ebp - 0x18], eax
push 0x80000002
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
call fcn.00427690
mov ebx, dword [ebp - 0x34]
test eax, eax
jne 0x43c732
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x5f9338
push ebx
call esi
test eax, eax
jne 0x43c732
mov eax, dword [ebp - 0x10]
cmp eax, 0xc
jb 0x43c732
push eax
lea ecx, [ebp - 0x44]
call fcn.00432ce0
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push 0x5f9338
push ebx
call esi
test eax, eax
jne 0x43c711
mov ecx, dword [ebp - 0x10]
lea edx, [edi + 8]
sub ecx, 8
mov dword [ebp - 0x10], ecx
cmp dword [edx], 3
jne 0x43c711
sub ecx, 4
add edx, 4
mov dword [ebp - 0x10], ecx
cmp ecx, 4
jbe 0x43c711
mov esi, dword [edx]
lea eax, [ecx - 4]
cmp esi, eax
ja 0x43c698
cmp esi, ecx
ja 0x43c698
lea eax, [edx + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
add edx, 4
mov eax, 0xfffffffc
add edx, esi
sub eax, esi
add ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, 4
jbe 0x43c6b3
mov esi, dword [edx]
lea eax, [ecx - 4]
cmp esi, eax
ja 0x43c6b3
cmp esi, ecx
ja 0x43c6b3
add edx, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x14], 0
je 0x43c711
push 0xc
call fcn.00464219
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
test esi, esi
je 0x43c711
mov eax, dword [ebp - 0x18]
mov dword [esi], 3
test eax, eax
je 0x43c6e5
push dword [ebp - 0x14]
mov ecx, eax
call fcn.0043cb20
jmp 0x43c6e7
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43c6fd
push dword [ebp - 0x20]
mov ecx, eax
call fcn.0043cb20
jmp 0x43c6ff
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov dword [esi + 8], eax
add ecx, 0x64
lea eax, [ebp - 0x24]
push eax
call fcn.00413090
test edi, edi
je 0x43c732
mov ecx, dword [ebp - 0x38]
mov eax, edi
test ecx, ecx
je 0x43c729
mov edi, edi
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x43c720
push edi
call fcn.00582cf0
add esp, 4
test ebx, ebx
je 0x43c73d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c8a0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab898
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x62c2a0]
xor eax, ebp
mov dword [ebp - 0x14], 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
mov edi, dword [ebp + 0x10]
push ecx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x50], 0
push eax
movdqu xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x34], xmm0
call fcn.0043cba0
push 0
push 0
push 0
push 1
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x43ca56
push 0x1388
push 0x1388
push 0x2710
push 0x2710
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x50]
je 0x43c952
or eax, 1
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x50], eax
test edi, edi
je 0x43c965
cmp word [edi], 0
je 0x43c965
or eax, 2
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x38]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
push ecx
push eax
push esi
call edi
test eax, eax
jne 0x43c9d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2eef
je 0x43c9a6
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x43ca56
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
push esi
call edi
test eax, eax
jne 0x43c9d4
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x43ca56
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x38], 3
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
jne 0x43ca42
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x43ca4c
cmp word [eax], 0
je 0x43ca45
push 0xc
call fcn.00464219
mov esi, eax
add esp, 4
mov dword [ebp - 0x54], esi
test esi, esi
je 0x43ca42
mov dword [esi], 3
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x43ca1b
call fcn.0043cc90
jmp 0x43ca1d
xor eax, eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x43ca2e
call fcn.0043cc90
jmp 0x43ca30
xor eax, eax
mov ecx, dword [ebp - 0x58]
mov dword [esi + 8], eax
add ecx, 0x64
lea eax, [ebp - 0x54]
push eax
call fcn.00413090
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x43ca4c
push eax
call edi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x43ca56
push eax
call edi
cmp dword [ebp - 0x18], 8
jb 0x43ca67
push dword [ebp - 0x2c]
call fcn.00464246
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00581fc1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x442aa0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x14
mov eax, dword [eax + 0x80]
test eax, eax
je 0x442b95
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x442b95
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x442b95
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 8]
push 0
push eax
push edi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x442b95
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x442b95
mov ebx, dword [ebp + 8]
mov esi, 1
cmp ebx, esi
jbe 0x442b8c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push 0
push 0
push 0x8004
push dword [eax + 0x80]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x442b95
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x442b95
push 0
lea eax, [ebp - 8]
push eax
push edi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x442b95
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x442b95
inc esi
cmp esi, ebx
jb 0x442b31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x6256a0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 3
push eax
call fcn.00586852
int3
Function at 0x444280
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.00444320
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0
push 0x7fffffff
push 0
push 0
call esi
push 0
push 0x7fffffff
push 0
push 0
mov dword [edi + 0x88], eax
call esi
push 0
push 0x7fffffff
push 0
push 0
mov dword [edi + 0x94], eax
call esi
push 0
push 4
push 0
push 0
mov dword [edi + 0x98], eax
push edi
mov dword [edi + 0x8c], 0
push 0x444420
mov dword [edi + 0x90], 0
call fcn.0047662a
mov dword [edi + 0x84], eax
mov dword [eax + 0x28], 0
mov eax, dword [edi + 0x84]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret

Function at 0x444320
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x84], 0
je 0x4443b3
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
push 1
push dword [edi + 0x98]
mov dword [edi + 0x90], 1
mov dword [edi + 0x8c], 0
call esi
push 0
push 1
push dword [edi + 0x88]
call esi
mov eax, dword [edi + 0x84]
push 0xffffffffffffffff
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x444398
mov eax, dword [edi + 0x84]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [edi + 0x84]
push 0
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x4443a9
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [edi + 0x84], 0
mov eax, dword [edi + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
test eax, eax
je 0x4443e4
push eax
call esi
mov dword [edi + 0x88], 0
mov eax, dword [edi + 0x94]
test eax, eax
je 0x4443fb
push eax
call esi
mov dword [edi + 0x94], 0
mov eax, dword [edi + 0x98]
test eax, eax
je 0x444412
push eax
call esi
mov dword [edi + 0x98], 0
pop edi
pop esi
ret
Function at 0x44fc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acc18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
push esi
push 0x600020
push dword [edi]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44fca2
cmp eax, 0xea
je 0x44fca2
cmp eax, 2
jne 0x44fc89
lea ecx, [ebp - 0x10]
call fcn.004331d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push eax
push 0x3f
lea ecx, [ebp - 0x24]
call fcn.0045c450
push 0x62566c
lea eax, [ebp - 0x24]
push eax
call fcn.00586852
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
je 0x44fcc8
cmp ecx, 2
je 0x44fcc8
push eax
push 0x41
lea ecx, [ebp - 0x30]
call fcn.0045c450
push 0x62566c
lea eax, [ebp - 0x30]
push eax
call fcn.00586852
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x44fd10
lea ecx, [ebp - 0x14]
inc eax
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00433210
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x600020
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x44fd10
test esi, esi
je 0x44fd10
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44fd04
sub ecx, edx
mov dword [esi - 0xc], ecx
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
cmp eax, edi
je 0x44fd53
mov edx, dword [edi]
test edx, edx
je 0x44fd4a
add edx, 0xfffffff4
dec dword [edx + 8]
jne 0x44fd44
mov ecx, dword [edx + 4]
mov eax, edx
add ecx, 0xd
je 0x44fd3b
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x44fd32
push edx
call fcn.00582cf0
add esp, 4
mov dword [edi], 0
mov dword [edi], esi
test esi, esi
je 0x44fd82
inc dword [esi - 4]
test esi, esi
je 0x44fd82
add esi, 0xfffffff4
dec dword [esi + 8]
jne 0x44fd82
mov ecx, dword [esi + 4]
mov eax, esi
add ecx, 0xd
je 0x44fd79
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x44fd70
push esi
call fcn.00582cf0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44fda0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acc18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
push esi
push 0x600020
push dword [edi]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44fe32
cmp eax, 0xea
je 0x44fe32
cmp eax, 2
jne 0x44fe19
lea ecx, [ebp - 0x10]
call fcn.004331d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push eax
push 0x3f
lea ecx, [ebp - 0x30]
call fcn.0045c450
push 0x62566c
lea eax, [ebp - 0x30]
push eax
call fcn.00586852
cmp dword [ebp - 0x18], 7
je 0x44fe57
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push 0x62566c
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x41
call fcn.00586852
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x44fe97
lea ecx, [ebp - 0x14]
add eax, 2
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00433210
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x600020
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44fe94
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00433290
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.004332d0
test esi, esi
je 0x44fed2
add esi, 0xfffffff4
dec dword [esi + 8]
jne 0x44fed2
mov ecx, dword [esi + 4]
mov eax, esi
add ecx, 0xd
je 0x44fec9
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x44fec0
push esi
call fcn.00582cf0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x451790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0x20019
push 0x6000e4
mov esi, ecx
mov dword [ebp - 0x18], 0
push 0x80000002
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.00427690
mov edi, dword [ebp - 0x18]
test eax, eax
jne 0x45180b
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x600120
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45180b
cmp dword [ebp - 8], 4
jne 0x45181b
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
add eax, 2
mov dword [esi], eax
mov esi, 1
jmp 0x45181d
cmp eax, 2
jne 0x45181b
mov dword [esi], 0
lea esi, [eax - 1]
jmp 0x45181d
xor esi, esi
test edi, edi
je 0x451828
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x451830
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acde8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00451990
test eax, eax
jne 0x45194e
mov edx, 0x80000002
mov ecx, edi
call fcn.00451b10
test eax, eax
je 0x45196d
push 0x400
mov dword [ebp - 4], 0
call fcn.00433d50
mov esi, eax
push esi
push 0
push 0
push 0x25
push 0
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test esi, esi
je 0x451965
mov ecx, esi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4518b0
sub ecx, edx
mov dword [esi - 0xc], ecx
je 0x451965
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00433a70
mov edx, 0x60011c
mov ecx, eax
call fcn.00433f10
lea ecx, [ebp - 0x14]
mov bl, al
call fcn.004331d0
test bl, bl
je 0x4518f3
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00433600
push 0xc
push 0x600154
lea ecx, [ebp - 0x10]
call fcn.004336d0
test edi, edi
jne 0x45190b
or ebx, 0xffffffff
jmp 0x451913
xor ebx, ebx
cmp edi, 1
sete bl
push ecx
mov ecx, esp
push 0x600120
call fcn.00433170
push ecx
mov ecx, esp
push 0x6000e4
call fcn.00433170
mov eax, dword [ebp - 0x10]
push ecx
mov edx, esp
mov dword [edx], eax
test eax, eax
je 0x45193c
inc dword [eax - 4]
mov ecx, ebx
call fcn.00451bf0
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.004331d0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
call fcn.004331d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451b10
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], 0
push edi
test esi, esi
jne 0x451b79
push 0x2001f
push 0x6000e4
push edx
call fcn.00427690
test eax, eax
jne 0x451b6c
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x600138
push edi
call esi
push 0x600120
push edi
call esi
test eax, eax
je 0x451bc9
cmp eax, 2
jmp 0x451bc7
cmp eax, 2
jne 0x451bd0
mov edi, dword [ebp - 0x10]
lea esi, [eax - 1]
jmp 0x451bd5
push 0
push 0
push 0x2001f
push 0
push 0
push 0x6000e4
push edx
call fcn.004525a0
test eax, eax
jne 0x451bd0
mov edi, dword [ebp - 0x10]
push 0x600138
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor eax, eax
cmp esi, 1
push 4
sete al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x600120
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x451bd3
mov esi, 1
jmp 0x451bd5
mov edi, dword [ebp - 0x10]
xor esi, esi
test edi, edi
je 0x451be0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x452b20
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ace90
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x62c2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x34], vtable.CDBase64.0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
call fcn.004529f0
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000040
push 0x18
push 0x5fd7a4
push edi
push esi
mov dword [esi + 8], 1
call ebx
test eax, eax
jne 0x452bb6
push 0xf0000040
push 0x18
push 0x5fd760
push eax
push esi
call ebx
test eax, eax
jne 0x452bb6
mov ecx, esi
call fcn.004529f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
lea eax, [esi + 4]
mov byte [ebp - 4], 1
push eax
push 0x8000000
push 0xa400
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x452bfe
mov ecx, esi
call fcn.004529f0
xor esi, esi
jmp 0x452cd8
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10001
push 1
push dword [esi]
call dword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
test eax, eax
jne 0x452c25
mov ecx, esi
call fcn.004529f0
xor esi, esi
jmp 0x452cd8
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.00432ce0
mov ebx, dword [ebp - 0x20]
test eax, eax
jne 0x452c40
mov ecx, esi
call fcn.004529f0
jmp 0x452c8d
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10001
push 1
push dword [esi]
call dword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
test eax, eax
jne 0x452c61
mov ecx, esi
call fcn.004529f0
jmp 0x452c8d
push dword [ebx + 0xc]
lea ecx, [ebp - 0x34]
push dword [ebx + 0x10]
call fcn.00438aa0
test eax, eax
je 0x452c83
push ecx
push dword [ebp + 0x10]
lea ecx, [esi + 0x48]
call fcn.004544d0
test eax, eax
jne 0x452cbd
mov ecx, esi
call fcn.004529f0
mov edi, dword [ebp - 0x30]
test ebx, ebx
je 0x452cb9
mov ecx, dword [ebp - 0x14]
mov eax, ebx
test ecx, ecx
je 0x452ca9
lea ebx, [ebx]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x452ca0
push ebx
call fcn.00582cf0
add esp, 4
mov dword [ebp - 0x20], 0
xor esi, esi
jmp 0x452cd8
push dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
call fcn.00433400
lea ecx, [ebp - 0x20]
call fcn.00432cb0
mov edi, dword [ebp - 0x30]
mov esi, 1
mov dword [ebp - 0x34], vtable.CDBase64.0
test edi, edi
je 0x452d02
mov edx, dword [ebp - 0x24]
mov ecx, edi
test edx, edx
je 0x452cf9
lea esp, [esp]
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x452cf0
push edi
call fcn.00464246
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4535a0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x18], 0
push 0x100
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
call fcn.00432ce0
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x45363b
mov eax, dword [ebx + 0x34]
push eax
push dword [ebx + 0x30]
mov dword [ebp - 0x14], 0x100
push edi
mov dword [ebp - 8], eax
call fcn.00589690
add esp, 0xc
lea eax, [ebp - 8]
push esi
push eax
push edi
push 0
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x45363b
cmp dword [ebp - 8], 0x100
jne 0x45363b
mov edx, dword [ebp + 8]
mov ecx, edi
add edx, 0x11f
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx - 1]
dec dword [ebp - 8]
jne 0x453625
mov ebx, 1
jmp 0x45363d
xor ebx, ebx
test edi, edi
je 0x453659
mov ecx, edi
test esi, esi
je 0x453650
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec esi
jne 0x453647
push edi
call fcn.00582cf0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x453670
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], 0
push 0x100
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
call fcn.00432ce0
test eax, eax
je 0x453702
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x100
lea esi, [eax + 0x20]
lea ecx, [eax + 0x11f]
cmp ecx, esi
jb 0x4536d1
mov al, byte [ecx]
lea edx, [edx + 1]
dec ecx
mov byte [edx - 1], al
cmp ecx, esi
jae 0x4536c1
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edx
push 0
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x453702
push dword [ebp - 0x10]
lea ecx, [edi + 0x30]
push dword [ebp - 0x14]
call fcn.00432e90
test eax, eax
je 0x453702
mov esi, 1
jmp 0x453704
xor esi, esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x453727
mov edx, dword [ebp - 8]
test edx, edx
je 0x45371e
mov byte [ecx], 0
lea ecx, [ecx + 1]
dec edx
jne 0x453712
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00582cf0
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4