joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ff40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push 0x2f
mov ebx, ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcsrchr]
pop ecx
test eax, eax
pop ecx
je 0x450030
push esi
add eax, 2
push 0x83e
push eax
push dword [0x49a558]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
mov dword [ebp - 0xc], esi
je 0x45002c
push esi
push dword [0x49a558]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x45002c
push edi
push esi
push dword [0x49a558]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, esi
mov esi, eax
mov eax, ecx
push dword [ebp - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 1
push dword [ebx + 0xc]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
pop edi
jne 0x45002c
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x450027
mov ecx, dword [ebp + 8]
and dword [esi + 4], 0
lea eax, [esi + 4]
mov dword [esi], 0x403448
push eax
push ecx
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x450029
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

Function at 0x450921
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor eax, eax
push edi
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
mov esi, 0xfa000
push dword [ebp + 8]
mov edi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x450954
xor eax, eax
jmp 0x450993
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, esi
jae 0x45095e
mov edi, ebx
lea eax, [ebp - 4]
push 0
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x450980
cmp edi, ebx
je 0x450984
sub ebx, esi
add dword [ebp + 0xc], edi
jmp 0x450958
xor esi, esi
jmp 0x450987
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x451156
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push 0x214
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x451182
push 1
pop eax
jmp 0x4512b4
mov ecx, 0x85
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
mov dword [ecx + 0x208], eax
call esi
pop ecx
mov ecx, 0x103
cmp eax, ecx
jbe 0x4511b2
mov eax, ecx
jmp 0x4511b6
push edi
call esi
pop ecx
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov eax, dword [ebp - 4]
add esp, 0xc
cmp dword [eax + 0x208], 2
jne 0x4511ee
push 0x411c5c
push edi
call dword [sym.imp.MSVCRT.dll__wfopen]
pop ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x4512a1
push 0x40bdd4
push edi
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp + 0x10], edi
jne 0x45120e
mov dword [ebp - 8], 1
jmp 0x451281
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebx
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov ebx, eax
call esi
add esp, 0x1c
test ebx, ebx
jle 0x451297
lea edi, [ebx + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x45127f
mov ecx, edi
push dword [ebp + 0x10]
mov edx, ecx
xor eax, eax
mov edi, esi
push 1
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
push esi
push dword [ebp - 4]
call fcn.00450e70
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x1c
cmp dword [ebp - 8], 0
je 0x451297
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x4512a1
lea eax, [ebp - 4]
push ebx
push eax
call fcn.004512b8
pop ecx
mov dword [ebp - 4], ebx
pop ecx
jmp 0x4512a1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ebx, ebx
mov dword [eax], ecx
cmp dword [ebp + 0x10], ebx
pop esi
je 0x4512b1
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x4518d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4518eb
push 1
pop eax
jmp 0x45196b
push 0x40bdcc
push esi
call dword [sym.imp.MSVCRT.dll__wfopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x45196b
push edi
push eax
push 1
lea eax, [ebp - 4]
push 2
push eax
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edi, dword [esi + 0x20c]
add esp, 0x10
test edi, edi
je 0x45195d
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fwprintf]
push dword [edi]
push 0x411c8c
push dword [ebp + 8]
call ebx
mov esi, dword [edi + 8]
add esp, 0xc
test esi, esi
je 0x451955
push dword [esi]
push 0x411c80
push dword [ebp + 8]
call ebx
mov esi, dword [esi + 4]
add esp, 0xc
jmp 0x45193d
mov edi, dword [edi + 4]
test edi, edi
jne 0x45192b
pop ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x451c12
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x206]
cmp dword [0x4111c8], ebx
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x451cbd
cmp dword [ebp + 8], ebx
jne 0x451c4e
mov dword [ebp + 8], 0x40b278
push 1
call fcn.00451b5b
mov ebx, eax
xor edi, edi
pop ecx
cmp dword [ebx], edi
je 0x451cb9
mov word [ebp - 0x410], di
push dword [ebp + 8]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
push 0x411c60
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov esi, 0x49a5c8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
lea eax, [ebp - 0x410]
push eax
push dword [ebx]
call fcn.004519fa
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x451d12
push dword [0x410fec]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x451cfa
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x208]
push 0x40b0ec
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
add esp, 0x10
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451d17
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x206]
cmp dword [0x4111c8], ebx
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x451dbe
cmp dword [ebp + 8], ebx
jne 0x451d53
mov dword [ebp + 8], 0x40b278
push 1
xor edi, edi
call fcn.00451b5b
mov ebx, eax
pop ecx
cmp dword [ebx], edi
je 0x451dba
and word [ebp - 0x410], di
push dword [ebp + 8]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
push 0x411c60
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov esi, 0x49a5c8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x410]
push eax
push dword [ebx]
call fcn.0045196e
pop ecx
mov edi, eax
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x451e10
push dword [0x410fec]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x451dfb
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x208]
push 0x40b0ec
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451e15
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x320c
call fcn.00466f70
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
cmp dword [0x4111c8], esi
mov word [ebp - 0x20c], si
mov dword [ebp - 4], 3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x451f16
cmp dword [ebp + 8], esi
jne 0x451e5e
mov dword [ebp + 8], 0x40b278
push 1
call fcn.00451b5b
mov ebx, eax
pop ecx
cmp dword [ebx], esi
je 0x451f12
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x320a]
mov word [ebp - 0x320c], si
rep stosd dword es:[edi], eax
mov esi, 0x49a5c8
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x320c]
push 0xfff
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call fcn.004514da
add esp, 0x14
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x451f12
lea eax, [ebp - 0x320c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
je 0x451f12
mov esi, dword [ebp + 0x14]
add eax, eax
shr eax, 1
mov ecx, dword [esi]
dec eax
cmp ecx, eax
jae 0x451edf
mov eax, ecx
mov dword [esi], eax
lea eax, [ebp - 0x120c]
push 0x1000
push eax
lea eax, [ebp - 0x320c]
push eax
call fcn.00453a47
push dword [esi]
lea eax, [ebp - 0x120c]
push eax
push dword [ebp + 0x10]
call fcn.00454222
add esp, 0x18
push 1
pop eax
jmp 0x451f75
xor eax, eax
jmp 0x451f75
push dword [0x410fec]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp + 8], esi
pop ecx
pop ecx
je 0x451f53
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x20c]
push 0x40b0ec
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call esi
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451f7a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3208
call fcn.00466f70
cmp dword [ebp + 0x14], 0xffe
push esi
push edi
jle 0x451f99
xor eax, eax
jmp 0x4520ba
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
cmp dword [0x4111c8], esi
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x45205d
cmp dword [ebp + 8], esi
jne 0x451fcb
mov dword [ebp + 8], 0x40b278
push ebx
push 1
mov dword [ebp + 0x18], esi
call fcn.00451b5b
mov ebx, eax
pop ecx
cmp dword [ebx], esi
je 0x452057
push dword [ebp + 0x14]
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x1208]
push dword [ebp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1208]
push eax
call fcn.0045426d
lea eax, [ebp - 0x3208]
push 0x1000
push eax
lea eax, [ebp - 0x1208]
push eax
call fcn.00453a8b
lea eax, [ebp - 0x3208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x1c
test eax, eax
je 0x452057
mov esi, 0x49a5c8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x3208]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call fcn.00451665
add esp, 0x10
mov dword [ebp + 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x18]
pop ebx
jmp 0x4520ba
push dword [0x410fec]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp + 8], esi
pop ecx
pop ecx
je 0x45209a
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x208]
push 0x40b0ec
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
add esp, 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4520be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], bx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x14]
cmp dword [0x4111c8], ebx
push 1
mov dword [ebp - 8], ecx
stosw word es:[edi], ax
pop eax
mov dword [ebp - 4], eax
je 0x452140
cmp dword [ebp + 8], ebx
jne 0x452104
mov dword [ebp + 8], 0x40b278
push eax
call fcn.00451b5b
mov edi, eax
pop ecx
cmp dword [edi], ebx
je 0x45213c
mov esi, 0x49a5c8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call fcn.004514da
add esp, 0x14
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x4521a0
push dword [0x410fec]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x45217d
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x210]
push 0x40b0ec
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4521a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
cmp dword [0x4111c8], ebx
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x452219
cmp dword [ebp + 8], ebx
jne 0x4521df
mov dword [ebp + 8], 0x40b278
push 1
call fcn.00451b5b
mov edi, eax
pop ecx
cmp dword [edi], ebx
je 0x452215
mov esi, 0x49a5c8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call fcn.00451665
add esp, 0x10
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x45228c
push dword [0x410fec]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x452256
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x208]
push 0x40b0ec
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
add esp, 0x10
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x45226c
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
jmp 0x45226e
add eax, eax
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452291
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
mov esi, 0x81
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], bx
cmp dword [0x4111c8], ebx
rep stosd dword es:[edi], eax
push 4
stosw word es:[edi], ax
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
je 0x452362
cmp dword [ebp + 8], ebx
jne 0x4522da
mov dword [ebp + 8], 0x40b278
push 1
call fcn.00451b5b
mov ebx, eax
pop ecx
cmp dword [ebx], 0
je 0x45235e
and word [ebp - 0x418], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
mov esi, 0x49a5c8
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x418]
push 0x103
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx]
call fcn.004514da
add esp, 0x14
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x45235e
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
je 0x45235e
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
pop ecx
mov ecx, dword [ebp + 0x10]
push 1
mov dword [ecx], eax
pop eax
jmp 0x4523c2
xor eax, eax
jmp 0x4523c2
push dword [0x410fec]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
je 0x45239f
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x210]
push 0x40b0ec
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4523ef
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
cmp dword [0x4111c8], esi
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x45249d
cmp dword [ebp + 8], esi
jne 0x45242a
mov dword [ebp + 8], 0x40b278
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
push ebx
push dword [ebp + 0x10]
stosw word es:[edi], ax
push 0x40d558
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 1
call fcn.00451b5b
mov edi, eax
add esp, 0x14
xor ebx, ebx
cmp dword [edi], esi
je 0x452498
mov esi, 0x49a5c8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call fcn.00451665
add esp, 0x10
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop ebx
jmp 0x4524fa
push dword [0x410fec]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp + 8], esi
pop ecx
pop ecx
je 0x4524da
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x208]
push 0x40b0ec
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
add esp, 0x10
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4525b9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push esi
xor esi, esi
cmp dword [ebp + 0x28], esi
push edi
je 0x4525d8
xor eax, eax
cmp dword [0x4111c8], esi
sete al
jmp 0x4525dd
mov eax, dword [0x4111c8]
cmp eax, esi
je 0x45266c
cmp dword [ebp + 0xc], esi
jne 0x4525f1
mov dword [ebp + 0xc], 0x40b278
push ebx
push 1
pop esi
push esi
call fcn.00451b5b
mov ebx, eax
pop ecx
cmp dword [ebx], 0
je 0x452667
and word [ebp - 0x80], 0
push 0x1f
pop ecx
xor eax, eax
push dword [ebp + 0xc]
lea edi, [ebp - 0x7e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x411c60
lea eax, [ebp - 0x80]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [ebp + 0x1c]
add esp, 0x10
mov edi, 0x49a5c8
push edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x24]
lea eax, [ebp - 0x80]
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebx]
call fcn.004513cb
mov esi, eax
add esp, 0x1c
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop ebx
jmp 0x4526dc
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x286]
mov word [ebp - 0x288], si
push dword [0x410fec]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
cmp dword [ebp + 0xc], esi
pop ecx
pop ecx
je 0x4526c1
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x288]
push 0x40b0ec
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x288]
push eax
call esi
add esp, 0x10
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHEnumValueW]
pop edi
pop esi
leave
ret

Function at 0x4529f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
je 0x452a30
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
je 0x452a30
mov ecx, edi
call fcn.004529db
lea edx, [ebp - 4]
mov ecx, dword [eax]
push esi
push edx
push esi
push dword [ebp + 8]
push esi
push esi
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x452a40
xor eax, eax
jmp 0x452a43
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
jmp 0x452a28
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x452a49
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, ecx
je 0x452afb
mov ecx, 0xad
xor eax, eax
lea edi, [ebp - 0x4bc]
push 1
rep stosd dword es:[edi], eax
mov ax, word [0x469bb8]
mov ecx, 0x81
mov word [ebp - 0x208], ax
xor eax, eax
lea edi, [ebp - 0x206]
push 0x208
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00452d12
push 0x408
lea eax, [ebp - 0x4bc]
push 0x2b4
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x452afb
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x452ad0
xor eax, eax
jmp 0x452ad8
mov eax, dword [esi + 0x18]
sub eax, ecx
sar eax, 2
lea edi, [eax - 1]
test edi, edi
jl 0x452afb
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x2a8]
push ecx
push dword [eax + edi*4]
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x452b03
dec edi
jns 0x452adf
xor eax, eax
pop edi
pop esi
leave
ret 4
push 1
pop eax
jmp 0x452afd

Function at 0x45328c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x453307
push edi
mov ecx, 0xad
xor eax, eax
cmp dword [ebp + 0xc], esi
lea edi, [ebp - 0x2b4]
push 8
rep stosd dword es:[edi], eax
pop eax
pop edi
je 0x4532b9
push 9
pop eax
cmp dword [ebp + 0x18], esi
je 0x4532c3
or ah, 0x40
jmp 0x4532c6
or ah, 1
cmp dword [ebp + 0x10], esi
je 0x4532cd
or al, 2
cmp dword [ebp + 0x14], esi
je 0x4532d7
or eax, 0x10000
push eax
lea eax, [ebp - 0x2b4]
push 0x2b4
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x453307
cmp dword [ebp + 0x18], esi
je 0x4532ff
mov eax, dword [ebp - 0x2b0]
jmp 0x453309
mov eax, dword [ebp - 0x2b4]
jmp 0x453309
xor eax, eax
pop esi
leave
ret 0x14