joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407480
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x4074b5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40752e
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x40751b
sub ecx, 1
je 0x407506
sub ecx, 2
je 0x4074f3
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00407170
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40755b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x407d10
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x407ec5
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x407ec4
mov eax, dword [0x40c354]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x407ebc
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x407e7e
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x40a1e0]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x40a1e0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x40a1e0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x40a1e0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x40a1e0]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x40a1e0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x40a1e0]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x40a1e0]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x407da0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x407e9f
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40a1e0]
add eax, 1
sub edi, 1
jne 0x407e82
cmp edx, 0x1000
je 0x407d70
mov edx, dword [0x40c354]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x407ed0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4087f0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448f3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
mov ecx, eax
test ecx, ecx
je 0x4089a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.WWtauaHwc7KTRzfRXA
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004038c0
test al, al
jne 0x40885c
push 0x13
push str.WWtauaHwc7KTRzfRXA
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40889a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408970
lea esp, [esp]
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
test eax, eax
je 0x4089a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.VG11IaXEapBjVxVGgY
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004038c0
test al, al
jne 0x40890b
push 0x13
push str.VG11IaXEapBjVxVGgY
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
add esp, 0x10
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408946
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4088c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40898f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013f0
int3
Function at 0x401220
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov ebx, ecx
mov dword [ebp - 0x11c], 0x270f
mov dword [ebp - 0x118], 0
call fcn.005149a0
add esp, 0xc
test esi, esi
je 0x401343
test edi, edi
je 0x401343
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401280
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x401343
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4012a0
sub eax, edx
sar eax, 1
cmp eax, 0x270f
ja 0x401343
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4012dc
pop edi
pop esi
mov eax, 0x7d0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 8
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40137c
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40135b
cmp dword [ebp - 0x114], 6
mov ecx, ebx
jb 0x40131c
push edi
call fcn.00401160
jmp 0x401322
push esi
call fcn.004010c0
test eax, eax
je 0x40135b
xor esi, esi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 0x3e8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x11c]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514990
mov esp, ebp
pop ebp
ret 8

Function at 0x4013d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4013f9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4013e8
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
xor eax, eax
test esi, esi
je 0x401443
push 5
lea ecx, [ebp - 0x10]
push ecx
push 2
push esi
mov word [ebp - 0x10], ax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x10]
push edx
call fcn.004013a0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00514990
mov esp, ebp
pop ebp
ret
Function at 0x4016b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4016cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401702
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4016fe
jmp 0x4016f0
cmp esi, eax
jae 0x401702
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4016f0
cmp esi, eax
jb 0x401709
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cb0b
mov eax, dword fs:[0]
push eax
sub esp, 0xc54
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc38], esi
mov dword [ebp - 0xc40], esi
cmp ebx, esi
je 0x402d6b
mov eax, dword [ecx + 0x24]
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0xc40]
push edx
lea edx, [ebp - 0xc38]
push edx
add ecx, 0x24
push str.SMEXUpdate
push 0x53d4ac
call eax
cmp eax, esi
je 0x402d6b
mov eax, dword [ebp - 0xc38]
cmp dword [eax], esi
jle 0x402d6b
cmp dword [eax + 0x210], 1
jne 0x402d6b
lea ecx, [ebp - 0xc34]
push ecx
push 0x20019
push esi
push str.SOFTWARECanonSolution_Menu_EX
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402d8b
mov edx, dword [ebp - 0xc34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
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.00514990
mov esp, ebp
pop ebp
ret 4
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x218], ax
call fcn.005149a0
add esp, 0xc
lea edx, [ebp - 0xc3c]
push edx
mov edx, dword [ebp - 0xc34]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc44]
push ecx
push esi
push str.AppPath
push edx
mov dword [ebp - 0xc44], esi
mov dword [ebp - 0xc3c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0xc34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x402d6b
lea ecx, [ebp - 0xc60]
call fcn.00416bbc
push esi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xc60]
mov dword [ebp - 4], esi
call fcn.00416c88
lea ecx, [ebp - 0xc60]
mov edi, eax
call fcn.00416728
cmp edi, esi
jne 0x402e41
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc60]
call fcn.00416bee
jmp 0x402d6b
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0xc30]
push 0x104
push eax
call fcn.00515853
push str._update
lea ecx, [ebp - 0xa28]
push 0x400
push ecx
call fcn.00515853
add esp, 0x18
push 0xa18
push 8
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x402e31
mov edi, eax
mov ecx, 0x286
lea esi, [ebp - 0xc30]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc60]
mov dword [ebx], eax
call fcn.00416bee
mov eax, 1
jmp 0x402d6d
Function at 0x402ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cb0b
mov eax, dword fs:[0]
push eax
sub esp, 0xc54
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc38], esi
mov dword [ebp - 0xc40], esi
cmp ebx, esi
je 0x402f7b
mov eax, dword [ecx + 0x24]
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0xc40]
push edx
lea edx, [ebp - 0xc38]
push edx
add ecx, 0x24
push str.QMUpdate
push 0x53d4ac
call eax
cmp eax, esi
je 0x402f7b
mov eax, dword [ebp - 0xc38]
cmp dword [eax], esi
jle 0x402f7b
cmp dword [eax + 0x210], 1
jne 0x402f7b
lea ecx, [ebp - 0xc34]
push ecx
push 0x20019
push esi
push str.SOFTWARECanonQuick_Menu
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402f9b
mov edx, dword [ebp - 0xc34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
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.00514990
mov esp, ebp
pop ebp
ret 4
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x218], ax
call fcn.005149a0
add esp, 0xc
lea edx, [ebp - 0xc3c]
push edx
mov edx, dword [ebp - 0xc34]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc44]
push ecx
push esi
push str.AppPath
push edx
mov dword [ebp - 0xc44], esi
mov dword [ebp - 0xc3c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0xc34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x402f7b
lea ecx, [ebp - 0xc60]
call fcn.00416bbc
push esi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xc60]
mov dword [ebp - 4], esi
call fcn.00416c88
lea ecx, [ebp - 0xc60]
mov edi, eax
call fcn.00416728
cmp edi, esi
jne 0x403051
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc60]
call fcn.00416bee
jmp 0x402f7b
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0xc30]
push 0x104
push eax
call fcn.00515853
push str._update
lea ecx, [ebp - 0xa28]
push 0x400
push ecx
call fcn.00515853
add esp, 0x18
push 0xa18
push 8
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x403041
mov edi, eax
mov ecx, 0x286
lea esi, [ebp - 0xc30]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc60]
mov dword [ebx], eax
call fcn.00416bee
mov eax, 1
jmp 0x402f7d
Function at 0x4032d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xd4cc]
mov dword [ebp - 0x24], 0
cmp eax, 5
ja 0x403314
jne 0x403310
cmp dword [esi + 0xd4d0], 1
jae 0x403314
xor ecx, ecx
jmp 0x403322
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x24]
movzx eax, cx
test eax, eax
je 0x403346
cmp eax, 6
je 0x403346
cmp eax, 9
je 0x403346
mov ecx, 0xffff
mov word [esi + 0xd5dc], cx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov word [esi + 0xd5dc], cx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cc9b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5976b8]
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, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor eax, eax
mov edi, ecx
test esi, esi
je 0x404f4d
mov word [esi], ax
call fcn.004170fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404e1d
push 0x80004005
call fcn.00401550
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00404d30
test eax, eax
jne 0x404e78
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x404f4d
mov edi, dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
push ecx
push 1
push 0
push edi
push ebx
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404ea4
lea eax, [edi - 0x10]
jmp 0x404e51
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.005149a0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x228]
push edx
push 0
push str.Language
push eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404f18
push 0x10
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00514df1
add esp, 0xc
mov word [esi], ax
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.00514990
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406250
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.005149a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
cmp eax, edi
jbe 0x4063c4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x410
mov dword [ebp - 0x218], eax
lea edx, [ebp - 0x210]
push edx
push 0x2001f
push 0
lea edi, [esi - 0x410]
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4063b1
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push 0
push edx
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x406317
mov eax, dword [ebp - 0x210]
push eax
call ebx
jmp 0x4063b1
lea ecx, [esi - 0x208]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40633a
mov eax, dword [ebp - 0x210]
push eax
call ebx
jmp 0x4063b1
cmp word [esi], 0
jne 0x406369
mov ecx, dword [ebp - 0x210]
push 0x53d958
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x210]
push edx
call ebx
push edi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
jmp 0x40639f
push 0x104
push esi
call fcn.0051611e
add esp, 8
inc eax
push eax
push esi
push 1
push 0
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x210]
push 0x53d958
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x210]
push ecx
call ebx
lea edx, [ebp - 0x20c]
push edx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esi, 0x618
dec dword [ebp - 0x218]
jne 0x4062b2
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00514990
mov esp, ebp
pop ebp
ret 8
Function at 0x4063e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0xfffe
call fcn.00516178
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x406404
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
push ebx
push esi
push eax
push 0x7fff
push edi
push str.rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor esi, esi
mov ebx, 0x7fff
mov dword [ebp - 4], ebx
cmp word [edi], si
je 0x406457
lea ebx, [ebx]
push ebx
push edi
call fcn.0051611e
lea esi, [eax + 1]
add esp, 8
cmp esi, 0x7fff
ja 0x4064f8
lea edi, [edi + esi*2]
sub ebx, esi
cmp word [edi], 0
jne 0x406430
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4064f8
cmp word [ebx], 0
je 0x4064f8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0051611e
mov ecx, dword [ebp + 0x14]
push ecx
push ebx
mov dword [ebp + 0xc], eax
call fcn.0051611e
mov ecx, dword [ebp + 0xc]
add ecx, esi
lea edx, [eax + ecx + 2]
add esp, 0x10
cmp edx, 0x7fff
ja 0x4064f8
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
push ecx
push str._s_s
push esi
push edi
call fcn.00515c51
mov edx, dword [ebp - 4]
push edx
push edi
call fcn.0051611e
mov esi, dword [ebp + 0x18]
add esp, 0x1c
xor ecx, ecx
mov word [edi + eax*2 + 2], cx
mov edi, dword [ebp - 8]
push esi
push edi
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
call fcn.0051613e
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x406510
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.005149a0
add esp, 0xc
push 0
push 0x19
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4065bd
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4065bd
lea ecx, [ebp - 0x214]
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push str.Common_Desktop
push ecx
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [ebp - 0x20c]
push eax
push 5
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret