joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e51
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405983
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405e86
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x437c88], eax
jmp 0x406018
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405ea1
test eax, eax
je 0x405fc3
test cl, 2
je 0x405fc3
push edi
push ebx
mov esi, 0x431358
push esi
call fcn.004057e2
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405ec4
push str..
push esi
call edi
jmp 0x405eca
push ebx
call fcn.0040595c
cmp byte [ebx], 0
jne 0x405ed8
cmp byte [0x431358], 0x5c
jne 0x405ee0
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405fb8
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405577
cmp byte [eax], 0
je 0x405f23
cmp byte [ebp - 0x18], 0
je 0x405f23
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405f39
mov al, byte [esi + 1]
test al, al
je 0x405f97
cmp al, 0x2e
jne 0x405f39
cmp byte [esi + 2], 0
je 0x405f97
push esi
push edi
call fcn.004057e2
test byte [ebp - 0x148], 0x10
je 0x405f5e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f97
push dword [ebp + 0xc]
push ebx
call fcn.00405e51
jmp 0x405f97
push ebx
call fcn.00405632
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f8f
test byte [ebp + 0xc], 4
je 0x405f87
push ebx
push 0xfffffffffffffff1
call fcn.00404891
push 0
push ebx
call fcn.00405cb8
jmp 0x405f97
inc dword [0x437c88]
jmp 0x405f97
push ebx
push 0xfffffffffffffff2
call fcn.00404891
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405f05
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405fc2
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406017
cmp dword [ebp - 8], esi
je 0x406007
push ebx
call fcn.0040589e
test eax, eax
je 0x406017
push ebx
call fcn.0040592f
push ebx
call fcn.00405632
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40600f
test byte [ebp + 0xc], 4
je 0x406007
push ebx
push 0xfffffffffffffff1
call fcn.00404891
push esi
push ebx
call fcn.00405cb8
jmp 0x406017
inc dword [0x437c88]
jmp 0x406017
push ebx
push 0xffffffffffffffe5
call fcn.00404891
pop esi
pop ebx
leave
ret 8
Function at 0x40601d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43275c], 0
jne 0x40605b
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406031
mov dword [ecx*4 + 0x432758], eax
inc ecx
cmp ecx, 0x100
jl 0x40602c
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406088
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x432758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406069
not eax
pop ebp
ret 0xc
Function at 0x406570
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x52fe80]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00407ad0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00404660
mov eax, dword [0x55c874]
test eax, eax
je 0x4065d9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x40674f
test byte [0x5569c0], 2
je 0x4065f9
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4065fe
cmp dword [ebx], 2
jl 0x406639
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.004c3470
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.004c2abe
call fcn.004c3470
add eax, 0x40
push eax
call fcn.004c35ff
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x5569c0], 1
je 0x4066d8
xor edx, edx
xor ecx, ecx
call fcn.00405e80
cmp dword [0x55c868], 0
jne 0x406668
push 0xffffffffffffffff
push dword [0x55c878]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x406674
push dword [0x55c858]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00406000
test al, al
je 0x4066b5
push 2
push 0
push 0
push dword [0x55c864]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x55c864]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x55c868], 0
jne 0x4066cc
push dword [0x55c878]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4066d8
push dword [0x55c858]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x40674f
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x40670c
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004bebf0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.004146e0
add esp, 4
cmp dword [0x55c870], 0
je 0x40679c
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00404660
lea eax, [esp + 0x28]
push eax
call dword [0x55c870]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x40674f
push dword [esp + 0x28]
call fcn.0048185e
add esp, 4
cmp dword [esp + 0x24], 0x10
jb 0x406762
push dword [esp + 0x10]
call fcn.0048185e
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00402a70
push esi
mov dword [esi], 0x4fb9ac
call fcn.004bb773
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
call fcn.004146c0
int3
Function at 0x40a220
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov bl, dl
push esi
mov byte [ebp - 0x461], bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a25f
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
test al, 0x10
je 0x40a3f2
test bl, bl
je 0x40a3e0
mov ecx, esi
mov edi, 0x50f8e4
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a280
sub ecx, edx
mov eax, 0x50f8e0
sar ecx, 1
push 0x50f8e8
cmp word [esi + ecx*2 - 2], 0x5c
cmovne eax, edi
push eax
push esi
push 0x50f8ec
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040a0d0
push 0x24c
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x460], 0
push 0
push eax
call fcn.004bf240
add esp, 0x24
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a3e0
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x40a310
mov edx, 0x50f8fc
lea ecx, [ebp - 0x434]
jmp 0x40a320
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40a346
test ax, ax
je 0x40a342
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x40a346
add ecx, 4
add edx, 4
test ax, ax
jne 0x40a320
xor eax, eax
jmp 0x40a34b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a3c7
mov eax, 0x50f900
lea ecx, [ebp - 0x434]
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40a386
test dx, dx
je 0x40a382
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40a386
add ecx, 4
add eax, 4
test dx, dx
jne 0x40a360
xor eax, eax
jmp 0x40a38b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a3c7
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x468]
lea eax, [ebp - 0x210]
push esi
push 0x50f8ec
push 0x104
push eax
call fcn.0040a0d0
mov dl, byte [ebp - 0x461]
lea ecx, [ebp - 0x210]
add esp, 0x18
call fcn.0040a220
lea eax, [ebp - 0x460]
push eax
push edi
call ebx
test eax, eax
jne 0x40a310
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40a402
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x40a420
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x40a440
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40a44c
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x40a4a0
lea ecx, [esp + 8]
call fcn.004157c0
mov edx, ecx
mov ecx, esi
call fcn.0040ab60
test al, al
je 0x40a489
cmp byte [esp + 0x10], bl
je 0x40a489
cmp dword [esi + 0x14], 8
jb 0x40a477
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40a493
mov eax, dword [esi]
jmp 0x40a495
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a444
cmp dword [esi + 0x14], 8
jb 0x40a4a8
mov esi, dword [esi]
mov dl, bl
mov ecx, esi
call fcn.0040a220
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a4c0
Capabilities:
Move file

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x40a4d0
mov eax, dword [esi]
jmp 0x40a4d2
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x40a4da
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40a4eb
mov al, 1
pop edi
pop esi
ret
cmp dword [edi + 0x14], 8
jb 0x40a4f3
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40a4fb
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
pop edi
setne al
pop esi
ret
Function at 0x40a8d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a8de
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x40a8f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40a8fe
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a912
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x40a920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x52fe80]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40aa0e
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.00406c40
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.004086d0
mov ecx, eax
call fcn.00409080
cmp esi, eax
je 0x40a992
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004072a0
cmp dword [esp + 0x34], 8
jb 0x40a9a5
push dword [esp + 0x20]
call fcn.0048185e
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x1c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x40a9cf
push dword [esp + 8]
call fcn.0048185e
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x40a9f9
push dword [esp + 0x38]
call fcn.0048185e
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
xor al, al
pop esi
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x40aa30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x52fe80]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x40aa5d
mov ebx, dword [edi]
jmp 0x40aa5f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40aaa1
test al, 0x10
je 0x40aa83
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40aa8d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00408c80
cmp dword [edi + 0x14], 8
jb 0x40aab7
mov eax, dword [edi]
jmp 0x40aab9
mov eax, edi
push dword [edi + 0x10]
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x2c]
push 0
call fcn.00409b70
test eax, eax
jne 0x40aade
test esi, esi
je 0x40ab28
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40ab2e
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.0040aa30
test al, al
jne 0x40aaf1
xor bl, bl
jmp 0x40ab2e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ab2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40ab1b
push edi
call fcn.0040a8f0
add esp, 4
test al, al
jne 0x40ab2c
test esi, esi
je 0x40ab28
mov ecx, ebx
call fcn.00415800
mov dword [esi], eax
xor bl, bl
jmp 0x40ab2e
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x40ab41
push dword [esp + 0x14]
call fcn.0048185e
add esp, 4
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x40ad70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x40ad95
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x40ae14
lea ecx, [esp + 0x10]
call fcn.0040b010
cmp esi, 0xffffffff
je 0x40ade1
mov dword [esp + 0x10], esi
call fcn.00414c50
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00415b60
add esp, 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40ae14
cmp ecx, 0xffffffff
je 0x40ae14
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ae10
mov ebx, dword [esp + 0x14]
cmp ebx, edi
jne 0x40ae10
mov ecx, dword [esp + 0x10]
jmp 0x40ae17
mov ecx, dword [esp + 0x10]
or ebx, 0xffffffff
test ecx, ecx
je 0x40ae69
cmp ecx, 0xffffffff
je 0x40ae69
call fcn.00414c50
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.00415c20
mov edi, dword [esp + 0x20]
add esp, 0x10
call fcn.00415d50
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [0x55c8b1], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov byte [0x55c8b1], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40af20
Capabilities:
Check if file exists
Copy file

Disassembly:
cmp dword [ecx + 0x10], 0x104
push esi
mov esi, edx
jae 0x40af72
cmp dword [esi + 0x10], 0x104
jae 0x40af72
cmp dword [esi + 0x14], 8
jb 0x40af3d
mov esi, dword [esi]
cmp dword [ecx + 0x14], 8
jb 0x40af45
mov ecx, dword [ecx]
push 0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40af72
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40af72
test al, 1
je 0x40af6e
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x40bba0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x52fe80]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x55c880], 0
je 0x40bbce
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.00481836
add esp, 4
test eax, eax
je 0x40bbeb
push ecx
mov ecx, eax
call fcn.0040bb00
mov dword [0x55c880], eax
jmp 0x40bbf5
mov dword [0x55c880], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.00406c40
lea eax, [esp + 4]
push eax
call fcn.0040c570
cmp dword [esp + 0x18], 8
jb 0x40bc22
push dword [esp + 4]
call fcn.0048185e
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x40c570
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x3c], 0
mov edx, str._t_n_v_f_r
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [0x55c880]
lea ecx, [edx + 2]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c5c0
sub edx, ecx
lea ecx, [ebp - 0x38]
sar edx, 1
push edx
push str._t_n_v_f_r
call fcn.00407560
lea eax, [ebp - 0x20]
push eax
push ecx
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.00411860
add esp, 8
cmp dword [ebp - 0x24], 8
jb 0x40c600
push dword [ebp - 0x38]
call fcn.0048185e
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x40c637
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x3c]
call fcn.0040bc40
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 8
jb 0x40c648
push dword [ebp - 0x20]
call fcn.0048185e
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 4
Function at 0x40d8b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004bf2f0
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
push edx
lea edx, [ebp - 0x1010]
mov dword [ebp - 0x1010], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40d9ff
mov ecx, dword [ebp - 0x1010]
cmp ecx, 1
jne 0x40d992
cmp word [ebp - 0x808], ax
jne 0x40d950
xor ecx, ecx
lea eax, [ebp - 0x808]
push ecx
push eax
mov ecx, edi
call fcn.00407560
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d960
sub ecx, edx
lea eax, [ebp - 0x808]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407560
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40d9fa
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x40d9e3
cmp eax, 0x400
ja 0x40d9e3
lea eax, [ebp - 0x1008]
mov ecx, edi
push eax
call fcn.00406d50
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret 8

Function at 0x40da50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da70
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x412060
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.004090e0
test al, al
jne 0x412087
mov ecx, dword [ebp + 0xc]
call fcn.004090e0
test al, al
jne 0x412087
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040ae80
xor al, al
pop ebp
ret

Function at 0x412090
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.004090e0
test al, al
jne 0x4120b7
mov ecx, dword [ebp + 0xc]
call fcn.004090e0
test al, al
jne 0x4120b7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040af20
xor al, al
pop ebp
ret
Function at 0x4120c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004bf2f0
mov eax, dword [0x52fe80]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x4120f8
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x4120f3
mov eax, dword [ebx]
jmp 0x4120f5
mov eax, ebx
mov byte [eax], 0
call fcn.004090e0
test al, al
je 0x412114
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040ac90
mov dword [ebp - 0x10014], eax
test eax, eax
je 0x412101
push eax
push 0x10000
lea eax, [ebp - 0x1000c]
xor edi, edi
push 1
push eax
call fcn.004c12c3
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10018], esi
test esi, esi
je 0x4121b3
mov eax, dword [ebp + 8]
lea ecx, [ecx]
test ebx, ebx
je 0x412180
sub eax, edi
lea edx, [ebp - 0x10018]
cmp eax, esi
mov dword [ebp - 0x1001c], eax
lea ecx, [ebp - 0x1001c]
cmovae ecx, edx
lea eax, [ebp - 0x1000c]
push dword [ecx]
mov ecx, ebx
push eax
call fcn.00403360
mov eax, dword [ebp + 8]
sub eax, edi
cmp eax, esi
jb 0x4121cf
push dword [ebp - 0x10014]
lea eax, [ebp - 0x1000c]
add edi, esi
push 0x10000
push 1
push eax
call fcn.004c12c3
mov esi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10018], esi
test esi, esi
jne 0x412150
mov ebx, dword [ebp - 0x10014]
push ebx
call fcn.004c0deb
add esp, 4
test eax, eax
jne 0x4121d5
mov byte [ebp - 0x1000d], 1
jmp 0x4121dc
mov ebx, dword [ebp - 0x10014]
mov byte [ebp - 0x1000d], 0
push ebx
call fcn.004c0d4e
mov ecx, dword [ebp - 8]
add esp, 4
mov al, byte [ebp - 0x1000d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret

Function at 0x412220
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040aa30