joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107ef11
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x1007770
test ebx, ebx
jne 0x107ef48
push 0x10078a0
push 0x79d
push esi
call fcn.0107b4be
test edi, edi
jne 0x107ef5c
push 0x1007888
push 0x79e
push esi
call fcn.0107b4be
and dword [edi], 0
and dword [ebp - 0x418], 0
mov esi, 0x208
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x107efbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x107efb8
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x107f046
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x107f023
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x107efec
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jne 0x107f048
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107f01c
test byte [eax + 0x1c], 1
je 0x107f01c
cmp byte [eax + 0x19], 2
jb 0x107f01c
push 0x1007760
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov esi, 0x8000ffff
jmp 0x107f046
push 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0107c871
mov esi, eax
test esi, esi
jl 0x107f04a
mov eax, dword [ebp - 0x418]
mov dword [edi], eax
test esi, esi
jge 0x107f056
push dword [ebp - 0x418]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 8

Function at 0x107f0d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x107f0f1
push 0x10078b4
push 0x814
push 0x1007770
call fcn.0107b4be
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x107f166
push 0
push 0
push dword [ebp + 0xc]
push esi
call fcn.0107e463
test eax, eax
jl 0x107f168
push dword [0x1111338]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x107f166
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x107f152
test byte [eax + 0x1c], 2
je 0x107f152
cmp byte [eax + 0x19], 2
jb 0x107f152
push esi
push 0x1007760
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
test esi, esi
jle 0x107f162
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x107f168
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x1080942
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, dword [0x111124c]
mov ebx, 0x10079b8
cmp eax, 0x111124c
je 0x1080975
test byte [eax + 0x1c], 1
je 0x1080975
cmp byte [eax + 0x19], 4
jb 0x1080975
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
push edi
push eax
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
jne 0x10809d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10809a6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1080a7d
test byte [eax + 0x1c], 1
je 0x1080a7d
cmp byte [eax + 0x19], 2
jb 0x1080a7d
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0xb
jmp 0x1080a38
lea eax, [edi + edi]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 8], eax
test eax, eax
jne 0x10809f5
mov dword [ebp - 4], 0x8007000e
jmp 0x1080a7d
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1080a45
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1080a14
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1080a7d
test byte [eax + 0x1c], 1
je 0x1080a7d
cmp byte [eax + 0x19], 2
jb 0x1080a7d
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x1080a7d
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1080a71
test byte [eax + 0x1c], 1
je 0x1080a71
cmp byte [eax + 0x19], 4
jb 0x1080a71
push dword [ebp - 8]
push dword [ebp + 8]
push ebx
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
and dword [ebp - 8], 0
mov dword [eax], ecx
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
pop edi
pop esi
cmp eax, 0x111124c
je 0x1080aae
test byte [eax + 0x1c], 1
je 0x1080aae
cmp byte [eax + 0x19], 4
jb 0x1080aae
push ebx
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
Function at 0x1080abb
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
push esi
push 5
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x1080aec
push 0x1007adc
push 0x76
push 0x1007ab0
call fcn.0107b4be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov ebx, 0xffff
mov edi, 0x80070000
jle 0x1080b04
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
cmp eax, 0x800700ea
jne 0x1080b77
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
jne 0x1080b2e
mov dword [ebp - 4], 0x8007000e
jmp 0x1080b6c
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push esi
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x1080b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1080b60
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
jmp 0x1080b6c
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor esi, esi
test esi, esi
je 0x1080b77
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1080b86
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1080bb8
test byte [eax + 0x1c], 1
je 0x1080bb8
cmp byte [eax + 0x19], 4
jb 0x1080bb8
push 0x10079b8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov ebx, 0x1007ab0
cmp esi, edi
je 0x1080be1
cmp dword [ebp + 0xc], edi
je 0x1080be1
cmp dword [ebp + 0x14], edi
je 0x1080be1
cmp dword [ebp + 0x18], edi
jne 0x1080bf1
push 0x1007af0
push 0x1bc
push ebx
call fcn.0107b4be
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [esi], edi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
cmp eax, edi
je 0x1080c5c
jle 0x1080c18
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1080d3e
test byte [eax + 0x1c], 1
je 0x1080d19
cmp byte [eax + 0x19], 2
jb 0x1080d19
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x10079b8
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x1080d14
cmp dword [ebp - 8], edi
ja 0x1080c71
push 0x1007ae4
push 0x1ca
push ebx
call fcn.0107b4be
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x1080c89
mov dword [ebp - 4], 0x8007000e
jmp 0x1080d04
push dword [ebp - 8]
push edi
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x1080ced
jle 0x1080cb8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1080d09
test byte [eax + 0x1c], 1
je 0x1080d09
cmp byte [eax + 0x19], 2
jb 0x1080d09
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x10079b8
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x1080d04
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ecx], eax
mov eax, dword [0x111124c]
cmp ebx, edi
je 0x1080d19
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1080d3e
test byte [eax + 0x1c], 1
je 0x1080d3e
cmp byte [eax + 0x19], 4
jb 0x1080d3e
push 0x10079b8
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1080eaa
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x1080ee1
test byte [eax + 0x1c], 1
je 0x1080ee1
cmp byte [eax + 0x19], 4
jb 0x1080ee1
push 0x10079b8
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 5
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntdll.dll_NtQueryKey]
cmp eax, ebx
jge 0x1080f3e
or eax, 0x10000000
mov ebx, eax
mov eax, dword [0x111124c]
cmp eax, esi
je 0x1080fd6
test byte [eax + 0x1c], 1
je 0x1080fb4
cmp byte [eax + 0x19], 2
jb 0x1080fb4
push ebx
push 0x10079b8
push 0x20
jmp 0x1080fa4
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0xc], ebx
je 0x1080f4b
or eax, 2
jmp 0x1080f4e
and eax, 0xfffffffd
cmp dword [ebp + 0x10], ebx
je 0x1080f58
or eax, 4
jmp 0x1080f5b
and eax, 0xfffffffb
cmp dword [ebp + 0x14], ebx
je 0x1080f65
or eax, 8
jmp 0x1080f68
and eax, 0xfffffff7
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationKey]
cmp eax, ebx
jge 0x1080faf
or eax, 0x10000000
mov ebx, eax
mov eax, dword [0x111124c]
cmp eax, esi
je 0x1080fd6
test byte [eax + 0x1c], 1
je 0x1080fb4
cmp byte [eax + 0x19], 2
jb 0x1080fb4
push ebx
push 0x10079b8
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp eax, esi
je 0x1080fd6
test byte [eax + 0x1c], 1
je 0x1080fd6
cmp byte [eax + 0x19], 4
jb 0x1080fd6
push 0x10079b8
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x1080fe4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov eax, dword [0x111124c]
mov edi, 0x111124c
mov ebx, 0x10079b8
cmp eax, edi
je 0x1081019
test byte [eax + 0x1c], 1
je 0x1081019
cmp byte [eax + 0x19], 4
jb 0x1081019
push ebx
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
and dword [ebp - 4], 0
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x108107c
mov eax, dword [0x111124c]
cmp eax, edi
je 0x1081065
test byte [eax + 0x1c], 1
je 0x1081065
cmp byte [eax + 0x19], 2
jb 0x1081065
push 0
push ebx
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
test esi, esi
jg 0x108106e
mov dword [ebp - 4], esi
jmp 0x1081081
and esi, 0xffff
or esi, 0x80070000
jmp 0x1081069
mov eax, dword [0x111124c]
pop esi
cmp eax, edi
je 0x10810a0
test byte [eax + 0x1c], 1
je 0x10810a0
cmp byte [eax + 0x19], 4
jb 0x10810a0
push ebx
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0x14

Function at 0x10810ae
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10810e0
test byte [eax + 0x1c], 1
je 0x10810e0
cmp byte [eax + 0x19], 4
jb 0x10810e0
push 0x10079b8
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [edi], esi
cmp dword [ebp + 0xc], esi
jne 0x108110b
push 0x1007b98
push 0x2cf
push 0x1007ab0
call fcn.0107b4be
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], esi
je 0x108113a
cmp eax, 2
jne 0x108113a
xor esi, esi
inc esi
jmp 0x108119b
cmp eax, esi
je 0x108117c
jle 0x108114a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10811c5
test byte [eax + 0x1c], 1
je 0x10811a0
cmp byte [eax + 0x19], 3
jb 0x10811a0
push esi
push dword [ebp + 0xc]
push 0x10079b8
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x108119b
cmp dword [ebp - 8], 4
je 0x1081189
mov esi, 0x8007065d
jmp 0x108119b
cmp dword [ebp - 4], 4
je 0x1081196
mov esi, 0x80004005
jmp 0x108119b
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10811c5
test byte [eax + 0x1c], 1
je 0x10811c5
cmp byte [eax + 0x19], 4
jb 0x10811c5
push 0x10079b8
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x10811d2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1081204
test byte [eax + 0x1c], 1
je 0x1081204
cmp byte [eax + 0x19], 4
jb 0x1081204
push 0x10079b8
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0x40
mov dword [ebp - 0xc], edi
mov dword [eax], edi
cmp dword [ebp + 0xc], edi
jne 0x1081239
push 0x1007258
push 0x331
push 0x1007ab0
call fcn.0107b4be
mov esi, dword [ebp - 8]
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
jmp 0x10812a5
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1081276
test byte [eax + 0x1c], 1
je 0x1081276
cmp byte [eax + 0x19], 4
jb 0x1081276
push esi
push 0x10079b8
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10812b7
cmp eax, 0xea
jne 0x10812d7
mov esi, dword [ebp - 8]
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x108124b
mov dword [ebp - 4], 0x8007000e
jmp 0x1081315
cmp dword [ebp - 0xc], 7
je 0x10812c6
mov dword [ebp - 4], 0x8000ffff
jmp 0x1081315
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebp - 8]
xor edi, edi
mov dword [ecx], eax
jmp 0x1081315
test eax, eax
jle 0x10812e5
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1081315
test byte [eax + 0x1c], 1
je 0x1081315
cmp byte [eax + 0x19], 2
jb 0x1081315
push dword [ebp - 4]
push 0x10079b8
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
pop edi
pop esi
pop ebx
cmp eax, 0x111124c
je 0x1081349
test byte [eax + 0x1c], 1
je 0x1081349
cmp byte [eax + 0x19], 4
jb 0x1081349
push 0x10079b8
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 4]
leave
ret 0x10
Function at 0x10813d3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x10813fb
push 0x1007bb0
push 0x614
push 0x1007ab0
call fcn.0107b4be
and dword [ebx], 0
mov esi, 0x208
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
test edi, edi
jne 0x1081417
mov esi, 0x8007000e
jmp 0x1081455
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
test esi, esi
jl 0x108144e
lea eax, [ebp - 4]
push eax
push edi
call fcn.0107cfe1
mov esi, eax
test esi, esi
jl 0x108144e
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebx], eax
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 4], 0
je 0x1081464
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x10823bf
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10823f7
test byte [eax + 0x1c], 1
je 0x10823f7
cmp byte [eax + 0x19], 4
jb 0x10823f7
push 0x10079b8
push 0x8c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x1082415
push 0x1007d54
push 0xa3a
push 0x1007ab0
call fcn.0107b4be
and dword [ebx], 0
push 2
push 0x14
lea eax, [ebp - 4]
push eax
call fcn.0101aed5
mov dword [ebp + 8], eax
test eax, eax
jl 0x1082529
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x14
call esi
mov edi, eax
cmp edi, 0x14
jbe 0x10824de
cmp dword [ebp - 4], 0
mov dword [ebp - 8], edi
je 0x108245e
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [ebp - 4], 0
push 2
push edi
lea eax, [ebp - 4]
push eax
call fcn.0101aed5
mov dword [ebp + 8], eax
test eax, eax
jl 0x1082529
push dword [ebp - 4]
push edi
call esi
cmp eax, dword [ebp - 8]
ja 0x1082488
test eax, eax
jne 0x1082520
test eax, eax
jne 0x10824a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10824a0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
jmp 0x10824ac
mov dword [ebp + 8], 0x8007000e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108252e
test byte [eax + 0x1c], 1
je 0x108252e
cmp byte [eax + 0x19], 2
jb 0x108252e
push dword [ebp + 8]
push 0x10079b8
push 0x8d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1082529
test edi, edi
jne 0x1082520
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10824f6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108252e
test byte [eax + 0x1c], 1
je 0x108252e
cmp byte [eax + 0x19], 2
jb 0x108252e
push dword [ebp + 8]
push 0x10079b8
push 0x8e
jmp 0x10824d1
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebx], eax
mov eax, dword [0x111124c]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x1082545
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108256d
test byte [eax + 0x1c], 1
je 0x108256d
cmp byte [eax + 0x19], 4
jb 0x108256d
push 0x10079b8
push 0x8f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x10828dd
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x214], esi
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108292b
test dword [eax + 0x1c], 0x200
je 0x108292b
cmp byte [eax + 0x19], 4
jb 0x108292b
push 0x10079b8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor ebx, ebx
mov dword [ebp - 0x210], ebx
cmp esi, ebx
jne 0x108294b
push 0x1007ea8
push 0xbd
push 0x1007ab0
call fcn.0107b4be
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [esi], ebx
call sub.msvcrt.dll_memset
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x62
call esi
cmp eax, ebx
jge 0x10829d2
cmp eax, 0xc0000023
je 0x10829d2
cmp eax, 0x80000005
je 0x10829d2
cmp eax, 0xc0000004
je 0x10829d2
or eax, 0x10000000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1082b05
test byte [eax + 0x1c], 8
je 0x1082add
cmp byte [eax + 0x19], 2
jb 0x1082add
push esi
push 0x10079b8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1082ad8
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10829ee
mov esi, 0x8007000e
jmp 0x1082ac8
push dword [ebp - 0x210]
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x210]
push ebx
push 0x62
call esi
test eax, eax
jge 0x1082a55
or eax, 0x10000000
mov esi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1082acd
test byte [eax + 0x1c], 8
je 0x1082acd
cmp byte [eax + 0x19], 2
jb 0x1082acd
push esi
push 0x10079b8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x1082ac8
movzx eax, word [ebx]
movzx ecx, ax
inc ecx
inc ecx
cmp ecx, edi
jbe 0x1082a68
mov esi, 0xd0000023
jmp 0x1082ac8
test al, 1
je 0x1082a80
push 0x1007e70
push 0xee
push 0x1007ab0
call fcn.0107b4be
movzx eax, word [ebx]
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x210]
jbe 0x1082a95
mov esi, 0x8000ffff
jmp 0x1082ac8
shr eax, 1
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0107b867
mov esi, eax
test esi, esi
jl 0x1082ac8
push 0
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.0107c871
mov esi, eax
mov eax, dword [0x111124c]
test ebx, ebx
je 0x1082add
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1082b05
test dword [eax + 0x1c], 0x200
je 0x1082b05
cmp byte [eax + 0x19], 4
jb 0x1082b05
push 0x10079b8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret 4