joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c40
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebx
push esi
push edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c50
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
push str.SoftwareLenovo_
push SysReAllocString
mov dword [esp + 0x20], 0
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402cc7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
lea ecx, [esi + esi + 2]
push ecx
push edx
push 1
push 0
push str.SDiskPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0xc]
push ecx
mov esi, eax
call edi
xor eax, eax
test esi, esi
sete al
test eax, eax
jne 0x402d6b
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareLenovo_
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x402cfb
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov eax, dword [esp + 0x1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402d10
sub eax, edx
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
push str.SoftwareLenovo_
sar eax, 1
push SysReAllocString
mov esi, eax
mov dword [esp + 0x20], 0
call ebx
test eax, eax
jne 0x402d6b
mov ecx, dword [esp + 0xc]
lea eax, [esi + esi]
mov esi, dword [esp + 0x1c]
push eax
push esi
push 1
push 0
push str.SDiskPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0xc]
push edx
call edi
jmp 0x402d6f
mov esi, dword [esp + 0x1c]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402d74
sub eax, edx
sar eax, 1
lea ebx, [eax + eax + 2]
push esi
call fcn.00402480
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x403020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareLenovo_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0x208
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40308c
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
push 0
push str.SDiskPath
push edx
call ebx
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call ebp
xor eax, eax
test esi, esi
sete al
test eax, eax
jne 0x4030f3
lea ecx, [esp + 0xc]
push ecx
push 0x20019
xor esi, esi
push esi
push str.SoftwareLenovo_
push SysReAllocString
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4030db
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push edi
push esi
push esi
push str.SDiskPath
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
mov esi, eax
call ebp
xor edx, edx
test esi, esi
sete dl
mov esi, edx
test esi, esi
jne 0x4030f1
push edi
call fcn.00402da0
add esp, 4
test eax, eax
je 0x4030f1
push edi
call fcn.00402c40
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40ce70
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push esi
push 0
lea eax, [esp + 8]
push eax
push 8
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x7405c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40ceb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb40
mov esi, eax
call fcn.00465690
mov dword [eax], esi
or eax, 0xffffffff
or edx, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
pop esi
add esp, 0x10
ret

Function at 0x40ced0
Capabilities:
Get volume information via ioctl

Disassembly:
sub esp, 0x68
push esi
push 0
lea eax, [esp + 8]
push eax
push 0x60
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x90064
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40cf14
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb40
mov esi, eax
call fcn.00465690
mov dword [eax], esi
or eax, 0xffffffff
or edx, eax
pop esi
add esp, 0x68
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
push eax
push ecx
push 0
push edx
call fcn.00460590
pop esi
add esp, 0x68
ret
Function at 0x40d0d0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
and eax, 3
xor ebp, ebp
sub eax, ebp
push esi
mov esi, ecx
je 0x40d0fb
sub eax, 1
je 0x40d0f4
sub eax, 1
je 0x40d0ed
xor eax, eax
jmp 0x40d100
mov eax, 3
jmp 0x40d100
mov eax, 2
jmp 0x40d100
mov eax, 1
push ebp
push ebp
push 3
push ebp
push 3
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x40d135
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb40
mov esi, eax
call fcn.00465690
mov dword [eax], esi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esi], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x40d16a
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb40
mov edi, eax
call fcn.00465690
mov dword [eax], edi
mov eax, ebx
mov edx, ebx
jmp 0x40d17e
mov edx, dword [esp + 0x10]
push 1
push ebp
push ebp
push edx
call fcn.00460590
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
mov dword [esi + 0x18], eax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x1c], edx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x40d0da
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
and eax, 3
xor ebp, ebp
sub eax, ebp
push esi
mov esi, ecx
je 0x40d0fb
sub eax, 1
je 0x40d0f4
sub eax, 1
je 0x40d0ed
xor eax, eax
jmp 0x40d100
mov eax, 3
jmp 0x40d100
mov eax, 2
jmp 0x40d100
mov eax, 1
push ebp
push ebp
push 3
push ebp
push 3
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x40d135
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb40
mov esi, eax
call fcn.00465690
mov dword [eax], esi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret
push edi
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esi], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x40d16a
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040cb40
mov edi, eax
call fcn.00465690
mov dword [eax], edi
mov eax, ebx
mov edx, ebx
jmp 0x40d17e
mov edx, dword [esp + 0x10]
push 1
push ebp
push ebp
push edx
call fcn.00460590
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
mov dword [esi + 0x18], eax
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x1c], edx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40ee10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
push ebx
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x40ee44
xor eax, eax
pop ebx
add esp, 0xc
ret 0x20
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
call fcn.004604c2
add esp, 4
cmp dword [esp + 0x3c], 0
mov edi, eax
mov dword [esp + 0x30], 0
jbe 0x40ef61
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, esi
neg eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea ecx, [ecx]
mov edx, dword [esp + 0x30]
xor ecx, ecx
add edx, dword [esp + 0x34]
adc ecx, dword [esp + 0x38]
xor eax, eax
push eax
push esi
push ecx
push edx
call fcn.00460590
push 0
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [esp + 0x20]
sub eax, 3
je 0x40ef16
sub eax, 1
jne 0x40ef46
cmp ebp, esi
jle 0x40eecf
mov eax, dword [esp + 0x24]
push esi
push eax
jmp 0x40eedd
test ebp, ebp
jle 0x40ef80
mov ecx, dword [esp + 0x24]
push ebp
push ecx
push edi
call fcn.00460080
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ef46
push edi
call fcn.004603e5
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x20
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebp, esi
jle 0x40ef33
mov ecx, dword [esp + 0x24]
push esi
push edi
push ecx
jmp 0x40ef3e
test ebp, ebp
jle 0x40ef80
mov edx, dword [esp + 0x24]
push ebp
push edi
push edx
call fcn.00460080
add esp, 0xc
mov eax, dword [esp + 0x30]
add ebp, dword [esp + 0x28]
add dword [esp + 0x24], esi
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x3c]
jb 0x40ee80
push edi
call fcn.004603e5
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 0x20
push esi
push 0
push edi
call fcn.00460000
push edi
call fcn.004603e5
add esp, 0x10
jmp 0x40ef6a

Function at 0x40f030
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f08a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x18
Function at 0x40f850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x9c
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa8]
mov ecx, 0x200
mul ecx
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
mov ebx, edx
movzx edx, word [esp + 0xac]
push esi
push edi
add edx, 0xffffff80
push edx
mov edi, eax
lea eax, [esp + 0x2c]
push str..PHYSICALDRIVE_d
push eax
mov edx, 0x80
call fcn.0040efa0
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f92e
movzx eax, word [esp + 0xb0]
sub eax, 3
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
je 0x40f906
sub eax, 1
jne 0x40f927
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
shl ecx, 9
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40f923
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
shl ecx, 9
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40f932
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40f93e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00460c80
add esp, 0x9c
ret 0x14
Function at 0x40f960
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b7b70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], 0
test ebx, ebx
je 0x40f9bc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x40f9bc
lea eax, [edi + edi]
call fcn.00460c90
mov esi, esp
test esi, esi
je 0x40f9bc
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
push 3
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40f9be
xor eax, eax
push 0
push 0
push 3
push 0
push 7
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40fac9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov dword [ecx], eax
div ebx
mov esi, eax
add esi, 2
shl esi, 4
push esi
call fcn.004604c2
mov ecx, dword [ebp - 0x10]
add esp, 4
mov edi, eax
xor eax, eax
push eax
lea edx, [ebp - 0x28]
push edx
push esi
push edi
push 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push 0x90073
push ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40fab6
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
xor edx, edx
lea eax, [eax + ebx - 1]
div ebx
mov ecx, dword [ebp + 0x10]
lea edx, [eax*8]
push edx
mov dword [ecx], eax
call fcn.004604c2
mov ebx, dword [edi + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
add esp, 4
xor ecx, ecx
test eax, eax
jbe 0x40fab6
add edi, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
sub eax, ebx
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
je 0x40faa2
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
cmp ecx, dword [ebp - 0x14]
jae 0x40fa96
mov ebx, dword [ebp - 8]
mov dword [ebx + ecx*8], edx
mov dword [ebx + ecx*8 + 4], esi
dec eax
inc ecx
add edx, 1
adc esi, 0
test eax, eax
jne 0x40fa87
mov edx, dword [edi + 4]
mov ebx, dword [edi]
add edi, 0x10
sub dword [ebp - 0xc], 1
mov dword [ebp - 0x14], edx
jne 0x40fa73
mov edi, dword [ebp - 0x1c]
push edi
call fcn.004603e5
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c80
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410110
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4b7b70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
inc eax
lea ebx, [eax + eax*2]
add ebx, ebx
add ebx, ebx
push ebx
mov dword [ebp - 0x410], ebx
call fcn.0043d51e
mov esi, eax
add esp, 4
test esi, esi
je 0x41023e
mov dword [esi], 0
mov dword [esi], 0x34532008
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
push ecx
push edx
lea eax, [esi + 0xc]
push eax
call fcn.00460080
add ebx, 0xfffffff8
lea eax, [esi + 8]
push ebx
push eax
call fcn.0042dec0
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0x40a]
mov dword [esi + 4], eax
push edx
mov word [ebp - 0x40c], cx
call fcn.00460000
add esp, 0x20
push 0x200
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov cl, byte [ebp - 0x40c]
xor eax, eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov al, 0x5c
lea edx, [ebp - 0xc]
push edx
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], al
mov byte [ebp - 8], cl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4101f8
xor eax, eax
jmp 0x41020f
lea eax, [ebx + ebx]
call fcn.00460c90
mov eax, esp
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0040f3e0
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [ebp - 0x410]
push ecx
push edx
push esi
push eax
push 4
mov ecx, edi
call fcn.0040ee10
push esi
mov edi, eax
call fcn.0043d529
add esp, 4
mov eax, edi
lea esp, [ebp - 0x41c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c80
mov esp, ebp
pop ebp
ret
Function at 0x410304
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x410328
mov eax, 1
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00460c80
add esp, 0x804
ret
push edi
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x412]
push ecx
mov word [esp + 0x414], ax
call fcn.00460000
add esp, 0xc
push 0x200
lea edx, [esp + 0x40c]
push edx
mov ecx, esi
call fcn.0040f460
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.NTUSER.DAT
lea eax, [esp + 0x40c]
push eax
call edi
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.00460000
add esp, 0xc
push 1
push 0x1a
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x49bc48
lea ecx, [esp + 0xc]
push ecx
call edi
push str.NTUSER.DAT
lea edx, [esp + 0xc]
push edx
call edi
lea eax, [esp + 0x408]
push eax
mov ecx, esi
call fcn.0040f260
mov dword [esi + 0xc], eax
pop edi
test eax, eax
jne 0x4103db
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.0040f260
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
call fcn.00460c80
add esp, 0x804
ret
Function at 0x410540
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x483c88
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b7b70]
xor eax, ebp
mov dword [ebp + 0x22c], 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 + 0x238]
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
inc eax
lea ebx, [eax + eax*2]
add ebx, ebx
add ebx, ebx
push ebx
call fcn.0043d51e
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4106a6
mov dword [esi], 0
mov dword [esi], 0x34532008
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov eax, dword [edi + 8]
lea edx, [eax + eax*2]
mov eax, dword [edi + 4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [esi + 0xc]
push ecx
call fcn.00460080
lea edx, [ebx - 8]
push edx
lea eax, [esi + 8]
push eax
call fcn.0042dec0
mov edi, dword [ebp - 0x14]
add esp, 0x14
push edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call fcn.0043d9ce
push 0
push 0x9002
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0043ddcb
test eax, eax
je 0x410630
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0043d704
lea ecx, [ebp - 0x28]
call fcn.0043d968
mov dword [ebp - 0x14], 1
push 0x22c
lea eax, [ebp]
push 0
push eax
call fcn.00460000
add esp, 0xc
lea ecx, [ebp]
push ecx
push edi
call fcn.0043e249
test eax, eax
je 0x41065f
or byte [ebp + 0x20], 6
lea edx, [ebp]
push edx
push edi
call fcn.0043e420
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0043daa9
jmp 0x41069a
push esi
call fcn.0043d529
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.00460c80
add ebp, 0x230
mov esp, ebp
pop ebp
ret 4

Function at 0x4108d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4108e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410924
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x410920
lea ebx, [ebx]
cmp esi, eax
jae 0x410924
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x410910
cmp esi, eax
jb 0x41092a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x411e40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x483d8e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.0043fe36
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [esi], vtable.CBroListCtrl.0
lea ebp, [esi + 0x54]
call fcn.0044602e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x411e99
push 0x80004005
call fcn.004108b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x20], 1
lea edi, [esi + 0x58]
call fcn.0044602e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x411eca
push 0x80004005
call fcn.004108b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push ebx
push 0x49c0a0
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.004114c0
mov ecx, dword [edi]
push ebx
push ebx
push ecx
push ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
mov ecx, ebp
call fcn.00411940
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x412380
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x483e48
mov eax, dword fs:[0]
push eax
sub esp, 0xaf8
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0xaf4], eax
push esi
push edi
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0xb04]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0xb14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea ecx, [esp + 0x304]
push ecx
mov dword [esp + 0xb14], 0
call edi
push 0x49c0a0
lea ecx, [esp + 0x10]
call fcn.00411f70
push 0x701
push 4
lea edx, [esp + 0x54]
push edx
push 0
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x304]
push edx
call edi
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x704]
push ecx
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x10]
push eax
push 0
push 0x104d
push ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0x489c88
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 1
call edi
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x104c
lea edx, [esp + 0x70c]
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x34], edx
call edi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4124c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xb14]
add eax, 0xfffffff0
mov dword [esp + 0xb0c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4124f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xb04]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xaf4]
xor ecx, esp
call fcn.00460c80
add esp, 0xb04
ret 4