joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005691c
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x102b6d70
mov dword [ebp - 0x440], eax
call fcn.1001c400
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100a55e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x100569c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x100569c0
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100219c0
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.100a55e0
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x100569d1
push ebx
call fcn.10045361
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret
mov eax, dword [0x10247544]
mov dword [ebp - 0xc], eax
mov ax, word [0x10247548]
push 0x208
mov word [ebp - 8], ax
call fcn.100219c0
mov edi, eax
mov dword [ebp - 0x43c], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10056a46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10056ae5
push edi
call fcn.10045361
push 2
call fcn.100219c0
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10056ae5
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x10056a4d
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100b2288
add esp, 0xc
test eax, eax
je 0x10056a95
mov esi, dword [ebp - 0x43c]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10056a77
movzx eax, word [esi]
mov dword [ebp - 0x43c], esi
test ax, ax
je 0x10056ae5
jmp 0x100569f9
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.1004aa4c
add esp, 0x14
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x438]
push eax
call fcn.1001c380
mov ecx, dword [ebp - 0x440]
push eax
call fcn.1001b2c0
lea ecx, [ebp - 0x438]
call fcn.10021eb0
push ebx
call fcn.10045361
push edi
call fcn.10045361
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100569c2
Function at 0x100629b1
Capabilities:
Check if file exists

Disassembly:
push 0x70
mov eax, 0x1023ff46
call fcn.10045b3f
mov edi, ecx
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
call fcn.10062942
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov esi, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
push 0x10248530
mov word [ebp - 0x40], ax
call fcn.1001c400
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
and dword [ebp - 0x48], 0
xor eax, eax
push 0x10248530
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.1001c400
mov byte [ebp - 4], 1
test esi, esi
je 0x10062ad4
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.10062e0a
push 0x102b6d70
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1004a064
test al, al
je 0x10062a62
push esi
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.10062eae
push eax
lea ecx, [ebp - 0x28]
call fcn.1001b2c0
lea ecx, [ebp - 0x70]
call fcn.10021eb0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10062ac8
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x40]
call fcn.1001c400
lea eax, [ebp - 0x58]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.1001d340
mov ecx, edi
call fcn.1006283a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10021eb0
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x40]
push eax
mov dword [ebx], esi
call fcn.10021d60
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x58]
push eax
call fcn.10021d60
lea ecx, [ebp - 0x58]
call fcn.10021eb0
lea ecx, [ebp - 0x40]
call fcn.10021eb0
call fcn.10045ae9
ret 0x10
Function at 0x10062bd0
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x102b6d70
mov dword [ebp - 0xa38], eax
call fcn.1001c400
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100a55e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10062c74
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x10062c74
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100219c0
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.100a55e0
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x10062c87
push ebx
call fcn.10045361
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret 8
mov eax, dword [0x10247544]
mov dword [ebp - 0xc], eax
mov ax, word [0x10247548]
push 0x208
mov word [ebp - 8], ax
call fcn.100219c0
mov edi, eax
mov dword [ebp - 0xa34], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10062cfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10062d9b
push edi
call fcn.10045361
push 2
call fcn.100219c0
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10062d9b
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x10062d03
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100b2288
add esp, 0xc
test eax, eax
je 0x10062d4b
mov esi, dword [ebp - 0xa34]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10062d2d
movzx eax, word [esi]
mov dword [ebp - 0xa34], esi
test ax, ax
je 0x10062d9b
jmp 0x10062caf
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.1004aa4c
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.1001c380
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.1001b2c0
lea ecx, [ebp - 0xa30]
call fcn.10021eb0
push ebx
call fcn.10045361
push edi
call fcn.10045361
pop ecx
pop ecx
mov al, 1
jmp 0x10062c76
Function at 0x10062e0a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.100a55e0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10062e8e
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x10062e87
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.1001c380
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100451cc
leave
ret 8

Function at 0x10062eae
Capabilities:
Enumerate processes

Disassembly:
push 0x470
mov eax, 0x1023ffd9
call fcn.10045b3f
mov dword [ebp - 0x478], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x47c], esi
mov edi, 0x102b6d70
mov dword [ebp - 0x21c], 7
xor ebx, ebx
mov word [ebp - 0x230], ax
push edi
mov dword [ebp - 0x220], ebx
call fcn.1001c400
push 0x22c
lea eax, [ebp - 0x474]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.100a55e0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10062f2c
push edi
mov ecx, esi
call fcn.1001c380
jmp 0x1006306d
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10063058
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x450]
push eax
call fcn.1001c400
mov byte [ebp - 4], 1
cmp dword [ebp - 0x46c], edi
je 0x10062fab
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.10021eb0
lea eax, [ebp - 0x474]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10062f4e
jmp 0x10063058
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100a55e0
add esp, 0xc
push dword [ebp - 0x46c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1006304d
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.1001c400
push 0x102b6d70
lea ecx, [ebp - 0x230]
call fcn.1004a064
test al, al
je 0x1006304d
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.10062bd0
push 0x102b6d70
lea ecx, [ebp - 0x230]
call fcn.1004a064
test al, al
je 0x1006304d
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x230]
call fcn.1001c400
lea ecx, [ebp - 0x248]
call fcn.10021eb0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.1001d690
lea ecx, [ebp - 0x230]
call fcn.10021eb0
mov eax, esi
call fcn.10045ae9
ret 8
Function at 0x401508
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401577
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x4015a5
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403064
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015bf
pop esi
ret
push edi
push 0
push 0x19dd4f
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015f4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401652
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40165e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401660
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x401041
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401059
test al, 0x10
je 0x401059
xor eax, eax
inc eax
jmp 0x40105b
xor eax, eax
ret 4

Function at 0x40105e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x401095
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0x10], eax
jbe 0x40109a
or eax, 0xffffffff
jmp 0x401101
push ebx
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
mov ebx, 0x100000
push ebx
mov esi, 0x4220a8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4010ee
cmp dword [ebp - 4], 0
jbe 0x4010f4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4010c4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401105
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push 0x100000
push 0x4220a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401151
cmp word [0x4220a8], 0x5a4d
jne 0x401151
mov ecx, dword [0x4220e4]
cmp dword [ecx + 0x4220a8], 0x4550
je 0x401156
or eax, 0xffffffff
jmp 0x401181
push esi
movzx esi, word [ecx + 0x4220ae]
xor eax, eax
cmp esi, edi
jle 0x401180
lea edx, [ecx + 0x4221b0]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x401175
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x40116a
pop esi
pop edi
leave
ret
Function at 0x401184
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.00412a10
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp dword [ebp + 0xc], ebx
mov esi, dword [ebp + 8]
je 0x4011d6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4011d6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41c380
push esi
call edi
push dword [ebp + 0xc]
push esi
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401225
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ebx
je 0x401210
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 0xc]
jmp 0x401261
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x30], bl
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
push 0x41c37c
push eax
call fcn.004129b7
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x2719
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401389
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x34b]
mov byte [ebp - 0x34c], 0
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x4014d0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
jle 0x4014d0
push edi
call esi
mov esi, 0x209
cmp eax, esi
jbe 0x4013db
push 0x6f
pop eax
jmp 0x4014d3
push edi
push str._s.
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00401362
and dword [ebp + 8], 0
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4014cc
lea eax, [ebp - 0x114]
push 0x41c390
push eax
call fcn.00412b70
test eax, eax
pop ecx
pop ecx
je 0x401490
lea eax, [ebp - 0x114]
push 0x41c38c
push eax
call fcn.00412b70
test eax, eax
pop ecx
pop ecx
je 0x401490
lea eax, [ebp - 0x114]
push eax
push edi
push str._s_s
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.00401362
add esp, 0x14
cmp dword [ebp - 0x140], 0x10
lea eax, [ebp - 0x34c]
jne 0x401477
push eax
call fcn.00401389
pop ecx
jmp 0x401490
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4014b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4014b4
mov dword [ebp + 8], 1
cmp dword [ebp + 8], 0
je 0x401414
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x4014d3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.00401389
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
xor ebx, ebx
push esi
call edi
cmp eax, 0xffffffff
je 0x40150e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00401389
inc ebx
cmp ebx, 0xa
pop ecx
jl 0x4014ee
push esi
call edi
inc eax
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x40151b
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x5220b0
push esi
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401542
push edi
push str.C:Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.00401041
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor ebx, ebx
test eax, eax
jne 0x401563
push esi
call fcn.004012f9
pop ecx
push ebx
push esi
call ebp
test eax, eax
je 0x4015c2
push 0x5c
push esi
call fcn.0041270f
cmp eax, ebx
pop ecx
pop ecx
je 0x401578
cmp byte [eax + 1], bl
jne 0x401578
mov byte [eax], bl
push edi
push str.RsdSfxTmp
push esi
call fcn.0041263f
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4015ad
push esi
call fcn.00401389
pop ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.004012f9
pop ecx
push ebx
push esi
call ebp
push esi
call fcn.00401041
test eax, eax
jne 0x4015d9
cmp dword [esp + 0x14], ebx
jne 0x4015d5
push 0x10
push 9
push ebx
call fcn.00401266
add esp, 0xc
xor eax, eax
jmp 0x4015dc
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401cac
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push str.E5C53971_D80E_4500_BE0D_761BF3CD8457
push 1
push 0
mov dword [0x5222bc], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x5222d4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401cf8
push dword [0x5222d4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x5222d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x2711
jmp 0x401e15
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x41c450
lea edi, [esp + 0x14]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x14]
push ecx
push eax
movsb byte es:[edi], byte [esi]
call section..text
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x401dfb
lea eax, [edi - 1]
mov dword [0x5222c0], eax
mov ebp, 0x41c44c
mov ebx, 0x5221b8
mov esi, str.SILENT
push esi
call fcn.00412972
push eax
push esi
push edi
call fcn.0041282c
add esp, 0x10
test eax, eax
je 0x401dda
mov esi, str.SILENCE
push esi
call fcn.00412972
push eax
push esi
push edi
call fcn.0041282c
add esp, 0x10
test eax, eax
je 0x401dda
push ebp
call fcn.00412972
push eax
push ebp
push edi
call fcn.0041282c
add esp, 0x10
test eax, eax
jne 0x401de4
push ebp
call fcn.00412972
mov esi, eax
add esi, edi
mov al, byte [esi]
cmp al, 0x27
pop ecx
je 0x401db1
cmp al, 0x22
je 0x401db1
push 0x20
push esi
call fcn.004125c4
test eax, eax
pop ecx
pop ecx
jne 0x401dc2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401dce
movsx eax, al
push eax
inc esi
push esi
call fcn.004125c4
test eax, eax
pop ecx
pop ecx
je 0x401e18
sub eax, esi
inc eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [0x5222cc], 1
jmp 0x401de4
mov dword [0x5222c8], 1
lea eax, [esp + 0x14]
push eax
push edi
call section..text
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x401d37
push 0
mov dword [0x5222c8], 1
call fcn.004015e1
mov eax, dword [0x5222d8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, 0x271a
jmp 0x401e11