joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410ce0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x441008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
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 0x410e22
cmp dword [esi + 4], 6
push edi
ja 0x410d36
jne 0x410dbe
cmp dword [esi + 8], 2
jb 0x410dbe
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x410dbe
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x410dbe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410dbe
movups xmm0, xmmword [0x4377f0]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x437800]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x410dbe
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x410dbe
cmp word [edi + 2], ax
jbe 0x410dbe
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 0x410e09
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 0x410e09
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.004226d8
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004226d8
add esp, 0x140
ret
Function at 0x412fd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x413008
mov edx, dword [esp + 4]
test edx, edx
je 0x413008
cmp dword [eax], 0xffffffff
je 0x413008
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 0x413008
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x413010
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x41304a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x41304a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41304a
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 0x41304a
cmp edi, dword [esi]
jne 0x41304a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x413090
Capabilities:
Get file size

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

Function at 0x4131c0
Capabilities:
Clear file content

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x41326a
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.00413110
test al, al
je 0x41326a
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov ebp, dword [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
push edi
push ebp
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.00413110
test al, al
je 0x41326a
xor bl, bl
cmp dword [esp + 0x10], ebp
jne 0x41323f
cmp dword [esp + 0x14], edi
jne 0x41323f
mov eax, dword [esi]
test eax, eax
jne 0x41322c
xor bl, bl
jmp 0x41323f
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x413228
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.00413110
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14
ret 8
Function at 0x413280
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x441008]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
push 0x20c
lea eax, [esp + 0x18]
mov ebp, ecx
push 0
push eax
mov dword [esp + 0x10], ebp
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x413473
push ebx
push esi
xor eax, eax
lea ecx, [esp + 0x1c]
push edi
mov word [esp + 0x22a], ax
call fcn.00402de3
mov ecx, ebp
mov ebx, eax
call fcn.00402cf0
mov edi, eax
mov ebp, dword [edi + 0x14]
cmp ebx, ebp
ja 0x413327
mov esi, edi
cmp ebp, 8
jb 0x4132fc
mov esi, dword [edi]
push ebx
lea edx, [esp + 0x24]
mov dword [edi + 0x10], ebx
mov ecx, esi
call fcn.00402e52
add esp, 4
mov dword [esp + 0x10], 0
lea ecx, [esi + ebx*2]
lea edx, [esp + 0x10]
call fcn.00402e4b
jmp 0x413458
call fcn.00402e28
cmp ebx, eax
ja 0x41348b
call fcn.00402e28
mov ecx, ebx
mov esi, eax
or ecx, 7
mov dword [esp + 0x18], ecx
cmp ecx, esi
ja 0x413376
mov ecx, dword [esp + 0x10]
call fcn.00402cf0
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x413376
lea eax, [ecx + edx]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
call fcn.00402dc3
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x413388
or ecx, 0xffffffff
jmp 0x413390
cmp ecx, 0x1000
jb 0x4133b9
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004226e9
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x413435
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4133ca
test ecx, ecx
je 0x4133c8
push ecx
call fcn.004226e9
add esp, 4
jmp 0x4133ca
xor eax, eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x20]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push ebx
call fcn.00402dcd
add esp, 4
mov dword [esp + 0x1c], 0
lea ecx, [esi + ebx*2]
lea edx, [esp + 0x1c]
call fcn.00402e4b
cmp ebp, 8
jb 0x41343b
mov eax, dword [edi]
lea ecx, [ebp*2 + 2]
cmp ecx, 0x1000
jb 0x413423
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413435
mov eax, edx
push ecx
push eax
call fcn.00422996
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [edi], eax
jmp 0x413458
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [esp + 0x10]
call fcn.00402cf0
mov ecx, edi
mov esi, eax
call fcn.00402cf0
mov edx, eax
call fcn.00402af0
mov ecx, dword [esi]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004226d8
add esp, 0x220
ret
mov ecx, dword [esp + 0x220]
xor al, al
pop ebp
xor ecx, esp
call fcn.004226d8
add esp, 0x220
ret
call fcn.00403000
int3
Function at 0x4134a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431af8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x441008]
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.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4134e9
mov al, 1
jmp 0x413530
lea ecx, [ebp - 0x28]
call fcn.00402c4b
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.00414a20
test al, al
je 0x41351d
push esi
lea ecx, [ebp - 0x28]
call fcn.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41351d
mov bl, 1
jmp 0x41351f
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
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.004226d8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431af8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x441008]
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.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4135cd
lea ecx, [ebp - 0x28]
call fcn.00402c4b
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.00414a20
test al, al
je 0x4135bc
lea ecx, [ebp - 0x28]
call fcn.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
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.004226d8
mov esp, ebp
pop ebp
ret
Function at 0x413700
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4330b8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x441008]
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.00402bad
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x413746
mov al, 1
jmp 0x413896
mov ecx, esi
call fcn.00402bad
push eax
lea ecx, [ebp - 0x28]
call fcn.00402c19
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00413550
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
cmp ebx, 0xffffffff
jne 0x413785
xor al, al
jmp 0x413896
mov ecx, esi
call fcn.00402bad
push eax
lea ecx, [ebp - 0x28]
call fcn.00402c19
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.00402bad
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x4137b7
xor bl, bl
jmp 0x413800
lea ecx, [ebp - 0x40]
call fcn.00402c4b
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.00414a20
test al, al
je 0x4137f2
push 0
lea ecx, [ebp - 0x40]
call fcn.00402bad
push eax
call ebx
test eax, eax
je 0x4137f2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402b04
xor bl, bl
jmp 0x413800
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402b04
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
test bl, bl
jne 0x41377e
mov ecx, esi
call fcn.00402bad
push eax
call edi
test eax, eax
jne 0x41373f
lea ecx, [ebp - 0x28]
call fcn.00402c4b
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, esi
call fcn.00414a20
test al, al
je 0x413858
lea ecx, [ebp - 0x28]
call fcn.00402bad
push eax
call edi
test eax, eax
je 0x413858
mov bl, 1
jmp 0x413885
mov ecx, esi
call fcn.00402bad
push eax
lea ecx, [ebp - 0x40]
call fcn.00402c19
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.004134a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00402b04
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
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.004226d8
mov esp, ebp
pop ebp
ret
Function at 0x413e10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x441008]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
mov ebp, dword [esp + 0x228]
lea eax, [esp + 0x14]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov dword [esp + 0x18], ebp
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push 0
call fcn.00402bad
push eax
mov ecx, edi
call fcn.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x414015
xor eax, eax
lea ecx, [esp + 0x1c]
push ebx
mov word [esp + 0x22a], ax
call fcn.00402de3
mov ecx, ebp
mov ebx, eax
call fcn.00402cf0
mov edi, eax
mov ebp, dword [edi + 0x14]
cmp ebx, ebp
ja 0x413ec9
mov esi, edi
cmp ebp, 8
jb 0x413e9e
mov esi, dword [edi]
push ebx
lea edx, [esp + 0x24]
mov dword [edi + 0x10], ebx
mov ecx, esi
call fcn.00402e52
add esp, 4
mov dword [esp + 0x10], 0
lea ecx, [esi + ebx*2]
lea edx, [esp + 0x10]
call fcn.00402e4b
jmp 0x413ffa
call fcn.00402e28
cmp ebx, eax
ja 0x41402f
call fcn.00402e28
mov ecx, ebx
mov esi, eax
or ecx, 7
mov dword [esp + 0x18], ecx
cmp ecx, esi
ja 0x413f18
mov ecx, dword [esp + 0x10]
call fcn.00402cf0
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x413f18
lea eax, [ecx + edx]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
call fcn.00402dc3
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x413f2a
or ecx, 0xffffffff
jmp 0x413f32
cmp ecx, 0x1000
jb 0x413f5b
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004226e9
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x413fd7
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x413f6c
test ecx, ecx
je 0x413f6a
push ecx
call fcn.004226e9
add esp, 4
jmp 0x413f6c
xor eax, eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x20]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push ebx
call fcn.00402dcd
add esp, 4
mov dword [esp + 0x1c], 0
lea ecx, [esi + ebx*2]
lea edx, [esp + 0x1c]
call fcn.00402e4b
cmp ebp, 8
jb 0x413fdd
mov eax, dword [edi]
lea ecx, [ebp*2 + 2]
cmp ecx, 0x1000
jb 0x413fc5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413fd7
mov eax, edx
push ecx
push eax
call fcn.00422996
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [edi], eax
jmp 0x413ffa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [esp + 0x10]
call fcn.00402cf0
mov ecx, edi
mov esi, eax
call fcn.00402cf0
mov edx, eax
call fcn.00402af0
mov ecx, dword [esi]
mov dword [eax], ecx
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004226d8
add esp, 0x220
ret
mov ecx, dword [esp + 0x228]
xor al, al
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004226d8
add esp, 0x220
ret
call fcn.00403000
int3
Function at 0x416000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x441008]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x41607e
cmp dword [esp + 0x14], 6
jb 0x41607e
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.00415e60
add esp, 0xc
test al, al
je 0x41607e
cmp word [esi], 0
jne 0x4160d6
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.00415e60
add esp, 0xc
test al, al
je 0x4160aa
cmp word [esi], 0
jne 0x4160d6
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.00415e60
add esp, 0xc
test al, al
je 0x4160eb
cmp word [esi], 0
je 0x4160eb
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004226d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.004226d8
mov esp, ebp
pop ebp
ret
Function at 0x4166c0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.00430e90
push 0xffffffffffffffff
push 0x4334e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x441008]
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 sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x4168c1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x4168c1
push esi
call edi
cmp eax, 0xffa
jge 0x4168c1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x436c60
lea eax, [ebp + 0x630]
push eax
call esi
push 0x4374e4
lea ecx, [ebp - 0x2c]
call fcn.00402c19
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00415240
mov ecx, eax
call fcn.00415300
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402b04
test esi, esi
je 0x4168c1
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4168c1
lea ecx, [ebp]
call fcn.00416100
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x4167e6
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push 0x437394
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x4167f4
inc edi
add esi, 0x210
cmp edi, 3
jl 0x4167c5
jmp 0x416816
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x41680e
add ebx, 0x10
test ebx, ebx
jne 0x4168bd
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push 0x437394
push 0
call edi
cmp eax, 0x20
ja 0x4168b8
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 sub.VCRUNTIME140.dll_memset
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 0x4168ae
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push 0x437394
push 0
call edi
cmp eax, 0x20
ja 0x4168b8
inc esi
cmp esi, 2
jb 0x416850
mov eax, ebx
jmp 0x4168c3
mov ebx, 0x10
mov eax, ebx
jmp 0x4168c3
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.004226d8
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x41b520
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x441008]
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 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 0x41b5b7
cmp dword [esp + 8], 6
jb 0x41b5b7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004226d8
add esp, 0x118
ret

Function at 0x41b5d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x441008]
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.00402c19
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00415240
mov ecx, eax
call fcn.00415300
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00402c19
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00415240
mov ecx, eax
call fcn.00415300
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402b04
test ebx, ebx
je 0x41b6e5
test esi, esi
je 0x41b6e5
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 0x41d200
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov bh, byte [ecx + 0x100]
push ebp
mov ebp, dword [esp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0xc], edx
mov dl, byte [ecx + 0x101]
test ebp, ebp
je 0x41d259
push esi
nop
inc bh
movzx esi, bh
mov bl, byte [esi + ecx]
add dl, bl
mov byte [esp + 0x18], dl
movzx edx, dl
movzx eax, byte [edx + ecx]
mov byte [esi + ecx], al
mov byte [edx + ecx], bl
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + ecx]
xor byte [edi + edx], al
inc edi
mov dl, byte [esp + 0x18]
cmp edi, ebp
jb 0x41d220
pop esi
pop edi
pop ebp
mov byte [ecx + 0x101], bh
mov byte [ecx + 0x100], bh
pop ebx
pop ecx
ret