joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cd730
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x20
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
mov eax, dword [esi]
mov byte [esp + 0x13], 0
mov eax, dword [eax + 4]
test eax, eax
je 0x4cd8f9
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegQueryValueExW
push eax
call ebp
mov dword [esp + 0x28], eax
test eax, eax
je 0x4cd8f9
mov ecx, dword [esi]
mov dword [esp + 0x1c], 0
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4cd8f9
push 0x5d977c
push ecx
call ebp
mov dword [esp + 0x20], eax
test eax, eax
je 0x4cd8f9
test edi, edi
je 0x4cd8f9
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov ecx, dword [ecx]
or ecx, 0x20019
push ecx
mov ecx, dword [esp + 0x1c]
push 0
call fcn.00403b20
push eax
push edi
call dword [esp + 0x34]
test eax, eax
jne 0x4cd8f9
mov dword [esp + 0x20], eax
mov ecx, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00403b20
push eax
push dword [esp + 0x30]
call dword [esp + 0x40]
movzx ebx, byte [esp + 0x13]
test eax, eax
mov ecx, 1
lea eax, [esp + 0x1c]
cmove ebx, ecx
mov ecx, esi
push eax
call fcn.004cd620
test bl, bl
je 0x4cd8f9
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.004cd230
test al, al
je 0x4cd8f9
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4cd8c4
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
je 0x4cd8c4
push str.RegQueryValueExW
push eax
call ebp
mov ecx, dword [esi]
push 0x5d9be4
mov dword [esp + 0x24], eax
push dword [ecx + 4]
call ebp
cmp dword [esp + 0x20], 0
mov ebx, eax
je 0x4cd8c4
test ebx, ebx
je 0x4cd8c4
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0
push eax
push 0
mov dword [esp + 0x34], 0
call fcn.00403b20
push eax
push edi
call dword [esp + 0x38]
cmp eax, 2
je 0x4cd8c4
mov ecx, dword [esp + 0x18]
call fcn.00403b20
push eax
push edi
call ebx
test eax, eax
sete bl
jmp 0x4cd8c6
xor bl, bl
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
je 0x4cd8e2
push 0x5d97a0
push eax
call ebp
test eax, eax
je 0x4cd8e2
test edi, edi
je 0x4cd8e2
push edi
call eax
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x20
ret 0xc
mov ecx, dword [esp + 0x2c]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053f5d9
add esp, 0x20
ret 0xc
Function at 0x4d0420
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0053f5f8
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.005431f0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4d047c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.0053f5d9
add esp, 0x120
ret
Function at 0x4d66c0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4d6723
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4d6723
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d66fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d6723
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.0053f5d9
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0053f5d9
add esp, 8
ret 4
Function at 0x4d72b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3678
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
and esi, 0xffffb1af
push esi
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4d72f9
mov al, 1
jmp 0x4d7341
lea ecx, [ebp - 0x28]
call fcn.00403c30
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004d8560
test al, al
je 0x4d732e
push esi
lea ecx, [ebp - 0x28]
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4d732e
mov bl, 1
jmp 0x4d7330
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b90
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f5d9
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b36a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d73de
lea ecx, [ebp - 0x28]
call fcn.00403c30
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004d8560
test al, al
je 0x4d73cd
lea ecx, [ebp - 0x28]
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f5d9
mov esp, ebp
pop ebp
ret
Function at 0x4d79e0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3858
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x60e070]
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
call fcn.00403b20
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x4d7a26
mov al, 1
jmp 0x4d7b78
mov ecx, esi
call fcn.00403b20
push eax
lea ecx, [ebp - 0x28]
call fcn.00403be0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004d7360
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b90
cmp ebx, 0xffffffff
jne 0x4d7a65
xor al, al
jmp 0x4d7b78
mov ecx, esi
call fcn.00403b20
push eax
lea ecx, [ebp - 0x28]
call fcn.00403be0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.00403b20
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x4d7a97
xor bl, bl
jmp 0x4d7ae1
lea ecx, [ebp - 0x40]
call fcn.00403c30
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004d8560
test al, al
je 0x4d7ad3
push 0
lea ecx, [ebp - 0x40]
call fcn.00403b20
push eax
call ebx
test eax, eax
je 0x4d7ad3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403b90
xor bl, bl
jmp 0x4d7ae1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403b90
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b90
test bl, bl
jne 0x4d7a5e
mov ecx, esi
call fcn.00403b20
push eax
call edi
test eax, eax
jne 0x4d7a1f
lea ecx, [ebp - 0x28]
call fcn.00403c30
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004d8560
test al, al
je 0x4d7b3a
lea ecx, [ebp - 0x28]
call fcn.00403b20
push eax
call edi
test eax, eax
je 0x4d7b3a
mov bl, 1
jmp 0x4d7b67
mov ecx, esi
call fcn.00403b20
push eax
lea ecx, [ebp - 0x40]
call fcn.00403be0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.004d72b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00403b90
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b90
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.0053f5d9
mov esp, ebp
pop ebp
ret
Function at 0x4d7d70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.005431f0
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.00403b20
push eax
mov ecx, edi
call fcn.00403b20
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4d7e05
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00404660
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004040a0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f5d9
add esp, 0x210
ret
Function at 0x4e2790
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x60e070]
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 0x4e27f5
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 0x4e27d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e27f5
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.0053f5d9
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0053f5d9
add esp, 8
ret 4
Function at 0x4e2f10
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b52d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x60e070]
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 0x4e2f59
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4e30ab
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 0x4e3076
test eax, eax
je 0x4e3076
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4e3079
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4e2ffb
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 0x4e2fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e2ffb
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4e3009
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.00403c50
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 0x4e3076
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 0x4e2fb4
jmp 0x4e3079
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4e30a2
test edx, edx
je 0x4e309e
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 0x4e2f70
mov al, 1
jmp 0x4e30ad
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4e30ab
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.0053f5d9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e6360
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x60e070]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x110
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call fcn.005431f0
add esp, 0xc
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4e63d8
cmp dword [esp + 0x10], 6
jb 0x4e63d8
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.004e6150
add esp, 0xc
test al, al
je 0x4e63d8
cmp word [esi], 0
jne 0x4e6430
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.004e6150
add esp, 0xc
test al, al
je 0x4e6404
cmp word [esi], 0
jne 0x4e6430
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.004e6150
add esp, 0xc
test al, al
je 0x4e6448
cmp word [esi], 0
je 0x4e6448
mov al, 1
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0053f5d9
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
xor al, al
pop esi
xor ecx, esp
call fcn.0053f5d9
add esp, 0x120
ret
Function at 0x4e69d0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.00540ab0
push 0xffffffffffffffff
push 0x5b59f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x60e070]
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.005431f0
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x4e6bd1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x4e6bd1
push esi
call edi
cmp eax, 0xffa
jge 0x4e6bd1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x5db950
lea eax, [ebp + 0x630]
push eax
call esi
push 0x5dba04
lea ecx, [ebp - 0x2c]
call fcn.00403be0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.004bb6f0
mov ecx, eax
call fcn.004bb7c0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403b90
test esi, esi
je 0x4e6bd1
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4e6bd1
lea ecx, [ebp]
call fcn.004e6460
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x4e6af6
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 0x4e6b04
inc edi
add esi, 0x210
cmp edi, 3
jl 0x4e6ad5
jmp 0x4e6b26
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x4e6b1e
add ebx, 0x10
test ebx, ebx
jne 0x4e6bcd
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 0x4e6bc8
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.005431f0
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 0x4e6bbe
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 0x4e6bc8
inc esi
cmp esi, 2
jb 0x4e6b60
mov eax, ebx
jmp 0x4e6bd3
mov ebx, 0x10
mov eax, ebx
jmp 0x4e6bd3
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.0053f5d9
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x4ec850
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x60e070]
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.005431f0
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4ec8e7
cmp dword [esp + 8], 6
jb 0x4ec8e7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.0053f5d9
add esp, 0x118
ret

Function at 0x4ec910
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b63c0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x60e070]
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.00403be0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.004bb6f0
mov ecx, eax
call fcn.004bb7c0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403b90
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00403be0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.004bb6f0
mov ecx, eax
call fcn.004bb7c0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403b90
test ebx, ebx
je 0x4eca25
test esi, esi
je 0x4eca25
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 0x4efbd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b67c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x60e070]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x4efc16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004d6ac0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4efc3f
lea ebx, [esi + 8]
jmp 0x4efc41
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.0040d380
test eax, eax
je 0x4efc57
mov ecx, dword [ebp - 0x18]
call fcn.00403b20
jmp 0x4efc59
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4efc7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4efc7a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4efca3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4efcb8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0053fb46
add esp, 8
mov dword [ebp - 0x14], 0
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.0053f5d9
mov esp, ebp
pop ebp
ret 4
Function at 0x4f2b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6d10
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4f2c76
cmp byte [eax + 0x54], 0
je 0x4f2c76
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.004e77d0
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004a4a60
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4f2be2
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4f2c2c
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4f2c5c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f2c52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f2c94
push edx
push ecx
call fcn.0053fb46
add esp, 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004e7820
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053f5d9
mov esp, ebp
pop ebp
ret 4
call fcn.0054cdad
int3