joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4088d7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x94]
add eax, dword [ebx + 8]
push edi
xor edi, edi
push edi
push edi
push eax
push dword [ebx + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x408906
push 2
pop eax
jmp 0x408a12
cmp dword [ebx + 4], edi
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
jbe 0x408a06
jmp 0x40891b
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408a03
cmp dword [ebp - 8], edi
je 0x408a03
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x18]
add esi, 0x10
cmp dword [ebp - 4], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
je 0x40896c
push dword [ebp - 4]
call fcn.00415c18
pop ecx
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00404d35
test al, al
je 0x4089ef
push edi
mov edi, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebx + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4089fb
cmp dword [ebp - 8], 0
je 0x4089fb
mov eax, dword [ebp - 0x14]
push edi
lea esi, [ebp - 0x10]
mov byte [eax + edi], 0
call fcn.004029c8
lea edi, [ebp - 0x20]
call fcn.00402393
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402515
add ebx, 0x98
lea edi, [ebp - 0x20]
call fcn.00409705
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00402515
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
xor edi, edi
cmp ecx, dword [eax + 4]
jb 0x408918
jmp 0x408a06
lea eax, [esi - 0x10]
call fcn.00402515
push 3
jmp 0x408a05
lea eax, [esi - 0x10]
call fcn.00402515
push 2
pop edi
push dword [ebp - 4]
call fcn.00415c18
pop ecx
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x408a18
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea eax, [edi + 0x70]
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.004096e5
xor ebx, ebx
cmp byte [eax], bl
je 0x408a40
xor eax, eax
jmp 0x408bca
lea ecx, [edi + 0x64]
mov eax, esi
call fcn.0040967e
cmp dword [eax + 4], 8
je 0x408b99
mov eax, esi
lea ecx, [edi + 0x64]
call fcn.0040967e
cmp dword [eax + 4], 9
je 0x408b99
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040252d
add eax, 0x10
mov dword [ebp - 8], eax
lea ecx, [edi + 0x58]
mov eax, esi
call fcn.00404d14
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004028d2
lea eax, [ebp - 8]
call fcn.00403a18
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea esi, [ebp - 8]
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x408aca
push 2
pop ebx
jmp 0x408b8a
mov eax, dword [ebp + 8]
push ebx
lea esi, [edi + 0x64]
push ebx
mov ecx, esi
call fcn.0040967e
mov eax, dword [eax + 0xc]
add eax, dword [edi + 0x94]
push eax
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x408afc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408ac2
push 0x10000
call fcn.00415c13
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0040967e
mov esi, dword [eax + 8]
mov eax, 0x10000
cmp esi, eax
ja 0x408b22
mov eax, esi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0xc]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408b61
cmp dword [ebp - 4], ebx
je 0x408b61
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408b61
cmp dword [ebp - 4], ebx
je 0x408b61
sub esi, dword [ebp - 4]
cmp esi, ebx
jg 0x408b17
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
call fcn.004096e5
push dword [ebp - 0xc]
mov byte [eax], 1
call fcn.00415c18
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402515
mov eax, ebx
jmp 0x408bca
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
push ebx
add eax, 0x10
push esi
mov dword [ebp + 8], eax
push 1
lea eax, [ebp + 8]
push eax
mov ebx, edi
call fcn.00409006
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402515
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408c15
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41b040]
push ebx
push esi
xor eax, ebp
push 0x418598
lea esi, [ebp - 0x80]
mov dword [ebp + 0x88], eax
mov ebx, ecx
call fcn.004029c8
mov eax, esi
push eax
mov ecx, ebx
call fcn.00407f06
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.00402515
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x408c6e
push 4
pop eax
jmp 0x408ca8
cmp byte [ebp + eax - 0x7d], 0x5c
je 0x408c7b
mov byte [ebp + eax - 0x7c], 0x5c
inc eax
mov byte [ebp + eax - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebx + 0x54]
push eax
call fcn.00402497
cmp byte [ebp + 0x94], 0
je 0x408ca6
call fcn.004082b5
test eax, eax
jne 0x408ca8
call fcn.00408321
jmp 0x408ca8
xor eax, eax
mov ecx, dword [ebp + 0x88]
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x8c
leave
ret 4

Function at 0x408d49
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, eax
mov eax, dword [0x41b208]
push edi
mov ecx, 0x41b208
call dword [eax + 0xc]
add eax, 0x10
cmp byte [ebp + 0x10], 0
mov dword [ebp - 4], eax
je 0x408d79
mov eax, dword [ebp + 8]
lea edi, [ebp - 4]
call fcn.00402393
jmp 0x408d9b
push dword [ebp + 8]
lea eax, [ebx + 0x54]
lea edi, [ebp + 0x10]
call fcn.00404ba4
pop ecx
lea edi, [ebp - 4]
call fcn.00402393
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00402515
push esi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea esi, [ebp - 4]
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x40
call fcn.0040233c
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x38], str.open
cmp dword [eax - 0xc], 0
je 0x408de0
call fcn.0040233c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
push eax
call fcn.00408cc1
pop ecx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push dword [ebp - 8]
call fcn.00408d05
cmp dword [ebp - 0xc], 0
pop ecx
pop esi
je 0x408e1f
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add ebx, 0x8c
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402515
pop edi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x4094db
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x54]
sub eax, 0x10
call fcn.0040252d
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, esi
call fcn.00408075
lea ecx, [esi + 0x58]
call fcn.00404d14
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004028d2
mov esi, dword [ebp - 4]
push 0x5c
mov eax, esi
call fcn.00404db2
test eax, eax
pop ecx
je 0x409538
sub eax, esi
mov ecx, eax
js 0x409538
mov eax, dword [esi - 0xc]
sub eax, ecx
lea edx, [ebp - 4]
dec eax
inc ecx
push edx
call fcn.00404a57
lea eax, [ebp - 4]
push eax
call fcn.00404858
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esi - 0x10]
call fcn.00402515
xor eax, eax
pop esi
leave
ret

Function at 0x4098d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ecx
mov eax, esp
mov dword [eax], ebx
mov eax, esi
call fcn.00409bae
mov eax, dword [esp + 0xc]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x74], eax
lea eax, [esi + 0x7c]
mov dword [esi], 0x418a9c
mov byte [esi + 0x78], bl
call fcn.00409974
push str.RTF_FILE
push 0xd2
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
je 0x409949
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x409949
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x409949
push edi
push ebx
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0xa8], eax
pop edi
mov dword [esi + 0xac], ebx
mov eax, esi
pop ebx
ret 8

Function at 0x40a7b6
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x41b040]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0x9c]
push dword [eax]
lea eax, [ebp - 0x74]
push 0x104
push eax
mov ebx, str.NOT_FOUND
mov esi, edx
push ebx
mov dword [ebp - 0x7c], ecx
call fcn.0040233c
push eax
mov esi, edi
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x103
je 0x40a84f
push ebx
lea esi, [ebp - 0x78]
call fcn.004029c8
mov ebx, eax
lea eax, [ebp - 0x74]
push eax
lea esi, [ebp - 0x80]
call fcn.004029c8
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, eax
mov eax, dword [ebp - 0x80]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00402515
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.00402515
test bl, bl
je 0x40a853
xor al, al
jmp 0x40a861
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call fcn.00402497
mov al, 1
mov ecx, dword [ebp + 0x90]
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x94
leave
ret 4
Function at 0x40af32
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x41b040]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1ac]
push ebx
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x40b0ae
lea eax, [ebp + 0x98]
push eax
push ebx
push 0x418c50
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40b0ae
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x98]
push eax
call edi
lea eax, [ebp + 0x98]
push eax
lea esi, [ebp - 0x70]
call fcn.004029c8
mov esi, str..url
mov ecx, esi
call fcn.004023f4
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.004028d2
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b0a1
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x74]
push dword [eax]
lea eax, [ebp - 0x78]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.00402920
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx - 0xc]
add esp, 0xc
push ebx
lea edx, [ebp - 0x7c]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x74], ebx
je 0x40b054
push 5
push ebx
push ebx
push dword [ebp - 0x70]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x70]
call edi
mov eax, dword [ebp - 0x70]
push 0x5c
call fcn.00404db2
cmp eax, ebx
pop ecx
jne 0x40b06d
or eax, 0xffffffff
jmp 0x40b070
sub eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x80]
add ecx, 0x20
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea esi, [ebp - 0x70]
call fcn.004027fd
push eax
call fcn.004047a0
mov eax, dword [ebp - 0x74]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.00402515
pop edi
pop esi
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x1a0
leave
ret 8

Function at 0x40c92a
Capabilities:
Create thread

Disassembly:
push ecx
mov dword [eax + 0xc], ecx
lea ecx, [esp]
push ecx
xor ecx, ecx
push ecx
push eax
push 0x40c945
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret
Function at 0x40c9dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call fcn.0040cac4
mov esi, eax
call fcn.0040233c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], str.open
call fcn.0040cac4
add eax, 4
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x40ca4a
mov eax, dword [ebp + 8]
mov ecx, ebx
call fcn.0040cac4
mov esi, eax
add esi, 4
call fcn.0040233c
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
test esi, esi
jne 0x40ca63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
cmp dword [ebp - 4], 0
je 0x40ca74
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x40e294
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40f06f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
push dword [ecx]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40f08b
xor al, al
jmp 0x40f0ff
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax - 0xc]
push ebp
push esi
push edi
lea eax, [ebx + 1]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x40f0b4
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor esi, esi
test ebx, ebx
mov ebp, eax
jle 0x40f0d9
mov edi, dword [esp + 0x18]
call fcn.004027e2
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ebx
jl 0x40f0c3
mov edi, dword [esp + 0x10]
push edi
mov byte [ebp], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4
Function at 0x410509
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x41b040]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x74]
push ecx
xor eax, ebp
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push edi
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], 0x104
call ebx
test eax, eax
jne 0x41059e
push esi
lea eax, [ebp - 0x6c]
push eax
lea esi, [ebp - 0x78]
call fcn.004029c8
mov eax, esi
mov esi, dword [ebp - 0x80]
push eax
call fcn.00404c41
mov eax, dword [ebp - 0x78]
inc dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.00402515
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x104
push dword [ebp - 0x7c]
call ebx
test eax, eax
je 0x410559
pop esi
mov ecx, dword [ebp + 0x98]
pop edi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x9c
leave
ret 4

Function at 0x4105b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41b040]
xor eax, ebp
push ebx
push esi
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xac]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xb0]
push 0x5c
mov esi, edi
mov dword [ebp - 0x70], eax
call fcn.00402845
mov ecx, dword [ebp + 0xac]
lea edx, [ebp - 0x74]
mov ebx, eax
sub eax, ecx
push edx
call fcn.00404f24
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
lea esi, [ebp - 0x74]
mov dword [ebp - 0x7c], 0x104
call fcn.0040233c
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410644
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x4106a8
inc ebx
push 0x5c
mov ecx, ebx
mov esi, edi
call fcn.00402845
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call fcn.00402497
xor esi, esi
cmp dword [ebp - 0x6c], esi
jl 0x4106a8
lea eax, [ebp - 0x68]
push eax
lea esi, [ebp - 0x78]
call fcn.004029c8
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x70]
push ecx
sub eax, ebx
mov ecx, ebx
call fcn.00404f24
mov edi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x78]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
neg esi
call fcn.00402515
lea eax, [ebx - 0x10]
call fcn.00402515
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
call fcn.00402515
mov ecx, dword [ebp + 0x9c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0xa0
leave
ret 0xc
Function at 0x4106cf
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x41b040]
xor eax, ebp
mov dword [ebp + 0xe4], eax
mov eax, dword [ebp + 0xfc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xf0]
mov eax, dword [eax - 0xc]
test eax, eax
push ebx
mov ebx, dword [ebp + 0xf8]
push esi
push edi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ebx
je 0x41072a
lea esi, [eax - 1]
lea edi, [ebp + 0xf0]
call fcn.004027e2
cmp al, 0x5c
je 0x41072a
push 0x5c
mov eax, edi
call fcn.00404fa7
push dword [ebp - 0x70]
mov eax, dword [ebp + 0xf0]
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x68], eax
call fcn.0040252d
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.004108e6
xor esi, esi
test al, al
jne 0x41089b
inc esi
cmp dword [ebp + 0xf4], esi
jl 0x41089b
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edi
call fcn.0040252d
add eax, 0x10
mov esi, 0x418674
mov ecx, esi
mov dword [ebp - 0x64], eax
call fcn.004023f4
push eax
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.004028d2
lea eax, [ebp - 0x5c]
push eax
lea esi, [ebp - 0x64]
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
setne dl
test dl, dl
mov dword [ebp - 0x60], eax
je 0x41087c
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x5c]
call fcn.004108c3
test al, al
jne 0x4107e4
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
call ebx
test eax, eax
setne dl
test dl, dl
jne 0x4107c6
test dl, dl
je 0x41087c
mov eax, dword [ebp + 0xf4]
dec eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0xf0]
lea edi, [ebp - 0x80]
call fcn.00410b1d
pop ecx
lea edi, [ebp - 0x6c]
call fcn.00402393
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.00402515
push dword [ebp - 0x70]
mov edi, dword [ebp - 0x6c]
push dword [ebp - 0x74]
lea eax, [edi - 0x10]
push dword [ebp - 0x7c]
push ecx
mov esi, esp
call fcn.0040252d
mov ecx, dword [ebp - 0x78]
add eax, 0x10
mov dword [esi], eax
call fcn.004106cf
test eax, eax
je 0x4108bf
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
call ebx
test eax, eax
setne dl
test dl, dl
je 0x41087c
lea eax, [ebp - 0x5c]
call fcn.004108c3
test al, al
jne 0x410874
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
call ebx
test eax, eax
setne dl
test dl, dl
jne 0x410856
test dl, dl
jne 0x4107f6
xor esi, esi
inc esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
call fcn.00402515
lea eax, [edi - 0x10]
call fcn.00402515
mov eax, dword [ebp - 0x68]
call fcn.00402515
mov ecx, dword [ebp + 0xe4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0xe8
leave
ret 0x10
xor esi, esi
jmp 0x41087f
Function at 0x410c13
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x41b040]
push ebx
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp + 0x8c], eax
mov eax, dword [esi]
xor ebx, ebx
cmp byte [eax], bl
je 0x410d38
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
je 0x410d38
cmp byte [ebp + eax - 0x79], 0x5c
je 0x410c60
mov byte [ebp + eax - 0x77], bl
lea eax, [ebp - 0x78]
push eax
push 0xa76
push 0x419180
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
xor eax, eax
cmp byte [ebp - 0x78], bl
je 0x410c83
inc eax
cmp byte [ebp + eax - 0x78], bl
jne 0x410c7c
push edi
mov byte [ebp + eax - 0x78], 0x2e
push ebx
inc eax
mov byte [ebp + eax - 0x78], 0x62
push 0x80
inc eax
push 2
mov byte [ebp + eax - 0x78], 0x61
inc eax
push ebx
mov byte [ebp + eax - 0x78], 0x74
push ebx
mov byte [ebp + eax - 0x77], bl
push 0x40000000
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410cc8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410d37
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x78]
push ecx
push ecx
mov dword [ebp - 0x7c], eax
mov eax, dword [esi]
push eax
push eax
push eax
lea eax, [ebp - 0x7c]
push str._echo_off__r_n:try__r_nATTRIB__r___s___r_ndel___s___r_nif_exist___s__goto_try_r_nATTRIB__r___s___r_ndel___s___cls
push eax
call fcn.00402920
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax - 0xc]
add esp, 0x1c
push ebx
lea ecx, [ebp - 0x80]
push ecx
push eax
lea esi, [ebp - 0x7c]
call fcn.0040233c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
call fcn.00402515
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x90
leave
ret