joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6810
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
cmp eax, 0x3e9
jg 0x4a692a
je 0x4a6913
cmp eax, 0x69
ja case.0x4a6934.1006
movzx eax, byte [eax + 0x4a69d8]
jmp dword [eax*4 + 0x4a69b8]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
or ecx, 0xffffffff
cmp dword [esp + 0xc], 0xffffffff
cmovb ecx, dword [esp + 0xc]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x1c]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
mov ecx, 1
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x14]
shr ecx, 0xa
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
mov ecx, dword [0x8a7fd0]
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
add eax, 0xfffffc16
cmp eax, 7
ja case.0x4a6934.1006
jmp dword [eax*4 + 0x4a6a44]
mov ecx, dword [0x8a7fd4]
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
mov ecx, dword [0x8a7bf8]
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
mov eax, dword [0x8a7bf8]
lea ecx, [eax + eax*2]
shl ecx, 3
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
mov ecx, dword [0x8a7bd0]
sub ecx, dword [0x8a7bd8]
sar ecx, 2
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret
xor ecx, ecx
mov eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0059bb21
add esp, 0x24
ret

Function at 0x4a9200
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
cmp dword [0x8a7e08], 0
jne 0x4a9276
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x1c]
lea eax, [edx - 1]
test edx, eax
jne 0x4a927f
mov ecx, dword [esp + 4]
lea eax, [ecx - 1]
test ecx, eax
jne 0x4a927f
mov dword [0x8a7e10], edx
mov dword [0x8a7e0c], ecx
mov dword [0x8a7e14], 0x40000
mov dword [0x8a7e18], 0x200000
mov dword [0x8a7e1c], 5
mov dword [0x8a7fdc], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, 0x55555550
and eax, 0xfffffff8
or eax, 8
mov dword [0x8a7e08], eax
mov eax, 1
add esp, 0x24
ret
call fcn.005a479c
int3
Function at 0x4ded50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
mov ebp, 0x108
mov eax, edi
xor ebx, ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, ebp
jbe 0x4ded9d
lea eax, [esi + esi]
mov ebp, esi
push eax
call fcn.004a67c0
add esp, 4
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
xor ecx, ecx
test esi, esi
push 0
setne cl
push ecx
call fcn.004edd70
add esp, 8
cmp esi, 2
jb 0x4deddc
cmp esi, ebp
jae 0x4deddc
cmp word [edi + 2], 0x3a
jne 0x4deddc
movzx eax, word [edi]
mov edx, eax
add eax, 0xffffff9f
cmp ax, 0x19
lea ecx, [edx - 0x20]
cmova ecx, edx
xor ebx, ebx
lea eax, [ecx - 0x41]
cmp eax, 0x19
cmovbe ebx, eax
lea eax, [esp + 0x10]
cmp edi, eax
je 0x4deded
push edi
call fcn.004a6790
add esp, 4
mov ecx, dword [esp + 0x220]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059bb21
add esp, 0x214
ret

Function at 0x4dee10
Capabilities:
Set current directory

Disassembly:
sub esp, 0xc
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
test eax, eax
js 0x4dee6c
cmp eax, 0x19
jg 0x4dee6c
push esi
push edi
add eax, 0x41
mov dword [esp + 0xa], 0x3a
push 1
mov word [esp + 0xc], ax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
push edi
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push esi
call fcn.004edd70
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0059bb21
add esp, 0xc
ret

Function at 0x4deed0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
push esi
call fcn.0047d480
call fcn.004ded50
mov ebp, dword [esp + 0x20]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebp, ebp
js 0x4def3f
cmp ebp, 0x19
jg 0x4def3f
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp + 0x41]
push edi
push 1
mov word [esp + 0x18], cx
mov dword [esp + 0x1a], 0x3a
call ebx
mov edi, eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
push edi
sbb esi, esi
neg esi
call ebx
push 0
push esi
call fcn.004edd70
mov ebx, dword [esp + 0x18]
add esp, 8
pop edi
call fcn.004ded50
cmp ebp, eax
jne 0x4def4c
xor esi, esi
jmp 0x4def58
push ebx
call fcn.004dee10
add esp, 4
or esi, 0xffffffff
push esi
call fcn.004edd50
add esp, 4
call fcn.0047d480
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059bb21
add esp, 0x10
ret
Function at 0x4df080
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
mov dword [esp + 0xc], ebp
mov byte [ebx], 0
push esi
push edi
test ebp, ebp
jle 0x4df0c9
call fcn.0047d480
call fcn.004ded50
push 0
mov esi, eax
call fcn.004edd50
add esp, 4
call fcn.0047d480
lea eax, [esi + 1]
mov dword [esp + 0x14], eax
cmp ebp, eax
je 0x4df0c9
lea eax, [ebp - 1]
push eax
call fcn.004deed0
add esp, 4
call fcn.0047d480
mov esi, dword [esp + 0x1c]
add esi, esi
push esi
call fcn.004a67c0
add esp, 4
mov edi, eax
xor eax, eax
push eax
push edi
push dword [esp + 0x24]
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
xor eax, eax
mov word [esi + edi - 2], ax
mov eax, dword [esp + 0x24]
dec eax
push eax
push ebx
push edi
call fcn.00493bf0
push edi
call fcn.004a6790
add esp, 0x18
call fcn.0047d480
call fcn.004edd40
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
cmp ebp, eax
je 0x4df143
lea ecx, [eax - 1]
push ecx
call fcn.004deed0
push esi
call fcn.004edd50
add esp, 8
mov eax, dword [esp + 0x1c]
mov byte [ebx + eax - 1], 0
test esi, esi
jne 0x4df1cd
mov cl, byte [ebx]
test cl, cl
je 0x4df1cd
mov esi, ebx
lea edx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4df160
sub esi, edx
mov edi, ebx
cmp byte [ebx + 1], 0x3a
jne 0x4df17a
mov cl, byte [ebx + 2]
lea edi, [ebx + 2]
sub esi, 2
movzx eax, cl
push eax
push 0x76942c
call fcn.0059d3e0
add esp, 8
test eax, eax
je 0x4df191
inc edi
dec esi
test esi, esi
je 0x4df1c0
movzx eax, byte [edi + esi - 1]
push eax
push 0x76942c
call fcn.0059d3e0
add esp, 8
test eax, eax
je 0x4df1b1
add esi, 0xffffffff
je 0x4df1c0
cmp ebx, edi
je 0x4df1c0
push esi
push edi
push ebx
call fcn.0059ce60
add esp, 0xc
mov eax, dword [esp + 0x18]
pop edi
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4df1e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
call fcn.0047d480
lea edi, [esp + 0x10]
mov ebp, 0x108
mov eax, edi
xor ebx, ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
cmp esi, ebp
jbe 0x4df232
lea eax, [esi + esi]
mov ebp, esi
push eax
call fcn.004a67c0
add esp, 4
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
xor ecx, ecx
test esi, esi
push 0
setne cl
push ecx
call fcn.004edd70
add esp, 8
cmp esi, 2
jb 0x4df271
cmp esi, ebp
jae 0x4df271
cmp word [edi + 2], 0x3a
jne 0x4df271
movzx eax, word [edi]
mov edx, eax
add eax, 0xffffff9f
cmp ax, 0x19
lea ecx, [edx - 0x20]
cmova ecx, edx
xor ebx, ebx
lea eax, [ecx - 0x41]
cmp eax, 0x19
cmovbe ebx, eax
lea eax, [esp + 0x10]
cmp edi, eax
je 0x4df282
push edi
call fcn.004a6790
add esp, 4
push 0
call fcn.004edd50
add esp, 4
call fcn.0047d480
mov ecx, dword [esp + 0x220]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059bb21
add esp, 0x214
ret
Function at 0x4df2b0
Capabilities:
Delete file

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.004e00f0
add esp, 4
mov edi, eax
call fcn.0047d480
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
push 0
sbb esi, esi
neg esi
push esi
call fcn.004edd70
add esp, 8
call fcn.0047d480
test edi, edi
je 0x4df2ef
push edi
call fcn.004a6790
add esp, 4
pop edi
mov eax, esi
pop esi
ret

Function at 0x4df730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
call fcn.0047d480
mov ebx, dword [esp + 0x14]
xor esi, esi
push dword [esp + 0x10]
mov dword [ebx], 0
call fcn.004e00f0
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4df76e
push eax
call fcn.0057eeb0
add esp, 4
mov dword [ebx], eax
mov esi, 1
push 0
push esi
call fcn.004edd70
add esp, 8
test edi, edi
je 0x4df786
push edi
call fcn.004a6790
add esp, 4
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4df7a0
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov byte [ebp], 0
call fcn.0047d480
mov edi, dword [esp + 0x18]
lea esi, [edi + edi]
push esi
call fcn.004a67c0
add esp, 4
mov ebx, eax
xor eax, eax
push ebx
push edi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
xor eax, eax
test edi, edi
push 0
setne al
push eax
mov dword [esp + 0x1c], eax
call fcn.004edd70
xor eax, eax
mov word [esi + ebx - 2], ax
mov esi, dword [esp + 0x20]
lea eax, [esi - 1]
push eax
push ebp
push ebx
call fcn.00493bf0
push ebx
call fcn.004a6790
add esp, 0x18
call fcn.0047d480
mov byte [esi + ebp - 1], 0
test edi, edi
je 0x4df857
cmp byte [ebp], 0
je 0x4df857
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4df820
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, esi
jae 0x4df857
lea esi, [ecx + ebp]
movzx ecx, byte [esi - 1]
push ecx
push 0x76942c
call fcn.0059d3e0
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x4df85b
pop edi
mov word [esi], 0x5c
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4dfb20
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x4dfb36
jmp dword [ecx*4 + 0x4dfbac]
xor eax, eax
jmp case.default.0x4dfb36
push 0xfffffffffffffff6
jmp 0x4dfb4b
push 0xfffffffffffffff5
jmp 0x4dfb4b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dfb91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4dfb91
push 0
push 0
call fcn.004edd70
add esp, 8
xorps xmm0, xmm0
movlpd qword [esp + 4], xmm0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
pop esi
add esp, 8
ret
push 0
push 1
call fcn.004edd70
mov edx, dword [esp + 0xc]
add esp, 8
xor eax, eax
or eax, esi
pop esi
add esp, 8
ret
Function at 0x4dfb3d
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x4dfb36
jmp dword [ecx*4 + 0x4dfbac]
xor eax, eax
jmp case.default.0x4dfb36
push 0xfffffffffffffff6
jmp 0x4dfb4b
push 0xfffffffffffffff5
jmp 0x4dfb4b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dfb91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4dfb91
push 0
push 0
call fcn.004edd70
add esp, 8
xorps xmm0, xmm0
movlpd qword [esp + 4], xmm0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
pop esi
add esp, 8
ret
push 0
push 1
call fcn.004edd70
mov edx, dword [esp + 0xc]
add esp, 8
xor eax, eax
or eax, esi
pop esi
add esp, 8
ret

Function at 0x4dfb41
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x4dfb36
jmp dword [ecx*4 + 0x4dfbac]
xor eax, eax
jmp case.default.0x4dfb36
push 0xfffffffffffffff6
jmp 0x4dfb4b
push 0xfffffffffffffff5
jmp 0x4dfb4b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dfb91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4dfb91
push 0
push 0
call fcn.004edd70
add esp, 8
xorps xmm0, xmm0
movlpd qword [esp + 4], xmm0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
pop esi
add esp, 8
ret
push 0
push 1
call fcn.004edd70
mov edx, dword [esp + 0xc]
add esp, 8
xor eax, eax
or eax, esi
pop esi
add esp, 8
ret

Function at 0x4dfb45
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x4dfb36
jmp dword [ecx*4 + 0x4dfbac]
xor eax, eax
jmp case.default.0x4dfb36
push 0xfffffffffffffff6
jmp 0x4dfb4b
push 0xfffffffffffffff5
jmp 0x4dfb4b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dfb91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4dfb91
push 0
push 0
call fcn.004edd70
add esp, 8
xorps xmm0, xmm0
movlpd qword [esp + 4], xmm0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
pop esi
add esp, 8
ret
push 0
push 1
call fcn.004edd70
mov edx, dword [esp + 0xc]
add esp, 8
xor eax, eax
or eax, esi
pop esi
add esp, 8
ret
Function at 0x4dfb49
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0
lea ecx, [eax + 1]
cmp ecx, 3
ja case.default.0x4dfb36
jmp dword [ecx*4 + 0x4dfbac]
xor eax, eax
jmp case.default.0x4dfb36
push 0xfffffffffffffff6
jmp 0x4dfb4b
push 0xfffffffffffffff5
jmp 0x4dfb4b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dfb91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4dfb91
push 0
push 0
call fcn.004edd70
add esp, 8
xorps xmm0, xmm0
movlpd qword [esp + 4], xmm0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
pop esi
add esp, 8
ret
push 0
push 1
call fcn.004edd70
mov edx, dword [esp + 0xc]
add esp, 8
xor eax, eax
or eax, esi
pop esi
add esp, 8
ret

Function at 0x4dfbc0
Capabilities:
Get disk information

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
js 0x4dfbf7
call fcn.0047d480
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, esi
shr eax, cl
and al, 1
movzx esi, al
neg esi
sbb esi, esi
neg esi
dec esi
call fcn.0047d480
push 0
call fcn.004edd50
add esp, 4
mov eax, esi
pop esi
ret
push 0
or esi, 0xffffffff
call fcn.004edd50
add esp, 4
mov eax, esi
pop esi
ret

Function at 0x4dfdb0
Capabilities:
Create directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.004e00f0
add esp, 4
mov edi, eax
call fcn.0047d480
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
push 0
sbb esi, esi
neg esi
push esi
call fcn.004edd70
add esp, 8
call fcn.0047d480
test edi, edi
je 0x4dfdf1
push edi
call fcn.004a6790
add esp, 4
pop edi
mov eax, esi
pop esi
ret

Function at 0x4e04e0
Capabilities:
Read file on windows

Disassembly:
call fcn.0047d480
mov ecx, dword [esp + 4]
lea eax, [ecx + 1]
cmp eax, 3
ja case.default.0x4e04f1
jmp dword [eax*4 + 0x4e055c]
xor ecx, ecx
jmp case.default.0x4e04f1
push 0xfffffffffffffff6
jmp 0x4e0506
push 0xfffffffffffffff5
jmp 0x4e0506
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, eax
push esi
push 0
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x18]
push eax
push dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov esi, eax
test esi, esi
push 0
setne cl
push ecx
call fcn.004edd70
add esp, 8
test esi, esi
je 0x4e054e
movzx esi, word [esp + 8]
call fcn.0047d480
mov ax, si
pop esi
ret
xor esi, esi
call fcn.0047d480
mov ax, si
pop esi
ret
Function at 0x4e04f8
Capabilities:
Read file on windows

Disassembly:
call fcn.0047d480
mov ecx, dword [esp + 4]
lea eax, [ecx + 1]
cmp eax, 3
ja case.default.0x4e04f1
jmp dword [eax*4 + 0x4e055c]
xor ecx, ecx
jmp case.default.0x4e04f1
push 0xfffffffffffffff6
jmp 0x4e0506
push 0xfffffffffffffff5
jmp 0x4e0506
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, eax
push esi
push 0
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x18]
push eax
push dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov esi, eax
test esi, esi
push 0
setne cl
push ecx
call fcn.004edd70
add esp, 8
test esi, esi
je 0x4e054e
movzx esi, word [esp + 8]
call fcn.0047d480
mov ax, si
pop esi
ret
xor esi, esi
call fcn.0047d480
mov ax, si
pop esi
ret

Function at 0x4e04fc
Capabilities:
Read file on windows

Disassembly:
call fcn.0047d480
mov ecx, dword [esp + 4]
lea eax, [ecx + 1]
cmp eax, 3
ja case.default.0x4e04f1
jmp dword [eax*4 + 0x4e055c]
xor ecx, ecx
jmp case.default.0x4e04f1
push 0xfffffffffffffff6
jmp 0x4e0506
push 0xfffffffffffffff5
jmp 0x4e0506
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, eax
push esi
push 0
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x18]
push eax
push dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov esi, eax
test esi, esi
push 0
setne cl
push ecx
call fcn.004edd70
add esp, 8
test esi, esi
je 0x4e054e
movzx esi, word [esp + 8]
call fcn.0047d480
mov ax, si
pop esi
ret
xor esi, esi
call fcn.0047d480
mov ax, si
pop esi
ret

Function at 0x4e0500
Capabilities:
Read file on windows

Disassembly:
call fcn.0047d480
mov ecx, dword [esp + 4]
lea eax, [ecx + 1]
cmp eax, 3
ja case.default.0x4e04f1
jmp dword [eax*4 + 0x4e055c]
xor ecx, ecx
jmp case.default.0x4e04f1
push 0xfffffffffffffff6
jmp 0x4e0506
push 0xfffffffffffffff5
jmp 0x4e0506
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, eax
push esi
push 0
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x18]
push eax
push dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov esi, eax
test esi, esi
push 0
setne cl
push ecx
call fcn.004edd70
add esp, 8
test esi, esi
je 0x4e054e
movzx esi, word [esp + 8]
call fcn.0047d480
mov ax, si
pop esi
ret
xor esi, esi
call fcn.0047d480
mov ax, si
pop esi
ret

Function at 0x4e0504
Capabilities:
Read file on windows

Disassembly:
call fcn.0047d480
mov ecx, dword [esp + 4]
lea eax, [ecx + 1]
cmp eax, 3
ja case.default.0x4e04f1
jmp dword [eax*4 + 0x4e055c]
xor ecx, ecx
jmp case.default.0x4e04f1
push 0xfffffffffffffff6
jmp 0x4e0506
push 0xfffffffffffffff5
jmp 0x4e0506
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, eax
push esi
push 0
lea eax, [esp + 0xc]
push eax
movzx eax, word [esp + 0x18]
push eax
push dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov esi, eax
test esi, esi
push 0
setne cl
push ecx
call fcn.004edd70
add esp, 8
test esi, esi
je 0x4e054e
movzx esi, word [esp + 8]
call fcn.0047d480
mov ax, si
pop esi
ret
xor esi, esi
call fcn.0047d480
mov ax, si
pop esi
ret
Function at 0x4e0570
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e05f1
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e05ba
jmp dword [edi*4 + 0x4e06ac]
xor esi, esi
jmp case.default.0x4e05ba
push 0xfffffffffffffff6
jmp 0x4e05cf
push 0xfffffffffffffff5
jmp 0x4e05cf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0683
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e05fa
jmp dword [edi*4 + 0x4e06bc]
xor eax, eax
jmp 0x4e0625
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0625
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0625
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0625
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0660
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0660
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4e05c1
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e05f1
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e05ba
jmp dword [edi*4 + 0x4e06ac]
xor esi, esi
jmp case.default.0x4e05ba
push 0xfffffffffffffff6
jmp 0x4e05cf
push 0xfffffffffffffff5
jmp 0x4e05cf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0683
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e05fa
jmp dword [edi*4 + 0x4e06bc]
xor eax, eax
jmp 0x4e0625
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0625
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0625
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0625
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0660
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0660
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret