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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4d304c]
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 esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00410220
test al, al
jne 0x410d3f
xor bl, bl
jmp 0x410e9e
lea ecx, [ebp - 0x58]
call fcn.0040e440
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x410d5e
push ecx
lea ecx, [ebp - 0x58]
call fcn.004112c0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040f9f0
test al, al
jne 0x410d76
xor bl, bl
jmp 0x410e92
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x58]
call fcn.0040f000
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
je 0x410e84
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
push 0
push 0
push 0
call fcn.0041bac0
test al, al
je 0x410e84
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push edx
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x14], 0
call fcn.0041b9c0
test al, al
je 0x410e84
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
cmp dword [ebp - 0x14], eax
jne 0x410e84
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub edi, ebx
mov eax, dword [esi]
mov dword [ebp - 0x30], edi
test eax, eax
je 0x410e84
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x410e84
push 0
lea ecx, [ebp - 0x14]
push ecx
push 4
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410e84
cmp dword [ebp - 0x14], 4
jne 0x410e84
cmp ebx, dword [ebp - 0x28]
je 0x410e51
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push edi
push ebx
call fcn.0041b9c0
test al, al
je 0x410e84
cmp dword [ebp - 0x14], edi
jne 0x410e84
cmp dword [esi], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
je 0x410e80
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
push 1
push 0
push 0
call fcn.0041bac0
test al, al
je 0x410e80
push dword [ebp - 0x5c]
mov ecx, esi
push dword [ebp - 0x60]
call fcn.0041bb50
mov bl, 1
jmp 0x410e86
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004128c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00411190
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004128c0
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.00476b97
mov esp, ebp
pop ebp
ret 4
Function at 0x411040
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c838
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d304c]
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 eax, dword [ebp + 8]
mov ecx, eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x80
push dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x14]
push esi
push edi
call fcn.0041b890
mov bl, al
test bl, bl
jne 0x41116b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, 0x50000000
je 0x41111e
call eax
cmp eax, 5
jne 0x411119
push 0x80
mov ecx, edi
call fcn.004070c0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
jne 0x4110fe
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0041c740
test al, al
je 0x4110ef
push 0x80
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call fcn.0041b890
mov bl, al
test bl, bl
jne 0x41116b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x21
je 0x41112a
cmp eax, 0x20
jne 0x41116b
xor esi, esi
nop dword [eax]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0041b890
mov bl, al
test bl, bl
jne 0x41116b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x411165
cmp eax, 0x20
jne 0x41116b
inc esi
cmp esi, 0x28
jb 0x411130
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.00476b97
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4157c0
Capabilities:
Check if file exists

Disassembly:
cmp dword [ecx + 0x38], 0
jge fcn.00415940
jmp fcn.004157d0

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

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x4c5be0
push 0x4785d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4d304c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x428]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.00479a50
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.004155e0
cmp byte [edi + 0x30], bl
je 0x415882
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4158a7
test al, 0x10
jne 0x4158a7
call fcn.0041fd80
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.00420070
test al, al
je 0x4158a7
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x4158ab
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x41590c
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4158da
mov dword [edi + 0x34], esi
push edi
push 0x415480
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call eax
add esp, 0x14
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x4158ff
test esi, esi
je 0x41590a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
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 + 0x414]
xor ecx, ebp
call fcn.00476b97
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x415940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x4c5c00
push 0x4785d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4d304c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x428]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.00479a50
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.004155e0
cmp byte [edi + 0x30], bl
je 0x4159f2
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415a17
test al, 0x10
jne 0x415a17
call fcn.0041fd80
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.00420070
test al, al
je 0x415a17
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x415a1b
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x415a7f
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415a4d
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x415480
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call eax
add esp, 0x18
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x415a72
test esi, esi
je 0x415a7d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
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 + 0x414]
xor ecx, ebp
call fcn.00476b97
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x419430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dc78
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d304c]
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 edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.0041bac0
test al, al
jne 0x419490
mov eax, 1
jmp 0x41960d
push 0x10000
call fcn.004772cc
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.00479a50
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4195e6
test ebx, ebx
je 0x4195e6
cmp dword [eax], 0xffffffff
je 0x4195e6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4195e6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x4195dc
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.0042c2f0
test al, al
je 0x4195cf
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x419582
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x419571
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x4195dc
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x41958c
add ebx, eax
cmp ebx, 0x8000
je 0x41959c
cmp dword [ebp - 0x28], 0xf
ja 0x4195c5
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x419520
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4195be
add ecx, 4
add esi, 4
sub edx, 4
jae 0x4195a6
mov esi, 4
jmp 0x4195f7
mov esi, 5
jmp 0x4195f7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x4195f7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x4195f1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x4195f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x41960b
push ebx
call fcn.004770cc
add esp, 4
mov eax, esi
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.00476b97
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b980
Capabilities:
Read file on windows

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

Function at 0x41b9c0
Capabilities:
Write file on windows

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

Function at 0x41ba40
Capabilities:
Get file size

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

Function at 0x41bb50
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 0x41bbfe
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.0041bac0
test al, al
je 0x41bbfe
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.0041bac0
test al, al
je 0x41bbfe
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x41bbd4
cmp dword [esp + 0x14], edi
jne 0x41bbd4
mov eax, dword [esi]
test eax, eax
jne 0x41bbc1
xor bl, bl
jmp 0x41bbd4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41bbbd
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.0041bac0
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 0x41bc10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c328
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d304c]
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.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41bc59
mov al, 1
jmp 0x41bca1
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041c740
test al, al
je 0x41bc8e
push esi
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41bc8e
mov bl, 1
jmp 0x41bc90
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
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.00476b97
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c328
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d304c]
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.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41bd3e
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041c740
test al, al
je 0x41bd2d
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
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.00476b97
mov esp, ebp
pop ebp
ret
Function at 0x41bf70
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e198
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4d304c]
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.004070c0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x41bfb6
mov al, 1
jmp 0x41c108
mov ecx, esi
call fcn.004070c0
push eax
lea ecx, [ebp - 0x28]
call fcn.00407220
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0041bcc0
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
cmp ebx, 0xffffffff
jne 0x41bff5
xor al, al
jmp 0x41c108
mov ecx, esi
call fcn.004070c0
push eax
lea ecx, [ebp - 0x28]
call fcn.00407220
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.004070c0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x41c027
xor bl, bl
jmp 0x41c071
lea ecx, [ebp - 0x40]
call fcn.00407260
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041c740
test al, al
je 0x41c063
push 0
lea ecx, [ebp - 0x40]
call fcn.004070c0
push eax
call ebx
test eax, eax
je 0x41c063
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407180
xor bl, bl
jmp 0x41c071
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00407180
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
test bl, bl
jne 0x41bfee
mov ecx, esi
call fcn.004070c0
push eax
call edi
test eax, eax
jne 0x41bfaf
lea ecx, [ebp - 0x28]
call fcn.00407260
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041c740
test al, al
je 0x41c0ca
lea ecx, [ebp - 0x28]
call fcn.004070c0
push eax
call edi
test eax, eax
je 0x41c0ca
mov bl, 1
jmp 0x41c0f7
mov ecx, esi
call fcn.004070c0
push eax
lea ecx, [ebp - 0x40]
call fcn.00407220
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.0041bc10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00407180
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
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.00476b97
mov esp, ebp
pop ebp
ret
Function at 0x41c130
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x624]
sub esp, 0x624
push 0xffffffffffffffff
push 0x49e1c8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4d304c]
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 [0x4d6578]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0x4d6578
test eax, eax
je 0x41c185
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, 0x4d6554
call fcn.004070b0
test al, al
jne 0x41c1e0
mov ecx, 0x4d6554
call fcn.004073c0
cmp esi, eax
je 0x41c1c2
call fcn.004073c0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x41c1b7
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
mov ecx, esi
call fcn.00407470
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4d6578]
test eax, eax
je 0x41c1d9
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x41c2a7
push 0x20c
lea eax, [ebp + 0x414]
push 0
push eax
call fcn.00479a50
add esp, 0xc
lea eax, [ebp + 0x414]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x41c28e
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x61e], ax
lea eax, [ebp]
push eax
call fcn.00479a50
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 0x41c272
test eax, eax
je 0x41c272
add eax, eax
cmp eax, 0x412
jae 0x41c2cf
xor ecx, ecx
mov word [ebp + eax], cx
lea eax, [ebp]
push eax
call fcn.004075d0
add esp, 4
push eax
lea eax, [ebp]
push eax
jmp 0x41c1bb
lea eax, [ebp + 0x414]
push eax
call fcn.004075d0
add esp, 4
push eax
lea eax, [ebp + 0x414]
push eax
jmp 0x41c1bb
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4d6578]
test eax, eax
je 0x41c2a5
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.00476b97
lea esp, [ebp + 0x624]
pop ebp
ret
call fcn.004771f2
int3

Function at 0x41c2e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4d304c]
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.00479a50
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.004070c0
push eax
mov ecx, edi
call fcn.004070c0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41c375
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.004075d0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407470
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00476b97
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00476b97
add esp, 0x210
ret
Function at 0x41c810
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4d304c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00476ba8
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.00479a50
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 0x41c86c
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.00476b97
add esp, 0x120
ret