joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f5c7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
test eax, eax
mov esi, ecx
mov dword [esp + 8], ebx
jne 0x47d8b6
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, 1
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x10]
call fcn.005e0f55
test bl, 1
mov dword [esp + 0x28], 3
je 0x47d8dd
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 8], ebx
call fcn.005e0ee7
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0047a5b0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x38], 4
call fcn.0047a6d0
add esp, 0x10
mov ecx, dword [0x667c48]
mov dword [esp + 0x38], ecx
mov al, byte [esp + 0x34]
mov byte [esp + 0x28], 6
test al, al
je 0x47d92a
push 0x66be50
lea ecx, [esp + 0x3c]
call fcn.005e1070
jmp 0x47d940
mov edx, dword [esi + 0x50]
lea eax, [esp + 0x38]
push edx
push 0x66be48
push eax
call fcn.005de7af
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.005e1116
push 0x64ca28
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x34], 7
call fcn.005e117c
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push eax
push esi
mov byte [esp + 0x34], 8
call fcn.005e1116
or ebx, 2
mov dword [esp + 8], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 7
call fcn.005e0ee7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 6
call fcn.005e0ee7
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call fcn.005e0ee7
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.005e0ee7
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.005e0ee7
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.005e0ee7
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x481250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f60d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x687118
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x24], edi
call fcn.005e1070
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x28]
push eax
mov ecx, ebx
call fcn.005e1070
mov ecx, ebx
call fcn.005dea66
mov ecx, ebx
call fcn.005de96f
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
test eax, eax
jne 0x4812e2
mov dword [esi + 0x2c], eax
mov dword [esi + 8], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
push 0
push edi
mov dword [esi + 0x2c], 1
mov dword [ebp - 4], 0
call fcn.004793b0
mov ecx, dword [esi + 4]
call fcn.004795a0
mov ecx, dword [esi + 4]
push 0
mov dword [esi + 8], eax
call fcn.00479cd0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x483d00
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x68b7f0]
sub esp, 0x114
test eax, eax
jne 0x483e4d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
push 0x68b688
mov dword [0x68b7f0], 1
mov dword [0x68b688], 0x94
call esi
mov edx, dword [0x68b698]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x66bec8], eax
je 0x483e28
push ebx
push 0x68b720
mov dword [0x68b720], 0x9c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x68b7e4], eax
call edi
mov dword [0x68b7e8], eax
mov eax, dword [0x68b7e4]
test eax, eax
push 0x68b7c0
je 0x483da4
call eax
jmp 0x483daa
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x68b724]
cmp eax, 6
jae 0x483dc2
cmp eax, 5
jne 0x483dd6
cmp dword [0x68b728], 2
jb 0x483dd6
cmp word [0x68b7c0], 9
jne 0x483dd6
mov dword [0x68b67c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x483df4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x68b7ec], edx
jmp 0x483dfa
mov edx, dword [0x68b7ec]
test edx, edx
je 0x483e28
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x483e28
mov ecx, dword [esp + 0x14]
mov dword [0x68b694], ecx
push 0x68b690
push 0x68b68c
call fcn.004841f0
add esp, 8
call fcn.00483e60
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x4850a0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60c550
push 0x44e104
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x68b7f4]
xor ebx, ebx
cmp eax, ebx
jne 0x485200
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4851fb
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push 0x646284
lea edx, [ebp - 0x224]
push edx
call fcn.0044ce12
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call fcn.005e15b8
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x4851fb
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4851f2
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4851f2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x68b7f4], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x4851f2
push esi
call fcn.005e15e1
add esp, 4
mov eax, dword [0x68b7f4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x485d84
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x485d84
cmp dword [esp + 0x10], 3
jne 0x485d84
mov edx, dword [esp + 0x18]
push edx
call fcn.005e15b8
mov edi, eax
add esp, 4
test edi, edi
je 0x485d84
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x485d7b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.005e15e1
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x485d90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5f652f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x667c48]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x485dfb
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x485dfd
mov esi, edi
test esi, esi
je 0x485ec7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x485ebc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x485e3f
cmp eax, 2
je 0x485e3f
cmp eax, 6
je 0x485e3f
cmp eax, 7
jne 0x485ebc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.005e15b8
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x485ea2
lea ecx, [esp + 0x14]
call fcn.005e1070
cmp esi, dword [esp + 0x14]
je 0x485e97
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.005e15e1
add esp, 4
jmp 0x485ed9
call fcn.005e15e1
add esp, 4
lea ecx, [esp + 0x10]
push 0x687118
call fcn.005e1070
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x485ec7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x485ed9
push eax
lea ecx, [esp + 0x14]
call fcn.005e1070
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.005e0c5c
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.005e0ee7
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x486020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x486057
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x48605a
mov esi, dword [ebp + 8]
test esi, esi
je 0x48620b
call fcn.004843f0
test eax, eax
je 0x486144
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x48607b
mov dword [ebp + 0x10], eax
jmp 0x4860ae
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.0044d670
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4861ff
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4860e8
cmp eax, 2
je 0x4860e8
cmp eax, 6
je 0x4860e8
cmp eax, 7
jne 0x4861ff
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.005e15b8
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x4861ea
mov ecx, dword [ebp + 0x18]
call fcn.00467530
cmp esi, dword [ebp + 8]
je 0x4861d4
jmp 0x4861cd
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4861ff
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x48617e
cmp eax, 2
je 0x48617e
cmp eax, 6
je 0x48617e
cmp eax, 7
jne 0x4861ff
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.005e15b8
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x4861ea
mov ecx, dword [ebp + 0x18]
call fcn.00467600
cmp esi, dword [ebp + 8]
je 0x4861d4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.005e15e1
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.005e15e1
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x687118
call fcn.00467600
cmp esi, dword [ebp + 8]
je 0x48620b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x487a20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x487b98
mov eax, dword [esp + 0x10]
test eax, eax
je 0x487b77
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x487a76
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.005e15b8
mov esi, eax
add esp, 4
test esi, esi
je 0x487b98
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x487b8f
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x487b8f
mov edi, dword [esp + 0x20]
test edi, edi
je 0x487b8f
push ebp
push edi
call fcn.00487a20
add esp, 8
test eax, eax
je 0x487b84
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x68b7fc]
test eax, eax
je 0x487b21
test ebp, ebp
je 0x487b21
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x487b8f
jmp 0x487b2d
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x487b8f
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x487b6e
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x487b8f
mov eax, dword [esp + 0x14]
jmp 0x487aca
push esi
call fcn.005e15e1
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x487b8f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.005e15e1
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x487bb0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x487c19
mov eax, dword [esp + 0xc]
test eax, eax
je 0x487bd9
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x487c19
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.00487a20
add esp, 8
test eax, eax
je 0x487c19
mov eax, dword [0x68b7fc]
test eax, eax
je 0x487c06
test edi, edi
je 0x487c06
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x489fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ax, word [esp + 4]
pop edi
add esp, 0x208
ret

Function at 0x48a000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x48a0d3
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call fcn.0044d930
add esp, 8
test eax, eax
je 0x48a04c
mov byte [eax], 0
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x48a0cc
mov esi, dword [esp + 0x118]
test esi, esi
je 0x48a0cc
lea edx, [esp + 0xc]
test edx, edx
je 0x48a0cc
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x48a095
push eax
lea eax, [esp + 0x10]
push eax
push 0x646284
push esi
push ebx
call fcn.0044dbc8
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x48a0db
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x48a0c8
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x48a0db
mov esi, 0x57
jmp 0x48a0db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x68b870], esi
je 0x48a0ec
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x104
ret
Function at 0x48a2f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5f67f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [0x667c48]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x104
push ecx
mov dword [esp + 0x22c], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x48a419
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.0044d930
add esp, 8
cmp eax, ebx
je 0x48a383
mov byte [eax], bl
lea eax, [esp + 0x118]
test eax, eax
je 0x48a412
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x48a412
mov eax, dword [esp + 0x230]
mov edx, 0x7a
cmp eax, ebx
je 0x48a3d0
lea edx, [esp + 0x14]
push eax
push edx
push 0x646284
lea eax, [esp + 0x124]
push 0x104
push eax
call fcn.0044dbc8
add esp, 0x14
xor edx, edx
mov eax, edx
jmp 0x48a41f
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x48a40e
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jmp 0x48a41f
mov eax, 0x57
jmp 0x48a41f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x68b870], eax
je 0x48a431
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x48a442
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x10]
call fcn.005e1070
mov esi, dword [esp + 0x22c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.005e0c5c
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x224], bl
call fcn.005e0ee7
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x48a540
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x48a5fd
mov ebx, dword [esp + 0x114]
test ebx, ebx
je 0x48a5f6
mov esi, dword [esp + 0x118]
test esi, esi
je 0x48a5f6
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x48a5f6
mov eax, dword [esp + 0x11c]
mov edx, 0x7a
test eax, eax
je 0x48a5bf
lea edx, [esp + 0xc]
push eax
push edx
push 0x646284
push esi
push ebx
call fcn.0044dbc8
add esp, 0x14
xor edx, edx
mov esi, edx
jmp 0x48a605
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jbe 0x48a5f2
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, edx
jmp 0x48a605
mov esi, 0x57
jmp 0x48a605
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x68b870], esi
je 0x48a616
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x104
ret
Function at 0x48edd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x30c
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x66cbd8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x48ef1f
cmp eax, 0x104
jae 0x48ef1f
push ebp
lea ecx, [esp + 8]
push esi
push ecx
call fcn.00489250
add esp, 4
test eax, eax
je 0x48ee92
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x110]
push 0x208
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00488e40
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x208
jge 0x48ee92
lea ecx, [esp + 0x110]
push esi
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.0044d830
add esp, 0xc
mov byte [esp + esi + 0xc], 0
mov ebp, dword [esp + 0x31c]
test ebp, ebp
je 0x48ef10
mov edx, dword [esp + 0x320]
test edx, edx
je 0x48ef10
lea eax, [esp + 0xc]
test eax, eax
je 0x48ef10
mov eax, dword [esp + 0x324]
test eax, eax
je 0x48eedf
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x646284
push edx
push ebp
call fcn.0044dbc8
add esp, 0x14
mov eax, 1
pop esi
pop ebp
pop edi
add esp, 0x30c
ret
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jbe 0x48ef10
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0x30c
ret
xor eax, eax
pop edi
add esp, 0x30c
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x490421
push 0x57
mov dword [0x68b870], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
test eax, eax
jne 0x490452
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x490452
test al, 0x10
jne 0x490452
test al, 1
je 0x49041c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret