joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e9ae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push edi
push dword [ebp + 8]
mov edi, ecx
push 0x20
push dword [edi + 0x30]
mov dword [edi + 0x4c], eax
call fcn.0100704a
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x100ea95
push ebx
push esi
lea esi, [edi + 0x50]
push esi
push dword [ebp + 0xc]
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x100ea8a
mov ecx, dword [esi]
cmp word [ecx], bx
mov eax, dword [ebp - 4]
lea esi, [edi + 0x48]
push esi
push 0x1006e08
jne 0x100ea10
mov ecx, dword [eax]
push eax
call dword [ecx]
jmp 0x100ea18
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x14]
cmp eax, ebx
jl 0x100ea8a
mov eax, dword [esi]
cmp eax, ebx
je 0x100ea8a
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push 0xe0
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x100ea8a
jmp 0x100ea6d
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.01011690
test eax, eax
je 0x100ea64
push dword [ebp - 0x18]
call fcn.0100e15c
test eax, eax
jne 0x100ea64
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0100e668
push dword [ebp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0x10]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x100ea38
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
pop ebx
pop edi
leave
ret 0xc

Function at 0x100eedb
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0xea
mov ecx, dword [ebp - 4]
je 0x100ef14
cmp ecx, dword [esi + 4]
jbe 0x100ef3b
push ecx
mov ecx, esi
call fcn.0100eea3
test eax, eax
je 0x100ef7b
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, eax
sub ecx, 0
je 0x100ef5b
dec ecx
dec ecx
jne 0x100ef72
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x100ef72
xor eax, eax
jmp 0x100ef72
push dword [ebp - 4]
mov esi, dword [esi]
push esi
push dword [ebp - 8]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
pop edi
pop esi
leave
ret 0x10
Function at 0x100f4c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x84
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push ebx
push 0x1004ea0
lea eax, [ebp - 0xc]
push 0x40
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
and dword [ebp + 0x74], 0
add esp, 0x10
lea eax, [ebp + 0x74]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x58]
push dword [eax + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
sub eax, 0
jne 0x100f510
inc ebx
jmp 0x100f4d9
dec eax
dec eax
je 0x100f518
xor eax, eax
jmp 0x100f524
lea eax, [ebp - 0xc]
push eax
lea ecx, [esi + 0x1c]
call fcn.010088f8
pop esi
pop ebx
add ebp, 0x78
leave
ret

Function at 0x100f4ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x84
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
push ebx
push 0x1004ea0
lea eax, [ebp - 0xc]
push 0x40
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
and dword [ebp + 0x74], 0
add esp, 0x10
lea eax, [ebp + 0x74]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x58]
push dword [eax + 0x54]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
sub eax, 0
jne 0x100f510
inc ebx
jmp 0x100f4d9
dec eax
dec eax
je 0x100f518
xor eax, eax
jmp 0x100f524
lea eax, [ebp - 0xc]
push eax
lea ecx, [esi + 0x1c]
call fcn.010088f8
pop esi
pop ebx
add ebp, 0x78
leave
ret

Function at 0x10104d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
and word [ebx], 0
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x1010572
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1010571
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x101056a
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x10051a4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x101056a
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ebx
push ecx
push eax
push edi
call fcn.01010471
test eax, eax
jne 0x101056a
push dword [ebp + 0x10]
mov esi, 0x409
push ebx
push 0x40e
push esi
push edi
call fcn.01010471
test eax, eax
jne 0x101056a
push dword [ebp + 0x10]
push ebx
push eax
push esi
push edi
call fcn.01010471
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x101075a
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x60c
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x1005204
push 0x200
lea eax, [esp + 0x224]
push eax
mov ebp, 0x1002608
push ebp
push 0
mov ebx, 0x1005250
push ebx
mov dword [esp + 0x28], ecx
call edi
cmp word [esp + 0x21c], 0
lea esi, [esp + 0x21c]
je 0x10107fd
push 0x1005240
push esi
call fcn.01015c6b
test eax, eax
je 0x10107ec
cmp word [esi + 2], 0
jne 0x10107ca
movzx eax, word [esi]
cmp eax, 0x48
je 0x10107ec
cmp eax, 0x56
jle 0x10107ca
cmp eax, 0x59
jle 0x10107ec
push 0x1005204
push 0x104
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push ebx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.01010656
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x10107a2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60c
ret
Function at 0x1010bb1
Capabilities:
Get common file path
Get file system object information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
push eax
push 0x1005584
lea edi, [esi + 0x214]
push 8
push edi
mov dword [esi + 4], eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x1010c0b
lea ecx, [ebp + 0x10]
push ecx
lea eax, [esi + 0xc]
push eax
lea ebx, [esi + 8]
push ebx
push 0
push edi
push dword [ebp + 0xc]
mov dword [ebp + 0x10], 0x208
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
test eax, eax
je 0x1010c18
or dword [esi + 0xc], 0xffffffff
lea ebx, [esi + 8]
mov dword [ebx], 4
and dword [ebp + 0xc], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1005490]
and dword [ebp + 8], 0
test eax, eax
mov dword [ebp + 0x10], eax
jl 0x1010c4a
lea ecx, [ebp + 8]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1010cbc
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x1010c56
add eax, 0x400
jmp 0x1010c59
push 0x25
pop eax
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
push dword [0x1019774]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x143
push dword [esi]
call edi
test eax, eax
mov dword [ebp - 4], eax
jl 0x1010cb3
push dword [ebp + 0x10]
push eax
push 0x151
push dword [esi]
call edi
cmp dword [ebx], 4
jne 0x1010cb3
mov eax, dword [ebp + 0x10]
cmp dword [esi + 0xc], eax
jne 0x1010cb3
push 0
push dword [ebp - 4]
push 0x14e
push dword [esi]
call edi
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add dword [ebp + 0xc], 4
cmp dword [ebp + 0xc], 0x38
jb 0x1010c22
push 0
push 0
push 0x147
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x1010d3f
mov ebx, dword [ebx]
dec ebx
je 0x1010d33
sub ebx, 3
jne 0x1010d3f
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1010d3f
push 0x208
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x1010d28
lea eax, [ebp - 0x2ac]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1010d3f
lea eax, [esi + 0xc]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1010d48
Capabilities:
Delete registry value
Get graphical window text
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov esi, ecx
push 0x147
push dword [esi]
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1010dd6
push 0x104
lea ebx, [esi + 0xc]
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebx], 0
jne 0x1010d9b
push 0x104
push ebx
push 0x25
push dword [0x1019774]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0
push 0
push 0x146
push dword [esi]
call edi
mov ebx, eax
dec ebx
js 0x1010e16
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x148
push dword [esi]
call edi
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1010dd6
dec ebx
jns 0x1010dad
test ebx, ebx
jl 0x1010e16
push 0
push ebx
push 0x150
push dword [esi]
call edi
add esi, 0x214
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1010e0a
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1010e2e
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1010e2e
push 0
lea eax, [esi + 0xc]
push eax
add esi, 0x214
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHRegSetPathW]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10113df
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea esi, [edi + 0x10]
push esi
push 0x16
lea eax, [ebp - 0x328]
push eax
push ebx
call fcn.010155fa
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1011414
test al, 0x10
je 0x101141c
and word [ebp - 0x2d0], 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x1011454
lea eax, [ebp - 0x2d0]
push eax
push 0x20
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 1
push 0x401
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push ebx
call fcn.01011225
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10116ea
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [ebp + 8]
or eax, 0x4010
push eax
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0x10
push 0x10199a0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
leave
ret 4
Function at 0x101197c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
cmp edi, 2
jb 0x1011992
mov word [ebx], si
cmp dword [ebp + 8], esi
je 0x10119d0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010118ea
test eax, eax
jne 0x10119d0
lea eax, [ebp + 0x18]
push eax
push ebx
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp + 0x18], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x1011a92
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x1011c0d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
mov eax, dword [esi]
push dword [eax]
call fcn.010118ea
mov edi, eax
test edi, edi
jne 0x1011c46
push dword [esi + 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1011c54
cmp edi, 2
je 0x1011c54
cmp edi, 3
je 0x1011c54
xor eax, eax
jmp 0x1011c57
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x1011efd
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push 0x1005850
push dword [ebp + 8]
lea eax, [ebp - 0x414]
mov ebx, ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x1011fd4
push esi
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
mov edi, 0x1005834
je 0x1011f67
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1005828
push edi
call dword [sym.imp.SHLWAPI.dll_Ordinal_295]
push dword [ebx + 0xc]
lea eax, [ebp - 0x20c]
push 0x10056c0
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100580c
push edi
call ebx
push esi
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, 0x400
push eax
push dword [0x1019774]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10057e8
push edi
call ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101357e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101361c
mov eax, dword [ebp - 4]
push edi
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0xc], edi
je 0x101361b
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1013612
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x3b
mov esi, edi
push edi
jmp 0x10135fb
and word [edi], 0
cmp word [esi], 0
je 0x10135f5
mov ecx, dword [ebp - 8]
push esi
call fcn.0101352d
lea esi, [edi + 2]
push 0x3b
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x10135e2
cmp word [esi], ax
pop ebx
je 0x1013612
mov ecx, dword [ebp - 8]
push esi
call fcn.0101352d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
leave
ret 8

Function at 0x1013671
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov ebx, ecx
xor esi, esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push dword [esi + 0x1006888]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10136ac
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebx + 0x4c]
call fcn.0101352d
add esi, 4
cmp esi, 0x10
jb 0x1013680
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1006800
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10136fc
push 0x10067e0
push dword [ebp - 4]
lea ecx, [ebx + 0x58]
call fcn.0101357e
push 0x10067c0
push dword [ebp - 4]
lea ecx, [ebx + 0x64]
call fcn.0101357e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
Function at 0x1013eee
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
push 1
push 0x2d
lea eax, [ebp - 0x418]
push eax
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1013fa0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push eax
push 0x1006948
mov dword [ebp - 4], eax
mov ebx, 0x104
lea eax, [ebp - 0x210]
push ebx
push eax
call esi
add esp, 0x14
lea ecx, [ebp - 0x210]
push ecx
lea eax, [edi + 0x442]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x418]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x1013f9a
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1013fa9
push dword [ebp + 8]
inc dword [ebp - 4]
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push 0x1006948
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x1013f61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
inc eax
jmp 0x1013fa2

Function at 0x1013fae
Capabilities:
Copy file

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
mov ecx, esi
call fcn.01013eee
test eax, eax
je 0x1013feb
push edi
xor edi, edi
inc edi
push edi
lea eax, [esi + 0x442]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1013fea
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
pop edi
mov eax, dword [esi + 0xc]
pop esi
ret 4

Function at 0x10140af
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, dword [ebp + 8]
push edi
push 0x4411
push 0x2b4
lea eax, [ebp - 0x2b4]
push eax
push 0
lea eax, [esi + 0x24]
push eax
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x10140fd
push dword [esi + 0x1c]
lea eax, [ebp - 0xa0]
push dword [ebp - 0x2b0]
mov ecx, edi
push eax
push esi
call fcn.0100db30
xor eax, eax
inc eax
jmp 0x10140ff
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x1014334
Capabilities:
Delete file

Disassembly:
cmp dword [ecx + 0xc], 0
mov dword [ecx], 0x10069e0
je 0x101434d
add ecx, 0x442
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x1014830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 5
push dword [edi + 0xc]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10148ce
push ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x10]
push ebx
mov dword [esi + 0x14], eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10148ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esi + 0x10], eax
je 0x10148ce
cmp word [eax + 2], 0xffff
jne 0x10148a2
cmp word [eax], 1
jne 0x10148ce
lea ecx, [eax + 0xc]
mov dword [esi + 0x18], ecx
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
movsx ecx, word [eax + 0x16]
mov dword [esi], ecx
movsx ecx, word [eax + 0x18]
add eax, 0x1a
jmp 0x10148b7
mov dword [esi + 0x18], eax
mov ecx, dword [eax]
mov dword [esi + 8], ecx
movsx ecx, word [eax + 0xe]
mov dword [esi], ecx
movsx ecx, word [eax + 0x10]
add eax, 0x12
push eax
mov dword [esi + 4], ecx
call fcn.0101480a
push eax
call fcn.0101480a
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
jmp 0x10148d0
xor eax, eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x10156a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push dword [0x1019774]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10156ec
push eax
push dword [0x1019774]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10156ec
and edi, 0xf
je 0x10156e8
dec edi
movzx eax, word [esi]
lea esi, [esi + eax*2 + 2]
jne 0x10156de
test esi, esi
jne 0x10156f1
mov esi, 0x1002608
movzx eax, word [esi]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x101571d
movzx ecx, word [esi]
shl ecx, 1
mov edx, ecx
shr ecx, 2
add esi, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 4
Function at 0x1015876
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 2
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x1015999
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1015999
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [ebp + 8]
mov esi, eax
mov word [ebp - 0x14], 0x4d42
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, 0xe
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], bx
mov word [ebp - 0xc], bx
mov eax, dword [esi]
cmp eax, 0xc
je 0x1015913
cmp eax, 0x28
jne 0x1015998
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x101590a
mov cx, word [esi + 0xe]
cmp cx, 8
ja 0x10158fd
xor eax, eax
inc eax
shl eax, cl
jmp 0x101590a
cmp dword [esi + 0x10], 3
jne 0x1015908
push 3
pop eax
jmp 0x101590a
xor eax, eax
lea eax, [eax*4 + 0x36]
jmp 0x1015928
mov cx, word [esi + 0xa]
push 8
pop eax
cmp cx, ax
ja 0x1015924
xor eax, eax
inc eax
shl eax, cl
lea eax, [eax + eax*2 + 0x1a]
cmp eax, ebx
mov dword [ebp - 0xa], eax
je 0x1015998
push ebx
push ebx
push 2
push ebx
push 3
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1015998
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp + 8]
push eax
push 0xe
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
test eax, eax
je 0x1015991
cmp dword [ebp + 8], 0xe
jne 0x1015991
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x12]
add eax, 0xfffffff2
push eax
push esi
push ebx
call edi
test eax, eax
je 0x1015991
mov eax, dword [ebp - 0x12]
add eax, 0xfffffff2
cmp dword [ebp + 8], eax
jne 0x1015991
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc