joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405926
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42bc90], 0x44
push eax
xor eax, eax
push 0x42bc90
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405965
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405969
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x405a07
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dfb
mov edi, eax
cmp edi, 0xffffffff
je 0x405a48
test byte [esp + 0x10], 1
push esi
je 0x405a2a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405a30
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405a39
xor eax, eax
inc eax
jmp 0x405a4a
test byte [esp + 0x10], 4
jne 0x405a48
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a4f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405d0d
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a8e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f0a8], eax
jmp 0x405c18
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405aa8
test eax, eax
je 0x405bc6
test bl, 2
je 0x405bc6
mov esi, 0x42b490
push edi
push esi
call fcn.0040628d
cmp dword [ebp + 8], 0
je 0x405ac7
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405acd
push edi
call fcn.00405c66
cmp byte [edi], 0
jne 0x405adb
cmp byte [0x42b490], 0x5c
jne 0x405ae6
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405bbc
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405c4a
cmp byte [eax], 0
je 0x405b2c
cmp byte [ebp - 0x1c], 0
je 0x405b2c
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405b42
mov al, byte [esi + 1]
test al, al
je 0x405b9b
cmp al, 0x2e
jne 0x405b42
cmp byte [esi + 2], 0
je 0x405b9b
push esi
push ebx
call fcn.0040628d
test byte [ebp - 0x14c], 0x10
je 0x405b67
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b9b
push dword [ebp + 0xc]
push edi
call fcn.00405a4f
jmp 0x405b9b
push dword [ebp - 4]
push edi
call fcn.00405a07
test eax, eax
jne 0x405b93
cmp dword [ebp - 4], eax
je 0x405b8b
push edi
push 0xfffffffffffffff1
call fcn.004053d1
push 0
push edi
call fcn.00406066
jmp 0x405b9b
inc dword [0x42f0a8]
jmp 0x405b9b
push edi
push 0xfffffffffffffff2
call fcn.004053d1
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405b0a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405bc6
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405c18
cmp dword [ebp - 0xc], esi
jne 0x405bda
inc dword [0x42f0a8]
jmp 0x405c18
push edi
call fcn.00406620
test eax, eax
je 0x405c18
push edi
call fcn.00405c1f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405a07
test eax, eax
jne 0x405c10
cmp dword [ebp - 4], esi
je 0x405bd2
push edi
push 0xfffffffffffffff1
call fcn.004053d1
push esi
push edi
call fcn.00406066
jmp 0x405c18
push edi
push 0xffffffffffffffe5
call fcn.004053d1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405d0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b890
push esi
call fcn.0040628d
push esi
call fcn.00405cb8
mov edi, eax
test edi, edi
jne 0x405d2e
xor eax, eax
jmp 0x405d80
push edi
call fcn.00406587
test byte [0x42f038], 0x80
je 0x405d47
mov al, byte [edi]
test al, al
je 0x405d2a
cmp al, 0x5c
je 0x405d2a
sub edi, esi
jmp 0x405d5f
call fcn.00406620
test eax, eax
je 0x405d59
test byte [eax], 0x10
je 0x405d2a
push esi
call fcn.00405c66
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405d4b
call fcn.00405c1f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dfb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405e1a
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405e20
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405e4f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3cc]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e94
test edi, edi
jne 0x405e5a
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e8e
Function at 0x405ef6
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x42c218], 0x4c554e
mov edi, 0x400
mov ebp, 0x42c218
je 0x405f42
push 1
push 0
push esi
call fcn.00405e20
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406061
cmp eax, edi
jg 0x406061
mov esi, 0x42c618
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406061
cmp eax, edi
jg 0x406061
push esi
push ebp
push str._s_s_r_n
push 0x42be18
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42f030]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406320
push 4
push 0xc0000000
push esi
call fcn.00405e20
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406061
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40605a
push edi
push esi
push ebp
call fcn.00405e98
test eax, eax
je 0x40605a
push str._Rename__r_n
push esi
call fcn.00405d85
test eax, eax
jne 0x405ff8
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40602d
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405d85
mov ebp, eax
test ebp, ebp
je 0x406029
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40601a
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406014
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40602f
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42be18
push eax
call fcn.00405ddb
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405ec7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406066
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406089
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ef6
pop ecx
pop ecx
inc dword [0x42f0b0]
ret 8

Function at 0x406174
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406113
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061e3
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x4061e3
cmp dword [ebp + 0xc], 1
je 0x4061e6
cmp dword [ebp + 0xc], 2
je 0x4061e6
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406647
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40666b
xor eax, eax
test eax, eax
je 0x40667d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40667d
xor ecx, ecx
jmp 0x406680
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40676c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca1c], 0
push esi
jne 0x4067a3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40677d
mov dword [ecx*4 + 0x42ca18], eax
inc ecx
cmp ecx, 0x100
jl 0x406778
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067d4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ca18]
xor eax, esi
inc ecx
dec edx
jne 0x4067b6
pop edi
not eax
pop esi
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x60ea2e75
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x59416190
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x100012c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
test ax, ax
setne bl
test ax, ax
je 0x100012f8
push 0
push 0
push 0
push 0x90
call esi
push 0
push 2
push 0
push 0x90
call esi
push 0
push 0
push 0
push 0xd
call esi
push 0
push 2
push 0
push 0xd
call esi
push 0
push 0
push 0
push 0x23
call esi
push 0
push 2
push 0
push 0x23
call esi
push 0
push 0
push 0
push 0x10
call esi
push 0
push 0
push 0
push 0x24
call esi
push 0
push 2
push 0
push 0x24
call esi
push 0
push 2
push 0
push 0x10
call esi
push 0
push 0
push 0
push 8
call esi
push 0
push 2
push 0
push 8
call esi
push 0
push 0
push 0
push 9
call esi
push 0
push 2
push 0
push 9
call esi
push 0
push 0
push 0
push 0x23
call esi
push 0
push 2
push 0
push 0x23
call esi
push 0
push 0
push 0
push 0x10
call esi
push 0
push 0
push 0
push 0x24
call esi
push 0
push 2
push 0
push 0x24
call esi
push 0
push 2
push 0
push 0x10
call esi
push 0
push 0
push 0
push 8
call esi
push 0
push 2
push 0
push 8
call esi
push 0
push 0
push 0
push 9
call esi
push 0
push 2
push 0
push 9
call esi
test bl, bl
je 0x10001402
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je 0x10001402
push 0
push 0
push 0
push 0x90
call esi
push 0
push 2
push 0
push 0x90
call esi
pop esi
pop ebx
ret

Function at 0x10001da0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10001dbe
push 0
push 0
push 0
push 0x10001cc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10004da0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100206d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1002f050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000837d
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10007678
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000fa6e
Capabilities:
Parse pe header

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

Function at 0x10012b89
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x10012ba3
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x10012bba
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x10012c12
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.1001d341
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x10012c12
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10012c12
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10012c12
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x10012c0c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x10012c0e
xor bl, bl
mov al, bl
jmp 0x10012c14
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x10014cf5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.10009210
mov eax, dword [0x1002f050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1001299a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10014d37
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10014eae
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10020070
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10030a48]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10015b35
mov ecx, dword [esi*4 + 0x10030a48]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10014ea7
cmp eax, dword [edi + ecx + 0x24]
jne 0x10014ea7
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014ea7
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10015b35
add esp, 0x14
cmp edx, esi
jl 0x10014ea7
jg 0x10014e02
cmp eax, esi
jb 0x10014ea7
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x10014ea7
jl 0x10014e24
cmp dword [ebp - 0x1008], eax
ja 0x10014ea7
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x10014e49
cmp ebx, esi
je 0x10014e8e
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x10014e8e
mov al, byte [ecx]
cmp al, 0xd
jne 0x10014e6f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10014e7b
cmp byte [ecx + 1], 0xa
jne 0x10014e7b
inc ecx
jmp 0x10014e7b
movzx eax, al
movsx eax, byte [eax + 0x1002f2c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10014e55
cmp edx, ebx
jne 0x10014e55
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x10014eac
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000836f
leave
ret
Function at 0x10014fc1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10030a48]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10015003
cmp byte [ebx], 0xa
jne 0x10015003
or byte [edi + eax + 0x28], 4
jmp 0x10015008
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1001510b
mov cl, byte [eax]
cmp cl, 0x1a
je 0x100150e6
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x10015037
mov eax, dword [ebp - 8]
jmp 0x10015057
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x10015073
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x10015051
add eax, 2
mov cl, 0xa
jmp 0x10015054
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x10015019
jmp 0x1001510b
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 0x100150e1
cmp dword [ebp - 0x10], 0
je 0x100150e1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x10030a48]
test byte [eax + edi + 0x28], 0x48
je 0x100150c0
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x100150b0
mov byte [esi], 0xa
jmp 0x1001510a
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x10030a48]
mov byte [eax + edi + 0x2a], cl
jmp 0x1001510a
cmp byte [ebp - 1], 0xa
jne 0x100150ca
cmp esi, ebx
je 0x100150ab
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10015b53
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001510b
mov byte [esi], 0xd
jmp 0x1001510a
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x10030a48]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x10015108
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x1001510b
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10015114
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x10030a48]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10015158
push 0xa
pop esi
cmp word [ebx], si
jne 0x10015158
or byte [eax + edi + 0x28], 4
jmp 0x1001515d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x100152c8
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x100152a0
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x100151aa
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x100151d4
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x100151f3
push 0xa
pop ebx
cmp word [edx], bx
jne 0x100151c1
push ebx
add eax, 4
pop edx
jmp 0x100151c9
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x1001516f
jmp 0x100152c8
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 0x1001529b
cmp dword [ebp - 0x14], 0
je 0x1001529b
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x10030a48]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x10015277
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x1001523f
mov word [esi], ax
jmp 0x100152c5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x10030a48]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10030a48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10030a48]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x100152c5
cmp word [ebp - 4], ax
jne 0x10015281
cmp esi, ebx
je 0x10015237
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10015b53
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100152c8
push 0xd
pop eax
jmp 0x10015237
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x10030a48]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x100152c2
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x100152c8
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret