joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013220
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x100262c4]
mov dword [ebp - 4], eax
push edi
cmp dword [ebp + 0xc], 0
jne 0x1001323f
xor eax, eax
jmp 0x10013368
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x130], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x1001328b
xor eax, eax
jmp 0x10013368
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1001334b
mov edx, dword [ebp + 0xc]
push edx
call fcn.100173c8
add esp, 4
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.100173c8
add esp, 4
push eax
call fcn.100177c0
add esp, 8
test eax, eax
jne 0x10013324
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp + 8]
push edx
push 0xf01ff
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x138]
jmp 0x10013368
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x134]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100132b0
mov dword [ebp - 0x138], 1
jmp 0x10013355
mov dword [ebp - 0x138], 0
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 4]
call fcn.10015c30
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100147e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020cc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov eax, dword [0x100262c4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], 0
push 0x10021e95
lea ecx, [ebp - 0x154]
call fcn.1000c550
mov dword [ebp - 4], 1
push 0x10021e96
lea ecx, [ebp - 0x138]
call fcn.1000c550
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x17c]
call fcn.10014d80
movzx eax, al
test eax, eax
jne 0x1001494b
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x138]
call fcn.10001fb0
movzx eax, byte [0x10021d07]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], 0
mov ecx, dword [ebp - 0x15c]
add ecx, 1
push ecx
call fcn.10015a77
add esp, 4
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x15c]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.100167e0
add esp, 0xc
mov edx, dword [ebp - 0x15c]
push edx
push str.mbLNI_b_b_vwaUdQbOR
mov eax, dword [ebp - 0x158]
push eax
call fcn.100164a0
add esp, 0xc
push 0x10021c2c
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.10011c60
add esp, 0xc
mov eax, dword [ebp - 0x158]
push eax
lea ecx, [ebp - 0x154]
call fcn.10001fb0
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x16c]
push edx
call fcn.100163da
add esp, 4
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x138]
call fcn.1000c5b0
jmp 0x10014a3a
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x138]
call fcn.10001fb0
movzx eax, byte [0x10021aba]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], 0
mov ecx, dword [ebp - 0x164]
add ecx, 1
push ecx
call fcn.10015a77
add esp, 4
mov dword [ebp - 0x170], eax
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x164]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.100167e0
add esp, 0xc
mov edx, dword [ebp - 0x164]
push edx
push str.m_NIF
mov eax, dword [ebp - 0x160]
push eax
call fcn.100164a0
add esp, 0xc
push 0x10021c2c
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call fcn.10011c60
add esp, 0xc
mov eax, dword [ebp - 0x160]
push eax
lea ecx, [ebp - 0x154]
call fcn.10001fb0
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x174]
push edx
call fcn.100163da
add esp, 4
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x138]
call fcn.1000c5b0
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001f40
mov edx, dword [ebp - 0x178]
or edx, 1
mov dword [ebp - 0x178], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.10001f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.10001f90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10015c30
mov esp, ebp
pop ebp
ret 4
Function at 0x10014d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x100262c4]
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 1
jne 0x10014dd5
cmp dword [ebp - 0x9c], 4
jne 0x10014dd5
cmp dword [ebp - 0x98], 0xa
jne 0x10014dd5
mov dword [ebp - 0xa8], 1
jmp 0x10014ddf
mov dword [ebp - 0xa8], 0
mov al, byte [ebp - 0xa8]
mov ecx, dword [ebp - 4]
call fcn.10015c30
mov esp, ebp
pop ebp
ret

Function at 0x100157e6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100262c4]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10015768
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.100167e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10015848
cmp dword [ebp - 0x1c], 5
jb 0x10015860
jmp 0x1001585c
cmp dword [ebp - 0x10], 1
jne 0x10015860
cmp dword [ebp - 0x1c], 4
ja 0x1001585c
jne 0x10015860
cmp dword [ebp - 0x18], 0
jbe 0x10015860
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10021ef4
call fcn.10004430
test eax, eax
jge 0x10015881
mov byte [0x10026eac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10015c30
add ebp, 0x78
leave
ret
Function at 0x1001614d
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.10016110
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100161e8
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 [0x10027ab0]
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 0x100161e8
cmp eax, 1
je 0x10016209
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 0x100161e8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100161b5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100161e4
xor eax, eax
inc eax
jmp 0x10016228
cmp edi, eax
jae 0x100161ec
xor eax, eax
jmp 0x10016228
cmp eax, esi
jae 0x100161f3
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 [0x10027ab0]
jmp 0x1001620c
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 0x1001727c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001729c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001ab10
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100172bf
test byte [esp + 8], 2
je 0x100172bf
call fcn.1001aafe
mov dword [eax], 0xd
call fcn.1001ab07
mov dword [eax], 5
jmp 0x10017298
xor eax, eax
ret
Function at 0x10017d9d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10017e8d
mov eax, 0x94
call fcn.10016110
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10017f02
mov ecx, dword [esi + 0x10]
mov dword [0x10027ab0], ecx
mov eax, dword [esi + 4]
mov dword [0x10027abc], eax
mov edx, dword [esi + 8]
mov dword [0x10027ac0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10027ab4], esi
je 0x10017e08
or esi, 0x8000
mov dword [0x10027ab4], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10027ab8], eax
call fcn.100194b8
test eax, eax
pop ecx
je 0x10017f02
call fcn.10018d36
test eax, eax
jne 0x10017e35
call fcn.10019509
jmp 0x10017f02
call fcn.1001d548
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100292f8], eax
call fcn.1001d426
mov dword [0x10027a84], eax
call fcn.1001cf07
test eax, eax
jl 0x10017e86
call fcn.1001d384
test eax, eax
jl 0x10017e81
call fcn.1001d151
test eax, eax
jl 0x10017e81
push 0
call fcn.10018f36
test eax, eax
pop ecx
jne 0x10017e81
inc dword [0x10027a80]
jmp 0x10017f13
call fcn.1001d105
call fcn.10018b1f
jmp 0x10017e2b
test eax, eax
jne 0x10017ebd
cmp dword [0x10027a80], eax
jle 0x10017f02
dec dword [0x10027a80]
cmp dword [0x10027aec], eax
jne 0x10017eac
call fcn.10019074
call fcn.1001d105
call fcn.10018b1f
call fcn.10019509
jmp 0x10017f13
cmp eax, 2
jne 0x10017f06
push 0x8c
push 1
call fcn.1001ce4c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10017f02
push esi
push dword [0x10026308]
call dword [0x10027aa4]
test eax, eax
push esi
je 0x10017efc
call fcn.10018b3c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10017f13
call fcn.100168f9
pop ecx
xor eax, eax
jmp 0x10017f16
cmp eax, 3
jne 0x10017f13
push 0
call fcn.10018d07
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10018fa0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100223a8
call fcn.10018038
push 8
call fcn.100193ff
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10027af0], esi
jne 0x10018fd4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10027aec], esi
mov al, byte [ebp + 0x10]
mov byte [0x10027ae8], al
cmp dword [ebp + 0xc], edi
jne 0x1001901e
cmp dword [0x100292ec], edi
je 0x1001900e
mov eax, dword [0x100292e8]
sub eax, 4
mov dword [0x100292e8], eax
cmp eax, dword [0x100292ec]
jb 0x1001900e
mov eax, dword [eax]
cmp eax, edi
je 0x10018fef
call eax
jmp 0x10018fef
push 0x10026040
mov eax, 0x10026038
call fcn.10018f1e
pop ecx
push 0x1002604c
mov eax, 0x10026044
call fcn.10018f1e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1001904f
cmp dword [ebp + 0x10], edi
jne 0x1001905d
mov dword [0x10027af0], esi
push dword [ebp + 8]
call fcn.10018edc
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1001905c
push 8
call fcn.1001934a
pop ecx
ret
call fcn.10018073
ret
Function at 0x1001d74f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100262c4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10026b68]
je 0x1001d784
inc eax
cmp eax, 0x13
jb 0x1001d775
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10026b68]
jne 0x1001d8aa
mov eax, dword [0x10027a8c]
cmp eax, 1
je 0x1001d882
cmp eax, edx
jne 0x1001d7b4
cmp dword [0x10027a90], 1
je 0x1001d882
cmp ecx, 0xfc
je 0x1001d8aa
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001d7ea
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.100172d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100169f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001d81e
mov eax, edi
push eax
call fcn.100169f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10022104
push edi
call fcn.10017880
add esp, 0x10
push edi
call fcn.100169f0
push dword [esi + 0x10026b6c]
mov ebx, eax
call fcn.100169f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10016110
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100172d0
push edi
push ebx
call fcn.100172e0
push 0x10022100
push ebx
call fcn.100172e0
push dword [esi + 0x10026b6c]
push ebx
call fcn.100172e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1001d8ff
add esp, 0x2c
jmp 0x1001d8aa
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10026b6c]
push dword [esi]
call fcn.100169f0
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]
mov ecx, dword [ebp + 0x88]
call fcn.10015c30
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1001d8ff
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10027dd0], ebx
push esi
push edi
jne 0x1001d97f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001d9ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10027dd0], eax
je 0x1001d9ba
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10027dd4], eax
call esi
cmp dword [0x10027ab0], 2
mov dword [0x10027dd8], eax
jne 0x1001d97f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10027de0], eax
je 0x1001d97f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10027ddc], eax
mov eax, dword [0x10027ddc]
test eax, eax
je 0x1001d9c4
call eax
test eax, eax
je 0x1001d9ab
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10027de0]
test eax, eax
je 0x1001d9ab
test byte [ebp - 8], 1
jne 0x1001d9c4
cmp dword [0x10027abc], 4
jb 0x1001d9be
or byte [ebp + 0x12], 0x20
jmp 0x1001d9e3
xor eax, eax
jmp 0x1001d9f3
or byte [ebp + 0x12], 4
jmp 0x1001d9e3
mov eax, dword [0x10027dd4]
test eax, eax
je 0x1001d9e3
call eax
mov ebx, eax
test ebx, ebx
je 0x1001d9e3
mov eax, dword [0x10027dd8]
test eax, eax
je 0x1001d9e3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10027dd0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001e33f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100262c4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1001e370
xor eax, eax
jmp 0x1001e4f9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10027f60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1001e3ac
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1001f6d7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1001e487
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1001e4c5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1001e410
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1001e401
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1001e3e1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001e450
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1001e459
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1001e3d2
jmp 0x1001e45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1001e4f4
cmp dword [ebp - 0x6c], edi
je 0x1001e4c5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1001e4ba
call fcn.1001aafe
mov dword [eax], 9
call fcn.1001ab07
mov dword [eax], esi
jmp 0x1001e4ef
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001e4af
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1001e45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1001e45b
push dword [ebp - 0x6c]
call fcn.1001ab10
pop ecx
jmp 0x1001e4ef
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1001e4dd
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1001e4dd
xor eax, eax
jmp 0x1001e4f7
call fcn.1001aafe
mov dword [eax], 0x1c
call fcn.1001ab07
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1001e4f7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10015c30
add ebp, 0x3a0
leave
ret
Function at 0x1001ee20
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 0x1001eff4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10027f60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1001eff4
test cl, 0x48
je 0x1001ee8b
cmp byte [eax + 5], 0xa
je 0x1001ee8b
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 0x1001eedd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1001eec5
call fcn.1001aafe
mov dword [eax], 9
call fcn.1001ab07
mov dword [eax], esi
jmp 0x1001eed5
cmp eax, 0x6d
je 0x1001eff4
push eax
call fcn.1001ab10
pop ecx
or eax, 0xffffffff
jmp 0x1001eff6
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1001efef
test eax, eax
je 0x1001ef04
cmp byte [ebx], 0xa
jne 0x1001ef04
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1001ef0d
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 0x1001efe9
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1001efd9
cmp al, 0xd
je 0x1001ef3f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1001efcb
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1001ef59
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1001ef54
add dword [ebp + 0x10], 2
jmp 0x1001efad
mov dword [ebp + 0x10], eax
jmp 0x1001efc7
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 0x1001ef81
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001efc7
cmp dword [ebp - 0xc], 0
je 0x1001efc7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1001efa2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1001efad
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1001efca
cmp ebx, dword [ebp + 0xc]
jne 0x1001efb2
cmp byte [ebp - 1], 0xa
jne 0x1001efb2
mov byte [ebx], 0xa
jmp 0x1001efca
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001e220
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1001efcb
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1001ef23
jmp 0x1001efe9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1001efe9
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 0x1001eff6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001f7da
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10016110
mov eax, dword [0x100262c4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1001e220
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x1001f90d
push 2
push esi
push dword [ebp + 8]
call fcn.1001e220
add esp, 0xc
cmp eax, ebx
je 0x1001f90d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1001f8ad
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.100167e0
push 0x8000
push dword [ebp + 8]
call fcn.1001fa51
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1001f863
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.1001e33f
add esp, 0xc
cmp eax, 0xffffffff
je 0x1001f883
sub edi, eax
test edi, edi
jg 0x1001f85b
jmp 0x1001f89b
call fcn.1001ab07
cmp dword [eax], 5
jne 0x1001f898
call fcn.1001aafe
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1001fa51
pop ecx
pop ecx
jmp 0x1001f8f5
jge 0x1001f8f5
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001e220
push dword [ebp + 8]
call fcn.1001eae5
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 0x1001f8f5
call fcn.1001aafe
mov dword [eax], 0xd
call fcn.1001ab07
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.1001e220
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1001f90f
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10015c30
leave
ret