joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440276
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push 0x401554
mov edi, edx
push 0
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov ecx, dword [edi]
add esp, 0xc
mov esi, edi
test ecx, ecx
je 0x440395
push 2
pop edi
movzx eax, word [ecx]
xor edx, edx
test ax, ax
je 0x440385
mov ebx, eax
push 0x22
pop eax
cmp bx, ax
jne 0x4402d9
inc edx
mov eax, ecx
cmp ecx, dword [esi]
je 0x4402d9
push 0x5c
pop ebx
sub eax, edi
cmp word [eax], bx
jne 0x4402d9
inc edx
cmp eax, dword [esi]
jne 0x4402cd
add ecx, edi
movzx eax, word [ecx]
mov ebx, eax
test ax, ax
jne 0x4402bb
test edx, edx
je 0x440385
sub ecx, dword [esi]
lea edi, [edx + 1]
sar ecx, 1
add edi, ecx
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e483
mov ebx, eax
mov dword [ebp - 0x10], ebx
pop ecx
test ebx, ebx
jne 0x440321
push 0x1f6a
call fcn.00422168
pop ecx
mov edx, dword [esi]
lea eax, [ebx + edi*2]
mov dword [ebp - 8], eax
mov ecx, ebx
cmp ebx, eax
jae 0x440380
mov ebx, eax
movzx eax, word [edx]
mov edi, eax
push 0x22
mov dword [ebp - 0xc], edi
pop edi
push 2
cmp ax, di
pop edi
jne 0x44036d
mov eax, edx
cmp edx, dword [esi]
je 0x440360
push 0x5c
pop ebx
sub eax, edi
cmp word [eax], bx
jne 0x44035d
mov word [ecx], bx
add ecx, edi
cmp eax, dword [esi]
jne 0x44034d
mov ebx, dword [ebp - 8]
push 0x5c
pop eax
mov word [ecx], ax
add ecx, edi
movzx eax, word [edx]
jmp 0x440370
mov eax, dword [ebp - 0xc]
mov word [ecx], ax
add edx, edi
add ecx, edi
cmp ecx, ebx
jb 0x440331
mov ebx, dword [ebp - 0x10]
jmp 0x440383
push 2
pop edi
mov dword [esi], ebx
add esi, 4
mov ecx, dword [esi]
test ecx, ecx
jne 0x4402ab
mov edi, dword [ebp - 0x14]
cmp dword [0x44b924], 0
jne 0x4403af
push 0x41f748
push dword [ebp - 4]
mov edx, edi
call fcn.00440400
pop ecx
pop ecx
push 0x41f7e8
push dword [ebp - 4]
mov edx, edi
call fcn.00440400
cmp dword [ebp - 4], 0
pop ecx
pop ecx
je 0x4403e0
push dword [ebp - 4]
push 0x401554
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
test byte [0x44d700], 0x80
je 0x4403f7
push ecx
push ecx
mov ecx, 0x406d40
call fcn.00441fde
pop ecx
pop ecx
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x440400
Capabilities:
Resolve path using msvcrt
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], edx
xor edi, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x440412
mov esi, dword [ebp + 8]
sub ebx, ecx
sar ebx, 1
add ebx, 2
test esi, esi
je 0x440441
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x440430
sub ecx, edx
sar ecx, 1
add ebx, ecx
lea eax, [ebx + ebx]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x44045d
push 0x1f6a
call fcn.00422168
pop ecx
test esi, esi
je 0x440488
push esi
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x40138c
push ebx
push edi
call esi
push dword [ebp + 0xc]
push ebx
push edi
call esi
mov esi, dword [ebp + 8]
add esp, 0x24
jmp 0x440496
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov ebx, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
push edi
push 0x401554
call ebx
mov eax, dword [ebp - 4]
mov dword [eax], 0x401310
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
push dword [ebp - 4]
push dword [eax]
push 0
call dword [sym.imp.api_ms_win_crt_process_l1_1_0.dll__wspawnv]
add esp, 0x14
test eax, eax
je 0x4404f4
test esi, esi
je 0x4404d5
push esi
push 0x401554
call ebx
pop ecx
pop ecx
test byte [0x44d700], 0x80
je 0x4404ec
push ecx
push ecx
mov ecx, 0x406d40
call fcn.00441fde
pop ecx
pop ecx
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44122d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x400
mov dword [ebp - 0x414], 0x100
push edi
call fcn.0042e483
jmp 0x441294
mov esi, dword [ebp - 0x418]
cmp esi, edi
jbe 0x4412dc
push ebx
call fcn.0042e022
mov esi, dword [ebp - 0x414]
xor ecx, ecx
add esi, esi
push 4
pop edx
mov eax, esi
mov dword [ebp - 0x414], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e483
mov edi, esi
pop ecx
shl edi, 2
and dword [ebp - 0x418], 0
mov ebx, eax
pop ecx
lea eax, [ebp - 0x418]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x44125a
push 0x41fa40
push 2
call fcn.004258b5
pop ecx
pop ecx
push ebx
call fcn.0042e022
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e014
leave
ret
shr esi, 2
push esi
push 0x41f9f8
push 2
call fcn.004258b5
add esp, 0xc
xor edi, edi
test esi, esi
je 0x4412c6
test edi, edi
je 0x4412fe
mov eax, dword [ebx + edi*4]
jmp 0x441306
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x105
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x414], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add eax, eax
cmp eax, 0x20a
jae 0x441375
push dword [ebp - 0x414]
xor ecx, ecx
push 0x41fa14
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x410]
push 0x100
push eax
call fcn.0042ad58
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x41fa20
push 2
call fcn.004258b5
add esp, 0x20
inc edi
cmp edi, esi
jb 0x4412f5
jmp 0x4412c6
call fcn.0042e149
int3
Function at 0x442c52
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x264]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [0x44d6ac]
mov edi, dword [ebp + 0x10]
push 0x41ff4c
push eax
mov dword [ebp - 0x4a8], edx
mov dword [ebp - 0x4a4], ecx
call fcn.004429cb
add esp, 0xc
test eax, eax
jns 0x442cb1
push 0x41ff78
push 1
call fcn.004258b5
pop ecx
pop ecx
push 4
pop ecx
call fcn.00421dce
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wsystem]
pop ecx
lea eax, [ebp - 0x49c]
push eax
push dword [0x44d6ac]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
pop ecx
pop ecx
test eax, eax
jne 0x442e07
cmp word [ebp - 0x496], ax
je 0x442e07
test dword [ebp - 0x496], 0x4000
je 0x442e07
push dword [edi + 0x1c]
mov edx, 0x104
lea ecx, [ebp - 0x46c]
push edi
push 0x40117c
call fcn.00426d80
add esp, 0xc
lea eax, [ebp - 0x46c]
push 0x42008c
push eax
push dword [0x44d6ac]
lea eax, [ebp - 0x264]
push 0x420098
push eax
call fcn.004429cb
add esp, 0x14
lea eax, [ebp - 0x264]
push 0x418f04
push eax
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov eax, dword [ebp - 0x4a0]
add esp, 0xc
test eax, eax
jne 0x442d6b
push 0x4200a8
jmp 0x442ca0
mov ecx, dword [esi]
mov edi, esi
test ecx, ecx
je 0x442d8f
push ecx
push 0x401510
push eax
call fcn.00443cd4
mov eax, dword [ebp - 0x4a0]
lea edi, [edi + 4]
mov ecx, dword [edi]
add esp, 0xc
jmp 0x442d6f
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov dword [esp], 0x42013c
lea eax, [ebp - 0x46c]
push eax
push dword [0x44d6ac]
lea eax, [ebp - 0x264]
push 0x420098
push eax
call fcn.004429cb
and dword [esi + ebx*4 + 0xc], 0
lea eax, [ebp - 0x264]
add esp, 0x14
mov dword [esi + ebx*4 + 8], eax
mov eax, dword [ebp - 0x4a4]
xor ecx, ecx
mov dword [esi + ebx*4], 0x420144
mov edx, eax
mov dword [esi + ebx*4 + 4], 0x42014c
push esi
push dword [eax + 4]
push dword [ebp - 0x4a8]
call fcn.00426920
mov ecx, dword [ebp - 8]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042e014
leave
ret
push 0x420008
jmp 0x442ca0
Function at 0x443e17
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x60]
mov edi, edx
push 0
push eax
mov ebx, ecx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x60], esi
call fcn.00443cf8
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
xor eax, eax
push eax
push eax
push 0x400
push 1
push eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x443e70
or dword [ebx + 4], 0xffffffff
mov byte [ebx], al
jmp 0x443eb6
or eax, 0xffffffff
mov byte [ebp - 0xc], 1
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x443e9b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
test esi, esi
je 0x443ec1
push esi
call fcn.0042e022
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x443ec8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0
push 0
push 0x401a3c
mov dword [ebp - 0x214], edx
mov edi, ecx
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jne 0x443f0e
or dword [edi + 4], 0xffffffff
mov byte [edi], al
jmp 0x443fe6
push esi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e483
pop ecx
push ebx
mov esi, eax
push esi
push 0x401a3c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x443f4e
or dword [edi + 4], 0xffffffff
mov byte [edi], 0
test esi, esi
je 0x443fe5
jmp 0x443fde
movzx ecx, word [esi]
mov edx, esi
mov ebx, esi
movzx eax, cx
test cx, cx
jmp 0x443f6c
cmp ax, 0x3b
je 0x443f74
add ebx, 2
movzx eax, word [ebx]
test ax, ax
mov dword [ebp - 0x210], eax
jne 0x443f5d
xor eax, eax
push eax
mov word [ebx], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0
push dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x443fa0
cmp eax, 0x104
jb 0x443fbb
add ebx, 2
cmp word [ebp - 0x210], 0
mov edx, ebx
je 0x443fd7
movzx eax, word [ebx]
test ax, ax
je 0x443fd7
mov ecx, eax
jmp 0x443f55
push dword [ebp - 0x218]
lea edx, [ebp - 0x20c]
mov ecx, edi
call fcn.00443e17
push esi
call fcn.0042e022
pop ecx
jmp 0x443fe4
or dword [edi + 4], 0xffffffff
mov byte [edi], 0
push esi
call fcn.0042e022
pop ecx
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0042e014
leave
ret
Function at 0x446d0d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 0x20206
push 1
push edi
push edi
push 0x4018b8
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x446d5b
push eax
mov edx, 0x420c54
lea ecx, [ebp - 0x1c]
call fcn.00446d9c
lea eax, [ebp - 0x1c]
mov dword [esp], 0x447820
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov esi, dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0xb
push edi
push 0x4019fc
push dword [ebp - 4]
mov dword [ebp - 0xc], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x446d8d
push eax
mov edx, 0x420c64
jmp 0x446d43
test esi, esi
je 0x446d98
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x404f35
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x42d0b4]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
push edi
test esi, esi
je 0x40509d
mov eax, 0x104
mov byte [esp + 0x224], 1
push eax
xor edi, edi
mov dword [esp + 0x22c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x224], edi
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [esp + 0x24]
add esp, 0xc
cmp byte [esp + 0x224], al
sete al
dec eax
and eax, 0xfdc6
add eax, 0x208
push eax
call fcn.0040fba0
test eax, eax
js 0x405052
mov eax, dword [esp + 0x220]
test eax, eax
je 0x41859b
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [esp + 0x230]
mov ecx, esi
call fcn.00411150
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
mov ebx, eax
test ebx, ebx
je 0x405050
mov esi, dword [esp + 0x220]
test esi, esi
je 0x4185a4
push 4
push 0x401e74
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4185ad
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418615
cmp word [eax], di
je 0x418615
lea eax, [esp + 0x14]
mov edx, esi
push eax
lea eax, [esp + 0x234]
mov ecx, fcn.0040aea0
push eax
push edi
push 0x37
call fcn.0040ad5f
mov ecx, dword [esp + 0x14]
movzx ebx, al
call fcn.00412323
test ebx, ebx
je 0x405077
mov edi, ebx
push dword [esp + 0x220]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, edi
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416ce0
mov esp, ebp
pop ebp
ret
movzx eax, word [esi + 2]
push 0x5c
pop ecx
cmp ax, cx
je 0x4185fd
cmp eax, 0x3a
jne 0x405050
cmp word [esi + 4], cx
jne 0x405050
cmp word [esi + 6], di
jne 0x405050
jmp 0x4185fd
xor eax, eax
jmp 0x405062
lea eax, [esp + 0x18]
jmp 0x404fc6
lea esi, [esp + 0x18]
jmp 0x404ff6
mov ebx, dword [esp + 0x14]
add esi, 8
push esi
push ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [esp + 0x18], eax
pop ecx
pop ecx
test eax, eax
je 0x4185e6
cmp eax, ebx
jbe 0x4185e6
movzx esi, word [eax]
xor ecx, ecx
push ebx
mov word [eax], cx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x10]
mov word [ecx], si
jmp 0x4185ed
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405052
mov edi, eax
jmp 0x405052
push esi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x405050
xor ebx, ebx
inc ebx
jmp 0x405050
push esi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
jmp 0x405050
Function at 0x405f50
Capabilities:
Set console window title

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x21c]
push esi
xor eax, eax
mov dword [ebp - 0x224], ebx
push edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], eax
call fcn.004060d7
test eax, eax
js 0x4190f5
mov ecx, dword [ebp - 0x21c]
cmp ecx, 3
jae 0x419153
xor eax, eax
test ecx, ecx
sete al
test eax, eax
je 0x419103
xor eax, eax
inc eax
mov edi, eax
mov dword [ebp - 0x220], eax
push 0x40002748
mov dword [ebp - 0x22c], edi
call fcn.004060a5
mov dword [ebp - 0x218], eax
pop ecx
test eax, eax
je 0x419142
mov ebx, eax
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x405fe1
sub ebx, ecx
sar ebx, 1
cmp ebx, 0x104
jae 0x406071
mov ecx, 0x208
call fcn.0040f4e0
mov esi, eax
mov dword [ebp - 0x228], esi
test esi, esi
je 0x406071
push dword [ebp - 0x218]
mov edx, 0x104
mov ecx, esi
call fcn.00410820
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x41915b
cmp dword [eax + 0x3c], 0
je 0x40609f
push dword [eax + 0x3c]
mov edx, 0x104
mov ecx, esi
call fcn.00410770
test eax, eax
jne 0x406066
xor ebx, ebx
test esi, esi
je 0x40605a
push esi
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleTitleW]
mov byte [0x42d5a4], bl
xor eax, eax
mov edi, eax
cmp dword [ebp - 0x220], eax
je 0x406071
test esi, esi
je 0x406071
mov ecx, esi
call fcn.0040f480
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x406082
push eax
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
test edi, edi
jne 0x419142
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ce0
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov edi, ecx
jmp 0x406066
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
test ebx, ebx
je 0x4191e3
mov ecx, dword [ebx + 0x3c]
call fcn.0040ce09
mov esi, eax
test esi, esi
je 0x40605a
mov ecx, esi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x419124
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x406049
xor edi, edi
inc edi
xor eax, eax
push eax
push 8
call fcn.00414802
pop ecx
pop ecx
jmp 0x40608a
add ecx, 0xfffffff0
jmp 0x405fa1
lea eax, [ebp - 0x214]
push 0x104
push eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleTitleW]
test eax, eax
je 0x406066
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4191c4
mov edi, dword [ebp - 0x218]
lea esi, [ebp - 0x214]
add ebx, ebx
add esi, ebx
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x4191a2
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], esi
mov esi, dword [ebp - 0x228]
push dword [ebp - 0x21c]
mov edx, 0x104
mov ecx, esi
call fcn.00410770
test eax, eax
jne 0x406066
jmp 0x406047
xor ebx, ebx
mov esi, ebx
jmp 0x406049
Function at 0x4076a8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x1a
mov edi, ecx
mov ecx, dword [edx + 0x20]
pop eax
mov word [ebp - 4], ax
test ecx, ecx
je 0x4076db
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x41abd8
inc dword [0x42d574]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, edx
jmp 0x4076c1
call fcn.004282a3
test eax, eax
je 0x41ac06
mov ecx, esi
call fcn.0040f521
test eax, eax
jne 0x41ac06
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test edi, edi
je 0x41ac46
test byte [edi + 0x1c], 0x80
jne 0x41ac46
mov ecx, esi
call fcn.0040f521
test eax, eax
jne 0x41ac46
mov eax, dword [0x42d564]
cmp eax, 3
je 0x41ac46
cmp dword [ebp + 0xc], 0
je 0x41ac46
cmp eax, 2
je 0x41ac46
push dword [ebp + 0xc]
push 0
push 0
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileTime]
mov ecx, esi
call fcn.0040caaa
jmp 0x4076cd

Function at 0x40770c
Capabilities:
Delete file
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push eax
push edi
push dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [0x42d5d4], eax
push ebx
push esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
je 0x41acc3
mov ecx, dword [edi]
test ecx, ecx
je 0x41ac77
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
test eax, 0xc000
je 0x407779
mov eax, dword [edx + 0x1c]
mov ecx, 0x8002
and eax, ecx
cmp eax, ecx
je 0x41ac9b
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp ecx, 2
jb 0x407788
mov ecx, 0xfeff
cmp word [ebx], cx
je 0x407792
or eax, 0x8000
mov dword [edx + 0x1c], eax
jmp 0x40775b
or eax, 0x4000
jmp 0x40778d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x3e3
je 0x41acc3
mov ecx, dword [edi]
test ecx, ecx
jne 0x40774e
and dword [0x443d00], ecx
xor eax, eax
jmp 0x407770
mov esi, dword [edi]
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov edx, ebx
push edi
inc ecx
call fcn.004271bf
cmp esi, dword [edi]
je 0x40776d
mov dword [0x42d5d4], 1
jmp 0x40776d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, esi
mov dword [0x443d00], eax
call fcn.0040caaa
mov ecx, dword [ebp + 0x14]
call fcn.0040f521
mov ecx, dword [ebp + 0x14]
test eax, eax
jne 0x41acf4
call fcn.0040caaa
push dword [ebp + 0x18]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
jmp 0x41acf9
call fcn.0040caaa
mov ecx, dword [0x443d00]
xor edx, edx
inc edx
call fcn.004283b9
int3
Function at 0x409ec2
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
test edx, 0x400
jne 0x421588
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
test eax, eax
js 0x421588
cmp word [ebp - 0x24], di
ja 0x42156e
mov eax, edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push 0x5040
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
push 4
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x18
push eax
push 0x10000
lea eax, [ebp - 4]
mov dword [ebp - 0x30], 0x40
push eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test esi, esi
js 0x421588
mov ecx, dword [ebp - 4]
call fcn.00409f8e
test eax, eax
jne 0x421579
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test esi, esi
je 0x421588
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
jmp 0x409f0b
mov ecx, dword [ebp - 4]
call fcn.00429871
mov esi, eax
jmp 0x409f74
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
test eax, eax
jne 0x409f85
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edi, eax
jmp 0x409f85
Function at 0x40a359
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
mov edi, ecx
push eax
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 4
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
cmp eax, 3
je 0x42184e
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_RemoveDirectoryW]
test eax, eax
je 0x42186b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00416ce0
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0xa], 0x3a
jne 0x40a38b
cmp word [ebp - 8], 0x5c
jne 0x40a38b
xor eax, eax
jmp 0x40a39c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
cmp esi, 5
jne 0x40a39a
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a39a
test al, 1
je 0x40a39a
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
test eax, eax
je 0x40a39a
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_RemoveDirectoryW]
test eax, eax
je 0x4218b9
xor esi, esi
jmp 0x40a39a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
jmp 0x40a39a