joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403000
test esi, esi
jne 0x4026ea
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403050
jmp 0x402708
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402568
mov edi, eax
test esi, esi
je 0x402708
cmp dword [ebx], 0
je 0x402708
dec esi
jmp 0x4026f1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4027a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40283c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40281c
xor eax, eax
push ebp
push 0x402815
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402858
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40281c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402e84
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x402ee5
cmp word [0x405208], 0xd7b2
jne 0x402ead
cmp dword [0x405210], 0
jbe 0x402ead
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40404c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402f0c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x404018], 0
jne 0x402f01
push 0
push 0x40406c
push 0x40404c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x401690
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebp, dword [esp + 0x80]
lea eax, [esp + 0x3c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.KERNEL32.dll_GetFileAttributesExW
sub esp, 0xc
test eax, eax
jne 0x4016f1
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], 0x6f
xor edi, edi
mov dword [esp + 8], str..._src_string.c
mov dword [esp + 4], str.e_91m_____f__ls:_d_l__e_33mFile_content_does_not_exist__ne_0m
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fwprintf
add esp, 0x6c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
or eax, ebx
mov esi, ebx
je 0x4016bd
mov dword [esp], ebp
mov dword [esp + 0x18], 0
xor edi, edi
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
call sub.KERNEL32.dll_CreateFileW
mov ebp, eax
lea eax, [eax - 1]
sub esp, 0x1c
cmp eax, 0xfffffffd
jbe 0x401760
xor eax, eax
mov word [edi + ebx*2], ax
add esp, 0x6c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 1]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40183f
add esi, 1
add esi, esi
mov dword [esp], esi
call sub.msvcrt.dll_malloc
mov edi, eax
mov eax, dword [esp + 0x2c]
mov byte [eax + ebx], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ebp
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x401800
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], esi
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], ebp
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x401746
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor edi, edi
mov dword [esp + 4], str.e_91m__WINAPI_ERROR__e_33mReading_file_content_has_failed___0x_lX__ne_0m
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fwprintf
mov dword [esp], ebp
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x4016e7
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor edi, edi
mov dword [esp + 4], str.e_91m__WINAPI_ERROR__e_33mMemory_allocation_for_reading_file_content_has_failed___0x_lX__ne_0m
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fwprintf
mov dword [esp], ebp
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x4016e7
Function at 0x4022a0
Capabilities:
Execute command

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov esi, eax
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], eax
call fcn.00404630
lea ecx, [esi - 1]
test esi, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], ecx
je 0x4023cb
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
mov ebp, dword [edx + edi*4]
mov eax, dword [ebp + 4]
mov dword [esp + 8], eax
mov eax, dword [ebp]
mov dword [esp], str.e_91m_n_n_t_t
mov dword [esp + 4], eax
call sub.msvcrt.dll_wprintf
cmp dword [esp + 0x34], 0x32
jbe 0x402420
mov edx, dword [esp + 0x2c]
mov eax, edi
mov dword [esp], str.___e_91m_de_33m_e_93m_de_92m_s
add eax, 1
mov dword [esp + 4], eax
mov dword [esp + 0x30], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_wprintf
mov edx, dword [ebp + 4]
test edx, edx
je 0x4023d3
xor esi, esi
nop
mov eax, dword [ebp + 8]
mov ebx, dword [eax + esi*4]
add esi, 1
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.004018e0
mov edi, eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x44], 0x40a9d2
mov dword [esp + 0x48], str.Erkek
mov dword [esp + 0x4c], str.Bilinmiyor__MUHTEMEL_HATA_
mov dword [esp + 0x10], eax
movzx eax, byte [ebx + 0xc]
mov eax, dword [esp + eax*4 + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], edi
mov dword [esp], str.e_91m_t_t_t
mov dword [esp + 8], eax
call sub.msvcrt.dll_wprintf
mov dword [esp], edi
call sub.msvcrt.dll_free
cmp dword [ebp + 4], esi
ja 0x402340
cmp dword [esp + 0x34], 0x32
ja 0x4023d3
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x28], edx
je 0x402451
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
ja 0x4022e0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x28], ecx
je 0x402451
mov dword [esp], str.e_95m_n_t_t_Di
call sub.msvcrt.dll_wprintf
lea esi, [esi]
call sub.msvcrt.dll__getch
mov dword [esp], 0x14
mov ebx, eax
call sub.KERNEL32.dll_Sleep
sub esp, 4
cmp bl, 0xd
jne 0x4023f0
mov dword [esp], 0x40aaf4
call sub.msvcrt.dll_system
jmp 0x4023b9
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov dword [esp], 0x40a9ac
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sub.msvcrt.dll_wprintf
mov eax, dword [ebp + 4]
test eax, eax
je 0x402467
mov eax, edi
add eax, 1
mov dword [esp + 0x30], eax
jmp 0x40233c
mov dword [esp], 0x40aaf8
call sub.msvcrt.dll_wprintf
call fcn.00401e10
jmp 0x4023b9
mov eax, dword [esp + 0x28]
add eax, 1
mov dword [esp + 0x30], eax
jmp 0x4023ab
Function at 0x4024c0
Capabilities:
Execute command
Set console window title

Disassembly:
push edi
sub esp, 0x218
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], 0x20000
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll__setmode
mov dword [esp + 4], 0x20000
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__setmode
mov dword [esp + 4], 0x20000
mov eax, dword [edi + 0x50]
lea edi, [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll__setmode
mov eax, dword [str.FSAL_Panel_v]
mov ecx, 0x78
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20c], 0
mov dword [esp + 0x12], eax
mov eax, dword [0x40ab66]
mov dword [esp + 0x16], eax
mov eax, dword [0x40ab6a]
mov dword [esp + 0x1a], eax
mov eax, dword [0x40ab6e]
mov dword [esp + 0x1e], eax
mov eax, dword [0x40ab72]
mov dword [esp + 0x22], eax
mov eax, dword [0x40ab76]
mov dword [esp + 0x26], eax
movzx eax, word [0x40ab7a]
mov word [esp + 0x2a], ax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [str.1.1.03]
lea edi, [esp + 0x12]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscat
mov dword [esp], edi
call sub.KERNEL32.dll_SetConsoleTitleW
sub esp, 4
mov dword [esp], 0x40aaf4
call sub.msvcrt.dll_system
add esp, 0x218
pop edi
ret
Function at 0x404c90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x410044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x41003c]
sub esp, 4
test ebx, ebx
je 0x404cdb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x404cd4
test esi, esi
je 0x404cd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404cb0
mov dword [esp], 0x410044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x404ec0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x404f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x404fe8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x404f4e
cmp eax, 4
jne 0x404f70
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x404f5e
cmp edx, 4
je 0x404f5e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00404ec0
Function at 0x42df20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
jmp 0x42df3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42df41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42df30
mov eax, 1
add ebx, ebx
jne 0x42df53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42df48
jne 0x42df64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42df48
xor ecx, ecx
sub eax, 3
jb 0x42df78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42dfea
mov ebp, eax
add ebx, ebx
jne 0x42df83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42df90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42dfb4
inc ecx
add ebx, ebx
jne 0x42dfa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42df95
jne 0x42dfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42df95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42dfd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42dfc5
jmp 0x42df36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42dfd4
add edi, ecx
jmp 0x42df36
pop esi
mov edi, esi
mov ecx, 0xb34
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42dff2
cmp byte [edi], 5
jne 0x42dff2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42dff7
lea edi, [esi + 0x2b000]
mov eax, dword [edi]
or eax, eax
je 0x42e06f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e360]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e414]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42e024
mov ecx, edi
jns 0x42e053
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e418]
or eax, eax
je 0x42e069
mov dword [ebx], eax
add ebx, 4
jmp 0x42e041
call dword [esi + 0x2e428]
mov ebp, dword [esi + 0x2e41c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42e0a3
sub esp, 0xffffff80
jmp 0x40ff95
Function at 0x2e73700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02e7378f
jae 0x2e7370e
xor ecx, ecx
call fcn.02e7378f
jae 0x2e7373d
xor eax, eax
call fcn.02e7378f
jae 0x2e7374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02e7378f
adc al, al
jae 0x2e7372f
jne 0x2e73779
stosb byte es:[edi], al
jmp 0x2e73711
call fcn.02e7379b
sub ecx, ebx
jne 0x2e73756
call fcn.02e73799
jmp 0x2e73775
lodsb al, byte [esi]
shr eax, 1
je 0x2e73783
adc ecx, ecx
jmp 0x2e73772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02e73799
cmp eax, 0x7d00
jae 0x2e73772
cmp ah, 5
jae 0x2e73773
cmp eax, 0x7f
ja 0x2e73774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2e73711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x10022509
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10053930
push 0x10053928
push 0x10051be4
push 0x1e
call fcn.100223d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002253d
push dword [ebp + 8]
mov ecx, esi
call dword [0x100331bc]
call esi
jmp 0x10022543
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10022587
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10053940
push 0x10053938
push 0x10051c08
push 0x20
call fcn.100223d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100225be
push dword [ebp + 8]
mov ecx, esi
call dword [0x100331bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100262d6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10063758]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10026316
cmp byte [ebx], 0xa
jne 0x10026316
or byte [eax + edi + 0x28], 4
jmp 0x1002631b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10026419
mov al, byte [edx]
cmp al, 0x1a
je 0x100263fb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1002634a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1002636f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10026379
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1002632c
jmp 0x10026419
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100263f6
cmp dword [ebp - 0xc], 0
je 0x100263f6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10063758]
test byte [eax + edi + 0x28], 0x48
je 0x100263d0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100263bb
mov byte [esi], dl
jmp 0x100263cc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10063758]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10026419
cmp byte [ebp - 1], 0xa
jne 0x100263df
cmp esi, ebx
jne 0x100263df
mov byte [esi], 0xa
jmp 0x10026418
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100260cf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10026419
mov byte [esi], 0xd
jmp 0x10026418
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10063758]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10026415
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10026419
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10026422
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10063758]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10026465
cmp word [esi], dx
jne 0x10026465
or byte [edi + eax + 0x28], 4
jmp 0x1002646a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100265bd
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1002659d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100264ac
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100264e2
cmp eax, edx
jae 0x100264ee
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x10026484
jmp 0x100265bd
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10026599
cmp dword [ebp - 0x14], 0
je 0x10026599
mov eax, dword [ebx*4 + 0x10063758]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10026571
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1002653a
mov word [esi], cx
jmp 0x1002656d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10063758]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10063758]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10063758]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100265bd
pop ebx
cmp word [ebp - 4], bx
jne 0x10026582
cmp esi, dword [ebp + 0xc]
jne 0x10026582
mov word [esi], bx
jmp 0x100265ba
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100260cf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100265bd
push 0xd
jmp 0x100265b6
mov ecx, dword [ebx*4 + 0x10063758]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100265b4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100265bd
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10026d37
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10026cb3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10026eaf
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10026eaf
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10026e5e
jg 0x10026d90
test eax, eax
je 0x10026e54
push 1
push 0x1000
call fcn.1002289a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10026db6
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10026e4b
push 0x8000
push ebx
call fcn.10026b68
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10026de2
jg 0x10026ddd
cmp ecx, 0x1000
jb 0x10026de2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001e68b
add esp, 0x10
cmp eax, 0xffffffff
je 0x10026e27
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10026ddd
jl 0x10026e0e
test ecx, ecx
jne 0x10026dcf
push dword [ebp - 0xc]
push ebx
call fcn.10026b68
push esi
call fcn.100228f7
add esp, 0xc
xor edi, edi
jmp 0x10026ec0
cmp byte [edi + 0x24], 0
je 0x10026e3e
cmp dword [edi + 0x20], 5
jne 0x10026e3e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10026e49
mov edi, dword [edi + 0x18]
jmp 0x10026e4b
xor edi, edi
push esi
call fcn.100228f7
pop ecx
jmp 0x10026ec0
test ecx, ecx
jg 0x10026e20
jl 0x10026e5e
test eax, eax
jae 0x10026e20
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100260cf
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10026e81
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10026e20
jmp 0x10026eb8
push ebx
call fcn.10025ed5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10026e20
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x10026ec0
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10026ebd
mov edi, dword [edi + 0x18]
jmp 0x10026ec0
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100260cf
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret