joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fbd0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6978
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040bbd0
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x49fc15
mov eax, dword [edi]
push dword [esi + 0xc]
push eax
lea eax, [ebp - 0x10]
push str.AddTabWebViewCount__group_id:_s_total_size:_d
push eax
call fcn.00407c50
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esi, 8
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.004a0470
mov eax, dword [esi]
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], eax
cmp esi, eax
je 0x49fc65
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x10]
push eax
push edi
call fcn.00436760
test al, al
mov eax, dword [ebp + 8]
je 0x49fc67
mov esi, eax
cmp esi, eax
je 0x49fc8f
mov eax, dword [esi + 0x28]
inc eax
mov dword [esi + 0x28], eax
cmp dword [edi + 0x14], 8
jb 0x49fc7a
mov edi, dword [edi]
push eax
push edi
lea eax, [ebp - 0x10]
push str.AddTabWebViewCount__group_id:_s_count:_d
push eax
call fcn.00407c50
add esp, 0x10
jmp 0x49fcb5
movups xmm0, xmmword [edi]
sub esp, 0x18
mov eax, esp
push str.AddTabWebViewCount__group_id:_s_Not_Found
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x10]
push eax
call fcn.00407c50
add esp, 0x20
mov esi, dword [ebp - 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49fcdf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x49fd00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e69a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x10]
call fcn.0040bbd0
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x49fd49
mov eax, dword [ebx]
push dword [esi + 0xc]
push eax
lea eax, [ebp - 0x10]
push str.DelTabWebViewCount__group_id:_s_total_size:_d
push eax
call fcn.00407c50
mov edi, dword [ebp - 0x10]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esi, 8
lea eax, [ebp - 0x18]
push ebx
push eax
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.004a0470
mov eax, dword [esi]
mov esi, dword [ebp - 0x18]
mov dword [ebp + 8], eax
cmp esi, eax
je 0x49fd9a
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + 0x10]
push eax
push ebx
call fcn.00436760
test al, al
mov eax, dword [ebp + 8]
je 0x49fd9c
mov esi, eax
cmp esi, eax
je 0x49fe5e
mov ecx, dword [esi + 0x28]
mov eax, ebx
dec ecx
mov dword [esi + 0x28], ecx
cmp dword [ebx + 0x14], 8
jb 0x49fdb5
mov eax, dword [ebx]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.DelTabWebViewCount__group_id:_s_count:_d
push eax
call fcn.00407c50
mov edi, dword [ebp - 0x10]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x28], 0
jne 0x49fe5e
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.004a0470
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
cmp esi, eax
je 0x49fe09
lea eax, [esi + 0x10]
push eax
push ebx
call fcn.00436760
test al, al
mov eax, dword [ebp + 8]
je 0x49fe0b
mov esi, eax
cmp esi, eax
je 0x49fe5e
cmp dword [ebx + 0x14], 8
jb 0x49fe17
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x10]
push str.ReleaseMultiTabWebView__group_id:_s
push eax
call fcn.00407c50
mov edi, dword [ebp - 0x10]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
push esi
call fcn.00454600
mov esi, eax
lea ecx, [esi + 0x10]
push ecx
push ebx
call fcn.0049fb70
push 0x2c
push esi
call fcn.004a12e0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x49fe7d
mov ecx, dword [edi]
push edi
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 esp, ebp
pop ebp
ret 4
Function at 0x4a0100
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2128
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x524a60]
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 esi, ecx
cmp dword [esi + 0x10], 0
mov ebx, dword [ebp + 8]
jne 0x4a01b5
lea eax, [ebp - 0x28]
push eax
call fcn.004a01f0
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae edi, dword [ebp - 0x28]
test edi, edi
je 0x4a01ad
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a01ad
push edi
call fcn.004465d0
add esp, 4
test eax, eax
je 0x4a01ad
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4a01ad
push str.GetWebViewFactory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a018f
call eax
mov dword [esi + 0x10], eax
push str.IWebViewToIWebViewEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IsSupportedWebViewEngine
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x18], eax
lea ecx, [ebp - 0x28]
call fcn.004039d0
movq xmm0, qword [esi + 0x10]
mov eax, ebx
movq qword [ebx], xmm0
mov ecx, dword [esi + 0x18]
mov dword [ebx + 8], ecx
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.004a1588
mov esp, ebp
pop ebp
ret 4
Function at 0x4a01f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x208
push 0
push eax
mov dword [ebp - 0x418], edi
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004b1030
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
add esp, 0xc
push str.WebView.dll
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x4a02c1
push str.UtilsWebView.dll
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x4a02c1
push str.LdsWebView.dll
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
xor eax, eax
mov dword [edi + 0x10], 0
lea esi, [ebp - 0x20c]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a02e0
sub esi, ecx
mov ecx, dword [edi + 0x14]
sar esi, 1
mov dword [ebp - 0x418], ecx
cmp esi, ecx
ja 0x4a0326
mov ebx, edi
cmp ecx, 8
jb 0x4a0305
mov ebx, dword [edi]
mov dword [edi + 0x10], esi
lea eax, [ebp - 0x20c]
add esi, esi
push esi
push eax
push ebx
call fcn.004b0ab0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x4a03d4
cmp esi, 0x7ffffffe
ja 0x4a03ee
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x4a0346
mov ebx, Ordinal_1
jmp 0x4a0364
mov edx, ecx
mov eax, Ordinal_1
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4a035c
mov ebx, Ordinal_1
jmp 0x4a0364
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
mov ecx, edi
push eax
call fcn.00406170
mov dword [edi + 0x10], esi
add esi, esi
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x20c]
push esi
mov dword [edi + 0x14], ebx
mov ebx, dword [ebp - 0x41c]
push eax
push ebx
call fcn.004b0530
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [ebp - 0x418]
cmp eax, 8
jb 0x4a03d2
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x4a03c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a03e9
mov eax, edx
push ecx
push eax
call fcn.004a12e0
add esp, 8
mov dword [edi], ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1588
mov esp, ebp
pop ebp
ret 4
call fcn.004b3f79
call fcn.00406150
int3
Function at 0x4a1030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x420]
push eax
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4a1171
cmp eax, 0x104
ja 0x4a1171
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4f171c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4a1122
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a1100
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.004061e0
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x438]
mov dword [esi + 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov word [ebp - 0x438], ax
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
call fcn.004039d0
jmp 0x4a1196
movups xmm0, xmmword [ebp - 0x438]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x428]
movq qword [esi + 0x10], xmm0
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.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x4a30c0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6c29
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x524a60]
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, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov dword [ebp - 0x34], eax
mov word [edi], cx
mov eax, dword [eax + 0x10]
add eax, 5
mov dword [ebp - 4], ecx
push 0x52ae60
push eax
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x2c], eax
call fcn.004a1b67
push dword [ebp - 0x2c]
mov esi, eax
push 0
push esi
call fcn.004b1030
mov eax, dword [ebp - 0x34]
add esp, 0x14
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4a314c
mov eax, dword [eax]
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
push esi
push 1
push ecx
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x4a32b6
test esi, esi
je 0x4a3259
cmp byte [esi], 0
je 0x4a3259
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x34], eax
test eax, eax
jg 0x4a31a5
push 0x4e8ad8
lea ecx, [ebp - 0x4c]
call fcn.004036f0
jmp 0x4a327b
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1b70
mov ecx, eax
add esp, 4
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x4a31da
push 0x4e8ad8
lea ecx, [ebp - 0x4c]
call fcn.004036f0
jmp 0x4a327b
mov eax, dword [ebp - 0x34]
lea eax, [eax*2 + 2]
push eax
push 0
push ecx
call fcn.004b1030
add esp, 0xc
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jg 0x4a3226
push dword [ebp - 0x30]
call fcn.004a1967
add esp, 4
lea ecx, [ebp - 0x4c]
push 0x4e8ad8
call fcn.004036f0
jmp 0x4a327b
mov eax, dword [ebp - 0x30]
xor edx, edx
push eax
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x28]
call fcn.004036f0
push dword [ebp - 0x30]
call fcn.004a1967
add esp, 4
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x4c]
push eax
call fcn.00439f00
lea ecx, [ebp - 0x28]
call fcn.004039d0
jmp 0x4a327b
xor eax, eax
mov dword [ebp - 0x3c], 0
push eax
push 0x4e8ad8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
call fcn.004061e0
lea eax, [ebp - 0x4c]
cmp edi, eax
je 0x4a32ae
mov ecx, edi
call fcn.004039d0
movups xmm0, xmmword [ebp - 0x4c]
xor eax, eax
mov word [ebp - 0x4c], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
lea ecx, [ebp - 0x4c]
call fcn.004039d0
push esi
call fcn.004a1967
add esp, 4
mov eax, edi
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.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x4a32e0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6c58
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x524a60]
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 eax, dword [ebp + 0x10]
mov edx, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [eax]
mov eax, ecx
add ecx, 0xa
shr eax, 6
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1b70
mov ecx, dword [ebp - 0x2c]
mov edi, eax
add ecx, ecx
push ecx
push 0
push edi
call fcn.004b1030
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
push reloc.gdiplus.dll_Ordinal_1
push dword [ebp + 0xc]
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ecx, edi
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3384
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004061e0
push 2
push edi
mov dword [ebp - 4], 0
call fcn.004a12e0
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x28]
test esi, esi
je 0x4a3486
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
nop dword [eax]
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
lea ecx, [ecx + edx*2]
cmp eax, ecx
je 0x4a3454
cmp word [eax], 0xa
jne 0x4a344c
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub eax, ecx
sar eax, 1
cmp edx, eax
jb 0x4a34d4
mov ecx, edx
lea esi, [eax + eax]
sub ecx, eax
mov edx, 1
cmp ecx, edx
cmovb edx, ecx
cmp ebx, 8
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub ebx, edx
mov dword [ebp - 0x18], ebx
add ecx, esi
sub ebx, eax
lea eax, [ebx*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.004b0ab0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
add esp, 0xc
cmp ebx, 8
cmovae eax, edi
add eax, esi
jmp 0x4a33c6
add eax, 2
jmp 0x4a33d0
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi]
cmp edx, ecx
jbe 0x4a3461
xor esi, esi
jmp 0x4a3486
cmp ebx, 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, edi
push eax
push ecx
push dword [ebp - 0x38]
call fcn.004b82d3
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov dword [esi], eax
mov esi, dword [ebp - 0x3c]
cmp ebx, 8
jb 0x4a34b6
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x4a34ac
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a34d9
push ebx
push edi
call fcn.004a12e0
add esp, 8
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.004a1588
mov esp, ebp
pop ebp
ret
call fcn.0042b920
call fcn.004b3f79
int3
Function at 0x4a4e20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x4a5024
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4a5024
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004b1030
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push 0x500bf4
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4a4ff9
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4a4fe8
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x4a4fb2
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push 0x500c30
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a4faa
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004b1030
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.004a5040
add esp, 0x18
test eax, eax
je 0x4a4faa
cmp byte [ebp - 0x68], 0
je 0x4a4f6c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x4a4faa
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x4a4f99
mov al, byte [esi + ecx]
test al, al
je 0x4a4f99
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a4f80
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4a4ec0
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x4a5024
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.004a60c0
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x4a5160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4a52df
cmp dword [ebp + 0xc], 0x20
jb 0x4a52df
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x500c9c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4a52df
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a51f0
sub ecx, edx
cmp ecx, 0x40
jne 0x4a52df
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x4a522c
mov al, byte [esi + ecx]
test al, al
je 0x4a522c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a5216
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x4a5269
mov al, byte [esi + ecx]
test al, al
je 0x4a5269
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a5250
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.004b1030
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004a52f0
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x4a52df
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.004a60c0
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004a1588
mov esp, ebp
pop ebp
ret
Function at 0x4a5bb0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.004a15c0
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x4a5d1d
cmp dword [ebp + 0xc], 0
je 0x4a5d1d
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push 0x500ba4
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004a6130
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a5d00
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.004b1030
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a5cf5
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.004b1030
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.004a6e40
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.004a60c0
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4a5d0a
inc esi
cmp esi, 0x10
jl 0x4a5bf0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret