joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dbf90
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404800
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x4dc117
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x4dc134
call fcn.00404954
test eax, eax
jne 0x4dbfdb
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4dc140
call fcn.0040465c
mov eax, esi
mov edx, 0x3c
call fcn.004da8b8
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.004027b0
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.004027b0
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.004027b0
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.004027b0
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.004027b0
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.004027b0
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404610
push eax
mov eax, dword [ebp - 4]
call fcn.00404810
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4dc0d1
mov eax, edi
mov edx, dword [esi + 4]
call fcn.00404548
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.00404548
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.00404548
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.00404548
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.00404548
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.00404548
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 0x34]
call fcn.004027d0
mov eax, dword [esi + 0x2c]
call fcn.004027d0
mov eax, dword [esi + 0x24]
call fcn.004027d0
mov eax, dword [esi + 0x1c]
call fcn.004027d0
mov eax, dword [esi + 0x10]
call fcn.004027d0
mov eax, dword [esi + 4]
call fcn.004027d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc11e
lea eax, [ebp - 4]
call fcn.00404350
ret

Function at 0x4dc338
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x4dc351
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x4dc35e
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4dc37c
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dc3a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4dc3e7
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.004045b4
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.004045b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4dc748
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x4dc765
add esp, 0xfffffff0
call fcn.004037a0
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4dc864
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x4dc7b2
mov eax, esi
call fcn.00404810
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
mov eax, edi
and eax, 2
cmp eax, 2
je 0x4dc7a3
mov eax, edi
and eax, 1
cmp eax, 1
jne 0x4dc7b2
push 0x20
mov eax, esi
call fcn.00404810
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
xor eax, eax
mov al, byte [ebp + 0xc]
mov eax, dword [eax*4 + 0x50dd10]
push eax
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00404810
push eax
call sub.kernel32.dll_CreateFileA
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.0041dbc4
cmp dword [ebx + 4], 0
jge 0x4dc835
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.004094d4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x1c]
call fcn.0040bfcc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x50e634]
mov dl, 1
mov eax, dword [0x41763c]
call fcn.0040c8d8
call fcn.00403ccc
cmp byte [ebp + 8], 0
je 0x4dc849
push edi
mov eax, esi
call fcn.00404810
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc86b
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404374
ret
Function at 0x4dd1e4
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4dd301
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004dd0ac
pop ecx
test al, al
je 0x4dd2dc
mov eax, dword [ebp + 8]
push eax
call fcn.004dcef0
pop ecx
test al, al
jne 0x4dd2dc
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x140]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x4dd2dc
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.004dcf30
pop ecx
test al, al
je 0x4dd2dc
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.004045c0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.00408e84
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x188], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x188]
cmp esi, 0xc8
je 0x4dd2a7
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x4dd2dc
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.004dcf30
pop ecx
test al, al
je 0x4dd2dc
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.004045c0
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00408e84
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.004dcef0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd308
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404374
ret
Function at 0x4e2664
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e27d3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x5100c4]
call fcn.00404810
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4e272b
mov dl, 1
mov eax, dword [0x4185fc]
call fcn.0040340c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4e271b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x4e27e0
mov edx, 0x4e27e0
mov eax, dword [0x50f668]
call fcn.004da800
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2722
mov eax, dword [ebp - 0x10]
call fcn.0040343c
ret
lea eax, [ebp - 0x18]
call fcn.004d8c54
lea eax, [ebp - 0x18]
mov edx, 0x4e27f0
call fcn.00404618
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
call fcn.004dab48
push 1
push dword [0x5100c4]
push 0x4e280c
mov eax, dword [0x50e588]
push dword [eax]
push 0x4e2818
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004046d0
mov eax, dword [ebp - 0x1c]
call fcn.00404810
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x264], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1fa], 0
je 0x4e27b3
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1fc]
call dword [ebx + 0x1f8]
jmp 0x4e27b8
call fcn.004da890
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e27da
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404374
ret

Function at 0x4e28c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
xor edx, edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
xor eax, eax
push ebp
push 0x4e297c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
mov eax, dword [0x50e48c]
push dword [eax]
push 0x4e2990
push 0x4e299c
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.004046d0
mov eax, dword [ebp - 0x144]
call fcn.00404810
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e295e
lea eax, [ebp - 0x148]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.004045c0
mov eax, dword [ebp - 0x148]
call fcn.00409388
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4e2926
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e2983
lea eax, [ebp - 0x148]
mov edx, 2
call fcn.00404374
ret
Function at 0x4e4a64
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4e4b1b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404810
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x4e4aa6
call fcn.00403d78
jmp 0x4e4b22
mov eax, ebx
call fcn.004027b0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00404810
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x4e4acf
call fcn.00403d78
jmp 0x4e4b22
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4e4b2c
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4e4af0
call fcn.00403d78
jmp 0x4e4b22
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4b22
mov eax, dword [ebp - 8]
call fcn.004027d0
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fd09c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, edx
call sub.kernel32.dll_GetTickCount
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x50e36c]
mov eax, dword [eax]
call fcn.00476990
sub ebx, esi
cmp edi, ebx
ja 0x4fd0a8
pop edi
pop esi
pop ebx
ret
Function at 0x4076f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4533b9
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x46d218]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00403050
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00403050
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00403050
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.00403150
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.00416900
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x14], esp
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.00408620
add esp, 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.00416c80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40af00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.004378e0
add esp, 4
pop ebp
ret
Function at 0x40eb90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453f78
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x46d218]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x40ebd0
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40ebdc
mov al, 1
jmp 0x40ed7f
mov dword [ebp - 0x48], 8
call fcn.00406520
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00406520
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00406530
add esp, 8
movzx eax, al
test eax, eax
je 0x40ec1f
xor al, al
jmp 0x40ed7f
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0040ca90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00405e60
mov ecx, eax
call fcn.00404560
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.004155d0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405e60
mov ecx, eax
call fcn.00404560
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.00415e70
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40ec9a
cmp dword [ebp - 0x38], 1
je 0x40eca1
cmp dword [ebp - 0x38], 3
je 0x40ed3b
jmp 0x40ed53
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00405e60
mov ecx, eax
call fcn.00404560
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x40ed04
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405e60
mov ecx, eax
call fcn.00404560
push eax
call fcn.0043582e
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x40ed04
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cc0
mov al, byte [ebp - 0x2d]
jmp 0x40ed7f
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x40ed27
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cc0
mov al, byte [ebp - 0x2e]
jmp 0x40ed7f
cmp dword [ebp - 0x34], 0
jne 0x40ed39
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00410e60
jmp 0x40ed6b
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cc0
mov al, byte [ebp - 0x2f]
jmp 0x40ed7f
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cc0
mov al, byte [ebp - 0x30]
jmp 0x40ed7f
jmp 0x40ec32
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e6a0
mov esp, ebp
pop ebp
ret
Function at 0x418330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45458b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x46d218]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x284], 0
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4183e7
lea ecx, [ebp - 0x280]
call fcn.00418500
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x280]
call fcn.00418e70
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402fd0
mov ecx, dword [ebp - 0x284]
or ecx, 1
mov dword [ebp - 0x284], ecx
lea ecx, [ebp - 0x230]
call fcn.00403cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
call fcn.00418600
mov eax, dword [ebp + 8]
jmp 0x418440
push str.APPDATA
call fcn.00438362
add esp, 4
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0
je 0x418426
mov edx, dword [ebp - 0x288]
push edx
mov ecx, dword [ebp + 8]
call fcn.004030e0
mov eax, dword [ebp - 0x284]
or eax, 1
mov dword [ebp - 0x284], eax
mov eax, dword [ebp + 8]
jmp 0x418440
mov ecx, dword [ebp + 8]
call fcn.00403150
mov ecx, dword [ebp - 0x284]
or ecx, 1
mov dword [ebp - 0x284], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e6a0
mov esp, ebp
pop ebp
ret

Function at 0x443fee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00443e64
Function at 0x401000
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push 0x406030
push eax
call esi
lea ecx, [esp + 8]
push 0x406034
push ecx
call esi
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
add esp, 0x104
ret

Function at 0x401060
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
sub esp, 0x204
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x114]
push 0x406060
push eax
call ebx
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x406030
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call ebx
lea edx, [esp + 0x14]
push 0x406034
push edx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x14]
push eax
call ebp
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x406030
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call ebx
lea edx, [esp + 0x14]
push 0x406048
push edx
call ebx
lea eax, [esp + 0x14]
push eax
call ebp
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
Function at 0x401150
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
sub esp, 0x600
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x311]
mov byte [esp + 0x310], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x210], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x211]
mov byte [esp + 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x111]
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x406120
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x210]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dl, byte [esp + 0x310]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4060fc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], dl
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4060d4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x210], dl
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea ebp, [esp + 0x410]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4060b4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x110], dl
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x510]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406094
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x410], dl
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x510]
push ecx
mov byte [esp + 0x514], dl
call esi
lea edx, [esp + 0x210]
push edx
call esi
lea eax, [esp + 0x110]
push eax
call esi
lea ecx, [esp + 0x410]
push ecx
call esi
test eax, eax
jne 0x401309
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x410]
push edx
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebx
push 0x406088
push 0x406070
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x600
ret