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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
mov esi, 0x114
mov dword [ebp - 0x14c], eax
push esi
push eax
mov edi, eax
mov dword [ebp - 0x148], eax
mov ebx, eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x138]
push eax
call fcn.0046e5c0
add esp, 0xc
mov dword [ebp - 0x138], esi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
lea eax, [ebp - 0x13c]
push eax
cmovne edi, dword [ebp - 0x134]
cmovne ebx, dword [ebp - 0x130]
and dword [ebp - 0x13c], 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42d55c
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x1c], str.EnableLUA
mov dword [ebp - 0x10], eax
xor esi, esi
lea eax, [ebp - 0x148]
mov dword [ebp - 0x18], str.EnableVirtualization
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x14], str.EnableInstallerDetection
mov dword [ebp - 8], eax
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 4
push eax
push dword [ebp + esi - 0x10]
push 0
push 0
push dword [ebp + esi - 0x1c]
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esi, 4
cmp esi, 0xc
jl 0x42d52b
cmp dword [ebp - 0x13c], 0
je 0x42d571
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x140]
call fcn.0043313b
mov ecx, dword [ebp - 0x140]
lea edx, [ebp - 0x144]
and ecx, 0xf000
call fcn.004331e6
cmp dword [ebp - 0x144], 0
mov eax, 0x4a60b4
cmovne eax, dword [ebp - 0x144]
push eax
push dword [ebp - 0x140]
push dword [ebp - 0x150]
push dword [ebp - 0x148]
push dword [ebp - 0x14c]
push ebx
push edi
push str.logSecurityInfo_n_t_t_tOS_ver__d._d__n_t_t_tlua_d__virtualization_d__inst_detect_d__n_t_t_tintegrity_level_0x_.8X___s__n
call fcn.0042d2c9
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret
Function at 0x42e52f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push str._t_createProcess:_..._n
mov dword [ebp - 0x34], esi
call fcn.0042d2c9
push 0x44
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0046e5c0
mov eax, dword [edi + 0x1c]
lea ecx, [ebp - 0x18]
add esp, 0x10
mov dword [ebp - 0x64], eax
lea eax, [edi + 4]
mov dword [ebp - 0x90], 0x44
mov dword [ebp - 0x1c], str.CreateProcess
push eax
call fcn.00438449
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x42e5a3
call fcn.0043fcdc
mov dword [ebp - 0x20], eax
xor edx, edx
jmp 0x42e5aa
xor edx, edx
mov eax, edx
mov dword [ebp - 0x20], edx
cmp dword [edi], edx
je 0x42e5fb
cmp dword [esi + 0x34], edx
jne 0x42e5bd
push 0x4a7dcc
jmp 0x42e6b8
push str._tusing_token_n
call fcn.0042d23a
mov esi, dword [edi]
lea eax, [ebp - 0x30]
pop ecx
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x1c], str.CreateProcessWithTokenW
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push 0
push 0
push 1
call fcn.0043ad6d
push eax
mov eax, dword [ebp - 0x34]
push 0
push 0
push esi
call dword [eax + 0x34]
jmp 0x42e621
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push eax
push edx
push edx
push dword [edi + 0x20]
lea ecx, [ebp - 0x18]
push edx
push edx
push 1
call fcn.0043ad6d
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0043b06d
test esi, esi
jne 0x42e664
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x42e640
mov dword [ecx], eax
push 0
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x48]
push eax
call fcn.00436a45
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0043630b
lea ecx, [ebp - 0x48]
call fcn.0043634f
jmp 0x42e6bf
mov ecx, dword [edi + 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ecx, ecx
je 0x42e678
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x42e67d
push dword [ebp - 0x2c]
call esi
cmp dword [edi + 0x30], 0
je 0x42e6a0
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [edi + 0x30]
or dword [eax], 0xffffffff
push dword [edi + 0x30]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x42e6ae
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
jmp 0x42e6b3
push dword [ebp - 0x30]
call esi
push 0x4a4694
mov ecx, ebx
call fcn.004362eb
lea ecx, [ebp - 0x18]
call fcn.00438cda
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret 8
Function at 0x42f369
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xb8], ebx
jne 0x42f39e
push 0x10000000
push ebx
push ebx
push ebx
lea ecx, [edi + 0xcc]
call fcn.0043fcdc
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 0xb8], eax
mov eax, dword [edi + 0xb8]
test eax, eax
jne 0x42f3eb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [edi + 0x1c0]
mov esi, eax
push esi
push dword [ecx + 0x2c]
push dword [edi + 0x1c4]
call fcn.004321ff
add esp, 0xc
lea ecx, [ebp - 0x14]
mov edx, str.InternetOpen
push ebx
push esi
call fcn.00430ef8
pop ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0043630b
lea ecx, [ebp - 0x14]
call fcn.0043634f
jmp 0x42f43e
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [edi + 0x164]
cmp dword [ecx], ebx
je 0x42f403
push 4
push ecx
push 2
push eax
call esi
lea eax, [edi + 0x168]
cmp dword [eax], ebx
je 0x42f41a
push 4
push eax
push 5
push dword [edi + 0xb8]
call esi
lea eax, [edi + 0x16c]
cmp dword [eax], ebx
je 0x42f431
push 4
push eax
push 6
push dword [edi + 0xb8]
call esi
mov ecx, dword [ebp + 8]
push 0x4a4694
call fcn.004362eb
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42f44a
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xbc], ebx
jne 0x42f589
push 0xffffffffffffffff
push str.http
lea eax, [ebp - 0x14]
lea esi, [edi + 0x104]
push eax
mov ecx, esi
call fcn.0043a1af
lea ecx, [ebp - 0x14]
cmp dword [eax + 0xc], 0x3ec
sete bl
call fcn.0043634f
test bl, bl
je 0x42f4a0
and dword [edi + 0xc4], 0xff7fffff
push 0x50
pop eax
jmp 0x42f4db
push 0xffffffffffffffff
push 0x4a5fb8
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0043a1af
lea ecx, [ebp - 0x14]
cmp dword [eax + 0xc], 0x3ec
sete bl
call fcn.0043634f
test bl, bl
je 0x42f563
or dword [edi + 0xc4], 0x800000
mov eax, 0x1bb
movzx ecx, word [edi + 0x140]
test cx, cx
je 0x42f4e9
mov eax, ecx
push edi
xor ebx, ebx
lea ecx, [edi + 0x118]
push ebx
push 3
push ebx
push ebx
push eax
call fcn.0043fcdc
push eax
push dword [edi + 0xb8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi + 0xbc], eax
cmp eax, ebx
jne 0x42f589
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
lea ecx, [edi + 0x118]
push esi
call fcn.0043fcdc
mov ecx, dword [edi + 0x1c0]
push eax
push dword [ecx + 0x30]
push dword [edi + 0x1c4]
call fcn.004321ff
add esp, 0x10
lea ecx, [ebp - 0x14]
mov edx, str.InternetConnect
push ebx
push esi
call fcn.00430ef8
pop ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0043630b
lea ecx, [ebp - 0x14]
call fcn.0043634f
jmp 0x42f596
mov ecx, esi
call fcn.0043fcdc
push eax
mov eax, dword [edi + 0x1c0]
push dword [eax + 0x20]
push dword [edi + 0x1c4]
call fcn.004321ff
add esp, 0xc
push 0x4a7dd8
jmp 0x42f58e
push 0x4a4694
mov ecx, dword [ebp + 8]
call fcn.004362eb
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4306f7
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
call fcn.0043c010
inc dword [ebp - 0xc]
cmp byte [esi + 0xf4], 0
je 0x430725
push 0x4a7dd0
jmp 0x430782
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push dword [ebp + 0xc]
push 0x20000005
push dword [esi + 0xc0]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x43077d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push eax
lea eax, [ebp - 0x24]
push str.HttpQueryInfo
push eax
call fcn.00436a45
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.0043630b
lea ecx, [ebp - 0x24]
call fcn.0043634f
jmp 0x43078a
push 0x4a4694
mov ecx, dword [ebp + 8]
call fcn.004362eb
lea ecx, [ebp - 0x10]
call fcn.004096c9
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x431e0b
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, edx
xor edx, edx
push edx
push 0x80
mov dword [eax], edx
mov esi, edx
mov eax, dword [ebp + 0xc]
push 3
push edx
push 1
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
push 0x80000000
push ecx
mov dword [ebx], edx
mov dword [eax], edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x431e50
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x431eb7
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x431e72
call edi
test eax, eax
jne 0x431eb5
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], esi
ja 0x431ebf
cmp eax, 0x8000000
ja 0x431ebf
mov ecx, dword [ebp + 0x10]
push 0
push eax
push dword [ebp - 4]
mov dword [ecx], eax
push 2
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x431eb5
xor ecx, ecx
push ecx
push ecx
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x431f04
call edi
mov esi, eax
test esi, esi
je 0x431f04
jmp 0x431ec2
push 8
pop esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
and dword [eax], 0
cmp dword [edi], 0
je 0x431edb
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
and dword [edi], 0
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [eax], 0
je 0x431ef3
push dword [eax]
call edi
mov eax, dword [ebp + 8]
and dword [eax], 0
cmp dword [ebx], 0
je 0x431f04
cmp dword [ebx], 0xffffffff
je 0x431f04
push dword [ebx]
call edi
and dword [ebx], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432c31
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], edi
call fcn.00436332
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov ecx, edi
and dword [ebx], 0
call fcn.0043fcdc
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x432ca0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x432c7a
push 0x4a7e68
jmp 0x432ce8
push 0
push eax
push str.GetFileVersionInfoSize
lea eax, [ebp - 0x30]
push eax
call fcn.00436a45
add esp, 0xc
mov ecx, esi
push eax
call fcn.0043630b
lea ecx, [ebp - 0x30]
call fcn.0043634f
jmp 0x432cef
push edi
call fcn.0047245c
mov dword [ebx], eax
pop ecx
test eax, eax
jne 0x432cb4
push 0x4a49d8
jmp 0x432ce8
mov ecx, dword [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call fcn.0043fcdc
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x432ce3
push ebx
call fcn.00432d00
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push eax
push str.GetFileVersionInfo
jmp 0x432c82
push 0x4a4694
mov ecx, esi
call fcn.004362eb
lea ecx, [ebp - 0x1c]
call fcn.0043634f
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432d97
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x228]
push edi
xor edi, edi
push 0x112
push eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x432e49
cmp eax, 0x104
jae 0x432e49
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x432de1
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x22a], 0x5c
je 0x432e11
push 1
lea eax, [ebp - 0x228]
push 0x4a3e38
push eax
call fcn.004734d3
add esp, 0xc
push 0xd
lea eax, [ebp - 0x228]
push 0x4a3b18
push eax
call fcn.004734d3
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x432e49
push str.WinVerifyTrust
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret
Function at 0x43675c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x228], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x22c], eax
xor esi, esi
push edi
lea eax, [ebx - 0x834]
mov edi, 0x1300
cmp eax, 0x383
ja 0x436833
mov esi, 0x105
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x4368c6
cmp eax, esi
ja 0x4368c6
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x224]
call fcn.004389d2
mov esi, 0x4a3e38
lea ecx, [ebp - 0x224]
push esi
call fcn.0043a342
cmp eax, 0x3e8
jne 0x4367f6
push esi
lea ecx, [ebp - 0x224]
call fcn.00438f73
push str.netmsg.dll
lea ecx, [ebp - 0x224]
call fcn.00438f73
push 2
push 0
lea ecx, [ebp - 0x224]
call fcn.0043fcdc
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
lea ecx, [ebp - 0x224]
test esi, esi
mov eax, 0x1b00
cmovne edi, eax
call fcn.00438cda
push 0
push 0
lea eax, [ebp - 0x228]
push eax
push 0x400
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
mov ecx, dword [ebp - 0x228]
mov edi, eax
test ecx, ecx
je 0x43688d
test edi, edi
je 0x4368a3
push 0xd
push ecx
call fcn.0046cd0b
pop ecx
pop ecx
test eax, eax
je 0x43686f
xor ecx, ecx
mov word [eax], cx
push 0xa
push dword [ebp - 0x228]
call fcn.0046cd0b
pop ecx
pop ecx
test eax, eax
je 0x436887
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x228]
test edi, edi
je 0x4368a3
push ecx
mov ecx, dword [ebp - 0x22c]
call fcn.00436d7f
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
test esi, esi
je 0x4368b5
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetSystemDirectory_failed_with_error__u
push 0
push str.ECResult::formatWin32Message__
push 2
call fcn.00404b89
add esp, 0x14
jmp 0x4368b5
Function at 0x43c5d4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], ebx
push eax
call fcn.0043c748
push eax
lea ecx, [ebp - 0x18]
call fcn.0043630b
lea ecx, [ebp - 0x2c]
call fcn.0043634f
lea ecx, [ebp - 0x18]
call fcn.0043fe40
cmp eax, 0x7d1
jl 0x43c642
push ebx
push ebx
push 0x1be
lea eax, [ebp - 0x18]
push str.....RegistryWin32ECClearEntry.cpp
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004069d9
mov ecx, dword [ebp + 8]
add esp, 0x14
push eax
call fcn.0043630b
lea ecx, [ebp - 0x2c]
call fcn.0043634f
jmp 0x43c705
lea ecx, [ebp - 0x18]
call fcn.0043634f
cmp dword [ebp + 0x18], 0xffffffff
jbe 0x43c67e
push ebx
push ebx
push 0x1c0
push str.....RegistryWin32ECClearEntry.cpp
lea eax, [ebp - 0x2c]
push 0x4aa638
push eax
call fcn.00407126
mov ecx, dword [ebp + 8]
add esp, 0x14
push eax
call fcn.0043630b
lea ecx, [ebp - 0x2c]
jmp 0x43c708
cmp dword [ebp + 0x18], 0x800
jbe 0x43c69b
push dword [ebp + 0x18]
push str.SetValue_with_size__Iu_is_not_recommended
push ebx
push ebx
push 2
call fcn.00404b89
add esp, 0x14
mov ecx, dword [ebp + 0xc]
push esi
push dword [ebp + 0x18]
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.0043fcdc
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push eax
lea eax, [ebp - 0x2c]
push str.RegSetValueEx
push eax
call fcn.00436a45
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.0043630b
lea ecx, [ebp - 0x2c]
call fcn.0043634f
lea ecx, [ebp - 0x18]
call fcn.0043fe40
pop esi
cmp eax, 0x7d1
lea eax, [ebp - 0x18]
push ebx
jl 0x43c6fc
push ebx
push 0x1cd
jmp 0x43c61a
mov ecx, dword [ebp + 8]
push eax
call fcn.0043630b
lea ecx, [ebp - 0x18]
call fcn.0043634f
cmp dword [ebp - 4], ebx
je 0x43c71b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43d06b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x34]
push ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], ebx
call fcn.0043d9dd
push eax
lea ecx, [ebp - 0x20]
call fcn.0043630b
lea ecx, [ebp - 0x34]
call fcn.0043634f
cmp dword [ebp - 0x14], 0x7d0
je 0x43d0e1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov dword [eax], ecx
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push eax
call fcn.0043630b
lea ecx, [ebp - 0x20]
call fcn.0043634f
cmp dword [ebp - 4], ebx
je 0x43d1d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43d1d0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push esi
mov esi, dword [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0043fcdc
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43d128
mov ecx, dword [ebp + 0x14]
push 0xc
pop ebx
push 0
push eax
lea eax, [ebp - 0x48]
mov dword [edi], ecx
push str.RegQueryValueEx
push eax
call fcn.00436a45
add esp, 0xc
lea ecx, [ebp - 0x34]
jmp 0x43d169
cmp dword [ebp - 8], 4
je 0x43d14e
cmp dword [ebp - 8], 5
je 0x43d14e
mov ecx, dword [ebp + 8]
push 0x4a8b90
call fcn.004362eb
lea ecx, [ebp - 0x20]
call fcn.0043634f
cmp dword [ebp - 4], ebx
jmp 0x43d1c3
push 3
pop ebx
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x7d0
push eax
lea ecx, [ebp - 0x70]
call fcn.004362eb
lea ecx, [ebp - 0x5c]
push eax
call fcn.0043630b
mov ecx, dword [ebp + 8]
push 0
push eax
call fcn.0043630b
test bl, 8
je 0x43d18a
lea ecx, [ebp - 0x34]
and ebx, 0xfffffff7
call fcn.0043634f
test bl, 4
je 0x43d19a
lea ecx, [ebp - 0x48]
and ebx, 0xfffffffb
call fcn.0043634f
test bl, 2
je 0x43d1aa
lea ecx, [ebp - 0x5c]
and ebx, 0xfffffffd
call fcn.0043634f
test bl, 1
je 0x43d1b7
lea ecx, [ebp - 0x70]
call fcn.0043634f
lea ecx, [ebp - 0x20]
call fcn.0043634f
cmp dword [ebp - 4], 0
je 0x43d1ce
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43d1da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x34]
push edi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.0043d9dd
push eax
lea ecx, [ebp - 0x20]
call fcn.0043630b
lea ecx, [ebp - 0x34]
call fcn.0043634f
cmp dword [ebp - 0x14], 0x7d0
je 0x43d24f
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
call fcn.00438d6a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0043630b
lea ecx, [ebp - 0x20]
call fcn.0043634f
cmp dword [ebp - 4], edi
je 0x43d389
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43d389
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push ebx
push esi
mov esi, dword [ebp - 4]
push eax
push edi
push edi
push edi
call fcn.0043fcdc
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x43d279
cmp esi, 0xea
jne 0x43d2be
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
shr ebx, 1
lea eax, [ebx + 1]
push eax
call fcn.0043ad6d
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
call fcn.0043fcdc
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x10]
mov esi, eax
xor eax, eax
push 0xffffffffffffffff
mov word [edi + ebx*2], ax
call fcn.0043b06d
xor edi, edi
test esi, esi
je 0x43d2e8
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
call fcn.00438d6a
push 0xc
pop ebx
push edi
push esi
lea eax, [ebp - 0x48]
push str.RegQueryValueEx
push eax
call fcn.00436a45
add esp, 0xc
lea ecx, [ebp - 0x34]
jmp 0x43d323
cmp dword [ebp - 8], 1
je 0x43d309
cmp dword [ebp - 8], 2
je 0x43d309
cmp dword [ebp - 8], 7
je 0x43d309
mov ecx, dword [ebp + 8]
push 0x4a8b90
call fcn.004362eb
jmp 0x43d370
push 3
pop ebx
push edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x7d0
push eax
lea ecx, [ebp - 0x70]
call fcn.004362eb
lea ecx, [ebp - 0x5c]
push eax
call fcn.0043630b
mov ecx, dword [ebp + 8]
push edi
push eax
call fcn.0043630b
test bl, 8
je 0x43d343
lea ecx, [ebp - 0x34]
and ebx, 0xfffffff7
call fcn.0043634f
test bl, 4
je 0x43d353
lea ecx, [ebp - 0x48]
and ebx, 0xfffffffb
call fcn.0043634f
test bl, 2
je 0x43d363
lea ecx, [ebp - 0x5c]
and ebx, 0xfffffffd
call fcn.0043634f
test bl, 1
je 0x43d370
lea ecx, [ebp - 0x70]
call fcn.0043634f
lea ecx, [ebp - 0x20]
call fcn.0043634f
cmp dword [ebp - 4], 0
je 0x43d387
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp + 8]
pop edi
mov esp, ebp
pop ebp
ret 0x10