joyce8/EMBER2024-capa huggingface dataset:
Function at 0x583774
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x583985
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00583994
mov eax, dword [0x68e4ac]
mov eax, dword [eax]
mov cl, 2
mov edx, 4
mov si, 0xfffa
call fcn.00404528
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x583955
mov dl, 1
mov eax, dword [0x4180c0]
call fcn.004042fc
mov esi, eax
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x583946
inc ebx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x18]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 4], 0
je 0x58393c
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3b
je 0x58393c
push 2
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 9
mov byte [ebp - 0x22], 0x2c
lea ecx, [ebp - 0x24]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00488b74
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
call fcn.004051f0
push 2
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 9
mov byte [ebp - 0x22], 0x2c
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00488b74
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
call fcn.004051f0
push 2
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 9
mov byte [ebp - 0x22], 0x2c
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00488b74
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.004051f0
push 2
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 9
mov byte [ebp - 0x22], 0x2c
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00488b74
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 4]
call fcn.004051f0
cmp dword [ebp - 4], 0
je 0x58393c
mov eax, 0x14
call fcn.00402f54
mov edi, eax
or edx, 0xffffffff
mov eax, dword [ebp - 0xc]
call fcn.0040a1d0
mov dword [edi], eax
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.0040a1d0
mov dword [edi + 4], eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0040a1d0
mov byte [edi + 8], al
lea eax, [ebp - 0x130]
mov edx, dword [ebp - 4]
mov ecx, 0xff
call fcn.00405404
lea edx, [ebp - 0x130]
lea eax, [edi + 9]
mov cl, 0xa
call fcn.0040396c
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.005836b0
inc dword [ebp - 0x18]
dec ebx
jne 0x583806
mov eax, esi
call fcn.0040432c
mov eax, dword [ebp - 0x1c]
call fcn.0040432c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58398c
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040517c
lea eax, [ebp - 0x20]
call fcn.00405158
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040517c
ret
Function at 0x59c998
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x59c9a0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004055e8
xor eax, eax
push ebp
push 0x59cbb3
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 9
lea ecx, [ebp - 0x24]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00488b74
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
call fcn.004051f0
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.004051f0
xor esi, esi
push 1
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 9
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00488b74
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
call fcn.004051f0
push 1
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 9
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00488b74
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.004051f0
push 1
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 9
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00488b74
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 4]
call fcn.004051f0
push 1
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 9
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00488b74
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 4]
call fcn.004051f0
mov edx, 0x59cbcc
mov eax, dword [ebp - 8]
call fcn.00409b78
test eax, eax
jne 0x59caae
mov esi, 1
jmp 0x59cadc
mov edx, 0x59cbd8
mov eax, dword [ebp - 8]
call fcn.00409b78
test eax, eax
jne 0x59cac6
mov esi, 2
jmp 0x59cadc
mov edx, 0x59cbe8
mov eax, dword [ebp - 8]
call fcn.00409b78
test eax, eax
jne 0x59cadc
mov esi, 3
test esi, esi
jle 0x59cb8b
mov edx, dword [0x59bcc8]
mov eax, 0x28
call fcn.00406310
mov ebx, eax
mov dword [ebx], esi
lea eax, [ebx + 4]
mov edx, dword [ebp - 0xc]
call fcn.004051ac
lea eax, [ebx + 8]
mov edx, dword [ebp - 0x10]
call fcn.004051ac
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.004051ac
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x18]
call fcn.004051ac
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0x1c]
call fcn.004051ac
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0040a1d0
mov dword [ebx + 0x14], eax
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0040a1d0
mov dword [ebx + 0x18], eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0040a1d0
mov dword [ebx + 0x1c], eax
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0040a1d0
mov dword [ebx + 0x20], eax
cmp dword [edi + 0x116], 0
jne 0x59cb7e
mov dl, 1
mov eax, dword [0x417c3c]
call fcn.004042fc
mov dword [edi + 0x116], eax
mov eax, dword [edi + 0x116]
mov edx, ebx
call fcn.0041a1b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59cbba
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.0040517c
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.0040517c
ret
Function at 0x5a56e8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor edi, edi
movzx eax, byte [ebx + 0x14]
sub al, 8
jae 0x5a5813
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x2b0]
cmp eax, 0xea60
jbe 0x5a572f
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x2b0], eax
mov eax, ebx
mov si, 0xfff0
call fcn.00404528
mov eax, ebx
call fcn.005a5690
mov edx, dword [ebx + 0x1f8]
test edx, edx
je 0x5a5774
mov ecx, dword [ebp - 8]
add ecx, dword [ebx + 0xf4]
add ecx, dword [ebx + 0xec]
push ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebx + 0x11c]
add ecx, dword [ebx + 0xf0]
push ecx
movzx ecx, byte [ebp + 0xc]
push ecx
push eax
push 0
mov ecx, edx
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.005a55ec
cmp byte [ebx + 0x188], 0
je 0x5a5813
cmp dword [ebx + 0x1d4], 0
jle 0x5a5813
xor eax, eax
mov edx, dword [ebx + 0x1b8]
dec edx
lea ecx, [ebp - 0x38]
mov ah, 0x20
call fcn.00403d9c
mov eax, dword [ebx + 0x1b0]
cmp eax, 0xff
ja 0x5a57b2
bt dword [ebp - 0x38], eax
jae 0x5a5813
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0x1d4]
dec eax
xor edx, edx
call fcn.005b34d8
mov eax, dword [ebx + 0x1b0]
add dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 0
je 0x5a57ec
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0048eb10
mov edi, eax
test edi, edi
je 0x5a5813
push edi
push 1
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x14]
add ecx, dword [ebx + 0xf0]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
add edx, dword [ebx + 0xec]
mov eax, dword [ebp - 4]
call fcn.005b8c5c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5a74d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [0x68eab8]
cmp eax, dword [edx]
jne 0x5a74fe
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x198]
cmp eax, 0xbb8
seta al
jmp 0x5a7517
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x198]
cmp eax, 0x7d0
seta al
test al, al
je 0x5a7529
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
xor ecx, ecx
mov dword [edx + 0x1c4], ecx
pop ebp
ret
Function at 0x5a8e1c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
cmp byte [ebx + 0x406], 0
je 0x5a8e43
movzx eax, byte [ebx + 0x14]
mov ecx, 3
xor edx, edx
div ecx
mov byte [ebx + 0x14], dl
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x2b0]
cmp eax, 0xea60
jbe 0x5a8e6b
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x2b0], eax
mov eax, ebx
mov si, 0xfff0
call fcn.00404528
mov eax, ebx
call fcn.005a5690
mov edx, dword [ebx + 0x1f8]
test edx, edx
je 0x5a8f1f
movzx ecx, word [ebx + 0x20]
cmp cx, 0x4c
jne 0x5a8eb4
push edx
push 1
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebx + 0x11c]
add ecx, dword [ebx + 0xf0]
mov edx, dword [ebp - 4]
add edx, dword [ebx + 0xf4]
add edx, dword [ebx + 0xec]
mov eax, edi
call fcn.005b8c5c
jmp 0x5a8f1f
cmp cx, 0x33
jne 0x5a8eec
mov ecx, dword [ebp - 4]
add ecx, dword [ebx + 0xf4]
add ecx, dword [ebx + 0xec]
push ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebx + 0x11c]
add ecx, dword [ebx + 0xf0]
push ecx
push 1
push eax
push 0
mov ecx, edx
mov eax, ebx
mov edx, edi
call fcn.005a55ec
jmp 0x5a8f1f
mov ecx, dword [ebp - 4]
add ecx, dword [ebx + 0xf4]
add ecx, dword [ebx + 0xec]
push ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebx + 0x11c]
add ecx, dword [ebx + 0xf0]
push ecx
movzx ecx, byte [ebp + 0xc]
push ecx
push eax
push 0
mov ecx, edx
mov eax, ebx
mov edx, edi
call fcn.005a55ec
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x5ab838
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [0x68eab8]
cmp eax, dword [edx]
jne 0x5ab866
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x198]
cmp eax, 0x1388
seta al
jmp 0x5ab87f
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x198]
cmp eax, 0xdac
seta al
test al, al
je 0x5ab891
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
xor ecx, ecx
mov dword [edx + 0x1c4], ecx
pop ebp
ret
Function at 0x40e7b4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412857
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403be0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00407620
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00405780
mov eax, dword [0x55a67c]
test eax, eax
je 0x403c49
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x403dcb
test byte [0x5549b4], 2
je 0x403c69
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x403c6e
cmp dword [ebx], 2
jl 0x403ca9
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.004c36e0
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.004c2ccc
call fcn.004c36e0
add eax, 0x40
push eax
call fcn.004c386f
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x5549b4], 1
je 0x403d48
xor edx, edx
xor ecx, ecx
call fcn.00403500
cmp dword [0x55a680], 0
jne 0x403cd8
push 0xffffffffffffffff
push dword [0x55a670]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x403ce4
push dword [0x55a688]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00403670
test al, al
je 0x403d25
push 2
push 0
push 0
push dword [0x55a668]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x55a668]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x55a680], 0
jne 0x403d3c
push dword [0x55a670]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x403d48
push dword [0x55a688]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x403dcb
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x403d7c
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004beea0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00415270
add esp, 4
cmp dword [0x55a678], 0
je 0x403dc1
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00405780
lea eax, [esp + 0x28]
push eax
call dword [0x55a678]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x403dcb
push dword [esp + 0x28]
call fcn.004814b9
add esp, 4
jmp 0x403dcb
cmp byte [0x55b9e0], 0
jne 0x403e18
int3
cmp dword [esp + 0x24], 0x10
jb 0x403dde
push dword [esp + 0x10]
call fcn.004814b9
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00404c30
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004bba15
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
push 1
call fcn.004c52a0
int3
Function at 0x40a150
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x40a18f
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40a1a9
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x40a20b
lea ecx, [esp + 0x28]
call fcn.00416300
mov edx, ecx
mov ecx, esi
call fcn.0040a980
test al, al
je 0x40a1f4
cmp byte [esp + 0x30], bl
je 0x40a1f4
cmp dword [esi + 0x14], 8
jb 0x40a1d4
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40a1fe
mov eax, dword [esi]
jmp 0x40a200
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a193
xor eax, eax
push 0x208
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.004bf4f0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40a22d
mov esi, dword [esi]
lea ecx, [esp + 0x50]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40a231
mov word [esp + 0x24], ax
xorps xmm0, xmm0
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
movq qword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x10], eax
mov eax, 0x414
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
test bl, bl
jne 0x40a286
mov eax, 0x1494
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x40a179
test eax, eax
je 0x40a2c7
cmp eax, 2
je 0x40a2c7
cmp eax, 0x402
je 0x40a2c7
cmp eax, 0x7c
je 0x40a2c7
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
pop ebx
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret

Function at 0x40a2e0
Capabilities:
Move file

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x40a2f0
mov eax, dword [esi]
jmp 0x40a2f2
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x40a2fa
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40a30b
mov al, 1
pop edi
pop esi
ret
cmp dword [edi + 0x14], 8
jb 0x40a313
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40a31b
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
pop edi
setne al
pop esi
ret
Function at 0x40a6f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a6fe
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a71e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a732
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x40a740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40a82e
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.004045f0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.00408670
mov ecx, eax
call fcn.00409020
cmp esi, eax
je 0x40a7b2
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004055a0
cmp dword [esp + 0x34], 8
jb 0x40a7c5
push dword [esp + 0x20]
call fcn.004814b9
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x1c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x40a7ef
push dword [esp + 8]
call fcn.004814b9
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x40a819
push dword [esp + 0x38]
call fcn.004814b9
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
xor al, al
pop esi
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x40a850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x40a87d
mov ebx, dword [edi]
jmp 0x40a87f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a8c1
test al, 0x10
je 0x40a8a3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40a8ad
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00408c20
cmp dword [edi + 0x14], 8
jb 0x40a8d7
mov eax, dword [edi]
jmp 0x40a8d9
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.00409b10
test eax, eax
jne 0x40a8fe
test esi, esi
je 0x40a948
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40a94e
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0040a850
test al, al
jne 0x40a911
xor bl, bl
jmp 0x40a94e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a94c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40a93b
push edi
call fcn.0040a710
add esp, 4
test al, al
jne 0x40a94c
test esi, esi
je 0x40a948
mov ecx, ebx
call fcn.00416340
mov dword [esi], eax
xor bl, bl
jmp 0x40a94e
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x40a961
push dword [esp + 0x14]
call fcn.004814b9
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret