joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a8ac
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x278
mov eax, 0x1041ad9
call fcn.01003649
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov edi, ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x224], eax
call ebx
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x1011863
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov dword [ebp - 0x220], 0x208
call esi
mov dword [ebp - 0x22c], eax
mov ecx, 0xea
test eax, eax
je 0x1011871
cmp eax, ecx
je 0x1011871
push eax
call ebx
xor eax, eax
call fcn.01002fbc
ret 8
push 6
jmp 0x100a92e
push 0
jmp 0x1011912
cmp dword [ebp - 0x228], 1
je 0x1011890
cmp dword [ebp - 0x228], 7
je 0x1011890
cmp dword [ebp - 0x228], 2
jne 0x100a92d
and dword [ebp - 4], 0
cmp dword [ebp - 0x228], 2
jne 0x101e01f
cmp eax, ecx
je 0x101df98
mov ecx, dword [ebp - 0x224]
mov esi, 0x104
push esi
call fcn.0100fcfc
push esi
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [eax - 1]
mov dword [ebp - 0x220], eax
cmp ecx, 0x102
ja 0x101dff6
add eax, eax
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x101dfc5
or dword [ebp - 4], 0xffffffff
shr dword [ebp - 0x220], 1
mov ecx, dword [ebp - 0x224]
je 0x101186a
mov eax, dword [ebp - 0x220]
dec eax
push eax
call fcn.0100a108
xor eax, eax
inc eax
jmp 0x100a932
push 0x80010135
lea ecx, [ebp - 0x244]
call fcn.01026ae1
mov esi, eax
lea edi, [ebp - 0x284]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10458fc
lea eax, [ebp - 0x284]
push eax
call sub.msvcrt.dll__CxxThrowException
jle 0x101dfd1
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x244]
call fcn.01026ae1
mov esi, eax
lea edi, [ebp - 0x254]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10458fc
lea eax, [ebp - 0x254]
jmp 0x101dfbf
push 0x80010135
lea ecx, [ebp - 0x244]
call fcn.01026ae1
mov esi, eax
lea edi, [ebp - 0x274]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10458fc
lea eax, [ebp - 0x274]
jmp 0x101dfbf
cmp eax, ecx
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x224]
jne 0x101e05b
shr eax, 1
push eax
call fcn.0100fcfc
lea ecx, [ebp - 0x220]
push ecx
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push dword [ebp - 0x230]
push dword [edi + 0x9c]
call esi
jmp 0x10118ec
shr eax, 1
push eax
call fcn.0100fcfc
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp - 0x220]
push eax
call fcn.01033d02
test eax, eax
jge 0x10118e6
push eax
lea ecx, [ebp - 0x244]
call fcn.01026ae1
mov esi, eax
lea edi, [ebp - 0x264]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10458fc
lea eax, [ebp - 0x264]
jmp 0x101dfbf
Function at 0x100aeb4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp byte [eax + 0x213], bl
je 0x100af49
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x100af60
push 0x80000002
mov dword [ebp - 0x24], 0x100ab30
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100af39
push esi
push edi
mov esi, 0x100af58
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x100af37
test byte [ebp - 0x10], 1
jne 0x100afc4
shr dword [ebp - 0x10], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x10], ebx
jne 0x100af22
pop edi
pop esi
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x100ab30
call fcn.0100b0b5
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01002a8b
leave
ret
mov eax, dword [ebp - 0x14]
add eax, 0x41
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0x100ab30
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100b081
push 4
pop edi
push edi
lea eax, [esi + 0x62c]
push eax
push edi
push ebx
push 0x100b048
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 0x100b5ac
lea eax, [esi + 0x214]
mov dx, word [eax]
cmp dx, word [ecx]
je 0x101b499
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100b081
lea ecx, [esi + 0x41e]
mov eax, ecx
lea edx, [eax + 2]
jmp 0x100b05c
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x100b05c
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push 0x100b098
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100ab30
call fcn.0100b0b5
jmp 0x100af2c
cmp dx, bx
je 0x101b4b9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100b030
add eax, edi
add ecx, edi
cmp dx, bx
jne 0x100b024
xor eax, eax
jmp 0x100b035
Function at 0x100b0e1
Capabilities:
Get disk information

Disassembly:
push 0x18
mov eax, 0x103eb89
call fcn.010015e0
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.0100ab58
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100b1bb
lea edi, [ebx + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call fcn.0100b1e1
mov esi, eax
test esi, esi
je 0x100b14f
push dword [ebp + 8]
mov ecx, esi
call fcn.0100b260
test al, al
jne 0x100b147
lea ecx, [ebp - 0x24]
call fcn.0100b1e1
mov esi, eax
test esi, esi
jne 0x100b12b
test esi, esi
jne 0x101b568
push 0x638
call dword [0x104b7f4]
test eax, eax
je 0x100b1cf
mov ecx, eax
call fcn.0100ac83
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x100b1d3
push 3
push dword [ebp + 8]
mov ecx, esi
push dword [ebx]
call fcn.0100b43e
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x100b1ac
push esi
mov ecx, ebx
mov byte [esi + 0x212], 1
call fcn.0100b53e
mov ecx, dword [edi]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x630]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [edi], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
jne 0x101b574
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x10]
call fcn.010015c0
ret 4
xor esi, esi
jmp 0x100b167
mov dword [ebp - 0x10], 0x8007000e
jmp 0x100b1ac
mov byte [esi + 0x212], 1
jmp 0x100b1bb
push 1
call fcn.010122a5
jmp 0x100b1bb

Function at 0x100b335
Capabilities:
Enumerate disk volumes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x101b580
test edi, edi
jne 0x100b3ab
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call fcn.0100b0e1
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x100b373
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x100b373
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
test eax, eax
je 0x101b580
mov ecx, dword [ebp - 0x214]
call fcn.0100b3df
push edi
call fcn.0100a7a1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002a8b
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100b3ba
Function at 0x100b5b9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
push edi
lea edi, [ecx + 8]
mov dword [ebp - 0x10], ecx
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push eax
push eax
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
call esi
test eax, eax
jne 0x100b696
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x100b696
mov eax, dword [ebp - 8]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call dword [0x104b7f4]
mov ebx, eax
test ebx, ebx
je 0x100b68d
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call esi
test eax, eax
je 0x101b475
cmp word [ebx], 0
mov esi, ebx
je 0x100b671
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x100b655
movzx eax, word [esi]
push eax
call fcn.0100b6a4
movzx ecx, ax
xor eax, eax
sub ecx, 0x41
inc eax
shl eax, cl
or dword [ebp - 0xc], eax
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100b65a
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], cx
jne 0x100b633
push ebx
call dword [0x104b7f0]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
test eax, eax
jl 0x100b68b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
leave
ret
mov dword [ebp - 4], 0x8007000e
jmp 0x100b678
mov dword [ebp - 4], 0x8000ffff
jmp 0x100b678
call fcn.01025b53
mov dword [ebp - 4], eax
jmp 0x100b671

Function at 0x100bb05
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x100a758
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100a7a1
mov esi, eax
test esi, esi
jl 0x100bb7e
lea eax, [ebp - 8]
push eax
push 0x100a71c
push dword [ebp - 4]
call fcn.0100bbab
mov esi, eax
test esi, esi
jl 0x100bb75
cmp dword [ebp - 8], 1
jne 0x100bb75
push 0x100bb84
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push eax
call fcn.0100a7a1
mov esi, eax
test esi, esi
jge 0x100bb75
cmp esi, 0x80070002
jne 0x100bb75
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x100cbe4
Capabilities:
Get user security identifier

Disassembly:
push 0x14
mov eax, 0x10411e5
call fcn.01001862
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
je 0x101d31c
cmp dword [ebp + 8], esi
je 0x101d326
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 8]
mov dword [edi], esi
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x101d35b
mov eax, dword [ebp - 0x18]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
mov dword [ebp - 4], esi
neg ecx
or eax, ecx
push eax
call dword [0x104b7f4]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], esi
je 0x100ccad
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [edi], eax
cmp eax, esi
je 0x100cca6
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x101d344
xor ebx, ebx
push dword [ebp - 0x14]
call dword [0x104b7f0]
mov eax, ebx
call fcn.010015c0
ret 8
mov ebx, 0x8007000e
jmp 0x100cc93
mov ebx, 0x8007000e
jmp 0x100cc9c
mov eax, 0x80004003
jmp 0x100cc9e
mov eax, 0x80070057
jmp 0x100cc9e
call fcn.0100f56e
push dword [edi]
mov ebx, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [edi], esi
jmp 0x100cc93
push eax
call fcn.0100a7a1
mov ebx, eax
jmp 0x100cc9c
Function at 0x100dc9b
Capabilities:
Query environment variable

Disassembly:
push 0x4c0
mov eax, 0x1040d1b
call fcn.01002a3a
mov esi, dword [ebp + 8]
and dword [ebp - 0x428], 0
mov dword [ebp - 0x42c], esi
xor ebx, ebx
lea eax, [ebp + 0xc]
inc ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0100ea61
push dword [ebp + 0x10]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x428], ebx
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x100dd13
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.01009d0d
push dword [eax + 4]
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0100aa00
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], bl
call fcn.010084de
mov eax, dword [esi + 4]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100dd3f
mov eax, dword [esi]
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x420]
push ecx
mov ecx, esi
call dword [eax + 0x10]
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
call fcn.0100ea61
lea eax, [ebp - 0x4cc]
push eax
call fcn.0100c956
push dword [eax + 4]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0100aa00
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], bl
call fcn.010084de
mov eax, dword [esi + 0xc]
cmp eax, 0xb
jb 0x100de18
push 0xb
lea eax, [ebp - 0x438]
push eax
mov ecx, esi
call fcn.0100de5b
push 0x100de00
mov ecx, eax
call fcn.01003503
test eax, eax
jne 0x100de18
mov eax, dword [esi + 0xc]
add eax, 0xfffffff5
push eax
mov ecx, esi
call fcn.0100a108
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
call fcn.0100ea61
lea eax, [ebp - 0x4cc]
push eax
call fcn.0100c956
mov byte [ebp - 4], 4
push dword [eax + 4]
mov ecx, esi
call fcn.0100aa00
lea ecx, [ebp - 0x4cc]
call fcn.010084de
lea ecx, [ebp + 0xc]
call fcn.010084de
mov eax, esi
call fcn.01002a77
ret 0x98
mov eax, dword [esi + 0xc]
cmp eax, 6
jb 0x100ddee
push 6
lea eax, [ebp - 0x438]
push eax
mov ecx, esi
call fcn.0100de5b
push 0x100de48
mov ecx, eax
call fcn.01003503
test eax, eax
jne 0x100ddee
jmp 0x101ce61
mov eax, dword [esi + 0xc]
add eax, 0xfffffffa
push eax
mov ecx, esi
call fcn.0100a108
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
call fcn.0100ea61
lea eax, [ebp - 0x4cc]
push eax
call fcn.0100c956
mov byte [ebp - 4], 5
jmp 0x100ddd9
Function at 0x100f0f1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x146c
call fcn.0100a16a
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0100a15a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x28]
push eax
push 3
xor ebx, ebx
push ebx
push 0x100a048
mov edi, 0x80000002
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
call esi
cmp eax, ebx
jne 0x100f26f
lea eax, [ebp - 0x34]
push eax
push 3
push ebx
push 0x100f298
push edi
call esi
cmp eax, ebx
jne 0x100f26f
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100f26f
cmp dword [ebp - 0x2c], 0x400
ja 0x100f26f
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x2c], ebx
jbe 0x100f230
lea esi, [ebp - 0x1468]
push 0x14
pop edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x30]
mov byte [esi], bl
push dword [ebp - 0x28]
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], edi
call dword [sym.imp.KERNEL32.dll_RegEnumValueW]
test eax, eax
jne 0x100f21e
cmp dword [ebp - 0x40], 3
jne 0x100f21e
cmp dword [ebp - 0x3c], edi
jne 0x100f21e
mov ecx, dword [ebp - 0x38]
mov word [ebp + ecx*2 - 0x24], ax
lea edi, [esi - 4]
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.0100cfea
test al, al
je 0x100f21e
push dword [edi]
lea ecx, [ebp - 0x6c]
call fcn.0100a134
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0100aa81
lea ecx, [ebp - 0x6c]
call fcn.0100a19a
cmp dword [ebp - 0x6c], ebx
jne 0x100f21e
mov byte [esi], 1
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
add esi, 5
cmp eax, dword [ebp - 0x2c]
jb 0x100f191
xor edi, edi
cmp dword [ebp - 0x2c], ebx
jbe 0x100f26f
lea esi, [ebp - 0x146c]
cmp byte [esi + 4], bl
je 0x100f266
push dword [esi]
lea ecx, [ebp - 0x6c]
call fcn.0100a134
push 0x100a048
lea ecx, [ebp - 0x6c]
call fcn.010119c9
push 0x100f298
lea ecx, [ebp - 0x6c]
call fcn.010119c9
inc edi
add esi, 5
cmp edi, dword [ebp - 0x2c]
jb 0x100f23d
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], ebx
je 0x100f27f
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x34], ebx
je 0x100f289
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002a8b
leave
ret
Function at 0x100fab0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push eax
push 1
xor ebx, ebx
push ebx
push 0x100a758
mov dword [esi], 2
push 0x80000002
mov dword [edi], 0x65
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100a7a1
cmp eax, ebx
mov dword [ebp - 0x80], eax
jl 0x100fc56
push 4
pop eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x100a71c
push ebx
push dword [ebp - 0x74]
mov dword [ebp - 0x70], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
call ebx
push eax
call fcn.0100a7a1
test eax, eax
jl 0x100fc4d
xor eax, eax
inc eax
cmp dword [ebp - 0x70], eax
jne 0x100fc4d
mov dword [esi], eax
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
mov dword [edi], 0x64
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x100c1d8
push 0
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x64
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x100fc4d
cmp dword [ebp - 0x6c], 1
jne 0x100fc4d
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push 0x100c204
push eax
call sub.msvcrt.dll_swscanf_s
add esp, 0x14
cmp eax, 3
jne 0x100fc4d
lea eax, [ebp - 0x94]
push eax
push 0x800
push 1
mov dword [ebp - 0x94], 0xc
call dword [sym.imp.KERNEL32.dll_GetNLSVersion]
test eax, eax
je 0x100fc4d
push 4
pop eax
cmp dword [ebp - 0x84], eax
jne 0x100fc4d
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [ebp - 0x90]
jne 0x100fc4d
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x8c]
ja 0x100fc4d
and dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x100fc6c
push 0
push dword [ebp - 0x74]
call ebx
test eax, eax
je 0x101b6cb
and dword [esi], 0
and dword [edi], 0
Function at 0x100fdc0
Capabilities:
Create directory

Disassembly:
push 0x144
mov eax, 0x1040e48
call fcn.01003649
mov eax, ecx
mov ebx, dword [ebp + 0x9c]
and dword [ebp - 4], 0
test ebx, ebx
je 0x100fde2
mov byte [ebx], 0
mov ecx, dword [eax + 4]
push 2
call fcn.01009e64
sub esp, 0x94
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x140], esp
push eax
call fcn.0100ea61
lea eax, [ebp - 0xa8]
push eax
call fcn.0100fe6a
push dword [ebp - 0xa4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
and dword [ebp - 0x140], 0
mov byte [ebp - 4], 1
call esi
test eax, eax
je 0x101ce98
push dword [ebp - 0xa4]
mov byte [ebp - 4], 2
call esi
test eax, eax
je 0x101cf32
lea ecx, [ebp - 0xa8]
call fcn.010084de
lea ecx, [ebp + 8]
call fcn.010084de
mov eax, dword [ebp - 0x140]
call fcn.01002fbc
ret 0x98
push dword [ebp - 0xa4]
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov edi, eax
mov eax, edi
sub eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
sar eax, 1
push eax
push 0
lea eax, [ebp - 0x150]
push eax
call fcn.010034b1
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x13c]
call fcn.01014968
push dword [ebp - 0x138]
call esi
test eax, eax
jne 0x101cf07
push eax
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x101cf07
cmp dword [ebp - 0x140], eax
jl 0x101cf07
call fcn.0100f56e
mov dword [ebp - 0x140], eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
lea ecx, [ebp - 0x13c]
mov edi, eax
call fcn.010084de
test edi, edi
je 0x100fe30
cmp word [edi], 0
je 0x100fe30
jmp 0x101cea6
test ebx, ebx
je 0x101cf39
mov byte [ebx], 1
push 0
push dword [ebp - 0xa4]
call fcn.01033214
jmp 0x100fe44
Function at 0x101025c
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0x83c
mov eax, 0x1041784
call fcn.01002a3a
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x828], ebx
cmp ebx, eax
je 0x1010337
cmp word [ebx], ax
je 0x1010337
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
push eax
mov esi, 0x1010348
push esi
call edi
mov ecx, ebx
lea edx, [ecx + 2]
mov bx, word [ecx]
inc ecx
inc ecx
test bx, bx
jne 0x101029c
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + eax + 0x104]
lea ecx, [ebp - 0x824]
call fcn.0100a0e6
and dword [ebp - 4], 0
push ebx
push ebx
lea ecx, [ebp - 0x824]
call fcn.0100fcfc
push eax
push esi
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x824]
call fcn.01010357
mov eax, dword [ebp - 0x824]
push 0xffffffffffffffff
push dword [ebp - 0x818]
lea ecx, [ebp - 0x824]
push 0x1010344
call dword [eax + 0x10]
mov eax, dword [ebp - 0x824]
push 0xffffffffffffffff
push dword [ebp - 0x818]
lea ecx, [ebp - 0x824]
push dword [ebp - 0x828]
call dword [eax + 0x10]
push dword [ebp - 0x820]
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x101dd67
lea ecx, [ebp - 0x824]
call fcn.01009fc5
xor eax, eax
call fcn.01002a77
ret 4
push 0x8000ffff
lea ecx, [ebp - 0x848]
call fcn.01026ae1
mov esi, eax
lea edi, [ebp - 0x838]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10458fc
lea eax, [ebp - 0x838]
push eax
movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll__CxxThrowException

Function at 0x1010cae
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01010d81
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1010d50
cmp dword [ebp - 0x94], 5
jb 0x1010d23
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1010d6c
call fcn.0100ff82
test eax, eax
jl 0x101cba1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01002a8b
leave
ret
cmp dword [ebp - 0x88], 1
je 0x101cb89
jmp 0x1010d23
cmp dword [ebp - 0x90], 0
jbe 0x1010d23
jmp 0x1010d1f
cmp dword [ebp - 0x94], 4
ja 0x1010d1f
je 0x1010d5f
jmp 0x1010d23
mov byte [0x104bb7c], 1
jmp 0x1010d41