joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10989c8
Capabilities:
List domain servers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x10e607c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x24c], eax
mov eax, dword [esi + 0x34]
push 8
xor ebx, ebx
mov dword [ebp - 0x244], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x274]
rep stosd dword es:[edi], eax
push 2
pop eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x250], ebx
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x244]
lea eax, [ebp - 0x248]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x23c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x234]
push eax
push 0x65
push ebx
call sub.NETAPI32.dll_NetServerEnum
cmp eax, ebx
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x238], ebx
jne 0x1098b03
mov edi, dword [ebp - 0x234]
add edi, 0x14
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x23c]
jae 0x1098b03
lea eax, [ebp - 0x230]
push 0x10045e8
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [edi - 0x10]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x260], eax
mov eax, dword [edi]
add esp, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x274]
push eax
push esi
push dword [ebp - 0x24c]
call fcn.010986fd
mov eax, dword [ebp - 0x254]
cmp eax, ebx
je 0x1098af5
push ebx
push eax
mov dword [eax + 0x18], esi
lea eax, [esi + 0x1c]
push eax
call fcn.010948b9
inc dword [ebp - 0x238]
add edi, 0x18
jmp 0x1098a7c
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x248]
jae 0x1098b1d
cmp dword [ebp - 0x240], ebx
je 0x1098a31
cmp dword [ebp - 0x234], ebx
pop edi
pop ebx
je 0x1098b32
push dword [ebp - 0x234]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and ax, 0xfe05
call fcn.01078836
leave
ret 4
Function at 0x109aa91
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10e607c]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x10112c8
push 0x80000002
mov dword [ebp - 0x210], esi
mov word [ebp - 0x20c], si
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x210], esi
je 0x109ab20
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x20c], si
jne 0x109ab4c
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x10112b8
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01078836
leave
ret 4
Function at 0x109d30e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x4028
call fcn.0107a6d0
mov eax, dword [0x10e607c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x4020], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push 0x5c
push eax
mov dword [ebp - 0x4014], eax
mov dword [ebp - 0x4024], ecx
mov dword [ebp - 0x4010], edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
mov dword [ebp - 0x4008], eax
lea eax, [ebp - 0x4010]
push eax
push 1
push edi
push 0x1005f20
push dword [ebp - 0x4020]
xor ebx, ebx
mov dword [ebp - 0x400c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x109d489
mov eax, 0x1000
mov dword [ebp - 0x4028], eax
mov dword [ebp - 0x4018], eax
lea eax, [ebp - 0x4018]
push eax
lea eax, [ebp - 0x2004]
push eax
push edi
push edi
lea eax, [ebp - 0x4028]
push eax
lea eax, [ebp - 0x4004]
push eax
push ebx
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp - 0x401c], eax
jne 0x109d444
push dword [ebp - 0x4008]
call esi
mov edi, eax
lea eax, [ebp - 0x2004]
push eax
call esi
cmp eax, edi
pop ecx
pop ecx
jbe 0x109d444
push dword [ebp - 0x4008]
call esi
mov edi, eax
lea eax, [ebp - 0x2004]
push eax
call esi
sub eax, edi
lea edi, [ebp + eax*2 - 0x2004]
lea eax, [ebp - 0x4004]
push eax
call esi
add esp, 0xc
cmp dword [ebp + 0x10], eax
jbe 0x109d444
push dword [ebp - 0x4008]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x109d444
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x4024]
call dword [sym.imp.msvcrt.dll_wcscpy]
inc dword [ebp - 0x400c]
pop ecx
pop ecx
xor edi, edi
inc ebx
cmp dword [ebp - 0x401c], edi
je 0x109d38a
push dword [ebp - 0x4010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x400c], 1
jle 0x109d494
mov eax, dword [ebp - 0x4008]
jmp 0x109d47c
dec eax
dec eax
cmp word [eax], 0x5c
je 0x109d359
cmp eax, dword [ebp - 0x4014]
jne 0x109d470
jmp 0x109d35f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x109d4a0
xor eax, eax
cmp dword [ebp - 0x400c], 1
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0xc
Function at 0x109d4b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x601c
call fcn.0107a6d0
mov eax, dword [0x10e607c]
push ebx
push esi
push edi
mov ebx, edx
lea edx, [ebp - 0x6008]
push edx
xor edi, edi
inc edi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x6018], esi
mov dword [ebp - 0x600c], edi
mov dword [ebp - 0x6008], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x109d50c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
jmp 0x109d613
lea eax, [ebp - 0x6010]
push eax
lea eax, [ebp - 0x4004]
push eax
push esi
push esi
lea eax, [ebp - 0x601c]
push eax
lea eax, [ebp - 0x6004]
push eax
push dword [ebp - 0x6018]
mov dword [ebp - 0x601c], 0x1000
push dword [ebp - 0x6008]
mov dword [ebp - 0x6010], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
mov dword [ebp - 0x6014], eax
jne 0x109d5ed
push 4
lea eax, [ebp - 0x6004]
push 0x1011bd8
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x109d5ed
mov eax, dword [ebp - 0x6010]
mov word [ebp + eax*2 - 0x4004], si
cmp eax, esi
je 0x109d5a8
dec eax
cmp word [ebp + eax*2 - 0x4004], 0x25
mov dword [ebp - 0x6010], eax
jne 0x109d587
cmp eax, esi
lea edi, [ebp + eax*2 - 0x4000]
jne 0x109d5ae
lea edi, [ebp - 0x4004]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
push ebx
mov esi, eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp esi, eax
pop ecx
pop ecx
jl 0x109d5cd
sub esi, eax
push ebx
lea eax, [edi + esi*2]
push eax
jmp 0x109d5d4
sub eax, esi
lea ebx, [ebx + eax*2]
push ebx
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x109d5ed
and dword [ebp - 0x600c], eax
or dword [ebp - 0x6014], 0xffffffff
inc dword [ebp - 0x6018]
xor esi, esi
cmp dword [ebp - 0x6014], esi
je 0x109d50c
push dword [ebp - 0x6008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x600c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 4
Function at 0x109d7ae
Capabilities:
Delete registry value
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10e607c]
and dword [ebp - 0x2c], 0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov ebx, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
push 9
pop ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x1011be4
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
mov dword [ebp - 0x34], eax
call esi
pop ecx
lea edi, [ebx + eax*2]
jmp 0x109d7f7
dec edi
dec edi
cmp word [edi], 0x5c
jne 0x109d7f5
lea eax, [ebp - 0x28]
inc edi
push eax
inc edi
call esi
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
mov esi, eax
neg esi
sbb esi, esi
push 0x1011cd4
neg esi
push edi
add esi, 0x80000002
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
add esp, 0x18
test eax, eax
jne 0x109d895
push dword [ebp - 0x30]
push 0x1011cb8
push esi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x109d895
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
push eax
push 0x2000000
push 4
push eax
push eax
push 0x1011c40
push esi
call ebx
test eax, eax
jne 0x109d882
push 0x1011c1c
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push 0x1011cb8
push esi
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
push eax
push 0x2000000
push 4
push eax
push eax
push edi
push esi
call ebx
test eax, eax
je 0x109d8bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x109d928
cmp dword [ebp - 0x34], 0
je 0x109d8f5
cmp esi, 0x80000003
jne 0x109d8f5
push 0x1011c08
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x109d8f5
push 5
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x109d914
mov esi, 0xfffffeb4
jmp 0x109d91d
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegReplaceKeyW]
mov esi, eax
cmp esi, 0xfffffeb4
je 0x109d91d
test esi, esi
je 0x109d91d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
inc esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0xc
Function at 0x109d93c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2430
call fcn.0107a6d0
mov eax, dword [0x10e607c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x2428], eax
mov eax, dword [eax + 4]
push esi
xor esi, esi
mov dword [ebp - 0x241c], ecx
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x2418], esi
mov dword [ebp - 0x2420], esi
test byte [eax + 0x60], 0x80
jne 0x109db46
push ebx
push edi
push dword [ecx + 0x3c]
mov edi, 0x80000002
push 0x1011cb8
push edi
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
cmp eax, esi
jne 0x109db17
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2424]
push eax
lea eax, [ebp - 0x2418]
push eax
push esi
push 0x2000000
push 4
push esi
push esi
push 0x1011e10
push edi
call ebx
cmp eax, esi
jne 0x109db17
lea eax, [ebp - 0x242c]
push eax
lea eax, [ebp - 0x2420]
push eax
push esi
push esi
push 0x1011e00
push dword [ebp - 0x2418]
mov dword [ebp - 0x242c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2418]
mov dword [ebp - 0x2430], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2430], esi
mov dword [ebp - 0x2418], esi
jne 0x109db31
push 0x1011db0
push dword [ebp - 0x2420]
lea eax, [ebp - 0x2414]
push 0x1011d38
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x2424]
push eax
lea eax, [ebp - 0x2418]
push eax
push esi
push 0x2000000
push 4
push esi
push esi
lea eax, [ebp - 0x2414]
push eax
push edi
call ebx
cmp eax, esi
jne 0x109db17
mov eax, dword [ebp - 0x2428]
mov eax, dword [eax + 0x14]
test byte [eax + 0x9e], 0x80
je 0x109db17
mov eax, dword [ebp - 0x241c]
cmp word [eax + 0x8e], si
je 0x109db17
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
mov dword [ebp - 0x241c], ebx
mov word [ebp - 0x20c], si
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x101119c
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0x10
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
push 0x1011d14
push dword [ebp - 0x2418]
call ebx
push 4
lea eax, [ebp - 0x241c]
push eax
push 4
push esi
push 0x1011ce8
push dword [ebp - 0x2418]
call ebx
cmp dword [ebp - 0x2418], esi
je 0x109db31
push dword [ebp - 0x2418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2418], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push 0x1011cb8
push edi
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01078836
leave
ret 4
Function at 0x109e06e
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2020
call fcn.0107a6d0
mov eax, dword [0x10e607c]
push esi
mov dword [ebp - 0x2014], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2018], ecx
lea ecx, [ebp - 0x2008]
push ecx
push 0x20019
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1011e48
push eax
mov dword [ebp - 0x2010], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x109e157
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x2020]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2004]
push eax
push ebx
push dword [ebp - 0x2008]
mov dword [ebp - 0x200c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, esi
jne 0x109e12d
mov eax, dword [ebp - 0x200c]
push dword [ebp - 0x2008]
mov edx, dword [ebp - 0x2014]
lea ecx, [ebp - 0x2004]
mov word [ebp + eax*2 - 0x2004], si
call fcn.0109d4b4
cmp eax, esi
mov dword [ebp - 0x2010], eax
je 0x109e134
inc ebx
cmp edi, esi
je 0x109e0c9
jmp 0x109e149
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2018]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2010]
pop esi
call fcn.01078836
leave
ret 8

Function at 0x109e16f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.0107a6d0
mov eax, dword [0x10e607c]
push ebx
mov dword [ebp - 0x4018], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x401c], ecx
lea ecx, [ebp - 0x4008]
push ecx
push 1
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1005f20
push eax
mov dword [ebp - 0x4008], eax
mov dword [ebp - 0x4010], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x109e25e
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x2004]
push eax
push ebx
push ebx
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x4004]
push eax
push dword [ebp - 0x4010]
mov dword [ebp - 0x4014], 0x1000
push dword [ebp - 0x4008]
mov dword [ebp - 0x400c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, ebx
jne 0x109e22b
mov eax, dword [ebp - 0x400c]
shr eax, 1
cmp dword [ebp - 0x400c], 2
mov word [ebp + eax*2 - 0x2004], bx
ja 0x109e237
inc dword [ebp - 0x4010]
cmp esi, ebx
je 0x109e1c8
jmp 0x109e250
push dword [ebp - 0x4018]
mov ebx, dword [ebp - 0x401c]
lea eax, [ebp - 0x2004]
call fcn.0109d627
mov esi, eax
push dword [ebp - 0x4008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x109e264
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01078836
leave
ret 8
Function at 0x109e349
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x5c
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
cmp eax, esi
pop ecx
pop ecx
je 0x109e4c3
push 0x5c
push dword [ebp + 0x10]
mov word [eax], si
call edi
cmp eax, esi
pop ecx
pop ecx
je 0x109e4c3
mov word [eax], si
inc eax
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
mov edi, 0x80000002
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x109e3c2
cmp dword [ebp - 4], esi
je 0x109e4c3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x109e4c3
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2000000
push 4
push 0x100210c
push esi
push dword [ebp + 0x10]
push edi
call ebx
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x109e425
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2000000
push esi
push 0x100210c
push esi
push dword [ebp + 0x10]
push edi
call ebx
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x109e425
cmp dword [ebp - 4], esi
je 0x109e4c2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x109e4c2
mov ebx, dword [ebp - 0x10]
cmp word [ebx], si
je 0x109e497
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push esi
push ebx
push dword [ebp - 4]
mov dword [ebp + 0x10], esi
call edi
cmp eax, esi
jne 0x109e4a8
push 1
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x109e4a8
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp + 0x14]
push eax
push esi
push ebx
push dword [ebp - 4]
call edi
cmp eax, esi
jne 0x109e48b
cmp dword [ebp + 0xc], esi
jne 0x109e48b
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0x14]
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x109e4a8
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0109db9a
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x109e4b8
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], esi
je 0x109e4c2
push dword [ebp - 8]
call edi
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x109f2f5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x10e607c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push 0x10120f0
push 0x80000002
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x109f337
mov ax, 1
jmp 0x109f38b
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push 0x10120d8
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp - 0x808]
je 0x109f36c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x109f331
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x804]
push 0x10120cc
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
call fcn.01078836
leave
ret
Function at 0x10a01c3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [ebp + 0x10], 0
je 0x10a0211
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
movzx edi, word [ebp + 0x10]
movsx eax, word [ecx + 0x10]
movsx ebx, word [ecx + 8]
cdq
idiv ebx
inc dword [ecx + 0x10]
movsx eax, dx
mov edx, dword [ecx + 4]
movzx eax, byte [eax + edx]
movzx edx, byte [ecx + 0xa]
xor eax, edx
movzx edx, byte [esi]
xor eax, edx
mov al, byte [eax + 0x10e6f18]
mov byte [esi], al
inc esi
dec edi
mov byte [ecx + 0xa], al
jne 0x10a01dc
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10a021a
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [ebp + 0x10], 0
je 0x10a0269
movzx eax, word [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x10], eax
movsx eax, word [ecx + 0x10]
movsx edi, word [ecx + 8]
cdq
idiv edi
inc dword [ecx + 0x10]
mov bl, byte [esi]
mov edi, dword [ecx + 4]
movzx eax, bl
mov al, byte [eax + 0x10e7018]
movsx edx, dx
xor al, byte [edx + edi]
xor al, byte [ecx + 0xa]
mov byte [ecx + 0xa], bl
mov byte [esi], al
inc esi
dec dword [ebp + 0x10]
jne 0x10a0236
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10aa8d2
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x5c]
push edi
xor edi, edi
cmp ebx, edi
je 0x10aa9d5
mov eax, dword [ebx + 0x38]
cmp eax, edi
je 0x10aa9d5
push 0x1012624
push eax
call fcn.010b2fb3
cmp eax, edi
mov dword [ebp - 4], eax
je 0x10aa9a9
mov ecx, dword [esi + 0x5c]
cmp word [ecx + 4], di
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 5
push edi
je 0x10aa922
add eax, 8
push eax
call esi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push 0x1005bdc
call edi
push dword [ebx + 0x3c]
mov dword [ebp - 8], eax
call edi
mov ecx, dword [ebp - 8]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10aa9a9
push dword [ebx + 0x3c]
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [eax + 0x5c]
xor eax, eax
cmp word [ecx + 4], ax
push 5
push eax
je 0x10aa976
lea eax, [edi + 8]
push eax
jmp 0x10aa977
push edi
call esi
push 0x1005bdc
push edi
call dword [sym.imp.msvcrt.dll_wcscat]
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [eax + 0x5c]
xor eax, eax
cmp word [ecx + 4], ax
push 5
push eax
je 0x10aa99e
lea eax, [edi + 8]
push eax
jmp 0x10aa99f
push edi
call esi
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebx + 0x3c]
push dword [ebp + 8]
call fcn.0109f082
cmp dword [ebp - 4], 0
je 0x10aa9d5
push dword [ebp - 4]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push dword [ebp + 8]
call fcn.0109e2d3
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4