joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec670
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4ec69f
push esi
call fcn.004ec850
add esp, 4
cmp byte [esi + 0x40], 0
je 0x4ec698
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x4ec722
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x4ec70d
mov eax, dword [esi + 8]
test eax, eax
je 0x4ec6c5
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x4ec708
cmp eax, 2
je 0x4ec70d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ec6b6
cmp eax, 3
je 0x4ec6ed
cmp eax, 1
jne 0x4ec6b6
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x4ec6b6
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x4ec6b6
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004ec750
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x4ec744
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.004ec750
add esp, 4
pop edi
pop esi
ret

Function at 0x4ec750
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x4ec77c
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x4ec802
lea ebx, [esi + 0x78]
jmp 0x4ec790
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x4ec7d6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ec7b5
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x4ec818
cmp eax, dword [esi + 0x60]
jb 0x4ec797
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x4ec790
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4ed990
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.004f9bb0
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.004f9b80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ed9d7
push edi
call fcn.004f9bc0
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.004ed620
mov dword [esi + 4], fcn.004ed4b0
mov dword [esi + 8], fcn.004ed580
mov dword [esi + 0xc], fcn.004ed400
mov dword [esi + 0x10], 0x4edcf0
mov dword [esi + 0x14], 0x4edc80
mov dword [esi + 0x18], 0x4edae0
mov dword [esi + 0x1c], 0x4ed2b0
mov dword [esi + 0x20], 0x4ed160
mov dword [esi + 0x24], 0x4ed890
mov dword [esi + 0x28], 0x4edd60
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x4edaba
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x4edaba
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x4edaa9
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x4edab1
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x4f1280
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x4f12a5
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x4f12ab
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x4f13c0
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x4f12fd
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x4f1356
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x4f1340
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x4f1320
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4f13a1
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x4f1380
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x4f1380
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x4f12e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x506206
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x6ab490], 0
push ebx
push esi
mov esi, 0x6ab498
jne 0x506232
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x6ab4b0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x6ab490], 1
push dword [0x6ab4b0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5062cf
push 0x14
push 8
push dword [0x6317f4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x5062f9
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6ab494]
test eax, eax
je 0x506274
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x6ab494], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x5062fe
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x6ab4b0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x6317f4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5062f9
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x516b4f6c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x4f364ab5
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x404cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
test eax, eax
je 0x404d59
xor ecx, ecx
cmp cx, word [eax]
je 0x404d59
xor ebx, ebx
cmp dword [esi + 0x20], ebx
je 0x404cf3
mov eax, 0xb7
jmp 0x404d5c
push edi
push ebx
push 0xa0
push dword [ebp + 0xc]
mov edi, ebx
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x404d23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esi + 0x20], ebx
jmp 0x404d54
cmp dword [ebp + 0xc], 3
jne 0x404d36
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x404d54
cmp dword [ebp + 0xc], 2
jne 0x404d54
push ebx
lea ecx, [ebp + 8]
mov word [ebp + 0xc], 0xfeff
push ecx
push 2
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
pop edi
jmp 0x404d5c
push 0x57
pop eax
pop esi
pop ebx
pop ebp
ret 8

Function at 0x405768
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
and dword [esp + 0x10], esi
and dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov eax, dword [edi + 0x438]
test eax, eax
je 0x40579a
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x57
pop ebx
mov ecx, edi
call dword [edi + 0x458]
test al, al
je 0x405851
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x405851
xor ecx, ecx
cmp cx, word [eax]
je 0x405851
mov ecx, edi
call fcn.00404d96
mov ebx, eax
test ebx, ebx
je 0x4057d8
cmp ebx, 0xb7
jne 0x405851
lea eax, [esp + 0xc]
mov ecx, edi
push eax
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405170
mov esi, dword [esp + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x405851
test esi, esi
jne 0x40580b
push 0xe
pop ebx
jmp 0x405851
push esi
call fcn.0041889d
pop ecx
push 0
lea ecx, [esp + 0x18]
add eax, eax
push ecx
push eax
push esi
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [edi + 0x448], 1
mov dword [esp + 0x10], eax
je 0x405845
xor ecx, ecx
cmp cx, word [esi]
je 0x405845
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405851
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [edi + 0x20], 0
je 0x405864
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x20], 0
test esi, esi
je 0x40586f
push esi
call fcn.004185f8
pop ecx
mov eax, dword [edi + 0x438]
test eax, eax
je 0x405880
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x405b6a
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x405c3a
xor eax, eax
cmp ax, word [esi]
je 0x405c3a
push esi
call fcn.0041889d
pop ecx
cmp eax, 3
jbe 0x405c3a
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004154f0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x43cec4
push esi
push 0x43cfb0
push 0x104
push eax
call fcn.00405b2e
add esp, 0x14
lea ecx, [ebp - 0x210]
mov edx, edi
call fcn.0040627e
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x405c36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x405c19
cmp eax, 0x91
jne 0x405c36
push ecx
mov ecx, esi
call fcn.00406179
neg eax
pop ecx
sbb eax, eax
inc eax
test edi, edi
je 0x405c34
test eax, eax
je 0x405c34
xor edi, edi
inc edi
jmp 0x405c36
xor edi, edi
mov eax, edi
jmp 0x405c3c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041352c
leave
ret
Function at 0x405e88
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x940
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x104
mov dword [ebp - 0x938], edx
push esi
xor ebx, ebx
mov dword [ebp - 0x934], ecx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.004154f0
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x406038
push edi
push str.WinInit.Ini
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00405d4a
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40602e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x930], eax
test eax, eax
je 0x405fc0
lea ecx, [eax + 1]
mov dword [ebp - 0x92c], ebx
push 1
push ecx
lea eax, [ebp - 0x92c]
mov esi, ebx
push eax
call fcn.00405ddc
add esp, 0xc
test eax, eax
js 0x4060cc
push dword [ebp - 0x92c]
call fcn.00418770
mov esi, eax
pop ecx
test esi, esi
je 0x4060cc
push ebx
lea eax, [ebp - 0x92c]
mov dword [ebp - 0x92c], ebx
push eax
push dword [ebp - 0x930]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4060cc
mov eax, dword [ebp - 0x92c]
push str._Rename_
push esi
mov byte [eax + esi], bl
call fcn.00416600
pop ecx
pop ecx
test eax, eax
jne 0x406046
push str._rename_
push esi
call fcn.00416600
pop ecx
pop ecx
test eax, eax
jne 0x406046
push esi
call fcn.004185f8
pop ecx
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x410
lea eax, [ebp - 0x928]
push esi
push ebx
push eax
call fcn.004154f0
push dword [ebp - 0x934]
lea eax, [ebp - 0x928]
push dword [ebp - 0x938]
push str._r_n_rename__r_n_s_s_r_n
push esi
push eax
call fcn.00405e2b
lea eax, [ebp - 0x928]
mov dword [ebp - 0x940], ebx
push eax
call fcn.00418620
add esp, 0x24
lea ecx, [ebp - 0x940]
push ebx
push ecx
push eax
lea eax, [ebp - 0x928]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test edi, edi
je 0x406035
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041352c
leave
ret
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x410
lea eax, [ebp - 0x518]
push ebx
push eax
call fcn.004154f0
mov ecx, dword [ebp - 0x930]
mov edx, str._s_s_r_n
push dword [ebp - 0x934]
mov eax, str._r_n_s_s_r_n
push dword [ebp - 0x938]
cmp byte [esi + ecx - 1], 0xa
cmove eax, edx
push eax
lea eax, [ebp - 0x518]
push 0x410
push eax
call fcn.00405e2b
lea eax, [ebp - 0x518]
mov dword [ebp - 0x93c], ebx
push eax
call fcn.00418620
add esp, 0x24
lea ecx, [ebp - 0x93c]
push ebx
push ecx
push eax
lea eax, [ebp - 0x518]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4060cc
xor ebx, ebx
inc ebx
push esi
call fcn.004185f8
pop ecx
jmp 0x40602a
Function at 0x406179
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x110
xor esi, esi
lea eax, [ebp - 0x328]
push esi
push eax
mov edi, ecx
call fcn.004154f0
add esp, 0xc
mov dword [ebp - 0x32c], 0x114
test edi, edi
je 0x40626c
xor eax, eax
cmp ax, word [edi]
je 0x40626c
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4061dd
push 0x11
jmp 0x40626e
xor ebx, ebx
mov ecx, edi
cmp dword [ebp - 0x31c], 2
sete bl
call fcn.00405c4a
test eax, eax
jne 0x406206
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebx, ebx
je 0x406224
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406268
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x406266
push 0x208
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.004154f0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edx, 0x43ced0
lea ecx, [ebp - 0x214]
call fcn.004060d8
test eax, eax
jne 0x406268
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
jmp 0x40626f
push 0x57
pop eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041352c
leave
ret

Function at 0x406432
Capabilities:
Create directory

Disassembly:
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x406484
push esi
call fcn.0041889d
pop ecx
cmp eax, 3
jbe 0x406484
push esi
call fcn.0041889d
pop ecx
cmp eax, 3
jbe 0x406466
mov ecx, esi
call fcn.00405a4c
test eax, eax
jne 0x406466
xor edx, edx
mov ecx, esi
call fcn.0040627e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406480
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406487
xor eax, eax
jmp 0x406487
push 0x57
pop eax
pop esi
pop ecx
ret
Function at 0x40648a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x446054]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4064bd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4064bd
test al, 0x10
jne 0x406533
push 0x5c
push esi
call fcn.0041686b
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x406533
push 0x5c
push esi
call fcn.00416556
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x406533
cmp ebx, edi
je 0x406528
mov ebx, 0x208
lea eax, [esp + 0x10]
push ebx
push 0
push eax
call fcn.004154f0
add esp, 0xc
lea eax, [esp + 0x10]
sub edi, esi
sar edi, 1
push edi
push esi
push 0x104
push eax
call fcn.004059ff
add edi, edi
cmp edi, ebx
jae 0x40654a
xor edx, edx
lea ecx, [esp + 0x10]
xor eax, eax
inc edx
mov word [esp + edi + 0x10], ax
call fcn.0040648a
test eax, eax
jne 0x406535
push ecx
mov ecx, esi
call fcn.00406432
pop ecx
jmp 0x406535
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041352c
mov esp, ebp
pop ebp
ret
call fcn.00413b25
int3

Function at 0x406550
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x406655
xor ebx, ebx
cmp word [esi], bx
je 0x406655
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406594
test al, 0x10
je 0x406594
mov eax, 0xb7
jmp 0x406658
push edi
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
push ebx
push eax
call fcn.004154f0
add esp, 0xc
lea eax, [ebp - 0x414]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004154f0
push 0x5c
push esi
call fcn.0041686b
add esp, 0x14
pop edi
test eax, eax
je 0x406624
cmp eax, esi
jne 0x40660d
mov ax, word [ebp - 0x414]
mov word [ebp - 0x20c], ax
mov ax, word [ebp - 0x412]
push esi
mov word [ebp - 0x20a], ax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040599a
jmp 0x406641
cmp word [esi + 2], 0x3a
jne 0x406624
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00405d0b
jmp 0x406641
push esi
lea eax, [ebp - 0x414]
push eax
push 0x43cfb0
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00405b2e
add esp, 0x14
lea ecx, [ebp - 0x20c]
call fcn.0040648a
neg eax
sbb eax, eax
and eax, 0x52
jmp 0x406658
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041352c
leave
ret
Function at 0x406831
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x446054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x40685b
xor ecx, ecx
cmp cx, word [eax]
je 0x406a34
mov eax, dword [edi + 0xc]
test eax, eax
je 0x406a34
xor ecx, ecx
cmp cx, word [eax]
je 0x406a34
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004154f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406a34
push str.McAfee_
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041dbf6
push str.MCLOGS
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041dbf6
push 0x43cfac
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041dbf6
add esp, 0x24
cmp dword [edi + 8], ebx
je 0x406901
push dword [edi + 8]
call fcn.0041889d
mov ebx, eax
mov dword [esp], 0x43cfac
call fcn.0041889d
pop ecx
add ebx, eax
push dword [edi + 0xc]
call fcn.0041889d
lea esi, [eax + 1]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041889d
add eax, ebx
add esi, eax
lea ebx, [esi + esi]
push ebx
call fcn.00418770
add esp, 0xc
mov dword [edi + 0x1c], eax
test eax, eax
je 0x406a30
push ebx
push 0
push eax
call fcn.004154f0
add esp, 0xc
lea eax, [ebp - 0x20c]
cmp dword [edi + 8], 0
push dword [edi + 0xc]
je 0x406965
push dword [edi + 8]
push eax
push str._s_s_s
push esi
push dword [edi + 0x1c]
call fcn.00406803
add esp, 0x18
jmp 0x406977
push eax
push str._s_s
push esi
push dword [edi + 0x1c]
call fcn.00406803
add esp, 0x14
push dword [edi + 0x1c]
call fcn.0041889d
mov esi, eax
mov dword [esp], str.log.ini
call fcn.0041889d
add esi, eax
mov dword [esp], 0x43cfac
call fcn.0041889d
inc eax
add esi, eax
lea ebx, [esi + esi]
push ebx
call fcn.00418770
mov dword [edi + 0x450], eax
pop ecx
pop ecx
test eax, eax
je 0x406a30
push ebx
push 0
push eax
call fcn.004154f0
mov ebx, str.log.ini
push ebx
push dword [edi + 0x1c]
push 0x43cfb0
push esi
push dword [edi + 0x450]
call fcn.00406803
push ebx
call fcn.0041889d
lea esi, [eax + 1]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041889d
add esi, eax
lea ebx, [esi + esi]
push ebx
call fcn.00418770
add esp, 0x2c
mov dword [edi + 0x44c], eax
test eax, eax
je 0x406a30
push ebx
push 0
push eax
call fcn.004154f0
push str.log.ini
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push esi
push dword [edi + 0x44c]
call fcn.00406803
add esp, 0x20
xor eax, eax
jmp 0x406a37
push 0xe
jmp 0x406a36
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041352c
leave
ret