joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416e70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x810
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
push 0x808
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.004579a0
add esp, 0xc
test esi, esi
je 0x416eb4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416ea5
sub eax, edx
mov edi, eax
jmp 0x416eb9
mov edi, 0xffff
test esi, esi
mov word [esp + 0xc], di
je 0x416eee
lea eax, [esp + 0xe]
mov ecx, eax
mov edx, 0x805
sub esi, ecx
nop
mov cl, byte [esi + eax]
test cl, cl
je 0x416ee3
mov byte [eax], cl
sub edx, 1
add eax, 1
test edx, edx
jg 0x416ed0
mov byte [eax], 0
lea eax, [edi + 5]
and eax, 0xfffffffc
jmp 0x416ef3
mov eax, 4
cmp eax, 0xffffffff
mov esi, eax
jne 0x416f0e
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416f01
sub eax, edx
mov esi, eax
push 0
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416f40
cmp dword [esp + 8], esi
jne 0x416f38
mov al, 1
jmp 0x416f42
push 0x1d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [esp + 0x814]
pop edi
pop esi
xor ecx, esp
movzx eax, al
call fcn.00454016
add esp, 0x810
ret

Function at 0x416f60
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416f66
sub eax, edx
push esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x416f8d
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416f80
sub eax, edx
mov esi, eax
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push esi
push edi
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416fc0
cmp dword [esp + 4], esi
jne 0x416fb8
mov al, 1
pop esi
pop ecx
ret
push 0x1d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
pop ecx
ret
Function at 0x417120
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x20
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push 0x1c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp byte [esp + 0x34], 0
mov ecx, dword [esp + 0x20]
jne case.0x417170.16
lea eax, [ecx - 1]
cmp eax, 0x3f
ja case.0x417170.3
movzx edx, byte [eax + 0x417220]
jmp dword [edx*4 + 0x417214]
xor eax, eax
cmp byte [0x48d50d], al
setne al
lea eax, [eax*4 + 4]
jmp 0x41719a
mov al, byte [0x48d50d]
neg al
sbb eax, eax
and eax, 0x40
add eax, 0x40
cmp eax, ecx
je case.0x417170.3
lea ecx, [esp + 8]
push ecx
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push ebp
push edx
push esi
push edi
call ebx
test eax, eax
jne 0x4171fa
mov cl, byte [0x48d50d]
neg cl
lea eax, [esp + 8]
push eax
sbb ecx, ecx
and ecx, 0x40
add ecx, 0x40
push ecx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edx, dword [esp + 0x2c]
push 0
push ebp
push edx
push esi
push edi
call ebx
test eax, eax
jne 0x4171fa
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret
cmp byte [esp + 0x34], 0
je 0x41720a
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop ebp
mov al, 1
pop ebx
add esp, 0x20
ret

Function at 0x417530
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push esi
mov esi, eax
test esi, esi
je 0x4175aa
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4175aa
cmp dword [esp + 4], 0
je 0x4175aa
lea ecx, [esp + 8]
push ecx
push 5
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4175aa
mov eax, dword [esp + 8]
test eax, eax
je 0x4175aa
push esi
push eax
mov byte [esi], 0
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x41758c
xor esi, esi
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov al, byte [esi]
neg al
sbb eax, eax
and eax, esi
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x4176e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
test esi, esi
je 0x417739
cmp byte [esi], 0
je 0x417739
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.004579a0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0xc
mov dword [esp + 0x10], str.properties
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor edx, edx
cmp eax, 0x20
setg dl
mov al, dl
add esp, 0x3c
ret
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
add esp, 0x3c
ret
Function at 0x417750
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, 0x1004
call fcn.00459b10
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x1000], eax
call fcn.00442f33
mov eax, dword [eax + 8]
push 0x800
lea ecx, [esp + 0x804]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4178b5
push esi
push 0x800
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x80c]
push eax
mov byte [esp + 0x100f], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x4177db
lea eax, [esp + 4]
lea esi, [esp + 0x804]
mov ecx, eax
mov edx, 0x7ff
sub esi, ecx
mov cl, byte [esi + eax]
test cl, cl
je 0x4177d8
mov byte [eax], cl
sub edx, 1
add eax, 1
test edx, edx
jg 0x4177c5
mov byte [eax], 0
mov esi, str.__dde
lea eax, [esp + 4]
mov ecx, 0x7ff
lea esp, [esp]
cmp byte [eax], 0
je 0x417801
sub ecx, 1
add eax, 1
test ecx, ecx
jg 0x4177f0
jmp 0x41781a
test ecx, ecx
jle 0x41781a
mov dl, byte [esi]
test dl, dl
je 0x41781a
mov byte [eax], dl
sub ecx, 1
add eax, 1
add esi, 1
test ecx, ecx
jg 0x417805
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 7
push str.dwpfile
push 1
push str..dwp
push SysReAllocStringLen
mov byte [eax], 0
call esi
push 0x22
push str.Dependency_Walker_Search_Path_File
push 1
push str.dwpfile
push SysReAllocStringLen
call esi
push 7
push str.dwifile
push 1
push 0x478204
push SysReAllocStringLen
call esi
push 0x1c
push str.Dependency_Walker_Image_File
push 1
push str.dwifile
push SysReAllocStringLen
call esi
lea eax, [esp + 4]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x417880
sub eax, ecx
push eax
lea edx, [esp + 8]
push edx
push 1
push str.dwifile_shellopencommand
push SysReAllocStringLen
call esi
push 0xc
push str._open___1___
push 1
push str.dwifile_shellopenddeexec
push SysReAllocStringLen
call esi
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00454016
add esp, 0x1004
ret
Function at 0x4178d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x100c
call fcn.00459b10
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push ebp
push esi
push 1
push 0x47661c
mov ecx, edi
xor ebx, ebx
xor esi, esi
call fcn.0040a0a0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x800
lea eax, [esp + 0x18]
push eax
push ebx
push SysReAllocStringLen
call ebp
cmp eax, 0x103
je 0x417a17
add esi, 1
cmp eax, ebx
mov byte [esp + 0x813], bl
mov byte [esp + 0x814], bl
jne 0x4179fa
cmp byte [esp + 0x14], 0x2e
jne 0x4179fa
cmp byte [esp + 0x15], bl
je 0x4179fa
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x818]
push edx
lea eax, [esp + 0x1c]
push eax
push SysReAllocStringLen
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4179fa
cmp byte [esp + 0x814], bl
je 0x4179fa
cmp dword [esp + 0xc], 0x7e7
jge 0x4179fa
mov ecx, 0x800
mov eax, str._shellView_Dependencies
lea edx, [esp + 0x814]
mov byte [esp + 0x1013], bl
call fcn.00416b70
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
lea edx, [esp + 0x820]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4179fa
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x15]
push ecx
call fcn.004544cb
add esp, 4
lea edx, [esp + 0x15]
push edx
mov ecx, edi
call fcn.00409900
push 0x47661c
mov ecx, edi
call fcn.00409900
push 0x800
lea eax, [esp + 0x18]
push eax
push esi
push SysReAllocStringLen
call ebp
cmp eax, 0x103
jne 0x417920
mov ecx, dword [esp + 0x1014]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454016
add esp, 0x100c
ret

Function at 0x417a30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x417a7e
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00454016
add esp, 0x108
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x417a90
mov edx, dword [esp + 0xc]
push 0x100
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
call esi
test eax, eax
jne 0x417abd
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00417a30
add esp, 8
test eax, eax
jne 0x417a90
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x110]
pop esi
neg eax
pop edi
sbb eax, eax
pop ebx
xor ecx, esp
add eax, 1
call fcn.00454016
add esp, 0x108
ret
Function at 0x4181c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x484200
push 0x457800
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x488e40]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x19], bl
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], ebx
push ebx
push 0x8000080
push 3
push ebx
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41823a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x41827d
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x418250
cmp dword [edi], ebx
je 0x418279
push ebx
push ebx
push ebx
push 2
push ebx
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x41822f
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x41822f
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.004182a3
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b9c0
Capabilities:
Write clipboard data

Disassembly:
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x41ba16
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41b9d0
push esi
sub eax, edx
push edi
lea esi, [eax + 1]
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41ba04
push ebx
push esi
push eax
call fcn.004560b7
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
Function at 0x422450
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, eax
mov eax, dword [0x48d6d4]
test eax, eax
jne 0x422477
push str.OLE32.DLL
call ebx
test eax, eax
mov dword [0x48d6d4], eax
je 0x42257c
cmp dword [0x48d6d8], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x4224a1
push str.CoInitialize
push eax
call edi
test eax, eax
mov dword [0x48d6d8], eax
je 0x42257b
mov eax, dword [0x48d6d4]
cmp dword [0x48d6dc], 0
jne 0x4224c4
push str.CoUninitialize
push eax
call edi
test eax, eax
mov dword [0x48d6dc], eax
je 0x42257b
mov eax, dword [0x48d6d4]
cmp dword [0x48d6e0], 0
jne 0x4224e2
push str.CoCreateInstance
push eax
call edi
test eax, eax
mov dword [0x48d6e0], eax
je 0x42257b
cmp byte [esi + 0xd], 0
jne 0x4224f8
push 0
call dword [0x48d6d8]
test eax, eax
jl 0x4224f8
mov byte [esi + 0xd], 1
add esi, 0x14
cmp dword [esi], 0
jne 0x422543
push esi
push 0x47bbb0
push 4
push 0
push 0x47bbd0
call dword [0x48d6e0]
test eax, eax
jge 0x42253e
push esi
push 0x47bbb0
push 4
push 0
push 0x47bbc0
mov dword [esi], 0
call dword [0x48d6e0]
test eax, eax
jge 0x42253e
mov dword [esi], 0
cmp dword [esi], 0
je 0x42257b
cmp dword [0x48d6e4], 0
jne 0x42257b
push str.OLEAUT32.DLL
call ebx
test eax, eax
mov dword [0x48d6e4], eax
je 0x42257b
push str.SysAllocStringLen
push eax
call edi
mov dword [0x48d6e8], eax
mov eax, dword [0x48d6e4]
push str.SysFreeString
push eax
call edi
mov dword [0x48d6ec], eax
pop edi
pop esi
pop ebx
ret
Function at 0x423d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46be78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push edi
mov eax, dword [0x488e40]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.00442f33
mov ecx, dword [eax + 4]
call fcn.0043d56f
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x1c]
push eax
push 0
push 0x434
push ecx
call edi
cmp byte [esi + 0x6e], 0
mov eax, dword [esp + 0x1c]
je 0x423d9b
mov dword [esi + 0x70], eax
mov byte [esi + 0x6e], 0
cmp eax, dword [esp + 0x20]
mov edx, dword [esi + 0x68]
mov dword [esp + 0x24], edx
je 0x423dd2
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
add eax, 1
push 0
mov dword [esp + 0x1c], eax
push 0x44b
lea eax, [esp + 0x18]
push edx
mov dword [esp + 0x28], eax
call edi
add dword [esp + 0x1c], 1
cmp dword [esi + 0x70], 0
push 0
push 0
push 0xe
jl 0x423dea
mov eax, dword [esi + 0x20]
push eax
call edi
mov dword [esp + 0x20], eax
jmp 0x423df9
mov ecx, dword [esi + 0x20]
push ecx
call edi
mov edx, dword [esi + 0x70]
add edx, eax
mov dword [esp + 0x20], edx
mov al, byte [esi + 0x6c]
mov cl, byte [esi + 0x6d]
neg al
lea edx, [esp + 0x1c]
push edx
sbb eax, eax
and eax, 4
neg cl
sbb ecx, ecx
and ecx, 2
or eax, ecx
mov ebp, eax
mov eax, dword [esi + 0x20]
push ebp
push 0x44f
push eax
call edi
cmp eax, 0xffffffff
je 0x423e61
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x437
push edx
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00413a40
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x30
ret
mov eax, dword [esi + 0x70]
test eax, eax
jle 0x423eab
push 0
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x20]
push 0xe
push eax
mov dword [esp + 0x2c], 0
call edi
mov edx, dword [esi + 0x20]
sub dword [esi + 0x70], eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 0x44f
push edx
call edi
cmp eax, 0xffffffff
je 0x423eab
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x28]
push eax
push 0
push 0x437
push ecx
jmp 0x423e37
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00413a40
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x30
ret
Function at 0x425110
Capabilities:
Get common file path

Disassembly:
sub esp, 0x81c
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x818], eax
mov eax, dword [esp + 0x820]
cmp eax, 9
push esi
jge case.0x425143.1
cmp eax, 8
mov byte [esp + 8], 0
ja case.0x425143.1
jmp dword [eax*4 + 0x4252b4]
test edx, edx
je case.0x425143.1
push edx
xor eax, eax
call fcn.00424e50
add esp, 4
jmp 0x425295
call fcn.00425820
test eax, eax
mov dword [edi + 8], eax
jne case.0x425143.1
call fcn.00425620
jmp 0x425295
test ecx, ecx
je case.0x425143.1
lea eax, [esp + 8]
mov esi, ecx
mov ecx, eax
mov edx, 0x80f
sub esi, ecx
mov cl, byte [esi + eax]
test cl, cl
je 0x4251a6
mov byte [eax], cl
sub edx, 1
add eax, 1
test edx, edx
jg 0x425193
lea edx, [esp + 8]
push 0x5c
push edx
mov byte [eax], 0
call fcn.00455c50
add esp, 8
test eax, eax
je case.0x425143.1
mov byte [eax + 1], 0
lea eax, [esp + 8]
push eax
xor eax, eax
call fcn.00424e50
add esp, 4
jmp 0x425295
push 0x810
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jle case.0x425143.1
cmp eax, 0x810
ja case.0x425143.1
lea edx, [esp + 8]
push edx
xor eax, eax
call fcn.00424e50
add esp, 4
jmp 0x425295
push 0x809
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle case.0x425143.1
cmp eax, 0x809
ja case.0x425143.1
push 0x810
lea eax, [esp + 0xc]
call fcn.00416c20
mov edx, eax
add esp, 4
mov ecx, 0x810
mov eax, str.system
call fcn.00416b70
lea ecx, [esp + 8]
push ecx
xor eax, eax
call fcn.00424e50
add esp, 4
jmp 0x425295
push 0x810
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle case.0x425143.1
cmp eax, 0x810
ja case.0x425143.1
lea eax, [esp + 8]
push eax
xor eax, eax
call fcn.00424e50
add esp, 4
jmp 0x425295
call fcn.00425360
jmp 0x425295
call fcn.004252e0
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x81c]
pop esi
xor ecx, esp
mov eax, edi
call fcn.00454016
add esp, 0x81c
ret 4

Function at 0x4252e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push 0
push 0
push 0x47630c
call ebp
mov edi, eax
test edi, edi
jne 0x4252fc
pop edi
pop ebp
ret
push ebx
push esi
push edi
call fcn.0045616b
add esp, 4
test eax, eax
je 0x42530f
mov esi, eax
jmp 0x425322
push 0
push 0
push 1
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
push edi
push esi
push 0x47630c
mov byte [esi], 0
xor ebx, ebx
call ebp
test eax, eax
je 0x425341
cmp byte [esi], bl
je 0x425341
mov ecx, esi
call fcn.00425510
mov ebx, eax
push esi
call fcn.00454dd4
add esp, 4
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret
Function at 0x425360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x158]
sub esp, 0x158
push 0xfffffffffffffffe
push 0x4847e8
push 0x457800
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x488e40]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x154], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp esi, ebx
je 0x4254e7
cmp byte [esi], bl
je 0x4254e7
lea eax, [ebp]
mov edx, 0x153
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
mov ecx, eax
sub edi, ecx
lea esp, [esp]
mov cl, byte [edi + eax]
cmp cl, bl
je 0x4253e3
mov byte [eax], cl
add eax, 1
sub edx, 1
cmp edx, ebx
jg 0x4253d0
mov byte [eax], bl
push 0x5c
push esi
call fcn.00455c50
add esp, 8
cmp eax, ebx
je 0x4253f7
lea esi, [eax + 1]
lea ecx, [ebp]
mov eax, 0x153
nop
cmp byte [ecx], bl
je 0x42540e
add ecx, 1
sub eax, 1
cmp eax, ebx
jg 0x425400
cmp eax, ebx
jle 0x425427
mov dl, byte [esi]
cmp dl, bl
je 0x425427
mov byte [ecx], dl
add ecx, 1
add esi, 1
sub eax, 1
cmp eax, ebx
jg 0x425412
mov byte [ecx], bl
mov dword [ebp - 0x1c], ebx
lea edx, [ebp - 0x1c]
push edx
push 1
push ebx
lea eax, [ebp]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4254e7
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4254e7
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
push 0x47630c
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
jne 0x4254dd
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4254dd
mov dword [ebp - 4], ebx
call fcn.00416a70
mov esi, eax
mov dword [ebp - 0x2c], esi
mov byte [esi], bl
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push ebx
push 0x47630c
mov ecx, dword [ebp - 0x1c]
push ecx
call edi
test eax, eax
jne 0x4254b9
cmp dword [ebp - 0x24], ebx
je 0x4254b9
mov edx, dword [ebp - 0x20]
mov byte [esi + edx - 1], bl
mov ecx, esi
call fcn.00425510
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.004254ca
mov eax, dword [ebp - 0x28]
jmp 0x4254e9
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x154]
xor ecx, ebp
call fcn.00454016
add ebp, 0x158
mov esp, ebp
pop ebp
ret
Function at 0x425510
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x808
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x804], eax
push ebp
push edi
mov edi, ecx
xor eax, eax
xor ebp, ebp
test edi, edi
mov dword [esp + 8], eax
je 0x4255fa
push ebx
push esi
lea ebx, [ebx]
push 0x3b
push edi
call fcn.00454540
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x425557
mov byte [ebx], 0
add ebx, 1
movsx eax, byte [edi]
push eax
call fcn.00454c57
add esp, 4
test eax, eax
jne 0x42556c
cmp byte [edi], 0x22
jne 0x425571
add edi, 1
jmp 0x425557
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x425576
sub eax, edx
lea esi, [eax + edi - 1]
cmp esi, edi
jb 0x4255af
lea esp, [esp]
movsx ecx, byte [esi]
push ecx
call fcn.00454c57
add esp, 4
test eax, eax
jne 0x4255a5
cmp byte [esi], 0x22
jne 0x4255af
mov byte [esi], 0
sub esi, 1
cmp esi, edi
jae 0x425590
cmp byte [edi], 0
je 0x4255ea
push 0x800
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4255d0
lea eax, [esp + 0x14]
push eax
jmp 0x4255d1
push edi
xor eax, eax
call fcn.00424e50
add esp, 4
test ebp, ebp
je 0x4255e4
mov dword [ebp], eax
jmp 0x4255e8
mov dword [esp + 0x10], eax
mov ebp, eax
test ebx, ebx
mov edi, ebx
jne 0x425540
mov eax, dword [esp + 0x10]
pop esi
pop ebx
mov ecx, dword [esp + 0x80c]
pop edi
pop ebp
xor ecx, esp
call fcn.00454016
add esp, 0x808
ret