joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4901c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x9c], edx
mov esi, eax
lea edi, [ebp - 0x94]
xor eax, eax
push ebp
push 0x490408
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x94
call fcn.004074b0
mov dword [edi], 0x94
push edi
call sub.kernel32.dll_GetVersionExA
mov eax, esi
lea edx, [edi + 0x14]
mov ecx, 0x80
call fcn.00404810
mov eax, dword [edi + 4]
mov dword [0x4b1cd8], eax
mov edx, dword [edi + 8]
mov dword [0x4b1cdc], edx
mov edx, dword [edi + 0xc]
mov dword [0x4b1ce0], edx
xor ebx, ebx
cmp dword [edi + 0x10], 2
jne 0x490302
sub eax, 3
je 0x490262
dec eax
je 0x490266
dec eax
je 0x49026a
jmp 0x49026c
mov bl, 1
jmp 0x49026c
mov bl, 3
jmp 0x49026c
mov bl, 0xa
cmp dword [edi + 4], 5
jne 0x49027a
cmp dword [edi + 8], 1
jne 0x49027a
mov bl, 0xb
cmp dword [edi + 4], 5
jne 0x490288
cmp dword [edi + 8], 2
jne 0x490288
mov bl, 0xc
mov eax, dword [esi]
mov edx, 0x490420
call fcn.004049ac
jne 0x4903ea
mov dl, 1
mov eax, dword [0x4326d4]
call fcn.004327d4
mov edi, eax
mov edx, 0x80000002
mov eax, edi
call fcn.00432874
mov edx, 0x490438
mov eax, edi
call fcn.00432a00
test al, al
je 0x4902f6
mov edx, 0x490480
mov eax, edi
call fcn.004331ec
test al, al
je 0x4902ef
mov edx, 0x490480
mov eax, edi
call fcn.0043307c
dec eax
jne 0x4902ef
mov eax, esi
mov edx, 0x490494
call fcn.004045f4
mov eax, edi
call fcn.00432844
mov eax, edi
call fcn.00403850
jmp 0x4903ea
cmp dword [edi + 4], 4
jne 0x4903c2
cmp dword [edi + 8], 0
jne 0x4903c2
mov bl, 2
lea eax, [ebp - 0x9c]
lea edx, [edi + 0x14]
mov ecx, 0x80
call fcn.00404810
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.004089d0
mov eax, dword [ebp - 0x98]
mov edx, 0x4904ac
call fcn.004049ac
jne 0x490350
mov bl, 4
lea eax, [ebp - 0xa4]
lea edx, [edi + 0x14]
mov ecx, 0x80
call fcn.00404810
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.004089d0
mov eax, dword [ebp - 0xa0]
mov edx, 0x4904b8
call fcn.004049ac
jne 0x490388
mov bl, 5
lea eax, [ebp - 0xac]
lea edx, [edi + 0x14]
mov ecx, 0x80
call fcn.00404810
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.004089d0
mov eax, dword [ebp - 0xa8]
mov edx, 0x4904c4
call fcn.004049ac
jne 0x4903ea
mov bl, 6
jmp 0x4903ea
cmp dword [edi + 4], 4
jne 0x4903dc
cmp dword [edi + 8], 0xa
jne 0x4903dc
mov bl, 7
cmp word [edi + 0xc], 0x8ae
jne 0x4903ea
mov bl, 8
jmp 0x4903ea
cmp dword [edi + 4], 4
jne 0x4903ea
cmp dword [edi + 8], 0x5a
jne 0x4903ea
mov bl, 9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49040f
lea eax, [ebp - 0xac]
mov edx, 6
call fcn.004045c4
ret
Function at 0x490f28
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x490fbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404cd4
mov eax, 0x104
call fcn.00409888
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.shell32.dll_SHGetSpecialFolderLocation
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x490f83
mov eax, esi
mov edx, ebx
call fcn.00404de4
mov eax, ebx
call fcn.004098d4
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
call fcn.00416950
test al, al
je 0x490fa9
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490fc6
lea eax, [ebp - 0xc]
call fcn.00406048
ret
Function at 0x492da4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a50
xor eax, eax
push ebp
push 0x492e78
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x492e5b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404a60
mov esi, eax
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0xc]
call fcn.004086fc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x492e46
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
mov ecx, edi
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00492e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492e4d
mov eax, dword [ebp - 8]
call fcn.0040277c
ret
Function at 0x497b0c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1d4], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x497bd1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esi
call fcn.004045a0
push 0x40
lea eax, [ebp - 0x40]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x40]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x497bb8
mov edi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x497b98
push dword [esi]
mov eax, dword [edi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d4]
call fcn.00404798
push dword [ebp - 0x1d4]
push 0x497be8
mov eax, esi
mov edx, 3
call fcn.00404920
inc ebx
cmp dword [edi + ebx*4], 0
jne 0x497b67
mov eax, dword [esi]
call fcn.00404860
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00404b00
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497bd8
lea eax, [ebp - 0x1d4]
call fcn.004045a0
ret

Function at 0x499fd8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x41665c]
call fcn.00404fb0
xor eax, eax
push ebp
push 0x49a11c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b06c8], 0
jne 0x49a02b
mov ecx, dword [0x4b0778]
mov dl, 1
mov eax, dword [0x407acc]
call fcn.0040c80c
call fcn.00403fdc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040309c
mov eax, ebx
call fcn.00404e60
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x49a12c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406048
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404e70
test eax, eax
jle 0x49a0c3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x49a0bc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404828
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404810
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408960
test eax, eax
jne 0x49a0bc
mov ebx, 0x15
jmp 0x49a0c8
mov ebx, 0x10
jmp 0x49a0c8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4b06c8]
call fcn.00499f30
mov eax, dword [ebp - 8]
call fcn.00499f30
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a123
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004045c4
lea eax, [ebp - 0x10]
mov edx, dword [0x41665c]
call fcn.00405080
ret
Function at 0x4a03a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a040f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404810
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004a0364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0416
lea eax, [ebp - 0x10c]
call fcn.004045a0
ret

Function at 0x4a041c
Capabilities:
Get common file path

Disassembly:
add esp, 0xfffffef8
push 0x105
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
add esp, 0x108
ret
Function at 0x4aba90
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffff54
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4abb43
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4abb43
mov eax, dword [esp + 0x18]
dec eax
je 0x4abb37
dec eax
jne 0x4abb43
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xa0]
push eax
push 0x4abb4c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x4abb29
mov dword [esp + 0xa8], 2
mov dword [esp + 0x9c], 1
push esp
push 0
push 0
lea eax, [esp + 0xa8]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
jmp 0x4abb43
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0xac
ret

Function at 0x4abbb4
Capabilities:
Create process on windows
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a50
mov eax, dword [ebp - 8]
call fcn.00404a50
mov eax, dword [ebp - 0xc]
call fcn.00404a50
xor eax, eax
push ebp
push 0x4abc98
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040309c
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov eax, dword [0x4b0a60]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
call fcn.00404a60
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
call fcn.00404a60
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
call fcn.00404a60
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4abc7d
jmp 0x4abc6b
mov eax, dword [0x4b0a60]
mov eax, dword [eax]
call fcn.00461398
mov eax, dword [0x4b0a60]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x4abc7d
push 0x64
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4abc4f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abc9f
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045c4
ret
Function at 0x100716b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x100716d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret
Function at 0x101b6cdf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x101b6d1e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101b6d1e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101b6d1e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x101b6d1e
cmp dword [ecx + 0x74], 0xe
jbe 0x101b6d1e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x101b9670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101b969d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101b969d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x101b9ac4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c7b48
push 0x101c7b40
push str.FlsAlloc
push 0x1f
call fcn.101b9da7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b9af8
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x101b9afe
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101b9b42
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c7b58
push 0x101c7b50
push str.FlsGetValue
push 0x21
call fcn.101b9da7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b9b79
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101b9b81
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c7b60
push 0x101c7b58
push str.FlsSetValue
push 0x22
call fcn.101b9da7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b9bbb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101bd75f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x101bd7fc
push ebx
push esi
call fcn.101bd7ff
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101bd663
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101bd7a9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101bd7fb
push edi
push eax
call fcn.101bb94f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101bd7c9
call fcn.101baff2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101bd7fa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101bd663
add esp, 0x20
test eax, eax
jne 0x101bd7e8
push edi
call fcn.101baff2
jmp 0x101bd7f0
push ebx
call fcn.101baff2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x101c3cb4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x101d56b0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101c3cf4
cmp byte [ebx], 0xa
jne 0x101c3cf4
or byte [edi + eax + 0x28], 4
jmp 0x101c3cf9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x101c3df8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x101c3ddb
inc eax
cmp dl, 0xd
je 0x101c3d25
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x101c3d4b
cmp eax, ecx
jae 0x101c3d59
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x101c3d0d
jmp 0x101c3df8
push 0
lea eax, [ebp - 0x10]
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 0x101c3dd6
cmp dword [ebp - 0x10], 0
je 0x101c3dd6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101d56b0]
test byte [eax + edi + 0x28], 0x48
je 0x101c3db0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x101c3d9b
mov byte [esi], dl
jmp 0x101c3dac
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101d56b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x101c3df8
cmp byte [ebp - 1], 0xa
jne 0x101c3dbf
cmp esi, ebx
jne 0x101c3dbf
mov byte [esi], 0xa
jmp 0x101c3df7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.101c33d8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101c3df8
mov byte [esi], 0xd
jmp 0x101c3df7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101d56b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x101c3df5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x101c3df8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101c3e01
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101d56b0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x101c3e47
cmp word [ebx], dx
jne 0x101c3e47
or byte [eax + edi + 0x28], 4
jmp 0x101c3e4c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x101c3faf
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x101c3f8f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x101c3e8d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x101c3ec3
cmp eax, edx
jae 0x101c3ed1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x101c3e68
jmp 0x101c3faf
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101c3f8a
cmp dword [ebp - 0x18], 0
je 0x101c3f8a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101d56b0]
test byte [eax + edi + 0x28], 0x48
je 0x101c3f60
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x101c3f24
mov word [esi], cx
jmp 0x101c3f5b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101d56b0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101d56b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101d56b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x101c3faf
pop eax
cmp word [ebp - 4], ax
jne 0x101c3f70
cmp esi, ebx
jne 0x101c3f70
mov word [esi], ax
jmp 0x101c3fac
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.101c33d8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101c3faf
push 0xd
pop eax
jmp 0x101c3f6b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101d56b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x101c3fa9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x101c3faf
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101c4cf4
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.101c4e8b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101c4e63
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101c4e63
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101c4e18
jg 0x101c4d50
test eax, eax
je 0x101c4e0e
push 1
push 0x1000
call fcn.101bb807
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101c4d73
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101c4e05
push 0x8000
push ebx
call fcn.101c4bee
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x101c4d9c
jg 0x101c4d97
cmp ecx, 0x1000
jb 0x101c4d9c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101bf0f2
add esp, 0x10
cmp eax, 0xffffffff
je 0x101c4de1
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 0x101c4d97
jl 0x101c4dc8
test ecx, ecx
jne 0x101c4d89
push dword [ebp - 0xc]
push ebx
call fcn.101c4bee
push esi
call fcn.101baff2
add esp, 0xc
xor ebx, ebx
jmp 0x101c4e71
cmp byte [edi + 0x24], 0
je 0x101c4df8
cmp dword [edi + 0x20], 5
jne 0x101c4df8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101c4e03
mov ebx, dword [edi + 0x18]
jmp 0x101c4e05
xor ebx, ebx
push esi
call fcn.101baff2
pop ecx
jmp 0x101c4e71
test ecx, ecx
jg 0x101c4dda
jl 0x101c4e18
test eax, eax
jae 0x101c4dda
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101c33d8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101c4e38
cmp byte [edi + 0x1c], 0
je 0x101c4dda
jmp 0x101c4e69
push ebx
call fcn.101be800
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101c4dda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101c4e71
cmp byte [edi + 0x1c], 0
je 0x101c4e6e
mov ebx, dword [edi + 0x18]
jmp 0x101c4e71
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101c33d8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret