joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10a0b8c
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 2
push 0x1002060
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.010adad3
mov esi, eax
cmp esi, edi
je 0x10a0bcc
push esi
push 0x7dc0197
push dword [ebp + 8]
call fcn.0108c53e
jmp 0x10a0beb
push 0x101eb60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp esi, edi
je 0x10a0beb
push esi
push 0x7df0197
call fcn.0108c503
cmp dword [ebp - 4], edi
je 0x10a0bf9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x10a0c07
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x10a1166
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0xf0000000
xor eax, eax
push 1
push eax
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10a11b3
call fcn.01091f1e
mov esi, eax
push esi
push 0xc3f0197
call fcn.0108c503
jmp 0x10a128a
mov esi, dword [ebp + 8]
cmp esi, 1
je 0x10a11c0
cmp esi, 0x10
jbe 0x10a11c3
push 0x10
pop esi
mov eax, dword [ebp + 0x10]
dec eax
cmp esi, eax
jbe 0x10a11cd
mov esi, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x10a11f1
call fcn.01091f1e
mov esi, eax
push esi
push 0xc4d0197
jmp 0x10a120c
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x10a1213
call fcn.01091f1e
mov esi, eax
push esi
push 0xc520197
call fcn.0108c503
jmp 0x10a1289
lea eax, [esi + esi + 2]
push eax
push 0
mov edi, esi
push ebx
mov dword [ebp - 0x2c], 0x59
shr edi, 3
call sub.msvcrt.dll_memset
add esp, 0xc
xor ecx, ecx
test esi, esi
jbe 0x10a1287
movzx eax, byte [ebp + ecx - 0x14]
xor edx, edx
div dword [ebp - 0x2c]
movzx eax, byte [ebp + ecx - 0x24]
mov dword [ebp - 0x30], edx
xor edx, edx
div esi
mov eax, dword [ebp - 0x34]
jmp 0x10a1257
inc edx
cmp edx, esi
jne 0x10a1257
xor edx, edx
xor ebx, ebx
cmp bx, word [eax + edx*2]
jne 0x10a1250
mov ebx, dword [ebp - 0x30]
mov bx, word [ebx*2 + 0x101ea68]
push 0x3e
mov word [eax + edx*2], bx
pop eax
cmp dword [ebp - 0x30], eax
jb 0x10a1282
test edi, edi
jbe 0x10a127d
dec edi
test edi, edi
jne 0x10a1282
mov dword [ebp - 0x2c], eax
inc ecx
cmp ecx, esi
jb 0x10a1235
xor esi, esi
pop edi
push 0x10
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10a1290
cmp dword [ebp - 0x28], ecx
je 0x10a12a6
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077d0b
leave
ret 0xc
Function at 0x10a1668
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor edx, edx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x258], edx
mov dword [edi], edx
cmp esi, edx
je 0x10a16a2
mov dword [esi], edx
lea ebx, [ebp - 0x258]
push ebx
push edx
push eax
push ecx
call fcn.0108df5e
mov ebx, eax
test ebx, ebx
je 0x10a16c7
push ebx
push 0x8c0197
call fcn.0108c503
jmp 0x10a1777
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x10a16ec
xor ebx, ebx
jmp 0x10a1777
test byte [ebp - 0x254], 0x10
jne 0x10a173b
mov dword [edi], 1
test esi, esi
je 0x10a173b
lea eax, [ebp - 0x25c]
push eax
push 0
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x264]
call fcn.0108df5e
mov ebx, eax
test ebx, ebx
jne 0x10a1754
push dword [ebp - 0x25c]
call fcn.010a072f
test eax, eax
jne 0x10a1761
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10a16ec
jmp 0x10a1769
push ebx
push 0xa30197
call fcn.0108c503
jmp 0x10a176b
mov eax, dword [ebp - 0x25c]
mov dword [esi], eax
xor ebx, ebx
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x258], 0
je 0x10a178c
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01077d0b
leave
ret 0x10
Function at 0x10a2175
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x668], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
and dword [edi], 0
mov eax, ebx
mov dword [ebp - 0x66c], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10a21a8
sub eax, ecx
sar eax, 1
add eax, 6
mov esi, 0x104
cmp eax, esi
jb 0x10a21d3
mov eax, 0x8007006f
push eax
push 0xf010197
push ebx
jmp 0x10a2277
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102dff2
push 0x101ebcc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e02c
push 0x1001f14
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e02c
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10a22a7
test byte [ebp - 0x664], 0x10
je 0x10a2241
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10a2224
jmp 0x10a2297
lea eax, [ebp - 0x638]
mov dword [ebp - 0x668], 1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a2254
sub eax, edx
sar eax, 1
cmp eax, esi
jb 0x10a2283
mov eax, 0x8007006f
push eax
push 0xf130197
push dword [ebp - 0x66c]
mov esi, eax
call fcn.0108c53e
jmp 0x10a234d
lea eax, [ebp - 0x638]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0102dff2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x668], 0
jne 0x10a22b4
mov esi, 0x80070002
push esi
push 0xf1f0197
jmp 0x10a231b
cmp dword [ebp - 0x668], 1
jbe 0x10a22ca
mov esi, 0x8007010b
push esi
push 0xf240197
jmp 0x10a231b
mov eax, dword [ebp - 0x66c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a22d3
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x10a22ec
sub eax, edx
sar eax, 1
lea esi, [eax + ecx + 2]
lea eax, [esi + esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [edi], eax
test eax, eax
jne 0x10a2322
mov esi, 0x8007000e
push esi
push 0xf2c0197
call fcn.0108c503
jmp 0x10a234d
push dword [ebp - 0x66c]
push esi
push eax
call fcn.0102dff2
push 0x1008b90
push esi
push dword [edi]
call fcn.0102e02c
lea eax, [ebp - 0x414]
push eax
push esi
push dword [edi]
call fcn.0102e02c
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077d0b
leave
ret 8
Function at 0x10a27db
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov eax, edx
inc edi
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a27fd
sub eax, esi
sar eax, 1
add eax, 4
mov esi, 0x104
cmp eax, esi
jb 0x10a2829
push 0x8007006f
push 0x35b0197
push edx
call fcn.0108c53e
jmp 0x10a288a
push edx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102dff2
push 0x101ebd4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e02c
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10a288a
test byte [ebp - 0x45c], 0x10
je 0x10a2881
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10a2864
jmp 0x10a2883
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01077d0b
leave
ret 4
Function at 0x10a28a1
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov eax, edx
push edi
mov dword [ebp - 0x464], edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a28c7
sub eax, esi
sar eax, 1
mov edi, eax
lea eax, [edi + 4]
mov esi, 0x104
cmp eax, esi
jb 0x10a28fa
mov ebx, 0x8007006f
push ebx
push 0x3830197
mov dword [ebp - 0x460], ebx
push edx
jmp 0x10a2a12
push edx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102dff2
push 0x101ebd4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e02c
inc edi
mov eax, esi
sub eax, edi
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x468], eax
cmp eax, 0xffffffff
jne 0x10a2963
call fcn.01091f1e
mov dword [ebp - 0x460], eax
test eax, eax
je 0x10a2963
push eax
push 0x38f0197
call fcn.0108c503
jmp 0x10a2a17
and dword [ebp - 0x460], 0
mov ebx, 0x8007006f
test byte [ebp - 0x45c], 0x10
jne 0x10a29d5
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10a2981
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, esi
jb 0x10a29ae
push ebx
push 0x39a0197
push dword [ebp - 0x464]
mov dword [ebp - 0x460], ebx
call fcn.0108c53e
jmp 0x10a29d5
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x46c]
lea eax, [ebp + edi*2 - 0x20c]
push eax
call fcn.0102dff2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10a296f
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x460], 0
je 0x10a2a17
push dword [ebp - 0x460]
push 0x3a20197
push dword [ebp - 0x464]
call fcn.0108c53e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x460]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077d0b
leave
ret 4
Function at 0x10aa828
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
push 2
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
call fcn.0108d9f6
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10aa865
push eax
push 0x21b0199
call fcn.0108c503
jmp 0x10aa926
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 8]
push edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10aa89b
call fcn.01091f1e
push eax
push 0x2280199
jmp 0x10aa91d
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push edi
call esi
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x10aa8be
mov eax, 0x8007000e
push eax
push 0x2310199
jmp 0x10aa91d
push dword [ebp - 0x14]
push edi
call esi
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
jne 0x10aa8da
mov eax, 0x8007000e
push eax
push 0x23a0199
jmp 0x10aa91d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 8]
push edi
call ebx
test eax, eax
jne 0x10aa901
call fcn.01091f1e
push eax
push 0x2470199
jmp 0x10aa91d
mov eax, dword [ebp - 0x20]
add eax, 0x44
push eax
push esi
call fcn.010ad19c
test eax, eax
jne 0x10aa925
call fcn.01091f1e
push eax
push 0x24f0199
mov dword [ebp - 4], eax
call fcn.0108c503
pop ebx
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x10abf66
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x10abf98
call fcn.01091f1e
mov edi, eax
test esi, esi
jne 0x10abfd4
cmp edi, 0x800700ea
jne 0x10abfd4
test esi, esi
jne 0x10abfdc
mov eax, dword [ebp - 4]
add eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x10abf74
mov eax, 0x8007000e
push eax
mov edi, eax
push 0x9d101c9
call fcn.0108c503
test esi, esi
je 0x10abfcc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
leave
ret 8
push edi
push 0x9c601c9
jmp 0x10abfbc
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x10abfcc
Function at 0x10abfea
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
push edi
push 3
xor ebx, ebx
pop eax
mov dword [ecx], ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x10ac04b
mov edi, 0x80070002
call fcn.01091f1e
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10ac06e
cmp dword [ebp - 0xc], 3
jne 0x10ac075
push edi
push 0x9f401c9
call fcn.0108c503
lea eax, [ebp - 4]
push eax
push ebx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x10ac01c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10ac082
mov eax, 0x8007000e
push eax
push 0xa0701c9
jmp 0x10ac09b
cmp eax, 0x800700ea
je 0x10ac04e
push eax
push 0x9fa01c9
call fcn.0108c503
jmp 0x10ac0ba
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x10ac0a5
call fcn.01091f1e
push eax
push 0xa0d01c9
mov dword [ebp - 8], eax
call fcn.0108c503
jmp 0x10ac0af
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor edi, edi
mov dword [ebp - 8], ebx
cmp edi, ebx
je 0x10ac0ba
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10ac351
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x10ac36b
mov eax, 0x1002060
push 0x20
pop edx
push 0x22
pop ecx
cmp cx, word [eax]
jne 0x10ac37b
push ecx
pop edx
add eax, 2
push ebx
push esi
push edi
jmp 0x10ac38f
cmp dx, cx
je 0x10ac39b
push 0x5c
inc eax
pop esi
inc eax
cmp si, cx
jne 0x10ac391
mov ebx, eax
movzx ecx, word [eax]
xor esi, esi
cmp si, cx
jne 0x10ac380
sub eax, ebx
shr eax, 1
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10ac3c8
mov eax, 0x8007000e
push eax
push 0xa4401c9
mov esi, eax
call fcn.0108c503
jmp 0x10ac3e0
push esi
push ebx
push edi
call sub.msvcrt.dll_memcpy
xor eax, eax
mov word [esi + edi], ax
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax], edi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10ad808
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x10ad826
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x10ad82f
mov dword [eax], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
jmp 0x10ad885
mov eax, dword [ebp - 0xc]
test esi, esi
jne 0x10ad8a5
cmp dword [ebp - 8], 7
je 0x10ad854
cmp dword [ebp - 8], 1
jne 0x10ad866
mov dword [ebp - 4], 4
test al, 1
je 0x10ad866
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 4]
add eax, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10ad8d6
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov edi, eax
test edi, edi
je 0x10ad841
push 2
push edi
push 0x1f501b5
push dword [ebp + 0xc]
call fcn.0108c457
jmp 0x10ad8e6
push dword [ebp - 4]
add eax, esi
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x10ad8c1
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10ad8cd
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor edi, edi
jmp 0x10ad8e6
mov edi, 0x8007000e
push edi
push 0x20c01b5
call fcn.0108c503
push edi
call fcn.01091ee9
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10ae3ea
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x18], edi
jne 0x10ae422
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010ae23e
mov esi, eax
cmp esi, edi
je 0x10ae427
push esi
push 0x8b01b5
jmp 0x10ae46b
mov eax, dword [ebp + 8]
jmp 0x10ae42a
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
je 0x10ae44e
push esi
push 0x9801b5
jmp 0x10ae46b
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
je 0x10ae472
cmp esi, edi
je 0x10ae472
push esi
push 0x9d01b5
call fcn.0108c503
jmp 0x10ae474
xor esi, esi
cmp dword [ebp - 4], edi
je 0x10ae482
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], edi
je 0x10ae490
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.01091ee9
pop edi
pop esi
leave
ret 0x14
Function at 0x10ae4c2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x2c], ebx
jne 0x10ae506
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.010ae23e
mov esi, eax
cmp esi, ebx
je 0x10ae506
push esi
push 0x17401b5
jmp 0x10ae5bf
cmp dword [ebp + 8], ebx
je 0x10ae536
lea eax, [ebp - 4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
cmp esi, ebx
je 0x10ae53d
push esi
push 0x17a01b5
push dword [ebp + 8]
call fcn.0108c53e
jmp 0x10ae5c8
mov dword [ebp - 4], reloc.OLEAUT32.dll_SysReAllocString
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x2c], ebx
jne 0x10ae548
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x28]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
je 0x10ae571
push esi
push 0x18901b5
jmp 0x10ae5bf
cmp dword [ebp + 0x1c], ebx
je 0x10ae5c6
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
cmp eax, ebx
je 0x10ae584
cmp edi, ebx
jne 0x10ae5a3
cmp ecx, ebx
jbe 0x10ae5a3
cmp ecx, 2
jbe 0x10ae59b
cmp ecx, 7
jne 0x10ae5a3
mov eax, 0x101bbbc
push 4
jmp 0x10ae5a2
mov eax, 0x1002060
push 2
pop edi
push edi
push eax
push ecx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x10ae5c6
push esi
push 0x1a301b5
call fcn.0108c503
jmp 0x10ae5c8
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x10ae5e1
cmp dword [ebp - 4], reloc.OLEAUT32.dll_SysReAllocString
je 0x10ae5e1
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x10ae5ef
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], ebx
je 0x10ae5f9
push dword [ebp - 0xc]
call edi
push esi
call fcn.01091ee9
pop edi
pop esi
pop ebx
leave
ret 0x28
Function at 0x10aff68
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
cmp ebx, ecx
je 0x10affa3
mov dword [ebx], ecx
cmp eax, ecx
je 0x10affa9
mov dword [eax], ecx
cmp edi, ecx
je 0x10b0088
xor eax, eax
cmp ax, word [edi]
je 0x10b0088
push edi
call fcn.01053fb0
test al, al
je 0x10b0088
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.0108d2f3
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x10affea
push esi
push 0x3701ce
jmp 0x10b006b
lea eax, [ebp - 0x210]
push eax
xor eax, eax
cmp byte [ebp + 0xc], al
push edi
sete al
push edi
dec eax
and eax, 7
add eax, 0x1c
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
je 0x10b0018
push esi
push 0x4101ce
jmp 0x10b006b
lea eax, [ebp - 0x214]
push eax
push edi
push 0x1020798
lea eax, [ebp - 0x210]
push eax
call fcn.0108df5e
mov esi, eax
cmp esi, edi
je 0x10b003f
push esi
push 0x4801ce
jmp 0x10b006b
cmp dword [ebp - 0x21c], edi
je 0x10b0072
push dword [ebp - 0x21c]
push edi
push dword [ebp - 0x218]
push dword [ebp - 0x214]
call fcn.0108df5e
mov esi, eax
cmp esi, edi
je 0x10b0072
push esi
push 0x4f01ce
call fcn.0108c503
jmp 0x10b009d
cmp ebx, edi
je 0x10b0084
mov eax, dword [ebp - 0x214]
mov dword [ebx], eax
mov dword [ebp - 0x214], edi
xor esi, esi
jmp 0x10b009d
mov eax, 0x80070057
push eax
push 0x3101ce
push edi
mov esi, eax
call fcn.0108c53e
xor edi, edi
cmp dword [ebp - 0x218], edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10b00b3
push dword [ebp - 0x218]
call edi
cmp dword [ebp - 0x214], 0
je 0x10b00c4
push dword [ebp - 0x214]
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077d0b
leave
ret 0x10