joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104ef53
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push esi
push edi
call fcn.0104e918
mov edi, 0x10e2a1c
jmp 0x104ef77
push esi
push edi
call fcn.0108e726
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call fcn.0104e918
mov esi, eax
test esi, esi
jne 0x104ef63
push edi
call fcn.0108e5c0
pop edi
pop esi
jmp 0x107cbab
mov edi, edi
push ebx
or ebx, 0xffffffff
cmp dword [0x10de044], ebx
jne 0x107cbbe
xor eax, eax
inc eax
pop ebx
ret
mov eax, dword [0x10e6c18]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x107cc07
add dword [0x10e6b80], 1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x107cbf8
push ebx
push dword [0x10e6c18]
call esi
push dword [0x10e6c18]
call edi
and dword [0x10e6c18], 0
mov eax, dword [0x10e6c20]
cmp eax, ebx
je 0x107cc1c
push eax
call sub.NTMSAPI.dll_CloseNtmsNotification
mov dword [0x10e6c20], ebx
push 0x10e6b9c
call fcn.01077c3f
test ax, ax
jne 0x107cc30
call fcn.0107aece
mov eax, dword [0x10e6c1c]
test eax, eax
je 0x107cc49
cmp eax, ebx
je 0x107cc49
push eax
call sub.NTMSAPI.dll_CloseNtmsSession
mov dword [0x10e6c1c], ebx
mov eax, dword [0x10e6c14]
test eax, eax
je 0x107cc65
push ebx
push eax
call esi
push dword [0x10e6c14]
call edi
and dword [0x10e6c14], 0
call fcn.01078c11
call fcn.01077cb4
mov esi, dword [sym.imp.msvcrt.dll_free]
jmp 0x107cca5
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e726
push ebx
call esi
pop ecx
push edi
call fcn.01077ce2
mov ebx, eax
test ebx, ebx
jne 0x107cc77
push edi
push 0x10e6b40
call fcn.0108e726
push edi
call esi
pop ecx
call fcn.01077cb4
mov edi, eax
test edi, edi
jne 0x107cc85
jmp 0x107ccd6
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e726
push ebx
call esi
pop ecx
push edi
call fcn.01077ce2
mov ebx, eax
test ebx, ebx
jne 0x107ccad
push edi
push 0x10e6b6c
call fcn.0108e726
push edi
call esi
pop ecx
call fcn.01077be3
mov edi, eax
test edi, edi
jne 0x107ccbb
jmp 0x107cd0c
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e726
push ebx
call esi
pop ecx
push edi
call fcn.01077ce2
mov ebx, eax
test ebx, ebx
jne 0x107cce3
push edi
push 0x10e6bd4
call fcn.0108e726
push edi
call esi
pop ecx
call fcn.01077bf9
mov edi, eax
test edi, edi
jne 0x107ccf1
jmp 0x107cd42
push ebx
lea eax, [edi + 0x14]
push eax
call fcn.0108e726
push ebx
call esi
pop ecx
push edi
call fcn.01077ce2
mov ebx, eax
test ebx, ebx
jne 0x107cd19
push edi
push 0x10e6b54
call fcn.0108e726
push edi
call esi
pop ecx
call fcn.01077c0f
mov edi, eax
test edi, edi
jne 0x107cd27
call fcn.01078c20
mov eax, dword [0x10de048]
cmp eax, 0xffffffff
je 0x107cd68
push eax
push dword [0x10de044]
call sub.NTMSAPI.dll_EndNtmsDeviceChangeDetection
push dword [0x10de044]
call sub.NTMSAPI.dll_CloseNtmsSession
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or dword [0x10de044], 0xffffffff
push 0x10e6b84
call esi
push 0x10e6bec
call esi
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x104f1a1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa78
mov eax, dword [0x10de03c]
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 0x104f1e8
xor eax, eax
inc eax
jmp 0x104f393
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 0x104f30b
shr dword [ebp - 0xa60], 1
mov eax, dword [ebp - 0xa60]
mov word [ebp + eax*2 - 0xcc], di
lea eax, [ebp - 0x194]
push 0x1009f9c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104f2bf
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
push 0x1009f90
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0xcc]
push eax
call fcn.01082763
add esp, 0x10
mov dword [ebp - 0xa70], eax
mov dword [ebp - 0xa6c], 1
lea eax, [ebp - 0x194]
push 0x1009f7c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104f2e5
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x65c]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x194]
push 0x1009f64
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104f30b
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 0x104f20a
cmp dword [ebp - 0xa6c], edi
je 0x104f383
cmp word [ebp - 0x65c], di
jne 0x104f340
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 0x1009f5c
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.0104ea08
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.01075aef
leave
ret 8
Function at 0x104f3a5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5b4
mov eax, dword [0x10de03c]
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 0x104f3f4
mov eax, ebx
jmp 0x104f57a
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 0x104f52a
lea eax, [ebp - 0x194]
push 0x100a030
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104f490
lea eax, [ebp - 0xcc]
push 0x100a010
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104f490
mov word [0x10e2b44], bx
mov dword [ebp - 0x5a0], ebx
lea eax, [ebp - 0x194]
push 0x1009f9c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104f4d5
push 0x1009f90
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0xcc]
push eax
call fcn.01082763
pop ecx
pop ecx
mov dword [ebp - 0x59c], eax
mov word [0x10e2b48], bx
mov dword [ebp - 0x5a4], ebx
lea eax, [ebp - 0x194]
push 0x1009f64
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x104f52a
cmp word [0x10dd43c], di
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x594]
je 0x104f513
push dword [ebp + 0x10]
push 0x1009ffc
push eax
call esi
add esp, 0x10
jmp 0x104f52a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1009fb8
push eax
call esi
add esp, 0x1c
inc dword [ebp - 0x598]
cmp dword [ebp - 0x5b0], edi
je 0x104f401
cmp dword [ebp - 0x5a0], edi
pop esi
je 0x104f56c
cmp dword [ebp - 0x5a4], edi
je 0x104f56c
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.0104ea08
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.01075aef
leave
ret 0x14
Function at 0x104f644
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
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 0x104f692
xor eax, eax
inc eax
jmp 0x104f756
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 0x104f738
push dword [ebp - 0x4e0]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
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 [0x10e2b44], 1
mov word [0x10e2b48], 1
call fcn.0104f1a1
inc dword [ebp - 0x4d4]
inc dword [ebp - 0x4d0]
cmp ebx, edi
je 0x104f6a0
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.01075aef
leave
ret 4
Function at 0x104f768
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
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 0x104f7ac
xor eax, eax
inc eax
jmp 0x104f8a3
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 0x104f881
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
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 0x104f864
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104f85d
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104f864
inc esi
inc esi
cmp word [esi], bx
jne 0x104f83f
push esi
call fcn.01082763
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0104f3a5
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x104f7ba
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.01075aef
leave
ret 0x10
Function at 0x104fa54
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
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 0x104fa98
xor eax, eax
inc eax
jmp 0x104fb8c
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 0x104fb6a
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
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 0x104fb50
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104fb49
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104fb50
inc esi
inc esi
cmp word [esi], bx
jne 0x104fb2b
push esi
call fcn.01082763
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0104f768
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x104faa6
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.01075aef
leave
ret 0xc
Function at 0x104fbb2
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
push ebx
lea ecx, [ebp - 0x4d4]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
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 0x104fbf6
xor eax, eax
inc eax
jmp 0x104fce3
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 0x104fcc1
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
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 0x104fcaa
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104fca3
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104fcaa
inc esi
inc esi
cmp word [esi], bx
jne 0x104fc85
push esi
call fcn.01082763
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push dword [ebp + 8]
call fcn.0104fa54
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x104fc04
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.01075aef
leave
ret 8
Function at 0x104fcf5
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
push ebx
lea ecx, [ebp - 0x4d4]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
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 0x104fd39
xor eax, eax
inc eax
jmp 0x104fe23
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 0x104fe01
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
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 0x104fded
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104fde6
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104fded
inc esi
inc esi
cmp word [esi], bx
jne 0x104fdc8
push esi
call fcn.01082763
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
call fcn.0104fbb2
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x104fd47
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.01075aef
leave
ret 4

Function at 0x10508e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, eax
push 0xa
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, dword [sym.imp.msvcrt.dll_fwrite]
jmp 0x105093b
mov eax, dword [ebp - 4]
sub eax, ebx
push esi
sar eax, 1
push eax
push 2
push ebx
call edi
mov eax, dword [esi + 0xc]
add esp, 0x10
and eax, 0x20
jne 0x1050965
push esi
push 2
push 2
push 0x100548c
call edi
mov eax, dword [esi + 0xc]
add esp, 0x10
and eax, 0x20
jne 0x1050965
mov ebx, dword [ebp - 4]
add ebx, 2
push 0xa
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x10508fc
cmp word [ebx], ax
je 0x1050963
push esi
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push 2
push ebx
call edi
mov eax, dword [esi + 0xc]
add esp, 0x10
and eax, 0x20
jne 0x1050965
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x1050d71
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, eax
call fcn.01021462
mov esi, edi
shl esi, 3
cmp dword [esi + 0x10dd4ac], 0
mov ebx, eax
mov ax, word [esi + 0x10dd4b0]
mov word [ebp - 0xc], ax
jne 0x1050e9a
push edi
mov edi, 0x10e3358
mov ecx, edi
call fcn.010509db
cmp word [esi + 0x10dd4b0], 1
lea eax, [ebp - 8]
jne 0x1050dd1
push 0x100a594
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [ebp - 4], 8
jmp 0x1050df3
and dword [ebp - 4], 0
push 0x100a590
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov word [ebx + 0xac2], 1
mov word [esi + 0x10dd4b0], 1
xor ebx, ebx
cmp word [0x10e3358], bx
pop ecx
pop ecx
je 0x1050e9a
push dword [ebp - 4]
push edi
call fcn.010828b1
cmp eax, ebx
mov dword [esi + 0x10dd4ac], eax
jne 0x1050e26
push edi
push 0xdbb
call fcn.010815f2
pop ecx
pop ecx
jmp 0x1050e9a
push eax
mov byte [ebp - 2], 0xff
mov byte [ebp - 1], 0xfe
call dword [sym.imp.msvcrt.dll_ftell]
test eax, eax
pop ecx
jne 0x1050e51
push dword [esi + 0x10dd4ac]
lea eax, [ebp - 2]
push 2
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
call fcn.01021462
cmp dword [eax + 0xbec], ebx
je 0x1050e9a
cmp word [ebp - 0xc], 1
je 0x1050e9a
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], ebx
call fcn.01059f29
test eax, eax
jl 0x1050e9a
lea eax, [ebp - 0x2c]
push eax
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
lea eax, [ebp - 0x18]
push eax
call fcn.0105a0b4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x105543a
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10de03c]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x208]
push eax
xor edi, edi
push edi
push 0x2000000
push edi
push 0x100205c
push edi
push 0x100b108
push 0x80000002
mov dword [ebp - 0x20c], 7
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1055491
xor eax, eax
inc eax
jmp 0x105551f
push esi
call fcn.010214fa
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x204]
push 0x10e3d78
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x14
lea eax, [eax*4 + 4]
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push edi
push 0x100b0e4
push dword [ebp - 0x208]
call esi
test eax, eax
jne 0x105550d
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push edi
push 0x100b0c4
push dword [ebp - 0x208]
call esi
test eax, eax
je 0x1055510
xor edi, edi
inc edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075aef
leave
ret
Function at 0x105552f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, 0x100b228
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
xor eax, eax
push eax
mov ebx, 0x2000000
push ebx
push eax
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x100205c
push esi
push eax
push 0x100b190
push 0x80000002
call edi
test eax, eax
jne 0x10555dc
cmp dword [ebp - 0x50], 1
jne 0x10555b4
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax*4 + 4]
push eax
lea eax, [ebp - 0x48]
push eax
push 1
push 0
push esi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10555b4
xor esi, esi
inc esi
jmp 0x10555e3
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
xor eax, eax
push eax
push ebx
push eax
push esi
push eax
push 0x100a0f0
push 0x80000001
call edi
test eax, eax
je 0x10555e1
xor eax, eax
inc eax
jmp 0x10555ee
xor esi, esi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret