joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc94
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
and dword [ebp - 8], eax
lea edi, [ebp - 2]
stosw word es:[edi], ax
call fcn.0040bff5
test eax, eax
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov word [ebp - 4], cx
mov word [ebp - 2], bx
mov edi, dword [ebp - 4]
je 0x40bcd3
cmp eax, 0xffffffff
je 0x40bcd3
push edi
push eax
call esi
mov dword [ebp - 8], eax
jmp 0x40bce8
push str._GetLastError_
push eax
push ebx
push ecx
push str.:7:SetConsoleCursorPosServer__d___d_:_FAILED___x:__s
call fcn.004178df
add esp, 0x14
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call ebx
test eax, eax
je 0x40bcff
cmp eax, 0xffffffff
je 0x40bcff
push edi
push eax
call esi
push 0xfffffffffffffff4
call ebx
test eax, eax
je 0x40bd10
cmp eax, 0xffffffff
je 0x40bd10
push edi
push eax
call esi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push str.CONOUT_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40bd36
push edi
push eax
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d5f2
Capabilities:
Set console window title

Disassembly:
mov eax, dword [0x549f6c]
test eax, eax
push ebx
push edi
mov edi, dword [esp + 0xc]
je 0x40d633
xor ebx, ebx
inc ebx
test eax, eax
mov dword [0x549f70], ebx
je 0x40d61b
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x549f6c]
test edi, edi
je 0x40d625
test eax, eax
jne 0x40d601
jmp 0x40d636
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x40d73f
xor ebx, ebx
inc ebx
test edi, edi
je 0x40d73d
push esi
mov esi, 0x549f78
push edi
mov ecx, 0x104
mov eax, esi
call fcn.0047c3fc
pop ecx
mov eax, edi
call fcn.0047c34d
mov cl, byte [0x549f78]
xor edx, edx
xor eax, eax
jmp 0x40d68f
test edx, edx
je 0x40d679
cmp cl, 0x29
jne 0x40d670
xor edx, edx
mov byte [eax + 0x54a080], 0x20
jmp 0x40d688
cmp cl, 0x28
jne 0x40d682
mov edx, ebx
jmp 0x40d670
mov byte [eax + 0x54a080], cl
mov cl, byte [eax + 0x549f79]
inc eax
test cl, cl
jne 0x40d665
push ebp
mov ebp, 0x54a080
push ebp
push esi
mov byte [eax + 0x54a080], cl
call fcn.004b5890
test eax, eax
pop ecx
pop ecx
je 0x40d71c
call fcn.0040d490
test eax, eax
jne 0x40d71c
and dword [esp + 0x14], eax
and dword [0x549f70], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ebx, 0x549f70
call fcn.0040a381
test eax, eax
jne 0x40d710
cmp dword [esp + 0x14], eax
mov dword [0x549f6c], 1
je 0x40d6ed
push ebp
call edi
mov eax, 0x2ee
jmp 0x40d6f5
push esi
call edi
mov eax, 0x5dc
call fcn.004a4ae8
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
cmp dword [0x549f70], 0
mov dword [esp + 0x14], eax
je 0x40d6ca
push esi
call edi
and dword [0x549f6c], 0
jmp 0x40d73b
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
and dword [0x549f6c], 0
push 0x3e8
mov dword [0x549f70], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebp
pop esi
xor eax, eax
pop edi
pop ebx
ret 4
Function at 0x40d744
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and word [ebp - 4], 0
push ebx
push esi
mov ebx, eax
xor eax, eax
and dword [ebp - 8], eax
test ebx, ebx
push edi
lea edi, [ebp - 2]
mov esi, ecx
stosw word es:[edi], ax
jne 0x40d775
cmp esi, 0x100
mov ebx, 0x54a188
jb 0x40d775
mov esi, 0xff
mov eax, ebx
call fcn.0047c34d
test esi, esi
jg 0x40d794
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:3:GetConsoleText__d___d___d__FAILED:_iCount_is_invalid:__d
call fcn.00417db7
jmp 0x40d7df
mov ax, word [ebp + 8]
mov edi, dword [ebp + 0xc]
mov word [ebp - 4], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 2], di
push dword [ebp - 4]
push esi
push ebx
call fcn.0040bff5
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
jne 0x40d7e2
cmp byte [0x5499a2], al
jne 0x40d7e2
push str._GetLastError_
push esi
push edi
push dword [ebp + 8]
push str.:3:GetConsoleText__d___d___d__FAILED:_ReadConsoleOutputCharacter___FAILED:__s
call fcn.00417db7
mov byte [0x5499a2], 1
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40d836
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xa8]
mov ebx, 0x100
lea esi, [ebx - 1]
push esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.004b53e0
and word [ebp - 0x74], 0
xor eax, eax
and dword [ebp - 0x80], eax
lea edi, [ebp - 0x72]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x78]
add esp, 0xc
call fcn.0047c3ec
test eax, eax
je 0x40d8a3
xor eax, eax
jmp 0x40d94f
push dword [ebp - 0x7c]
lea edi, [ebp - 0x70]
push dword [ebp - 0x78]
mov eax, edi
push esi
push eax
jmp 0x40d8e0
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40d8c0
push edi
call fcn.004b4080
pop ecx
add ebx, ebx
lea eax, [ebx + 0xa]
push eax
push 1
call fcn.004b422c
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40d89c
push dword [ebp - 0x7c]
lea eax, [ebx - 1]
push dword [ebp - 0x78]
push eax
push edi
call fcn.004b630e
add esp, 0x10
cmp eax, 0xffffffff
je 0x40d8b2
mov ebx, dword [ebp + 0x9c]
mov esi, dword [ebp + 0xa0]
lea ecx, [ebp - 0x80]
push ecx
mov word [ebp - 0x74], bx
mov word [ebp - 0x72], si
push dword [ebp - 0x74]
push eax
push edi
call fcn.0040bff5
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
test eax, eax
jne 0x40d93e
cmp byte [0x5499a3], al
jne 0x40d93e
push str._GetLastError_
push edi
push esi
push ebx
push str.:3:OutConsole__d___d___s__FAILED:_WriteConsoleOutputCharacter___FAILED:__s
call fcn.00417db7
add esp, 0x14
mov byte [0x5499a3], 1
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40d94c
push edi
call fcn.004b4080
pop ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
add ebp, 0x94
leave
ret
Function at 0x40ecfc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
jle 0x40ed57
cmp dword [ebp + 0x10], ebx
jle 0x40ed57
push 1
mov esi, 0x410
push esi
call fcn.004b422c
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x40ed57
push esi
push ebx
push edi
call fcn.004b53e0
mov eax, dword [0x54a8d4]
add esp, 0xc
cmp eax, ebx
jne 0x40ed41
call fcn.0046ed85
mov dword [0x54a8d4], eax
push edi
call fcn.0046ee6e
cmp dword [0x54a8d4], ebx
pop ecx
jne 0x40ed5e
push edi
call fcn.004b4080
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [edi + 0x1b8]
push 0x4d8e6c
push eax
call fcn.004b4780
mov dword [edi + 0x174], ebx
mov dword [edi + 0x190], ebx
lea ebx, [edi + 0x250]
push str..ConsoleField.c
push ebx
mov dword [edi + 0x15c], 1
mov dword [edi + 0x18c], 2
call fcn.0041f4a2
add esp, 0x10
test eax, eax
jne 0x40edb2
push str.:5:CreateConField___EAP:_InitializeLock___FAILED.
call fcn.004178df
pop ecx
mov esi, str.A_Console_Field_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0041f7a1
mov eax, 0xbb8
mov ecx, ebx
call fcn.0041f7de
mov eax, edi
call fcn.00413d7e
push 0x4d75bc
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov eax, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040efe6
add esp, 0x14
test eax, eax
jne 0x40edfb
mov eax, edi
call fcn.0040ee11
jmp 0x40ed57
mov esi, edi
call fcn.0040f4b6
push 0x5f
call fcn.0040f4ea
pop ecx
mov eax, edi
jmp 0x40ed59
Function at 0x418c67
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edx, ebp
call fcn.0047c3ca
test eax, eax
je 0x418c82
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [0x54cab4], 0
je 0x418c8f
xor eax, eax
jmp 0x418c7d
push 0
xor edx, edx
mov ecx, ebp
mov dword [0x54cab4], 1
call fcn.0041b6bd
pop ecx
mov ebx, 0x80000
cmp eax, ebx
ja 0x418cb9
xor eax, eax
and dword [0x54cab4], 0
jmp 0x418c7d
push ebp
call fcn.0041c23c
mov edi, eax
test edi, edi
pop ecx
jne 0x418ccb
or eax, 0xffffffff
jmp 0x418cb0
mov esi, dword [edi]
cmp esi, ebx
ja 0x418cda
push edi
call fcn.004b4080
pop ecx
jmp 0x418cc6
lea ebx, [esi - 0x80000]
cmp byte [ebx + edi + 4], 0xa
je 0x418cf4
inc ebx
lea eax, [esi - 0x20000]
cmp ebx, eax
jb 0x418ce0
jmp 0x418cf5
inc ebx
push 0x4eb
push str..Error.c
mov edx, 0x4d36e8
mov ecx, ebp
call fcn.0041cea8
mov ebp, eax
test ebp, ebp
pop ecx
pop ecx
je 0x418cd1
push ebp
sub esi, ebx
push esi
lea eax, [ebx + edi + 4]
push 1
push eax
call fcn.004b43ca
mov ecx, ebp
call fcn.0041d2f0
push edi
call fcn.004b4080
xor eax, eax
add esp, 0x14
inc eax
jmp 0x418cb0
Function at 0x419bda
Capabilities:
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x8d]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x7c], edi
mov byte [ebp + 0x8c], bl
call fcn.004b53e0
push esi
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004b53e0
add esp, 0x18
mov edx, edi
call fcn.0047c3ca
test eax, eax
jne 0x419cfc
mov edx, dword [ebp - 0x80]
call fcn.0047c3ca
test eax, eax
jne 0x419cfc
push dword [ebp - 0x80]
lea edi, [esi + 1]
mov ecx, edi
lea eax, [ebp + 0x8c]
call fcn.0047c3fc
mov edx, eax
call fcn.0047cea7
mov esi, edx
call fcn.0047cf47
mov eax, esi
push eax
call fcn.004b4450
pop ecx
pop ecx
jmp 0x419c8c
lea ecx, [ebp + eax + 0x8c]
cmp byte [ecx], 0x5c
jne 0x419c91
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x419c7e
lea esi, [ebp + 0x8c]
call fcn.0047c6f9
push dword [ebp - 0x7c]
mov ecx, edi
lea eax, [ebp - 0x78]
call fcn.0047c3fc
mov edx, eax
call fcn.0047cea7
mov esi, edx
call fcn.0047cf47
mov eax, esi
push eax
call fcn.004b4450
pop ecx
pop ecx
jmp 0x419cce
lea ecx, [ebp + eax - 0x78]
cmp byte [ecx], 0x5c
jne 0x419cd3
mov byte [ecx], bl
dec eax
cmp eax, ebx
jg 0x419cc3
lea eax, [ebp - 0x78]
call fcn.0047c73c
mov edx, eax
lea ecx, [ebp + 0x8c]
call fcn.0047c986
push 0xb
lea eax, [ebp + 0x8c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x419cfe
xor eax, eax
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
add ebp, 0x194
leave
ret
Function at 0x419d16
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x5345d0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x24], bl
call fcn.004b53e0
add esp, 0xc
push edi
mov ecx, 0x104
lea eax, [esp + 0x1c]
call fcn.0047c3fc
pop ecx
mov esi, eax
call fcn.0047cf47
push ebx
push 0x5c
call fcn.0047cff2
pop ecx
pop ecx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x419dd6
test al, 0x10
je 0x419dd6
mov eax, esi
push 1
push eax
call fcn.00419e39
mov eax, esi
push eax
call fcn.00419e55
add esp, 0xc
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x10], ebx
mov esi, eax
jne 0x419dd3
lea edi, [esp + 0x18]
call fcn.0041b048
test eax, eax
je 0x419dd3
push esi
push str._GetLastError_
mov eax, edi
push eax
push dword [esp + 0x20]
push str.:3:DeleteDirectory___s___FAILED:_DeleteFiles___s___1__0__FAILED:__s_ld
call fcn.004178df
add esp, 0x14
push esi
jmp 0x419e02
cmp eax, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x419e00
call fcn.0041b048
test eax, eax
je 0x419e00
push edi
call fcn.0041b0f5
test eax, eax
pop ecx
jne 0x419e00
push edi
push str.:3:DeleteDirectory___s___FAILED:_The_given_file_is_not_a_directory_
call fcn.004178df
pop ecx
pop ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4c95
mov esp, ebp
pop ebp
ret

Function at 0x419e55
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 6
xor ebx, ebx
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
mov edx, edi
call fcn.0047c3ca
test eax, eax
je 0x419e84
xor eax, eax
jmp 0x419f0e
push edi
call fcn.004b4450
cmp byte [eax + edi - 1], 0x5c
pop ecx
jne 0x419ea3
push ebx
push 1
push edi
push str.:7:DeleteFiles___s____d___d__will_produce_no_results_because_the_path_given_is_empty___Use_a__after_the_backslash_to_delete_files_or_remove_the_back_slash_to_delete_the_directory.
call fcn.00417db7
add esp, 0x10
push edi
call fcn.004b4450
add eax, 0xa
push eax
push 1
call fcn.004b422c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x419e7d
push edi
push esi
call fcn.004b4780
push esi
call fcn.004b4450
mov byte [eax + esi + 1], bl
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], 0x614
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.004b4080
xor eax, eax
cmp edi, ebx
pop ecx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a397
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
call fcn.0047c3ca
test eax, eax
jne 0x41a4cc
mov edx, dword [ebp + 0xc]
call fcn.0047c3ca
test eax, eax
jne 0x41a4cc
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x20
push 3
push ebx
push 7
push 0x80
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41a449
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41a41b
mov dword [ebp - 8], 1
jmp 0x41a444
cmp dword [0x542b48], ebx
je 0x41a444
push str._GetLastError_
push dword [ebp + 0x10]
mov dword [0x542b48], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:6:CopyFileWithDates___s_____s____d__encountered_a_problem:_GetFileTime___FAILED:__s
call fcn.004178df
add esp, 0x14
call fcn.0041d762
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a890
add esp, 0xc
test eax, eax
je 0x41a4cc
cmp dword [ebp - 8], ebx
jne 0x41a468
xor eax, eax
inc eax
jmp 0x41a4ce
push ebx
push SQLGetDiagRec
push 3
push ebx
push 7
push 0x100
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41a463
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41a4c5
inc dword [0x54cacc]
cmp dword [0x54cacc], 0xa
jge 0x41a4c5
push str._GetLastError_
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:6:_1_of_10:_CopyFileWithDates___s_____s____d__encountered_a_problem:_SetFileTime___FAILED:__s
call fcn.004178df
add esp, 0x14
call fcn.0041d762
jmp 0x41a463
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a890
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov dword [ebp - 0x114], ebx
call fcn.0047c3ca
test eax, eax
jne 0x41a9f8
mov edx, edi
call fcn.0047c3ca
test eax, eax
jne 0x41a9f8
push ebx
call fcn.004b4450
mov esi, 0x104
cmp eax, esi
pop ecx
jae 0x41a9ad
push edi
call fcn.004b4450
cmp eax, esi
pop ecx
jae 0x41a9ad
push dword [ebp + 0x10]
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
call ebx
test eax, eax
jne 0x41a9a8
push edi
call fcn.0041b0f5
test eax, eax
pop ecx
je 0x41a976
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.004b53e0
add esp, 0xc
push dword [ebp - 0x114]
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.0047c3fc
pop ecx
mov esi, eax
call fcn.0047c6f9
mov edx, esi
call fcn.0047c3ca
test eax, eax
jne 0x41a9f8
mov edx, edi
mov ecx, esi
call fcn.0047c986
push dword [ebp + 0x10]
mov eax, esi
push eax
push dword [ebp - 0x114]
call ebx
jmp 0x41a9fa
cmp dword [ebp + 0x10], 0
jne 0x41a9f8
call fcn.0041b048
test eax, eax
je 0x41a9f8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x41a9f8
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
jmp 0x41a969
xor eax, eax
inc eax
jmp 0x41a9fa
mov eax, ebx
call fcn.0047ee00
mov esi, eax
mov eax, edi
call fcn.0047ee00
test esi, esi
mov edi, eax
je 0x41a9ed
test edi, edi
je 0x41a9e6
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
mov ebx, eax
call fcn.004b4080
pop ecx
push edi
call fcn.004b4080
pop ecx
mov eax, ebx
jmp 0x41a9fa
push esi
call fcn.004b4080
pop ecx
test edi, edi
je 0x41a9f8
push edi
call fcn.004b4080
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
leave
ret

Function at 0x41aa09
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov edx, edi
call fcn.0047c3ca
test eax, eax
je 0x41aa1d
xor eax, eax
jmp 0x41aa59
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x41aa56
call fcn.0041b048
test eax, eax
je 0x41aa56
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x41aa19
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
jmp 0x41aa59
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret
Function at 0x41b0f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41b10c
test al, 0x10
je 0x41b10c
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x41b28a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x5345d0]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x25d]
push ebx
push eax
mov byte [esp + 0x264], bl
call fcn.004b53e0
push esi
lea eax, [esp + 0x161]
push ebx
push eax
mov byte [esp + 0x168], bl
call fcn.004b53e0
push 0x13c
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.004b53e0
add esp, 0x24
cmp edi, ebx
je 0x41b3dc
cmp byte [edi], bl
je 0x41b3dc
push edi
lea ecx, [esi + 1]
lea eax, [esp + 0x25c]
call fcn.0047c3fc
push eax
lea eax, [esp + 0x158]
push eax
call fcn.004b4780
add esp, 0xc
lea esi, [esp + 0x150]
call fcn.0047c6f9
mov eax, dword [0x54cac4]
lea ecx, [eax + 0xf]
mov eax, dword [0x54cac0]
cmp eax, ecx
jle 0x41b354
push eax
push str.:8:DoesFileExist_Helper___has_determined_that_over__d_helper_threads_may_be_stuck_
mov dword [0x54cac4], eax
call fcn.00417db7
pop ecx
pop ecx
inc dword [0x54cac0]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
dec dword [0x54cac0]
mov esi, eax
cmp esi, 0xffffffff
je 0x41b3dc
cmp byte [esp + 0x3c], 0x2e
je 0x41b3c5
lea edx, [esp + 0x3c]
call fcn.0047c3ca
test eax, eax
jne 0x41b3c5
cmp byte [esp + 0x150], 0x2a
jne 0x41b3f5
cmp byte [esp + 0x152], 0x2a
jne 0x41b3f5
cmp byte [esp + 0x151], 0x3f
je 0x41b3f5
movsx eax, byte [esp + 0x151]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004b6c40
test eax, eax
pop ecx
pop ecx
jne 0x41b3f5
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41b37a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4c95
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x41b3de
Function at 0x41b401
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], ebx
je 0x41b59c
cmp byte [edi], 0x30
je 0x41b59c
mov esi, 0x104
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.004b53e0
push edi
mov ecx, esi
lea eax, [ebp - 0x74]
call fcn.0047c3fc
push 0x22
mov edi, eax
call fcn.0047cd81
add esp, 0x14
cmp dword [ebp + 0x9c], ebx
jbe 0x41b48a
push 0xf83
push str..File.c
mov eax, edi
push eax
push 0x41b5e5
push ebx
mov ecx, str.CreateDirectorySuper
call fcn.0041d5ba
mov edi, eax
jmp 0x41b48c
xor edi, edi
cmp edi, ebx
jne 0x41b4e4
cmp dword [ebp + 0x9c], ebx
jbe 0x41b4ae
push str._GetLastError_
push ebx
push dword [ebp - 0x7c]
push str.:8:CreateDirectorySuper___FAILED_to_create_thread_to_create_directory___s_._NumThreads_d:__s
call fcn.004178df
add esp, 0x10
push ebx
push dword [ebp - 0x7c]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
cmp eax, ebx
je 0x41b4dc
cmp eax, 0x50
je 0x41b4dc
cmp eax, 0xb7
je 0x41b4dc
cmp eax, 0x4c7
je 0x41b4dc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41b59c
xor eax, eax
inc eax
jmp 0x41b59e
call fcn.004a4ba8
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], ebx
jmp 0x41b518
cmp dword [ebp - 0x78], 0x103
jne 0x41b54b
call fcn.004a4ba8
sub eax, dword [ebp - 0x80]
cmp eax, dword [ebp + 0x9c]
ja 0x41b525
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x78]
push eax
push edi
call esi
test eax, eax
jne 0x41b4f7
jmp 0x41b54b
push dword [ebp - 0x7c]
call fcn.004a4ba8
sub eax, dword [ebp - 0x80]
push eax
push str.:5:CreateDirectorySuper___timed_out_after__ldms_while_creating___s_
call fcn.00417db7
add esp, 0xc
mov dword [ebp - 0x78], ebx
mov dword [0x54cabc], 0x5b4
call fcn.0041d762
push dword [0x54cabc]
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
cmp dword [ebp - 0x78], ebx
jne 0x41b4dc
mov eax, dword [ebp - 0x7c]
call fcn.0041b5b6
test eax, eax
jne 0x41b594
push dword [0x54cabc]
push str._GetLastError_
push dword [ebp + 0x9c]
push dword [ebp - 0x7c]
push str.:3:FYI:_CreateDirectorySuper__s___lu___FAILED:__s_ld
call fcn.00417db7
add esp, 0x14
push dword [0x54cabc]
call esi
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4c95
add ebp, 0x94
leave
ret