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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x529748]
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 0x49984e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
mov esp, ebp
pop ebp
ret
push 0x94
call fcn.004bc57c
push 0x94
push 0
push eax
mov dword [esi + 0x10], eax
call fcn.004c1b90
mov eax, dword [esi + 0x10]
push 0x80
push 0x50cd20
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.004be141
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 0x499839
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 0x4998ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
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 0x49995f
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 0x49995f
push dword [ebp - 8]
call fcn.004bc57c
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.004c1b90
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 0x499976
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bd963
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.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x4999a0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x529748]
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
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa0]
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xa4], eax
call fcn.004162e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push dword [ebp - 0xa4]
call fcn.00416150
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 0xa4]
cmp eax, ecx
je 0x499a35
push eax
call fcn.004be015
add esp, 4
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 1
push 0
push dword [edi + 8]
call ebx
test eax, eax
jne 0x499a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x499ad2
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add eax, dword [edi + 0x1c]
push eax
mov dword [ecx], eax
call fcn.004bc57c
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push 0
push eax
call fcn.004c1b90
mov eax, dword [edi + 0x1c]
push eax
push dword [edi + 0x18]
push eax
push dword [esi]
call fcn.004be141
mov eax, dword [ebp - 0x14]
mov esi, dword [esi]
add esi, dword [edi + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push esi
call fcn.004be141
add esp, 0x30
lea eax, [ebp - 0x1c]
push dword [ebp - 0x18]
push eax
push esi
push 0
push 1
push 0
push dword [edi + 8]
call ebx
test eax, eax
jne 0x499ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x499ad2
xor esi, esi
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x499af5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x499b16
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.004bd963
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49a520
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6e8b
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x529748]
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 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.004bc57c
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.004c1b90
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.004be141
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 0x49a5be
push esi
call fcn.004be903
mov ecx, dword [ebp - 0x18]
add esp, 4
call fcn.004155a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49a63d
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.0049b520
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x120]
test edx, edx
jne 0x49a5f7
xor ecx, ecx
jmp 0x49a60f
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49a600
sub ecx, edi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x18]
push edx
call fcn.0048ded0
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x49a632
push eax
call fcn.004be015
add esp, 4
push esi
call fcn.004be903
add esp, 4
xor eax, eax
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.004bd963
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49a660
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7ec8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x529748]
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 dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0xc]
push 0
push 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push ecx
push 0
push 1
push dword [eax - 0xc]
push eax
call esi
test eax, eax
jne 0x49a6c8
mov ecx, edi
call fcn.004155a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49a735
push dword [ebp - 0x14]
call fcn.004bc57c
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.004c1b90
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 0x49a712
push ebx
call fcn.004be903
add esp, 4
mov ecx, edi
call fcn.004155a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49a735
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.0049a520
mov esi, eax
test esi, esi
je 0x49a72c
mov ecx, edi
call fcn.004155a0
push ebx
call fcn.004be903
add esp, 4
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49a759
mov ecx, dword [edi]
push edi
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.004bd963
mov esp, ebp
pop ebp
ret 8
Function at 0x49ae40
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8088
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x529748]
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 ebx, ecx
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49af7e
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x49af7e
push esi
call fcn.004bc57c
add esp, 4
mov edi, eax
push edi
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x49af65
mov edx, str.GxI7MC84MhIzPT0bODEC2NweXJkdjVgGRw5Pyk0JDUZJzQlPDs0
lea ecx, [ebp - 0x28]
call fcn.0049c660
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x49aee3
push str.invalid_vector_T__subscript
call fcn.004bc548
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov byte [ebp - 4], 0
mov esi, eax
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x49af09
push ecx
call fcn.004191e0
add esp, 4
test esi, esi
jne 0x49af58
mov edx, str.GxI7MC84MhIzPT0bODEC2N0eXtkcmcyGRw5Pyk0JDUZJzQlPDs0
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x28]
call fcn.0049c660
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x49af36
push str.invalid_vector_T__subscript
call fcn.004bc548
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00415770
test esi, esi
je 0x49af65
push dword [ebp - 0x14]
mov ecx, ebx
push dword [ebp - 0x1c]
call fcn.0048ded0
cmp dword [ebp - 0x18], 0
je 0x49af75
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004be903
add esp, 4
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49afa2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x49cac0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8190
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x529748]
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, edx
mov esi, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0
je 0x49cb43
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.0048eb00
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x20219
jmp 0x49cb48
mov eax, 0x20219
push eax
push edi
push dword [esi]
lea ecx, [ebp - 0x20]
call fcn.0049c070
mov esi, eax
test esi, esi
jne 0x49cca2
xor edi, edi
mov dword [ebp - 0x2c], 0x400
mov dword [ebp - 0x30], edi
call fcn.00415c00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x49cb86
push 0x80004005
call fcn.004162a0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x20]
lea ebx, [ebx]
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x49cc69
mov edi, dword [ebp - 0x2c]
test edi, edi
js 0x49cc5f
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x49cbeb
push edi
lea ecx, [ebp - 0x14]
call fcn.00415500
mov esi, dword [ebp - 0x14]
cmp edi, dword [esi - 8]
jg 0x49cc5f
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [esi - 8]
push esi
call fcn.004bf579
add esp, 8
test eax, eax
js 0x49cc5f
cmp eax, dword [esi - 8]
jg 0x49cc5f
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
push eax
call fcn.004963a0
push 0
push 0x5134d8
lea ecx, [ebp - 0x14]
call fcn.0048ded0
mov esi, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0x400
jmp 0x49cba0
push 0x80070057
call fcn.004162a0
test ebx, ebx
je 0x49cc79
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
add esi, 0xfffffff0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49cc9e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x49cca5
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x49ccb0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.004bd963
mov esp, ebp
pop ebp
ret
Function at 0x49f3b0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x529748]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0xf0000000
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push dword [esi + 8]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x49f444
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [esi + 4]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x49f444
push 0
push dword [ebp + 0xc]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x49f444
push 0
lea eax, [esi + 0xc]
push eax
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x49f444
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0xc]
jmp 0x49f45c
mov eax, dword [ebp - 8]
test eax, eax
je 0x49f452
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49f462
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bd963
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49f4c0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f83f9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x529748]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea esi, [edi + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [edi], 0x513538
mov dword [edi + 4], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 2
mov dword [edi + 0x30], ecx
push ecx
lea ecx, [ebp - 0x24]
mov dword [edi + 0x2c], 0x40
call fcn.00496250
mov ebx, eax
cmp esi, ebx
je 0x49f5b1
mov eax, dword [esi]
test eax, eax
je 0x49f58d
push eax
call fcn.004191e0
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x49f5c5
push eax
call fcn.004191e0
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
jne 0x49f5d8
push str.invalid_vector_T__subscript
call fcn.004bc548
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push ecx
call fcn.004c1c20
add esp, 0xc
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 0x10
Function at 0x49fbe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
jne 0x49fbf8
mov eax, dword [esi]
call dword [eax + 4]
mov byte [esi + 0x18], 1
mov edi, dword [ebp + 0xc]
xor edx, edx
test edi, edi
je 0x49fc1b
mov esi, dword [esi + 0xc]
mov eax, dword [ebp + 8]
movzx ecx, byte [edx + eax]
inc edx
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [esi + ecx*4]
cmp edx, edi
jb 0x49fc04
pop edi
xor ebx, 0x55
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x4a2700
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8918
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x529748]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x4a27a2
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 4
cmove eax, eax
dec eax
je 0x4a274d
dec eax
je 0x4a2745
lea eax, [ecx + 4]
jmp 0x4a2753
mov eax, dword [ecx + 0x24]
add eax, 0x20
jmp 0x4a2753
mov eax, dword [ecx + 0x24]
add eax, 0x1c
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a27a2
mov edx, 0x513a44
lea ecx, [ebp - 0x18]
call fcn.004a4780
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
jne 0x4a2786
push str.invalid_vector_T__subscript
call fcn.004bc548
push 4
push esi
push ecx
mov ecx, dword [esi + 0x10]
call fcn.00493b30
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a27a2
push eax
call fcn.004191e0
add esp, 4
xor eax, eax
cmp byte [esi + 8], al
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a63f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6b38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x529748]
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 dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x30], edi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.0048eb00
neg eax
lea ecx, [ebp - 0x20]
sbb eax, eax
and eax, 0xffffff00
add eax, 0x20219
push eax
push dword [ebp - 0x14]
push dword [edi]
call fcn.0049c070
mov edi, eax
test edi, edi
je 0x4a6499
mov esi, dword [ebp - 0x20]
jmp 0x4a651b
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x28]
push 0
push esi
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4a6503
push dword [ebp - 0x24]
mov ecx, ebx
call fcn.00415880
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
jne 0x4a64d2
push str.invalid_vector_T__subscript
call fcn.004bc548
lea eax, [ebp - 0x24]
push eax
push ecx
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4a6503
test esi, esi
je 0x4a659e
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call eax
xor esi, esi
jmp 0x4a65af
test esi, esi
je 0x4a6514
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
cmp byte [ebp + 0x14], 0
jne 0x4a65af
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
push 0x20219
push dword [ebp - 0x14]
push dword [eax]
call fcn.0049c070
mov esi, dword [ebp - 0x20]
mov edi, eax
test edi, edi
jne 0x4a65af
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4a65a2
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.00415880
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
jne 0x4a6579
push str.invalid_vector_T__subscript
call fcn.004bc548
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4a65a2
lea ecx, [ebp - 0x20]
call fcn.0049c040
mov esi, dword [ebp - 0x20]
xor edi, edi
jmp 0x4a65af
test esi, esi
je 0x4a65ba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test esi, esi
je 0x4a65ba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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.004bd963
mov esp, ebp
pop ebp
ret