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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x38c]
push eax
push ebx
push 0x2001b
push ebx
push ebx
push ebx
push 0x1002468
push 0x80000002
mov dword [ebp - 0x38c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10297f5
push esi
push edi
push 0x1f
pop ecx
mov esi, 0x10038c8
lea edi, [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
push 0x20
movsw word es:[edi], word [esi]
pop ecx
push 0x1d
mov esi, 0x1003840
lea edi, [ebp - 0x17c]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 4
lea eax, [ebp - 0x390]
push eax
push 4
movsw word es:[edi], word [esi]
push ebx
push 0x1003824
push dword [ebp - 0x38c]
mov esi, 0x10037b0
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x390], 1
call esi
push 0x82
lea eax, [ebp - 0x17c]
push eax
push 2
pop edi
push edi
push ebx
push 0x1003790
push dword [ebp - 0x38c]
call esi
push 0x7e
lea eax, [ebp - 0xf8]
push eax
push edi
push ebx
push 0x1003784
push dword [ebp - 0x38c]
call esi
push 0x74
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push 0x1003768
push dword [ebp - 0x38c]
call esi
push 0x1003718
push 0x105
lea eax, [ebp - 0x388]
push eax
call fcn.01027e68
test eax, eax
jl 0x10297b4
xor eax, eax
mov word [ebp - 0x33a], ax
lea eax, [ebp - 0x388]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x10297bd
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp - 0x388]
push eax
push 7
push ebx
push 0x1003704
push dword [ebp - 0x38c]
call esi
push dword [ebp - 0x38c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.0102df7d
leave
ret
Function at 0x102980a
Capabilities:
Create process on windows
Delete registry key
Delete registry value
Modify service
Persist via run registry key
Query service status
Stop service

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]
mov ebx, eax
cmp ebx, esi
je 0x10299cc
lea eax, [ebp - 0x221c]
push eax
push 0x2000
lea eax, [ebp - 0x220c]
push eax
push ebx
mov dword [ebp - 0x221c], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x102994d
cmp dword [ebp - 0x2208], 2
jne 0x102996b
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x102996b
mov dword [ebp - 0x2210], esi
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x2238], esi
lea edi, [ebp - 0x2234]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2238]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10299ab
test byte [ebp - 0x2230], 1
je 0x10299c5
cmp dword [ebp - 0x2234], 3
je 0x10299c5
cmp dword [ebp - 0x2234], 1
je 0x10299c5
lea eax, [ebp - 0x2238]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10299c5
mov dword [ebp - 0x2210], esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2218]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2210]
pop edi
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret
Function at 0x1029b84
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xa34], eax
mov dword [ebp - 0xa30], ecx
cmp eax, ecx
je 0x1029d76
lea eax, [ebp - 0xa2c]
push eax
push ecx
push ecx
push 0x801c
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x1029d76
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x61c]
push eax
push 0xa5
push dword [0x10405b0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1029d75
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push 0x1003bc0
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.01027f64
add esp, 0x14
test eax, eax
jl 0x1029d75
push esi
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.0102fe6a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1029c70
push 0
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x1029c70
call edi
cmp eax, 0xb7
je 0x1029c70
call edi
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1003b88
push 2
call fcn.01039f55
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call fcn.0102fe6a
test eax, eax
je 0x1029d73
lea eax, [ebp - 0x414]
push eax
push 0x1003b64
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01027f64
add esp, 0x10
test eax, eax
jl 0x1029d73
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x1029cc4
call edi
cmp eax, 0xb7
jne 0x1029d5a
push ebx
lea eax, [ebp - 0x824]
push eax
call fcn.01027d49
test eax, eax
je 0x1029d01
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x824]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01027edd
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1003b54
push dword [ebp + 0xc]
push dword [ebp - 0xa34]
call fcn.01027f64
add esp, 0x14
test eax, eax
jl 0x1029d73
push 0
push dword [ebp - 0xa34]
call esi
mov dword [ebp - 0xa30], eax
test eax, eax
jne 0x1029d73
call edi
cmp eax, 0xb7
je 0x1029d73
call edi
push eax
push 0x1003b10
push 4
call fcn.01039f55
add esp, 0xc
jmp 0x1029d73
call edi
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1003ac8
push 4
call fcn.01039f55
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa30]
xor ecx, ebp
call fcn.0102df7d
leave
ret 8
Function at 0x102a69a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x620]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1004398
push 0x80000000
mov dword [ebp - 0x620], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102a816
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x24
push 0x1004374
push 1
push esi
push 0x1004364
push dword [ebp - 0x620]
mov dword [ebp - 0x624], esi
call edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0xa7
push dword [0x10405b0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x102a757
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102a731
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push esi
push dword [ebp - 0x620]
call edi
push esi
lea eax, [ebp - 0x624]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1004354
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102a808
push ebx
push ebx
lea eax, [ebp - 0x61c]
push eax
call fcn.010302a3
test eax, eax
je 0x102a7fc
push 0x1001b64
push ebx
lea eax, [ebp - 0x61c]
push eax
call fcn.01027edd
test eax, eax
jl 0x102a7fc
lea eax, [ebp - 0x61c]
push eax
push 0x10042f8
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.01027f64
add esp, 0x10
test eax, eax
jl 0x102a7fc
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x102a7d6
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push esi
push esi
push dword [ebp - 0x624]
call edi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [edi + 0x5b], ebx

Function at 0x102a828
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
call fcn.010291a6
call fcn.010284f4
call fcn.010274bb
call fcn.01027515
call fcn.01029a95
call fcn.0102a060
jmp fcn.0102a0b4
Function at 0x102b151
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x102b1d4
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x1004910
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102b1d4
push esi
push edi
push 0x1004900
push dword [ebp - 4]
call fcn.0102f670
mov esi, eax
cmp esi, ebx
je 0x102b1ca
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102b1a1
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
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
pop ebx
leave
ret 4

Function at 0x102b3b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x210]
push eax
mov edi, 0x20019
push edi
push 0
xor ebx, ebx
push 0x1004ad0
inc ebx
push 0x80000001
mov dword [ebp - 0x214], ebx
call esi
test eax, eax
jne 0x102b414
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x102b520
lea eax, [ebp - 0x210]
push eax
push edi
push 0
push 0x1004a48
dec eax
dec edx
add byte [ecx], al

Function at 0x102b534
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x640], eax
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x63c], edi
cmp eax, edi
jne 0x102b575
mov eax, 0x80004005
jmp 0x102b80f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov dword [ebp - 0x630], edi
mov esi, 0x105
Function at 0x102b835
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0xa44], esi
mov dword [ebp - 0xa40], esi
mov dword [ebp - 0xa4c], esi
call fcn.010302a3
test eax, eax
jne 0x102b87f
mov eax, 0x80004005
jmp 0x102ba21
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e61a
push 0x1004cb0
push 0x105
lea eax, [ebp - 0xa38]
push eax
call fcn.01027e68
test eax, eax
jl 0x102ba1b
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xa40]
push eax
mov ebx, 0x20019
push ebx
push esi
lea eax, [ebp - 0xa38]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x102ba19
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0xa3c]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x1004c8c
push dword [ebp - 0xa40]
mov dword [ebp - 0xa3c], 1
mov dword [ebp - 0xa48], 0x208
call esi
test eax, eax
jne 0x102ba0d
cmp dword [ebp - 0xa3c], 1
jne 0x102ba0d
lea eax, [ebp - 0xa4c]
push eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x82c]
push eax
push dword [ebp - 0xa40]
call edi
test eax, eax
jne 0x102ba0d
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0xa3c]
push eax
push ebx
push 0x1004c78
push dword [ebp - 0xa4c]
mov dword [ebp - 0xa48], 0x20a
call esi
test eax, eax
jne 0x102ba01
cmp dword [ebp - 0xa3c], 1
jne 0x102ba01
push 0x1004c60
mov edi, 0x105
push edi
lea eax, [ebp - 0x418]
push eax
call fcn.01027edd
test eax, eax
jl 0x102ba01
push ebx
push ebx
push 0x10048bc
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010312ee
mov esi, 0xd2af9
cmp eax, esi
jne 0x102b9cb
mov dword [ebp - 0xa44], esi
push edi
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x102ba01
push ebx
push ebx
push 0x1004980
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010312ee
cmp eax, esi
jne 0x102ba01
mov dword [ebp - 0xa44], esi
push dword [ebp - 0xa4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xa40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 0xa44]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret
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 0x102bc1a
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x102bc8f
push edi
lea eax, [ebp - 4]
push eax
push 0x1004e10
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
push 0x80
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
pop edi
jl 0x102bc8f
lea eax, [ebp + 8]
push eax
push 0x1004e00
push 1
push 0
push 0x100c3e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x102bc86
mov eax, dword [ebp + 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
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
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
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x102c21b
add eax, esi
add ecx, esi
test dx, dx
jne 0x102c1f7
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 0x102c3dc
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x2d8]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x1004d50
push 0x80000001
mov dword [ebp - 0x2d8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102c52a
push esi
push ebx
mov esi, 0x1004e68
push esi
lea eax, [ebp - 0xcc]
push 0x63
push eax
mov dword [ebp - 0x2dc], 0x208
mov dword [ebp - 0x2e4], 1
call fcn.01027f64
add esp, 0x10
mov dword [ebp - 0x2e0], 1
jmp 0x102c4e8
cmp dword [ebp - 0x2e4], 1
jne 0x102c51d
lea eax, [ebp - 0x2d4]
push eax
call fcn.0102bc1a
push ebx
lea eax, [ebp - 0x2d4]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x2d4]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x102c4c0
xor ecx, ecx
mov word [eax], cx
push ebx
lea eax, [ebp - 0x2d4]
push eax
call fcn.0102bc9b
push dword [ebp - 0x2e0]
lea eax, [ebp - 0xcc]
push esi
push 0x63
push eax
mov dword [ebp - 0x2dc], 0x208
call fcn.01027f64
add esp, 0x10
inc dword [ebp - 0x2e0]
test eax, eax
jl 0x102c51d
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x2e4]
push eax
push ebx
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102c45b
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret
Function at 0x102c53c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push edi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x1004d50
push 0x80000001
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102c637
push ebx
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
mov esi, 0x1003358
push esi
push dword [ebp - 0x210]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x21c], 0x208
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102c5f3
cmp dword [ebp - 0x218], ebx
jne 0x102c5f3
cmp dword [ebp - 0x21c], ebx
jbe 0x102c5f8
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x102c5f8
call fcn.0102c3dc
mov eax, dword [ebp - 0x214]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x102c601
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x214]
push ebx
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102df7d
leave
ret 4