joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013cda
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
xor esi, esi
cmp dword [0x1036bb8], esi
jg 0x1013d26
push 0x1036bb8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x1036b98
mov dword [0x1036bb0], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1036bcc
push esi
push esi
push 0x1013c6a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1036bc8], eax
jne 0x1013d2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x1013d51
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1036a44]
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
mov dword [ebp - 4], eax
jne 0x1013d74
xor ax, ax
jmp 0x1013de2
push edi
call fcn.01004490
push 0x41
pop edi
movzx eax, di
push eax
lea eax, [ebp - 0x20c]
push 0x1001a6c
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1013dc4
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0101e05d
test eax, eax
je 0x1013dcd
inc edi
cmp di, 0x5a
jbe 0x1013d7d
jmp 0x1013dcf
mov bl, 1
call fcn.010044a1
dec bl
neg bl
sbb ebx, ebx
not ebx
and ebx, edi
mov ax, bx
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0102e95a
leave
ret 4

Function at 0x1013df5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1036a44]
push ebx
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x100
push eax
mov dword [ebp - 0x208], eax
xor edi, edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
je 0x1013e30
xor eax, eax
xor edx, edx
jmp 0x1013eef
movzx eax, word [ebp + 8]
push esi
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
push eax
lea eax, [ebp - 0x204]
push 0x1001d18
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x20c], eax
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x204]
push 0x1001a6c
push eax
call esi
add esp, 0xc
cmp dword [ebp - 0x20c], 5
je 0x1013ecf
mov esi, dword [ebp - 0x208]
mov ecx, dword [0x1036b10]
push esi
call fcn.010196b5
mov ebx, edx
mov edi, eax
or eax, ebx
jne 0x1013eea
mov ecx, dword [0x1036b08]
push esi
call fcn.01009094
mov ebx, edx
mov edi, eax
or eax, ebx
jne 0x1013eea
cmp dword [ebp - 0x20c], 2
push esi
jne 0x1013ec8
mov ecx, dword [0x1036b08]
call fcn.010090d7
mov edi, eax
mov ebx, edx
jmp 0x1013eea
call fcn.01021a73
jmp 0x1013ec2
push dword [ebp - 0x208]
mov ecx, dword [0x1036b08]
call fcn.0100900b
test eax, eax
je 0x1013eea
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, edi
mov edx, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0102e95a
leave
ret 8
Function at 0x10145e1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1036a44]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov di, word [ebx]
cmp di, 0x41
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ebx
jb 0x1014735
cmp di, 0x5a
ja 0x1014735
mov ecx, dword [ecx]
movzx eax, di
sub eax, 0x41
lea eax, [eax + eax*4]
push esi
lea esi, [ecx + eax*8]
call fcn.01004490
cmp dword [ebp + 8], 0x20
je 0x1014679
cmp dword [ebp + 8], 0x400
jne 0x101472f
cmp byte [esi + 0x10], 0
je 0x101472f
push dword [esi + 0xc]
xor edi, edi
mov byte [esi + 0x10], 0
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push 2
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101472f
mov word [eax], di
jmp 0x101471e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x101472f
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.01013df5
cmp byte [esi + 0x10], 0
mov edi, eax
mov ebx, edx
je 0x10146b4
cmp edi, dword [esi]
jne 0x10146b4
cmp ebx, dword [esi + 4]
je 0x101472f
push dword [ebp - 0x210]
push ebx
push edi
call fcn.01013fdb
test al, al
jne 0x101472f
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
mov byte [esi + 0x10], 1
mov dword [esi], edi
mov dword [esi + 4], ebx
call fcn.01003bed
test al, al
je 0x10146ea
and dword [esi + 0x20], 0
jmp 0x10146ee
or dword [esi + 0x20], 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101472f
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
or eax, 0xffffffff
push eax
push eax
push eax
push eax
push 3
push 0xa
push esi
call fcn.01011c24
call fcn.010044a1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0102e95a
leave
ret 8
Function at 0x10147ad
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
call fcn.01004490
push ebx
push esi
mov dword [ebp - 0x418], 0x41
push edi
movzx eax, word [ebp - 0x418]
mov edx, dword [ebp - 0x41c]
mov edx, dword [edx]
push eax
lea ecx, [eax + eax*4 - 0x145]
lea eax, [ebp - 0x414]
push 0x1001a6c
push eax
lea esi, [edx + ecx*8]
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x101485e
cmp byte [esi + 0x10], al
je 0x101491a
push dword [esi + 0xc]
xor edi, edi
mov byte [esi + 0x10], al
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push 2
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101492e
mov word [eax], di
jmp 0x1014906
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call fcn.01013df5
cmp byte [esi + 0x10], 0
mov edi, eax
mov ebx, edx
je 0x101489a
cmp edi, dword [esi]
jne 0x101489a
cmp ebx, dword [esi + 4]
jne 0x101489a
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0xc]
call fcn.0101e05d
test eax, eax
je 0x101491a
lea eax, [ebp - 0x414]
push eax
push ebx
push edi
call fcn.01013fdb
test al, al
jne 0x101491a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
mov byte [esi + 0x10], 1
call fcn.01003bed
test al, al
je 0x10148cd
and dword [esi + 0x20], 0
jmp 0x10148d1
or dword [esi + 0x20], 1
lea eax, [ebp - 0x20c]
push eax
mov dword [esi], edi
mov dword [esi + 4], ebx
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101492e
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 3
push 0xa
push esi
call fcn.01011c24
inc dword [ebp - 0x418]
cmp word [ebp - 0x418], 0x5a
jbe 0x10147d8
call fcn.010044a1
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102e95a
leave
ret 8
Function at 0x1014a8f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1036a44]
push esi
push 0xffffffffffffffff
mov esi, ecx
push 0x1a
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], esi
call fcn.01014947
cmp dword [esi + 4], 0x1a
je 0x1014ac1
xor al, al
jmp 0x1014b99
push ebx
push edi
push 0x41
pop edi
xor ebx, ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], ebx
jmp 0x1014adc
mov esi, dword [ebp - 0x420]
mov esi, dword [esi]
add esi, dword [ebp - 0x418]
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0x1001a6c
push eax
mov word [esi + 8], di
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x10], bl
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1014b6b
lea eax, [ebp - 0x20c]
push eax
mov byte [esi + 0x10], 1
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x1014b7d
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1014b7d
push 2
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [esi + 0xc], eax
je 0x1014b7d
mov word [eax], bx
add dword [ebp - 0x418], 0x28
inc edi
inc dword [ebp - 0x41c]
cmp di, 0x5a
jbe 0x1014ad6
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret
Function at 0x1014f98
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x1036a44]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov ebx, ecx
mov dword [ebp - 0x478], esi
xor edi, edi
call dword [sym.imp.msvcrt.dll_towupper]
cmp ax, 0x41
pop ecx
mov dword [ebp + 8], eax
jb 0x10151de
cmp ax, 0x5a
ja 0x10151de
test esi, esi
je 0x10151de
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.01013f2e
movzx esi, word [ebp + 8]
push esi
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x204]
push 0x1001a6c
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
call fcn.01004490
mov ecx, dword [ebx]
lea eax, [esi + esi*4 - 0x145]
lea eax, [ecx + eax*8]
cmp byte [eax + 0x10], 0
je 0x1015045
push dword [ebp - 0x478]
push dword [eax + 0xc]
call fcn.0101e05d
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xc1000400
jmp 0x10151d5
push 0x100
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10150e6
push dword [ebp - 0x478]
lea eax, [ebp - 0x404]
push eax
call fcn.0101e05d
test eax, eax
jne 0x10150dc
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x478]
mov ecx, ebx
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01014279
cmp dword [ebp - 0x47c], 1
jne 0x10151c9
lea eax, [ebp - 0x474]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.01028c90
cmp al, 1
jne 0x10151c9
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x468]
push dword [ebp - 0x46c]
call fcn.01021457
jmp 0x10151c9
mov edi, 0xc1000400
jmp 0x10151d5
push 0x41
push dword [ebp - 0x478]
mov ecx, ebx
call fcn.01014083
test ax, ax
mov esi, 0x100040d
je 0x1015126
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.01014ba9
mov edi, eax
test edi, edi
je 0x1015126
cmp edi, esi
jne 0x10151d5
cmp dword [ebp + 0xc], 1
jne 0x10151d5
cmp dword [ebp - 0x47c], 1
je 0x1015144
jbe 0x101513a
cmp dword [ebp - 0x47c], 5
jbe 0x1015181
mov edi, 0xc10007cf
jmp 0x10151d5
lea eax, [ebp - 0x474]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.01028c90
cmp al, 1
jne 0x10151a0
test byte [ebp - 0x458], al
je 0x1015169
mov edi, 0xc1000412
jmp 0x10151d5
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x468]
push dword [ebp - 0x46c]
call fcn.01021457
push 1
push dword [ebp - 0x478]
lea eax, [ebp - 0x204]
push eax
call fcn.01003fcb
cmp al, 1
je 0x10151a5
mov edi, 0xc100041d
jmp 0x10151a5
mov edi, 0xc10007cf
test edi, edi
je 0x10151ad
cmp edi, esi
jne 0x10151d5
push dword [ebp + 0x20]
mov ecx, ebx
push dword [ebp + 0x1c]
push dword [ebp - 0x478]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01014279
lea eax, [ebp - 0x204]
push eax
call fcn.01011e15
call fcn.010044a1
mov eax, edi
jmp 0x10151e3
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102e95a
leave
ret 0x1c
Function at 0x10151f7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1036a44]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0x1001d40
xor edi, edi
push 0x80000002
mov esi, ecx
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1015278
lea eax, [ebp + 8]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
push edi
push 0x1001d30
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x101526a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x1001d24
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x101526a
cmp dword [ebp - 0x10], edi
setne al
mov dword [ebx], eax
cmp dword [ebp - 0x14], edi
je 0x1015278
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0102e95a
leave
ret 4

Function at 0x10152d4
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1036a44]
push edi
xor edi, edi
cmp dword [0x1036bdc], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
je 0x10153be
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x1000000
jne 0x101534a
mov dword [ebp - 0x18], esi
shr esi, 0x1e
cmp dword [ebp + 0xc], edi
mov word [ebp - 0xc], 4
mov word [ebp - 0xa], 4
mov word [ebp - 8], 2
mov word [ebp - 6], 1
mov bx, word [ebp + esi*2 - 0xc]
je 0x1015391
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.dmutil.dll_RgszwFromValist
jmp 0x1015391
push edi
push edi
lea eax, [ebp - 8]
push eax
push 0x400
push esi
push edi
xor ebx, ebx
push 0x1100
mov dword [ebp - 0x18], 0xc10007cf
inc ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push esi
push 0x1001d78
push eax
lea eax, [ebp - 0x14]
push eax
call sub.dmutil.dll_RgszwFromArgs
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
push edi
push ebx
push dword [0x1036bdc]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp dword [ebp - 0x10], edi
pop esi
pop ebx
je 0x10153be
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.dmutil.dll_FreeRgszw
mov ecx, dword [ebp - 4]
pop edi
call fcn.0102e95a
leave
ret
Function at 0x10155a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call esi
mov edi, 0x1001da8
push edi
mov dword [ebp - 0xc], eax
call esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
call fcn.01003305
mov esi, eax
cmp esi, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [eax], ebx
jne 0x10155f7
mov eax, 0x8007000e
jmp 0x10156b2
push edi
push dword [ebp + 8]
push 0x1001738
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101562b
mov esi, 0xc10007cf
jmp 0x10156a8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x1001d90
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x1015658
cmp eax, 0xea
je 0x1015658
mov esi, 0xc10007cf
jmp 0x101569f
push dword [ebp - 4]
call fcn.01003305
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x101566e
mov esi, 0x8007000e
jmp 0x101569f
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x101568c
push dword [ebp + 8]
call fcn.01003336
jmp 0x1015651
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.01003336
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x101579b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1036a44]
push esi
push edi
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x208]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0101571a
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x101586d
push 0x1001da8
lea eax, [ebp - 0x204]
push 0x1001e34
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x20006
push esi
push 0x1001de8
push esi
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1015825
mov edi, 0xc10007cf
jmp 0x101585a
push dword [ebp - 0x210]
push dword [ebp - 0x208]
push 3
push esi
push 0x1001d90
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x101584e
mov edi, 0xc10007cf
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x208], esi
je 0x101586d
push dword [ebp - 0x208]
call fcn.01003336
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.0102e95a
leave
ret 4
Function at 0x1015882
Capabilities:
Check if file exists
Get file attributes
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
cmp word [ebp + 8], 0x41
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
jb 0x10158a3
cmp word [ebp + 8], 0x5a
jbe 0x10158ad
mov eax, 0x80070057
jmp 0x1015956
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x204]
push 0x1001eac
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10158e0
mov eax, 0xc10003fe
jmp 0x1015956
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea eax, [ebp - 0x205]
push eax
xor ebx, ebx
push ebx
push 1
push 0x13
call esi
test eax, eax
jge 0x1015903
mov eax, 0xc10003f8
jmp 0x1015954
push edi
call fcn.01004490
lea eax, [ebp - 0x204]
push eax
call fcn.0101579b
mov edi, eax
cmp edi, ebx
je 0x1015932
cmp byte [ebp - 0x205], bl
jne 0x101594c
lea eax, [ebp - 0x205]
push eax
push ebx
push ebx
push 0x13
call esi
jmp 0x101594c
push 1
push ebx
push 0xf
push 0x1001e48
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test al, al
jne 0x101594c
mov edi, 0xc10007cf
call fcn.010044a1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0102e95a
leave
ret 4

Function at 0x1015dfc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x1015e94
push 0x1001fac
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x1015eb3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001fa0
push eax
call edi
push 0x1001f98
push dword [esi + 0xc]
mov dword [esi + 0x14], eax
call edi
push 0x1001f8c
push dword [esi + 0xc]
mov dword [esi + 0x10], eax
call edi
push 0x1001f74
push dword [esi + 0xc]
mov dword [esi + 0x18], eax
call edi
push 0x1001f5c
push dword [esi + 0xc]
mov dword [esi + 0x1c], eax
call edi
push 0x1001f3c
push dword [esi + 0xc]
mov dword [esi + 4], eax
call edi
cmp dword [esi + 0x10], ebx
mov dword [esi + 8], eax
pop edi
je 0x1015e98
cmp dword [esi + 0x18], ebx
je 0x1015e98
cmp dword [esi + 0x14], ebx
je 0x1015e98
cmp dword [esi + 0x1c], ebx
je 0x1015e98
cmp dword [esi + 4], ebx
je 0x1015e98
cmp eax, ebx
je 0x1015e98
mov al, 1
jmp 0x1015eb5
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
xor al, al
pop esi
pop ebx
ret
Function at 0x1017938
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push 0x1002298
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1017971
xor eax, eax
jmp 0x1017a18
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push esi
mov ebx, 0x1002280
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x10179f6
push dword [ebp - 8]
call fcn.01003305
mov esi, eax
test esi, esi
jne 0x10179ac
mov dword [ebp - 0x10], 0x8007000e
jmp 0x10179f6
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10179ef
cmp dword [ebp - 0x14], 7
jne 0x10179ef
xor edi, edi
mov dword [ebp - 0xc], esi
jmp 0x10179e8
push edi
push esi
call fcn.01017735
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10179da
sub eax, ecx
lea esi, [esi + eax + 1]
inc edi
cmp byte [esi], 0
jne 0x10179ce
jmp 0x10179f6
mov dword [ebp - 0x10], 0x8000ffff
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x1017a07
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x1017a15
push dword [ebp - 0xc]
call fcn.01003336
mov eax, dword [ebp - 0x10]
pop esi
leave
ret
Function at 0x101949a
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov eax, dword [0x1036c04]
test eax, eax
je 0x1019514
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x1019501
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov esi, eax
lea eax, [ebp - 0x204]
push eax
push 0x6a
push dword [0x1036b20]
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
lea eax, [ebp - 0x204]
push eax
push 0x1002398
push 0xc1000002
call fcn.010152d4
add esp, 0x10
pop esi
push dword [0x1036c04]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x1036c04], 0
mov ecx, dword [ebp - 4]
call fcn.0102e95a
leave
ret

Function at 0x101ad7b
Capabilities:
Create thread

Disassembly:
push 0x1036c08
push 0
push ecx
push 0x101ad62
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x1036c04], eax
jne 0x101ada4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
ret
mov al, 1
ret

Function at 0x101def7
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.CLUSAPI.dll_GetNodeClusterState
test byte [ebp - 0x28], 2
je 0x101df37
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
call fcn.0102e95a
leave
ret

Function at 0x101df97
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002660
push 0x80000002
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101e002
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1002620
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x101e002
cmp dword [ebp - 0x10], 4
jne 0x101e002
cmp byte [ebp - 8], 0
setne al
leave
ret
xor al, al
leave
ret