joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fae0
Capabilities:
Get number of processors
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003df20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100551d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x30]
mov dword [ebp - 0x18], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1000fb20
mov eax, dword [edi]
push edi
call dword [eax]
cmp dword [esi + 0x20], 0
mov dword [ebp - 4], 0
jl 0x1000fb37
mov esi, 1
jmp 0x1000fc84
mov ebx, dword [ebp + 8]
mov dword [esi + 0x20], ebx
test ebx, ebx
jns 0x1000fb48
xor esi, esi
jmp 0x1000fc84
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000fb58
push eax
lea ecx, [esi + 0x2c]
call fcn.1000f570
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000fb6a
push eax
lea ecx, [esi + 0x28]
call fcn.1000f570
jmp 0x1000fba3
lea eax, [ebp + 8]
push ebx
push eax
call fcn.10014370
add esp, 8
push eax
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.10001a70
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000fba3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.1000fe10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.100140d0
add esp, 8
push dword [ebp - 0x10]
mov byte [ebp - 4], 2
push 0
push str.stat_rand
push str.statistic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x1000fc60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1002af93
add esp, 4
call fcn.1002af72
cdq
mov ecx, 0x64
idiv ecx
inc edx
mov dword [esi + 0x18], edx
call fcn.100020f0
mov ecx, eax
test ecx, ecx
je 0x1000fcab
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push dword [esi + 0x18]
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push 0x1003f338
push eax
call fcn.10006b30
mov esi, dword [ebp + 8]
add esp, 0xc
push dword [ebp - 0x10]
push esi
push str.stat_rand
push str.statistic
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000fc60
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov esi, 1
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000fc84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
test edi, edi
je 0x1000fc95
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.10001e70
int3
Function at 0x1000fcc0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003df53
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x1000fd65
cmp word [esi], di
je 0x1000fd65
test eax, eax
je 0x1000fd21
cmp word [eax], di
je 0x1000fd21
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x1000fd65
jmp 0x1000fd60
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x1000fd65
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1000fddc
mov eax, dword [ebx + 0x20]
test eax, eax
js 0x1000fdc7
lea esi, [ebx + 0x30]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x1000fd95
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x1000fdb6
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x1000fdfc
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x1000fdc7
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1000fddc
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret 0x30
call fcn.1000aa46
int3
Function at 0x10012750
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e2fb
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x20], 8
lea esi, [edi + 0xc]
jb 0x1001278b
mov esi, dword [esi]
push 0x180
push 0x40
push 0x8101
lea ebx, [edi + 0x24]
push esi
push ebx
call fcn.1002bb9a
add esp, 0x14
mov dword [ebp - 0xac], eax
test eax, eax
je 0x1001285c
push 0x98
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
lea ecx, [ebp - 0xa8]
push 1
push 2
call fcn.100110f0
push 0x10044298
push dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push str._error.__
push esi
push str.open
push eax
call fcn.10010620
add esp, 8
push eax
call fcn.10010620
add esp, 8
push eax
call fcn.10010620
add esp, 8
mov ecx, eax
call fcn.100116a0
push eax
call fcn.10010620
add esp, 8
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0xa8]
push eax
call fcn.100128a0
cmp dword [eax + 0x14], 8
jb 0x1001283f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xc4]
call fcn.100046e0
lea ecx, [ebp - 0xa8]
call fcn.10004bb0
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x10012875
push 2
push 0
push eax
call fcn.1002bfc3
add esp, 0xc
mov dword [edi + 4], eax
jmp 0x1001287c
mov dword [edi + 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret
Function at 0x10012be0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e3f8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x44]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], esi
cmp eax, 2
je 0x10012dc2
cmp eax, 1
jne 0x10012dda
cmp byte [edi + 8], 0
je 0x10012c36
call fcn.10012750
mov byte [edi + 8], 0
cmp dword [edi + 4], 0x40000000
jle 0x10012c72
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x10012c57
push eax
call fcn.1002bc64
add esp, 4
mov dword [edi + 0x24], 0xffffffff
cmp dword [edi + 0x20], 8
lea eax, [edi + 0xc]
jb 0x10012c62
mov eax, dword [eax]
push eax
call fcn.1002b28c
add esp, 4
mov ecx, edi
call fcn.10012750
cmp dword [edi + 0x28], 0
jne 0x10012d0d
push 0
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.10012960
add esp, 0xc
push 2
push 0x100442d8
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10005640
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x38], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
mov ecx, dword [edi + 0x24]
cmovae eax, dword [ebp - 0x48]
cmp ecx, 0xffffffff
je 0x10012cf2
push dword [ebp - 0x38]
push eax
push ecx
call fcn.1002c579
add esp, 0xc
jmp 0x10012cf5
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c], eax
call fcn.10004690
lea ecx, [ebp - 0x60]
call fcn.10004690
jmp 0x10012db6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.10012960
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
lea ecx, [edi + 0x2c]
push ecx
push eax
call fcn.1000dfb0
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.10004690
test esi, esi
jne 0x10012d68
push 0xd
push str.write_failed.
lea ecx, [ebp - 0x28]
call fcn.10005950
push 0x100442d8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.100108d0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x10012d88
mov eax, dword [eax]
mov ecx, dword [edi + 0x24]
cmp ecx, 0xffffffff
je 0x10012d9d
push edx
push eax
push ecx
call fcn.1002c579
add esp, 0xc
jmp 0x10012da0
or eax, 0xffffffff
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x2c], eax
call fcn.10004690
lea ecx, [ebp - 0x28]
call fcn.10004690
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x10012dc2
add dword [edi + 4], eax
jmp 0x10012dda
cmp dword [esi + 0x14], 8
jb 0x10012dca
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x100442d0
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret 4
Function at 0x100145d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e56e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
call fcn.100020f0
mov ecx, eax
test ecx, ecx
je 0x10014824
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 1
call fcn.10008eb0
add esp, 4
lea ecx, [ebp - 0x224]
mov esi, eax
push dword [esi + 0xc]
call fcn.100017e0
mov dword [ebp - 4], 1
call fcn.100020f0
mov ecx, eax
test ecx, ecx
je 0x1001482e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push str.InstallDate
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.10001e90
test al, al
jne 0x100146ac
push 0xb
push str.InstallDate
lea ecx, [ebp - 0x21c]
call fcn.10002b80
cmp dword [esi], 2
mov byte [ebp - 4], 3
jne 0x100146c7
push 4
push str.Date
lea ecx, [ebp - 0x21c]
call fcn.10002b80
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
push 0x20219
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
push SysReAllocStringLen
call fcn.10015230
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x238]
test eax, eax
jne 0x100147be
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100147be
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x1001476b
cmp eax, 2
jne 0x100147be
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10014788
test al, 1
jne 0x100147be
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10014791
jmp 0x100147be
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100147a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10002b80
test edi, edi
je 0x100147c9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100147e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10014806
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001e70
push 0x80004005
call fcn.10001e70
int3
Function at 0x10014dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e56e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
call fcn.100020f0
mov ecx, eax
test ecx, ecx
je 0x10015004
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 1
call fcn.10008eb0
add esp, 4
lea ecx, [ebp - 0x224]
mov eax, dword [eax + 0xc]
push eax
call fcn.100017e0
mov dword [ebp - 4], 1
call fcn.100020f0
mov ecx, eax
test ecx, ecx
je 0x1001500e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x10044600
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.10001e90
test al, al
jne 0x10014eab
push 3
push 0x10044600
lea ecx, [ebp - 0x21c]
call fcn.10002b80
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
push 0x20219
push dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 4
push SysReAllocStringLen
call fcn.10015230
mov esi, dword [ebp - 0x21c]
mov edi, dword [ebp - 0x238]
test eax, eax
jne 0x10014f9e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10014f9e
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x10014f4f
cmp eax, 2
jne 0x10014f9e
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x10014f6c
test al, 1
jne 0x10014f9e
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10014f75
jmp 0x10014f9e
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014f80
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10002b80
test edi, edi
je 0x10014fa9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10014fc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10014fe6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001e70
push 0x80004005
call fcn.10001e70
int3
Function at 0x10015060
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x100151f4
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x228]
push eax
call edi
test esi, esi
jle 0x100150cf
lea eax, [ebp - 0x228]
push eax
call edi
sub esi, 1
jne 0x100150c1
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0
push eax
call fcn.10008e90
mov ecx, dword [ebp - 0x63c]
mov edi, eax
add esp, 4
mov esi, edi
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, edi
cmp edi, ecx
je 0x100151f4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x638]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
lea eax, [ebp - 0x228]
push dword [esi + 8]
push eax
lea eax, [ebp - 0x638]
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi]
test eax, eax
jne 0x1001521a
cmp ecx, 2
jne 0x100151db
push 0x208
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.1001ccd0
add esp, 0xc
mov dword [ebp - 0x20], 0x61004d
lea eax, [ebp - 0x430]
mov dword [ebp - 0x1c], 0x740073
mov dword [ebp - 0x18], 0x720065
mov dword [ebp - 0x14], 0x440050
push 0
push 0x1a
push eax
push 0
mov dword [ebp - 0x10], 0x440046
mov dword [ebp - 0xc], 0x740061
mov dword [ebp - 8], 0x61
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x10015207
mov eax, dword [ebp - 0x63c]
add esi, 0x50
lea eax, [eax + eax*4]
shl eax, 4
add eax, edi
cmp esi, eax
jne 0x10015110
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013318
mov esp, ebp
pop ebp
ret

Function at 0x10016630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10016210
Function at 0x10017860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e873
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100551d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10008ef0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x10017a73
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x10017a73
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x10017a73
push eax
call esi
test eax, eax
je 0x10017a73
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push SysReAllocStringLen
call fcn.10015230
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x10017a64
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001ccd0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10017a64
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x1001798b
cmp eax, 2
jne 0x10017a64
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x100179ac
test cl, 1
jne 0x10017a64
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x100179b2
jmp 0x10017a64
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x10017a64
lea ecx, [ebp - 0x78]
call fcn.10015cf0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.10015dc0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x100447f0
push eax
call fcn.100031a0
push 0x2a
push dword [ebp - 0x78]
call fcn.10016210
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x10017a5c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10017a12
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.10002b80
push dword [0x10055204]
lea eax, [ebp - 0x74]
push dword [0x10055200]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x10017a4d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.10001a30
mov edi, 1
jmp 0x10017a66
lea ecx, [ebp - 0x78]
call fcn.10001a30
xor edi, edi
test esi, esi
je 0x10017a75
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10017a75
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013318
mov esp, ebp
pop ebp
ret
Function at 0x10017ab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10017ac5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10017ad0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1001ac30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001aca1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1001ac6f
cmp eax, 2
jne 0x1001ac8b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1001ac9b
test ecx, ecx
je 0x1001ac96
test cl, 1
jne 0x1001ac8b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1001ac9b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100367e1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100364a1