joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d84
Capabilities:
Write clipboard data

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb0
mov eax, dword [0x10081b8]
push ebx
push 0x1001f68
mov dword [ebp + 0x6c], eax
call fcn.01004bf7
pop ecx
push dword [ebp + 0x7c]
call fcn.01004c2c
mov ebx, eax
test ebx, ebx
jne 0x1004dba
mov ax, 1
jmp 0x1004e5b
push dword [ebp + 0x78]
call fcn.01002a52
test eax, eax
jne 0x1004dda
push 0x1001f4c
call fcn.01004bf7
pop ecx
mov ax, 2
jmp 0x1004e5b
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
xor edi, edi
test ebx, ebx
jbe 0x1004e52
push esi
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x7c]
call fcn.01004cb2
cmp dword [ebp - 0x40], 0xc000
jb 0x1004e11
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push 0x1001f24
call fcn.01004bf7
pop ecx
pop ecx
push 0
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x40], 8
jne 0x1004e33
push 0
push 2
call esi
inc edi
cmp edi, ebx
jb 0x1004dee
test ebx, ebx
pop esi
jbe 0x1004e52
push 0x1001f08
call fcn.01004bf7
pop ecx
mov dword [0x1008b8c], 1
call fcn.01002a8e
xor ax, ax
pop edi
mov ecx, dword [ebp + 0x6c]
pop ebx
call fcn.01006d6c
add ebp, 0x70
leave
ret 8

Function at 0x1004fd8
Capabilities:
Write clipboard data

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb0
mov eax, dword [0x10081b8]
mov dword [ebp + 0x70], eax
call dword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
je 0x10050ee
push edi
xor edi, edi
cmp dword [0x1008b8c], edi
je 0x10050ed
push dword [0x1008428]
call fcn.01002a52
test eax, eax
jne 0x1005027
push 0x100205c
call fcn.01004bf7
pop ecx
jmp 0x10050ed
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10050dc
push ebx
push esi
call fcn.01004c2c
mov ebx, eax
cmp ebx, edi
jne 0x100506a
push 0x1001fd8
call fcn.01004bf7
pop ecx
test ebx, ebx
jbe 0x10050d2
push edi
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.01004cb2
lea eax, [ebp - 0x30]
push eax
push 0x1001fc4
call fcn.01004bf7
cmp dword [ebp - 0x3c], 0xc000
pop ecx
pop ecx
jb 0x100509f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [ebp - 0x3c], eax
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.0100623d
test eax, eax
je 0x10050c2
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x10050cd
push 0x1002044
jmp 0x10050c7
push 0x100202c
call fcn.01004bf7
pop ecx
inc edi
cmp edi, ebx
jb 0x100506e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x10050e7
push 0x1001fec
call fcn.01004bf7
pop ecx
call fcn.01002a8e
pop esi
pop edi
mov ecx, dword [ebp + 0x70]
xor eax, eax
call fcn.01006d6c
add ebp, 0x74
leave
ret 4
Function at 0x10058be
Capabilities:
Read clipboard data
Write clipboard data

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
xor ebx, ebx
xor esi, esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x1005972
push dword [0x1008428]
call fcn.01002a52
test eax, eax
je 0x1005972
push ebp
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
je 0x1005968
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1005968
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
call edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x1005967
push ebx
call edi
mov edi, eax
test edi, edi
je 0x1005960
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalSize]
test eax, eax
je 0x1005946
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx]
mov byte [edi], cl
inc edi
inc dword [esp + 0x14]
dec eax
jne 0x1005936
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
call fcn.01002a8e
test esi, esi
pop ebp
jne 0x1005988
push 0x1002190
call fcn.01004bf7
test ebx, ebx
pop ecx
je 0x1005988
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x1005a48
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0xb4
mov eax, dword [0x10081b8]
push esi
push edi
xor esi, esi
push esi
push esi
push dword [ebp + 0x6c]
mov dword [ebp + 0x5c], eax
push dword [ebp + 0x68]
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
cmp dword [0x1008a6c], esi
je 0x1005ab1
push 0x2b
pop ecx
push dword [ebp + 0x7c]
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp - 0x48], eax
push 0x4f
lea eax, [ebp - 0x44]
push eax
call fcn.01002dcd
push esi
lea eax, [ebp - 0x54]
push eax
push 0xac
lea eax, [ebp - 0x50]
jmp 0x1005aed
push 0x16
pop ecx
lea edi, [ebp]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ax, word [ebp + 0x78]
push esi
mov word [ebp], ax
mov eax, dword [ebp + 0x74]
push esi
mov dword [ebp + 2], eax
mov eax, dword [ebp + 0x70]
push 0x4f
mov dword [ebp + 6], eax
lea eax, [ebp + 0xa]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x7c]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0x54]
push eax
push 0x59
lea eax, [ebp]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ebp - 0x54]
pop edi
pop esi
call fcn.01006d6c
add ebp, 0x60
leave
ret 0x18
Function at 0x10064f2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0xc000
jb 0x1006510
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov dword [esi], eax
push dword [esi + 4]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x1006531
push 0x1002480
call fcn.01004bf7
pop ecx
jmp 0x10065b0
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x100654c
push 0x1002458
call fcn.01004bf7
pop ecx
jmp 0x10065c7
push edi
mov edi, dword [esi + 8]
push edi
lea eax, [esi + 0xc]
push eax
push 0x1002430
call fcn.01004bf7
add esp, 0xc
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 4]
pop edi
push dword [ebp + 8]
je 0x10065b4
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
push dword [esi + 4]
push 0x10023fc
call fcn.01004bf7
add esp, 0xc
xor eax, eax
jmp 0x10065d2
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.01006816
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x1006afe
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1002598
call fcn.01006ca8
cmp word [0x1000000], 0x5a4d
jne 0x1006b3d
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1006b3d
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1006b56
cmp ecx, 0x20b
je 0x1006b43
and dword [ebp - 0x1c], 0
jmp 0x1006b6d
cmp dword [eax + 0x1000084], 0xe
jbe 0x1006b3d
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1006b67
cmp dword [eax + 0x1000074], 0xe
jbe 0x1006b3d
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1008b90], 0xffffffff
or dword [0x1008b94], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1008420]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100841c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1008b98], eax
call fcn.01006ca2
cmp dword [0x10081bc], 0
jne 0x1006bca
push fcn.01006ca2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006c90
push 0x10012c8
push 0x10012c4
call sub.msvcrt.dll__initterm
mov eax, dword [0x1008418]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1008414]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x10012c0
push 0x10012b8
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002d3b
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x1006c42
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006c77
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01006ce3
ret

Function at 0x1006d6c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10081b8]
jne 0x1006d75
ret
jmp 0x1006d7a
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x10081b8]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1008ba0]
test eax, eax
je 0x1006d9e
call eax
cmp dword [0x1008b9c], 0
je 0x1006de5
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1008b9c]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01006d6c
add ebp, 0x2a8
leave
ret
Function at 0x4071fc
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4127fb
call fcn.00411a60
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x414414
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x414230
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040b78a
push dword [esi + 8]
mov ecx, ebx
call fcn.0040b78a
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040b78a
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040b78a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4077a6
Capabilities:
Create thread

Disassembly:
mov eax, 0x4129a1
call fcn.00411a60
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x414318
mov dword [esi + 4], 0x4144a0
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
call fcn.0040105a
push 4
lea ecx, [esi + 0x5c]
pop ebx
mov dword [ebp - 4], edi
push ebx
call fcn.004019d0
mov dword [esi + 0x5c], 0x414498
lea ecx, [esi + 0x70]
push ebx
mov byte [ebp - 4], 1
call fcn.004019d0
mov dword [esi + 0x70], 0x414490
lea eax, [esi + 0x84]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x414488
mov dword [esi + 0x98], edi
push edi
push edi
push edi
lea ecx, [esi + 0x9c]
push edi
mov byte [ebp - 4], bl
call fcn.0040d6d2
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov dword [eax], 0x414344
push edi
push edi
push edi
lea ecx, [esi + 0xb4]
push edi
mov byte [ebp - 4], 6
call fcn.0040d6d2
push edi
push edi
push edi
lea ecx, [esi + 0xb8]
push 1
mov byte [ebp - 4], 7
call fcn.0040d6d2
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
push edi
push esi
push 0x40790b
push edi
push edi
mov dword [esi], 0x414474
mov dword [esi + 4], 0x414468
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x98], eax
jne 0x4078b0
lea eax, [ebp - 0x10]
push 0x414ac4
push eax
mov dword [ebp - 0x10], 0x425d1
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407b47
Capabilities:
Create thread

Disassembly:
mov eax, 0x412a3b
call fcn.00411a60
sub esp, 0xcc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x18]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0xd8]
push dword [eax + 4]
push dword [eax]
call fcn.004072b9
lea esi, [edi + 0x70]
lea eax, [ebp - 0xd8]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00408308
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + eax*4 - 4]
call fcn.00407402
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [edi + 0xb8]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [edi + 0xa0]
mov eax, dword [eax + 0x68]
push dword [eax]
call fcn.00408215
mov dword [ebp - 0x14], ebx
add edi, 0x84
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004083b3
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [edi + 8]
lea esi, [edx + ecx*4 - 4]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 0x407c3c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
pop edi
cmp eax, ebx
pop esi
pop ebx
jne 0x407c21
lea eax, [ebp - 0x10]
push 0x414ac4
push eax
mov dword [ebp - 0x10], 0x425d0
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.00407477
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x40ae00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x40ae2b
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x4186a8]
xor eax, edi
inc edx
dec esi
jne 0x40ae11
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x40bf94
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418ad4], 0
je 0x40bfb7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
jmp 0x40bfe1
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040bfe5
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCRT.dll_free
test esi, esi
pop ecx
pop esi
setne al
leave
ret 8

Function at 0x40c037
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418ad4], 0
je 0x40c057
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x40c07d
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040bfe5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call sub.MSVCRT.dll_free
test esi, esi
pop ecx
pop esi
setne al
leave
ret 4
Function at 0x40c096
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418ad4], 0
je 0x40c0b8
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x40c0da
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040bfe5
push dword [eax]
call fcn.0040c081
push dword [ebp - 0xc]
mov bl, al
call sub.MSVCRT.dll_free
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x40c2c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40c2d4
xor al, al
jmp 0x40c2e4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x40c2e7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x418ad4], 0
je 0x40c315
push 0
push dword [ebp + 8]
call fcn.0040bf94
test al, al
je 0x40c337
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x40c337
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.0040bfe5
push dword [eax]
call fcn.0040c2c0
push dword [ebp - 0xc]
mov bl, al
call sub.MSVCRT.dll_free
pop ecx
mov al, bl
pop ebx
leave
ret 4

Function at 0x40c33b
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x412ea0
call fcn.00411a60
sub esp, 0x6c
push esi
lea ecx, [ebp - 0x48]
call fcn.0040c9cd
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x5c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040cb31
lea eax, [ebp - 0x18]
push 0x2a
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.0040cb31
and byte [ebp - 0x34], 0
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040b19c
push dword [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MSVCRT.dll_free
pop ecx
jmp 0x40c3b5
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0040b19c
call fcn.0040c449
test al, al
je 0x40c3fd
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x38]
push eax
call fcn.0040d009
test al, al
jne 0x40c397
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_free
pop ecx
lea ecx, [ebp - 0x38]
call fcn.0040cbe2
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40c414
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
push dword [ebp - 0x48]
call sub.MSVCRT.dll_free
xor al, al
jmp 0x40c433
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_free
pop ecx
lea ecx, [ebp - 0x38]
call fcn.0040cbe2
jmp 0x40c3e9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call sub.MSVCRT.dll_free
push dword [ebp - 0x48]
call sub.MSVCRT.dll_free
test esi, esi
setne al
pop ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40c8ad
Capabilities:
Delete file

Disassembly:
mov eax, 0x412f28
call fcn.00411a60
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.0040c95d
push esi
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0040c7fe
test al, al
je 0x40c922
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40c945
push dword [esi]
call fcn.0040cf76
test al, al
je 0x40c90a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040c889
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
pop ecx
jmp 0x40c8c1
push dword [esi]
call fcn.0040c081
test al, al
jne 0x40c959
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40c8f3
lea ecx, [ebp - 0x1c]
call fcn.0040c889
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
xor al, al
pop ecx
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 8
lea ecx, [ebp - 0x1c]
call fcn.0040c889
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
mov al, bl
jmp 0x40c934
mov bl, 1
jmp 0x40c945

Function at 0x40cdec
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x412f94
call fcn.00411a60
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push 0
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [edi + 0x18], eax
push dword [esi + 0x1c]
call fcn.00411c20
mov ecx, dword [esi + 0x20]
xor ebx, ebx
add eax, ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x2c]
adc edx, ebx
push eax
mov dword [edi + 0x24], edx
call fcn.0040afaf
and dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040cea5
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.0040aa36
push dword [ebp - 0x24]
call sub.MSVCRT.dll_free
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
mov eax, dword [esi + 0x24]
pop ecx
pop ecx
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40d15f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d186
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d186
xor al, al
jmp 0x40d1a6
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00411c20
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x41071f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov al, cl
pop esi
pop ebp
ret 0x18

Function at 0x41074d
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x413550
call fcn.00411a60
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.0040aa36
push 0
push 0x1f4
mov ecx, edi
call fcn.0040bb85
lea eax, [ebp - 0x18]
push 0x45
push eax
call fcn.0040d606
push dword [eax]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040d734
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x410912
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4135e6
call fcn.00411a60
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x4147c4
lea ecx, [esi + 0xc]
mov dword [esi + 8], edi
push 0xf
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00406ff7
push edi
push edi
push edi
lea ecx, [esi + 0x38]
push 1
mov byte [ebp - 4], 1
mov dword [esi + 0x30], edi
call fcn.0040d6d2
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.004109a6
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x414794
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret