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

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0xc]
lea edi, [esi + 0x14]
cmp eax, 0xffffffff
mov dword [esi + 8], ebx
mov dword [ecx], ebx
mov dword [esi + 0x10], ebx
mov dword [edi], ebx
mov dword [esi + 4], eax
mov dword [esi + 0x18], ebx
je 0x468a80
cmp eax, ebx
je 0x468a80
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push 1
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x468a52
cmp dword [edi], ebx
je 0x468a5f
mov ecx, dword [esi + 4]
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 4]
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x468a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x468a92
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ebp, [esi + 0x42c]
lea edi, [esi + 0x2c]
mov ecx, 0x100
xor eax, eax
push ebx
mov dword [esi], ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [ebp], ebx
push 0x80
push 3
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push ebx
lea edi, [esi + 0xc]
push 7
push SysReAllocStringLen
push eax
mov dword [esi + 8], ebx
mov dword [edi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x468b22
cmp eax, ebx
je 0x468b22
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
push ebx
push ebp
lea eax, [esi + 0x2c]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x468b2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x468cd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x468e27
xor edx, edx
cmp eax, edx
je 0x468e27
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
lea eax, [ebx + ecx]
cmp eax, ebx
jb 0x468d0a
cmp eax, ecx
jb 0x468d0a
xor ecx, ecx
jmp 0x468d0f
mov ecx, 1
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, edi
jl 0x468d29
jg 0x468e27
cmp eax, dword [esi + 8]
ja 0x468e27
cmp ecx, edx
jne 0x468d43
cmp eax, dword [esi + 0x42c]
ja 0x468d43
lea eax, [ebx + esi + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov ebp, dword [esi + 0x1c]
cmp ebp, edx
je 0x468d88
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x24]
lea edi, [edx + ecx]
cmp edi, ecx
jb 0x468d63
cmp edi, edx
jb 0x468d63
xor edx, edx
jmp 0x468d68
mov edx, 1
cmp ecx, ebx
ja 0x468d88
cmp dword [esp + 0x14], edx
jg 0x468d88
jl 0x468d78
cmp eax, edi
ja 0x468d88
mov eax, ebp
pop edi
sub eax, ecx
pop esi
add eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
call fcn.00468e40
test eax, eax
je 0x468e27
cmp ebx, 0x7fffffff
push 0
push 0
jbe 0x468dd6
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push bind
push ecx
call edi
cmp eax, 0xffffffff
je 0x468e17
mov eax, dword [esi + 4]
push 1
lea edx, [ebx - 0x7fffffff]
push 0
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x468e17
jmp 0x468de6
mov ecx, dword [esi + 4]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x468e17
mov ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
lea edi, [esi + 0x24]
push 0
push edi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x468e17
cmp dword [edi], ebp
jne 0x468e17
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x46ade0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x56c2b0
push ecx
call fcn.00423d0b
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x46ae57
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46aed2
mov edi, dword [esp + 0x220]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
push ebx
push edi
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x46aeb8
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
add eax, eax
push eax
call fcn.00520a0a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x46aeb8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push ebx
push edi
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8

Function at 0x46aee0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x56c2b0
push ecx
call fcn.00423d0b
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x46af58
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46af92
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x224]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8
Function at 0x46b230
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x46b26d
lea ecx, [esp + 8]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46b2ed
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x46b2d7
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.00520a0a
mov esi, eax
add esp, 4
test esi, esi
je 0x46b2d7
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
Function at 0x46d8b0
Capabilities:
Get file size

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x592818], ebp
call edi
mov ebx, dword [esp + 0x54]
mov dword [0x592820], eax
cmp ebx, 0xffffffff
je 0x46daa9
mov esi, dword [esp + 0x58]
cmp esi, 0xffffffff
je 0x46daa9
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ebp
push eax
push ebx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
push edi
push esi
call fcn.004bc080
add esp, 0xc
test eax, eax
je 0x46da7e
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebp
push ebp
push ebx
call esi
mov edx, dword [esp + 0x58]
push ebp
push ebp
push ebp
push edx
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
jne 0x46d941
cmp edi, ebp
je 0x46da29
cmp eax, ebp
mov ebx, 0x1000
jne 0x46d950
cmp edi, ebx
jae 0x46d950
mov ebx, edi
push ebx
call fcn.00520a0a
add esp, 4
mov esi, eax
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x24]
push eax
push ebx
push esi
push ecx
mov dword [esp + 0x34], ebp
call fcn.004ba790
add esp, 0x18
test eax, eax
je 0x46d9c6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x46d9a1
cmp eax, ebp
mov dword [esp + 0x14], 1
je 0x46da03
lea edx, [esp + 0x24]
push ebp
push edx
push eax
mov eax, dword [esp + 0x64]
push esi
push eax
mov dword [esp + 0x38], ebp
call fcn.004ba890
add esp, 0x14
test eax, eax
je 0x46d9dc
cmp dword [esp + 0x14], ebp
je 0x46d95b
jmp 0x46da03
mov dword [0x592818], 0xd
mov dword [0x59281c], 0x54c
jmp 0x46d9f0
mov dword [0x592818], 0xe
mov dword [0x59281c], 0x55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x592820], eax
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call fcn.00520a33
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebp
je 0x46da72
cmp dword [esp + 0x18], ebp
jne 0x46da72
mov ebx, dword [esp + 0x54]
mov al, byte [esp + 0x5c]
mov dword [esp + 0x20], 1
test al, 2
je 0x46da72
lea edx, [esp + 0x28]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
push 0x28
mov dword [esp + 0x2c], ebp
push edx
push ebx
rep stosd dword es:[edi], eax
call fcn.004ba310
add esp, 0xc
test eax, eax
je 0x46da72
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0x28
push eax
push ecx
call fcn.004ba350
add esp, 0xc
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x592818], 0x25
mov dword [0x59281c], 0x52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x592820], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [0x592818], 1
mov dword [0x59281c], 0x51d
call edi
pop edi
pop esi
mov dword [0x592820], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x46ec90
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 1
mov dword [esp + 0x30], 0
call fcn.0046f7a0
add esp, 0x2c
test eax, eax
je 0x46ed78
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x46ed04
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.0049a160
mov edx, dword [0x593050]
mov ecx, dword [0x593054]
add esp, 8
mov dword [0x592818], edx
mov edx, dword [0x593058]
mov dword [0x59281c], ecx
mov dword [0x592820], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x46ed3e
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.00480620
mov ecx, dword [0x5928c0]
mov edx, dword [0x5928c4]
add esp, 8
mov dword [0x592818], ecx
mov ecx, dword [0x5928c8]
mov dword [0x59281c], edx
mov dword [0x592820], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x46ed7e
call fcn.004b62d0
mov ecx, dword [0x593658]
mov edx, dword [0x59365c]
add esp, 8
mov dword [0x592818], ecx
mov ecx, dword [0x593660]
mov dword [0x59281c], edx
mov dword [0x592820], ecx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
pop ecx
ret

Function at 0x46f200
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x5928cc]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x46f222
mov eax, dword [0x59305c]
test eax, eax
jne 0x46f222
mov eax, dword [0x593664]
test eax, eax
je 0x46f226
test ebx, ebx
je 0x46f260
mov eax, dword [0x5751c0]
or esi, 0xffffffff
cmp eax, esi
jne 0x46f260
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x5751c0], eax
je 0x46f260
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46f260
mov eax, dword [0x5751c0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x5751c0], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.00481020
add esp, 0xc
test eax, eax
je 0x46f2a3
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.0049d700
add esp, 0x10
test eax, eax
je 0x46f2a3
push ebx
push esi
push edi
call fcn.004ac880
add esp, 0xc
test eax, eax
je 0x46f2a3
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4711e0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x30], 0
call fcn.0046f7a0
add esp, 0x2c
test eax, eax
je 0x4712c8
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x471254
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.004a1ca0
mov edx, dword [0x593050]
mov ecx, dword [0x593054]
add esp, 8
mov dword [0x592818], edx
mov edx, dword [0x593058]
mov dword [0x59281c], ecx
mov dword [0x592820], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x47128e
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004877f0
mov ecx, dword [0x5928c0]
mov edx, dword [0x5928c4]
add esp, 8
mov dword [0x592818], ecx
mov ecx, dword [0x5928c8]
mov dword [0x59281c], edx
mov dword [0x592820], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x4712ce
call fcn.004b2880
mov ecx, dword [0x593658]
mov edx, dword [0x59365c]
add esp, 8
mov dword [0x592818], ecx
mov ecx, dword [0x593660]
mov dword [0x59281c], edx
mov dword [0x592820], ecx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
pop ecx
ret
Function at 0x474210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
je 0x47437b
cmp esi, 0xffffffff
je 0x47437b
cmp dword [0x592828], ebp
je 0x47437b
mov ecx, dword [0x592830]
cmp ecx, ebp
je 0x47437b
mov eax, dword [0x59282c]
cmp eax, ebp
jge 0x474259
neg eax
cmp ecx, eax
ja 0x47437b
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.00520a0a
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x474370
mov ecx, dword [0x592830]
xor eax, eax
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
mov dword [esp + 0x14], ebp
rep stosb byte es:[edi], al
mov ebx, dword [0x592830]
mov edi, dword [0x59282c]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
xor ecx, ecx
mov dword [esp + 0x1c], eax
test edi, edi
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
push edi
push esi
call ebp
cmp eax, 0xffffffff
je 0x474362
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x4742f5
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.004ba790
add esp, 0x18
jmp 0x474307
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push esi
call ebp
test edi, edi
je 0x474362
mov ebx, dword [0x5927d4]
xor edx, edx
test ebx, ebx
jle 0x474362
mov ebp, dword [0x5927d0]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x474348
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x47435a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x474362
jmp 0x47432e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00520a33
add esp, 4
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x47e5b0
Capabilities:
Get file size

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.0047cb10
push eax
call fcn.004bded0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x47e615
mov dword [0x5928c0], 0xc
mov dword [0x5928c4], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x5928c8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.00520a0a
mov esi, eax
add esp, 4
test esi, esi
jne 0x47e679
mov dword [0x5928c0], 0x21
mov dword [0x5928c4], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x5928c8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x47e763
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x47e6fa
test eax, eax
jne 0x47e6fa
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call fcn.004ba890
add esp, 0x14
test eax, eax
je 0x47e779
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.004bb390
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x47e798
mov dword [0x5928c0], 0x11
mov dword [0x5928c4], 0x14cb
jmp 0x47e78d
mov dword [0x5928c0], 0xe
mov dword [0x5928c4], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
push esi
call fcn.00520a33
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x480620
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x5928c0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x5928c8], eax
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov esi, dword [esp + 0x394]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call fcn.0047cda0
add esp, 8
test eax, eax
jne 0x480683
mov ecx, dword [esp + 0x398]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
add esp, 0x388
ret
mov eax, dword [esp + 0x398]
test eax, eax
je 0x480694
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x481620
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x5928c0], ebp
call ebx
mov dword [0x5928c8], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x48175c
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00488510
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x4816c5
test edi, edi
jne 0x4816c5
test ebp, ebp
jne 0x4816c5
test ebx, ebx
jne 0x4816c5
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x4816c5
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x481751
cmp eax, 3
jne 0x481751
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.004bb340
add esp, 0xc
test eax, eax
je 0x48174d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x4816f5
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x481700
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x48170c
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x48172b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x48173d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x48174d
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x4817ed
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x4817ed
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x481808
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4817e6
mov dword [0x5928c0], 0xd
mov dword [0x5928c4], 0x29f7
call ebx
mov dword [0x5928c8], eax
jmp 0x48180a
mov edi, 1
jmp 0x48180a
mov dword [0x5928c0], 1
mov dword [0x5928c4], 0x29ea
call ebx
mov dword [0x5928c8], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x48166e
mov dword [0x5928c0], 0xf
mov dword [0x5928c4], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x5928c8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret