joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10164ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
xor eax, eax
test esi, esi
je 0x10164f8d
cmp byte [esi], 0x5c
mov dword [ebp - 0x110], eax
jne 0x10164ee0
cmp byte [esi + 1], 0x5c
jne 0x10164ee0
mov eax, 2
mov dword [ebp - 0x110], eax
xor dl, dl
push ebx
mov bl, byte [ebp + 0xc]
mov byte [ebp - 0x109], dl
lea esp, [esp]
mov cl, byte [esi + eax]
cmp cl, 0x2f
je 0x10164f01
cmp cl, 0x5c
je 0x10164f01
xor dl, dl
jmp 0x10164f18
mov byte [esi + eax], bl
test dl, dl
je 0x10164f12
mov byte [ebp - 0x109], 1
inc eax
jmp 0x10164ef0
test eax, eax
jle 0x10164f18
mov dl, 1
mov cl, byte [esi + eax]
mov byte [ebp + edi - 0x108], cl
cmp byte [esi + eax], 0
je 0x10164f2c
inc edi
inc eax
jmp 0x10164ef0
test edi, edi
jle 0x10164f61
cmp byte [ebp + edi - 0x109], bl
je 0x10164f61
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10164f61
test al, 0x10
je 0x10164f61
mov byte [ebp + edi - 0x108], bl
inc edi
mov byte [ebp + edi - 0x108], 0
jmp 0x10164f6a
cmp byte [ebp - 0x109], 0
je 0x10164f8a
mov ecx, dword [ebp - 0x110]
lea eax, [ebp - 0x108]
lea edx, [esi + ecx]
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10164f80
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1015eea7
mov esp, ebp
pop ebp
ret

Function at 0x1016a280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101afa5b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10415990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
xor ebx, ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
mov byte [ecx], bl
fld dword [0x103788dc]
push 0xd
fstp dword [esi + 0xc]
push str.._log_ivw.log
mov dword [ebp - 4], ebx
mov dword [esi], ebx
mov dword [esi + 4], 0x3e80
mov dword [esi + 8], pe_nt_image_headers32
mov dword [esi + 0x10], 1
call fcn.10048340
mov dword [esi + 0x30], ebx
mov byte [esi + 0x34], 1
mov dword [esi + 0x38], 2
mov dword [esi + 0x3c], 1
mov word [esi + 0x40], pe_nt_image_headers32
mov byte [esi + 0x42], 1
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x3e80
mov dword [esi + 0x50], 0xa
mov dword [esi + 0x54], 0x1e
mov word [esi + 0x58], bx
mov byte [esi + 0x5a], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], 0x1a9
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], 0x320
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov byte [esi + 0x84], 1
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1016b1f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101afc0c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x10455eec], 1
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
jne 0x1016b255
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov dword [ebp - 4], 0
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [0x10455e4c]
jge 0x1016b29e
test byte [0x10455eec], 1
jne 0x1016b295
mov eax, 1
or dword [0x10455eec], eax
mov ecx, 0x10455e48
mov dword [ebp - 4], eax
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [0x10455e49], 0
je 0x1016b2f0
mov ecx, dword [ebp + 8]
push edi
mov edx, esi
call fcn.101618f0
add esp, 4
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10048340
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x1016b2d8
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x18], esi
jb 0x1016b2f0
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x1016de80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b0078
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10415990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1016debf
test al, 0x10
jne 0x1016dfd0
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 4], edi
call fcn.1016dce0
add esp, 8
test eax, eax
je 0x1016df14
mov esi, dword [ebp - 0x20]
cmp esi, edi
je 0x1016df00
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
push esi
call fcn.1016ada0
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
mov ebx, dword [ebp - 0x20]
jne 0x1016df56
mov ecx, dword [ebp - 0x1c]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 1
jbe 0x1016df56
lea ecx, [ebp - 0x20]
call fcn.1016d830
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x10], edi
cmp esi, edi
jle 0x1016dfb1
cmp dword [ebx + 0x14], 0x10
jb 0x1016df7f
mov edi, dword [ebx]
jmp 0x1016df81
mov edi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1016df91
test al, 0x10
jne 0x1016df9e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1016dfe4
mov eax, dword [ebp - 0x10]
inc eax
add ebx, 0x1c
mov dword [ebp - 0x10], eax
cmp eax, esi
jl 0x1016df75
mov ebx, dword [ebp - 0x20]
xor edi, edi
cmp ebx, edi
je 0x1016dfd0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
call fcn.1016ada0
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x1016df00
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
jmp 0x1016def1
Function at 0x1016e7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b01b0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov eax, esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1016e7f0
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.10048340
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1016e817
cmp eax, 0x10
jne 0x1016e86b
mov al, byte [esi]
cmp al, 0x2f
je 0x1016e86b
cmp al, 0x5c
jne 0x1016e826
cmp byte [esi + 1], al
je 0x1016e86b
push 0x3a
push esi
call sub.MSVCR100.dll_strchr
add esp, 8
test eax, eax
jne 0x1016e86b
cmp edi, ebx
je 0x1016e86b
push 0x5c
push esi
lea ecx, [ebp - 0x48]
push edi
push ecx
call fcn.1016b0c0
add esp, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10055070
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], bl
jb 0x1016e86b
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1016e877
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.1016e190
cmp dword [ebp - 0x18], 0x10
mov esi, eax
jb 0x1016e898
mov edx, dword [ebp - 0x2c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10170de0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b0575
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x2c], esi
call fcn.10167810
cmp byte [eax + 0x4c], 0
je case.0x10170e5d.0
test byte [0x10455eec], 1
jne 0x10170e4f
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov dword [ebp - 4], 0
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
cmp byte [0x10455e4a], 0
je case.0x10170e5d.0
cmp edi, 3
ja case.0x10170e5d.0
jmp dword [edi*4 + 0x10170f2c]
mov edi, 3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ebx, word [ebp - 0x20]
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
mov eax, edi
add esp, 4
dec eax
je 0x10170ed1
dec eax
je 0x10170eca
dec eax
je 0x10170ec3
xor eax, eax
jmp 0x10170ed6
mov edi, 1
jmp 0x10170e69
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push esi
call sub.MSVCR100.dll_fwrite
add esp, 0x10
jmp 0x10170f10
mov eax, 6
jmp 0x10170ed6
mov eax, 2
jmp 0x10170ed6
mov eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push esi
call edi
call sub.MSVCR100.dll___iob_func
mov edx, dword [ebp + 8]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x2c]
push 1
push edx
push eax
call sub.MSVCR100.dll_fwrite
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
add esp, 0x14
push ebx
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x10170e64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b0575
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x2c], esi
call fcn.10167810
cmp byte [eax + 0x4c], 0
je case.0x10170e5d.0
test byte [0x10455eec], 1
jne 0x10170e4f
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov dword [ebp - 4], 0
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
cmp byte [0x10455e4a], 0
je case.0x10170e5d.0
cmp edi, 3
ja case.0x10170e5d.0
jmp dword [edi*4 + 0x10170f2c]
mov edi, 3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ebx, word [ebp - 0x20]
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
mov eax, edi
add esp, 4
dec eax
je 0x10170ed1
dec eax
je 0x10170eca
dec eax
je 0x10170ec3
xor eax, eax
jmp 0x10170ed6
mov edi, 1
jmp 0x10170e69
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push esi
call sub.MSVCR100.dll_fwrite
add esp, 0x10
jmp 0x10170f10
mov eax, 6
jmp 0x10170ed6
mov eax, 2
jmp 0x10170ed6
mov eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push esi
call edi
call sub.MSVCR100.dll___iob_func
mov edx, dword [ebp + 8]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x2c]
push 1
push edx
push eax
call sub.MSVCR100.dll_fwrite
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
add esp, 0x14
push ebx
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x10170ea2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b0575
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x2c], esi
call fcn.10167810
cmp byte [eax + 0x4c], 0
je case.0x10170e5d.0
test byte [0x10455eec], 1
jne 0x10170e4f
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov dword [ebp - 4], 0
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
cmp byte [0x10455e4a], 0
je case.0x10170e5d.0
cmp edi, 3
ja case.0x10170e5d.0
jmp dword [edi*4 + 0x10170f2c]
mov edi, 3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ebx, word [ebp - 0x20]
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
mov eax, edi
add esp, 4
dec eax
je 0x10170ed1
dec eax
je 0x10170eca
dec eax
je 0x10170ec3
xor eax, eax
jmp 0x10170ed6
mov edi, 1
jmp 0x10170e69
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push esi
call sub.MSVCR100.dll_fwrite
add esp, 0x10
jmp 0x10170f10
mov eax, 6
jmp 0x10170ed6
mov eax, 2
jmp 0x10170ed6
mov eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push esi
call edi
call sub.MSVCR100.dll___iob_func
mov edx, dword [ebp + 8]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x2c]
push 1
push edx
push eax
call sub.MSVCR100.dll_fwrite
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
add esp, 0x14
push ebx
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x10170ea9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b0575
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x2c], esi
call fcn.10167810
cmp byte [eax + 0x4c], 0
je case.0x10170e5d.0
test byte [0x10455eec], 1
jne 0x10170e4f
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov dword [ebp - 4], 0
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
cmp byte [0x10455e4a], 0
je case.0x10170e5d.0
cmp edi, 3
ja case.0x10170e5d.0
jmp dword [edi*4 + 0x10170f2c]
mov edi, 3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ebx, word [ebp - 0x20]
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
mov eax, edi
add esp, 4
dec eax
je 0x10170ed1
dec eax
je 0x10170eca
dec eax
je 0x10170ec3
xor eax, eax
jmp 0x10170ed6
mov edi, 1
jmp 0x10170e69
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push esi
call sub.MSVCR100.dll_fwrite
add esp, 0x10
jmp 0x10170f10
mov eax, 6
jmp 0x10170ed6
mov eax, 2
jmp 0x10170ed6
mov eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push esi
call edi
call sub.MSVCR100.dll___iob_func
mov edx, dword [ebp + 8]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x2c]
push 1
push edx
push eax
call sub.MSVCR100.dll_fwrite
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
add esp, 0x14
push ebx
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x1017a670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b11a5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x2c], esi
call fcn.10167810
cmp byte [eax + 0x4c], 0
je case.0x1017a6ed.0
test byte [0x10455eec], 1
jne 0x1017a6df
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov dword [ebp - 4], 0
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
cmp byte [0x10455e4a], 0
je case.0x1017a6ed.0
cmp edi, 3
ja case.0x1017a6ed.0
jmp dword [edi*4 + 0x1017a7bc]
mov edi, 3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ebx, word [ebp - 0x20]
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
mov eax, edi
add esp, 4
dec eax
je 0x1017a761
dec eax
je 0x1017a75a
dec eax
je 0x1017a753
xor eax, eax
jmp 0x1017a766
mov edi, 1
jmp 0x1017a6f9
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push esi
call sub.MSVCR100.dll_fwrite
add esp, 0x10
jmp 0x1017a7a0
mov eax, 6
jmp 0x1017a766
mov eax, 2
jmp 0x1017a766
mov eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push esi
call edi
call sub.MSVCR100.dll___iob_func
mov edx, dword [ebp + 8]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x2c]
push 1
push edx
push eax
call sub.MSVCR100.dll_fwrite
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
add esp, 0x14
push ebx
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x1017a6f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b11a5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x2c], esi
call fcn.10167810
cmp byte [eax + 0x4c], 0
je case.0x1017a6ed.0
test byte [0x10455eec], 1
jne 0x1017a6df
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov dword [ebp - 4], 0
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
cmp byte [0x10455e4a], 0
je case.0x1017a6ed.0
cmp edi, 3
ja case.0x1017a6ed.0
jmp dword [edi*4 + 0x1017a7bc]
mov edi, 3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ebx, word [ebp - 0x20]
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
mov eax, edi
add esp, 4
dec eax
je 0x1017a761
dec eax
je 0x1017a75a
dec eax
je 0x1017a753
xor eax, eax
jmp 0x1017a766
mov edi, 1
jmp 0x1017a6f9
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push esi
call sub.MSVCR100.dll_fwrite
add esp, 0x10
jmp 0x1017a7a0
mov eax, 6
jmp 0x1017a766
mov eax, 2
jmp 0x1017a766
mov eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push esi
call edi
call sub.MSVCR100.dll___iob_func
mov edx, dword [ebp + 8]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x2c]
push 1
push edx
push eax
call sub.MSVCR100.dll_fwrite
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
add esp, 0x14
push ebx
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x1017a732
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b11a5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x2c], esi
call fcn.10167810
cmp byte [eax + 0x4c], 0
je case.0x1017a6ed.0
test byte [0x10455eec], 1
jne 0x1017a6df
or dword [0x10455eec], 1
mov ecx, 0x10455e48
mov dword [ebp - 4], 0
call fcn.10169320
push 0x101b4cc0
call fcn.1015f6af
add esp, 4
cmp byte [0x10455e4a], 0
je case.0x1017a6ed.0
cmp edi, 3
ja case.0x1017a6ed.0
jmp dword [edi*4 + 0x1017a7bc]
mov edi, 3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x28]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ebx, word [ebp - 0x20]
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
mov eax, edi
add esp, 4
dec eax
je 0x1017a761
dec eax
je 0x1017a75a
dec eax
je 0x1017a753
xor eax, eax
jmp 0x1017a766
mov edi, 1
jmp 0x1017a6f9
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
mov eax, dword [ebp + 8]
push 1
push eax
push esi
call sub.MSVCR100.dll_fwrite
add esp, 0x10
jmp 0x1017a7a0
mov eax, 6
jmp 0x1017a766
mov eax, 2
jmp 0x1017a766
mov eax, 4
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push esi
call edi
call sub.MSVCR100.dll___iob_func
mov edx, dword [ebp + 8]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x2c]
push 1
push edx
push eax
call sub.MSVCR100.dll_fwrite
call sub.MSVCR100.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR100.dll_fflush
add esp, 0x14
push ebx
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret