joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044e50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x100c4014]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + 0x20]
mov ecx, 0x100c75db
call fcn.10085165
mov esi, dword [esp + 0x24]
xor ebx, ebx
cmp dword [ebp + 0x10], 0xffffffff
je 0x10044ed2
mov ecx, 0x100000
nop dword [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 0x10044ed2
test ecx, ecx
je 0x10044ece
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10044e90
xor eax, eax
jmp 0x10044ed7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10044ee1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100826ce
add esp, 0xc
ret 0xc

Function at 0x10045480
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x100c4014]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
mov ecx, 0x100c75db
call fcn.10085165
push 0x118
lea eax, [esi + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100455cc
cmp dword [esi + 4], 6
push edi
ja 0x100454e0
jne 0x10045568
cmp dword [esi + 8], 2
jb 0x10045568
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10045568
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10045568
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10045568
movups xmm0, xmmword [0x100a14a0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100a14b0]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10045568
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10045568
cmp word [edi + 2], ax
jbe 0x10045568
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100455b3
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x100455b3
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100826ce
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100826ce
add esp, 0x140
ret
Function at 0x10045c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100904e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100c4014]
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 ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, 0x100c75db
mov dword [ebp - 0x24], esi
call fcn.10085165
cmp byte [ebx], 0
jne 0x10045d60
test esi, esi
je 0x10045d60
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10045d60
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
cmp eax, dword [ecx + 4]
jne 0x10045cdf
cmp edi, 0x40
jb 0x10045cbf
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x10045cb5
mov edx, dword [esi + 0x3c]
lea eax, [edx + 0xf8]
cmp edi, eax
jb 0x10045cbf
cmp dword [edx + esi], 0x4550
mov byte [ebx], 1
sete al
mov byte [ebx + 1], al
jmp 0x10045d60
mov word [ebx], 1
jmp 0x10045d60
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
push edi
call fcn.10029030
push edi
push esi
push dword [ebx + 4]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x10045d60
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10028fc0
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1d]
sub esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov byte [ebp - 0x1d], 0
lea eax, [esi + edi]
push eax
call fcn.1002e620
mov eax, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x24]
add eax, esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
sub edx, eax
push edx
push eax
call fcn.10045c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1000fc20
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.100826ce
mov esp, ebp
pop ebp
ret 8
Function at 0x1004ba50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100916cf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100c4014]
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 esi, edx
mov edi, ecx
mov ecx, 0x100c75db
call fcn.10085165
cmp esi, 0xffffffff
jne 0x1004ba92
xor al, al
jmp 0x1004bb09
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1004baa2
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x1004bab4
mov al, 1
jmp 0x1004bb09
lea ecx, [ebp - 0x28]
call fcn.10005000
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.1004bfa0
test al, al
je 0x1004bae8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x1004bae8
mov bl, 1
jmp 0x1004baea
xor bl, bl
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10005a50
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
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.100826ce
mov esp, ebp
pop ebp
ret

Function at 0x1004bb30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100859a6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c4014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x100c75db
call fcn.10085165
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1004bb70
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004bbf4
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 4
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.1004bfa0
test al, al
je 0x1004bbd7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10005a50
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100826ce
mov esp, ebp
pop ebp
ret
Function at 0x1004bd20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100917dc
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100c4014]
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 esi, ecx
mov ecx, 0x100c75db
call fcn.10085165
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004bd61
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x1004bd75
mov al, 1
jmp 0x1004beaf
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004bd7f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d650
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1004bb30
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10005a50
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
jne 0x1004bdc8
xor al, al
jmp 0x1004beaf
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004bdd2
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d650
mov dword [ebp - 4], 5
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.1004ba50
mov bl, al
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.10005a50
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x1004bdc1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004be1c
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x1004bd6e
lea ecx, [ebp - 0x28]
call fcn.10005000
mov dword [ebp - 4], 0xa
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1004bfa0
test al, al
je 0x1004be5a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x1004be5a
mov bl, 1
jmp 0x1004be90
cmp dword [esi + 0x14], 8
jb 0x1004be62
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x48]
call fcn.1000d650
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x30]
call fcn.1004ba50
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x48]
call fcn.10005a50
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0xa
xor bl, bl
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.10005a50
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
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.100826ce
mov esp, ebp
pop ebp
ret
Function at 0x1004bed0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x100c4014]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
mov esi, ecx
mov ecx, 0x100c75db
push edi
mov edi, edx
call fcn.10085165
push 0x20c
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1004bf18
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x1004bf20
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1004bf7a
xor eax, eax
lea edx, [esp + 0xc]
mov word [esp + 0x216], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004bf44
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.1000db60
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100826ce
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100826ce
add esp, 0x210
ret

Function at 0x1004c100
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x100918c5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100c4014]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x100c75db
mov dword [ebp - 0x10], esi
call fcn.10085165
mov dword [ebp - 4], 0
push 1
call fcn.100826df
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004c18d
cmp dword [ebp + 4], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.100826ce
lea esp, [ebp + 0x120]
pop ebp
ret
Function at 0x1004ffe0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100c4014]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x100c75db
push edi
mov edi, dword [esp + 0x14]
call fcn.10085165
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10050051
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 0x1005002c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10050051
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.100826ce
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100826ce
add esp, 8
ret 4
Function at 0x100518d0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100925e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100c4014]
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 ebx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, 0x100c75db
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x2c], ebx
call fcn.10085165
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10051926
mov dword [eax], 0
mov dword [ebx], 0
cmp dword [edi], 0xffffffff
je 0x10051a7b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
nop dword [eax]
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 0x10051a46
test eax, eax
je 0x10051a46
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x10051a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x28], eax
cmp ecx, 0xffffffff
je 0x100519cb
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 0x100519bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100519cb
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x100519d9
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x28]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.10008c50
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 0x10051a46
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 0x10051984
jmp 0x10051a49
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add dword [ecx], edx
test eax, eax
jne 0x10051a72
test edx, edx
je 0x10051a6e
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 0x10051940
mov al, 1
jmp 0x10051a7d
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10051a7b
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.100826ce
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10051d70
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100926a3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x100c75ad
call fcn.10085165
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 4
lea eax, [esi + 0x18]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 8
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
lea eax, [esi + 0x30]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0xd
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xe
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], ecx
mov byte [esi + 0x64], cl
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 0x10053940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092c23
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100c4014]
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 esi, dword [ebp + 8]
mov ecx, 0x100c75db
mov edi, dword [ebp + 0xc]
call fcn.10085165
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.10053ff0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10058940
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x1c], 0
test eax, eax
jne 0x100539d6
xor bl, bl
jmp 0x100539f4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100539ee
cmp eax, 0x80
je 0x100539ee
xor bl, bl
jmp 0x100539f4
mov byte [ebp - 0x14], 1
mov bl, 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 4], 4
lea eax, [ebp - 0x39]
push eax
push edi
push esi
mov byte [ebp - 0x39], 0
call fcn.10053aa0
test al, al
jne 0x10053a22
cmp byte [ebp - 0x39], al
je 0x10053a22
cmp dword [esi + 0x14], 8
jb 0x10053a1b
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
test bl, bl
je 0x10053a3c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10053a38
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10053a5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x38]
call fcn.10005a50
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
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.100826ce
mov esp, ebp
pop ebp
ret 8
Function at 0x10056ca0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100c4014]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov ecx, 0x100c75db
call fcn.10085165
push 0x110
lea eax, [esp + 0xc]
mov dword [esi + 4], 0
push 0
push eax
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
mov dword [esp + 0x10], 0x114
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10056d41
cmp dword [esp + 8], 6
jb 0x10056d41
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.100826ce
add esp, 0x118
ret

Function at 0x10056d60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009313e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x100c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x100c75db
call fcn.10085165
push str.wintrust.dll
lea ecx, [ebp - 0x2c]
call fcn.1000d650
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.10046200
mov ecx, eax
call fcn.100462f0
mov ebx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10005a50
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
push str.crypt32.dll
call fcn.1000d650
mov dword [ebp - 4], 5
lea eax, [ebp - 0x44]
push eax
call fcn.10046200
mov ecx, eax
call fcn.100462f0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x44]
call fcn.10005a50
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x10056e9b
test esi, esi
je 0x10056e9b
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