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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, dword [0x111024c]
mov ebx, 0x10079c8
cmp eax, 0x111024c
je 0x1080a28
test byte [eax + 0x1c], 1
je 0x1080a28
cmp byte [eax + 0x19], 4
jb 0x1080a28
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 0x1080a8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1080a59
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1080b30
test byte [eax + 0x1c], 1
je 0x1080b30
cmp byte [eax + 0x19], 2
jb 0x1080b30
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0xb
jmp 0x1080aeb
lea eax, [edi + edi]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1080aa8
mov dword [ebp - 4], 0x8007000e
jmp 0x1080b30
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1080af8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1080ac7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1080b30
test byte [eax + 0x1c], 1
je 0x1080b30
cmp byte [eax + 0x19], 2
jb 0x1080b30
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x1080b30
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1080b24
test byte [eax + 0x1c], 1
je 0x1080b24
cmp byte [eax + 0x19], 4
jb 0x1080b24
push dword [ebp - 8]
push dword [ebp + 8]
push ebx
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010197e6
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 [0x111024c]
pop edi
pop esi
cmp eax, 0x111024c
je 0x1080b61
test byte [eax + 0x1c], 1
je 0x1080b61
cmp byte [eax + 0x19], 4
jb 0x1080b61
push ebx
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
Function at 0x1080b6e
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 0x1080b9f
push 0x1007aec
push 0x76
push 0x1007ac0
call fcn.0107b644
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
mov ebx, 0xffff
mov edi, 0x80070000
jle 0x1080bb7
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
cmp eax, 0x800700ea
jne 0x1080c2a
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 0x1080be1
mov dword [ebp - 4], 0x8007000e
jmp 0x1080c1f
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 0x1080c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1080c13
and eax, ebx
or eax, edi
mov dword [ebp - 4], eax
jmp 0x1080c1f
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor esi, esi
test esi, esi
je 0x1080c2a
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 0x1080c39
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1080c6b
test byte [eax + 0x1c], 1
je 0x1080c6b
cmp byte [eax + 0x19], 4
jb 0x1080c6b
push 0x10079c8
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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, 0x1007ac0
cmp esi, edi
je 0x1080c94
cmp dword [ebp + 0xc], edi
je 0x1080c94
cmp dword [ebp + 0x14], edi
je 0x1080c94
cmp dword [ebp + 0x18], edi
jne 0x1080ca4
push 0x1007b00
push 0x1bc
push ebx
call fcn.0107b644
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 0x1080d0f
jle 0x1080ccb
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1080df1
test byte [eax + 0x1c], 1
je 0x1080dcc
cmp byte [eax + 0x19], 2
jb 0x1080dcc
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x10079c8
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x1080dc7
cmp dword [ebp - 8], edi
ja 0x1080d24
push 0x1007af4
push 0x1ca
push ebx
call fcn.0107b644
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x1080d3c
mov dword [ebp - 4], 0x8007000e
jmp 0x1080db7
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 0x1080da0
jle 0x1080d6b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1080dbc
test byte [eax + 0x1c], 1
je 0x1080dbc
cmp byte [eax + 0x19], 2
jb 0x1080dbc
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x10079c8
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x1080db7
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 [0x111024c]
cmp ebx, edi
je 0x1080dcc
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1080df1
test byte [eax + 0x1c], 1
je 0x1080df1
cmp byte [eax + 0x19], 4
jb 0x1080df1
push 0x10079c8
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1080f5d
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 [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x1080f94
test byte [eax + 0x1c], 1
je 0x1080f94
cmp byte [eax + 0x19], 4
jb 0x1080f94
push 0x10079c8
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 0x1080ff1
or eax, 0x10000000
mov ebx, eax
mov eax, dword [0x111024c]
cmp eax, esi
je 0x1081089
test byte [eax + 0x1c], 1
je 0x1081067
cmp byte [eax + 0x19], 2
jb 0x1081067
push ebx
push 0x10079c8
push 0x20
jmp 0x1081057
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0xc], ebx
je 0x1080ffe
or eax, 2
jmp 0x1081001
and eax, 0xfffffffd
cmp dword [ebp + 0x10], ebx
je 0x108100b
or eax, 4
jmp 0x108100e
and eax, 0xfffffffb
cmp dword [ebp + 0x14], ebx
je 0x1081018
or eax, 8
jmp 0x108101b
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 0x1081062
or eax, 0x10000000
mov ebx, eax
mov eax, dword [0x111024c]
cmp eax, esi
je 0x1081089
test byte [eax + 0x1c], 1
je 0x1081067
cmp byte [eax + 0x19], 2
jb 0x1081067
push ebx
push 0x10079c8
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp eax, esi
je 0x1081089
test byte [eax + 0x1c], 1
je 0x1081089
cmp byte [eax + 0x19], 4
jb 0x1081089
push 0x10079c8
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x1081097
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov eax, dword [0x111024c]
mov edi, 0x111024c
mov ebx, 0x10079c8
cmp eax, edi
je 0x10810cc
test byte [eax + 0x1c], 1
je 0x10810cc
cmp byte [eax + 0x19], 4
jb 0x10810cc
push ebx
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 0x108112f
mov eax, dword [0x111024c]
cmp eax, edi
je 0x1081118
test byte [eax + 0x1c], 1
je 0x1081118
cmp byte [eax + 0x19], 2
jb 0x1081118
push 0
push ebx
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
test esi, esi
jg 0x1081121
mov dword [ebp - 4], esi
jmp 0x1081134
and esi, 0xffff
or esi, 0x80070000
jmp 0x108111c
mov eax, dword [0x111024c]
pop esi
cmp eax, edi
je 0x1081153
test byte [eax + 0x1c], 1
je 0x1081153
cmp byte [eax + 0x19], 4
jb 0x1081153
push ebx
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0x14

Function at 0x1081161
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1081193
test byte [eax + 0x1c], 1
je 0x1081193
cmp byte [eax + 0x19], 4
jb 0x1081193
push 0x10079c8
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 0x10811be
push 0x1007ba8
push 0x2cf
push 0x1007ac0
call fcn.0107b644
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 0x10811ed
cmp eax, 2
jne 0x10811ed
xor esi, esi
inc esi
jmp 0x108124e
cmp eax, esi
je 0x108122f
jle 0x10811fd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1081278
test byte [eax + 0x1c], 1
je 0x1081253
cmp byte [eax + 0x19], 3
jb 0x1081253
push esi
push dword [ebp + 0xc]
push 0x10079c8
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x108124e
cmp dword [ebp - 8], 4
je 0x108123c
mov esi, 0x8007065d
jmp 0x108124e
cmp dword [ebp - 4], 4
je 0x1081249
mov esi, 0x80004005
jmp 0x108124e
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1081278
test byte [eax + 0x1c], 1
je 0x1081278
cmp byte [eax + 0x19], 4
jb 0x1081278
push 0x10079c8
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x1081285
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10812b7
test byte [eax + 0x1c], 1
je 0x10812b7
cmp byte [eax + 0x19], 4
jb 0x10812b7
push 0x10079c8
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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 0x10812ec
push 0x1007268
push 0x331
push 0x1007ac0
call fcn.0107b644
mov esi, dword [ebp - 8]
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
jmp 0x1081358
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1081329
test byte [eax + 0x1c], 1
je 0x1081329
cmp byte [eax + 0x19], 4
jb 0x1081329
push esi
push 0x10079c8
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
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 0x108136a
cmp eax, 0xea
jne 0x108138a
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 0x10812fe
mov dword [ebp - 4], 0x8007000e
jmp 0x10813c8
cmp dword [ebp - 0xc], 7
je 0x1081379
mov dword [ebp - 4], 0x8000ffff
jmp 0x10813c8
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 0x10813c8
test eax, eax
jle 0x1081398
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10813c8
test byte [eax + 0x1c], 1
je 0x10813c8
cmp byte [eax + 0x19], 2
jb 0x10813c8
push dword [ebp - 4]
push 0x10079c8
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
pop edi
pop esi
pop ebx
cmp eax, 0x111024c
je 0x10813fc
test byte [eax + 0x1c], 1
je 0x10813fc
cmp byte [eax + 0x19], 4
jb 0x10813fc
push 0x10079c8
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 4]
leave
ret 0x10
Function at 0x1081486
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 0x10814ae
push 0x1007bc0
push 0x614
push 0x1007ac0
call fcn.0107b644
and dword [ebx], 0
mov esi, 0x208
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
test edi, edi
jne 0x10814ca
mov esi, 0x8007000e
jmp 0x1081508
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 0x1081501
lea eax, [ebp - 4]
push eax
push edi
call fcn.0107d16c
mov esi, eax
test esi, esi
jl 0x1081501
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 0x1081517
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 0x1082472
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 [0x111024c]
cmp eax, 0x111024c
je 0x10824aa
test byte [eax + 0x1c], 1
je 0x10824aa
cmp byte [eax + 0x19], 4
jb 0x10824aa
push 0x10079c8
push 0x8c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x10824c8
push 0x1007d64
push 0xa3a
push 0x1007ac0
call fcn.0107b644
and dword [ebx], 0
push 2
push 0x14
lea eax, [ebp - 4]
push eax
call fcn.0101ae15
mov dword [ebp + 8], eax
test eax, eax
jl 0x10825dc
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x14
call esi
mov edi, eax
cmp edi, 0x14
jbe 0x1082591
cmp dword [ebp - 4], 0
mov dword [ebp - 8], edi
je 0x1082511
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.0101ae15
mov dword [ebp + 8], eax
test eax, eax
jl 0x10825dc
push dword [ebp - 4]
push edi
call esi
cmp eax, dword [ebp - 8]
ja 0x108253b
test eax, eax
jne 0x10825d3
test eax, eax
jne 0x1082558
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1082553
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
jmp 0x108255f
mov dword [ebp + 8], 0x8007000e
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10825e1
test byte [eax + 0x1c], 1
je 0x10825e1
cmp byte [eax + 0x19], 2
jb 0x10825e1
push dword [ebp + 8]
push 0x10079c8
push 0x8d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x10825dc
test edi, edi
jne 0x10825d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10825a9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 8], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10825e1
test byte [eax + 0x1c], 1
je 0x10825e1
cmp byte [eax + 0x19], 2
jb 0x10825e1
push dword [ebp + 8]
push 0x10079c8
push 0x8e
jmp 0x1082584
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebx], eax
mov eax, dword [0x111024c]
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x10825f8
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1082620
test byte [eax + 0x1c], 1
je 0x1082620
cmp byte [eax + 0x19], 4
jb 0x1082620
push 0x10079c8
push 0x8f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x1082990
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x111027c]
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 [0x111024c]
cmp eax, 0x111024c
je 0x10829de
test dword [eax + 0x1c], 0x200
je 0x10829de
cmp byte [eax + 0x19], 4
jb 0x10829de
push 0x10079c8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor ebx, ebx
mov dword [ebp - 0x210], ebx
cmp esi, ebx
jne 0x10829fe
push 0x1007eb8
push 0xbd
push 0x1007ac0
call fcn.0107b644
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 0x1082a85
cmp eax, 0xc0000023
je 0x1082a85
cmp eax, 0x80000005
je 0x1082a85
cmp eax, 0xc0000004
je 0x1082a85
or eax, 0x10000000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1082bb8
test byte [eax + 0x1c], 8
je 0x1082b90
cmp byte [eax + 0x19], 2
jb 0x1082b90
push esi
push 0x10079c8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1082b8b
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1082aa1
mov esi, 0x8007000e
jmp 0x1082b7b
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 0x1082b08
or eax, 0x10000000
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1082b80
test byte [eax + 0x1c], 8
je 0x1082b80
cmp byte [eax + 0x19], 2
jb 0x1082b80
push esi
push 0x10079c8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1082b7b
movzx eax, word [ebx]
movzx ecx, ax
inc ecx
inc ecx
cmp ecx, edi
jbe 0x1082b1b
mov esi, 0xd0000023
jmp 0x1082b7b
test al, 1
je 0x1082b33
push 0x1007e80
push 0xee
push 0x1007ac0
call fcn.0107b644
movzx eax, word [ebx]
lea ecx, [eax + 4]
cmp ecx, dword [ebp - 0x210]
jbe 0x1082b48
mov esi, 0x8000ffff
jmp 0x1082b7b
shr eax, 1
push eax
push dword [ebx + 4]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0107b9ed
mov esi, eax
test esi, esi
jl 0x1082b7b
push 0
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.0107c9fc
mov esi, eax
mov eax, dword [0x111024c]
test ebx, ebx
je 0x1082b90
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1082bb8
test dword [eax + 0x1c], 0x200
je 0x1082bb8
cmp byte [eax + 0x19], 4
jb 0x1082bb8
push 0x10079c8
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 4
Function at 0x1086668
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x108669b
push 0x1008868
push 0x24a
push 0x10087a4
call fcn.0107b644
and dword [edi], 0
mov eax, dword [0x111024c]
mov ebx, 0x111024c
cmp eax, ebx
je 0x10866ca
test byte [eax + 0x1c], 1
je 0x10866ca
cmp byte [eax + 0x19], 4
jb 0x10866ca
push 0x10085c8
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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
push 0x10085e0
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010257dc
mov dword [ebp - 0x418], eax
test eax, eax
jl 0x1086755
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1086740
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x108674f
and eax, 0xffff
or eax, 0x80070000
jmp 0x108674f
push 0
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.0107c9fc
mov dword [ebp - 0x418], eax
mov eax, dword [0x111024c]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x108677f
test byte [eax + 0x1c], 1
je 0x108677f
cmp byte [eax + 0x19], 4
jb 0x108677f
push 0x10085c8
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
call fcn.0106f798
leave
ret 4