joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ebcbc
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
xor eax, eax
mov dword [ebp - 4], eax
test edi, edi
je 0x100ebcd6
mov dword [edi], eax
mov dword [edi + 4], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100ebce2
mov dword [ebx], eax
mov dword [ebx + 4], eax
push eax
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemWindowsDirectoryW]
mov edx, eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
call fcn.100a70d5
mov esi, eax
test esi, esi
jns 0x100ebd04
push 0x1003176c
jmp 0x100ebd6d
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemWindowsDirectoryW]
test eax, eax
jne 0x100ebd39
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100ebd2b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100ebd32
mov esi, 0x80004005
push 0x1003179c
jmp 0x100ebd6d
push ebx
push edi
push 0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x100ebd7d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100ebd61
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100ebd68
mov esi, 0x80004005
push 0x100317c0
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, eax
je 0x100ebd8e
add eax, 0xfffffffc
push eax
call fcn.100b84f9
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x100ebd97
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
xor ebx, ebx
push 2
mov dword [ebp - 0x1c], ecx
mov esi, ebx
pop ecx
push eax
mov dword [ebp - 0x10], eax
or edi, 0xffffffff
mov word [ebp - 8], cx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x100ebe1e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100ebdee
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x100ebf0d
test esi, esi
jns 0x100ebe1b
push dword [ebp - 0x10]
push 0x10031890
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100ebf0d
mov eax, dword [ebp - 0x14]
test eax, 0x800
je 0x100ebe2d
push 3
pop ebx
jmp 0x100ebf0d
push ebx
push 0x2000080
push 3
push ebx
push 7
push 3
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100ebe72
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100ebe61
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100ebe68
mov esi, 0x80004005
push dword [ebp - 0x10]
push 0x10031858
jmp 0x100ebe06
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 8]
push eax
push 0x9c040
push edi
call dword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x100ebec6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x100ebea1
movzx eax, ax
or eax, 0x80070000
xor ebx, ebx
mov ecx, 0x80070001
cmp eax, ecx
mov esi, eax
sete bl
sub esi, ecx
neg esi
sbb esi, esi
and esi, eax
jge 0x100ebec9
push dword [ebp - 0x10]
push 0x1003181c
jmp 0x100ebe06
push 4
pop ebx
cmp dword [ebp - 0x18], 0
je 0x100ebf0d
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
test eax, eax
jne 0x100ebf0d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100ebef1
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100ebef8
mov esi, 0x80004005
push 0x100315fc
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100ebf16
mov dword [eax], ebx
test edi, edi
je 0x100ebf26
cmp edi, 0xffffffff
je 0x100ebf26
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 4
Function at 0x100ec268
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x100ec29a
push 0x10030f70
mov edx, 0x1bf
mov ecx, 0x10031184
call fcn.100e970f
xor ebx, ebx
push ebx
push edi
mov esi, ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x100ec392
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x100ec392
push 0x5c
push edi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100ec2f0
push edi
mov esi, 0x80070003
push 0x1003158c
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100ec392
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100ec30a
sub ecx, edx
sub esi, edi
sar ecx, 1
sar esi, 1
cmp esi, ecx
ja 0x100ec341
push esi
push edi
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.100af27e
mov esi, eax
test esi, esi
jns 0x100ec341
push edi
push 0x100315b0
jmp 0x100ec2db
xor edx, edx
lea ecx, [ebp - 0x20c]
call fcn.100ec268
mov esi, eax
test esi, esi
jns 0x100ec365
lea eax, [ebp - 0x20c]
push eax
push 0x100315d4
jmp 0x100ec2db
push ebx
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x100ec390
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
je 0x100ec390
test esi, esi
jle 0x100ec392
movzx esi, si
or esi, 0x80070000
jmp 0x100ec392
mov esi, ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret

Function at 0x100edd2d
Capabilities:
Terminate process

Disassembly:
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
test eax, eax
jne 0x100edd79
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jg 0x100edd48
mov ecx, esi
jmp 0x100edd51
movzx ecx, si
or ecx, 0x80070000
test ecx, ecx
jns 0x100edd6a
push 0x1003236c
push 1
push ecx
push 0x4000000
call fcn.100ab973
add esp, 0x10
push esi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
pop esi
mov ecx, dword [0x101dc9a4]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
and dword [eax + 4], 0
ret
Function at 0x100edd8d
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x34], edx
push 8
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp + 8]
mov dword [ebp - 0x14], eax
xor esi, esi
pop eax
push esi
push esi
push 0x2020
push 1
push esi
mov word [ebp - 0x16], ax
mov ebx, 0x200
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push 0x80
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x30]
push eax
push 0x100080
lea eax, [ebp - 0x10]
mov dword [ebp - 0x30], 0x18
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov edi, eax
test edi, edi
jns 0x100ede1a
push 0x100326b4
push 1
or eax, 0x10000000
push eax
jmp 0x100ede66
test esi, esi
je 0x100ede25
push esi
call fcn.100b84f9
pop ecx
push ebx
call fcn.100b84fe
mov esi, eax
pop ecx
test esi, esi
je 0x100ede5a
push 9
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
add ebx, ebx
cmp edi, 0x80000005
je 0x100ede1a
test edi, edi
jns 0x100ede73
push 0x10032708
jmp 0x100ede10
push 0x100326d4
push 1
push 0x8007000e
push 0x4000000
call fcn.100ab973
add esp, 0x10
cmp dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [eax], esi
je 0x100ede87
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 8
Function at 0x100ee831
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, ecx
lea ecx, [ebp - 4]
push edi
push 0x10032804
mov edx, ebx
call fcn.100a9500
mov edi, eax
test edi, edi
jns 0x100ee86e
push 0x10032810
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100ee8f3
push 0x80
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
push 8
push dword [ebp - 4]
push ebx
call dword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
mov ebx, 0x80070000
test eax, eax
jne 0x100ee8ab
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100ee8a2
movzx edi, di
or edi, ebx
test edi, edi
jns 0x100ee8ab
push 0x10032834
jmp 0x100ee859
push 0x80
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x100ee8f3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100ee8d9
movzx edi, di
or edi, ebx
test edi, edi
jns 0x100ee8f3
push dword [ebp - 4]
push 0x10032850
push 1
push edi
push 0x4000000
call fcn.100ab973
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.100b61be
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x100eeec6
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
jne 0x100eeef5
push 0x10032a4c
push 0x71
pop edx
mov ecx, 0x10032a28
call fcn.100e970f
xor ebx, ebx
cmp dword [esi], ebx
je 0x100eef0d
push 0x10032a50
push 0x72
pop edx
mov ecx, 0x10032a28
call fcn.100e970f
cmp dword [esi + 4], ebx
je 0x100eef24
push 0x10032a68
push 0x73
pop edx
mov ecx, 0x10032a28
call fcn.100e970f
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
test eax, eax
je 0x100eef51
push eax
push 0x10032a80
push 1
mov ebx, 0x80004001
push ebx
push 0x4000000
call fcn.100ab973
add esp, 0x14
jmp 0x100eefe7
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x30]
movzx eax, byte [esi + 0x12]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
mov esi, 0x80070000
test eax, eax
jne 0x100eefb1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x100eef98
movzx ebx, bx
or ebx, esi
test ebx, ebx
jns 0x100eefb1
push 0x10032aa4
push 1
push ebx
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100eefe7
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
jne 0x100eefdf
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x100eefd6
movzx ebx, bx
or ebx, esi
test ebx, ebx
jns 0x100eefdf
push 0x10032ad0
jmp 0x100eef9f
xor ebx, ebx
cmp dword [ebp - 8], ebx
sete bl
cmp dword [ebp - 0xc], 0
je 0x100eeff6
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret
Function at 0x100f1f42
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x100f1f6f
push 0x10032f40
push 0x11
pop edx
mov ecx, 0x10032f48
call fcn.100e970f
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x10032fd0
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoGetCallContext]
mov esi, eax
cmp esi, 0x80010117
jne 0x100f1ffe
push 2
inc ebx
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_ImpersonateSelf]
test eax, eax
je 0x100f1fe7
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 1
push eax
push 0
push 0xf01ff
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
jne 0x100f2028
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100f1fde
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100f2028
push 0x10032fac
jmp 0x100f2039
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100f201f
movzx esi, si
or esi, 0x80070000
jmp 0x100f201d
test esi, esi
js 0x100f2034
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101e07c0]
call esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoImpersonateClient]
mov esi, eax
test esi, esi
jns 0x100f1fa4
push 0x10032f8c
jmp 0x100f2039
mov eax, dword [ebp - 8]
mov dword [edi], eax
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x100f204c
push 0x10032f6c
push 1
push esi
push 0x4000000
call fcn.100ab973
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x100f205c
cmp eax, 0xffffffff
je 0x100f205c
push eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x100f20b7
test ebx, ebx
je 0x100f2087
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_RevertToSelf]
test eax, eax
jne 0x100f20b7
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100f2091
movzx edi, di
or edi, 0x80070000
jmp 0x100f208f
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoRevertToSelf]
mov edi, eax
test edi, edi
jns 0x100f20b7
push 0x1003236c
push 0
push 0
push 0x4000000
call fcn.100ab973
add esp, 0x10
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret
Function at 0x100f34c2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x5c], ecx
push esi
push edi
lea edi, [ebp - 0x18]
mov dword [ebp - 0x48], 0x18
stosd dword es:[edi], eax
xor edx, edx
mov dword [ebp - 0x1c], edx
mov bl, dl
mov dword [ebp - 0x20], edx
mov byte [ecx], dl
stosd dword es:[edi], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], edx
stosd dword es:[edi], eax
mov dword [ebp - 0x34], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x10003d08]
mov dword [ebp - 0x30], eax
mov eax, dword [0x10003d0c]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x10003d10]
mov dword [ebp - 0x28], eax
mov eax, dword [0x10003d14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
push 0x20019
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
mov edi, 0xc0000034
cmp esi, edi
je 0x100f3577
test esi, esi
jns 0x100f3558
mov dword [ebp - 0x50], 0x2e
jmp 0x100f3586
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, edi
jne 0x100f357b
xor esi, esi
jmp 0x100f35a4
test esi, esi
jns 0x100f35bf
mov dword [ebp - 0x50], 0x3c
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0x10033e08
mov dword [ebp - 0x54], 0x10033e3c
mov dword [ebp - 0x4c], 0x10020524
call fcn.1016dbec
mov ecx, dword [ebp - 0x1c]
call fcn.100f3496
test al, al
je 0x100f35bb
and dword [ebp - 0x1c], 0
push ecx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x100f35f0
cmp dword [ebp - 0x14], 4
je 0x100f35cb
cmp dword [ebp - 0x10], 4
jne 0x100f35d2
cmp dword [ebp - 0xc], 0
setne bl
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x1c]
mov byte [eax], bl
call fcn.100f3496
test al, al
je 0x100f35ee
and dword [ebp - 0x1c], 0
push ecx
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret
Function at 0x100f49ff
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
movzx eax, dx
mov edi, ecx
push eax
push esi
push 0x28
pop edx
lea ecx, [ebp - 0xa4]
call fcn.100af27e
mov esi, eax
test esi, esi
jns 0x100f4a3b
push 0x1003494c
jmp 0x100f4aaf
push dword [ebp + 0x10]
lea eax, [ebp - 0xa4]
push dword [ebp + 0xc]
push eax
push 0x10034964
lea eax, [ebp - 0x54]
push 0x50
push eax
call fcn.100f4e5f
mov esi, eax
add esp, 0x18
test esi, esi
jns 0x100f4a68
push 0x10034978
jmp 0x100f4aaf
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100f4a6e
xor esi, esi
lea eax, [ebp - 0xa8]
push esi
push eax
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x100f4abf
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100f4aa8
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100f4abf
push 0x10034990
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100b88c0
leave
ret 0xc
Function at 0x100f4ad1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
add esp, 0xc
xor ebx, ebx
push 0x104
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x100f4b55
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100f4b34
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x100f4b3b
mov esi, 0x80004005
push 0x10034b78
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100f4ce5
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.100a7590
mov esi, eax
test esi, esi
jns 0x100f4b80
lea eax, [ebp - 0x20c]
push eax
push 0x10034bb0
jmp 0x100f4cb5
lea ecx, [ebp - 0x210]
call fcn.100b15f5
mov esi, eax
test esi, esi
jns 0x100f4bab
push 0x10034bf0
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100f4cc5
mov edx, 0x1002cfa0
lea ecx, [ebp - 0x210]
call fcn.100a8220
mov esi, eax
test esi, esi
jns 0x100f4bc8
push 0x10034c24
jmp 0x100f4b96
mov edi, dword [ebp - 0x210]
mov ecx, edi
call fcn.100ec268
mov esi, eax
test esi, esi
jns 0x100f4be6
push edi
push 0x10034c48
jmp 0x100f4cb5
lea ecx, [ebp - 0x210]
call fcn.100b15f5
mov esi, eax
test esi, esi
jns 0x100f4bfe
push 0x10034c84
jmp 0x100f4b96
mov edx, 0x1002cf88
lea ecx, [ebp - 0x210]
call fcn.100a8220
mov esi, eax
test esi, esi
jns 0x100f4c1e
push 0x10034cbc
jmp 0x100f4b96
mov esi, 0x488
push esi
call fcn.100b84fe
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x100f4c3f
mov esi, 0x8007000e
push 0x10034ce8
jmp 0x100f4b96
push esi
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edi, dword [ebp - 0x210]
lea ecx, [ebx + 0x280]
add esp, 0xc
mov dword [ebx], esi
mov edx, 0x104
mov dword [ebx + 0x2c], 0x20000
mov dword [ebx + 0x70], 0x78
mov dword [ebx + 0x6c], 0x280
push edi
call fcn.100ad7c7
mov esi, eax
test esi, esi
jns 0x100f4c87
push edi
push 0x10034d30
jmp 0x100f4cb5
push ebx
push 0x10034d74
push 0
push 0
call dword [sym.imp.api_ms_win_eventing_legacy_l1_1_0.dll_FlushTraceW]
mov esi, eax
test esi, esi
jle 0x100f4ca8
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100f4cc5
push dword [ebp - 0x210]
push 0x10034d84
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x14
mov edi, dword [ebp - 0x210]
test edi, edi
je 0x100f4cd9
lea eax, [edi - 4]
push eax
call fcn.100b84f9
pop ecx
pop edi
test ebx, ebx
je 0x100f4ce5
push ebx
call fcn.100b84f9
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret
Function at 0x100f4d6e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 4
push eax
xor ebx, ebx
mov edi, ecx
push 0x20019
push ebx
push 0x10034dcc
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
cmp eax, 2
je 0x100f4e40
test eax, eax
je 0x100f4dea
jg 0x100f4dc6
mov esi, eax
jmp 0x100f4dcf
movzx esi, ax
or esi, 0x80070000
test esi, esi
jns 0x100f4dea
push 0x10034e00
push 1
push esi
push 0x4000000
call fcn.100ab973
add esp, 0x10
jmp 0x100f4e40
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10034db0
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 2
jne 0x100f4e0e
mov esi, ebx
jmp 0x100f4e40
test eax, eax
je 0x100f4e2c
jg 0x100f4e18
mov esi, eax
jmp 0x100f4e21
movzx esi, ax
or esi, 0x80070000
test esi, esi
jns 0x100f4e2c
push 0x10034e28
jmp 0x100f4dd8
cmp dword [ebp - 8], 4
jne 0x100f4e40
cmp dword [ebp - 0xc], 4
jne 0x100f4e40
cmp dword [ebp - 0x10], ebx
setne al
mov byte [edi], al
cmp dword [ebp - 0x14], ebx
je 0x100f4e4e
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret