joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4754b0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x4c5b52
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4754f4
call fcn.00475640
cmp byte [0x4f7484], 0
jne 0x475507
mov eax, 0x80000001
jmp 0x47561c
mov eax, dword [esi]
test eax, eax
jne 0x475572
push 8
call fcn.00494810
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.00494810
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.00496fd0
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x475561
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x47560b
call fcn.0040cf40
test al, al
jne 0x4755ac
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.0040d0d0
test al, al
je 0x47560b
mov ecx, dword [esi]
add ecx, 4
call fcn.0040ca60
call fcn.0040cf40
test al, al
je 0x47560b
push str.Advapi32.dll
lea ecx, [ebp - 0x28]
call fcn.004034a0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.0040a840
mov ecx, eax
call fcn.0040a900
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403400
test edi, edi
je 0x47560b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47560b
push dword [esi]
push dword [ebp + 0x128]
call eax
test eax, eax
je 0x47560b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x47561a
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004947ff
lea esp, [ebp + 0x120]
pop ebp
ret 4
Function at 0x477770
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c601f
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 0x478b40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c61ef
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 0x47a550
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5f5f
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 0x47b9e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c681f
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 0x47c190
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 0x47c212
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 0x47c212
test ecx, ecx
je 0x47c20e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x47c1d0
xor eax, eax
jmp 0x47c217
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x47c221
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004947ff
add esp, 0xc
ret 0xc

Function at 0x47cca0
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 0x47cd13
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 0x47ccee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47cd13
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.004947ff
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.004947ff
add esp, 8
ret 4
Function at 0x47d0d0
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 0x47d143
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 0x47d11e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47d143
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.004947ff
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.004947ff
add esp, 8
ret 4
Function at 0x481280
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5838
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 0x4813ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, 0x50000000
je 0x48135e
call eax
cmp eax, 5
jne 0x481359
push 0x80
mov ecx, edi
call fcn.00403360
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
jne 0x48133e
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 0x48132f
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 0x4813ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x21
je 0x48136a
cmp eax, 0x20
jne 0x4813ab
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 0x4813ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x4813a5
cmp eax, 0x20
jne 0x4813ab
inc esi
cmp esi, 0x28
jb 0x481370
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.004947ff
mov esp, ebp
pop ebp
ret 0x18
Function at 0x489c80
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 0x489ce5
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 0x489cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x489ce5
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.004947ff
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004947ff
add esp, 8
ret 4
Function at 0x489e20
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8328
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 0x489e69
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x489fbb
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 0x489f86
test eax, eax
je 0x489f86
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x489f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x489f0b
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 0x489eff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x489f0b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x489f19
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 0x489f86
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 0x489ec4
jmp 0x489f89
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x489fb2
test edx, edx
je 0x489fae
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 0x489e80
mov al, 1
jmp 0x489fbd
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x489fbb
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.004947ff
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48a370
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.00496fd0
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 0x48a3ee
cmp dword [esp + 0x14], 6
jb 0x48a3ee
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.0048a1e0
add esp, 0xc
test al, al
je 0x48a3ee
cmp word [esi], 0
jne 0x48a446
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.0048a1e0
add esp, 0xc
test al, al
je 0x48a41a
cmp word [esi], 0
jne 0x48a446
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.0048a1e0
add esp, 0xc
test al, al
je 0x48a45b
cmp word [esi], 0
je 0x48a45b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004947ff
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.004947ff
mov esp, ebp
pop ebp
ret
Function at 0x48aa30
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.004b2ca0
push 0xffffffffffffffff
push 0x4c83e8
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.00496fd0
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x48ac31
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x48ac31
push esi
call edi
cmp eax, 0xffa
jge 0x48ac31
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4dc610
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4dafe8
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 0x48ac31
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x48ac31
lea ecx, [ebp]
call fcn.0048a470
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x48ab56
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 0x48ab64
inc edi
add esi, 0x210
cmp edi, 3
jl 0x48ab35
jmp 0x48ab86
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x48ab7e
add ebx, 0x10
test ebx, ebx
jne 0x48ac2d
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 0x48ac28
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.00496fd0
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 0x48ac1e
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 0x48ac28
inc esi
cmp esi, 2
jb 0x48abc0
mov eax, ebx
jmp 0x48ac33
mov ebx, 0x10
mov eax, ebx
jmp 0x48ac33
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.004947ff
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x48e5f0
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.00496fd0
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x48e687
cmp dword [esp + 8], 6
jb 0x48e687
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004947ff
add esp, 0x118
ret

Function at 0x48e6a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c89b0
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 0x48e7b5
test esi, esi
je 0x48e7b5
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 0x491390
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8e81
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 0x4914b5
push esi
call fcn.00405a40
add esp, 4
test al, al
je 0x4914b5
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 0x4914a6
lea eax, [ebp - 0x40]
push eax
call fcn.00405b30
add esp, 4
test al, al
je 0x4914a6
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.004947ff
mov esp, ebp
pop ebp
ret 4

Function at 0x492410
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0
je 0x492455
push esi
call fcn.00405a40
add esp, 4
test al, al
je 0x492455
push esi
call fcn.0040b8d0
push esi
call fcn.00405a40
add esp, 8
test al, al
je 0x492455
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 8
jb 0x49244e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
ret 4