joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x418cc0
movzx eax, word [esi]
cmp eax, 0x5c
je 0x418bf3
cmp eax, 0x2f
je 0x418bf3
push eax
call fcn.00480be0
add esp, 4
test eax, eax
je 0x418cc0
cmp word [esi + 2], 0x3a
jne 0x418cc0
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x418bf3
cmp eax, 0x2f
jne 0x418cc0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418cb2
test al, 0x50
jne 0x418cb2
push ebx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x418c38
push 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
xor ecx, ecx
mov dword [esp + 0xc], edi
cmp dword [esp + 0x1c], ecx
lea eax, [esp + 0xc]
cmove eax, ecx
push eax
push esi
call fcn.004196a0
add esp, 8
test eax, eax
je 0x418c85
cmp dword [esp + 0x1c], edi
je 0x418c70
cmp dword [esp + 0xc], edi
jne 0x418c70
push 0x80092009
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x418c85
mov eax, dword [esp + 0x18]
and eax, 0xffffe8f7
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test ebx, ebx
je 0x418c9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x418c31
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ecx
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x418e80
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4d7798]
test eax, eax
jne 0x418ea4
push eax
push str.crypt32.dll
call fcn.004162d0
add esp, 8
mov dword [0x4d7798], eax
test eax, eax
je 0x4190b4
cmp dword [0x4d7808], 0
jne 0x418ece
push 0
push str.wintrust.dll
call fcn.004162d0
add esp, 8
mov dword [0x4d7808], eax
test eax, eax
je 0x4190b4
mov eax, dword [0x4d7798]
cmp dword [0x4d77b4], 0
jne 0x418ef5
push str.CertGetNameStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77b4], eax
test eax, eax
je 0x4190b4
mov eax, dword [0x4d7798]
cmp dword [0x4d77b8], 0
jne 0x418f1c
push str.CryptDecodeObjectEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77b8], eax
test eax, eax
je 0x4190b4
mov eax, dword [0x4d7798]
cmp dword [0x4d77a4], 0
jne 0x418f43
push str.CertFreeCertificateContext
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77a4], eax
test eax, eax
je 0x4190b4
mov eax, dword [0x4d7798]
cmp dword [0x4d77a8], 0
jne 0x418f6a
push str.CertFindCertificateInStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77a8], eax
test eax, eax
je 0x4190b4
mov eax, dword [0x4d7798]
cmp dword [0x4d77bc], 0
jne 0x418f91
push str.CertGetIssuerCertificateFromStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77bc], eax
test eax, eax
je 0x4190b4
mov eax, dword [0x4d7798]
cmp dword [0x4d77ac], 0
jne 0x418fb8
push str.CryptMsgGetParam
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77ac], eax
test eax, eax
je 0x4190b4
mov eax, dword [0x4d7798]
cmp dword [0x4d77b0], 0
jne 0x418fdf
push str.CryptQueryObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77b0], eax
test eax, eax
je 0x4190b4
mov eax, dword [0x4d7798]
cmp dword [0x4d779c], 0
jne 0x419006
push str.CryptMsgClose
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d779c], eax
test eax, eax
je 0x4190b4
mov eax, dword [0x4d7798]
cmp dword [0x4d77a0], 0
jne 0x419028
push str.CertCloseStore
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77a0], eax
test eax, eax
je 0x4190b4
cmp dword [0x4d780c], 0
jne 0x41904b
push str.WinVerifyTrust
push dword [0x4d7808]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d780c], eax
test eax, eax
je 0x4190b4
cmp dword [0x4d7810], 0
jne 0x41906e
push str.WTHelperProvDataFromStateData
push dword [0x4d7808]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d7810], eax
test eax, eax
je 0x4190b4
cmp dword [0x4d7818], 0
jne 0x419091
push str.WTHelperGetProvCertFromChain
push dword [0x4d7808]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d7818], eax
test eax, eax
je 0x4190b4
cmp dword [0x4d7814], 0
jne 0x4190b7
push str.WTHelperGetProvSignerFromChain
push dword [0x4d7808]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d7814], eax
test eax, eax
jne 0x4190b7
xor eax, eax
ret
mov eax, 1
ret
Function at 0x41a560
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4e0e
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4d57fc]
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, dword [ebp + 0xc]
mov eax, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0
cmp dword [edi + 0x14], 8
jb 0x41a5a5
mov eax, dword [edi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], 1
test ebx, ebx
je 0x41a65d
lfence
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
ja 0x41a5fc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41a5f1
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [eax + ebx*2], cx
jmp 0x41a60d
mov eax, ebx
sub eax, ecx
mov ecx, esi
push 0
push eax
lfence
call fcn.0041b040
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41a617
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41a61f
mov edi, dword [edi]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [esi + 0x10]
mov ecx, esi
dec eax
cmp dword [esi + 0x14], 8
jb 0x41a636
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
xor edx, edx
mov word [ecx + eax*2], dx
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.00461564
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041b490
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push str.ExpandEnvironmentStringsW_failed__error:
push eax
call fcn.00419ce0
add esp, 0x14
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.0041a290
push 0x4ce944
lea eax, [ebp - 0x54]
push eax
call fcn.00463df0
int3

Function at 0x41a970
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4d57fc]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x41a9f3
push 0x228
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004638a0
add esp, 0xc
mov dword [esp + 8], 0x22c
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41a9ec
push edi
mov edi, dword [esp + 0x240]
nop dword [eax]
cmp dword [esp + 0x14], edi
je 0x41a9e7
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41a9d0
jmp 0x41a9eb
mov ebx, dword [esp + 0x24]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
call fcn.00461564
add esp, 0x230
ret
Function at 0x41aa80
Capabilities:
Get session user name

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
je 0x41aaa7
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41aaa7
mov dword [esp], ecx
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 1
sete al
pop ecx
ret
xor al, al
pop ecx
ret

Function at 0x41aab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
xor bl, bl
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41aacf
mov ebx, eax
shr ebx, 4
and bl, 1
jmp 0x41aad7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [esp + 0x10]
mov al, bl
test ecx, ecx
je 0x41aae3
mov dword [ecx], esi
pop esi
pop ebx
ret

Function at 0x41da80
Capabilities:
Create directory

Disassembly:
sub esp, 0x20
mov eax, dword [0x4d57fc]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov esi, 1
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x14], esi
push ebp
push eax
call fcn.0041edd0
add esp, 0xc
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41dada
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41db74
cmp dword [ebp + 0x14], 8
mov eax, ebp
jb 0x41dae5
mov eax, dword [ebp]
cmp dword [esp + 0x28], 8
lea edi, [esp + 0x14]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
cmovae edi, ebx
cmp ecx, dword [ebp + 0x10]
jne 0x41db36
test ecx, ecx
je 0x41dbc1
movzx edx, word [edi]
movzx esi, word [eax]
cmp dx, si
jb 0x41db32
sub edi, eax
cmp dx, si
ja 0x41db32
cmp ecx, 1
je 0x41dbc1
movzx edx, word [edi + eax + 2]
add eax, 2
dec ecx
movzx esi, word [eax]
cmp dx, si
jae 0x41db16
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x41db6e
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41db64
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dc0a
push ecx
push ebx
call fcn.00461556
add esp, 8
inc esi
jmp 0x41da9b
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x41dbac
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41dba2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dc0a
push edx
push ecx
call fcn.00461556
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00461564
add esp, 0x20
ret
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x41dbf5
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x41dbeb
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41dc0a
push ecx
push ebx
call fcn.00461556
add esp, 8
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00461564
add esp, 0x20
ret
call fcn.0046d841
int3
Function at 0x4240b0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x4d57fc]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
lea ecx, [esp]
push esi
mov esi, dword [esp + 0x30]
push ecx
push 0x20019
push eax
mov dword [esp + 0x10], 0
call fcn.004270e0
add esp, 0xc
test eax, eax
jne 0x424196
cmp dword [esi + 0x14], 8
jb 0x4240f1
mov esi, dword [esi]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x3c]
push 0
or eax, 0x2001f
push eax
push 0
push 0
push 0
push esi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push dword [esp + 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x424196
mov ax, word [0x4be4c4]
movups xmm0, xmmword [0x4be4b4]
mov word [esp + 0x20], ax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 8]
mov dword [esp + 8], esi
push eax
push esi
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 4
push eax
push esi
push dword [esp + 0x20]
movups xmmword [esp + 0x2c], xmm0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 4], esi
je 0x424196
mov al, 1
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00461564
add esp, 0x24
ret
mov ecx, dword [esp + 0x24]
xor al, al
pop esi
xor ecx, esp
call fcn.00461564
add esp, 0x24
ret
Function at 0x425ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5be0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d57fc]
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
cmp dword [edi + 0x114], 0
mov dword [edi], vtable.DirectoryListenerWin32.0
je 0x425dba
movaps xmm0, xmmword [str.DirectoryListen_f]
lea eax, [ebp - 0x2c]
push str.Waiting_for_the_listener_thread_to_finish...
push 3
push 0x66
push eax
push dword [edi + 0x10c]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x69577265
mov dword [ebp - 0x18], 0x2e32336e
mov dword [ebp - 0x14], 0x707063
call fcn.0041e8a0
add esp, 0x14
push 0xffffffffffffffff
push dword [edi + 0x114]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm0, xmmword [str.DirectoryListen_f]
lea eax, [ebp - 0x48]
push str.Listener_thread_finished...
push 3
push 0x6a
push eax
push dword [edi + 0x10c]
mov dword [edi + 0x114], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x69577265
mov dword [ebp - 0x34], 0x2e32336e
mov dword [ebp - 0x30], 0x707063
call fcn.0041e8a0
add esp, 0x14
mov eax, dword [edi + 4]
test eax, eax
je 0x425dcf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov eax, dword [edi + 0x118]
test eax, eax
je 0x425dea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x118], 0
xor ebx, ebx
cmp dword [edi + 0x108], ebx
jbe 0x425e11
lea esi, [edi + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov dword [esi], 0
lea esi, [esi + 4]
inc ebx
cmp ebx, dword [edi + 0x108]
jb 0x425df7
mov ebx, dword [edi + 0x120]
or eax, 0xffffffff
test ebx, ebx
je 0x425e55
lock xadd dword [ebx + 4], eax
jne 0x425e52
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4b9328]
mov ecx, ebx
call esi
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [ebx + 8], eax
jne 0x425e52
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4b9328]
mov ecx, ebx
call esi
or eax, 0xffffffff
mov ebx, dword [edi + 0x110]
test ebx, ebx
je 0x425e92
lock xadd dword [ebx + 4], eax
jne 0x425e92
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4b9328]
mov ecx, ebx
call esi
or ecx, 0xffffffff
lock xadd dword [ebx + 8], ecx
dec ecx
jne 0x425e92
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4b9328]
mov ecx, ebx
call esi
mov dword [edi], vtable.DirectoryListenerBase.0
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.00461564
mov esp, ebp
pop ebp
ret
Function at 0x42a420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6205
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4d57fc]
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 esi, ecx
cmp dword [esi + 0xc], 0
mov dword [ebp - 0x48], esi
jne 0x42a588
push 0
push 0
lea eax, [esi + 0x48]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004325f0
lea eax, [esi + 0x10]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004593a0
add esp, 0x18
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push dword [ebp - 0x4c]
push 1
push dword [ebp - 0x1c]
push eax
call fcn.0049086f
mov edx, dword [ebp - 0x18]
add esp, 0x10
cmp edx, 0x10
jb 0x42a4d9
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42a4cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a5a6
push edx
push ecx
call fcn.00461556
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 2
test eax, eax
je 0x42a507
mov esi, dword [ebp - 0x50]
mov ecx, esi
push eax
call dword [0x4b9328]
call esi
add esp, 4
mov al, 1
jmp 0x42a58a
xor al, al
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.00461564
mov esp, ebp
pop ebp
ret
call fcn.0046d841
int3
Function at 0x42c980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b65b5
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4d57fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0
mov eax, dword [ebp + 8]
je 0x42caeb
xor ecx, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.0042d3a0
add esp, 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x78], 4
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push edx
cmovae eax, dword [ebp - 0x40]
lea edx, [ebp - 0x74]
push edx
push 0
push 0x10
push ecx
push eax
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x42cb0c
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x74]
cmp edx, 8
jb 0x42ca7f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ca75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42cb53
push edx
push ecx
call fcn.00461556
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x42cacd
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42cac3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42cb53
push edx
push ecx
call fcn.00461556
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461564
mov esp, ebp
pop ebp
ret 4
push str.Registry_root_key_handle_is_null
lea ecx, [ebp - 0x84]
call fcn.0041ce80
push 0x4ce944
lea eax, [ebp - 0x84]
push eax
call fcn.00463df0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b490
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push str.Failed_to_read_registry_value__error
push eax
call fcn.00419ce0
add esp, 0x14
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0041a290
push 0x4ce944
lea eax, [ebp - 0x90]
push eax
call fcn.00463df0
call fcn.0046d841
int3
Function at 0x42d700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6735
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4d57fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc], 0
mov eax, dword [ebp + 8]
jne 0x42d89f
cmp dword [esi + 0x14], 0
jne 0x42d748
push str.Registry_root_key_handle_is_null
jmp 0x42d8a4
xor ecx, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.0042d3a0
add esp, 0xc
lea edx, [ebp + 0xc]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push 4
cmovae eax, dword [ebp - 0x40]
push edx
push 4
push ecx
push eax
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x42d7ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b490
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push str.Failed_to_set_registry_key_value__error:
push eax
call fcn.00419ce0
add esp, 0x14
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0041a290
push 0x4ce944
lea eax, [ebp - 0x88]
jmp 0x42d8b4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42d839
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d82f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d8ba
push edx
push ecx
call fcn.00461556
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x42d883
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d879
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d8ba
push edx
push ecx
call fcn.00461556
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461564
mov esp, ebp
pop ebp
ret 8
push str.Storage_is_not_in_write_mode
lea ecx, [ebp - 0x7c]
call fcn.0041ce80
push 0x4ce944
lea eax, [ebp - 0x7c]
push eax
call fcn.00463df0
call fcn.0046d841
int3
Function at 0x42d8c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6785
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4d57fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jne 0x42da6d
cmp dword [edi + 0x14], 0
jne 0x42d90c
push str.Registry_root_key_handle_is_null
jmp 0x42da72
xor ecx, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.0042d3a0
mov edx, dword [esi + 0x10]
add esp, 0xc
add edx, edx
cmp dword [esi + 0x14], 8
jb 0x42d95d
mov esi, dword [esi]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push edx
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push esi
cmovae eax, dword [ebp - 0x40]
push 1
push ecx
push eax
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x42d9cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b490
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push str.Failed_to_set_registry_key_value__error:
push eax
call fcn.00419ce0
add esp, 0x14
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0041a290
push 0x4ce944
lea eax, [ebp - 0x88]
jmp 0x42da82
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42da06
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d9fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42da88
push edx
push ecx
call fcn.00461556
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x42da50
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42da46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42da88
push edx
push ecx
call fcn.00461556
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461564
mov esp, ebp
pop ebp
ret 8
push str.Storage_is_not_in_write_mode
lea ecx, [ebp - 0x7c]
call fcn.0041ce80
push 0x4ce944
lea eax, [ebp - 0x7c]
push eax
call fcn.00463df0
call fcn.0046d841
int3