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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b1f4
push ebx
push esi
call fcn.1000b120
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b0b4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b1a1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b1f3
push edi
push eax
call fcn.10007ebc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b1c1
call fcn.10007e82
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b1f2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b0b4
add esp, 0x20
test eax, eax
jne 0x1000b1e0
push edi
call fcn.10007e82
jmp 0x1000b1e8
push ebx
call fcn.10007e82
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000b461
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015bc0
push 0x10015bb8
push str.FlsAlloc
push 0x1f
call fcn.1000b37d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b495
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014150]
call esi
jmp 0x1000b49b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b4df
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015bd0
push 0x10015bc8
push str.FlsGetValue
push 0x21
call fcn.1000b37d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b516
push dword [ebp + 8]
mov ecx, esi
call dword [0x10014150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000b51e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10015bd8
push 0x10015bd0
push str.FlsSetValue
push 0x22
call fcn.1000b37d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b558
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10014150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012c60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012c8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012c8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454004]
jne 0x401010
repz ret
jmp fcn.004016de

Function at 0x407355
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401856
and dword [ebp - 4], 0
cmp dword [0x457480], 0
mov ebx, eax
jne 0x407406
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4074b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4074b7
push eax
call fcn.004017e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x457480], eax
call esi
push eax
call fcn.004017e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x457484], eax
call esi
push eax
call fcn.004017e4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x457488], eax
call esi
push eax
call fcn.004017e4
pop ecx
mov dword [0x457490], eax
test eax, eax
je 0x407406
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004017e4
pop ecx
mov dword [0x45748c], eax
mov eax, dword [0x45748c]
cmp eax, ebx
je 0x40745e
cmp dword [0x457490], ebx
je 0x40745e
push eax
call fcn.0040185f
push dword [0x457490]
mov esi, eax
call fcn.0040185f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40745e
test edi, edi
je 0x40745e
call esi
test eax, eax
je 0x407455
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407455
test byte [ebp - 0xc], 1
jne 0x40745e
or dword [ebp + 0x10], 0x200000
jmp 0x407497
mov eax, dword [0x457484]
cmp eax, ebx
je 0x407497
push eax
call fcn.0040185f
pop ecx
test eax, eax
je 0x407497
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407497
mov eax, dword [0x457488]
cmp eax, ebx
je 0x407497
push eax
call fcn.0040185f
pop ecx
test eax, eax
je 0x407497
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457480]
call fcn.0040185f
pop ecx
test eax, eax
je 0x4074b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4074b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44d8b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x455000]
push ebx
mov ebx, dword [0x828294]
push esi
mov esi, dword [0x8280dc]
push eax
call fcn.0044d7a0
add esp, 4
cmp dword [0x828294], 0x2f
jne 0x44d8db
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
call fcn.0044d810
add esp, 4
cmp dword [0x828294], 0x568
pop esi
pop ebx
jne 0x44d8fa
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
ret
Function at 0x52ffa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdb000]
push edi
jmp 0x52ffba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52ffc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52ffb0
mov eax, 1
add ebx, ebx
jne 0x52ffd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52ffe4
jne 0x530003
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x530003
dec eax
add ebx, ebx
jne 0x52fff0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52ffc8
add ebx, ebx
jne 0x52ffff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x530055
xor ecx, ecx
sub eax, 3
jb 0x53001b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53008a
sar eax, 1
mov ebp, eax
jmp 0x530026
add ebx, ebx
jne 0x530026
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52fff4
inc ecx
add ebx, ebx
jne 0x530034
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52fff4
add ebx, ebx
jne 0x530041
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x530036
jne 0x530052
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x530036
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x530074
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x530066
jmp 0x52ffb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x530074
add edi, ecx
jmp 0x52ffb6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x530092
cmp byte [edi], 0x11
jne 0x530092
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x530097
lea edi, [esi + 0x128000]
mov eax, dword [edi]
or eax, eax
je 0x53010f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x186dc8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x186f44]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5300c4
mov ecx, edi
jns 0x5300f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x186f48]
or eax, eax
je 0x530109
mov dword [ebx], eax
add ebx, 4
jmp 0x5300e1
call dword [esi + 0x186f58]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x530140
cmp al, 0xef
ja 0x530133
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x530115
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x530122
mov ebp, dword [esi + 0x186f4c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x530174
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x41fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x41fe5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fe61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fe50
mov eax, 1
add ebx, ebx
jne 0x41fe73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fe68
jne 0x41fe84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fe68
xor ecx, ecx
sub eax, 3
jb 0x41fe98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ff0a
mov ebp, eax
add ebx, ebx
jne 0x41fea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41feb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fed4
inc ecx
add ebx, ebx
jne 0x41fec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41feb5
jne 0x41fed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41feb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fee5
jmp 0x41fe56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fef4
add edi, ecx
jmp 0x41fe56
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ff12
cmp byte [edi], 9
jne 0x41ff12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ff17
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41ff8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20f08]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20fe8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ff44
mov ecx, edi
jns 0x41ff73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20ff0]
or eax, eax
je 0x41ff89
mov dword [ebx], eax
add ebx, 4
jmp 0x41ff61
call dword [esi + 0x20fec]
mov ebp, dword [esi + 0x20ff4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41ffc3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ed70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x40eae0
sub eax, 1
add eax, esi
call fcn.0040ed9b
xor dword [edi], ecx
add esi, eax
add edi, 1
add esi, 1
add esi, eax
cmp edi, edx
jne fcn.0040ed70
ret
Function at 0x10001100
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareElaborate_BytesElbyCDIO
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000115c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.UserMode
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001151
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x10001170
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareElaborate_BytesElbyCDIO
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100011cd
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.LockedIO
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100011c2
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x100011e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareElaborate_BytesElbyCDIO
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000123c
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.Debug
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001231
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x10001250
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x100012a8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1000129e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [esp + 4]
test eax, eax
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
setne bl
call dword [edx + 0x14]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + reloc.ADVAPI32.dll_OpenProcessToken]
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x10002000
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
lea eax, [esp + 0x10]
push eax
push ebp
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x100020b9
push edi
push esi
call fcn.100052f5
mov edi, eax
add esp, 4
test edi, edi
je 0x100020af
push edi
push esi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100020a6
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push reloc.ADVAPI32.dll_RegOpenKeyExA
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100020a6
mov eax, dword [esp + 0x10]
mov dx, word [eax + 0xa]
mov ecx, dword [esp + 0x24]
mov word [ecx], dx
mov dx, word [eax + 8]
mov word [ecx + 2], dx
mov dx, word [eax + 0xe]
mov word [ecx + 4], dx
mov dx, word [eax + 0xc]
mov word [ecx + 6], dx
mov dx, word [eax + 0x12]
mov ecx, dword [esp + 0x28]
mov word [ecx], dx
mov dx, word [eax + 0x10]
mov word [ecx + 2], dx
mov dx, word [eax + 0x16]
mov word [ecx + 4], dx
mov ax, word [eax + 0x14]
mov word [ecx + 6], ax
mov ebx, 1
push edi
call fcn.100051dd
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret

Function at 0x10002130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x10011c40]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0xc], edi
je 0x1000217e
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call ebp
push eax
call ebx
cmp eax, edi
je 0x10002172
lea ecx, [esp + 0xc]
push ecx
call eax
cmp eax, edi
jne 0x1000217e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
push esi
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000221b
mov eax, dword [0x10011c98]
lea edi, [esp + 0x14]
dec edi
cmp eax, 4
jl 0x100021e5
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100021a6
mov eax, dword [str.DriversELBYCDIO.sys]
mov ecx, dword [0x1000e2f0]
mov edx, dword [0x1000e2f4]
mov dword [edi], eax
mov eax, dword [0x1000e2f8]
mov dword [edi + 4], ecx
mov ecx, dword [0x1000e2fc]
mov dword [edi + 8], edx
mov dx, word [0x1000e300]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov word [edi + 0x14], dx
jmp 0x100021fc
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100021e5
mov ecx, 5
mov esi, str.IoSubSysELBYCDIO.vxd
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call sym.ElbyCDIO.dll_ElbyCDIO_GetFileVersion
add esp, 0xc
mov edi, eax
mov eax, dword [0x10011c40]
test eax, eax
je 0x1000223e
mov esi, dword [esp + 0x10]
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call ebp
push eax
call ebx
test eax, eax
je 0x1000223e
push esi
call eax
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x108
ret