joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x409893
test al, 0x10
je 0x409893
mov al, 1
ret
xor al, al
ret

Function at 0x4098a0
Capabilities:
Create directory

Disassembly:
push ebx
push ecx
xor bl, bl
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
test eax, eax
je 0x4098be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x11
mov al, bl
jne 0x4098c0
mov al, 1
pop ebx
ret

Function at 0x409ae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x414024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi + 0xc], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x409b25
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
pop esi
je 0x409b45
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push edi
push 0x409c10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040d22b
mov esp, ebp
pop ebp
ret 4

Function at 0x40a8b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f022
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x414024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push 0x104
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40a92e
mov eax, dword [esi]
jmp 0x40a930
mov eax, esi
mov byte [eax], 0
cmp byte [ebp - 0x118], 0
jne 0x40a940
xor ecx, ecx
jmp 0x40a959
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a950
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
call fcn.004027b0
push 9
mov dword [ebp - 4], 0
mov ecx, esi
push str._system32
mov dword [ebp - 0x11c], 1
call fcn.00404550
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d22b
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f072
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x414024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push 0x104
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40aa31
mov eax, dword [esi]
jmp 0x40aa33
mov eax, esi
mov byte [eax], 0
cmp byte [ebp - 0x118], 0
jne 0x40aa43
xor ecx, ecx
jmp 0x40aa59
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aa50
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
call fcn.004027b0
mov dword [ebp - 4], 0
mov ecx, esi
cmp byte [edi + 0xc], 0
mov dword [ebp - 0x11c], 1
je 0x40aa8a
push 0xa
push str._sysnative
jmp 0x40aa91
push 9
push str._system32
call fcn.00404550
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d22b
mov esp, ebp
pop ebp
ret 4

Function at 0x40aac0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x414024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x2a
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0
push eax
mov esi, ecx
push 0
mov dword [ebp - 0x10c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x108], 0
jne 0x40ab17
xor ecx, ecx
jmp 0x40ab29
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ab20
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004027b0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d22b
mov esp, ebp
pop ebp
ret
Function at 0x10006d9c
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x1001b100]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.1000516f
push 0x10001bfc
lea ecx, [esp + 0x1c]
call fcn.100050c5
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x10006e1c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x10006e42
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.1000690c
mov edi, eax
jmp 0x10006e42
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.10006c78
mov ebx, eax
test ebx, ebx
jns 0x10006e48
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.100068c0
mov edi, ebx
test esi, esi
je 0x10006e5c
jmp 0x10006e56
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.10006ae2
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100174b0
mov esp, ebp
pop ebp
ret 8
Function at 0x100090b2
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10009276
mov ax, word [edi + 2]
xor ecx, ecx
mov word [ebp - 0x20], ax
add esi, 0xa
mov al, byte [edi + 4]
mov bh, cl
mov byte [ebp - 0x1e], al
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], bh
jmp 0x1000911f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.100088a7
test eax, eax
js 0x100091fc
lea eax, [ebp - 0x20]
mov ecx, edi
je 0x100091d3
push dword [ebp - 8]
push eax
call fcn.1000901f
mov esi, eax
push dword [edi + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea ecx, [ebp - 0x20]
call fcn.10008a0a
mov bl, al
test bl, bl
jne 0x100090f3
mov esi, dword [ebp - 8]
mov dword [edi + 0x14], esi
xor edx, edx
test bh, bh
jne 0x10009164
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
and dword [ebp - 0x14], edx
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], eax
call fcn.1000891a
mov edx, eax
mov ax, word [edi + 6]
lea ecx, [ebp - 0x34]
and dword [ebp - 0x28], 0
mov word [ebp - 0x34], ax
mov al, byte [edi + 8]
mov byte [ebp - 0x32], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov word [ebp - 0x2c], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
call fcn.1000891a
mov ebx, dword [edi + 0x18]
add eax, edx
mov dword [ebp - 0xc], eax
mov edx, ebx
mov eax, dword [edi + 0x14]
sub edx, eax
cmp eax, ebx
sbb ecx, ecx
and ecx, edx
mov edx, dword [ebp - 0xc]
cmp ecx, edx
jb 0x10009276
sub ebx, edx
lea ecx, [edx + esi]
sub ebx, esi
sub eax, esi
je 0x1000922d
test ecx, ecx
jne 0x1000920c
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call sub.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo
jmp 0x1000922d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.10008ee9
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x100091f5
mov al, 1
jmp 0x10009278
mov bh, 1
mov byte [ebp - 1], bh
jmp 0x100091ff
mov dword [ebp - 8], esi
test bl, bl
jne 0x1000913d
jmp 0x1000913a
test esi, esi
je 0x100091c0
cmp ebx, eax
jae 0x10009222
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x22
jmp 0x100091cc
push eax
push esi
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov eax, dword [edi + 0x14]
add eax, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
mov dword [edi + 0x14], eax
jne 0x1000924b
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.10008944
jmp 0x1000925e
cmp byte [ebp - 0x1e], 0
je 0x1000925e
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
inc eax
push eax
call fcn.100088d4
push dword [edi + 0x14]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10008944
mov byte [edi + 0x20], 1
jmp 0x100091ee
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1000a83e
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001b100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x32
pop eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push eax
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
xor edi, edi
mov dword [ebp - 0x18], ebx
push 8
mov dword [ebp - 0x1c], ebx
inc 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_OpenProcessToken]
test eax, eax
je 0x1000a96a
test esi, esi
je 0x1000a96a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
jne 0x1000a8f5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000a96a
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1000a96a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x1000a96a
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1000a96a
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 6
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1000a96a
cmp dword [esi], ebx
jbe 0x1000a968
lea eax, [esi + 4]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x18]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
jne 0x1000a96a
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
jne 0x1000a968
mov eax, dword [ebp - 0x20]
inc ebx
add eax, 8
mov dword [ebp - 0x20], eax
cmp ebx, dword [esi]
jb 0x1000a937
xor edi, edi
cmp dword [ebp - 0x18], 0
je 0x1000a979
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
cmp dword [ebp - 0x1c], 0
je 0x1000a988
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
test esi, esi
je 0x1000a993
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
cmp dword [ebp - 0x14], 0
je 0x1000a9a2
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100174b0
leave
ret
Function at 0x1000aa7f
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 5
push 0x80000000
push ecx
mov dword [ebp - 8], edx
xor bl, bl
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000ab01
test edi, edi
je 0x1000ab01
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push edi
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
je 0x1000aaed
cmp esi, 0xffffffff
je 0x1000aaed
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
test eax, eax
je 0x1000aaf8
mov edx, dword [ebp - 8]
mov ecx, eax
call fcn.1000aa1b
mov bl, al
jmp 0x1000aaf8
xor bl, bl
test esi, esi
je 0x1000ab0c
cmp esi, 0xffffffff
je 0x1000ab0c
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1000ab0c
xor bl, bl
cmp edi, 0xffffffff
je 0x1000ab13
test edi, edi
je 0x1000ab13
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x1000ab68
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x14], ecx
push eax
xor ecx, ecx
mov dword [ebp - 0x10], edx
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0x2000
push eax
push 0x1000ab20
push ecx
push ecx
mov dword [ebp - 8], 4
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1000abb3
push 0xffffffffffffffff
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
leave
ret 4
Function at 0x1000b0fd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1001b100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], edx
push eax
push 0x20019
xor ebx, ebx
mov esi, ecx
push ebx
push 0x10001e68
push 0x80000002
mov dword [ebp - 0x108], ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b1bf
mov eax, ebx
push edi
mov dword [ebp - 0x10c], 0x100
lea edi, [eax + 1]
test esi, esi
jne 0x1000b15d
push ebx
push ebx
jmp 0x1000b173
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
lea ecx, [ebp - 0x114]
push ecx
mov byte [esi], bl
push esi
lea ecx, [ebp - 0x118]
push ecx
push ebx
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push dword [ebp - 0x108]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueA]
test eax, eax
jne 0x1000b1b2
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleA]
test eax, eax
jne 0x1000b1af
mov eax, edi
jmp 0x1000b148
xor ebx, ebx
inc ebx
push dword [ebp - 0x108]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.100174b0
leave
ret
Function at 0x1000b220
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x1001b100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], edi
cmp dword [0x1001baf0], edi
jne 0x1000b394
call fcn.1000acb1
cmp eax, 4
jbe 0x1000b2a6
mov esi, 0x9c
lea eax, [ebp - 0xa8]
push esi
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [ebp - 0xa8], esi
push 0x10
pop eax
push 6
push 0x40
push edi
push edi
mov word [ebp - 0x10], ax
call dword [sym.imp.ntdll.dll_VerSetConditionMask]
push edx
push eax
push 0x40
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_2.dll_VerifyVersionInfoA]
mov dword [0x1001b628], eax
jmp 0x1000b376
call fcn.1000acb1
cmp eax, 4
jne 0x1000b376
lea eax, [ebp - 0xac]
push eax
push 0x2000000
push edi
push 0x10001eb4
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b376
lea eax, [ebp - 0xb0]
mov ebx, 0x10001ee4
push eax
push edi
lea eax, [ebp - 0xb4]
push eax
push edi
push ebx
push dword [ebp - 0xac]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x1000b376
mov esi, dword [ebp - 0xb0]
test esi, esi
je 0x1000b376
cmp dword [ebp - 0xb4], 7
jne 0x1000b376
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000b376
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0xb8]
push eax
push esi
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
push eax
push edi
push ebx
push dword [ebp - 0xac]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x1000b367
push ecx
mov ecx, esi
call fcn.1000b1d5
neg eax
sbb eax, eax
neg eax
mov dword [0x1001b628], eax
push esi
push edi
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
cmp dword [ebp - 0xac], edi
je 0x1000b38a
push dword [ebp - 0xac]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [0x1001baf0], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x1001b628]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100174b0
leave
ret
Function at 0x1000b859
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x1001b100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov byte [esi], 0
and dword [edi], 0
cmp dword [ebp + 8], 0
jne 0x1000b959
xor edx, edx
xor ecx, ecx
call fcn.1000b0fd
test eax, eax
jne 0x1000b959
lea eax, [ebp - 0x1a0]
push eax
push 0x20019
push 0
push 0x10001ef4
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b93c
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1a4], 0x105
push eax
push esi
lea eax, [ebp - 0x19c]
push eax
push 0
push 0x10001f7c
push dword [ebp - 0x1a0]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x1000b930
cmp dword [ebp - 0x19c], 2
jne 0x1000b924
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1000b930
lea eax, [ebp - 0x110]
push eax
push 0x105
push esi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcpy_s]
add esp, 0xc
jmp 0x1000b930
cmp dword [ebp - 0x19c], 1
je 0x1000b930
mov byte [esi], 0
push dword [ebp - 0x1a0]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp byte [esi], 0
je 0x1000b959
push 0x4000
lea eax, [ebp - 0x198]
push eax
push esi
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x1000b99b
push edi
push dword [ebp + 8]
mov edx, esi
push ecx
mov ecx, 0x80000001
call fcn.1000b3ae
test eax, eax
jne 0x1000b99b
push edi
push dword [ebp + 8]
mov edx, esi
push ecx
mov ecx, 0x80000002
call fcn.1000b3ae
test eax, eax
jne 0x1000b99b
cmp byte [esi], al
jne 0x1000b99b
push 0x10001f88
push 0x105
push esi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100174b0
leave
ret 8
Function at 0x1000b9b1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1214
call fcn.100185e0
mov eax, dword [0x1001b100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1001bb04], 0
jne 0x1000bb26
push esi
lea eax, [ebp - 0x1210]
xor esi, esi
push eax
push 0x20019
push esi
push 0x10001ef4
push 0x80000002
mov dword [ebp - 0x1210], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000bb25
push edi
lea eax, [ebp - 0x1214]
mov edi, 0x1000
push eax
lea eax, [ebp - 0x120c]
mov dword [ebp - 0x1214], edi
push eax
push esi
push esi
push 0x10001f94
push dword [ebp - 0x1210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1000bab5
lea eax, [ebp - 0x1214]
mov dword [ebp - 0x1214], edi
push eax
lea eax, [ebp - 0x120c]
push eax
push esi
push esi
push 0x10001fac
push dword [ebp - 0x1210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1000bab5
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x13be
push dword [0x1001b614]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1000baab
push 0x800
lea eax, [ebp - 0x120c]
push eax
push 0x13bd
push dword [0x1001b614]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1000baab
lea esi, [ebp - 0x20c]
jmp 0x1000bb00
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x1000bb18
movzx eax, word [ebp - 0x120c]
lea edi, [ebp - 0x120c]
mov ecx, eax
test cx, cx
je 0x1000bae6
mov edx, eax
cmp dx, 0x2a
je 0x1000baeb
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
movzx ecx, word [edi]
mov edx, ecx
mov eax, ecx
test cx, cx
jne 0x1000bacb
test ax, ax
je 0x1000bafb
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx esi, word [eax]
neg esi
sbb esi, esi
and esi, eax
xor eax, eax
mov word [edi], ax
push ecx
mov edx, esi
lea ecx, [ebp - 0x120c]
call fcn.1000ab68
mov dword [0x1001bb04], 1
push dword [ebp - 0x1210]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [0x1001bb04]
xor ecx, ebp
call fcn.100174b0
leave
ret

Function at 0x1000c4a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push 0x100020a4
lea ecx, [ebp - 4]
call fcn.1000c1d2
cmp dword [ebp - 4], 0
jne 0x1000c4c8
xor al, al
leave
ret
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push eax
push ecx
push 0x10
push 0x100020d0
push ecx
push dword [ebp - 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
cmp eax, 1
sete bl
cmp dword [ebp - 4], 0
je 0x1000c50d
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret