joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404230
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 0x30], 0
jne 0x40425c
cmp dword [esi + 4], 0
jne 0x404255
push 0
push 0
push esi
push 0x404200
push 0
push 0
call fcn.00454270
add esp, 0x18
mov dword [esi + 4], eax
mov dword [esi + 0x30], 1
ret

Function at 0x405250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405267
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405298
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x405294
cmp esi, eax
jae 0x405298
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x405284
cmp esi, eax
jb 0x40529e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x405760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x474688
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea esi, [esp + 0x18]
call fcn.00421b00
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jne 0x4057ad
call fcn.00405700
push str.360common.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
or ebp, 0xffffffff
test esi, esi
jne 0x4058a5
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, 0x4799b8
call fcn.004061e0
push eax
lea edx, [esp + 0x28]
push edx
mov ebx, str.360common.dll
mov byte [esp + 0x40], 1
call fcn.004061e0
add esp, 0x10
mov byte [esp + 0x30], 2
mov ebx, dword [eax]
mov eax, ebx
call fcn.00405d80
push ebx
test eax, eax
jne 0x405814
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40589b
jmp 0x40581c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405840
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4058a5
lea eax, [edi - 0x10]
mov dword [esp + 0x30], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x405885
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x48ab88
call fcn.00405f10
push str.SafeSupportDpi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405868
push edi
call eax
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x30], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4058d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4058f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x474648
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea esi, [esp + 0x1c]
call fcn.00421b00
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, 0x4799b8
mov dword [esp + 0x30], 0
call fcn.004061e0
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, str.sites.dll
mov byte [esp + 0x38], 1
call fcn.004061e0
add esp, 0x10
mov byte [esp + 0x28], 2
mov ebx, dword [eax]
mov eax, ebx
call fcn.00405d80
push ebx
test eax, eax
jne 0x405974
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405a03
xor esi, esi
jmp 0x40597c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4059a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov edi, 0x48ab88
call fcn.00405f10
int3

Function at 0x405aa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b2b
lea ecx, [esp + 4]
push ecx
push esi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
push str.Path
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405b05
sub eax, edx
sar eax, 1
je 0x405b2d
cmp word [esi + eax*2 - 2], 0x5c
je 0x405b2d
mov edx, 0x5c
mov word [esi + eax*2], dx
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x405e10
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004560e0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x405e94
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.0045300b
add esp, 0x814
ret
push str.360ver.dll
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405e78
lea eax, [esp + 0x10]
call fcn.00405d80
test eax, eax
je 0x405e78
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x405e78
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x814]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0045300b
add esp, 0x814
ret
Function at 0x405f10
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1010
call fcn.0046a4b0
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
push 0x1000
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004560e0
add esp, 0xc
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00405a10
test eax, eax
jl 0x405f67
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, 0x479820
call fcn.00405a50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00405a10
test eax, eax
jl 0x405f8e
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, edi
call fcn.00405a50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00405a10
test eax, eax
jl 0x405fb8
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, 0x479828
call fcn.00405a50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00405a10
test eax, eax
jl 0x405fdf
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, edi
call fcn.00405a50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00405a10
test eax, eax
jl 0x406009
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, str.vL
call fcn.00405a50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00405a10
test eax, eax
jl 0x406030
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, ebx
call fcn.00405a50
lea esi, [esp + 4]
lea edx, [esp + 8]
call fcn.00405a10
test eax, eax
jl 0x40605a
mov eax, dword [esp + 4]
mov ecx, 0x800
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, 0x479878
call fcn.00405a50
push 0x14
push edi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4060bd
push 0xc8
push 0x479728
push str.http:__down.360safe.com_setup.exe
call fcn.00453cee
add esp, 0xc
test eax, eax
jne 0x4060a5
call fcn.00405e10
test eax, eax
je 0x4060a5
push 5
push 0
push 0
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x4060b0
push 5
push 0
push 0
push str.http:__down.360safe.com_setup.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call fcn.00453a12
int3
Function at 0x4062c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x474948
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea esi, [esp + 0x10]
call fcn.00421b00
mov dword [esp + 0x28], 0
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 0
jne 0x40630c
call fcn.00405700
push str.360common.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x406403
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x4799b8
call fcn.004061e0
push eax
lea edx, [esp + 0x20]
push edx
mov ebx, str.360common.dll
mov byte [esp + 0x38], 1
call fcn.004061e0
add esp, 0x10
mov byte [esp + 0x28], 2
mov ebx, dword [eax]
mov eax, ebx
call fcn.00405d80
push ebx
test eax, eax
jne 0x406370
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4063f9
jmp 0x406378
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40639f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x406406
lea eax, [edi - 0x10]
mov dword [esp + 0x28], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4063e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x48ab88
call fcn.00405f10
or ebx, 0xffffffff
push str.GetDpiScaleParam
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4063c7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
call eax
mov esi, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x406443
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4071c0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x47112b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov eax, dword [0x48c7fc]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x48c7fc
mov dword [esp + 0x18], edi
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push edi
push 2
mov dword [esp + 0x25c], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x407256
mov dword [esp + 0x254], eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40724f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407362
push 0x22c
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.004560e0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x407330
lea eax, [esp + 0x40]
lea edx, [eax + 2]
jmp 0x407290
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407290
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x40]
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.004069b0
mov esi, dword [esp + 0x14]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4072d6
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.00406b60
mov esi, dword [esp + 0x14]
lea edx, [edi + 1]
push edx
push esi
call fcn.00454ac0
add esp, 8
test edi, edi
jl 0x407394
cmp edi, dword [esi - 8]
jg 0x407394
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jl 0x40731d
push str.EXPLORER.EXE
push esi
call fcn.00453111
add esp, 8
test eax, eax
je 0x40731d
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40738a
lea ecx, [esp + 0x1c]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407284
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40735e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0045300b
add esp, 0x244
ret
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
jmp 0x407330
push 0x80070057
call fcn.00406db0
int3
Function at 0x407c30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x473a78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x489320]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x407cb9
mov ebx, dword [esp + 0x24]
call fcn.00405cd0
test eax, eax
je 0x407cb9
push 0x48dfd0
lea esi, [esp + 0x14]
mov dword [esp + 0x14], edi
call fcn.0040b3e0
test eax, eax
je 0x407cb9
mov eax, dword [esp + 0x10]
cmp eax, 3
je 0x407cb9
cmp eax, edi
je 0x407cb9
call fcn.004071c0
test eax, eax
je 0x407cb9
mov ecx, dword [esp + 0x24]
push eax
mov edx, 0x479fa8
call fcn.00407490
add esp, 4
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x407cda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4084d0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x160
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0x15c], eax
cmp byte [0x48b1d1], 0
push ebp
mov ebp, dword [esp + 0x168]
push esi
push edi
je 0x40860d
mov esi, 0x114
push 0x48e640
mov dword [0x48e640], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, 2
test eax, eax
jne 0x4085a3
push 0x3f
push eax
mov byte [esp + 0x130], al
lea eax, [esp + 0x131]
push eax
call fcn.004560e0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0x14]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x408638
movsx ecx, byte [esp + 0x128]
lea edx, [esp + 0x12a]
sub ecx, 0x30
push edx
mov dword [0x48e650], edi
mov dword [0x48e644], ecx
call fcn.004548d0
add esp, 4
mov dword [0x48e648], eax
mov ecx, dword [0x48e644]
cmp ecx, 6
ja 0x4085b8
jne 0x408606
cmp dword [0x48e648], edi
jb 0x408606
push 0x110
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.004560e0
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408606
lea edx, [esp + 0x14]
push edx
call eax
test eax, eax
jne 0x408606
mov ecx, 0x45
lea esi, [esp + 0x14]
mov edi, 0x48e640
rep movsd dword es:[edi], dword [esi]
mov byte [0x48b1d1], 0
mov edi, ebp
mov ecx, 0x45
mov esi, 0x48e640
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0045300b
add esp, 0x160
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov edx, 4
mov dword [0x48e648], eax
cmp edx, ecx
sbb eax, eax
neg eax
inc eax
mov dword [0x48e644], ecx
mov dword [0x48e650], eax
jmp 0x4085a9
Function at 0x409780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x409790
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4097a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409cc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x489320]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x409d3a
xor eax, eax
cmp ecx, ebp
je 0x409d22
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x409d48
cmp ecx, ebp
je 0x409ddb
push ecx
jmp 0x409dd5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x409daa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00409cc0
mov ebx, eax
cmp ebx, ebp
jne 0x409df8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
je 0x409d70
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x409dbd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00409e70
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x409ddb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045300b
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x409e07
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x409ddd
Function at 0x40a900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x471090
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x489320]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40a97f
call fcn.004090a0
mov esi, eax
jmp 0x40aa61
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40a99b
call fcn.004090a0
jmp 0x40aa58
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40a9b4
call fcn.004090a0
jmp 0x40aa58
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40a9e8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40a9d6
lea eax, [ebp]
call fcn.00409050
lea esi, [ebp - 0x1c]
call fcn.004097d0
mov eax, 0x8007000e
jmp 0x40aa73
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00409060
mov dword [ebp - 4], 1
jmp 0x40aa11
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40aa1f
mov esi, 0x8007000e
jmp 0x40aa5a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40aa3d
call fcn.004090a0
jmp 0x40aa58
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040a7b0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40aa71
lea eax, [ebp]
call fcn.00409050
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 + 0x404]
xor ecx, ebp
call fcn.0045300b
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc