joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4771a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c591f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f5038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00403400
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00403400
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00403400
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00403400
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00403400
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00403400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x478570
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5aef
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4f5038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00403630
push eax
call fcn.00403cd0
add esp, 4
mov ecx, edi
push eax
call fcn.00403ce0
mov byte [ebp + 8], 0
push dword [ebp + 8]
push ebx
call fcn.00403cd0
add esp, 4
mov ecx, edi
push eax
call fcn.00403980
mov dword [ebp - 4], 0
lea esi, [ebx + 0x18]
mov ecx, esi
call fcn.00403630
push eax
call fcn.00403cd0
add esp, 4
lea ecx, [edi + 0x18]
push eax
call fcn.00403ce0
mov byte [ebp + 8], 0
push dword [ebp + 8]
push esi
call fcn.00403cd0
add esp, 4
lea ecx, [edi + 0x18]
push eax
call fcn.00403980
mov byte [ebp - 4], 1
lea esi, [ebx + 0x30]
mov ecx, esi
call fcn.00403630
push eax
call fcn.00403cd0
add esp, 4
lea ecx, [edi + 0x30]
push eax
call fcn.00403ce0
mov byte [ebp + 8], 0
push dword [ebp + 8]
push esi
call fcn.00403cd0
add esp, 4
lea ecx, [edi + 0x30]
push eax
call fcn.00403980
mov byte [ebp - 4], 2
lea esi, [ebx + 0x48]
mov ecx, esi
call fcn.00403630
push eax
call fcn.00403cd0
add esp, 4
lea ecx, [edi + 0x48]
push eax
call fcn.00403ce0
mov byte [ebp + 8], 0
push dword [ebp + 8]
push esi
call fcn.00403cd0
add esp, 4
lea ecx, [edi + 0x48]
push eax
call fcn.00403980
mov byte [ebp - 4], 3
mov ecx, edi
mov al, byte [ebx + 0x60]
lea esi, [ebx + 0x64]
mov byte [ecx + 0x60], al
lea edi, [ecx + 0x64]
mov ecx, esi
call fcn.00403630
push eax
call fcn.00403cd0
add esp, 4
mov ecx, edi
push eax
call fcn.00403ce0
mov byte [ebp + 8], 0
push dword [ebp + 8]
push esi
call fcn.00403cd0
add esp, 4
mov ecx, edi
push eax
call fcn.00403980
mov byte [ebp - 4], 4
lea esi, [ebx + 0x7c]
mov ebx, dword [ebp - 0x10]
mov ecx, esi
call fcn.00403630
push eax
call fcn.00403cd0
add esp, 4
lea ecx, [ebx + 0x7c]
push eax
call fcn.00403ce0
mov byte [ebp + 8], 0
push dword [ebp + 8]
push esi
call fcn.00403cd0
add esp, 4
lea ecx, [ebx + 0x7c]
push eax
call fcn.00403980
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x479f80
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c585f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4f5038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00403500
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00403500
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00403500
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00403500
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00403500
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00403500
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x47b410
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c611f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f5038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004034e0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004034e0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004034e0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004034e0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004034e0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.004034e0
mov byte [ebp - 4], 5
mov byte [esi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47bbc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x47bc42
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x47bc42
test ecx, ecx
je 0x47bc3e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x47bc00
xor eax, eax
jmp 0x47bc47
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x47bc51
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049423f
add esp, 0xc
ret 0xc

Function at 0x47c6d0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
je 0x47c743
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47c71e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47c743
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, edi
pop edi
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049423f
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0049423f
add esp, 8
ret 4
Function at 0x47cb00
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x47cb73
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47cb4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47cb73
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, edi
pop edi
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049423f
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0049423f
add esp, 8
ret 4
Function at 0x480cb0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5168
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x80
push dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x14]
push esi
push edi
call fcn.0040f690
mov bl, al
test bl, bl
jne 0x480ddb
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, 0x50000000
je 0x480d8e
call eax
cmp eax, 5
jne 0x480d89
push 0x80
mov ecx, edi
call fcn.00403360
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
jne 0x480d6e
lea ecx, [ebp - 0x28]
call fcn.004034e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0040fd60
test al, al
je 0x480d5f
push 0x80
lea ecx, [ebp - 0x28]
call fcn.00403360
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403400
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call fcn.0040f690
mov bl, al
test bl, bl
jne 0x480ddb
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x21
je 0x480d9a
cmp eax, 0x20
jne 0x480ddb
xor esi, esi
nop dword [eax]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0040f690
mov bl, al
test bl, bl
jne 0x480ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x480dd5
cmp eax, 0x20
jne 0x480ddb
inc esi
cmp esi, 0x28
jb 0x480da0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049423f
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4896b0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x489715
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4896f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x489715
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049423f
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0049423f
add esp, 8
ret 4
Function at 0x489850
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7c28
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x489899
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4899eb
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4899b6
test eax, eax
je 0x4899b6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4899b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x48993b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48992f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48993b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x489949
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00403500
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4899b6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4898f4
jmp 0x4899b9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4899e2
test edx, edx
je 0x4899de
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4898b0
mov al, 1
jmp 0x4899ed
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4899eb
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049423f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x489da0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.00496a10
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x489e1e
cmp dword [esp + 0x14], 6
jb 0x489e1e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.00489c10
add esp, 0xc
test al, al
je 0x489e1e
cmp word [esi], 0
jne 0x489e76
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.00489c10
add esp, 0xc
test al, al
je 0x489e4a
cmp word [esi], 0
jne 0x489e76
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.00489c10
add esp, 0xc
test al, al
je 0x489e8b
cmp word [esi], 0
je 0x489e8b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0049423f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.0049423f
mov esp, ebp
pop ebp
ret
Function at 0x48a460
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.004b26d0
push 0xffffffffffffffff
push 0x4c7ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp + 0x630]
push ebx
push eax
call fcn.00496a10
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x48a661
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x48a661
push esi
call edi
cmp eax, 0xffa
jge 0x48a661
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4dc618
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4daff0
lea ecx, [ebp - 0x2c]
call fcn.004034a0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040a840
mov ecx, eax
call fcn.0040a900
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403400
test esi, esi
je 0x48a661
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x48a661
lea ecx, [ebp]
call fcn.00489ea0
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x48a586
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x48a594
inc edi
add esi, 0x210
cmp edi, 3
jl 0x48a565
jmp 0x48a5b6
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x48a5ae
add ebx, 0x10
test ebx, ebx
jne 0x48a65d
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x48a658
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call fcn.00496a10
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48a64e
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x48a658
inc esi
cmp esi, 2
jb 0x48a5f0
mov eax, ebx
jmp 0x48a663
mov ebx, 0x10
mov eax, ebx
jmp 0x48a663
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.0049423f
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x48e020
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.00496a10
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x48e0b7
cmp dword [esp + 8], 6
jb 0x48e0b7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.0049423f
add esp, 0x118
ret

Function at 0x48e0d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c82b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4f5038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.004034a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0040a840
mov ecx, eax
call fcn.0040a900
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403400
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.004034a0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.0040a840
mov ecx, eax
call fcn.0040a900
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403400
test ebx, ebx
je 0x48e1e5
test esi, esi
je 0x48e1e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
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 0x490dd0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8781
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], 0
cmp dword [esi + 0x10], 0
je 0x490ef5
push esi
call fcn.00405a40
add esp, 4
test al, al
je 0x490ef5
push esi
lea ecx, [ebp - 0x40]
call fcn.00403500
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.00408990
add esp, 8
mov byte [ebp - 4], 1
xor eax, eax
push 8
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push 0x4ca318
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004036d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 1
call fcn.00403910
mov eax, 1
mov dword [ebp - 0x44], eax
and eax, 0xfffffffe
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403400
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.00408990
lea eax, [ebp - 0x40]
push eax
call fcn.00405a40
add esp, 0xc
test al, al
je 0x490ee6
lea eax, [ebp - 0x40]
push eax
call fcn.00405b30
add esp, 4
test al, al
je 0x490ee6
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049423f
mov esp, ebp
pop ebp
ret 4

Function at 0x491e50
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0
je 0x491e95
push esi
call fcn.00405a40
add esp, 4
test al, al
je 0x491e95
push esi
call fcn.0040b8d0
push esi
call fcn.00405a40
add esp, 8
test al, al
je 0x491e95
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 8
jb 0x491e8e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
ret 4
Function at 0x492730
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call fcn.00496a10
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4927a2
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4927ba
mov eax, dword [esp + 4]
test eax, eax
je 0x4927a2
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0049423f
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4927c2
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004036d0
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x4927ee
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.0049423f
add esp, 0x418
ret