joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ee50
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e780
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x55d3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x48ef99
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x48ef99
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48ef99
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x48ef99
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x48ef85
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x48ef7e
cmp dword [ebp - 0x1c], ebx
jne 0x48ef7e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x48ef1d
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x48ef17
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x48ef29
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.004131b0
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.004589ef
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x48ef7e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 0x4a12b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520570
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x55d3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.004a19d0
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.004a1be0
add esp, 0x18
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a131e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x14], 0
je 0x4a134f
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a134f
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x524b7c
call fcn.0041c620
jmp 0x4a135d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00416bd0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4a137c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a1be0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520780
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x55d3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4a1cf9
cmp dword [ebp + 0x10], 0
je 0x4a1cf9
call fcn.0040f5e0
mov ecx, eax
test ecx, ecx
je 0x4a1d49
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
mov dword [ebp - 4], 1
jge 0x4a1c5e
push 0x105
lea ecx, [ebp + 0xc]
call fcn.00411b90
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.004e72cb
add esp, 8
test eax, eax
js 0x4a1d53
cmp eax, dword [esi - 8]
jg 0x4a1d53
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp + 0x14], ecx
je 0x4a1ce9
push ecx
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a1ce9
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x524b7c
call fcn.0041c620
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a1cd6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00416bd0
jmp 0x4a1cb7
call fcn.0040f5e0
mov ecx, eax
test ecx, ecx
je 0x4a1d5d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x524b7c
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00425bd0
test al, al
jne 0x4a1d36
push 0
push 0x524b7c
mov ecx, esi
call fcn.00412010
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407af0
push 0x80070057
call fcn.00407af0
push 0x80004005
call fcn.00407af0
int3
Function at 0x4a22c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x41c], str.6.0.0.0
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x418], 7
push eax
mov dword [ebp - 0x43c], 0x532f08
mov dword [ebp - 0x440], str.Microsoft.Windows.Common_Controls
mov dword [ebp - 0x438], str.6595b64144ccf1df
call fcn.004a25f0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bc5f0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004a2690
push str.comctl32.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e8a86
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4a2399
push str.InitCommonControlsEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a2399
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 8
push ecx
mov dword [ebp - 0x418], 4
call eax
test eax, eax
jne 0x4a2411
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004bc5f0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x532e90
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4a2411
push str.InitCommonControlsEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a2411
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 8
push ecx
mov dword [ebp - 0x418], 4
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dd9
mov esp, ebp
pop ebp
ret
Function at 0x4a2bc0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004bc5f0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bc5f0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004bc5f0
push 0x250
lea eax, [ebp - 0x86c]
push 0
push eax
call fcn.004bc5f0
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, 0x5885f8
lea esi, [ebp - 0x20c]
mov edx, 0x104
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4a2c7e
movzx eax, word [esi + ecx]
test ax, ax
je 0x4a2c7e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4a2c60
lea eax, [ecx - 2]
test edx, edx
push 0x104
cmovne eax, ecx
xor ecx, ecx
push 0x5885f8
mov word [eax], cx
call fcn.004c7b6f
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 8
push str..dll
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a2d84
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop
test dword [ebp - 0x86c], 0xffffffef
je 0x4a2d64
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004bc5f0
add esp, 0xc
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.00451a20
add esp, 4
test eax, eax
jne 0x4a2d53
mov esi, 0x55e450
lea eax, [ebp - 0x840]
push eax
push dword [esi]
call fcn.004e6962
add esp, 8
test eax, eax
je 0x4a2d53
add esi, 4
cmp esi, 0x55e458
jl 0x4a2d31
jmp 0x4a2d64
lea eax, [ebp - 0x840]
mov ecx, 0x588804
push eax
call fcn.004a4150
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x4a2ce0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push 0x104
push 0x5883f0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
pop edi
pop esi
test eax, eax
je 0x4a2dda
push str.NtOpenFile
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x588800], eax
test eax, eax
je 0x4a2dda
push 0x4a2df0
push 0x588800
call fcn.004a3450
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475dd9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00475dd9
mov esp, ebp
pop ebp
ret
Function at 0x4a3880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [0x588828], edi
jne 0x4a38b5
push 0x58882c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x588828], 1
push 0x58882c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x588844]
test esi, esi
je 0x4a399e
mov eax, dword [ebx]
cmp dword [esi + 8], eax
je 0x4a38e1
mov esi, dword [esi + 0x70]
test esi, esi
jne 0x4a38d0
jmp 0x4a399e
test esi, esi
je 0x4a399e
push dword [esi + 4]
push dword [esi]
call fcn.004a3ac0
add esp, 8
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
push eax
push 0x40
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4a3999
mov eax, dword [esi + 4]
xor ecx, ecx
mov edx, dword [esi]
test eax, eax
je 0x4a3931
nop dword [eax]
mov al, byte [esi + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
mov eax, dword [esi + 4]
cmp ecx, eax
jb 0x4a3920
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov edi, 1
mov dword [ebx], eax
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x4a3968
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x70], eax
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4a3975
mov eax, dword [esi + 0x6c]
mov dword [ecx + 0x6c], eax
cmp dword [0x588844], esi
jne 0x4a3985
mov eax, dword [esi + 0x70]
mov dword [0x588844], eax
dec dword [0x58884c]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
call fcn.004a39c0
push 0x58882c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475dd9
mov esp, ebp
pop ebp
ret

Function at 0x4a39c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x588854], esi
jbe 0x4a3a16
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x588850]
push dword [eax + esi*4]
call ebx
mov eax, dword [0x588850]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x588854]
jb 0x4a39f4
pop ebx
push dword [0x588850]
call fcn.004e6ad7
add esp, 4
mov dword [0x588850], 0
mov dword [0x588854], 0
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a3f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [eax], 0
je 0x4a3fb2
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, 0x7fed7fed
mov dword [ebp + 8], 0xeeeeeeee
movzx eax, word [ebx]
test ax, ax
je 0x4a3fa8
shl dword [ebp + 0xc], 8
push esi
nop dword [eax]
push eax
call fcn.004f82e8
movzx esi, ax
lea ebx, [ebx + 2]
mov eax, dword [ebp + 0xc]
xor edx, edx
add eax, esi
add edi, dword [ebp + 8]
mov ecx, 0x500
add esp, 4
div ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 4]
xor edi, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov ecx, eax
shl ecx, 5
add eax, 3
add ecx, esi
add eax, ecx
movzx ecx, word [ebx]
add eax, edi
mov dword [ebp + 8], eax
mov eax, ecx
test cx, cx
jne 0x4a3f60
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4b4860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor al, al
push edi
xor edi, edi
test esi, esi
je 0x4b4927
push ebx
mov ecx, dword [ebp + 8]
mov dl, byte [edi + ecx]
xor dl, al
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
movzx ecx, cl
xor al, 0x8c
and bl, 1
movzx eax, al
cmove eax, ecx
inc edi
cmp edi, esi
jb 0x4b4875
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4b6130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520b33
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x55d3e4]
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, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x583b4c]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004b6020
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x4b6311
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004bc5f0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x537f2c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b6311
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x4b6205
cmp eax, 2
jne 0x4b6311
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4b6226
test cl, 1
jne 0x4b6311
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4b622c
jmp 0x4b6311
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4b6311
call fcn.0040f5e0
mov ecx, eax
test ecx, ecx
je 0x4b633c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.004b42d0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x537f34
push eax
call fcn.004081b0
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.004b4860
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x4b62f5
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4b6296
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.004b6390
push dword [0x583b54]
lea eax, [ebp - 0x74]
push dword [0x583b50]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4b62d2
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b62ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4b6313
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b6311
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x4b631e
push edi
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.00475dd9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407af0
int3
Function at 0x4b6500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520b68
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x55d3e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x583b4c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004b6020
test eax, eax
je 0x4b6628
mov esi, dword [ebp - 0x18]
mov edi, dword [str.SOFTWAREComMaster]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x4b65d3
cmp dword [esi], 0
je 0x4b65c6
push 0x537de0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4b6593
mov eax, 1
jmp 0x4b65f4
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b65cc
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x4b65f4
cmp dword [esi + 4], 0
jne 0x4b65d3
mov eax, 1
jmp 0x4b65f4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4b661e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4b6606
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x4b662b
xor ebx, ebx
jmp 0x4b66cf
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x4b66cf
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4b6688
mov ecx, dword [ebx]
test ecx, ecx
je 0x4b66ee
push ecx
push eax
call fcn.004e6962
add esp, 8
test eax, eax
je 0x4b6688
mov edx, dword [edi]
test edx, edx
je 0x4b6688
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b6660
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x4b6693
lea eax, [edx + 0xd]
jmp 0x4b66c8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b66a0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x537f2c
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x4b66da
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407af0
int3
Function at 0x4b7f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b7f81
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4b7f4f
cmp eax, 2
jne 0x4b7f6b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4b7f7b
test ecx, ecx
je 0x4b7f76
test cl, 1
jne 0x4b7f6b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4b7f7b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc