joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e03
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x42005c]
push ebx
push esi
push edi
push 0
mov dword [ebp + 0x198], eax
push 4
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x1a4]
push eax
mov ebx, ecx
call fcn.004148bf
push dword [ebp - 0x80]
mov ecx, dword [ebx + 0x10]
call fcn.004067ed
add eax, 0x18
lea edx, [ebp - 0x70]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404e48
lea eax, [ebp - 0x70]
push eax
call fcn.00403f61
mov eax, dword [ebp - 0x7c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404e60
lea edi, [ebp - 0x70]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404e6d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x94]
push eax
xor eax, eax
push eax
push eax
push 2
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp + 0x94]
push eax
call fcn.00403f61
mov ecx, dword [ebx + 0x1c]
push 0x12
call fcn.00403f93
mov ecx, eax
mov esi, eax
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x404eb1
sub ecx, esi
lea edi, [ebp + 0x94]
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404ec3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040c06d
pop ecx
lea eax, [ebp + 0x94]
push eax
call fcn.00403f61
mov eax, dword [ebp - 0x78]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ef1
lea edi, [ebp + 0x94]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404f01
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp + 0x94]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
push eax
call fcn.00406f9b
lea eax, [ebp + 0x94]
push eax
call fcn.00404548
push dword [ebp - 0x74]
lea eax, [ebp + 0x94]
push eax
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.0040434b
mov ecx, dword [ebp + 0x198]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0040bf1b
add ebp, 0x19c
leave
ret 4
Function at 0x4052d1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x42005c]
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], eax
lea eax, [esi + 4]
push eax
push 1
push 0x4044a4
push fcn.00404475
push 0x404449
push 0x40440e
push fcn.0040509f
push 0x40453d
push 0x404530
call fcn.00419725
xor edi, edi
add esp, 0x24
cmp eax, edi
mov dword [esi], eax
jne 0x405323
xor eax, eax
jmp 0x4054a5
mov eax, dword [0x420b04]
push ebx
push 0x104
add eax, 0x248
push eax
mov ebx, 0x4209a0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [0x4209a0], 0
jne 0x405356
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 3
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x338], eax
je 0x4054a2
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [ebp - 0x48]
push ecx
push 0x40
lea ecx, [ebp - 0x44]
push ecx
push eax
call ebx
mov eax, dword [ebp - 0x28]
push edi
mov dword [ebp - 0x4c], eax
push edi
add eax, 0xfffffff8
push eax
push dword [esi + 0x338]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x48]
push eax
push 8
lea eax, [ebp - 0x54]
push eax
push dword [esi + 0x338]
call ebx
test eax, eax
je 0x40548f
cmp dword [ebp - 0x48], 8
jne 0x40548f
cmp dword [ebp - 0x50], 0x584f4258
jne 0x40548f
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x334], eax
or eax, 0xffffffff
mov edi, 0x420acc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esi + 0x334]
shl edi, 2
push edi
call fcn.0040c34a
push edi
mov dword [0x42099c], eax
call fcn.0040c34a
pop ecx
mov dword [0x420998], eax
mov eax, dword [ebp - 0x4c]
pop ecx
push 0
sub eax, edi
add eax, 0xfffffff8
push 0
push eax
push dword [esi + 0x338]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x48]
push eax
push edi
push dword [0x42099c]
push dword [esi + 0x338]
call ebx
test eax, eax
je 0x40548f
cmp dword [ebp - 0x48], edi
jne 0x40548f
push 0
push 0
push dword [ebp - 0x4c]
push dword [esi + 0x338]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esi + 0x334]
jmp 0x405482
mov ecx, dword [0x42099c]
lea ecx, [ecx + esi*4]
sub eax, dword [ecx]
mov dword [ecx], eax
mov eax, dword [0x42099c]
mov eax, dword [eax + esi*4]
mov ecx, dword [0x420998]
sub edx, eax
mov dword [ecx + esi*4], edx
dec esi
cmp esi, 0xffffffff
mov edx, eax
jg 0x405462
xor eax, eax
inc eax
jmp 0x4054a4
push dword [esi + 0x338]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x338], 0xffffffff
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0040bf1b
leave
ret
Function at 0x4054b1
Capabilities:
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x42005c]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x340], ebx
mov dword [ebp - 4], eax
je 0x4054dd
push dword [ebp + 8]
call fcn.004046e6
jmp 0x40559a
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x14]
call fcn.004045b1
test eax, eax
jne 0x40550a
push 0x400
push 0x321
mov ecx, dword [0x420b04]
call fcn.00407f9f
or eax, 0xffffffff
jmp 0x405599
push dword [edi + 0x14]
call fcn.00404475
pop ecx
push 0x80
lea edi, [esi + 0x124]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x405530
push 0x401
jmp 0x4054f2
cmp dword [esi + 0x344], ebx
je 0x405572
push 5
lea ebx, [esi + 0x348]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edi, [esi + 0x33c]
cmp dword [edi], 0
je 0x40555c
push ebx
call fcn.00414c11
and dword [edi], 0
mov ecx, dword [0x420b04]
mov eax, dword [ecx]
push 0x10
call dword [eax + 0x14]
and dword [esi + 0x344], 0
jmp 0x405596
cmp dword [esi + 0x33c], ebx
je 0x405596
mov ecx, dword [0x420b04]
mov eax, dword [ecx]
call dword [eax + 0x3c]
test eax, eax
push ebx
push edi
je 0x40560a
call fcn.00414b90
mov dword [esi + 0x33c], ebx
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040bf1b
leave
ret 4
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0x329
push dword [0x420afc]
call dword [sym.imp.USER32.dll_LoadStringA]
push edi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0040c280
mov eax, dword [0x420b04]
mov ecx, dword [eax + 0x1264]
mov eax, dword [eax + 0x22c]
add esp, 0xc
push 3
push ecx
lea ecx, [ebp - 0x404]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x405590
cmp eax, 2
je 0x405618
push ebx
push edi
call fcn.00414b90
test eax, eax
je 0x4055a8
jmp 0x405590
push 0x402
push 0x32a
jmp 0x4054f7
Function at 0x40682f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 8]
push eax
mov dword [ebp - 8], 0x104
call fcn.004148bf
push 0x401c44
push dword [ebp - 0x1c]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x40686e
mov eax, reloc.WS2_32.dll_bind
jmp 0x40688a
push 0x401c3c
push dword [ebp - 0x1c]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x406909
mov eax, reloc.WS2_32.dll_accept
lea ecx, [ebp + 8]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406909
push edi
lea eax, [ebp - 8]
push eax
lea edi, [esi + 0x18]
push edi
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jne 0x4068fe
cmp dword [ebp - 0x10], ebx
je 0x4068fe
push edi
call fcn.00403f61
mov eax, dword [ebp - 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4068dc
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4068e6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
cmp dword [ebp - 4], ebx
pop edi
sete al
jmp 0x40690b
xor eax, eax
pop esi
pop ebx
leave
ret 4

Function at 0x406911
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0x401d78
push dword [esi + 4]
mov edi, ecx
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x406939
push esi
mov ecx, edi
call fcn.0040682f
jmp 0x4069fb
push 0x401d70
push dword [esi + 4]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x406954
xor eax, eax
inc eax
jmp 0x4069fb
push 0x401d68
push dword [esi + 4]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x406978
push 0x104
add esi, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40694c
push 0x401d60
push dword [esi + 4]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x40699c
push 0x104
add esi, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40694c
push 0x401d50
push dword [esi + 4]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
je 0x40694c
push 0x401d44
push dword [esi + 4]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x4069dd
push 0x104
push dword [esi + 8]
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
or byte [esi + 0xe], 0x80
jmp 0x40694c
push 0x401d40
push dword [esi + 4]
call fcn.0040bf8a
test eax, eax
pop ecx
pop ecx
jne 0x4069f9
or byte [esi + 0xd], 0x20
jmp 0x40694c
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x406b37
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
je 0x406b4e
push eax
call fcn.0040c06d
pop ecx
push ebx
push 0x8000000
push 3
push ebx
push 3
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x406b73
xor eax, eax
jmp 0x406bcd
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x406bca
lea eax, [edi + 1]
push eax
call fcn.0040c34a
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x406bca
push ebx
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406bca
cmp dword [ebp - 4], edi
jne 0x406bca
mov eax, dword [esi]
push dword [ebp + 8]
mov byte [edi + eax], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 0x814], ebx
inc eax
jmp 0x406bcc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x406c78
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
mov edx, ebx
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406c88
push ebx
call fcn.00403f61
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406c9b
mov esi, 0x401d80
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push 3
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406d36
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x406d36
lea eax, [esi + 1]
push eax
call fcn.0040c34a
test eax, eax
pop ecx
mov dword [ebx + 0x104], eax
je 0x406d36
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406d36
cmp dword [ebp + 8], esi
jne 0x406d36
mov eax, dword [ebx + 0x104]
push edi
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x104]
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 4]
push eax
inc esi
call fcn.0041488b
test eax, eax
je 0x406d24
mov eax, esi
jmp 0x406d38
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40783e
Capabilities:
Set registry value

Disassembly:
sub esp, 0x124
mov eax, dword [0x42005c]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [esp + 0x130], eax
lea eax, [esp + 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
mov esi, ecx
push ebx
push dword [esi + 0x125c]
push dword [esi + 0x1260]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407975
mov edi, dword [esi + 0x1264]
mov eax, edi
push ebp
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40788c
sub eax, ebp
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push 0x4022a0
push dword [esp + 0x24]
call edi
push 4
push 0x16d9
push ebx
push 1
lea eax, [esp + 0x3c]
push eax
call fcn.00407813
lea eax, [esp + 0x2c]
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4078c7
sub eax, ebp
inc eax
push eax
lea eax, [esp + 0x30]
push eax
push 1
push ebx
push 0x40228c
push dword [esp + 0x24]
call edi
lea ecx, [esi + 0x10c]
mov eax, ecx
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4078f0
sub eax, ebp
inc eax
push eax
push ecx
push 1
push ebx
push 0x402258
push dword [esp + 0x24]
call edi
mov ecx, dword [0x420b08]
cmp ecx, ebx
je 0x40793a
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ebp, eax
mov ecx, ebp
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x407920
sub ecx, eax
inc ecx
push ecx
push ebp
push 1
push ebx
push 0x402280
push dword [esp + 0x24]
call edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 8
lea eax, [esp + 0x18]
push eax
push 0xb
push ebx
push 0x402270
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
push 0x4022a0
push dword [esi + 0x125c]
mov ebx, 0x401c2c
push dword [esi + 0x1258]
mov edi, 0x420b20
push ebx
mov ecx, edi
call fcn.00407018
push 0x40228c
push dword [esi + 0x125c]
mov ecx, edi
push dword [esi + 0x1258]
push ebx
call fcn.00407018
push 0x402258
push dword [esi + 0x125c]
mov ecx, edi
push dword [esi + 0x1258]
push ebx
call fcn.00407018
push 0x402280
push dword [esi + 0x125c]
mov ecx, edi
push dword [esi + 0x1258]
push ebx
call fcn.00407018
push 0x402270
push dword [esi + 0x125c]
mov ecx, edi
push dword [esi + 0x1258]
push ebx
call fcn.00407018
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebx
call fcn.0040bf1b
add esp, 0x124
ret
Function at 0x4092e3
Capabilities:
Delete directory
Enumerate files on windows
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x42005c]
push ebx
mov ebx, dword [ebp + 0x3e0]
push esi
lea edx, [ebp - 0x78]
mov dword [ebp + 0x3d4], eax
push edi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40930c
lea eax, [ebp - 0x78]
push eax
call fcn.00403f61
lea edi, [ebp - 0x78]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409323
mov esi, 0x401b94
lea edx, [ebp + 0x1cc]
movsd dword es:[edi], dword [esi]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40933b
lea eax, [ebp + 0x1cc]
push eax
call fcn.00403f61
lea eax, [ebp + 0x1cc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40935a
mov ecx, dword [ebp + 0x3e4]
sub eax, edx
lea edi, [ebp + eax + 0x1cc]
lea eax, [ebp + 0x2d0]
mov dword [ebp - 0x80], edi
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x40937b
lea eax, [ebp + 0x2d0]
push eax
call fcn.00403f61
lea eax, [ebp + 0x2d0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40939a
sub eax, edx
lea ebx, [ebp + eax + 0x2d0]
lea eax, [ebp + 0x2d0]
push eax
call fcn.00404548
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x409482
jmp 0x4093d8
mov edi, dword [ebp - 0x80]
cmp byte [ebp + 0xb8], 0x2e
je 0x40946a
test byte [ebp + 0x8c], 0x10
jne 0x40946a
lea eax, [ebp + 0xb8]
mov byte [edi], 0
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4093f9
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409405
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp + 0xb8]
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], 0
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409426
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409434
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 3
lea eax, [ebp + 0x2d0]
push eax
lea eax, [ebp + 0x1cc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40946a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp + 0x8c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4093d5
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0x3e0]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 0x3d4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0040bf1b
add ebp, 0x3d8
leave
ret 8
Function at 0x4094b2
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x42005c]
push ebx
mov dword [ebp + 0x1c8], eax
mov eax, dword [ebp + 0x1d4]
push esi
lea ebx, [ebp + 0xc4]
push edi
sub ebx, eax
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x4094dc
lea eax, [ebp + 0xc4]
push eax
call fcn.00403f61
lea edi, [ebp + 0xc4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4094f9
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc4]
mov esi, 0x401b94
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x40959c
cmp byte [ebp - 0x50], 0x2e
je 0x409582
test byte [ebp - 0x7c], 0x10
jne 0x409582
mov eax, dword [ebp + 0x1d4]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x409532
lea eax, [ebp + 0xc4]
push eax
call fcn.00403f61
lea eax, [ebp - 0x50]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40954d
lea edi, [ebp + 0xc4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40955d
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0xc4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409520
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0x1d4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x4095b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c8]
call fcn.0040bf1b
add ebp, 0x1cc
leave
ret 4
Function at 0x409821
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x62c]
sub esp, 0x6ac
mov eax, dword [0x42005c]
and dword [ebp - 0x80], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x19
mov dword [ebp + 0x628], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
mov ecx, 0x421450
mov dword [ebp - 4], esi
call fcn.004067db
mov edx, dword [ebp - 8]
test edx, edx
jbe 0x409890
lea ecx, [eax + 0x10]
movsx eax, byte [ecx + 8]
or eax, 0x20
cmp eax, 0x61
jb 0x409887
cmp eax, 0x7a
ja 0x409887
mov edi, dword [ecx + 4]
sub edi, dword [ecx]
lea eax, [ebp + eax*4 - 0x204]
add dword [eax], edi
add ecx, 0x11c
dec edx
jne 0x409868
movsx eax, byte [esi + 0x10c]
or eax, 0x20
cmp eax, 0x61
jb 0x4098ac
cmp eax, 0x7a
ja 0x4098ac
sub eax, 0x61
mov dword [ebp + 8], eax
jmp 0x4098b0
or dword [ebp + 8], 0xffffffff
and dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + eax*4 - 0x80]
test esi, esi
jle 0x4098f6
add al, 0x41
mov byte [0x420050], al
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push 0x420050
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, esi
cdq
mov ebx, eax
shld edx, ebx, 0xf
shl ebx, 0xf
cmp edx, dword [ebp + 4]
mov dword [ebp - 0xc], edx
ja 0x409919
jb 0x4098f6
cmp ebx, dword [ebp]
ja 0x409919
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x1a
jb 0x4098b4
xor eax, eax
mov ecx, dword [ebp + 0x628]
pop edi
pop esi
pop ebx
call fcn.0040bf1b
add ebp, 0x62c
leave
ret 8
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov edi, 0x104
push edi
lea eax, [ebp + 0x524]
push eax
push 0x2c8
push dword [0x420afc]
call esi
push 0x420050
lea eax, [ebp + 0x524]
push eax
lea eax, [ebp + 0x420]
push eax
call fcn.0040c280
add esp, 0xc
push edi
lea eax, [ebp + 0x524]
push eax
push 0x28c
push dword [0x420afc]
call esi
push dword [ebp - 0xc]
push ebx
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.00407f3e
push eax
lea eax, [ebp + 0x524]
push eax
lea eax, [ebp + 0x31c]
push eax
call fcn.0040c280
add esp, 0xc
push edi
lea eax, [ebp + 0x10]
push eax
push 0x28d
push dword [0x420afc]
call esi
push dword [ebp + 4]
mov ecx, ebx
push dword [ebp]
call fcn.00407f3e
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x524]
push eax
call fcn.0040c280
lea eax, [ebp + 0x524]
push eax
lea eax, [ebp + 0x31c]
push eax
lea eax, [ebp + 0x420]
push eax
lea eax, [ebp + 0x10]
push 0x4023fc
push eax
call fcn.0040c280
mov eax, dword [ebx]
add esp, 0x20
push 0x3f0
lea ecx, [ebp + 0x10]
push ecx
mov ecx, ebx
call dword [eax + 4]
mov esi, dword [ebp + 0x634]
test esi, esi
je 0x409a17
mov edi, dword [ebp + 0x638]
push edi
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.0040cd70
add esp, 0xc
mov byte [esi + edi - 1], 0
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
lea eax, [eax + eax - 1]
jmp 0x409901
Function at 0x409a2b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x2cc]
sub esp, 0x34c
mov eax, dword [0x42005c]
push ebx
mov ebx, ecx
cmp dword [ebx + 0x214], 0
mov dword [ebp + 0x2c8], eax
mov dword [ebp - 0x80], 5
jne 0x409a5f
xor eax, eax
inc eax
jmp 0x409b93
lea eax, [ebx + 8]
lea edx, [ebp + 0x1c4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x409a6a
lea eax, [ebp + 0x1c4]
push eax
call fcn.00403f61
lea eax, [ebp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x40246c
lea eax, [ebp + eax + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409aca
push 0x3fd
push 0x2c7
mov ecx, ebx
call fcn.00407f9f
xor eax, eax
jmp 0x409b93
push esi
push edi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, 0x40245c
mov esi, 0x2cb
push edi
lea eax, [ebp + 0x1c4]
push eax
call fcn.00418464
test eax, eax
jl 0x409b33
push 0
push edi
call fcn.004085be
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push 0x402408
push eax
call fcn.0040847a
mov ecx, dword [ebp - 0x80]
dec dword [ebp - 0x80]
test ecx, ecx
je 0x409b2f
test eax, eax
jl 0x409b07
test eax, eax
jge 0x409ba7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x3c]
test eax, eax
jne 0x409b82
push 0x100
lea eax, [ebp + 0xc4]
push eax
push esi
push dword [0x420afc]
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, dword [0x420b04]
mov ecx, dword [eax + 0x1264]
mov eax, dword [eax + 0x22c]
push 5
push ecx
lea ecx, [ebp + 0xc4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x409aee
push 0x3fe
mov ecx, ebx
push esi
call fcn.00407f9f
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp + 0x2c8]
pop ebx
call fcn.0040bf1b
add ebp, 0x2cc
leave
ret
xor eax, eax
inc eax
jmp 0x409b91