joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011eab3
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x458
lea ebp, [esp - 4]
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x458], eax
push 0x1c
mov eax, 0x101952f3
call fcn.10145db3
mov eax, dword [ebp + 0x464]
mov esi, dword [ebp + 0x468]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call fcn.10007b11
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.10007b11
mov esi, 0x1019fce4
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.10059df5
push esi
lea ecx, [ebp - 0x18]
call fcn.10059df5
push dword [ebp - 0x20]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
jne 0x1011eb5f
xor esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.10003b75
lea ecx, [ebp - 0x18]
call fcn.10003b75
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.10145d71
add ebp, 0x45c
leave
ret
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x1011ec9d
push esi
lea ecx, [ebp - 0x18]
call fcn.1001107f
push esi
lea ecx, [ebp - 0x20]
call fcn.1001107f
push 0x206
lea eax, [ebp + 0x252]
push ebx
push eax
mov word [ebp + 0x250], bx
call fcn.10146c80
push 0x101a7a14
push dword [ebp - 0x18]
mov esi, str._s_s
push esi
push 0xffffffffffffffff
lea eax, [ebp + 0x250]
push 0x104
push eax
call fcn.1014612c
add esp, 0x24
lea eax, [ebp]
push eax
lea eax, [ebp + 0x250]
push eax
mov word [ebp + 0x456], bx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x28], edi
je 0x1011ec9d
mov dword [ebp - 0x24], 1
movzx eax, word [ebp + 0x2c]
sub eax, 0x2e
je 0x1011ec83
mov eax, dword [0x101f3028]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push esi
push eax
mov byte [ebp - 4], 3
call fcn.10004662
mov eax, dword [0x101f3028]
add esp, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push esi
push eax
mov byte [ebp - 4], 4
call fcn.10004662
add esp, 0x10
test byte [ebp], 0x10
push dword [ebp - 0x14]
je 0x1011ec65
push dword [ebp - 0x1c]
call fcn.1011eab3
cmp eax, ebx
pop ecx
pop ecx
jne 0x1011ec6f
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], ebx
call fcn.10003b75
lea ecx, [ebp - 0x1c]
call fcn.10003b75
jmp 0x1011ec96
call fcn.1011cbdd
test eax, eax
pop ecx
jne 0x1011ec50
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.10003b75
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1011ebec
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x24]
jmp 0x1011eb2a
Function at 0x1011ecbe
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x458
lea ebp, [esp - 4]
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x458], eax
push 0x10
mov eax, 0x1019532b
call fcn.10145db3
mov eax, dword [ebp + 0x464]
xor edi, edi
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], edi
call fcn.10007b11
mov esi, 0x1019fce4
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.10059df5
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1011ee0b
push esi
lea ecx, [ebp - 0x18]
call fcn.1001107f
push 0x206
lea eax, [ebp + 0x252]
push edi
push eax
mov word [ebp + 0x250], di
call fcn.10146c80
push 0x101a7a14
push dword [ebp - 0x18]
mov esi, str._s_s
push esi
push 0xffffffffffffffff
lea eax, [ebp + 0x250]
push 0x104
push eax
call fcn.1014612c
add esp, 0x24
lea eax, [ebp]
push eax
lea eax, [ebp + 0x250]
push eax
mov word [ebp + 0x456], di
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x1c], edi
je 0x1011ee0b
mov ebx, dword [ebp + 0x468]
movzx eax, word [ebp + 0x2c]
sub eax, 0x2e
je 0x1011edee
mov eax, dword [0x101f3028]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.10004662
add esp, 0x10
test byte [ebp], 0x10
je 0x1011edcd
test bl, 3
je 0x1011ede2
push ebx
push dword [ebp - 0x14]
call fcn.1011e521
jmp 0x1011ede0
test bl, 1
je 0x1011ede2
mov eax, ebx
and eax, 8
push eax
push dword [ebp - 0x14]
call fcn.1011d108
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10003b75
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1011ed8e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x18]
call fcn.10003b75
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.10145d71
add ebp, 0x45c
leave
ret
Function at 0x1011f1a9
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x101954a1
call fcn.10145de9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
push ecx
lea eax, [ebp + 8]
xor esi, esi
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], esi
call fcn.10007ade
call fcn.1011d27b
mov ebx, eax
lea eax, [ebx - 1]
cmp eax, 0x9fffff
pop ecx
ja 0x1011f2ab
cmp dword [ebp + 0x10], esi
jbe 0x1011f1f5
cmp ebx, dword [ebp + 0x10]
jbe 0x1011f1fb
cmp dword [ebp + 0x10], esi
jne 0x1011f2ab
lea edi, [ebx + 1]
push edi
call fcn.10144fc2
mov esi, eax
test esi, esi
pop ecx
je 0x1011f2ab
push edi
push 0
push esi
call fcn.10146c80
and dword [ebp - 0x28], 0
push 0x101a04a8
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.10147b95
add esp, 0x18
test eax, eax
jne 0x1011f291
cmp dword [ebp - 0x28], eax
je 0x1011f2a0
push dword [ebp - 0x28]
push 1
push ebx
push esi
call fcn.10147aa1
add esp, 0x10
cmp eax, 1
jne 0x1011f291
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.89F3CC4B_0091_49B0_81A6_188CFF582735
stosw word es:[edi], ax
push 0x101a047c
push 0xffffffffffffffff
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push 0x14
push eax
call fcn.10147724
push 0xa0
lea eax, [ebp - 0x24]
push eax
push ebx
push esi
call fcn.10073784
mov eax, dword [ebp - 0x30]
add esp, 0x24
mov dword [eax], esi
mov dword [ebp - 0x2c], ebx
xor esi, esi
cmp dword [ebp - 0x28], 0
je 0x1011f2a0
push dword [ebp - 0x28]
call fcn.101475da
pop ecx
test esi, esi
je 0x1011f2ab
push esi
call fcn.10145563
pop ecx
lea ecx, [ebp + 8]
call fcn.10003b75
mov eax, dword [ebp - 0x2c]
call fcn.10145e6c
ret

Function at 0x1011f647
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 4
mov eax, 0x1019559f
call fcn.10145d80
mov edi, dword [ebp + 0x214]
mov ebx, dword [ebp + 0x218]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
call fcn.1011f3da
pop ecx
push 0x5c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.10024557
push 0x206
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.10146c80
add esp, 0xc
lea eax, [ebp]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1011f6ca
push 0x1019f188
mov ecx, edi
call fcn.10007b11
jmp 0x1011f6e1
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000425b
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.10007ade
lea ecx, [ebp - 0x10]
call fcn.10003b75
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 + 0x208]
xor ecx, ebp
call fcn.10145d71
add ebp, 0x20c
leave
ret
Function at 0x1011f74d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or edi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1011f7a0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1011f797
cmp dword [ebp - 0xc], 4
jne 0x1011f797
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x1011f7a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x18]
push edi
push esi
push 0
push dword [ebp + 0x14]
or edi, 0xffffffff
call fcn.10146c80
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1011f806
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1011f7fd
cmp dword [ebp - 0xc], 1
jne 0x1011f7fd
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1011f80c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or esi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1011f84d
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1011f844
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1011f852
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or esi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1011f8a9
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1011f874
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1011f8a0
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1011f8f3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or esi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1011f947
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1011f915
sub eax, edx
sar eax, 1
inc eax
push eax
push dword [ebp + 0x14]
push 2
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1011f93e
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1011f94c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
or esi, 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1011f983
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1011f97a
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1011fd92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x8c
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
mov esi, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x78]
push 0x7f
lea eax, [ebp - 0x17]
push 0
push eax
mov byte [ebp - 0x18], 0
call fcn.10146c80
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x1c], 0x80
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor ecx, ecx
cmp eax, 2
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.10145d71
add ebp, 0x6c
leave
ret

Function at 0x1011fe70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], esi
jne 0x1011fe9b
xor eax, eax
jmp 0x1011ff01
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1011fed0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1011fe97
mov eax, dword [ebp - 8]
push edi
add eax, eax
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10144fc2
mov edi, eax
cmp edi, esi
pop ecx
jne 0x1011ff04
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret
push dword [ebp - 0x10]
call fcn.10144fc2
cmp eax, esi
pop ecx
mov dword [ebp - 0x18], eax
jne 0x1011ff21
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1011ff00
push ebx
xor ebx, ebx
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0xc], 1
jbe 0x1011ff86
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1011ff83
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
ja 0x1011ff83
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push edi
push dword [ebp + 0x14]
call dword [ebp + 0x10]
add esp, 0x14
test eax, eax
je 0x1011ff83
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x1011ff30
jmp 0x1011ff86
mov dword [ebp - 0xc], esi
push edi
call fcn.10145563
push dword [ebp - 0x18]
call fcn.10145563
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
pop ebx
jmp 0x1011ff14
Function at 0x1011ff9f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], esi
jne 0x1011ffcb
xor eax, eax
pop esi
leave
ret
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1011fffa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1011ffc6
push ebx
push edi
mov edi, dword [ebp - 0x14]
xor ecx, ecx
push 2
lea edi, [edi + edi + 2]
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10144fc2
mov ebx, eax
cmp ebx, esi
pop ecx
jne 0x1012002f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
jmp 0x1011ffc8
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], esi
jbe 0x1012006d
push edi
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1012006a
push ebx
push dword [ebp + 0x14]
call dword [ebp + 0x10]
test eax, eax
pop ecx
pop ecx
je 0x1012006a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jb 0x1012003e
jmp 0x1012006d
mov dword [ebp - 0x10], esi
push ebx
call fcn.10145563
mov esi, dword [ebp - 0x10]
pop ecx
jmp 0x10120020
Function at 0x10120256
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.10146c50
push 0xffffffffffffffff
push 0x1019560a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x1018]
mov eax, dword [ebp + 0x1010]
mov ebx, dword [ebp + 0x100c]
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x20], eax
je 0x1012046a
cmp eax, edi
je 0x1012046a
mov eax, dword [0x101f3028]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], eax
push 0x101a21a8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
call fcn.1000425b
push ebx
lea ecx, [ebp - 0x14]
call fcn.1001107f
push 0x101a2190
lea ecx, [ebp - 0x14]
call fcn.1001107f
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.10148cc9
test eax, eax
mov ebx, dword [ebp - 0x30]
pop ecx
pop ecx
je 0x1012030a
mov ebx, 0x800
push 0x101b7114
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10147b95
add esp, 0xc
test eax, eax
jne 0x1012045a
cmp dword [ebp - 0x18], edi
je 0x1012045a
lea esi, [ebx + 1]
push esi
call fcn.10144fc2
push esi
xor esi, esi
mov edi, eax
push esi
push edi
call fcn.10146c80
push dword [ebp - 0x18]
push ebx
push 1
push edi
call fcn.10147aa1
push 0xffe
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.10146c80
add esp, 0x2c
push 0x800
lea eax, [ebp]
push eax
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call fcn.10145563
lea eax, [ebp]
push eax
mov esi, 0x101a32c4
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10004662
mov ebx, dword [ebp - 0x14]
add esp, 0x10
push 0
push ebx
lea ecx, [ebp - 0x10]
call fcn.10003b43
mov edi, eax
cmp edi, 0xffffffff
je 0x1012045a
add edi, dword [ebx - 8]
mov ebx, dword [ebp - 0x10]
movzx eax, word [ebx + edi*2]
movzx ecx, ax
cmp cx, 0xd
je 0x101203c9
movzx eax, ax
cmp ax, 0xa
jne 0x101203cf
inc edi
cmp dword [ebx - 8], edi
jg 0x101203b3
push edi
push 0x101a21a8
lea ecx, [ebp - 0x10]
call fcn.10003b43
cmp eax, 0xffffffff
jne 0x101203e5
mov eax, dword [ebx - 8]
lea ecx, [ebx + eax*2 - 2]
movzx edx, word [ecx]
movzx ebx, dx
cmp bx, 0xd
je 0x101203fe
movzx edx, dx
cmp dx, 0xa
jne 0x10120403
dec eax
dec ecx
dec ecx
jmp 0x101203e9
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.100116c3
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.1000401e
push eax
push esi
push 0xffffffffffffffff
push dword [ebp + 0x1014]
push dword [ebp - 0x20]
call fcn.1014612c
push dword [ebp - 0x18]
call fcn.101475da
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.10003b75
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x10]
call fcn.10003b75
xor eax, eax
jmp 0x1012046d
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x10]
call fcn.10003b75
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.10145d71
add ebp, 0x1004
leave
ret
Function at 0x10120490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x78c], eax
mov eax, dword [ebp + 0x7a4]
push ebx
mov ebx, dword [ebp + 0x7a0]
push esi
mov esi, dword [ebp + 0x798]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x7a8]
push edi
mov edi, dword [ebp + 0x79c]
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
push 0x7fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.10146c80
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x800
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10120522
cmp dword [ebp - 0x78], 1
jne 0x10120522
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.10007b11
jmp 0x1012052c
push dword [ebp - 0x80]
mov ecx, esi
call fcn.10007ade
mov ecx, dword [ebp + 0x78c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10145d71
add ebp, 0x790
leave
ret

Function at 0x10120901
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
jne 0x1012090f
xor eax, eax
inc eax
ret
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov word [eax + 0x1c], cx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
ret
Function at 0x10120944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14c
push ebx
push esi
push edi
xor esi, esi
lea ecx, [eax + 0x1f]
movzx edi, byte [ecx + 1]
xor edx, edx
mov dh, byte [ecx - 1]
mov dl, byte [ecx]
add ecx, 4
shl edx, 8
or edx, edi
movzx edi, byte [ecx - 2]
shl edx, 8
or edx, edi
mov dword [ebp + esi*4 - 0x14c], edx
inc esi
cmp esi, 0x10
jl 0x10120958
push 0x40
lea ecx, [ebp - 0x144]
pop edx
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x1012098a
mov esi, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
and dword [ebp + 8], 0
mov dword [ebp - 4], esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 8]
mov edi, ecx
not edi
and edi, dword [ebp - 4]
mov ebx, edx
and ebx, ecx
or edi, ebx
rol esi, 5
add esi, edi
mov edi, dword [ebp + 8]
add esi, dword [ebp + edi*4 - 0x14c]
mov edi, dword [ebp - 0xc]
inc dword [ebp + 8]
lea esi, [esi + edi + 0x5a827999]
mov edi, dword [ebp - 4]
ror ecx, 2
cmp dword [ebp + 8], 0x14
mov dword [ebp - 4], edx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
jl 0x101209bb
mov dword [ebp + 8], 0x14
mov ebx, dword [ebp - 4]
xor ebx, edx
xor ebx, ecx
rol esi, 5
add esi, ebx
mov ebx, dword [ebp + 8]
add esi, dword [ebp + ebx*4 - 0x14c]
inc dword [ebp + 8]
lea esi, [esi + edi + 0x6ed9eba1]
mov edi, dword [ebp - 4]
ror ecx, 2
cmp dword [ebp + 8], 0x28
mov dword [ebp - 4], edx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], esi
jl 0x10120a08
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 0x28
mov edi, edx
or edi, ecx
and edi, dword [ebp - 4]
mov ebx, edx
and ebx, ecx
or edi, ebx
mov ebx, dword [ebp + 8]
add edi, dword [ebp + ebx*4 - 0x14c]
rol esi, 5
add esi, dword [ebp - 0xc]
inc dword [ebp + 8]
lea esi, [edi + esi - 0x70e44324]
mov edi, dword [ebp - 4]
ror ecx, 2
push 0x3c
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
pop edi
cmp dword [ebp + 8], edi
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], esi
jl 0x10120a49
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
xor edi, edx
xor edi, ecx
add edi, dword [ebp + ebx*4 - 0x14c]
mov ebx, dword [ebp - 4]
rol esi, 5
add esi, dword [ebp - 0xc]
inc dword [ebp + 8]
ror ecx, 2
cmp dword [ebp + 8], 0x50
mov dword [ebp - 4], edx
lea esi, [edi + esi - 0x359d3e2a]
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
jl 0x10120a8f
mov edi, dword [eax]
add edi, esi
mov esi, dword [eax + 4]
add esi, ecx
mov ecx, dword [eax + 8]
add ecx, edx
mov edx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, edx
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [eax], edi
pop edi
add ecx, ebx
and word [eax + 0x1c], 0
mov dword [eax + 4], esi
pop esi
mov dword [eax + 0x10], ecx
pop ebx
leave
ret