joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cbb20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4cbb2e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4cbbed
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x549438]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x549438]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x549438]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x549438]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x549438]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x549438]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x549438]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x549438]
sub edi, 1
jne 0x4cbb46
pop edi
test esi, esi
je 0x4cbc0b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x549438]
sub esi, 1
jne 0x4cbbf1
not eax
pop esi
pop ebp
ret
Function at 0x4cc490
Capabilities:
Get common file path
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x24c]
or esi, 0xffffffff
push 0
push eax
call fcn.004d9fe0
add esp, 0xc
lea eax, [ebp - 0x24c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [ebp - 0x24c], 0
je 0x4cc583
push edi
lea eax, [ebp - 0x24c]
push 0x597154
push eax
call fcn.004d9502
xor ecx, ecx
push 0x40
push ecx
mov word [eax], cx
lea eax, [ebp - 0x44]
push eax
call fcn.004d9fe0
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x44]
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x44]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x4cc571
push 0
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
push eax
push 0xc
lea eax, [ebp - 0x258]
push eax
push 0
push 0
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push edi
cmovne esi, dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x4ccb00
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x10
push ebx
xor bl, bl
mov dword [ebp - 0x504], eax
cmp dword [ebp + 0x10], 0xffffffff
mov eax, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmove eax, ecx
push edi
mov dword [ebp - 0x508], eax
xor edi, edi
test bl, bl
jne 0x4ccd24
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004d9fe0
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.004d9fe0
cmp dword [ebp + 0x10], 0xffffffff
lea eax, [ebp - 0x104]
cmovne edi, dword [ebp + 0x10]
push edi
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4fc], eax
cmp eax, 0xffffffff
je 0x4ccd17
push 0x2710
push 8
mov dword [ebp - 0x500], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4ccd05
push 0
lea eax, [ebp - 0x500]
mov dword [ebp - 0x4f0], 0
push eax
push 0x2710
push esi
push 0xc
lea eax, [ebp - 0x4f8]
xorps xmm0, xmm0
push eax
push 0x2d1400
push dword [ebp - 0x4fc]
movq qword [ebp - 0x4f8], xmm0
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4ccc69
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4ccc69
lea ecx, [ebp - 0x4ec]
add eax, esi
push ecx
push eax
call fcn.004cd140
lea eax, [ebp - 0x4ec]
push eax
call fcn.004cd0d0
movsx ax, byte [ebp - 0x4ec]
add esp, 0xc
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x4cccd7
push 0x2710
push 0
push esi
call fcn.004d9fe0
add esp, 0xc
lea eax, [ebp - 0x500]
push 0
push eax
push 0x2710
push esi
push 0
push 0
push 0x2d0c10
push dword [ebp - 0x4fc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4cccf1
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x4ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x4ec]
push eax
call fcn.004cd0d0
movsx ax, byte [ebp - 0x4ec]
add esp, 4
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x4cccf1
push dword [ebp + 0xc]
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp - 0x504]
call fcn.004d8ee0
mov bl, 1
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ccd0b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [ebp - 0x4fc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x508]
jl 0x4ccb40
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x4dc28e
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x54d6c8
push 0x54d6c0
push str.FlsAlloc
push 0
call fcn.004dc20e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4dc2c0
push dword [ebp + 8]
mov ecx, esi
call fcn.004d7d58
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4dc302
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x54d6d8
push 0x54d6d0
push str.FlsGetValue
push 2
call fcn.004dc20e
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4dc333
mov ecx, esi
call fcn.004d7d58
call esi
jmp 0x4dc339
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x4dc33c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x54d6e0
push 0x54d6d8
push str.FlsSetValue
push 3
call fcn.004dc20e
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x4dc370
mov ecx, esi
call fcn.004d7d58
call esi
jmp 0x4dc376
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x4f49eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f46ae

Function at 0x4f49f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f482f

Function at 0x4fbe59
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fbb19
Function at 0x500490
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], edx
push 0x5986e0
push ecx
lea ecx, [ebp - 0x40]
call fcn.00514290
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 1
test eax, eax
je 0x500503
push edi
push eax
lea ecx, [ebp - 0x54]
call fcn.005121f0
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
mov ecx, edi
mov byte [ebp - 4], 2
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
xor ebx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x50061c
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x44], eax
test ebx, ebx
js 0x50060d
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jge 0x500607
mov edx, dword [ebp - 0x44]
add edx, esi
cmp dword [edx + 0x14], 8
jb 0x500563
mov edx, dword [edx]
test edx, edx
je 0x500607
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
inc dword [eax]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, edx
mov byte [ebp - 4], 3
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x500590
sub eax, esi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.00413520
lea ecx, [ebp - 0x28]
call fcn.00513e30
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5005f9
test al, 0x10
jne 0x5005f9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.004134c0
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
inc ebx
add eax, 0x18
mov dword [ebp - 0x44], eax
cmp ebx, ecx
jl 0x500531
cmp esi, edi
je 0x500631
mov ecx, esi
call fcn.004134c0
add esi, 0x18
cmp esi, edi
jne 0x500620
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], esi
call fcn.0044c170
lea ecx, [ebp - 0x40]
call fcn.004134c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x500890
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5c92c8], 8
push esi
mov esi, 0x5c92b4
cmovae esi, dword [0x5c92b4]
mov edx, esi
push edi
mov edi, ecx
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5008b0
sub edx, ecx
sar edx, 1
push edx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00413520
mov ecx, esi
call fcn.00513e30
mov edi, dword [edi]
test edi, edi
je 0x500910
cmp word [edi], 0
je 0x500910
push 1
push 0x597154
mov ecx, esi
call fcn.0042c750
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5008f1
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0042c750
mov ecx, esi
call fcn.00513e30
cmp byte [ebp + 0xc], 0
jne 0x50091e
pop edi
mov al, 1
pop esi
pop ebp
ret 8
cmp dword [esi + 0x14], 8
jb 0x500926
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50093b
shr eax, 4
not al
and al, 1
jne 0x500916
pop edi
xor al, al
pop esi
pop ebp
ret 8
Function at 0x504cf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5350c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x504d51
mov eax, dword [edi]
push 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00512d60
test al, al
je 0x504da7
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x504d73
mov dword [ebp - 0x34], 0x59af80
xor esi, esi
jmp 0x504da7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x504da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x504d9d
mov dword [ebp - 0x34], eax
xor esi, esi
jmp 0x504da7
mov dword [ebp - 0x34], 0x59b430
or esi, 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00512c50
test esi, esi
jg 0x504dc0
cmp dword [ebx + 0x24], 1
je 0x504dc0
mov ecx, edi
call fcn.00513d60
push dword [ebp - 0x3c]
mov edx, edi
mov ecx, ebx
call fcn.00504e10
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.00512c50
lea ecx, [ebp - 0x30]
call fcn.004134c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x5071a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53535c
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5c6150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x58]
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [edi + 0x60], 1
test eax, eax
je 0x5071f5
push 0
push eax
call ecx
push dword [edi + 0x58]
call ebx
mov ecx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x68]
mov byte [edi + 0x70], 1
test eax, eax
je 0x507218
push 0
push eax
call ecx
push dword [edi + 0x68]
call ebx
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
lea eax, [edi + 0xc]
cmp dword [edi + 0x20], 8
jb 0x50722b
mov eax, dword [edi + 0xc]
push eax
call fcn.00446d80
mov ecx, eax
call fcn.0050f430
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x507289
nop
mov ebx, dword [esi]
test ebx, ebx
je 0x50727b
lea ecx, [ebx + 0x44]
mov dword [ebx + 0xd0], vtable.t_fileStream.0
mov dword [ecx], vtable.t_managedShareMemory.0
call fcn.00449080
lea ecx, [ebx + 0x28]
call fcn.004134c0
mov ecx, ebx
call fcn.004134c0
push 0xe4
push ebx
call fcn.004d72b2
add esp, 8
add esi, 4
cmp esi, dword [edi + 4]
jne 0x507240
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x50729f
push eax
call ebx
mov dword [edi + 0x28], 0
mov byte [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x5072bb
push eax
call ebx
mov dword [edi + 0x3c], 0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 0x68]
mov dword [edi + 0x64], vtable.t_thread.0
mov byte [edi + 0x70], 1
test eax, eax
je 0x5072ef
push 0
push eax
call esi
push dword [edi + 0x68]
call ebx
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov eax, dword [edi + 0x58]
mov dword [edi + 0x54], vtable.t_thread.0
mov byte [edi + 0x60], 1
test eax, eax
je 0x507319
push 0
push eax
call esi
push dword [edi + 0x58]
call ebx
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x507331
push eax
call ebx
mov dword [edi + 0x3c], 0
mov byte [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x50734d
push eax
call ebx
mov dword [edi + 0x28], 0
lea ecx, [edi + 0xc]
mov byte [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004134c0
mov ecx, edi
call fcn.00436640
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 0x50bee0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535928
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], cx
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], ecx
push 1
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.00512d60
test al, al
je 0x50c07c
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x50bf61
mov dword [ebp - 0x34], 0x59af80
xor esi, esi
jmp 0x50bf95
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50bf95
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x50bf8b
mov dword [ebp - 0x34], eax
xor esi, esi
jmp 0x50bf95
mov dword [ebp - 0x34], 0x59b430
or esi, 0xffffffff
push esi
mov dword [ebp - 0x48], esi
call fcn.004d72c0
mov edi, eax
add esp, 4
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x50c07c
push esi
push 0
push edi
call fcn.004d9fe0
add esp, 0xc
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
push eax
push esi
push edi
call fcn.00512a20
test al, al
je 0x50c073
cmp dword [ebp - 0x38], esi
jne 0x50c073
cmp esi, 0xa
jb 0x50c073
mov eax, 0x710
sub esi, 0xa
xor word [edi], ax
xor ecx, ecx
xor word [edi + 2], ax
xor word [edi + 4], ax
xor word [edi + 6], ax
xor word [edi + 8], ax
movq xmm0, qword [edi]
movq qword [ebx + 0xe], xmm0
mov ax, word [edi + 8]
add edi, 0xa
mov word [ebx + 0x16], ax
xor ebx, ebx
test esi, esi
jle 0x50c057
lea eax, [ecx + ebx]
mov dword [ebp - 0x44], eax
add eax, edi
mov dword [ebp - 0x38], eax
movzx edx, word [eax]
cmp edx, 0xa
je 0x50c04d
cmp edx, 0xd
je 0x50c04d
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x44]
mov ax, word [eax + 0x12]
xor ax, dx
mov word [ecx], ax
xor ecx, ecx
add ecx, 2
lea eax, [ecx + ebx]
cmp eax, esi
jl 0x50c020
push dword [ebp - 0x48]
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
push esi
call fcn.00506ce0
push esi
mov bl, al
call fcn.004d71b8
add esp, 4
jmp 0x50c07e
push edi
call fcn.004d71b8
add esp, 4
xor bl, bl
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 5
call fcn.00512c50
lea ecx, [ebp - 0x30]
call fcn.004134c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 4
Function at 0x50c4f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5359f5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x50c52c
xor al, al
jmp 0x50c63c
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], eax
push 0x13880
mov dword [ebp - 4], eax
call fcn.004d72c0
mov esi, eax
add esp, 4
test esi, esi
je 0x50c621
push 0x13880
push 0
push esi
call fcn.004d9fe0
add esp, 0xc
lea ecx, [ebp - 0x4c]
push edi
call fcn.00514350
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x50c5a1
xor bl, bl
jmp 0x50c5a9
shr ebx, 4
not bl
and bl, 1
lea ecx, [ebp - 0x4c]
call fcn.004134c0
test bl, bl
jne 0x50c5c4
mov dword [esi], 0x1343ab2
mov dword [esi + 4], 0
jmp 0x50c5fd
push 1
push edi
lea ecx, [ebp - 0x34]
call fcn.00512d60
test al, al
je 0x50c621
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 0x13880
push esi
lea ecx, [ebp - 0x34]
call fcn.00512a20
test al, al
je 0x50c618
lea ecx, [ebp - 0x34]
call fcn.00512730
cmp dword [ebp - 0x50], eax
jne 0x50c618
mov ecx, dword [ebp - 0x54]
push 0x13880
push esi
call fcn.00506ce0
push esi
mov bl, al
call fcn.004d71b8
add esp, 4
jmp 0x50c623
push esi
call fcn.004d71b8
add esp, 4
xor bl, bl
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 4
call fcn.00512c50
lea ecx, [ebp - 0x30]
call fcn.004134c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 4
Function at 0x50fec0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5360a8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], cx
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], ecx
push 1
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.00512d60
test al, al
je 0x50ff36
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x50ff6f
mov dword [ebp - 0x34], 0x59af80
xor bl, bl
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 5
call fcn.00512c50
lea ecx, [ebp - 0x30]
call fcn.004134c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50ff9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
and eax, 0x59b430
mov dword [ebp - 0x34], eax
jmp 0x50ff36
test esi, esi
jle 0x50ff36
push esi
call fcn.004d72c0
mov edi, eax
add esp, 4
test edi, edi
je 0x50ff36
push esi
push 0
push edi
call fcn.004d9fe0
add esp, 0xc
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
push eax
push esi
push edi
call fcn.00512a20
test al, al
jne 0x50ffe2
push edi
call fcn.004d71b8
add esp, 4
jmp 0x50ff36
lea ecx, [ebp - 0x34]
call fcn.00512c50
push esi
push edi
mov ecx, ebx
call fcn.00506ce0
push edi
mov bl, al
call fcn.004d71b8
add esp, 4
jmp 0x50ff38