joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407893
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4f0108]
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.004873b0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x248]
call fcn.0040661c
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4079c6
test esi, esi
je 0x4079c6
mov eax, dword [ebp + 0xc]
cmp eax, 1
jb 0x4079c6
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.0040659e
mov bl, al
lea ecx, [ebp - 0x248]
xor bl, byte [ebp - 0x27]
call fcn.0040659e
xor ecx, ecx
mov bh, al
inc ecx
add bh, bl
cmp dword [ebp - 0x38], ecx
jle 0x407959
mov esi, ecx
lea ecx, [ebp - 0x248]
call fcn.0040659e
lea ecx, [ebp - 0x248]
xor bh, al
call fcn.0040659e
add bh, al
inc esi
cmp esi, dword [ebp - 0x38]
jl 0x407933
mov esi, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov byte [edi], bh
inc edi
sub dword [ebp - 0x250], 1
jne 0x407904
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.0047fc40
pop ecx
pop ecx
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x14]
push eax
mov edx, ebx
call fcn.00406742
pop ecx
pop ecx
test eax, eax
jne 0x4079c6
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24c]
call fcn.0047e460
add esp, 0xc
jmp 0x4079cb
mov edi, 0x1770
lea ecx, [ebp - 0x248]
call fcn.00406707
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478c0a
leave
ret 0x18
Function at 0x4079e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f0108]
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.004873b0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.0040661c
push 0x10
lea esi, [ebx + 0x14]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0047e460
add esp, 0xc
xor edi, edi
push 0x10
push edi
push esi
call fcn.0047fc40
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x250]
push eax
call fcn.00407089
pop ecx
pop ecx
test eax, eax
jne 0x407bde
mov ecx, dword [ebx + 8]
cmp dword [ebp + 0xc], ecx
jne 0x407bde
cmp dword [ebx], 0x4752434d
jne 0x407bde
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x407be1
mov esi, dword [eax]
mov dword [eax], ecx
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x407be1
mov edx, dword [ebx + 8]
mov dword [ebp - 0x25c], edx
cmp edx, esi
jbe 0x407ac2
mov edi, 0xea
jmp 0x407be1
mov ecx, dword [ebp - 0x250]
test ecx, ecx
je 0x407bd7
cmp edx, 1
jb 0x407bd7
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x407bd7
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x407bd7
test edx, edx
jle 0x407be1
sub ecx, eax
mov dword [ebp - 0x250], ecx
mov ch, byte [ebp - 0x27]
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x24c], edi
jle 0x407b41
lea ecx, [ebp - 0x248]
call fcn.0040659e
mov byte [ebx], al
lea ecx, [ebp - 0x248]
inc ebx
call fcn.0040659e
mov byte [esi], al
inc esi
inc edi
cmp edi, dword [ebp - 0x38]
jl 0x407b0e
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 0x407bac
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 0x407b95
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 0x407b02
jmp 0x407be1
mov edi, 0x1771
jmp 0x407be1
push 0xd
pop edi
lea ecx, [ebp - 0x248]
call fcn.00406707
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478c0a
leave
ret 0x18
Function at 0x407f2d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f0108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
test esi, esi
je 0x408032
xor ebx, ebx
cmp word [esi], bx
je 0x408032
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407f71
test al, 0x10
je 0x407f71
mov eax, 0xb7
jmp 0x408035
push edi
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
push ebx
push eax
call fcn.0047fc40
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.0047fc40
push 0x5c
push esi
call fcn.0047ea02
add esp, 0x14
pop edi
test eax, eax
je 0x408001
cmp eax, esi
jne 0x407fea
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.00407da8
jmp 0x40801e
cmp word [esi + 2], 0x3a
jne 0x408001
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00407c8a
jmp 0x40801e
push esi
lea eax, [ebp - 0x414]
push eax
push 0x4cd784
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00407e6a
add esp, 0x14
lea ecx, [ebp - 0x20c]
call fcn.00408043
neg eax
sbb eax, eax
and eax, 0x52
jmp 0x408035
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00478c0a
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x4f0108]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x408076
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408076
test al, 0x10
jne 0x4080ec
push 0x5c
push esi
call fcn.0047ea02
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4080ec
push 0x5c
push esi
call fcn.004801bb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4080ec
cmp ebx, edi
je 0x4080e1
mov ebx, 0x208
lea eax, [esp + 0x10]
push ebx
push 0
push eax
call fcn.0047fc40
add esp, 0xc
lea eax, [esp + 0x10]
sub edi, esi
sar edi, 1
push edi
push esi
push 0x104
push eax
call fcn.00407cc9
add edi, edi
cmp edi, ebx
jae 0x408103
xor edx, edx
lea ecx, [esp + 0x10]
xor eax, eax
inc edx
mov word [esp + edi + 0x10], ax
call fcn.00408043
test eax, eax
jne 0x4080ee
push ecx
mov ecx, esi
call fcn.00408109
pop ecx
jmp 0x4080ee
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00478c0a
mov esp, ebp
pop ebp
ret
call fcn.00478f48
int3
Function at 0x408109
Capabilities:
Create directory

Disassembly:
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x40815b
push esi
call fcn.00482158
pop ecx
cmp eax, 3
jbe 0x40815b
push esi
call fcn.00482158
pop ecx
cmp eax, 3
jbe 0x40813d
mov ecx, esi
call fcn.00408161
test eax, eax
jne 0x40813d
xor edx, edx
mov ecx, esi
call fcn.004081d3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x408157
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40815e
xor eax, eax
jmp 0x40815e
push 0x57
pop eax
pop esi
pop ecx
ret

Function at 0x4081d3
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 [0x4f0108]
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.0047fc40
add esp, 0xc
lea eax, [esp + 0x268]
push 0x208
push 0
push eax
call fcn.0047fc40
add esp, 0xc
test esi, esi
je 0x408370
xor eax, eax
cmp ax, word [esi]
je 0x408370
push esi
call fcn.00482158
pop ecx
cmp eax, 3
jbe 0x408370
push esi
push 0x104
lea eax, [esp + 0x270]
push eax
call fcn.00407c8a
lea eax, [esp + 0x268]
push 0x5c
push eax
call fcn.004801bb
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x408370
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 0x408370
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.00407c8a
test byte [esp + 0x18], 0x10
je 0x4082e0
push 0x2e
pop eax
cmp ax, word [esp + 0x44]
je 0x408349
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408349
mov edx, eax
lea ecx, [esp + 0x268]
call fcn.00408387
jmp 0x40833a
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 0x408349
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xf
je 0x408349
cmp eax, 2
je 0x408349
cmp eax, 3
je 0x408349
push ecx
lea ecx, [esp + 0x26c]
call fcn.00408467
neg eax
pop ecx
sbb eax, eax
inc eax
test esi, esi
je 0x408347
test eax, eax
je 0x408347
xor esi, esi
inc esi
jmp 0x408349
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 0x4082a7
test edi, edi
je 0x40836c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x408372
xor eax, eax
mov ecx, dword [esp + 0x474]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00478c0a
mov esp, ebp
pop ebp
ret
Function at 0x408387
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f0108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x408457
xor eax, eax
cmp ax, word [esi]
je 0x408457
push esi
call fcn.00482158
pop ecx
cmp eax, 3
jbe 0x408457
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0047fc40
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x4cd77c
push esi
push 0x4cd784
push 0x104
push eax
call fcn.00407e6a
add esp, 0x14
lea ecx, [ebp - 0x210]
mov edx, edi
call fcn.004081d3
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 0x408453
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x408436
cmp eax, 0x91
jne 0x408453
push ecx
mov ecx, esi
call fcn.00408467
neg eax
pop ecx
sbb eax, eax
inc eax
test edi, edi
je 0x408451
test eax, eax
je 0x408451
xor edi, edi
inc edi
jmp 0x408453
xor edi, edi
mov eax, edi
jmp 0x408459
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00478c0a
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4f0108]
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.0047fc40
add esp, 0xc
mov dword [ebp - 0x32c], 0x114
test edi, edi
je 0x40855a
xor eax, eax
cmp ax, word [edi]
je 0x40855a
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4084cb
push 0x11
jmp 0x40855c
xor ebx, ebx
mov ecx, edi
cmp dword [ebp - 0x31c], 2
sete bl
call fcn.0040856c
test eax, eax
jne 0x4084f4
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 0x408512
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x408556
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x408554
push 0x208
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0047fc40
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edx, 0x4cd7a0
lea ecx, [ebp - 0x214]
call fcn.004085e4
test eax, eax
jne 0x408556
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
jmp 0x40855d
push 0x57
pop eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478c0a
leave
ret
Function at 0x408685
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 [0x4f0108]
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.0047fc40
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x408835
push edi
push str.WinInit.Ini
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00407d16
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 0x40882b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x930], eax
test eax, eax
je 0x4087bd
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 0x4088c9
push dword [ebp - 0x92c]
call fcn.004888ff
mov esi, eax
pop ecx
test esi, esi
je 0x4088c9
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 0x4088c9
mov eax, dword [ebp - 0x92c]
push str._Rename_
push esi
mov byte [eax + esi], bl
call fcn.0047ff50
pop ecx
pop ecx
test eax, eax
jne 0x408843
push str._rename_
push esi
call fcn.0047ff50
pop ecx
pop ecx
test eax, eax
jne 0x408843
push esi
call fcn.004878f7
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.0047fc40
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.00407e0d
lea eax, [ebp - 0x928]
mov dword [ebp - 0x940], ebx
push eax
call fcn.004873b0
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 0x408832
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.00478c0a
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.0047fc40
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.00407e0d
lea eax, [ebp - 0x518]
mov dword [ebp - 0x93c], ebx
push eax
call fcn.004873b0
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 0x4088c9
xor ebx, ebx
inc ebx
push esi
call fcn.004878f7
pop ecx
jmp 0x408827
Function at 0x409654
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f0108]
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.0047fc40
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.00487119
push 0x4cd9b0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00487119
push 0x4cd6bc
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00487119
add esp, 0x24
cmp dword [edi + 8], ebx
je 0x409724
push dword [edi + 8]
call fcn.00482158
mov ebx, eax
mov dword [esp], 0x4cd6bc
call fcn.00482158
pop ecx
add ebx, eax
push dword [edi + 0xc]
call fcn.00482158
lea esi, [eax + 1]
lea eax, [ebp - 0x20c]
push eax
call fcn.00482158
add eax, ebx
add esi, eax
lea ebx, [esi + esi]
push ebx
call fcn.004888ff
add esp, 0xc
mov dword [edi + 0x1c], eax
test eax, eax
je 0x409853
push ebx
push 0
push eax
call fcn.0047fc40
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.00482158
mov esi, eax
mov dword [esp], str.log.ini
call fcn.00482158
add esi, eax
mov dword [esp], 0x4cd6bc
call fcn.00482158
inc eax
add esi, eax
lea ebx, [esi + esi]
push ebx
call fcn.004888ff
mov dword [edi + 0x450], eax
pop ecx
pop ecx
test eax, eax
je 0x409853
push ebx
push 0
push eax
call fcn.0047fc40
mov ebx, str.log.ini
push ebx
push dword [edi + 0x1c]
push 0x4cd784
push esi
push dword [edi + 0x450]
call fcn.00405358
push ebx
call fcn.00482158
lea esi, [eax + 1]
lea eax, [ebp - 0x20c]
push eax
call fcn.00482158
add esi, eax
lea ebx, [esi + esi]
push ebx
call fcn.004888ff
add esp, 0x2c
mov dword [edi + 0x44c], eax
test eax, eax
je 0x409853
push ebx
push 0
push eax
call fcn.0047fc40
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.00478c0a
leave
ret
Function at 0x409e2a
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 0x409e5c
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 0x409f13
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x409f13
xor ecx, ecx
cmp cx, word [eax]
je 0x409f13
mov ecx, edi
call fcn.00408d21
mov ebx, eax
test ebx, ebx
je 0x409e9a
cmp ebx, 0xb7
jne 0x409f13
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.0040905c
mov esi, dword [esp + 0xc]
mov ebx, eax
test ebx, ebx
jne 0x409f13
test esi, esi
jne 0x409ecd
push 0xe
pop ebx
jmp 0x409f13
push esi
call fcn.00482158
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 0x409f07
xor ecx, ecx
cmp cx, word [esi]
je 0x409f07
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x409f13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [edi + 0x20], 0
je 0x409f26
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x20], 0
test esi, esi
je 0x409f31
push esi
call fcn.004878f7
pop ecx
mov eax, dword [edi + 0x438]
test eax, eax
je 0x409f42
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 0x40c2ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f0108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x208
mov dword [ebp - 0x218], eax
xor esi, esi
lea eax, [ebp - 0x20c]
push edi
push esi
push eax
mov ebx, ecx
mov dword [ebp - 0x210], esi
call fcn.0047fc40
mov dword [ebp - 0x214], edi
add esp, 0xc
lea edi, [ebx + 0x18]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40c320
mov eax, dword [edi]
lea ecx, [ebp - 0x210]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c36a
cmp dword [ebp - 0x210], esi
jne 0x40c3b0
cmp dword [edi + 0x14], 8
jb 0x40c34d
mov edi, dword [edi]
lea eax, [ebp - 0x210]
push eax
push 0x20119
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c3b0
cmp dword [ebp - 0x210], esi
je 0x40c3b0
cmp dword [ebx + 0x14], 8
jb 0x40c37a
mov ebx, dword [ebx]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c3b0
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040b252
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478c0a
leave
ret 4

Function at 0x40c485
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4f0108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
xor edi, edi
mov esi, ecx
push ebx
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.0047fc40
add esi, 0x48
mov dword [ebp - 0x214], ebx
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40c4ce
mov eax, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x210]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x40c516
cmp dword [ebp - 0x210], edi
jne 0x40c549
cmp dword [esi + 0x14], 8
jb 0x40c4fd
mov esi, dword [esi]
lea eax, [ebp - 0x210]
push eax
push 0x20119
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40c549
cmp dword [ebp - 0x210], edi
je 0x40c549
lea eax, [ebp - 0x214]
xor esi, esi
push eax
lea eax, [ebp - 0x20c]
inc esi
push eax
push edi
push edi
push 0x4cdfe8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, esi
cmove edi, esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478c0a
leave
ret