joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bc80
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587771
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.0045e972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41bccd
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
push esi
lea ecx, [ebp - 0x14]
push ecx
call fcn.0041bb90
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00401f40
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bd29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x41bdb8
and esi, 0x3ff
push esi
lea edx, [ebp - 0x14]
push edx
call fcn.0041bb90
push eax
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.00401f40
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bd75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
jne 0x41bdb8
push 9
lea edx, [ebp - 0x14]
push edx
call fcn.0041bb90
push eax
mov ecx, edi
mov dword [ebp - 4], 3
call fcn.00401f40
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bdb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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 0x41bdd0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587720
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x41bf09
call fcn.0045e972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41be1a
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
mov eax, ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41be49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebp + 8]
push ecx
call fcn.0041baa0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00401f40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41be8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x41bef6
and esi, 0x3ff
push esi
lea edx, [ebp - 0x10]
push edx
call fcn.0041baa0
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00401f40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bed8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x41bef6
push str.English
mov ecx, edi
call fcn.004019e0
test ebx, ebx
je 0x41bef6
mov dword [ebx], 9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx esi, word [ebx]
jmp 0x41be4c
Function at 0x41cd80
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58686d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CLaunchApp.0
call fcn.0045e972
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41cdca
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov dword [ebp - 4], ebx
call fcn.0045e972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41cdf6
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 1
call fcn.0045e972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41ce23
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 2
call fcn.0045e972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41ce50
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 3
call fcn.0045e972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41ce7d
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 4
call fcn.0045e972
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41ceaa
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x1c], eax
lea edi, [esi + 0x34]
mov dword [edi], vtable.CArray_class_CSoftwareDispInfo__class_CSoftwareDispInfo__.0
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
push ebx
mov byte [ebp - 4], 6
push 0x5b95a8
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401e90
push ebx
push 0x5b95a8
lea ecx, [esi + 0xc]
call fcn.00401e90
push ebx
push 0x5b95a8
lea ecx, [esi + 0x10]
call fcn.00401e90
push ebx
push 0x5b95a8
lea ecx, [esi + 0x14]
call fcn.00401e90
push ebx
push 0x5b95a8
lea ecx, [esi + 0x18]
call fcn.00401e90
push ebx
push 0x5b95a8
lea ecx, [esi + 0x1c]
call fcn.00401e90
push edi
mov dword [esi + 0x20], ebx
call fcn.00420240
mov dword [esi + 0x48], ebx
mov dword [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov eax, esi
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 0x41db50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [esi + 4]
mov eax, 0x103
mov dword [ebp - 4], eax
test ecx, ecx
je 0x41dbd6
push ecx
mov dword [esi + 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41dbda
mov eax, dword [esi + 4]
cmp dword [eax + 0x20], 0x20
jbe 0x41dbda
cmp dword [eax + 0x38], 0
je 0x41dbd3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0x103
jmp 0x41dba0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x38]
push 0x1f4
push ecx
call edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x38]
lea edx, [ebp - 4]
push edx
push ecx
call ebx
cmp dword [ebp - 4], 0x103
je 0x41dba0
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, 0xfffffffe
mov esp, ebp
pop ebp
ret

Function at 0x41dc10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5ef60c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0055b030
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [esi + 4]
push 0x3c
push 0
push edx
call fcn.0055b030
mov eax, dword [esi + 4]
mov dword [eax], 0x3c
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [ecx + 8], 0
cmp dword [ebp - 0x11c], 6
mov eax, 1
jb 0x41dc92
cmp dword [ebp + 8], eax
jne 0x41dc92
mov edx, dword [esi + 4]
mov dword [edx + 0xc], str.runas
jmp 0x41dc9c
mov ecx, dword [esi + 4]
mov dword [ecx + 0xc], str.open
mov edx, dword [esi + 4]
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [eax + 4], 0x40
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x10], edx
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41dcdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dcfc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055799e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41f120
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x41f285
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x41f27e
lea ecx, [ebp - 0x30]
call fcn.00470479
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], edi
mov eax, dword [ecx]
push 0x9001
push eax
lea ecx, [ebp - 0x30]
call fcn.0047093f
mov edi, eax
test edi, edi
je 0x41f265
push 0x10000
mov byte [ebp - 4], 1
call fcn.0045de9b
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 4], eax
cmp esi, eax
je 0x41f24f
push 0x10000
push eax
push esi
mov dword [ebp - 0x14], eax
call fcn.0055b030
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
push 0x10000
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test edi, edi
je 0x41f230
mov eax, dword [ebp - 0x14]
test eax, eax
jbe 0x41f230
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.004701af
push 0x10000
push 0
push esi
call fcn.0055b030
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, eax
test edi, edi
jne 0x41f1f8
push esi
call fcn.0045dea6
add esp, 4
jmp 0x41f24f
lea ecx, [ebp - 0x30]
call fcn.00470413
mov esi, dword [ebp - 0x18]
test edi, edi
je 0x41f265
mov dword [ebp - 0x1c], 1
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.004705b9
mov edi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
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 0x425490
Capabilities:
Create process on windows

Disassembly:
push esi
push eax
mov esi, ecx
call fcn.0046f561
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx + 0x90]
cmp edx, eax
jl 0x42550f
test edx, edx
jle 0x42550f
test eax, eax
jl 0x425511
cmp eax, edx
jge 0x425511
imul eax, eax, 0x138
add eax, dword [ecx + 0x8c]
test eax, eax
je 0x42550f
mov eax, dword [eax + 0xac]
sub eax, 0x10
push eax
call fcn.00401ff0
mov esi, eax
add esi, 0x10
add esp, 4
cmp dword [esi - 0xc], 0
je 0x4254f3
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42550f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
ret
call fcn.0045e880
int3

Function at 0x426920
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5ef60c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x11c
xor edi, edi
lea eax, [ebp - 0x120]
push edi
push eax
call fcn.0055b030
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x42697c
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x114
call esi
cmp dword [ebp - 0x11c], 6
mov eax, 1
jae 0x42698c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055799e
mov esp, ebp
pop ebp
ret
Function at 0x427ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5866d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.COsasoi::GetShownAnonymousFlag_r_n
push 0x5f80f8
call fcn.00403a70
xor edi, edi
add esp, 8
mov dword [ebp - 0x10], edi
call fcn.0045e972
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x427bf9
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push 0x1f
push str.SoftwareEPSONSoftware_Updater
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00401e90
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp esi, edi
je 0x427c4c
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x14]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x20019
mov esi, eax
mov dword [ebp - 0x34], vtable.Registry.0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
jne 0x427c76
mov esi, 0xf003f
mov ebx, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x30]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x427cea
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
push edi
push edi
push str.Anonymous
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x1c], edi
je 0x427cda
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x427ce7
push eax
call esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebp - 0x10]
push ecx
push str.bRet___d_r_n
push 0x5f80f8
call fcn.00403a70
push 0x5be960
push 0x5f80f8
call fcn.00403a70
mov eax, dword [ebp - 0x30]
add esp, 0x14
mov dword [ebp - 0x34], vtable.Registry.0
cmp eax, edi
je 0x427d23
push eax
call esi
mov dword [ebp - 0x30], edi
lea eax, [ebx - 0x10]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x427d49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
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 0x427d60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5866a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push str.COsasoi::SetShownAnonymousFlag_r_n
push 0x5f80f8
call fcn.00403a70
push 1
push str.bShown___d_r_n
push 0x5f80f8
call fcn.00403a70
add esp, 0x14
call fcn.0045e972
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x427dcb
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x1f
push str.SoftwareEPSONSoftware_Updater
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], edi
call fcn.00401e90
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp esi, edi
je 0x427e24
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 0x14]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0x20006
mov esi, eax
mov dword [esp + 0x24], vtable.Registry.0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
jne 0x427e51
mov esi, 0xf003f
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov byte [esp + 0x40], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
je 0x427ec1
mov edx, dword [esp + 0x28]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push edi
push str.Anonymous
push edx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x427ebd
push eax
call esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push 0x5be960
push 0x5f80f8
call fcn.00403a70
mov eax, dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x24], vtable.Registry.0
cmp eax, edi
je 0x427eea
push eax
call esi
mov dword [esp + 0x28], edi
lea eax, [ebx - 0x10]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427f12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428dc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587488
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [eax + 8], esi
jne 0x428e1a
mov esi, dword [ebp + 0xc]
push 0x5b95a8
mov ecx, esi
call fcn.00401a30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0045e972
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x428e34
push 0x80004005
call fcn.00401fd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x200
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x428e81
push 0x200
push 8
call edi
push eax
call ebx
mov ebx, eax
test ebx, ebx
jne 0x428ecc
push esi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 0xc]
push 0x5b95a8
mov ecx, esi
call fcn.00401a30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428eb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp + 8]
push ebx
mov eax, 0x100
push 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [edx + 4]
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x428f05
push esi
lea ecx, [ebp - 0x14]
call fcn.004019e0
push esi
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
push ebx
push 0
call edi
push eax
call esi
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00401ff0
mov edi, dword [ebp + 0xc]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x428f52
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587458
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], esi
push 0x5b95a8
cmp dword [eax + 8], esi
jne 0x428fb5
mov ecx, edi
call fcn.00401a30
jmp 0x42907c
lea ecx, [ebp - 0x10]
call fcn.00401a30
mov dword [ebp - 4], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x200
push 8
mov dword [ebp - 0x14], 0x100
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x42900b
push 0x5b95a8
mov ecx, edi
call fcn.00401a30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x429070
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [eax + 4]
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x429036
push esi
lea ecx, [ebp - 0x10]
call fcn.004019e0
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00401ff0
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42907c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8