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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x40c], 1
call fcn.0102d126
test eax, eax
jne 0x1028ee7
cmp dword [ebp + 8], esi
push ebx
setne al
push edi
push dword [ebp + 8]
mov dword [ebp - 0x40c], eax
call fcn.010288dd
push esi
lea eax, [ebp - 0x408]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10023f8
mov ebx, 0x80000002
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1028b93
push 4
lea eax, [ebp - 0x40c]
push eax
push 4
push esi
push 0x10023dc
push dword [ebp - 0x408]
call edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x408]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x1003160
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1028be5
cmp dword [ebp - 0x40c], esi
push 4
sete al
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x410]
push eax
push 4
push esi
push 0x100314c
push dword [ebp - 0x408]
call edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x408]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x10030b8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1028c28
push 4
lea eax, [ebp - 0x40c]
push eax
push 4
push esi
push 0x10030a4
push dword [ebp - 0x408]
call edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x408]
push eax
push esi
push 3
push esi
push esi
jmp 0x10477d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret 4
Function at 0x102980a
Capabilities:
Create process on windows
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2238
call fcn.0102dfa0
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x1002590
inc edi
push 0x80000002
mov dword [ebp - 0x2210], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor esi, esi
test eax, eax
je 0x102984a
mov dword [ebp - 0x2210], esi
lea eax, [ebp - 0x2214]
push eax
push 3
push esi
push 0x10039a8
push 0x80000001
mov dword [ebp - 0x2214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102988b
push 0x1003990
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010302a3
test eax, eax
je 0x10298ec
push 0x1003974
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.01027f1e
test eax, eax
jl 0x10298ec
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e8b9
test eax, eax
je 0x10298ec
push 0xa
push esi
push 0x1003964
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
je 0x10298ec
mov dword [ebp - 0x2210], esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2218], eax
cmp eax, esi
je 0x10299d9
push ebx
push 0x27
push 0x1003948
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
jmp 0x1048b58
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2210]
pop edi
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret
Function at 0x1029d8f
Capabilities:
Extract resource via kernel32 functions
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x624], 0
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.01029b84
test eax, eax
je 0x1029fff
or dword [ebp - 0x620], 0xffffffff
push ebx
mov dword [ebp - 0x628], 0xc
mov esi, 0x208
push edi
mov eax, dword [ebp - 0x620]
cmp eax, 0xa
ja case.default.0x1029df4
jmp dword [eax*4 + 0x102a02f]
mov edi, 0x100403c
push 0x1003ff8
jmp 0x1029e8c
mov edi, 0x1003fd8
push 0x1003f98
jmp 0x1029e8c
mov edi, 0x1003f7c
push 0x1003f38
jmp 0x1029e8c
mov edi, 0x1003f18
push 0x1003ed0
jmp 0x1029e8c
mov edi, 0x1003eb4
push 0x1003e74
jmp 0x1029e8c
mov edi, 0x1003e58
push 0x1003e18
jmp 0x1029e8c
mov edi, 0x1003dfc
push 0x1003dbc
jmp 0x1029e8c
mov edi, 0x1003da0
push 0x1003d6c
jmp 0x1029e8c
mov edi, 0x1003d50
push 0x1003d34
jmp 0x1029e8c
mov edi, 0x1003d18
push 0x1003cf8
jmp 0x1029e8c
mov edi, 0x1003cdc
push 0x1003cc0
jmp 0x1029e8c
mov edi, 0x1003ca4
push 0x1003c64
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01027ea2
push 0x17
push edi
push dword [0x10405bc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1029f56
push ebx
push dword [0x10405bc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x630], eax
test eax, eax
je 0x1029f56
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1003c50
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.01027f9f
add esp, 0x14
test eax, eax
jl 0x1029f56
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1029f56
and dword [ebp - 0x62c], 0
push ebx
push dword [0x10405b0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 0x62c]
push ecx
push eax
jmp 0x1047898
inc dword [ebp - 0x620]
dec dword [ebp - 0x628]
jne 0x1029de5
xor esi, esi
pop edi
pop ebx
cmp dword [ebp - 0x624], esi
je 0x1029fff
push esi
lea eax, [ebp - 0x620]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x10026c8
push 0x80000001
mov dword [ebp - 0x620], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102a015
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1029fa9
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push esi
push 0x1002690
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1029ff1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003c08
push 2
call fcn.01039f55
add esp, 0xc
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102a015
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003bcc
push 2
call fcn.01039f55
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret
Function at 0x102a0b4
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x63c]
push eax
push ebx
xor esi, esi
inc esi
push esi
push ebx
push ebx
push ebx
push 0x10026c8
push 0x80000001
mov dword [ebp - 0x620], ebx
mov dword [ebp - 0x63c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102a681
push 0x206
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x658]
push eax
push ebx
push 0x1002690
push dword [ebp - 0x63c]
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x674], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102a675
cmp dword [ebp - 0x658], esi
jne 0x102a675
cmp ax, word [ebp - 0x414]
je 0x102a675
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x644]
push eax
push 0x1003a5c
push esi
push ebx
push 0x1003a4c
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x630], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x102a62f
mov eax, dword [ebp - 0x644]
mov ecx, dword [eax]
lea edx, [ebp - 0x638]
push edx
push 0x10041cc
push eax
call dword [ecx]
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x102a62f
mov eax, dword [ebp - 0x638]
mov ecx, dword [eax]
lea edx, [ebp - 0x640]
push edx
push eax
call dword [ecx + 0x40]
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x102a62f
mov eax, dword [ebp - 0x640]
mov ecx, dword [eax]
lea edx, [ebp - 0x630]
push edx
push 0x10041bc
push eax
call dword [ecx]
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x102a62f
mov eax, dword [ebp - 0x630]
cmp eax, ebx
je 0x102a63f
lea edx, [ebp - 0x62c]
push edx
mov dword [ebp - 0x62c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
cmp eax, ebx
mov dword [ebp - 0x620], eax
jl 0x102a613
mov esi, dword [ebp - 0x62c]
push 0x10041b0
lea ecx, [ebp - 0x660]
call fcn.01027e1f
cmp byte [eax + 4], bl
je 0x102a278
mov dword [ebp - 0x624], ebx
jmp 0x102a28e
mov eax, dword [eax]
mov dword [ebp - 0x624], eax
cmp eax, ebx
jne 0x102a28e
mov dword [ebp - 0x624], 0x1002720
push edi
push 0x10041a0
lea ecx, [ebp - 0x654]
call fcn.01027e1f
cmp byte [eax + 4], bl
je 0x102a2a8
xor edi, edi
jmp 0x102a2b5
mov eax, dword [eax]
mov edi, eax
cmp eax, ebx
jne 0x102a2b5
mov edi, 0x1002720
push 0x100418c
lea ecx, [ebp - 0x64c]
Function at 0x102bb1f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x1004d50
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102bb9c
push esi
push dword [ebp + 8]
push 0x1004d3c
push dword [ebp - 4]
call fcn.0102f670
mov esi, eax
cmp esi, edi
je 0x102bb92
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x102bb67
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret 4

Function at 0x102bc9b
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1880
call fcn.0102dfa0
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x1870], 0
mov dword [ebp - 0x1874], eax
test eax, eax
je 0x102c0b9
xor ecx, ecx
cmp cx, word [eax]
je 0x102c0b9
push ebx
push esi
push edi
mov esi, 0x104
mov ebx, 0x1040c60
cmp dword [0x1040c58], ecx
jne 0x102bda8
xor eax, eax
inc eax
push esi
push eax
push ebx
mov dword [0x1040c58], eax
call fcn.010302a3
mov edi, 0x1004e58
test eax, eax
je 0x102bd35
push ebx
call fcn.0102e61a
push 0x1002774
push esi
push ebx
call fcn.01027edd
push esi
push 0x1040a50
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x102bd49
push edi
push esi
push 0x1040a50
jmp 0x102bd44
push edi
push esi
push 0x1040a50
call fcn.01027e68
push edi
push esi
push ebx
call fcn.01027e68
push esi
push 0x1040848
call fcn.0102d1f5
test eax, eax
je 0x102bd90
push 0x1040848
call fcn.0102e61a
push 0x1002774
push esi
push 0x1040848
call fcn.01027edd
push esi
push 0x1040640
push 0x1040848
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x102bda8
push edi
push esi
push 0x1040640
jmp 0x102bda3
push edi
push esi
push 0x1040640
call fcn.01027e68
push edi
push esi
push 0x1040848
call fcn.01027e68
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x102c0ae
push dword [ebp - 0x1874]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x102c0a1
lea eax, [ebp - 0x186c]
push eax
push 0x1004e4c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x187c], eax
cmp eax, 0xffffffff
je 0x102bf8a
lea eax, [ebp - 0x1878]
push eax
push 0x100c3c8
push 1
push 0
push 0x100c3d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x102bf7e
mov eax, dword [ebp - 0x1878]
mov ecx, dword [eax]
lea edx, [ebp - 0x1880]
push edx
push 0x100c3f8
push eax
call dword [ecx]
test eax, eax
jl 0x102bf72
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
xor eax, eax
Function at 0x102c0ce
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x102c293
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102c0f4
push ebx
push esi
sub eax, edx
sar eax, 1
push edi
mov esi, eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01027e68
test eax, eax
jl 0x102c291
test esi, esi
je 0x102c151
movzx eax, word [edi + esi*2 - 2]
cmp ax, 0x3a
je 0x102c151
cmp ax, 0x5c
je 0x102c151
push 0x1004e20
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
test eax, eax
jl 0x102c291
inc esi
lea eax, [esi + 2]
cmp eax, ebx
ja 0x102c291
push 0x1002fc4
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
test eax, eax
jl 0x102c291
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
cmp eax, 0xffffffff
je 0x102c291
push 4
lea edi, [ebp + esi*2 - 0x20c]
pop esi
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102c1b1
sub eax, edx
sar eax, 1
lea eax, [ebp - 0x228]
jne 0x102c1cd
lea eax, [ebp - 0x430]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
test eax, eax
jl 0x102c285
test byte [ebp - 0x45c], 0x10
je 0x102c26a
mov ecx, 0x1002b50
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x102c21b
test dx, dx
je 0x102c217
jmp 0x1047bb8
xor eax, eax
jmp 0x102c220
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x102c26a
mov ecx, 0x1004e24
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x102c253
test dx, dx
je 0x102c24f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x102c253
add eax, esi
add ecx, esi
test dx, dx
jne 0x102c22f
xor eax, eax
jmp 0x102c258
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x102c26a
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.0102bc9b
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x102c1a3
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102df7d
leave
ret 4
Function at 0x102d126
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
push esi
push esi
push 4
mov dword [ebp - 0x208], esi
call fcn.0102fffb
test eax, eax
je 0x102d1e3
push edi
lea eax, [ebp - 0x208]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x10050a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102d1e0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1005088
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 0x200
mov dword [ebp - 0x20c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102d1d4
cmp dword [ebp - 0x20c], edi
jne 0x102d1d4
lea eax, [ebp - 0x204]
push 0x100507c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x102d1d4
mov esi, edi
jmp 0x1048900
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret

Function at 0x102d1f5
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
push 0x2a
push eax
xor edi, edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x102d24b
push 0x1002f08
lea eax, [ebp - 0x20c]
push eax
push 0x10031d4
push dword [ebp + 0xc]
push esi
call fcn.01027f64
add esp, 0x14
test eax, eax
jl 0x102d24b
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret 8
Function at 0x102d7b3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x348], esi
mov dword [ebp - 0x33c], edi
cmp esi, edi
je 0x102d8fb
push dword [ebp + 0xc]
push esi
push dword [ebp + 0x10]
call fcn.0102d2ab
test eax, eax
je 0x102d8fb
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], edi
je 0x102d81f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x15
push dword [0x10405b0]
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x102d8df
lea eax, [ebp - 0x33c]
push eax
push ebx
push edi
push 0x1005100
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102d8fb
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x96
lea eax, [ebp - 0x338]
push eax
push 0x23
push dword [0x10405b0]
mov dword [ebp - 0x344], 0x208
xor esi, esi
mov dword [ebp - 0x340], ebx
call edi
test eax, eax
je 0x102d8c9
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x340]
push eax
push esi
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102d8ab
cmp dword [ebp - 0x340], ebx
jne 0x102d8ab
mov esi, ebx
jmp 0x102d8c9
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x15
push dword [0x10405b0]
call edi
mov esi, eax
neg esi
sbb esi, esi
neg esi
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x102d8fb
jmp 0x1049008
push esi
call fcn.0102e61a
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call fcn.01027f1e
mov eax, ebx
jmp 0x102d8fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 0xc
Function at 0x102db78
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x102db9c
xor eax, eax
jmp 0x102dc50
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, eax
test esi, esi
jl 0x102dc48
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, 0x19
add eax, 6
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, eax
test esi, esi
jl 0x102dc1b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x102dc04
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.01027ea2
mov esi, eax
jmp 0x102dc09
mov esi, 0x80004005
mov eax, dword [ebp - 0x210]
push dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jl 0x102dc48
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102dc30
sub eax, edx
sar eax, 1
cmp eax, 8
jae 0x102dc48
mov esi, 0x80004005
xor eax, eax
test esi, esi
setge al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102df7d
leave
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x102e8db
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102e8db
test al, 0x10
jne 0x102e8db
xor eax, eax
inc eax
jmp 0x102e8dd
xor eax, eax
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x102e920
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x102e920
push dword [ebp + 8]
and dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x102e90f
push 2
pop eax
jmp 0x102e925
test eax, 0x800
je 0x102e91c
mov dword [esi], 1
xor eax, eax
jmp 0x102e925
mov eax, 0xa0
pop esi
pop ebp
ret 8
Function at 0x102e92f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x198]
xor ebx, ebx
push eax
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x1a4], 0x80
mov dword [ebp - 0x1a0], 1
mov dword [ebp - 0x198], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x102e983
xor edx, edx
jmp 0x102eaa8
push esi
mov esi, dword [ebp - 0x194]
xor eax, eax
shld eax, esi, 0x10
mov eax, dword [ebp - 0x190]
shl esi, 0x10
or esi, eax
cmp dword [ebp - 0x188], 2
lea eax, [ebp - 0x19c]
push eax
push 1
mov dword [ebp - 0x1ac], ebx
push ebx
jne 0x102ea2d
push 0x10054f0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102ea9f
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push 0x10054c4
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102ea93
cmp dword [ebp - 0x1a0], 1
jne 0x102ea93
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov ecx, 0x10000
mov dword [ebp - 0x1a4], eax
mul ecx
add dword [ebp - 0x1ac], eax
adc esi, edx
jmp 0x102ea93
push 0x1005470
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102ea9f
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1a0]
push eax
push ebx
push 0x1005450
push dword [ebp - 0x19c]
mov dword [ebp - 0x1a4], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102ea93
cmp dword [ebp - 0x1a0], 1
jne 0x102ea93
lea eax, [ebp - 0x84]
push eax
call fcn.0102e72d
mov dword [ebp - 0x1ac], eax
mov esi, edx
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1ac]
mov edx, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret

Function at 0x102eb79
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x1005568
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x102ebc2
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push 0x100554c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x102f1be
Capabilities:
Copy file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0
jne 0x102f1d2
xor eax, eax
jmp 0x102f288
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x4000
test edi, eax
je 0x102f22c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
call fcn.0102e5ab
test eax, eax
je 0x102f224
push 0
push dword [ebp + 8]
call dword [ebp - 8]
test eax, eax
jne 0x102f224
call ebx
push eax
push dword [ebp + 0xc]
push 0x10056e4
push 2
call fcn.01039f55
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.0102e597
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call esi
test edi, eax
je 0x102f282
xor esi, esi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0102e5ab
test eax, eax
je 0x102f27a
push esi
push dword [ebp + 0xc]
call dword [ebp - 8]
test eax, eax
jne 0x102f27a
call ebx
push eax
push dword [ebp + 0xc]
push 0x10056e4
push 2
call fcn.01039f55
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.0102e597
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10