joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4972b1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4ac28c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bf7f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004951d7
mov dword [ebp - 0x14], eax
cmp dword [0xabff94], esi
jne 0x4ac37f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4ac30c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ac45f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4ac45f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ac45f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xabff94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xabff98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xabff9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xabffa4], eax
test eax, eax
je 0x4ac37c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xabffa0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ac3a4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ac397
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4ac3b9
push 4
pop eax
jmp 0x4ac461
cmp dword [ebp - 0x14], esi
je 0x4ac3b9
push dword [0xabff94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4ac39e
mov eax, dword [0xabffa0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4ac417
cmp dword [0xabffa4], edi
je 0x4ac417
push eax
call ebx
push dword [0xabffa4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4ac417
test eax, eax
je 0x4ac417
call ecx
test eax, eax
je 0x4ac40c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4ac40c
test byte [ebp - 8], 1
jne 0x4ac417
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4ac447
mov eax, dword [0xabff98]
cmp eax, edi
je 0x4ac444
push eax
call ebx
test eax, eax
je 0x4ac444
call eax
mov esi, eax
test esi, esi
je 0x4ac444
mov eax, dword [0xabff9c]
cmp eax, edi
je 0x4ac444
push eax
call ebx
test eax, eax
je 0x4ac444
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xabff94]
call ebx
test eax, eax
je 0x4ac45f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4ac461
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049210b
mov esp, ebp
pop ebp
ret
Function at 0x4067c3
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x40789d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, str.D7F77FF8_15D8_4321_8DBF_BDBDE16EE4F0
push edi
mov edi, dword [ebp + 0x18]
push 1
push ebx
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x24c], edi
call fcn.0048c9d0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x248]
call fcn.00406626
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4079d0
test esi, esi
je 0x4079d0
mov eax, dword [ebp + 0xc]
cmp eax, 1
jb 0x4079d0
sub ecx, esi
mov dword [ebp - 0x250], eax
mov edi, esi
mov dword [ebp + 8], ecx
mov esi, ecx
mov al, byte [esi + edi]
lea ecx, [ebp - 0x248]
xor byte [ebp - 0x27], al
call fcn.004065a8
mov bl, al
lea ecx, [ebp - 0x248]
xor bl, byte [ebp - 0x27]
call fcn.004065a8
xor ecx, ecx
mov bh, al
inc ecx
add bh, bl
cmp dword [ebp - 0x38], ecx
jle 0x407963
mov esi, ecx
lea ecx, [ebp - 0x248]
call fcn.004065a8
lea ecx, [ebp - 0x248]
xor bh, al
call fcn.004065a8
add bh, al
inc esi
cmp esi, dword [ebp - 0x38]
jl 0x40793d
mov esi, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov byte [edi], bh
inc edi
sub dword [ebp - 0x250], 1
jne 0x40790e
mov edi, dword [ebp - 0x24c]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0x10
mov dword [edi + 0xc], eax
lea eax, [edi + 0x14]
mov dword [edi], 0x4752434d
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ecx
xor edi, edi
push edi
push eax
mov dword [ebp - 0x24c], eax
call fcn.00485260
pop ecx
pop ecx
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x14]
push eax
mov edx, ebx
call fcn.0040674c
pop ecx
pop ecx
test eax, eax
jne 0x4079d0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24c]
call fcn.00483a80
add esp, 0xc
jmp 0x4079d5
mov edi, 0x1770
lea ecx, [ebp - 0x248]
call fcn.00406711
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e22a
leave
ret 0x18
Function at 0x4079f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0x250], eax
mov esi, str.D7F77FF8_15D8_4321_8DBF_BDBDE16EE4F0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0x1c]
push 1
push esi
mov dword [ebp - 0x24c], eax
call fcn.0048c9d0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00406626
push 0x10
lea esi, [ebx + 0x14]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00483a80
add esp, 0xc
xor edi, edi
push 0x10
push edi
push esi
call fcn.00485260
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x250]
push eax
call fcn.00407093
pop ecx
pop ecx
test eax, eax
jne 0x407be8
mov ecx, dword [ebx + 8]
cmp dword [ebp + 0xc], ecx
jne 0x407be8
cmp dword [ebx], 0x4752434d
jne 0x407be8
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x407beb
mov esi, dword [eax]
mov dword [eax], ecx
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x407beb
mov edx, dword [ebx + 8]
mov dword [ebp - 0x25c], edx
cmp edx, esi
jbe 0x407acc
mov edi, 0xea
jmp 0x407beb
mov ecx, dword [ebp - 0x250]
test ecx, ecx
je 0x407be1
cmp edx, 1
jb 0x407be1
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x407be1
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x407be1
test edx, edx
jle 0x407beb
sub ecx, eax
mov dword [ebp - 0x250], ecx
mov ch, byte [ebp - 0x27]
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x24c], edi
jle 0x407b4b
lea ecx, [ebp - 0x248]
call fcn.004065a8
mov byte [ebx], al
lea ecx, [ebp - 0x248]
inc ebx
call fcn.004065a8
mov byte [esi], al
inc esi
inc edi
cmp edi, dword [ebp - 0x38]
jl 0x407b18
mov ch, byte [ebp - 0x27]
xor edi, edi
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x254]
mov edx, dword [ebp - 0x250]
mov cl, byte [edx + eax]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x25c]
add eax, esi
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x38]
dec eax
test eax, eax
jle 0x407bb6
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x34]
sub eax, esi
dec eax
add eax, dword [ebp - 0x24c]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x24c]
add eax, ebx
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x260]
sub cl, byte [eax]
xor cl, byte [edi + eax]
dec eax
dec dword [ebp - 0x258]
cmp dword [ebp - 0x258], 0
jg 0x407b9f
xor edi, edi
sub cl, byte [esi]
mov eax, dword [ebp - 0x254]
xor cl, ch
xor cl, byte [ebx]
xor ch, cl
mov byte [ebp - 0x27], ch
mov byte [eax], cl
inc eax
sub edx, 1
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x25c], edx
jne 0x407b0c
jmp 0x407beb
mov edi, 0x1771
jmp 0x407beb
push 0xd
pop edi
lea ecx, [ebp - 0x248]
call fcn.00406711
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e22a
leave
ret 0x18
Function at 0x407f37
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x40803c
xor ebx, ebx
cmp word [esi], bx
je 0x40803c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407f7b
test al, 0x10
je 0x407f7b
mov eax, 0xb7
jmp 0x40803f
push edi
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
push ebx
push eax
call fcn.00485260
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.00485260
push 0x5c
push esi
call fcn.00484022
add esp, 0x14
pop edi
test eax, eax
je 0x40800b
cmp eax, esi
jne 0x407ff4
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.00407db2
jmp 0x408028
cmp word [esi + 2], 0x3a
jne 0x40800b
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00407c94
jmp 0x408028
push esi
lea eax, [ebp - 0x414]
push eax
push 0x4d3788
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00407e74
add esp, 0x14
lea ecx, [ebp - 0x20c]
call fcn.0040804d
neg eax
sbb eax, eax
and eax, 0x52
jmp 0x40803f
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e22a
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x4f7108]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x408080
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408080
test al, 0x10
jne 0x4080f6
push 0x5c
push esi
call fcn.00484022
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4080f6
push 0x5c
push esi
call fcn.004857db
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4080f6
cmp ebx, edi
je 0x4080eb
mov ebx, 0x208
lea eax, [esp + 0x10]
push ebx
push 0
push eax
call fcn.00485260
add esp, 0xc
lea eax, [esp + 0x10]
sub edi, esi
sar edi, 1
push edi
push esi
push 0x104
push eax
call fcn.00407cd3
add edi, edi
cmp edi, ebx
jae 0x40810d
xor edx, edx
lea ecx, [esp + 0x10]
xor eax, eax
inc edx
mov word [esp + edi + 0x10], ax
call fcn.0040804d
test eax, eax
jne 0x4080f8
push ecx
mov ecx, esi
call fcn.00408113
pop ecx
jmp 0x4080f8
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047e22a
mov esp, ebp
pop ebp
ret
call fcn.0047e568
int3
Function at 0x408113
Capabilities:
Create directory

Disassembly:
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x408165
push esi
call fcn.00487778
pop ecx
cmp eax, 3
jbe 0x408165
push esi
call fcn.00487778
pop ecx
cmp eax, 3
jbe 0x408147
mov ecx, esi
call fcn.0040816b
test eax, eax
jne 0x408147
xor edx, edx
mov ecx, esi
call fcn.004081dd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408161
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408168
xor eax, eax
jmp 0x408168
push 0x57
pop eax
pop esi
pop ecx
ret

Function at 0x4081dd
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x4f7108]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
push 0x250
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], edx
push 0
push eax
mov esi, ecx
call fcn.00485260
add esp, 0xc
lea eax, [esp + 0x268]
push 0x208
push 0
push eax
call fcn.00485260
add esp, 0xc
test esi, esi
je 0x40837a
xor eax, eax
cmp ax, word [esi]
je 0x40837a
push esi
call fcn.00487778
pop ecx
cmp eax, 3
jbe 0x40837a
push esi
push 0x104
lea eax, [esp + 0x270]
push eax
call fcn.00407c94
lea eax, [esp + 0x268]
push 0x5c
push eax
call fcn.004857db
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40837a
lea eax, [esp + 0x18]
add ebx, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40837a
lea eax, [esp + 0x268]
mov ecx, ebx
sub ecx, eax
xor esi, esi
sar ecx, 1
mov eax, 0x104
inc esi
sub eax, ecx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x44]
push ecx
push eax
push ebx
call fcn.00407c94
test byte [esp + 0x18], 0x10
je 0x4082ea
push 0x2e
pop eax
cmp ax, word [esp + 0x44]
je 0x408353
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408353
mov edx, eax
lea ecx, [esp + 0x268]
call fcn.00408391
jmp 0x408344
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408353
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xf
je 0x408353
cmp eax, 2
je 0x408353
cmp eax, 3
je 0x408353
push ecx
lea ecx, [esp + 0x26c]
call fcn.00408471
neg eax
pop ecx
sbb eax, eax
inc eax
test esi, esi
je 0x408351
test eax, eax
je 0x408351
xor esi, esi
inc esi
jmp 0x408353
xor esi, esi
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x4082b1
test edi, edi
je 0x408376
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x40837c
xor eax, eax
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047e22a
mov esp, ebp
pop ebp
ret
Function at 0x408391
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f7108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x408461
xor eax, eax
cmp ax, word [esi]
je 0x408461
push esi
call fcn.00487778
pop ecx
cmp eax, 3
jbe 0x408461
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00485260
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x4d3780
push esi
push 0x4d3788
push 0x104
push eax
call fcn.00407e74
add esp, 0x14
lea ecx, [ebp - 0x210]
mov edx, edi
call fcn.004081dd
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 0x40845d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x408440
cmp eax, 0x91
jne 0x40845d
push ecx
mov ecx, esi
call fcn.00408471
neg eax
pop ecx
sbb eax, eax
inc eax
test edi, edi
je 0x40845b
test eax, eax
je 0x40845b
xor edi, edi
inc edi
jmp 0x40845d
xor edi, edi
mov eax, edi
jmp 0x408463
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047e22a
leave
ret

Function at 0x408471
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4f7108]
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.00485260
add esp, 0xc
mov dword [ebp - 0x32c], 0x114
test edi, edi
je 0x408564
xor eax, eax
cmp ax, word [edi]
je 0x408564
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4084d5
push 0x11
jmp 0x408566
xor ebx, ebx
mov ecx, edi
cmp dword [ebp - 0x31c], 2
sete bl
call fcn.00408576
test eax, eax
jne 0x4084fe
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 0x40851c
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x408560
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x40855e
push 0x208
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.00485260
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edx, 0x4d37a4
lea ecx, [ebp - 0x214]
call fcn.004085ee
test eax, eax
jne 0x408560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
jmp 0x408567
push 0x57
pop eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e22a
leave
ret
Function at 0x40868f
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 [0x4f7108]
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.00485260
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40883f
push edi
push str.WinInit.Ini
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00407d20
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 0x408835
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x930], eax
test eax, eax
je 0x4087c7
lea ecx, [eax + 1]
mov dword [ebp - 0x92c], ebx
push 1
push ecx
lea eax, [ebp - 0x92c]
mov esi, ebx
push eax
call fcn.004055c6
add esp, 0xc
test eax, eax
js 0x4088d3
push dword [ebp - 0x92c]
call fcn.0048df1f
mov esi, eax
pop ecx
test esi, esi
je 0x4088d3
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 0x4088d3
mov eax, dword [ebp - 0x92c]
push str._Rename_
push esi
mov byte [eax + esi], bl
call fcn.00485570
pop ecx
pop ecx
test eax, eax
jne 0x40884d
push str._rename_
push esi
call fcn.00485570
pop ecx
pop ecx
test eax, eax
jne 0x40884d
push esi
call fcn.0048cf17
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.00485260
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.00407e17
lea eax, [ebp - 0x928]
mov dword [ebp - 0x940], ebx
push eax
call fcn.0048c9d0
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 0x40883c
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.0047e22a
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.00485260
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.00407e17
lea eax, [ebp - 0x518]
mov dword [ebp - 0x93c], ebx
push eax
call fcn.0048c9d0
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 0x4088d3
xor ebx, ebx
inc ebx
push esi
call fcn.0048cf17
pop ecx
jmp 0x408831
Function at 0x408c8f
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 0x408d18
xor ecx, ecx
cmp cx, word [eax]
je 0x408d18
xor ebx, ebx
cmp dword [esi + 0x20], ebx
je 0x408cb2
mov eax, 0xb7
jmp 0x408d1b
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 0x408ce2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esi + 0x20], ebx
jmp 0x408d13
cmp dword [ebp + 0xc], 3
jne 0x408cf5
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408d13
cmp dword [ebp + 0xc], 2
jne 0x408d13
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 0x408d1b
push 0x57
pop eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x409654
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f7108]
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 0x40967e
xor ecx, ecx
cmp cx, word [eax]
je 0x409857
mov eax, dword [edi + 0xc]
test eax, eax
je 0x409857
xor ecx, ecx
cmp cx, word [eax]
je 0x409857
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00485260
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 0x409857
push str.McAfee_
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048c739
push 0x4d39b8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048c739
push 0x4d36c0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0048c739
add esp, 0x24
cmp dword [edi + 8], ebx
je 0x409724
push dword [edi + 8]
call fcn.00487778
mov ebx, eax
mov dword [esp], 0x4d36c0
call fcn.00487778
pop ecx
add ebx, eax
push dword [edi + 0xc]
call fcn.00487778
lea esi, [eax + 1]
lea eax, [ebp - 0x20c]
push eax
call fcn.00487778
add eax, ebx
add esi, eax
lea ebx, [esi + esi]
push ebx
call fcn.0048df1f
add esp, 0xc
mov dword [edi + 0x1c], eax
test eax, eax
je 0x409853
push ebx
push 0
push eax
call fcn.00485260
add esp, 0xc
lea eax, [ebp - 0x20c]
cmp dword [edi + 8], 0
push dword [edi + 0xc]
je 0x409788
push dword [edi + 8]
push eax
push str._s_s_s
push esi
push dword [edi + 0x1c]
call fcn.00405358
add esp, 0x18
jmp 0x40979a
push eax
push str._s_s
push esi
push dword [edi + 0x1c]
call fcn.00405358
add esp, 0x14
push dword [edi + 0x1c]
call fcn.00487778
mov esi, eax
mov dword [esp], str.log.ini
call fcn.00487778
add esi, eax
mov dword [esp], 0x4d36c0
call fcn.00487778
inc eax
add esi, eax
lea ebx, [esi + esi]
push ebx
call fcn.0048df1f
mov dword [edi + 0x450], eax
pop ecx
pop ecx
test eax, eax
je 0x409853
push ebx
push 0
push eax
call fcn.00485260
mov ebx, str.log.ini
push ebx
push dword [edi + 0x1c]
push 0x4d3788
push esi
push dword [edi + 0x450]
call fcn.00405358
push ebx
call fcn.00487778
lea esi, [eax + 1]
lea eax, [ebp - 0x20c]
push eax
call fcn.00487778
add esi, eax
lea ebx, [esi + esi]
push ebx
call fcn.0048df1f
add esp, 0x2c
mov dword [edi + 0x44c], eax
test eax, eax
je 0x409853
push ebx
push 0
push eax
call fcn.00485260
push str.log.ini
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push esi
push dword [edi + 0x44c]
call fcn.00405358
add esp, 0x20
xor eax, eax
jmp 0x40985a
push 0xe
jmp 0x409859
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e22a
leave
ret