joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004cfc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
mov ecx, 0x100c2ae8
push edi
call fcn.10071035
cmp dword [esi + 0x38], 0
je 0x1004d078
cmp byte [esi + 0x3d], 0
je 0x1004d078
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1004d029
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1004d03c
sub eax, 1
je 0x1004d040
sub eax, 2
je 0x1004d078
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1006efdc
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1004d060
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1004d029
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1006efdc
add esp, 0x28
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.1006efdc
add esp, 0x28
ret
Function at 0x1004f260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov ecx, 0x100c2ae4
call fcn.10071035
mov esi, dword [edi]
movzx eax, byte [esi]
cmp byte [eax + 0x10091e68], 0
je 0x1004f28e
nop
movzx eax, byte [esi + 1]
inc esi
cmp byte [eax + 0x10091e68], 0
jne 0x1004f280
mov dword [edi], esi
mov ecx, esi
mov dl, byte [esi]
movzx eax, dl
mov dword [esp + 8], ecx
cmp byte [eax + 0x10091a68], 0
je 0x1004f428
nop dword [eax + eax]
cmp dl, 0x26
jne case.0x1004f2d0.36
movsx eax, byte [esi + 1]
add eax, 0xffffffdd
cmp eax, 0x4e
ja case.0x1004f2d0.36
movzx eax, byte [eax + 0x1004f468]
jmp dword [eax*4 + 0x1004f450]
mov al, byte [esi + 2]
cmp al, 0x6d
jne 0x1004f2fe
cmp byte [esi + 3], 0x70
jne case.0x1004f2d0.36
cmp byte [esi + 4], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x26
inc ecx
add esi, 5
jmp 0x1004f412
cmp al, 0x70
jne case.0x1004f2d0.36
cmp byte [esi + 3], 0x6f
jne case.0x1004f2d0.36
cmp byte [esi + 4], 0x73
jne case.0x1004f2d0.36
cmp byte [esi + 5], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x27
inc ecx
add esi, 6
jmp 0x1004f412
cmp byte [esi + 2], 0x75
jne case.0x1004f2d0.36
cmp byte [esi + 3], 0x6f
jne case.0x1004f2d0.36
cmp byte [esi + 4], 0x74
jne case.0x1004f2d0.36
cmp byte [esi + 5], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x22
inc ecx
add esi, 6
jmp 0x1004f412
cmp byte [esi + 2], 0x74
jne case.0x1004f2d0.36
cmp byte [esi + 3], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x3e
inc ecx
add esi, 4
jmp 0x1004f412
cmp byte [esi + 2], 0x74
jne case.0x1004f2d0.36
cmp byte [esi + 3], 0x3b
jne case.0x1004f2d0.36
mov byte [ecx], 0x3c
inc ecx
add esi, 4
jmp 0x1004f412
mov cl, byte [esi + 2]
xor edx, edx
cmp cl, 0x78
jne 0x1004f3d0
movzx eax, byte [esi + 3]
add esi, 3
mov al, byte [eax + 0x10091b68]
cmp al, 0xff
je 0x1004f3f7
inc esi
movzx eax, al
shl edx, 4
add edx, eax
movzx eax, byte [esi]
mov al, byte [eax + 0x10091b68]
cmp al, 0xff
jne 0x1004f3b8
jmp 0x1004f3f7
movzx eax, cl
add esi, 2
mov al, byte [eax + 0x10091b68]
cmp al, 0xff
je 0x1004f3f7
movzx eax, al
lea ecx, [edx + edx*4]
inc esi
lea edx, [eax + ecx*2]
movzx eax, byte [esi]
mov al, byte [eax + 0x10091b68]
cmp al, 0xff
jne 0x1004f3e0
lea ecx, [esp + 8]
call fcn.1004f880
cmp byte [esi], 0x3b
jne 0x1004f432
mov ecx, dword [esp + 8]
inc esi
jmp 0x1004f416
mov al, byte [esi]
mov byte [ecx], al
inc ecx
inc esi
mov dword [esp + 8], ecx
mov dl, byte [esi]
movzx eax, dl
cmp byte [eax + 0x10091a68], 0
jne 0x1004f2b0
mov dword [edi], esi
mov eax, ecx
pop edi
pop esi
add esp, 0x18
ret
push esi
push str.expected__
lea ecx, [esp + 0x14]
call fcn.1004abc0
push 0x100ba028
lea eax, [esp + 0x10]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
popfd
add al, 16
xlatb
add al, 16
add al, 0x10
test bl, dh
add al, 16
xor bl, dh
add al, 16
or al, 0xf4
add al, 16
add byte [0x5050505], al
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215045
add eax, 84215041
add eax, 84214277
add eax, 84214533
add eax, -859044859
int3
Function at 0x1005c570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b5668
push 0x1006fb3c
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x100bd024]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x438], esi
mov ecx, 0x100c3579
call fcn.10071035
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1005c5d3
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.1005c6b0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1005c60e
test bl, bl
jne 0x1005c68d
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1005c623
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005c660
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10004e60
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret

Function at 0x1005cb30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
mov esi, ecx
mov ecx, 0x100c3579
call fcn.10071035
push 0x110
lea eax, [esp + 0x18]
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 0x1005cbb8
cmp dword [esp + 0x14], 6
jb 0x1005cbb8
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, connect
call fcn.1005c8e0
add esp, 0xc
test al, al
je 0x1005cbb8
cmp word [esi], 0
jne 0x1005cc10
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, connect
call fcn.1005c8e0
add esp, 0xc
test al, al
je 0x1005cbe4
cmp word [esi], 0
jne 0x1005cc10
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, connect
call fcn.1005c8e0
add esp, 0xc
test al, al
je 0x1005cc25
cmp word [esi], 0
je 0x1005cc25
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x1005d150
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.10070200
push 0xffffffffffffffff
push 0x10085e9f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100bd024]
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
mov ecx, 0x100c3579
call fcn.10071035
push 0x2000
lea eax, [ebp + 0x630]
mov dword [ebp - 0x10], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x1005d379
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x1005d379
push esi
call edi
cmp eax, 0xffa
jge 0x1005d379
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x10092a34
lea eax, [ebp + 0x630]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x30]
call fcn.10004850
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.10060da0
mov ecx, eax
call fcn.10060e90
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1005d379
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1005d379
lea ecx, [ebp]
call fcn.1005cc40
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x1005d296
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call ebx
cmp eax, 0x20
ja 0x1005d2a4
inc edi
add esi, 0x210
cmp edi, 3
jl 0x1005d276
jmp 0x1005d2c9
imul eax, edi, 0x210
cmp dword [ebp + eax + 0x208], 0
mov eax, dword [ebp + eax + 0x20c]
jne 0x1005d2be
add eax, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1005d37b
push 1
push 0
push 0
lea eax, [ebp + 0x630]
push eax
push str.open
push 0
call ebx
cmp eax, 0x20
jbe 0x1005d2ee
mov eax, 0x10
jmp 0x1005d37b
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor esi, esi
mov dword [ebp - 0x18], str._programfiles_x86__Internet_Exploreriexplore.exe
mov dword [ebp - 0x14], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax]
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 - 0x18]
call edi
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005d36e
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call ebx
cmp eax, 0x20
ja 0x1005d2e4
inc esi
cmp esi, 2
jb 0x1005d310
mov eax, dword [ebp - 0x10]
jmp 0x1005d37b
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.1006efdc
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x1005f0a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086678
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100bd024]
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 edi, dword [ebp + 8]
mov ecx, 0x100c3579
call fcn.10071035
mov eax, dword [esi]
test eax, eax
je 0x1005f0ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1006c210
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1005f116
add eax, 8
jmp 0x1005f118
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x1005f128
cmp dword [edi + 0x14], 8
jb 0x1005f12a
mov edi, dword [edi]
jmp 0x1005f12a
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1005f14b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005f14b
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1006c3d0
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.1006efdc
mov esp, ebp
pop ebp
ret 4
Function at 0x1005f180
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100866a8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100bd024]
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 edi, dword [ebp + 8]
mov ecx, 0x100c3579
call fcn.10071035
mov eax, dword [esi]
test eax, eax
je 0x1005f1cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1006c2f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1005f1f7
lea ebx, [eax + 8]
jmp 0x1005f1f9
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x1005f20b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1005f20d
mov eax, dword [edi]
jmp 0x1005f20d
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x1005f256
call ecx
cmp eax, 5
jne 0x1005f250
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x10], 0
je 0x1005f242
cmp dword [edi + 0x14], 8
jb 0x1005f244
mov edi, dword [edi]
jmp 0x1005f244
xor edi, edi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x1005f274
call ecx
cmp eax, 0xb7
jne 0x1005f269
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.10067600
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1006c3d0
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.1006efdc
mov esp, ebp
pop ebp
ret 4

Function at 0x10063760
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x100bd024]
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, 0x100c3579
call fcn.10071035
mov esi, dword [esp + 0x24]
xor ebx, ebx
cmp dword [ebp + 0x10], 0xffffffff
je 0x100637e2
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 0x100637e2
test ecx, ecx
je 0x100637de
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x100637a0
xor eax, eax
jmp 0x100637e7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x100637f1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1006efdc
add esp, 0xc
ret 0xc
Function at 0x10064e10
Capabilities:
Write file on windows

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

Function at 0x10064ed0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x100c3579
push edi
mov edi, dword [esp + 0x14]
call fcn.10071035
mov eax, dword [esi]
test eax, eax
je 0x10064f3f
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10064f3f
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10064f1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10064f3f
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.1006efdc
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1006efdc
add esp, 8
ret 4

Function at 0x10065030
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov ecx, 0x100c3579
push edi
call fcn.10071035
cmp dword [esi], 0
je 0x100650ea
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
mov ecx, esi
movlpd qword [esp + 0x28], xmm0
call fcn.10064f60
test al, al
je 0x100650ea
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.10064f60
test al, al
je 0x100650ea
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x100650c0
cmp dword [esp + 0x14], edi
jne 0x100650c0
mov eax, dword [esi]
test eax, eax
jne 0x100650ad
xor bl, bl
jmp 0x100650c0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100650a9
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.10064f60
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 0x10065130
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008814f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100bd024]
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, 0x100c3579
call fcn.10071035
cmp esi, 0xffffffff
jne 0x10065172
xor al, al
jmp 0x100651e9
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x10065182
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x10065194
mov al, 1
jmp 0x100651e9
lea ecx, [ebp - 0x28]
call fcn.10004900
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.100657b0
test al, al
je 0x100651c8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x100651c8
mov bl, 1
jmp 0x100651ca
xor bl, bl
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10004d00
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.1006efdc
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100881b6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100bd024]
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, 0x100c3579
call fcn.10071035
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10065250
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100652d4
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.100657b0
test al, al
je 0x100652b7
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.10004d00
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.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x10065420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100882bc
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100bd024]
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, 0x100c3579
call fcn.10071035
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10065461
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10065475
mov al, 1
jmp 0x100655af
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1006547f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004850
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10065210
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
jne 0x100654c8
xor al, al
jmp 0x100655af
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100654d2
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.10004850
mov dword [ebp - 4], 5
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10065130
mov bl, al
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x100654c1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1006551c
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x1006546e
lea ecx, [ebp - 0x28]
call fcn.10004900
mov dword [ebp - 4], 0xa
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100657b0
test al, al
je 0x1006555a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x1006555a
mov bl, 1
jmp 0x10065590
cmp dword [esi + 0x14], 8
jb 0x10065562
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x48]
call fcn.10004850
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x30]
call fcn.10065130
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x48]
call fcn.10004d00
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 0xa
xor bl, bl
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.10004d00
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.1006efdc
mov esp, ebp
pop ebp
ret
Function at 0x10065c30
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x10088475
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100bd024]
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, 0x100c3579
mov dword [ebp - 0x10], esi
call fcn.10071035
mov dword [ebp - 4], 0
push 1
call fcn.1006efed
mov dword [esi], eax
push pe_nt_image_headers32
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 0x10065cbd
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.1006efdc
lea esp, [ebp + 0x120]
pop ebp
ret
Function at 0x1006cf80
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100bd024]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x100c3579
push edi
mov edi, dword [esp + 0x14]
call fcn.10071035
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1006cff1
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 0x1006cfcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006cff1
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.1006efdc
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1006efdc
add esp, 8
ret 4