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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54aac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5ba8a4]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabber_
push edx
mov byte [ebp - 4], 1
call fcn.0053091a
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x419aa7
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00537fd9
mov esi, eax
cmp esi, 0xffffffff
je 0x419aa7
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.005304fa
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.00537b04
test bl, bl
je 0x4199ad
lea edx, [ebp - 0x1c]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.005304fa
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
call fcn.00537b04
test bl, bl
je 0x4199ad
mov al, byte [ebp + 8]
test al, al
je 0x419a83
mov eax, dword [0x5b5ecc]
mov dword [ebp + 8], eax
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0x400
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5bb3ac]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.0053091a
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push edx
add eax, 8
push 0x597ddc
push eax
call fcn.0053091a
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419b00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x54aae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5b5ecc]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x14]
xor edi, edi
test edx, edx
mov dword [esp + 0x24], 0
jle 0x419b89
mov eax, dword [ebp + 0x10]
add eax, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov esi, dword [ecx]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x419b70
test cl, cl
je 0x419b6c
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x419b70
add eax, 2
add esi, 2
test cl, cl
jne 0x419b4c
xor eax, eax
jmp 0x419b75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x419bd8
mov ecx, dword [esp + 0x14]
inc edi
add ecx, 8
cmp edi, edx
mov dword [esp + 0x14], ecx
jl 0x419b42
mov al, byte [ebp + 4]
test al, al
jne 0x419ca7
push 1
mov ecx, ebp
call fcn.00419940
test eax, eax
sete cl
mov al, cl
mov byte [ebp + 4], cl
test al, al
jne 0x419ca7
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00537b04
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + edi*8]
lea eax, [esp + 0x10]
push edx
push 0x597ddc
push eax
call fcn.0053091a
add esp, 0xc
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push 0x597ddc
push eax
mov byte [esp + 0x30], 1
call fcn.0053091a
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push ecx
push 0x597ddc
push edx
call fcn.0053091a
mov edi, dword [ebp + 0x14]
lea esi, [ebp + 0xc]
add esp, 0xc
mov ecx, esi
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
call fcn.0041a280
mov ecx, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
lea esi, [ecx + edi*8]
mov ecx, esi
call fcn.00537c3d
lea eax, [esp + 0x18]
lea ecx, [esi + 4]
push eax
call fcn.00537c3d
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 2
call fcn.00537b04
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00537b04
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esi, [eax + 1]
mov edx, dword [ebp + 8]
push esi
push edx
lea eax, [esp + 0x18]
push str._stemplate_ld.dat
push eax
call fcn.0053091a
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call edi
cmp eax, 0xffffffff
je 0x419bf1
inc esi
jmp 0x419cb3
Function at 0x41a400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ab96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [esi + 4], 0x55ebf4
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x5b5ecc]
lea edi, [esi + 0x1c]
mov dword [ebp - 4], ebx
mov dword [edi], eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x120]
push ecx
push edx
mov dword [esi], 0x55ebf0
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 1
mov eax, dword [0x5ba8bc]
push ebx
push ebx
push str.ToolbarStyle
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41a4b2
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41a4c0
lea ecx, [ebp - 0x120]
lea eax, [esi + 0x1c]
push ecx
push 0x597ddc
push eax
call fcn.0053091a
add esp, 0xc
jmp 0x41a4c0
push str.3D_Style
push edi
call fcn.0053091a
add esp, 8
mov ecx, dword [0x5ba8bc]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push eax
push ebx
push ebx
push str.LargeButtons
push ecx
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41a4ed
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x24], edx
mov ecx, esi
mov dword [esi + 0x18], ebx
call fcn.0041a6d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a550
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54abe7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [esi], 0x55ebf0
mov dword [ebp - 4], 0
mov edx, dword [0x5ba8bc]
mov eax, dword [esi + 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x14]
push 4
push ecx
push 4
push 0
push str.LargeButtons
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
call ebx
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x1c]
test eax, eax
je 0x41a5d0
mov ecx, dword [esi + 8]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 - 0x14]
push edx
push 0x597ddc
push edi
call fcn.0053091a
add esp, 0xc
jmp 0x41a5de
push 0x59a260
push edi
call fcn.0053091a
add esp, 8
mov edx, dword [edi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41a60b
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [0x5ba8bc]
push str.ToolbarStyle
push eax
call ebx
jmp 0x41a628
mov ecx, dword [0x5ba8bc]
push str.ToolbarStyle
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x41a628
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 0
call fcn.00537b04
lea ebx, [esi + 4]
mov dword [ebp - 0x14], ebx
mov dword [ebx], method.CCommandLineInfo.virtual_0
mov esi, dword [ebx + 4]
mov dword [ebp - 4], 4
test esi, esi
je 0x41a6b1
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], esi
mov edx, eax
dec eax
test edx, edx
je 0x41a6a5
lea edi, [eax + 1]
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 8
call fcn.00537b04
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 7
call fcn.00537b04
lea ecx, [esi + 8]
mov byte [ebp - 4], 6
call fcn.00537b04
lea ecx, [esi + 4]
mov byte [ebp - 4], 5
call fcn.00537b04
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00537b04
add esi, 0x14
dec edi
mov dword [ebp - 0x18], esi
jne 0x41a661
mov eax, dword [ebx + 4]
push eax
call fcn.005380ca
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c990
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x5ba8bc]
push esi
mov esi, ecx
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0
push str.isUseWinDialUp
push edx
mov dword [esp + 0x20], 4
call edi
test eax, eax
je 0x41c9ce
mov dword [esi + 0x28], 0
jmp 0x41c9dc
mov eax, dword [esp + 0xc]
mov dword [esi + 0x1c], 1
mov dword [esi + 0x28], eax
mov eax, dword [0x5ba8bc]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push str.mAttempts
push eax
mov dword [esp + 0x20], 4
call edi
test eax, eax
je 0x41ca0c
mov dword [esi + 0x24], 0
jmp 0x41ca13
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], ecx
mov ecx, dword [0x5ba8bc]
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push str.mRedialTime
push ecx
mov dword [esp + 0x20], 4
call edi
test eax, eax
je 0x41ca48
mov dword [esi + 0x20], 0x1e
pop edi
pop esi
add esp, 8
ret
mov edx, dword [esp + 0xc]
pop edi
mov dword [esi + 0x20], edx
pop esi
add esp, 8
ret

Function at 0x41ca60
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x28]
test ecx, ecx
jne 0x41ca7b
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x41ca8f
push 4
push eax
mov eax, dword [0x5ba8bc]
push 4
push 0
push str.isUseWinDialUp
push eax
call edi
mov edx, dword [0x5ba8bc]
lea ecx, [esi + 0x24]
push 4
push ecx
push 4
push 0
push str.mAttempts
push edx
call edi
mov eax, dword [0x5ba8bc]
add esi, 0x20
push 4
push esi
push 4
push 0
push str.mRedialTime
push eax
call edi
pop edi
pop esi
ret
Function at 0x420750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x80]
lea edx, [ebp - 0x324]
push ecx
push edx
lea ecx, [ebp - 0x124]
lea edx, [ebp - 0x20]
push ecx
xor ebx, ebx
push edx
push eax
mov dword [ebp - 4], ebx
call fcn.0051d13a
mov eax, dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
push ebx
push ebx
push 0xf0
push eax
call edi
mov ecx, dword [0x5b5ecc]
cmp eax, ebx
setne byte [ebp - 0x11]
mov dword [ebp - 0x18], ecx
mov edx, dword [esi + 0x128]
push ebx
push ebx
push 0x147
push edx
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x18]
push ecx
push eax
lea ecx, [esi + 0x10c]
call fcn.0053f983
mov eax, dword [esi + 0x5c]
cmp ebx, dword [eax + 8]
jge 0x420868
mov edx, dword [eax + 4]
lea edi, [ebx + ebx*4]
shl edi, 2
mov eax, dword [edx + edi + 4]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0051c942
add esp, 8
test eax, eax
jne 0x420865
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx + 4]
mov cl, byte [ebp - 0x11]
lea eax, [edx + edi + 0x10]
mov dl, byte [edx + edi + 0x10]
cmp dl, cl
jne 0x42082f
test cl, cl
je 0x4208f6
test cl, cl
mov byte [eax], cl
je 0x420858
mov edx, dword [esi + 0x5c]
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x20]
mov eax, dword [edx + 4]
push ecx
push 0x598a7c
lea ecx, [eax + edi + 8]
push ecx
call fcn.0053091a
add esp, 0x10
mov ecx, dword [esi + 0x5c]
call fcn.0045be00
jmp 0x4208f6
inc ebx
jmp 0x4207ec
xor al, al
test al, al
jne 0x4208f6
mov bl, byte [ebp - 0x11]
mov ecx, dword [0x5ba8bc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x24]
push 4
xor edx, edx
push eax
push 4
test bl, bl
push 0
push str.RememberLastSave
setne dl
push ecx
mov dword [ebp - 0x24], edx
call esi
test bl, bl
je 0x4208f6
mov edx, dword [0x5b5ecc]
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x20]
push eax
push ecx
lea edx, [ebp - 0x1c]
push 0x598a7c
push edx
mov byte [ebp - 4], 2
call fcn.0053091a
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [0x5ba8bc]
push str.LocalPath
push eax
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b6b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
mov eax, dword [0x5b5ecc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x5c]
cmp edi, dword [eax + 8]
jge 0x420c94
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
lea esi, [edi + edi*4]
shl esi, 2
mov eax, dword [ecx + esi + 4]
mov ecx, dword [edx]
push eax
push ecx
call fcn.0051c942
add esp, 8
test eax, eax
jne 0x420c91
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x70]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi]
mov dword [edx + 0x33c], eax
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x14]
lea eax, [edx + esi + 8]
push eax
call fcn.00537c3d
mov ecx, dword [ebx + 0x5c]
xor eax, eax
push 0
mov edx, dword [ecx + 4]
mov al, byte [edx + esi + 0x10]
push eax
mov eax, dword [ebx + 0xec]
push 0xf1
push eax
jmp 0x420ce8
inc edi
jmp 0x420c27
xor al, al
test al, al
jne 0x420cee
mov ecx, dword [ebx + 0x70]
lea edx, [ebp - 0x14]
xor esi, esi
push edx
mov dword [ecx + 0x33c], esi
call fcn.00423780
mov edx, dword [0x5ba8bc]
add esp, 4
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push esi
push esi
push str.RememberLastSave
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0xec]
push esi
push eax
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x5b5ecc]
mov dword [ebp - 0x18], edx
mov al, byte [ebp + 0xc]
mov byte [ebp - 4], 2
test al, al
je 0x420d78
mov eax, dword [ebx + 0x80]
lea ecx, [ebp - 0x220]
lea edx, [ebp - 0x120]
lea esi, [ebx + 0x80]
push ecx
push edx
lea ecx, [ebp - 0x320]
lea edx, [ebp + 0xc]
push ecx
push edx
push eax
call fcn.0051d13a
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + edx - 1]
cmp al, 0x5c
mov eax, 0x5ba440
je 0x420d51
mov eax, 0x598f5c
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x120]
push ecx
push eax
push edx
push str._s_s_s_s
push esi
call fcn.0053091a
add esp, 0x18
mov ecx, ebx
push 1
call fcn.004203a0
mov edx, dword [ebp + 8]
mov ecx, dword [0x5bae04]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
push eax
push ecx
push edx
call fcn.0053091a
mov eax, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ebx + 0xd0]
push eax
call fcn.005370ea
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4227e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54b9bc
push eax
mov eax, dword [0x5ba8bc]
mov dword fs:[0], esp
sub esp, 0x25c
test eax, eax
push esi
jne 0x422858
push 0x5ba8bc
push 0xf003f
push 0
push str.SoftwareDownloadManager_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x422870
push 0
push 0x5ba8bc
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareDownloadManager_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x42291f
call fcn.00422ee0
mov al, 1
pop esi
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
add esp, 0x268
ret
mov edx, dword [0x5ba8bc]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.idmvers
push edx
mov dword [esp + 0x24], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x422915
cmp esi, 2
je 0x422853
mov eax, dword [0x5b5ecc]
mov dword [esp + 4], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x268], 0
call fcn.00459300
push esi
lea ecx, [esp + 8]
push str.Reading_of_idmvers_failed__errCode___ld_r_n
push ecx
mov byte [esp + 0x274], 1
call fcn.0053091a
mov edx, dword [esp + 0x10]
add esp, 0xc
lea ecx, [esp + 0x50]
push 1
push edx
call fcn.004593e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x268], 0
call fcn.004593d0
lea ecx, [esp + 4]
mov dword [esp + 0x268], 0xffffffff
call fcn.00537b04
jmp 0x422858
call fcn.00423360
jmp 0x422858
mov eax, dword [0x5b5ecc]
mov dword [esp + 8], eax
lea ecx, [esp + 0x158]
mov dword [esp + 0x268], 2
call fcn.00459300
push esi
lea ecx, [esp + 0xc]
push str.RegCreateKeyEx___failed_during_OpenGlobalIDMRegKey____errCode___ld_r_n
push ecx
mov byte [esp + 0x274], 3
call fcn.0053091a
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 0x158]
push 1
push edx
call fcn.004593e0
lea ecx, [esp + 0x158]
mov byte [esp + 0x268], 2
call fcn.004593d0
lea ecx, [esp + 8]
mov dword [esp + 0x268], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x260]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x268
ret
Function at 0x423780
Capabilities:
Check if file exists
Get file attributes
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54ba38
push eax
mov eax, dword [0x5ba8bc]
mov dword fs:[0], esp
sub esp, 0xc
test eax, eax
push ebx
push esi
push edi
jne 0x4237b1
call fcn.004227e0
test al, al
je 0x423914
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x10], eax
mov edx, dword [0x5ba8bc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
push ecx
push 0
push 0
push 0
push str.LocalPath
push edx
call esi
test eax, eax
jne 0x42381b
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.00537fab
mov edx, dword [0x5ba8bc]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push edi
push 0
push 0
push str.LocalPath
push edx
call esi
test eax, eax
jne 0x42381b
mov ecx, dword [esp + 0x28]
push edi
jmp 0x4238ce
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x423903
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push str.Personal
push edx
call esi
test eax, eax
jne 0x4238f8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.00537fab
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
mov ebx, eax
push ecx
push ebx
push 0
push 0
push str.Personal
push edx
call esi
test eax, eax
jne 0x4238f8
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebx - 1]
cmp al, 0x5c
mov eax, 0x5ba440
je 0x4238a1
mov eax, 0x598f5c
mov esi, dword [esp + 0x28]
push eax
push ebx
push str._s_sDownloads_
push esi
call fcn.0053091a
mov eax, dword [esi]
push eax
call fcn.0051e372
mov eax, dword [esi]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4238d3
push ebx
mov ecx, esi
call fcn.00537c8d
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00537b04
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x424b90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bb58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [esi], method.CWinApp.virtual_0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x190]
push ebx
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x16c]
cmp eax, ebx
je 0x424bf1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1a4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
cmp ebx, eax
jae 0x424c57
mov edx, dword [esi + 0x1a0]
mov ecx, ebx
shl ecx, 4
mov byte [ebp - 4], 6
mov edi, dword [edx + ecx]
test edi, edi
je 0x424c4d
mov ecx, edi
call fcn.004f5e70
push edi
call fcn.005380ca
add esp, 4
mov dword [ebp - 4], 5
inc ebx
jmp 0x424c07
mov dword [ebp - 4], 5
inc ebx
jmp 0x424c07
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x19c]
call fcn.00426e00
mov eax, dword [0x5ba8bc]
test eax, eax
je 0x424c80
call fcn.00423360
mov eax, dword [0x5ba8bc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5ba79c]
test eax, eax
je 0x424c90
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x5ba798]
test eax, eax
je 0x424cab
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x424cab
lea ecx, [esi + 0x1b4]
mov dword [ebp - 4], 3
call fcn.004593d0
lea eax, [esi + 0x19c]
mov dword [ebp - 0x1c], eax
mov dword [eax], method.CCommandLineInfo.virtual_0
mov eax, dword [eax + 4]
mov byte [ebp - 4], 9
test eax, eax
je 0x424ce0
push eax
call fcn.005380ca
add esp, 4
lea ecx, [esi + 0x128]
mov byte [ebp - 4], 1
call fcn.0041c130
lea ecx, [esi + 0xc0]
mov byte [ebp - 4], 0
call fcn.0040aef0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.005427a6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret