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

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x41bca8
mov edx, dword [esp + 4]
test edx, edx
je 0x41bca8
cmp dword [eax], 0xffffffff
je 0x41bca8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bca8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x41bcb0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x41bcea
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41bcea
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41bcea
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41bcea
cmp edi, dword [esi]
jne 0x41bcea
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x41bd30
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4d404c]
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 0x41bd93
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41bd93
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41bd6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41bd93
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.00477254
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00477254
add esp, 8
ret 4

Function at 0x41be40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x41beee
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.0041bdb0
test al, al
je 0x41beee
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.0041bdb0
test al, al
je 0x41beee
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x41bec4
cmp dword [esp + 0x14], edi
jne 0x41bec4
mov eax, dword [esi]
test eax, eax
jne 0x41beb1
xor bl, bl
jmp 0x41bec4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41bead
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.0041bdb0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41bf00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d404c]
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.00407400
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41bf49
mov al, 1
jmp 0x41bf91
lea ecx, [ebp - 0x28]
call fcn.004075a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041ca30
test al, al
je 0x41bf7e
push esi
lea ecx, [ebp - 0x28]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41bf7e
mov bl, 1
jmp 0x41bf80
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004074c0
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.00477254
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ca78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d404c]
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.00407400
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c02e
lea ecx, [ebp - 0x28]
call fcn.004075a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041ca30
test al, al
je 0x41c01d
lea ecx, [ebp - 0x28]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004074c0
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.00477254
mov esp, ebp
pop ebp
ret
Function at 0x41c260
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d404c]
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.00407400
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x41c2a6
mov al, 1
jmp 0x41c3f8
mov ecx, esi
call fcn.00407400
push eax
lea ecx, [ebp - 0x28]
call fcn.00407560
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0041bfb0
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004074c0
cmp ebx, 0xffffffff
jne 0x41c2e5
xor al, al
jmp 0x41c3f8
mov ecx, esi
call fcn.00407400
push eax
lea ecx, [ebp - 0x28]
call fcn.00407560
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.00407400
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x41c317
xor bl, bl
jmp 0x41c361
lea ecx, [ebp - 0x40]
call fcn.004075a0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041ca30
test al, al
je 0x41c353
push 0
lea ecx, [ebp - 0x40]
call fcn.00407400
push eax
call ebx
test eax, eax
je 0x41c353
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004074c0
xor bl, bl
jmp 0x41c361
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004074c0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004074c0
test bl, bl
jne 0x41c2de
mov ecx, esi
call fcn.00407400
push eax
call edi
test eax, eax
jne 0x41c29f
lea ecx, [ebp - 0x28]
call fcn.004075a0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041ca30
test al, al
je 0x41c3ba
lea ecx, [ebp - 0x28]
call fcn.00407400
push eax
call edi
test eax, eax
je 0x41c3ba
mov bl, 1
jmp 0x41c3e7
mov ecx, esi
call fcn.00407400
push eax
lea ecx, [ebp - 0x40]
call fcn.00407560
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.0041bf00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004074c0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004074c0
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.00477254
mov esp, ebp
pop ebp
ret
Function at 0x41c420
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x624]
sub esp, 0x624
push 0xffffffffffffffff
push 0x49e918
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp + 0x620], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4d7178]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0x4d7178
test eax, eax
je 0x41c475
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, 0x4d7154
call fcn.004073f0
test al, al
jne 0x41c4d0
mov ecx, 0x4d7154
call fcn.00407700
cmp esi, eax
je 0x41c4b2
call fcn.00407700
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x41c4a7
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
mov ecx, esi
call fcn.004077b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4d7178]
test eax, eax
je 0x41c4c9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x41c597
push 0x20c
lea eax, [ebp + 0x414]
push 0
push eax
call fcn.0047a110
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x41c57e
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x61e], ax
lea eax, [ebp]
push eax
call fcn.0047a110
add esp, 0xc
lea eax, [ebp]
push 0x208
push eax
lea eax, [ebp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x41c562
test eax, eax
je 0x41c562
add eax, eax
cmp eax, 0x412
jae 0x41c5bf
xor ecx, ecx
mov word [ebp + eax], cx
lea eax, [ebp]
push eax
call fcn.00407910
add esp, 4
push eax
lea eax, [ebp]
push eax
jmp 0x41c4ab
lea eax, [ebp + 0x414]
push eax
call fcn.00407910
add esp, 4
push eax
lea eax, [ebp + 0x414]
push eax
jmp 0x41c4ab
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4d7178]
test eax, eax
je 0x41c595
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x620]
xor ecx, ebp
call fcn.00477254
lea esp, [ebp + 0x624]
pop ebp
ret
call fcn.004778ae
int3

Function at 0x41c5d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4d404c]
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.0047a110
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.00407400
push eax
mov ecx, edi
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41c665
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00407910
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004077b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00477254
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00477254
add esp, 0x210
ret
Function at 0x41cb00
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4d404c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00477265
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.0047a110
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 0x41cb5c
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.00477254
add esp, 0x120
ret
Function at 0x422300
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4d404c]
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 edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.004073f0
test al, al
jne 0x42235a
cmp byte [ebp + 8], al
jne 0x422361
mov eax, dword [ebx]
test eax, eax
je 0x4224c1
cmp byte [eax + 0xa5], 0
je 0x4224c1
xor al, al
jmp 0x4224d7
mov ecx, esi
call fcn.004073f0
test al, al
jne 0x4224c1
push esi
call fcn.0040ac50
add esp, 4
test al, al
je 0x422389
push esi
push edi
call fcn.00421ec0
jmp 0x4224bd
push 0xb
mov ecx, esi
call fcn.00407400
push eax
mov ecx, edi
call fcn.00407400
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
je 0x4223ae
mov al, 1
jmp 0x4224bd
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x59], 0
call fcn.004075a0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.0041ca30
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x40]
call fcn.004075a0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0041ca30
test al, al
jne 0x4223fb
cmp byte [ebp - 0x60], al
je 0x422437
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00407400
push eax
lea ecx, [ebp - 0x58]
call fcn.00407400
push eax
call ebx
test eax, eax
je 0x422437
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004074c0
mov al, 1
jmp 0x4224bd
mov ecx, esi
call fcn.0041bfb0
cmp eax, 0xffffffff
je 0x4224a0
push esi
lea ecx, [ebp - 0x28]
call fcn.004075c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0041c680
test al, al
je 0x422494
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041c050
test al, al
je 0x422494
mov edx, esi
mov ecx, edi
call fcn.0041c050
lea ecx, [ebp - 0x28]
test al, al
je 0x42248d
call fcn.0041c260
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004074c0
jmp 0x422415
mov edx, esi
call fcn.0041c050
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004074c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004074c0
xor al, al
test al, al
jne 0x4224d5
push edi
call fcn.0040ac50
add esp, 4
test al, al
je 0x4224d5
mov ecx, edi
call fcn.0041c260
mov al, 1
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.00477254
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423c20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4d404c]
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.0047a110
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 0x423c9e
cmp dword [esp + 0x14], 6
jb 0x423c9e
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.00423a90
add esp, 0xc
test al, al
je 0x423c9e
cmp word [esi], 0
jne 0x423cf6
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.00423a90
add esp, 0xc
test al, al
je 0x423cca
cmp word [esi], 0
jne 0x423cf6
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.00423a90
add esp, 0xc
test al, al
je 0x423d0b
cmp word [esi], 0
je 0x423d0b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.00477254
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.00477254
mov esp, ebp
pop ebp
ret
Function at 0x4242e0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.00490140
push 0xffffffffffffffff
push 0x49f8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d404c]
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.0047a110
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x4244e1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x4244e1
push esi
call edi
cmp eax, 0xffa
jge 0x4244e1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4bec50
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4bec54
lea ecx, [ebp - 0x2c]
call fcn.00407560
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00415dc0
mov ecx, eax
call fcn.00415e80
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004074c0
test esi, esi
je 0x4244e1
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4244e1
lea ecx, [ebp]
call fcn.00423d20
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x424406
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 0x424414
inc edi
add esi, 0x210
cmp edi, 3
jl 0x4243e5
jmp 0x424436
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x42442e
add ebx, 0x10
test ebx, ebx
jne 0x4244dd
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 0x4244d8
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.0047a110
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 0x4244ce
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 0x4244d8
inc esi
cmp esi, 2
jb 0x424470
mov eax, ebx
jmp 0x4244e3
mov ebx, 0x10
mov eax, ebx
jmp 0x4244e3
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.00477254
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x427b70
Capabilities:
Check os version

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

Function at 0x427c20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fe20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4d404c]
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.00407560
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00415dc0
mov ecx, eax
call fcn.00415e80
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004074c0
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00407560
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00415dc0
mov ecx, eax
call fcn.00415e80
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004074c0
test ebx, ebx
je 0x427d35
test esi, esi
je 0x427d35
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 0x42e200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f788
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d404c]
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, edx
mov dword [ebp - 0x2c], ebx
push ecx
lea ecx, [ebp - 0x28]
call fcn.004075c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00408cb0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.004077a0
lea ecx, [ebp - 0x28]
cmp eax, 2
jbe 0x42e32e
call fcn.00407700
mov esi, eax
mov ecx, esi
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x42e273
mov ecx, dword [esi]
cmp word [ecx], 0x5c
jne 0x42e28d
mov ecx, esi
cmp eax, 8
jb 0x42e282
mov ecx, dword [esi]
cmp word [ecx + 2], 0x5c
je 0x42e3f6
mov ecx, esi
cmp eax, 8
jb 0x42e296
mov ecx, dword [esi]
cmp word [ecx], 0x2f
jne 0x42e2ac
mov ecx, esi
cmp eax, 8
jb 0x42e2a5
mov ecx, dword [esi]
cmp word [ecx + 2], 0x2f
je 0x42e2ff
push 0x5c
lea eax, [ebp - 0x28]
push 0x2f
push eax
call fcn.00408af0
mov eax, dword [esi + 0x14]
add esp, 0xc
mov ecx, esi
cmp eax, 8
jb 0x42e2c8
mov ecx, dword [esi]
cmp word [ecx + 2], 0x3a
jne 0x42e2ff
mov ecx, esi
cmp eax, 8
jb 0x42e2d8
mov ecx, dword [esi]
cmp word [ecx + 4], 0x5c
jne 0x42e2ff
mov ecx, esi
cmp eax, 8
jb 0x42e2e8
mov ecx, dword [esi]
cmp word [ecx], 0x61
jb 0x42e2ff
cmp eax, 8
jb 0x42e2f5
mov esi, dword [esi]
cmp word [esi], 0x7a
jbe 0x42e3d7
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004074c0
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.00477254
mov esp, ebp
pop ebp
ret
call fcn.004077a0
cmp eax, 2
jne 0x42e2ff
lea ecx, [ebp - 0x28]
call fcn.00407700
mov esi, eax
mov edi, dword [esi + 0x14]
cmp edi, 8
jb 0x42e34c
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x42e2ff
mov eax, esi
cmp edi, 8
jb 0x42e35c
mov eax, dword [esi]
cmp word [eax], 0x61
jb 0x42e2ff
mov eax, esi
cmp edi, 8
jb 0x42e36b
mov eax, dword [esi]
cmp word [eax], 0x7a
ja 0x42e2ff
push 0x4b9474
call fcn.00407910
mov edx, dword [esi + 0x10]
mov ecx, edi
sub ecx, edx
add esp, 4
cmp eax, ecx
ja 0x42e3c1
lea ebx, [edx + eax]
mov dword [esi + 0x10], ebx
cmp edi, 8
jb 0x42e396
mov esi, dword [esi]
push eax
lea eax, [esi + edx*2]
push 0x4b9474
push eax
call fcn.00407ac0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00407ab0
mov ebx, dword [ebp - 0x2c]
add esp, 0x14
jmp 0x42e3d7
push eax
push 0x4b9474
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.00407ee0
lea ecx, [ebp - 0x28]
call fcn.00407400
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e2ff
shr eax, 4
and al, 1
mov byte [ebx], al
mov bl, 1
jmp 0x42e301