joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000de90
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
je 0x1000deb2
xor byte [ecx], dh
xor bl, byte [eax - 0x75]
inc ebp
in al, 0xc7
inc eax
or byte [eax], al
add byte [eax], al
add bh, al
inc ebp
cld
add dword [eax], eax
add byte [eax], al
pop eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp - 0x1c]
add ecx, 0x124
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x1000df64
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 8], 0
je 0x1000df4b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0x124
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
call fcn.10005240
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x1000df9c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
push eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
je 0x1000e862
xor byte [ecx], dh
xor bl, byte [eax - 0x75]
inc ebp
or byte [eax + 0x68], dl
inc esi
pop ds
add byte [eax], al
pop eax
mov eax, dword [ebp + 8]
push eax
push 0x1f46
mov ecx, dword [ebp - 0xc]
add ecx, 0xb4
call fcn.10004c10
test eax, eax
je 0x1000e899
mov ecx, dword [ebp + 8]
push ecx
push 0x1f53
mov ecx, dword [ebp - 0xc]
add ecx, 0x1c8
call fcn.10004c10
test eax, eax
jne 0x1000e89d
xor eax, eax
jmp 0x1000e906
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0x1000e300
call dword [sym.imp.msvcrt.dll__beginthread]
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x1000e5d0
call dword [sym.imp.msvcrt.dll__beginthread]
add esp, 0xc
mov dword [ebp - 8], 0
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x2dc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2e0]
mov dword [ebp - 4], edx
push 0xffffffffffffffff
push 1
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10010700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
je 0x10010722
xor byte [ecx], dh
xor bl, byte [eax - 0x39]
inc ebp
cld
add byte [eax], al
add byte [eax], al
pop eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x7fff00
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
ja 0x1001080d
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x10010772
cmp dword [ebp - 8], 0
jne 0x10010779
xor eax, eax
jmp 0x10010810
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
mov al, byte [ebp - 0x14]
mov byte [edx], al
movsx ecx, byte [ebp - 0x14]
cmp ecx, 0x3e
jne 0x100107ff
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 5
jb 0x100107fd
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0x3e
jne 0x100107fd
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx - 2]
cmp eax, 0x52
jne 0x100107fd
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 3]
cmp edx, 0x49
jne 0x100107fd
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 4]
cmp ecx, 0x44
jne 0x100107fd
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx - 5]
cmp eax, 0x3c
jne 0x100107fd
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp ecx, 0x50
jge 0x100107fd
jmp 0x10010743
jmp 0x1001080d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x10010743
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10010d90
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x58], ecx
push eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
xor eax, eax
je 0x10010db2
xor byte [ecx], dh
xor bl, byte [eax - 0x47]
adc dword [eax], eax
add byte [eax], al
pop eax
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x12], 0
mov dword [ebp - 0x18], 0x101
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 4], edx
mov word [ebp - 0x14], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push 0x10015a06
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
jne 0x10010e2e
xor eax, eax
jmp 0x10010e3c
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov dword [edx + 0x24], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5e99d5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5e9ac4
mov ecx, eax
mov ebx, dword [ecx + 0x3c]
add ecx, ebx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x5e9ac4
mov dword [ebp - 4], ecx
mov ebx, eax
mov ecx, dword [ebx + 0x3c]
add ebx, ecx
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x5e9a70
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5e9ac4
dec ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0xc]
push ecx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push eax
call dword [edi + 0x124ada06]
pop edi
pop ecx
test eax, eax
jne 0x5e9a29
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
movzx ecx, word [eax]
jmp 0x5e9a76
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x5e9ac4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x1c]
add edx, eax
shl ecx, 2
add edx, ecx
cmp dword [edx], 0
je 0x5e9ac4
mov ebx, dword [edx]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jle 0x5e9ac4
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5e9ac4
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005e991e
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4081a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
call fcn.00408280
mov ebx, eax
test ebx, ebx
jne 0x4081c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 4], eax
test edi, edi
je 0x4081f4
mov eax, dword [ebp + 0xc]
sub eax, esi
mov dword [ebp + 0xc], eax
add eax, esi
mov cl, byte [esi]
xor edx, edx
rol cl, 4
div dword [ebp - 4]
mov eax, dword [ebp + 0xc]
xor cl, byte [edx + ebx]
not cl
mov byte [esi], cl
inc esi
sub edi, 1
jne 0x4081d8
push ebx
call fcn.0049c23b
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408210
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 4
push edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x408272
push ebx
push edi
push edi
push edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40826a
mov edx, dword [ebp - 8]
mov ecx, ebx
push edi
push dword [ebp - 4]
call fcn.004081a0
add esp, 8
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x7863513
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.0049c24e
mov esi, eax
add esp, 4
test esi, esi
je 0x4082c8
xor edx, edx
test ebx, ebx
je 0x4082c8
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
inc edx
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, ebx
jb 0x4082b0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4083d0
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1c80
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
lea ecx, [ebp - 0x40]
call fcn.004048d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push 0x400
push eax
lea ecx, [ebp - 0x40]
call fcn.00403580
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.004033e0
push 0x400
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.00403c90
test bl, bl
jne 0x4085ea
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4085ea
push ecx
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x40]
call fcn.004086f0
mov byte [ebp - 4], 4
sub esp, 8
lea ecx, [ebp - 0xd0]
call fcn.004048d0
mov byte [ebp - 4], 5
xor eax, eax
push 0x44
push eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x114], 0
call fcn.0049e210
xor eax, eax
mov dword [ebp - 0x164], 0x44
push eax
mov word [ebp - 0x134], ax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x138], 1
call fcn.0040a030
add esp, 0x14
mov byte [ebp - 4], 6
lea eax, [ebp - 0x101]
push 0
push eax
push str.cmd.exe
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x4e1680
mov dword [ebp - 0x78], 0x4e1670
call fcn.00404150
mov byte [ebp - 4], 8
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408910
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.00404be0
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x6c]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0xd0]
push str.__s___c_del___s_
push eax
call fcn.00408660
add esp, 0x10
lea ecx, [ebp - 0xd0]
call fcn.004033e0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x164]
push ecx
push 0
push 0
push 0x40
push 0
push 0
push 0
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4085be
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00404be0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd0]
call fcn.00404810
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.00404810
jmp 0x4085ec
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404810
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret
Function at 0x40a030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2411
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
sub esp, 8
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x78], 0
call fcn.004091b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x70]
mov eax, dword [ebp + 0xc]
push 0x104
cmp eax, 1
jne 0x40a1b0
lea eax, [ebp - 0x84]
push eax
call fcn.00409430
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403ed0
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409a50
test bl, bl
je 0x40a0e9
lea ecx, [ebp - 0x2c]
call fcn.00409b30
push 0x51e104
lea eax, [ebp - 0x2c]
push eax
call fcn.0049e36a
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e1680
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e1670
call fcn.00404150
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push 0x5c
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x8c], esp
mov dword [ebp - 0x90], ecx
push 0
push eax
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00406f90
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.00409290
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404be0
push 0x4e09e8
lea ecx, [ebp - 0x70]
call fcn.00409ef0
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4e1680
mov dword [esi + 0x28], 0x4e1670
call fcn.00406f90
mov byte [ebp - 4], 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00404be0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret
cmp eax, 2
lea eax, [ebp - 0x84]
push eax
jne 0x40a22f
call fcn.00409430
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403ed0
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409a50
test bl, bl
jne 0x40a0d3
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e1680
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e1670
call fcn.00404150
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.004093b0
jmp 0x40a149
call fcn.00409430
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403ed0
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409a50
test bl, bl
je 0x40a155
jmp 0x40a0d3
Function at 0x40fcf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3f70
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
mov eax, dword [ebp + 8]
je 0x40fd8b
test eax, eax
je 0x40fd33
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fdee
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x44], 0x4e1680
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4e1670
call fcn.00406f90
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push 1
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f600
push 0x51e1b4
lea eax, [ebp - 0x9c]
push eax
call fcn.0049e36a
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fdee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x40fdee
push 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x44], 0x4e1680
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4e1670
call fcn.00406f90
mov dword [ebp - 4], 4
lea eax, [ebp - 0x44]
push 1
push ebx
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f3c0
push 0x51e228
lea eax, [ebp - 0x9c]
push eax
call fcn.0049e36a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret 4

Function at 0x410c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4340
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [ebp - 0x98]
mov ecx, dword [esi + 4]
mov edx, 1
cmovne edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x98], 0
test ecx, ecx
je 0x410d3b
push eax
push edx
push edi
call fcn.00496109
test al, al
jne 0x410d91
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e1680
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e1670
call fcn.00406f90
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x94]
call fcn.0040f600
push 0x51e1b4
lea eax, [ebp - 0x94]
push eax
call fcn.0049e36a
push 0
push eax
push edx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410d91
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e1680
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e1670
call fcn.00406f90
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f2e0
push 0x51e228
lea eax, [ebp - 0x90]
push eax
call fcn.0049e36a
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret 8
Function at 0x410dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4390
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5210b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [ebp - 0x9c]
mov ecx, dword [esi + 4]
mov edx, 1
cmovne edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x9c], 0
test ecx, ecx
je 0x410e6b
push eax
push edx
push edi
call fcn.00496109
test al, al
jne 0x410ec1
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e1680
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e1670
call fcn.00406f90
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f600
push 0x51e1b4
lea eax, [ebp - 0x98]
push eax
call fcn.0049e36a
push 0
push eax
push edx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410ec1
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e1680
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e1670
call fcn.00406f90
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f2e0
push 0x51e228
lea eax, [ebp - 0x98]
push eax
call fcn.0049e36a
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049c22a
mov esp, ebp
pop ebp
ret 8

Function at 0x411860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4642
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5210b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov byte [ebp - 4], 1
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov byte [ebp - 4], 2
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov byte [ebp - 4], 3
lea eax, [ecx + 0x30]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 5
lea eax, [ecx + 0x34]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 7
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov byte [ebp - 4], 8
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov byte [ebp - 4], 9
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov byte [ebp - 4], 0xb
mov dword [ecx + 0x68], 0
mov byte [ebp - 4], 0xc
mov dword [ecx + 0x6c], 0
mov byte [ebp - 4], 0xd
mov dword [ecx + 0x70], 0
mov byte [ebp - 4], 0xe
mov dword [ecx + 0x74], 0
mov byte [ebp - 4], 0xf
mov dword [ecx + 0x78], 0
mov byte [ebp - 4], 0x10
mov dword [ecx + 0x7c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret