joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ddf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x409fb5
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x413240]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x409fb5
test cl, 0x48
je 0x409e4a
cmp byte [eax + 5], 0xa
je 0x409e4a
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409e9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x409e84
call fcn.004092a2
mov dword [eax], 9
call fcn.004092ab
mov dword [eax], esi
jmp 0x409e94
cmp eax, 0x6d
je 0x409fb5
push eax
call fcn.004092b4
pop ecx
or eax, 0xffffffff
jmp 0x409fb7
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x409fb0
test eax, eax
je 0x409ec3
cmp byte [ebx], 0xa
jne 0x409ec3
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x409ecc
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x409faa
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x409f9a
cmp al, 0xd
je 0x409efe
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x409f8c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x409f18
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x409f13
add dword [ebp + 0x10], 2
jmp 0x409f6c
mov dword [ebp + 0x10], eax
jmp 0x409f88
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409f88
cmp dword [ebp - 0xc], 0
je 0x409f88
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x409f61
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x409f6c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x409f8b
cmp ebx, dword [ebp + 0xc]
jne 0x409f71
cmp byte [ebp - 1], 0xa
jne 0x409f71
mov byte [ebx], 0xa
jmp 0x409f8b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040d5a9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x409f8c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x409ee2
jmp 0x409faa
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x409faa
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x409fb7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40aaa8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40aad6
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40aadd
cmp ebx, dword [eax + 4]
jae 0x40aadd
xor eax, eax
jmp 0x40accd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40aaee
xor eax, eax
inc eax
jmp 0x40accc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40ab04
cmp ecx, edx
jae 0x40ac49
cmp dword [eax + 4], 0
je 0x40ab0d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40aaf5
cmp dword [ebp + 8], 0
je 0x40ab2f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40ac49
cmp eax, esi
jae 0x40ac49
mov eax, dword [0x412fe0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40ab54
cmp dword [esi*4 + 0x412fe8], edi
je 0x40ac4d
inc esi
cmp esi, eax
jl 0x40ab42
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40acc9
cmp dword [ebp - 8], 0x1000000
jne 0x40acc9
test byte [ebp - 0xc], 0xcc
je 0x40abd2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40acc9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40acc9
cmp word [eax + 0x18], 0x10b
jne 0x40acc9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40acc9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40abd2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40abd2
test byte [ecx + 0x27], 0x80
jne 0x40ac49
push 1
push 0x413028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40aae6
mov ecx, dword [0x412fe0]
test ecx, ecx
mov edx, ecx
jle 0x40ac06
lea eax, [ecx*4 + 0x412fe4]
cmp dword [eax], edi
je 0x40ac06
dec edx
sub eax, 4
test edx, edx
jg 0x40abfa
test edx, edx
jne 0x40ac37
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40ac13
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40ac2b
lea eax, [edx*4 + 0x412fe8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40ac19
cmp ecx, 0x10
jge 0x40ac37
inc ecx
mov dword [0x412fe0], ecx
push 0
push 0x413028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40aae6
xor eax, eax
jmp 0x40accc
test esi, esi
jle 0x40aae6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x413028
call ebx
test eax, eax
jne 0x40aae6
cmp dword [esi*4 + 0x412fe8], edi
je 0x40aca3
mov eax, dword [0x412fe0]
lea esi, [eax - 1]
test esi, esi
jl 0x40ac91
cmp dword [esi*4 + 0x412fe8], edi
je 0x40ac8d
dec esi
jns 0x40ac81
test esi, esi
jge 0x40aca1
cmp eax, 0x10
jge 0x40ac9c
inc eax
mov dword [0x412fe0], eax
lea esi, [eax - 1]
jmp 0x40aca3
je 0x40acbb
xor ecx, ecx
test esi, esi
jl 0x40acbb
lea eax, [ecx*4 + 0x412fe8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40aca9
push 0
push 0x413028
call ebx
jmp 0x40aae6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c010
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x412100]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x412b60]
je 0x40c047
inc eax
cmp eax, 0x13
jb 0x40c038
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x412b60]
jne 0x40c16a
mov eax, dword [0x412d30]
cmp eax, 1
je 0x40c145
cmp eax, edx
jne 0x40c077
cmp dword [0x4122d8], 1
je 0x40c145
cmp ecx, 0xfc
je 0x40c16a
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c0ad
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0040ad50
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00406510
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40c0e1
mov eax, edi
push eax
call fcn.00406510
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40fd44
push edi
call fcn.00405a70
add esp, 0x10
push edi
call fcn.00406510
push dword [esi + 0x412b64]
mov ebx, eax
call fcn.00406510
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404b70
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ad50
push edi
push ebx
call fcn.0040ad60
push 0x40fd40
push ebx
call fcn.0040ad60
push dword [esi + 0x412b64]
push ebx
call fcn.0040ad60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040c940
add esp, 0x2c
jmp 0x40c16a
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x412b64]
push dword [esi]
call fcn.00406510
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00404b57
add ebp, 0x90
leave
ret
Function at 0x40c940
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4131b8], ebx
push esi
push edi
jne 0x40c9c0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c9fb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4131b8], eax
je 0x40c9fb
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4131bc], eax
call esi
cmp dword [0x412d4c], 2
mov dword [0x4131c0], eax
jne 0x40c9c0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4131c8], eax
je 0x40c9c0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4131c4], eax
mov eax, dword [0x4131c4]
test eax, eax
je 0x40ca05
call eax
test eax, eax
je 0x40c9ec
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4131c8]
test eax, eax
je 0x40c9ec
test byte [ebp - 8], 1
jne 0x40ca05
cmp dword [0x412d58], 4
jb 0x40c9ff
or byte [ebp + 0x12], 0x20
jmp 0x40ca24
xor eax, eax
jmp 0x40ca34
or byte [ebp + 0x12], 4
jmp 0x40ca24
mov eax, dword [0x4131bc]
test eax, eax
je 0x40ca24
call eax
mov ebx, eax
test ebx, ebx
je 0x40ca24
mov eax, dword [0x4131c0]
test eax, eax
je 0x40ca24
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4131b8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cc5a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404b70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ccf5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x412d4c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40ccf5
cmp eax, 1
je 0x40cd16
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ccf5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40ccc2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40ccf1
xor eax, eax
inc eax
jmp 0x40cd35
cmp edi, eax
jae 0x40ccf9
xor eax, eax
jmp 0x40cd35
cmp eax, esi
jae 0x40cd00
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x412d4c]
jmp 0x40cd19
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d33a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d368
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x40d36d
cmp eax, 1
je 0x40d36d
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40d371
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x412100]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x40d403
push ebx
call fcn.0040d33a
test eax, eax
pop ecx
jne 0x40d3d8
call fcn.004092ab
mov dword [eax], 0xf
call fcn.004092a2
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00404b57
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40d412
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40d3bf
inc eax
cmp eax, 0x104
ja 0x40d3bf
test edi, edi
mov ecx, edi
jne 0x40d44f
cmp eax, dword [ebp + 0xa0]
jg 0x40d432
mov eax, dword [ebp + 0xa0]
push eax
call fcn.004064d6
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40d467
call fcn.004092a2
mov dword [eax], 0xc
jmp 0x40d3bf
cmp eax, dword [ebp + 0xa0]
jle 0x40d467
call fcn.004092a2
mov dword [eax], 0x22
jmp 0x40d3bf
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.0040ad50
pop ecx
pop ecx
jmp 0x40d3c1
Function at 0x40dd68
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00404b70
mov eax, dword [0x412100]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040a06e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x40de9d
push 2
push esi
push dword [ebp + 8]
call fcn.0040a06e
add esp, 0xc
cmp eax, ebx
je 0x40de9d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40de3d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040bcf0
push 0x8000
push dword [ebp + 8]
call fcn.0040dff1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x40ddf3
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004096f0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40de13
sub edi, eax
test edi, edi
jg 0x40ddeb
jmp 0x40de2b
call fcn.004092ab
cmp dword [eax], 5
jne 0x40de28
call fcn.004092a2
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0040dff1
pop ecx
pop ecx
jmp 0x40de85
jge 0x40de85
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a06e
push dword [ebp + 8]
call fcn.0040d020
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x40de85
call fcn.004092a2
mov dword [eax], 0xd
call fcn.004092ab
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0040a06e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40de9f
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b57
leave
ret
Function at 0x40e4b1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x40e4ca
or eax, 0xffffffff
jmp 0x40e52b
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x40e527
push 0x3d
push esi
call fcn.0040521f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40e527
cmp esi, eax
je 0x40e527
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x412d6c]
sete cl
cmp eax, dword [0x412d70]
mov dword [ebp - 4], ecx
jne 0x40e50d
mov edi, eax
call fcn.0040e450
mov dword [0x412d6c], eax
cmp eax, ebx
jne 0x40e566
cmp dword [ebp + 0xc], ebx
je 0x40e52f
cmp dword [0x412d74], ebx
je 0x40e52f
call fcn.0040defb
test eax, eax
je 0x40e566
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x40e538
xor eax, eax
jmp 0x40e52a
push 4
call fcn.004064d6
cmp eax, ebx
pop ecx
mov dword [0x412d6c], eax
je 0x40e527
mov dword [eax], ebx
cmp dword [0x412d74], ebx
jne 0x40e566
push 4
call fcn.004064d6
cmp eax, ebx
pop ecx
mov dword [0x412d74], eax
je 0x40e527
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x412d6c]
sub edi, esi
push esi
call fcn.0040e403
mov edi, eax
test edi, edi
pop ecx
jl 0x40e5cd
cmp dword [ebx], 0
je 0x40e5cd
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00405fa9
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x40e5ad
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x40e60e
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x40e5a4
mov eax, edi
shl eax, 2
push eax
push dword [0x412d6c]
call fcn.0040752c
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x40e60e
jmp 0x40e609
cmp dword [ebp - 4], 0
jne 0x40e675
test edi, edi
jge 0x40e5dd
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x412d6c]
call fcn.0040752c
test eax, eax
pop ecx
pop ecx
je 0x40e527
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x412d6c], eax
cmp dword [ebp + 0xc], 0
je 0x40e660
push esi
call fcn.00406510
inc eax
inc eax
push eax
call fcn.004064d6
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40e660
push esi
push edi
call fcn.0040ad50
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40e659
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00405fa9
pop ecx
cmp dword [ebp - 4], 0
je 0x40e66d
push esi
call fcn.00405fa9
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40e52a
push esi
call fcn.00405fa9
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x40e534
Function at 0x1001b26
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1004014]
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_PATH::constructor_void_]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1001b7c
cmp dword [ebp + 0xc], ebx
mov eax, dword [esi]
je 0x1001b6b
push dword [ebp + 0xc]
push 0x1001224
push 1
push dword [ebp + 8]
push esi
call dword [eax + 8]
add esp, 0x14
jmp 0x1001b7c
push 0x1001223
push 1
push dword [ebp + 8]
push esi
call dword [eax + 8]
add esp, 0x10
cmp byte [esi + 0x90], bl
je 0x1001bab
mov eax, dword [esi + 0x98]
cmp eax, ebx
jne 0x1001b9d
push ebx
push 0x5221
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
jmp 0x1001bd2
push eax
push 0x1001220
push ebx
push 0x521f
jmp 0x1001bc9
mov eax, dword [esi + 0x9c]
cmp eax, ebx
jne 0x1001bbd
push ebx
push 0x5220
jmp 0x1001b94
push eax
push 0x1001220
push ebx
push 0x521e
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
add esp, 0x14
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1001c20
Capabilities:
Set file attributes

Disassembly:
push esi
lea esi, [ecx + 0x248]
mov eax, dword [esi]
and eax, 0xfffffffe
push eax
add ecx, 0x274
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1001c45
and dword [esi], 0xfffffffe
mov al, 1
jmp 0x1001c57
mov esi, dword [esp + 8]
test esi, esi
je 0x1001c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop esi
ret 4
Function at 0x1002061
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x21c]
mov esi, ecx
lea edi, [edi + edi + 2]
cmp edi, dword [esi + 0xb0]
jbe 0x1002094
push edi
lea ebx, [esi + 0xac]
push dword [ebx]
call dword [sym.imp.ulib.dll_void____stdcall_UlibRealloc_void___unsigned_long_int_]
mov dword [ebx], eax
mov dword [esi + 0xb0], edi
mov ebp, dword [esp + 0x18]
mov ebx, dword [ebp + 0x21c]
lea ebx, [ebx + ebx + 2]
cmp ebx, dword [esi + 0xb8]
jbe 0x10020c1
push ebx
lea edi, [esi + 0xb4]
push dword [edi]
call dword [sym.imp.ulib.dll_void____stdcall_UlibRealloc_void___unsigned_long_int_]
mov dword [edi], eax
mov dword [esi + 0xb8], ebx
xor ebx, ebx
cmp dword [esi + 0xac], ebx
je 0x10020d3
cmp dword [esi + 0xb4], ebx
jne 0x10020e2
push 8
push ebx
push 0x5241
mov ecx, esi
call fcn.01001b26
mov eax, dword [esi + 0xb0]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ulib.dll_public:_unsigned_short_int____thiscall_WSTRING::QueryWSTR_unsigned_long_int__unsigned_long_int__unsigned_short_int___unsigned_long_int__unsigned_char_const]
push 1
shr eax, 1
push eax
push dword [esi + 0xac]
add ecx, 0x210
push 0xffffffffffffffff
push ebx
call edi
mov eax, dword [esi + 0xb8]
push 1
shr eax, 1
push eax
push dword [esi + 0xb4]
lea ecx, [ebp + 0x210]
push 0xffffffffffffffff
push ebx
call edi
push ebx
push dword [esi + 0xb4]
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1002149
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.01001bdc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x1002591
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xac
mov eax, dword [0x1004014]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp + 0x74], eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_FSN_FILTER::constructor_void_]
lea edi, [esi + 0xa4]
push edi
lea eax, [esi + 0xa0]
push eax
push dword [esi + 0x88]
mov ecx, esi
call fcn.01001e4f
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x8c]
mov ecx, esi
call fcn.01001f39
xor ebx, ebx
cmp byte [esi + 0x95], bl
je 0x1002667
mov eax, dword [esi]
push ebx
push 0x5222
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.01001c5b
mov ecx, dword [esi + 0xbc]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_KEYBOARD::DisableLineMode_void_]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [eax]
push ebx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov ecx, dword [esi + 0xbc]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_KEYBOARD::EnableLineMode_void_]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [eax]
push 0xd
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [eax]
push 0xa
mov ecx, eax
call dword [edx + 0x28]
cmp word [ebp - 0x34], 3
jne 0x1002667
push 3
call dword [sym.imp.msvcrt.dll_exit]
push dword [edi]
mov ecx, esi
push dword [esi + 0xa0]
call fcn.01001f72
cmp byte [esi + 0x93], bl
mov edi, dword [ebp - 0x30]
push ebx
push edi
mov dword [esi + 0xa8], eax
push esi
je 0x10026ba
call fcn.01002566
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_FILTER::Initialize_void_]
push ebx
push ebx
push 0x10
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_FILTER::SetAttributes_unsigned_long_int__unsigned_long_int__unsigned_long_int_]
push fcn.01002566
push ebx
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, edi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_DIRECTORY::Traverse_void___class_FSN_FILTER___class_PATH___unsigned_char____stdcall___void___class_FSNODE___class_PATH___const]
jmp 0x10026bf
call fcn.01002566
cmp edi, ebx
je 0x10026cb
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_FSN_FILTER::destructor_void_]
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
mov al, 1
pop ebx
call fcn.010027ce
add ebp, 0x78
leave
ret