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

Disassembly:
mov eax, 0x2004
call fcn.0041d9c0
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41a1e4
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41a1f1
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41a2b4
movzx eax, word [esi]
test ax, ax
je 0x41a2b4
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x41a23e
test edi, edi
je 0x41a248
test ebx, ebx
jne 0x41a248
test ecx, ecx
je 0x41a23a
mov byte [ecx], 1
mov ebx, ebp
jmp 0x41a25f
cmp eax, 0xd
je 0x41a272
cmp eax, 0xa
je 0x41a275
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x41a26d
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x41a220
jmp 0x41a275
mov byte [edx], 1
jmp 0x41a275
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x41a2ae
mov word [edi], ax
test ebx, ebx
je 0x41a2ae
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040fadb
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41a2b6
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x41a2c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x41a310
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x41a318
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c852
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d9c0
cmp byte [0x449600], 0
je 0x41c8e1
cmp word [0x449602], 0
je 0x41c8e1
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x449602
call fcn.0041b4dd
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41c8e0
push dword [ebp + 8]
call fcn.00422b93
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41c8e7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041d9c0
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040f85f
mov esi, eax
test esi, esi
je 0x41c93f
movzx ecx, word [esi]
push ecx
jmp 0x41c92a
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040f976
test al, al
jne 0x41c923
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x401190
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562e30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 4], 1
mov dword [esi], ebx
cmp dword [0x5ddd88], ebx
jne 0x4011d9
call fcn.00401580
cmp dword [0x5ddd84], ebx
jne 0x4011e9
cmp dword [0x5c337c], ebx
je 0x401253
push 0x800
call fcn.00448ab7
add esp, 4
mov dword [esi], eax
cmp eax, ebx
je 0x401249
push 0x800
push ebx
push eax
call fcn.00541d20
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov edi, SysReAllocString
mov esi, 0x400
lea ebx, [ebx]
test esi, esi
je 0x40123e
test edi, edi
je 0x401241
movzx edx, word [ecx]
test dx, dx
je 0x401241
mov word [eax], dx
add eax, 2
add ecx, 2
dec esi
dec edi
inc ebx
jmp 0x401220
sub eax, 2
mov esi, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
xor ebx, ebx
cmp dword [0x5ddd84], ebx
jne 0x401264
push 0x5b25b8
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ebx
call fcn.005406c6
cmp dword [ebp + 0x10], ebx
jne 0x40128d
push 0x5988ec
push 1
push esi
call fcn.00401410
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800
call fcn.00448ab7
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x401300
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push ecx
push 0x3ff
push edi
call fcn.0053d032
add esp, 0x10
cmp eax, ebx
jl 0x4012f5
cmp eax, 0x3ff
ja 0x4012f5
jne 0x4012cc
xor edx, edx
mov word [edi + 0x7fe], dx
push edi
push 1
push esi
call fcn.00401410
add esp, 0xc
push edi
call fcn.00448ac2
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [edi + 0x7fe], ax
jmp 0x4012d8
push str.____logging_Error__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401410
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562df0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor esi, esi
lea eax, [edx - 1]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
cmp eax, 6
ja case.default.0x40145c
movzx eax, byte [eax + 0x401564]
jmp dword [eax*4 + 0x40155c]
cmp dword [0x5ddd84], esi
je case.default.0x40145c
jmp 0x401476
cmp dword [0x5ddd84], 2
jne case.default.0x40145c
mov edi, 1
lea eax, [edx - 3]
cmp eax, 3
ja case.default.0x401483
jmp dword [eax*4 + 0x40156c]
mov eax, dword [0x5c337c]
and eax, 4
cmp al, 4
jmp 0x4014ac
mov eax, dword [0x5c337c]
and eax, 2
cmp al, 2
jmp 0x4014ac
mov eax, dword [0x5c337c]
and eax, 1
cmp al, 1
jne case.default.0x401483
mov ebx, 1
cmp edi, esi
jne 0x4014cc
cmp ebx, esi
jne 0x4014cc
push 0x5b25ec
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], esi
call fcn.005406c6
cmp ecx, esi
je 0x401525
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push edx
lea edx, [ebp - 0x14]
call fcn.00401770
mov esi, eax
test esi, esi
je 0x401520
test edi, edi
je 0x401509
cmp dword [0x5ddd8c], 0
je 0x401502
mov ecx, dword [ebp - 0x14]
push ecx
push esi
call fcn.00401da0
jmp 0x401509
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
je 0x401517
mov edx, dword [ebp + 0xc]
push esi
push edx
call fcn.00401c00
push esi
call fcn.00448ac2
add esp, 4
mov edx, dword [ebp + 0xc]
xor esi, esi
cmp edx, 2
jne 0x401530
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401463
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562df0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor esi, esi
lea eax, [edx - 1]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
cmp eax, 6
ja case.default.0x40145c
movzx eax, byte [eax + 0x401564]
jmp dword [eax*4 + 0x40155c]
cmp dword [0x5ddd84], esi
je case.default.0x40145c
jmp 0x401476
cmp dword [0x5ddd84], 2
jne case.default.0x40145c
mov edi, 1
lea eax, [edx - 3]
cmp eax, 3
ja case.default.0x401483
jmp dword [eax*4 + 0x40156c]
mov eax, dword [0x5c337c]
and eax, 4
cmp al, 4
jmp 0x4014ac
mov eax, dword [0x5c337c]
and eax, 2
cmp al, 2
jmp 0x4014ac
mov eax, dword [0x5c337c]
and eax, 1
cmp al, 1
jne case.default.0x401483
mov ebx, 1
cmp edi, esi
jne 0x4014cc
cmp ebx, esi
jne 0x4014cc
push 0x5b25ec
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], esi
call fcn.005406c6
cmp ecx, esi
je 0x401525
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push edx
lea edx, [ebp - 0x14]
call fcn.00401770
mov esi, eax
test esi, esi
je 0x401520
test edi, edi
je 0x401509
cmp dword [0x5ddd8c], 0
je 0x401502
mov ecx, dword [ebp - 0x14]
push ecx
push esi
call fcn.00401da0
jmp 0x401509
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
je 0x401517
mov edx, dword [ebp + 0xc]
push esi
push edx
call fcn.00401c00
push esi
call fcn.00448ac2
add esp, 4
mov edx, dword [ebp + 0xc]
xor esi, esi
cmp edx, 2
jne 0x401530
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40146d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562df0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor esi, esi
lea eax, [edx - 1]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
cmp eax, 6
ja case.default.0x40145c
movzx eax, byte [eax + 0x401564]
jmp dword [eax*4 + 0x40155c]
cmp dword [0x5ddd84], esi
je case.default.0x40145c
jmp 0x401476
cmp dword [0x5ddd84], 2
jne case.default.0x40145c
mov edi, 1
lea eax, [edx - 3]
cmp eax, 3
ja case.default.0x401483
jmp dword [eax*4 + 0x40156c]
mov eax, dword [0x5c337c]
and eax, 4
cmp al, 4
jmp 0x4014ac
mov eax, dword [0x5c337c]
and eax, 2
cmp al, 2
jmp 0x4014ac
mov eax, dword [0x5c337c]
and eax, 1
cmp al, 1
jne case.default.0x401483
mov ebx, 1
cmp edi, esi
jne 0x4014cc
cmp ebx, esi
jne 0x4014cc
push 0x5b25ec
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], esi
call fcn.005406c6
cmp ecx, esi
je 0x401525
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push edx
lea edx, [ebp - 0x14]
call fcn.00401770
mov esi, eax
test esi, esi
je 0x401520
test edi, edi
je 0x401509
cmp dword [0x5ddd8c], 0
je 0x401502
mov ecx, dword [ebp - 0x14]
push ecx
push esi
call fcn.00401da0
jmp 0x401509
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
je 0x401517
mov edx, dword [ebp + 0xc]
push esi
push edx
call fcn.00401c00
push esi
call fcn.00448ac2
add esp, 4
mov edx, dword [ebp + 0xc]
xor esi, esi
cmp edx, 2
jne 0x401530
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401580
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00541d20
add esp, 0xc
lea esi, [ebp - 0x20c]
call fcn.004016e0
mov ecx, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push 0
push str.LOG_LEVEL_DEBUG
push str.Debug_Info
call esi
mov edi, 1
mov dword [0x5ddd84], eax
cmp eax, edi
je 0x4015e0
cmp eax, 2
jne 0x40163a
lea edx, [ebp - 0x20c]
push edx
push 0
push str.LOG_USEFILE
push str.Debug_Info
call esi
test eax, eax
je 0x40163a
lea eax, [ebp - 0x20c]
push eax
push 0x1400000
push str.LOG_USEFILE_DIVSIZE
push str.Debug_Info
call esi
lea ecx, [ebp - 0x20c]
push ecx
push 0xa
push str.LOG_USEFILE_MAXCOUNT
push str.Debug_Info
mov dword [0x5ddd90], eax
call esi
mov dword [0x5ddd94], eax
test eax, eax
je 0x40163a
mov dword [0x5ddd8c], edi
lea edx, [ebp - 0x20c]
push edx
push 0
push str.LOG_LEVEL_EVENT
push str.Debug_Info
call esi
mov dword [0x5c337c], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.LOG_USEMINIDUMP
push str.Debug_Info
call esi
test eax, eax
je 0x4016c1
lea ecx, [ebp - 0x20c]
push ecx
push 0
push str.LOG_USEMINIDUMP_TYPE
push str.Debug_Info
call esi
lea edx, [ebp - 0x20c]
push edx
push 0xa
push str.LOG_USEMINIDUMP_MAXCOUNT
push str.Debug_Info
mov dword [0x5ddda0], eax
call esi
mov dword [0x5ddda4], eax
mov dword [0x5ddd88], edi
test eax, eax
je 0x4016c7
mov dword [0x5ddd9c], edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
mov dword [0x5ddd88], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053ca73
mov esp, ebp
pop ebp
ret

Function at 0x4016e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, 1
test esi, esi
jne 0x40170e
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.Uninst.ini
lea edx, [ebp - 0x20c]
push edx
push 0x594b70
push 0xffffffffffffffff
push 0x104
push esi
call fcn.0053caa0
add esp, 0x18
test eax, eax
js 0x4016fd
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x401c00
Capabilities:
Access the windows event log
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562a10
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
push str.BaseInstaller
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
lea ebx, [esi + 4]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x401c64
push 0x5b25ec
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x80004005
call fcn.005406c6
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x401caf
lea edx, [ebp - 0x18]
push edx
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401caf
push 0x5b25ec
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x80004005
call fcn.005406c6
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x14]
push ecx
push edx
push esi
push 1
push eax
call edi
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00448ab7
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x401cf0
push 0x5b25ec
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], 0x80004005
call fcn.005406c6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ecx
push esi
push 1
push edx
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x401d0e
jmp dword [eax*4 + 0x401d90]
mov ebx, 4
jmp case.default.0x401d0e
mov ebx, 2
jmp case.default.0x401d0e
mov ebx, 1
mov edi, dword [ebp - 0x20]
push 0
lea eax, [ebp + 0xc]
push eax
push 0
push 1
push ecx
push 0x99999999
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
jmp 0x401d53
test edi, edi
je 0x401d5e
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test esi, esi
je 0x401d6b
push esi
call fcn.00448ac2
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401d79
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4021a0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [0x594d2c]
mov ebx, ecx
xor eax, eax
mov ecx, 0x104
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov ecx, dword [str.Canon]
mov dword [ebp - 0x64], ecx
mov ecx, dword [0x594d30]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], ecx
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov ecx, 7
mov esi, str.BaseInstaller
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
push 8
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40225e
push 0x5b25ec
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x80004005
call fcn.005406c6
mov edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x70]
push ecx
push ebx
push edx
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x4022c0
push 0x5b25ec
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x80004005
call fcn.005406c6
mov dword [ebp - 0x6c], 0
mov eax, 0x402293
ret
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4022a1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor esi, esi
cmp esi, 2
jge 0x402293
lea ecx, [esi + esi*4]
lea edx, [ebp + ecx*8 - 0x64]
mov ecx, dword [ebp - 0x74]
push edx
push ebx
push str._s_s
call fcn.00401090
add esp, 0xc
push 0
push ebx
call edi
inc esi
jmp 0x4022c8

Function at 0x403aa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0xc]
cmp eax, 0x24a
ja 0x403ae9
je 0x403ae3
sub eax, 0x182
je 0x403ae3
sub eax, 0x64
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, 0x21d8
jne 0x403ae3
mov eax, 0x20000000
mov esp, ebp
pop ebp
ret
Function at 0x403b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5638b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
push str.CheckCoreEdition
push eax
call fcn.00401190
add esp, 0xc
mov dword [esp + 0x38], ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
mov dword [esp + 0x10], ebx
call eax
test eax, eax
je 0x403bdf
push str.Win2012_2016
lea ecx, [esp + 0x1c]
push 7
push ecx
call fcn.00401410
add esp, 0xc
push 0x20019
push str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004037f0
mov esi, dword [esp + 0x20]
test eax, eax
jne 0x403bcb
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push ebx
push str.ServerCoreExtended
push esi
call edi
cmp eax, 2
je 0x403bc3
push ebx
push ebx
push ebx
push ebx
push 0x595224
push esi
call edi
test eax, eax
jne 0x403bcb
mov dword [esp + 0x10], 1
cmp esi, ebx
je case.0x403c5e.15
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp case.0x403c5e.15
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
cmp eax, 1
jne case.0x403c5e.15
push str.Win2008
lea ecx, [esp + 0x1c]
push 7
push ecx
call fcn.00401410
add esp, 0xc
push str.kernel32.dll
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je case.0x403c5e.15
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je case.0x403c5e.15
movzx ecx, word [esi + 0x11e]
lea edx, [esp + 0x14]
push edx
movzx edx, word [esi + 0x11c]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
push ecx
push edx
call eax
test eax, eax
je case.0x403c5e.15
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
cmp eax, 0x1d
ja case.0x403c5e.15
movzx eax, byte [eax + 0x403cc8]
jmp dword [eax*4 + 0x403cc0]
push str.Core_Edtion___
lea ecx, [esp + 0x1c]
push 7
push ecx
call fcn.00401410
add esp, 0xc
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x10]
push esi
push str.return___d
lea edx, [esp + 0x20]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret