joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103c6a0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10e607c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, 0x104
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x414]
push eax
push 0x1005ee4
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x428], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x103c72b
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.010955b9
test ax, ax
je 0x103c734
mov ax, 1
jmp 0x103c7e7
cmp dword [ebp + 0x18], 0
jne 0x103c74c
and word [ebp - 0x20c], 0
mov dword [ebp - 0x41c], 2
cmp dword [ebp + 0x18], 2
mov esi, 0x10055f4
je 0x103c77f
push edi
push esi
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
push dword [ebp - 0x424]
push ebx
call fcn.0103bd5d
mov ebx, eax
test bx, bx
jne 0x103c7e4
inc dword [edi + 4]
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push eax
push 6
push 0
push dword [ebp - 0x428]
call fcn.01087561
mov ebx, eax
test bx, bx
jne 0x103c7e4
push edi
push esi
push 2
push 0x100210c
push dword [ebp - 0x418]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call fcn.0103bd5d
push dword [ebp - 0x418]
push dword [ebp - 0x420]
mov ebx, eax
call fcn.010951ce
test eax, eax
je 0x103c7e4
mov byte [eax + 0xcc], 0x23
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0x14

Function at 0x103c7fb
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov esi, 0x10e9e50
xor ebx, ebx
push esi
mov dword [0x10ea06c], edi
mov dword [0x10ea068], edi
mov word [0x10ea064], di
mov dword [0x10ea060], edi
inc ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ax, word [ebp + 0xc]
pop ecx
mov word [0x10ea058], ax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [0x10ea05c], eax
call sub.MFC42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42u.dll_CCmdTarget::BeginWaitCursor
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x103c1cd
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x103c89b
call fcn.0107875a
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x103c86a
lea eax, [ebp + 0xc]
push eax
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 0xc], edi
jne 0x103c894
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sub.MFC42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42u.dll_CCmdTarget::EndWaitCursor
pop edi
pop esi
mov ax, bx
pop ebx
pop ebp
ret 0xc
Function at 0x10480db
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x10d4c59
call fcn.0107a498
sub esp, 0x2c0
mov eax, dword [0x10e607c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2cc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x104811e
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
jmp 0x1048237
call dword [eax + 0x44]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x1048139
push 0x23
call dword [eax + 0x2c]
mov eax, dword [esi]
push 0x22
mov ecx, esi
call dword [eax + 0x30]
jmp 0x104813e
push 0x26
call dword [eax + 0x2c]
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c4], ebx
mov ecx, 0xac
lea edi, [ebp - 0x2c0]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.dll_CString::CString_2
mov eax, dword [esi]
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x7c]
test eax, eax
je 0x1048226
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 8], 0x104
jg 0x1048226
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4501
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
push eax
call edi
cmp eax, ebx
je 0x1048226
push dword [ebp - 0x2c0]
mov ebx, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.0104809c
push eax
mov ecx, esi
call dword [ebx + 0x2c]
lea eax, [ebp - 0xb0]
push eax
lea ecx, [esi + 0x20]
call sub.MFC42u.dll_CString::operator
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp eax, 0x22
jne 0x1048226
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
test eax, eax
je 0x1048226
push 0x4003
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
push dword [ebp - 0x2c8]
call edi
test eax, eax
je 0x1048226
push dword [ebp - 0x2c0]
mov edi, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.0104809c
push eax
mov ecx, esi
call dword [edi + 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.dll_CString::CString
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01078836
leave
ret 8
Function at 0x104a6c4
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10d5036
call fcn.0107a498
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
pop ecx
je 0x104a80e
cmp word [esi + 2], 0x3a
jne 0x104a80e
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
jbe 0x104a78e
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString_2
and dword [ebp - 4], 0
push 0x13
lea eax, [ebp - 0x14]
push eax
call fcn.01048631
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x104a73a
push eax
push esi
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x104a73a
push 0x26
pop esi
jmp 0x104a77b
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString_2
push 5
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.01048631
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x104a76c
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104a76c
push 6
jmp 0x104a76e
push 7
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString
mov eax, esi
jmp 0x104a837
push ebx
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::CString_2
push 2
pop ebx
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::operator
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::Left
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.01078b5e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
push 0x1003824
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::operator_1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, ebx
je 0x104a7f1
dec eax
je 0x104a80a
dec eax
je 0x104a806
dec eax
je 0x104a802
push 0x2a
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::CString
mov eax, ebx
pop ebx
jmp 0x104a837
push 4
jmp 0x104a7f0
push 5
jmp 0x104a7f0
push 3
jmp 0x104a7f0
cmp word [esi], 0x5c
jne 0x104a834
cmp word [esi + 2], 0x5c
jne 0x104a834
push 0x5c
add esi, 4
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
add eax, 0x11
jmp 0x104a837
push 0x2a
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x104ac88
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
push 0x31
mov esi, ecx
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi], eax
call ebx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1048dce
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x104de8e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x20e0
call fcn.0107a6d0
mov eax, dword [0x10e607c]
and dword [ebp - 0x20e0], 0
mov dword [ebp - 4], eax
mov eax, dword [0x10eaea0]
test eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
je 0x104df8a
cmp eax, 0xffffffff
je 0x104df8a
push esi
mov esi, dword [ebp + 8]
cmp esi, 2
je 0x104ded8
cmp esi, 1
jne 0x104df89
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x20dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp esi, 2
jne 0x104defe
mov eax, 0x1009c3c
jmp 0x104df0d
cmp esi, 1
mov eax, 0x1009c0c
je 0x104df0d
mov eax, 0x100210c
push ebx
push eax
movzx eax, word [ebp - 0x20ce]
push eax
movzx eax, word [ebp - 0x20d0]
push eax
movzx eax, word [ebp - 0x20d2]
push eax
movzx eax, word [ebp - 0x20d4]
push eax
movzx eax, word [ebp - 0x20d6]
push eax
movzx eax, word [ebp - 0x20da]
push eax
movzx eax, word [ebp - 0x20dc]
push eax
lea eax, [ebp - 0x20cc]
push 0x1009ba0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x2c
push 0
lea eax, [ebp - 0x20e0]
push eax
lea eax, [ebp - 0x20cc]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20cc]
push eax
push dword [0x10eaea0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01078836
leave
ret 8

Function at 0x104e9c1
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10d5407
call fcn.0107a498
sub esp, 0x214
mov eax, dword [0x10e607c]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x10], eax
call sub.MFC42u.dll_CString::CString_2
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1009df0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp + 8], 0
je 0x104ea17
push 0xd4e
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::LoadStringW
jmp 0x104ea61
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::CString_2
push 0xd4d
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::LoadStringW
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call sub.MFC42u.dll_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
call fcn.0104de0a
push dword [ebp - 0x21c]
push 2
call fcn.0104de8e
call fcn.0104de6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01078836
leave
ret 4
Function at 0x1051100
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
push edi
call fcn.01050ac5
mov edi, 0x10eb2ec
jmp 0x1051124
push esi
push edi
call fcn.01094aa2
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call fcn.01050ac5
mov esi, eax
test esi, esi
jne 0x1051110
push edi
call fcn.0109493c
pop edi
pop esi
jmp 0x107f8d3
mov edi, edi
push ebx
or ebx, 0xffffffff
cmp dword [0x10e6084], ebx
jne 0x107f8e6
xor eax, eax
inc eax
pop ebx
ret
mov eax, dword [0x10ef3f0]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x107f92f
add dword [0x10ef354], 1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x107f920
push ebx
push dword [0x10ef3f0]
call esi
push dword [0x10ef3f0]
call edi
and dword [0x10ef3f0], 0
mov eax, dword [0x10ef3f8]
cmp eax, ebx
je 0x107f944
push eax
call sub.NTMSAPI.dll_CloseNtmsNotification
mov dword [0x10ef3f8], ebx
push 0x10ef370
call fcn.0107a9b7
test ax, ax
jne 0x107f958
call fcn.0107d877
mov eax, dword [0x10ef3f4]
test eax, eax
je 0x107f971
cmp eax, ebx
je 0x107f971
push eax
call sub.NTMSAPI.dll_CloseNtmsSession
mov dword [0x10ef3f4], ebx
mov eax, dword [0x10ef3ec]
test eax, eax
je 0x107f98d
push ebx
push eax
call esi
push dword [0x10ef3ec]
call edi
and dword [0x10ef3ec], 0
call fcn.0107b7cc
call fcn.0107aa2c
mov esi, dword [sym.imp.msvcrt.dll_free]
jmp 0x107f9cd
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.01094aa2
push ebx
call esi
pop ecx
push edi
call fcn.0107aa5a
mov ebx, eax
test ebx, ebx
jne 0x107f99f
push edi
push 0x10ef314
call fcn.01094aa2
push edi
call esi
pop ecx
call fcn.0107aa2c
mov edi, eax
test edi, edi
jne 0x107f9ad
jmp 0x107f9fe
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.01094aa2
push ebx
call esi
pop ecx
push edi
call fcn.0107aa5a
mov ebx, eax
test ebx, ebx
jne 0x107f9d5
push edi
push 0x10ef340
call fcn.01094aa2
push edi
call esi
pop ecx
call fcn.0107a95b
mov edi, eax
test edi, edi
jne 0x107f9e3
jmp 0x107fa34
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.01094aa2
push ebx
call esi
pop ecx
push edi
call fcn.0107aa5a
mov ebx, eax
test ebx, ebx
jne 0x107fa0b
push edi
push 0x10ef3a8
call fcn.01094aa2
push edi
call esi
pop ecx
call fcn.0107a971
mov edi, eax
test edi, edi
jne 0x107fa19
jmp 0x107fa6a
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.01094aa2
push ebx
call esi
pop ecx
push edi
call fcn.0107aa5a
mov ebx, eax
test ebx, ebx
jne 0x107fa41
push edi
push 0x10ef328
call fcn.01094aa2
push edi
call esi
pop ecx
call fcn.0107a987
mov edi, eax
test edi, edi
jne 0x107fa4f
call fcn.0107b7db
mov eax, dword [0x10e6088]
cmp eax, 0xffffffff
je 0x107fa90
push eax
push dword [0x10e6084]
call sub.NTMSAPI.dll_EndNtmsDeviceChangeDetection
push dword [0x10e6084]
call sub.NTMSAPI.dll_CloseNtmsSession
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or dword [0x10e6084], 0xffffffff
push 0x10ef358
call esi
push 0x10ef3c0
call esi
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x105134e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa78
mov eax, dword [0x10e607c]
push edi
lea ecx, [ebp - 0xa68]
push ecx
push 1
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
push 0x80000002
mov dword [ebp - 0xa70], edi
mov dword [ebp - 0xa6c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1051395
xor eax, eax
inc eax
jmp 0x1051540
push ebx
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
mov word [ebp - 0x65c], di
mov word [ebp - 0xa5c], di
mov dword [ebp - 0xa64], edi
lea eax, [ebp - 0xa60]
push eax
lea eax, [ebp - 0xcc]
push eax
push edi
push edi
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0xa64]
mov dword [ebp - 0xa74], 0x64
push dword [ebp - 0xa68]
mov dword [ebp - 0xa60], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp - 0xa78], eax
jne 0x10514b8
shr dword [ebp - 0xa60], 1
mov eax, dword [ebp - 0xa60]
mov word [ebp + eax*2 - 0xcc], di
lea eax, [ebp - 0x194]
push 0x100a3e4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x105146c
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
push 0x100a3d8
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0xcc]
push eax
call fcn.01085613
add esp, 0x10
mov dword [ebp - 0xa70], eax
mov dword [ebp - 0xa6c], 1
lea eax, [ebp - 0x194]
push 0x100a3c4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x1051492
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x65c]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x194]
push 0x100a3ac
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x10514b8
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xa5c]
push eax
call esi
pop ecx
pop ecx
inc dword [ebp - 0xa64]
cmp dword [ebp - 0xa78], edi
je 0x10513b7
cmp dword [ebp - 0xa6c], edi
je 0x1051530
cmp word [ebp - 0x65c], di
jne 0x10514ed
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x65c]
push eax
call esi
pop ecx
pop ecx
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x65c]
push 0x100a3a4
push eax
call esi
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x65c]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x65c]
push eax
push edi
push dword [ebp - 0xa70]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.01050bb5
push dword [ebp - 0xa68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01078836
leave
ret 8
Function at 0x1051552
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5b4
mov eax, dword [0x10e607c]
push ebx
push edi
lea ecx, [ebp - 0x5a8]
push ecx
xor ebx, ebx
xor edi, edi
inc ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push edi
push eax
push 0x80000002
mov dword [ebp - 0x59c], edi
mov dword [ebp - 0x5a0], edi
mov dword [ebp - 0x5a4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10515a1
mov eax, ebx
jmp 0x1051727
push esi
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
mov dword [ebp - 0x598], edi
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0xcc]
push eax
push edi
push edi
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x598]
mov dword [ebp - 0x5b4], 0x64
push dword [ebp - 0x5a8]
mov dword [ebp - 0x5ac], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp - 0x5b0], eax
jne 0x10516d7
lea eax, [ebp - 0x194]
push 0x100a478
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x105163d
lea eax, [ebp - 0xcc]
push 0x100a458
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x105163d
mov word [0x10eb414], bx
mov dword [ebp - 0x5a0], ebx
lea eax, [ebp - 0x194]
push 0x100a3e4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1051682
push 0x100a3d8
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0xcc]
push eax
call fcn.01085613
pop ecx
pop ecx
mov dword [ebp - 0x59c], eax
mov word [0x10eb418], bx
mov dword [ebp - 0x5a4], ebx
lea eax, [ebp - 0x194]
push 0x100a3ac
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10516d7
cmp word [0x10e5480], di
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x594]
je 0x10516c0
push dword [ebp + 0x10]
push 0x100a444
push eax
call esi
add esp, 0x10
jmp 0x10516d7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100a400
push eax
call esi
add esp, 0x1c
inc dword [ebp - 0x598]
cmp dword [ebp - 0x5b0], edi
je 0x10515ae
cmp dword [ebp - 0x5a0], edi
pop esi
je 0x1051719
cmp dword [ebp - 0x5a4], edi
je 0x1051719
lea eax, [ebp - 0x594]
push eax
push edi
push dword [ebp - 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01050bb5
push dword [ebp - 0x5a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01078836
leave
ret 0x14
Function at 0x10517f1
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10e607c]
push edi
lea ecx, [ebp - 0x4d8]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push eax
push 0x80000002
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4d4], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x105183f
xor eax, eax
inc eax
jmp 0x1051903
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 0x4d0], edi
lea eax, [ebp - 0x4e8]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4dc], 0x64
push dword [ebp - 0x4d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x10518e5
push dword [ebp - 0x4e0]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1003824
push eax
call esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x4cc]
push eax
call esi
add esp, 0x18
push dword [ebp - 0x4d4]
lea eax, [ebp - 0x4cc]
push eax
mov word [0x10eb414], 1
mov word [0x10eb418], 1
call fcn.0105134e
inc dword [ebp - 0x4d4]
inc dword [ebp - 0x4d0]
cmp ebx, edi
je 0x105184d
push dword [ebp - 0x4d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01078836
leave
ret 4
Function at 0x1051915
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10e607c]
push ebx
lea ecx, [ebp - 0x4d4]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
push ebx
push eax
push 0x80000002
mov dword [ebp - 0x4d8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1051959
xor eax, eax
inc eax
jmp 0x1051a50
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 0x4d0], ebx
lea eax, [ebp - 0x4e8]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4dc], 0x64
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x4e0], eax
jne 0x1051a2e
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1003824
push eax
call edi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x4cc]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0xcc], bx
lea esi, [ebp - 0xcc]
je 0x1051a11
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x1051a0a
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x1051a11
inc esi
inc esi
cmp word [esi], bx
jne 0x10519ec
push esi
call fcn.01085613
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01051552
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x1051967
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01078836
leave
ret 0x10
Function at 0x1051c01
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10e607c]
push ebx
lea ecx, [ebp - 0x4d4]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push eax
push 0x80000002
mov dword [ebp - 0x4d8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1051c45
xor eax, eax
inc eax
jmp 0x1051d39
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 0x4d0], ebx
lea eax, [ebp - 0x4e8]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4dc], 0x64
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x4e0], eax
jne 0x1051d17
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1003824
push eax
call edi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x4cc]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0xcc], bx
lea esi, [ebp - 0xcc]
je 0x1051cfd
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x1051cf6
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x1051cfd
inc esi
inc esi
cmp word [esi], bx
jne 0x1051cd8
push esi
call fcn.01085613
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01051915
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x1051c53
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01078836
leave
ret 0xc