joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101592d
Capabilities:
Delete directory
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1354
call fcn.01016a60
mov eax, dword [0x102a0ec]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x134c], ebx
mov dword [ebp - 0x1348], 0x208
je 0x1015ae2
lea eax, [ebp - 0x1348]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.010135e6
test eax, eax
je 0x1015ae2
push edi
lea eax, [ebp - 0x134c]
push eax
push 0x20019
push ebx
push 0x1005c90
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, 0x1048
jne 0x1015aa4
push esi
push 0x78
pop esi
lea eax, [ebp - 0x1354]
push eax
lea eax, [ebp - 0x1344]
push eax
push ebx
push ebx
lea eax, [ebp - 0x1348]
push eax
lea eax, [ebp - 0xf4]
push eax
push ebx
push dword [ebp - 0x134c]
mov dword [ebp - 0x1350], ebx
mov dword [ebp - 0x1354], edi
mov dword [ebp - 0x1348], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1015a97
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
inc dword [ebp - 0x1350]
lea eax, [ebp - 0xf4]
push eax
mov dword [ebp - 0x1354], edi
mov dword [ebp - 0x1348], esi
call ebx
cmp eax, 1
pop ecx
jb 0x1015a5b
lea eax, [ebp - 0x1344]
push eax
call ebx
cmp eax, 1
pop ecx
jb 0x1015a5b
push 0x1005aec
push esi
lea eax, [ebp - 0xf4]
push eax
call fcn.0100d4ff
cmp dword [ebp + 0xc], 0
je 0x1015a46
lea eax, [ebp - 0x1344]
push eax
jmp 0x1015a48
push 0
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.01013d0f
lea eax, [ebp - 0x1354]
push eax
lea eax, [ebp - 0x1344]
push eax
push 0
push 0
lea eax, [ebp - 0x1348]
push eax
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0x1350]
push dword [ebp - 0x134c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10159f5
xor ebx, ebx
push dword [ebp - 0x134c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp dword [ebp + 0xc], ebx
jne 0x1015ae1
lea eax, [ebp - 0x1348]
push eax
lea eax, [ebp - 0x1344]
push eax
mov dword [ebp - 0x1348], edi
call fcn.010135e6
lea eax, [ebp - 0x1344]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
lea eax, [ebp - 0x1344]
push eax
push 5
push 0x10
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0101672d
leave
ret 8
Function at 0x1015af4
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x102a0ec]
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov esi, 0x104
mov dword [ebp - 4], eax
push esi
je 0x1015c1e
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x418]
push eax
mov word [ebp - 0x210], bx
call fcn.010190e9
test eax, eax
je 0x1015bbb
lea eax, [ebp - 0x418]
push eax
call fcn.01012fc6
lea eax, [ebp - 0x418]
push eax
call fcn.01016cfc
call fcn.01012f49
test eax, eax
jne 0x1015b9f
push edi
push 0x1005d18
call fcn.010175cf
test eax, eax
je 0x1015b9f
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x620]
push eax
mov dword [ebp - 0x628], 0x208
call fcn.010135e6
test eax, eax
je 0x1015b9f
push edi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.01013fac
push edi
push 0x1005cf0
call fcn.010175cf
test eax, eax
je 0x1015bbb
push edi
lea eax, [ebp - 0x418]
push eax
call fcn.0101592d
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x624], 0x208
sete al
push eax
call fcn.01015fca
lea eax, [ebp - 0x20c]
push eax
call fcn.01018429
test eax, eax
je 0x1015cbe
lea eax, [ebp - 0x20c]
push eax
call fcn.01012fc6
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
jmp 0x1015c91
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.010190e9
test eax, eax
je 0x1015cbe
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x620]
push eax
mov dword [ebp - 0x624], 0x208
call fcn.010135e6
test eax, eax
je 0x1015c75
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.01013fac
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0101592d
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x1005a70
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0100d4ff
lea eax, [ebp - 0x20c]
push eax
call edi
push ebx
lea eax, [ebp - 0x20c]
push eax
push 5
push 0x10
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret 0xc
Function at 0x1015dc8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102a0ec]
push esi
xor esi, esi
push esi
push esi
push esi
push 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x208], esi
call fcn.01018dae
test eax, eax
je 0x1015e83
push edi
lea eax, [ebp - 0x208]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x1005d78
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1015e80
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1005d5c
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 0x1015e74
cmp dword [ebp - 0x20c], edi
jne 0x1015e74
lea eax, [ebp - 0x204]
push 0x1005d50
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1015e74
mov esi, edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101672d
leave
ret

Function at 0x1015e93
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x102a0ec]
and dword [ebp - 0x44], 0
and dword [ebp - 0x50], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, 4
push esi
jbe 0x1015ec5
imul eax, eax, 0x2710
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
jmp 0x1015ecc
mov dword [ebp - 0x48], 0x6a4
lea eax, [ebp - 0x44]
push eax
xor esi, esi
inc esi
push esi
push 0
push 0x1005df8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1015f28
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x1005dec
push dword [ebp - 0x44]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], 0x3c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1015f1b
cmp dword [ebp - 0x4c], esi
jne 0x1015f1b
mov ebx, esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1015f38
push 0x1005de8
push 0x1d
lea eax, [ebp - 0x40]
push eax
call fcn.0100c535
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push 0x1005de0
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
fild dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
add esp, 0xc
test eax, eax
jge 0x1015f5e
fadd qword [0x1005dd8]
fcomp qword [ebp - 0x58]
fnstsw ax
test ah, 5
jp 0x1015f6c
mov eax, esi
jmp 0x1015f6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0101672d
leave
ret 8
Function at 0x1016047
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x102a0ec]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov dword [ebp - 0x140], ecx
xor edx, edx
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
inc ecx
cmp eax, edx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x13c], ecx
jne 0x1016091
xor eax, eax
jmp 0x10161ce
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x138]
push eax
push ecx
push edx
push 0x1005eb0
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x1016132
push 0x96
lea eax, [ebp - 0x130]
push eax
push 0x9d
push dword [0x102aec0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1016119
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x144]
lea eax, [ebp - 0x13c]
push eax
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1016112
inc eax
cmp dword [ebp - 0x13c], eax
jne 0x1016112
mov dword [ebp - 0x134], eax
jmp 0x1016119
and dword [ebp - 0x134], 0
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x134], 0
jne 0x10161be
mov eax, dword [ebx]
cmp eax, 0x208
mov dword [ebp - 0x140], eax
jb 0x10161be
lea eax, [ebp - 0x138]
push eax
push 1
push 0
push 0x1002928
push edi
call esi
test eax, eax
jne 0x10161be
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x144]
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x1005e9c
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10161db
inc eax
cmp dword [ebp - 0x13c], eax
jne 0x10161db
push dword [ebp - 0x144]
mov dword [ebp - 0x134], eax
call fcn.01016cfc
mov eax, dword [ebx]
push 0x1005e48
shr eax, 1
push eax
push dword [ebp - 0x144]
call fcn.0100dd4f
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x140]
pop edi
mov dword [ebx], eax
mov eax, dword [ebp - 0x134]
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0101672d
leave
ret 8
and dword [ebp - 0x134], 0
jmp 0x10161b2
Function at 0x10162f2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x102a0ec]
and dword [ebp - 0x33c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x34c], esi
mov dword [ebp - 0x344], edi
je 0x1016446
push edi
push esi
push dword [ebp + 0x10]
call fcn.01015cd2
test eax, eax
je 0x1016446
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], 0
je 0x1016363
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x15
push dword [0x102aec0]
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x101642a
lea eax, [ebp - 0x33c]
push eax
push ebx
push 0
push 0x1005eb0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1016446
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x96
lea eax, [ebp - 0x338]
push eax
push 0x23
push dword [0x102aec0]
mov dword [ebp - 0x348], 0x208
xor esi, esi
mov dword [ebp - 0x340], ebx
call edi
test eax, eax
je 0x101640e
lea eax, [ebp - 0x348]
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 0x10163f0
cmp dword [ebp - 0x340], ebx
jne 0x10163f0
mov esi, ebx
jmp 0x101640e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x15
push dword [0x102aec0]
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 0x1016446
mov edi, dword [ebp - 0x344]
mov esi, dword [ebp - 0x34c]
push esi
call fcn.01016cfc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [edi]
shr eax, 1
push eax
push esi
call fcn.0100dd4f
mov eax, ebx
jmp 0x1016448
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret 0xc
Function at 0x101645c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54c
mov eax, dword [0x102a0ec]
and dword [ebp - 0x544], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], eax
je 0x10166a4
push ebx
push edi
push dword [ebp + 0x10]
call fcn.01015cd2
test eax, eax
je 0x10166a4
lea eax, [ebp - 0x544]
push eax
push 1
push 0
push 0x1005eb0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov esi, 0x104
jne 0x10165a7
push 0x96
lea eax, [ebp - 0x540]
push eax
push 0x24
push dword [0x102aec0]
mov dword [ebp - 0x54c], 0x209
mov dword [ebp - 0x548], 1
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x101659b
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x548]
push eax
push 0
lea eax, [ebp - 0x540]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101659b
cmp dword [ebp - 0x548], 1
jne 0x101659b
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100c535
test eax, eax
jl 0x101659b
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
test eax, eax
jl 0x101659b
lea eax, [ebp - 0x20c]
push eax
call fcn.01018429
test eax, eax
je 0x101659b
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebx]
shr eax, 1
push eax
push edi
call fcn.0100d4af
test eax, eax
jl 0x101659b
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101669f
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
push dword [ebp + 0x10]
call fcn.01015cd2
test eax, eax
je 0x101662b
push esi
lea eax, [ebp - 0x414]
push eax
push 0x21
push dword [0x102aec0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x101662b
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100c535
test eax, eax
jl 0x101662b
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
test eax, eax
jl 0x101662b
lea eax, [ebp - 0x20c]
push eax
call fcn.01018429
test eax, eax
je 0x101662b
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebx]
shr eax, 1
push eax
push edi
call fcn.0100d4af
test eax, eax
jge 0x101669f
push ebx
push edi
push dword [ebp + 0x10]
call fcn.01015cd2
test eax, eax
je 0x10166a4
push esi
lea eax, [ebp - 0x414]
push eax
push 0x25
push dword [0x102aec0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10166a4
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100c535
test eax, eax
jl 0x10166a4
lea eax, [ebp - 0x20c]
push eax
call fcn.01016cfc
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100d4ff
test eax, eax
jl 0x10166a4
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebx]
shr eax, 1
push eax
push edi
call fcn.0100d4af
test eax, eax
jl 0x10166a4
xor eax, eax
inc eax
jmp 0x10166a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101672d
leave
ret 0xc
Function at 0x1016845
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1005f28
call fcn.01016b34
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x1016899
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1016899
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x10168b1
cmp ecx, 0x20b
je 0x101689e
mov dword [ebp - 0x1c], ebx
jmp 0x10168c8
cmp dword [eax + 0x1000084], 0xe
jbe 0x1016899
xor ecx, ecx
cmp dword [eax + 0x10000f8], ebx
jmp 0x10168c2
cmp dword [eax + 0x1000074], 0xe
jbe 0x1016899
xor ecx, ecx
cmp dword [eax + 0x10000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x102c6b8], edi
mov dword [0x102c6bc], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x102bd20]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x102bd1c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x102c6c0], eax
call fcn.01016ade
cmp dword [0x102a0f0], ebx
jne 0x1016925
push fcn.01016ade
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01016ac7
push 0x102a014
push 0x102a010
call sub.msvcrt.dll__initterm
mov eax, dword [0x102bd18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x102bd14]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x102a00c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x10169b0
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1016990
cmp cl, 0x22
jne 0x1016981
cmp byte [eax], 0x22
jne 0x1016999
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10169a4
cmp cl, 0x20
jbe 0x1016995
test byte [ebp - 0x54], 1
je 0x10169bb
movzx ecx, word [ebp - 0x50]
jmp 0x10169be
cmp byte [eax], 0x20
jbe 0x1016999
inc eax
mov dword [ebp - 0x20], eax
jmp 0x10169b0
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01011cdd
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10169dc
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1016a18
mov eax, esi
jmp 0x1016a2c
call fcn.01016b6f
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x1016fac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1016fac
test al, 0x10
jne 0x1016fac
xor eax, eax
inc eax
jmp 0x1016fae
xor eax, eax
pop ebp
ret 4
Function at 0x1016fb7
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 0x1016fef
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1016fef
push dword [ebp + 8]
and dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1016fe0
push 2
pop eax
jmp 0x1016ff4
test ah, 8
je 0x1016feb
mov dword [esi], 1
xor eax, eax
jmp 0x1016ff4
mov eax, 0xa0
pop esi
pop ebp
ret 8

Function at 0x1016ffe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x102a0ec]
push ebx
mov dword [ebp - 4], eax
push edi
xor ebx, ebx
lea eax, [ebp - 0x198]
xor edi, edi
inc ebx
push eax
mov dword [ebp - 0x19c], edi
mov dword [ebp - 0x1a4], 0x80
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x198], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1017050
xor edx, edx
jmp 0x1017168
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 ebx
mov dword [ebp - 0x1ac], edi
push edi
jne 0x10170f8
push 0x1006108
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101715f
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1a0]
push eax
push edi
push 0x10060dc
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1017153
cmp dword [ebp - 0x1a0], ebx
jne 0x1017153
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 0x1017153
push 0x1006088
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101715f
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1a0]
push eax
push edi
push 0x100606c
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1017153
cmp dword [ebp - 0x1a0], ebx
jne 0x1017153
lea eax, [ebp - 0x84]
push eax
call fcn.01016dfa
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]
pop edi
pop ebx
call fcn.0101672d
leave
ret
Function at 0x10175cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x102a0ec]
and dword [ebp - 0x30], 0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x30]
push eax
xor edi, edi
inc edi
push edi
push 0
push 0x10017a8
push 0x80000002
call ebx
test eax, eax
jne 0x101765d
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], 0x14
push dword [ebp - 0x30]
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1017654
cmp dword [ebp - 0x34], edi
jne 0x1017654
lea eax, [ebp - 0x2c]
push eax
push 0x1001780
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
inc esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x30]
push eax
push edi
push 0
push 0x1001940
push 0x80000001
call ebx
test eax, eax
jne 0x10176c2
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], 0x14
push dword [ebp - 0x30]
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10176b9
cmp dword [ebp - 0x34], edi
jne 0x10176b9
lea eax, [ebp - 0x2c]
push eax
push 0x1001780
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
inc esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x30]
push eax
push edi
push 0
push 0x1003488
push 0x80000002
call ebx
test eax, eax
jne 0x1017727
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], 0x14
push dword [ebp - 0x30]
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101771e
cmp dword [ebp - 0x34], edi
jne 0x101771e
lea eax, [ebp - 0x2c]
push eax
push 0x1001780
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
inc esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0101672d
leave
ret 8