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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6573b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.005fb5ce
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x4efd93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4efd77
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0060fb01
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x90]
call fcn.004ee550
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x4efe6d
xor esi, esi
mov dword [ebp - 0x14], esi
lea esp, [esp]
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x90]
mov edx, dword [ebp - 0x90]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x4efe35
test eax, eax
je 0x4efe60
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x4efe5c
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x4efe60
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x4efe2e
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0060fbd3
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x4efe60
test eax, eax
jg 0x4efdf0
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x4efdb2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.004ef6c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4efe93
push eax
call fcn.00611a0b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4efec0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f22c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
lea eax, [ebp - 8]
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x334]
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
pop esi
test eax, eax
je 0x4f2347
mov ecx, dword [0x716738]
push 0x80
lea eax, [ebp - 0x118]
push eax
push 0x258
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push 0
push 0
lea edx, [ebp - 0x118]
push edx
push 0x66f294
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4f40e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6577b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bea0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
push 0x6742bc
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00614a04
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x4f4167
push 0xa1
mov ecx, esi
call fcn.004f2120
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004014a0
jmp 0x4f430e
mov dword [ebp + 8], 0xa
push 0x1450
call fcn.005fb5ce
add esp, 4
mov ebx, eax
mov dword [ebp - 0x20], edi
add esi, 4
mov ecx, esi
call fcn.004676a0
cmp edi, eax
jge 0x4f42d2
push 0x1450
push 0
push ebx
call fcn.006100a0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0xc60]
push ecx
push 0
push edi
mov ecx, esi
call fcn.004a1310
push 0x104
lea edx, [ebp - 0x850]
push edx
push 1
push edi
mov ecx, esi
call fcn.004a1310
push 0x104
lea eax, [ebp - 0x440]
push eax
push 2
push edi
mov ecx, esi
call fcn.004a1310
push 0x104
lea ecx, [ebp - 0xa58]
push ecx
push 3
push edi
mov ecx, esi
call fcn.004a1310
push 0x104
lea edx, [ebp - 0x648]
push edx
push 4
push edi
mov ecx, esi
call fcn.004a1310
push 0x104
lea eax, [ebp - 0x238]
push eax
push 5
push edi
mov ecx, esi
call fcn.004a1310
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0xa58]
push ecx
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0xc60]
push ecx
push str.__s____s____s____s____s____s__s
push 0xa28
push ebx
call fcn.0061235c
push 0xa28
call fcn.005fb5ce
add esp, 0x2c
mov esi, eax
push 0xa28
push esi
push ebx
lea ecx, [ebp - 0x30]
call fcn.005be750
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4f4287
sub eax, ecx
mov edx, dword [ebp - 0x14]
push edx
push 1
push eax
push esi
call fcn.006161f6
add esp, 0x10
test eax, eax
jne 0x4f42c9
push ebx
call fcn.0060faf6
push esi
call fcn.0060faf6
mov eax, dword [ebp - 0x14]
push eax
call fcn.0061466b
add esp, 0xc
push 0xcc
mov ecx, dword [ebp - 0x1c]
jmp 0x4f4151
inc edi
mov esi, dword [ebp - 0x1c]
jmp 0x4f417d
push ebx
call fcn.0060faf6
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0061466b
add esp, 8
mov dword [ebp - 4], 2
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f430e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.005be7d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f9510
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x4f9559
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x4f96a9
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.006100a0
push pe_nt_image_headers32
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.006100a0
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4f95d4
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x4f95db
cmp eax, 4
jne 0x4f95d4
cmp dword [ebp - 0x14c], 0x5a
jae 0x4f95db
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x4f9698
push 0x10
call fcn.00611c8b
mov esi, eax
add esp, 4
test esi, esi
je 0x4f9698
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4f9640
add ecx, 0xfffffd94
jmp 0x4f9642
xor ecx, ecx
push esi
lea edx, [ebp - 0x40]
push edx
call fcn.004cccb0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005fb5ce
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4f9687
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x4f9576
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00594900
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4fab10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov edx, ecx
mov dword [ebp - 0x10], edx
cmp eax, 0xffff
jne 0x4facb4
cmp dword [ebp + 0x10], 0
jne 0x4facb4
push ebx
push esi
mov ebx, 0x30
push edi
mov eax, dword [edx + 0x24]
lea ecx, [eax - 1]
test ecx, ecx
js 0x4facb1
mov edx, dword [edx + 0x20]
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ecx, eax
jge 0x4facb1
lea esi, [eax - 1]
cmp ecx, esi
je case.0x4faba4.0
sub eax, ecx
add eax, eax
add eax, eax
lea ecx, [eax - 4]
push ecx
lea esi, [edx + 4]
push esi
push eax
push edx
call fcn.0060fc48
add esp, 0x10
cmp eax, 0x50
ja case.0x4faba4.1
movzx eax, byte [eax + 0x4face4]
jmp dword [eax*4 + 0x4facd4]
mov eax, dword [ebp - 0x10]
dec dword [eax + 0x24]
test edi, edi
je 0x4facb1
mov dword [ebp + 0xc], edi
xor esi, esi
mov dword [ebp - 4], esi
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x4fac84
push ebx
lea ecx, [ebp - 0x40]
push 0
push ecx
call fcn.006100a0
push pe_nt_image_headers32
lea edx, [ebp - 0x150]
push 0
push edx
mov dword [ebp - 0x40], ebx
call fcn.006100a0
add esp, 0x18
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4fac29
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x4fac30
cmp eax, 4
jne 0x4fac29
cmp dword [ebp - 0x14c], 0x5a
jae 0x4fac30
mov dword [ebp - 0x40], 0x2c
lea ecx, [ebp - 0x40]
push ecx
push 1
push esi
push edi
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4fac74
mov dword [ebp - 0x3c], 0x11
mov edx, dword [eax + 4]
mov dword [ebp - 0x38], edx
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x40]
push eax
push 1
push esi
push edi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push edi
inc esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jl 0x4fabd0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
jmp 0x4fab56
push 0x8007000e
call fcn.004011d0
push 0x80070057
call fcn.004011d0
push 0x80004005
call fcn.004011d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov eax, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4fc100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.005fb5ce
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x4fc190
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4fc174
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0060fb01
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x60]
call fcn.004f8eb0
mov byte [ebp - 4], 2
lea esp, [esp]
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x4fc25d
xor esi, esi
mov dword [ebp - 0x14], esi
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x4fc225
test eax, eax
je 0x4fc250
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x4fc24c
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x4fc250
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x4fc21e
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0060fbd3
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x4fc250
test eax, eax
jg 0x4fc1e6
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x4fc1b0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00427b00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4fc284
push eax
call fcn.00611a0b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fc2b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fc330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658548
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.005fb5ce
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x4fc3c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4fc3a4
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0060fb01
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x6c]
call fcn.004f8ff0
mov byte [ebp - 4], 2
lea esp, [esp]
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x4fc48d
xor esi, esi
mov dword [ebp - 0x14], esi
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x6c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x4fc455
test eax, eax
je 0x4fc480
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x4fc47c
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x4fc480
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x4fc44e
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0060fbd3
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x4fc480
test eax, eax
jg 0x4fc416
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x4fc3e0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.004f8260
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4fc4b4
push eax
call fcn.00611a0b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fc4e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fc560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x1fa0
call fcn.005fb5ce
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x4fc5f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4fc5d4
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040de50
push 0x6ba4dc
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0060fb01
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x64]
call fcn.004f9180
mov byte [ebp - 4], 2
lea esp, [esp]
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0xfd0
sub eax, esi
add eax, eax
push eax
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + esi*2]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov ebx, eax
shr ebx, 1
add ebx, esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x4fc6bd
xor esi, esi
mov dword [ebp - 0x14], esi
mov edi, ebx
sub edi, esi
mov eax, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xffffffff
je 0x4fc685
test eax, eax
je 0x4fc6b0
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x4fc6ac
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x4fc6b0
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x4fc67e
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0060fbd3
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x4fc6b0
test eax, eax
jg 0x4fc646
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x4fc610
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.004f83c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4fc6e4
push eax
call fcn.00611a0b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4fc711
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ff490
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65b141
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 4], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], edi
mov dword [ebp - 4], 1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 3
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov byte [ebp - 4], 4
push 0x34
lea ebx, [esi + 0x24]
push edi
push ebx
call fcn.006100a0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx], 0x34
mov dword [esi + 0x28], 0x100
mov ecx, dword [0x716738]
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x48], 0x4ff3b0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc