joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425890
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 0x971]
mov byte [esi + 0x971], al
movzx ecx, byte [edi + 0x970]
mov byte [esi + 0x970], cl
movzx edx, byte [edi + 0x972]
mov byte [esi + 0x972], dl
movzx eax, byte [edi + 6]
mov byte [esi + 6], al
movzx ecx, byte [edi + 8]
mov byte [esi + 8], cl
movzx edx, byte [edi + 0x973]
mov byte [esi + 0x973], dl
movzx eax, byte [edi + 0x14]
mov byte [esi + 0x14], al
movzx ecx, byte [edi + 0x15]
mov byte [esi + 0x15], cl
movzx edx, byte [edi + 5]
mov byte [esi + 5], dl
movzx eax, byte [edi + 0x975]
mov byte [esi + 0x975], al
movzx ecx, byte [edi + 0x974]
mov byte [esi + 0x974], cl
movzx edx, byte [edi + 4]
mov byte [esi + 4], dl
movzx eax, byte [edi + 0x28]
mov byte [esi + 0x28], al
mov ebx, esi
fld qword [edi + 0x958]
mov dword [ebp + 8], 0
fstp qword [esi + 0x958]
sub ebx, edi
fld qword [edi + 0x960]
fstp qword [esi + 0x960]
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x24], ecx
mov edx, dword [edi + 0x96c]
mov dword [esi + 0x96c], edx
mov eax, dword [edi + 0x968]
mov dword [esi + 0x968], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0x82e]
lea eax, [edi + 0x82a]
lea esp, [esp]
movzx edx, word [eax]
test dx, dx
je 0x4259f3
mov word [ebx + eax], dx
movzx edx, word [eax + 2]
test dx, dx
je 0x4259f3
mov word [ecx - 2], dx
movzx edx, word [eax + 4]
test dx, dx
je 0x4259f3
mov word [ecx], dx
movzx edx, word [eax + 6]
test dx, dx
je 0x4259f3
mov word [ecx + 2], dx
movzx edx, word [eax + 8]
test dx, dx
je 0x4259f3
mov word [ecx + 4], dx
movzx edx, word [eax + 0xa]
test dx, dx
je 0x4259f3
mov word [ecx + 6], dx
mov edx, dword [ebp + 8]
add edx, 6
add eax, 0xc
add ecx, 0xc
mov dword [ebp + 8], edx
cmp edx, 0x96
jl 0x425990
push 0x400
lea ecx, [edi + 0x2a]
push ecx
lea edx, [esi + 0x2a]
push 0x400
push edx
call fcn.004f0e71
push 0x400
lea eax, [edi + 0x42a]
push eax
lea ecx, [esi + 0x42a]
push 0x400
push ecx
call fcn.004f0e71
push 0x400
add edi, 0x9f2
push edi
push 0x400
add esi, 0x9f2
push esi
call fcn.004f0e71
add esp, 0x30
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42e010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x594ad0]
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0xda
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0x53d050
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004f0194
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42e310
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
test ecx, ecx
je 0x42e322
lea esi, [ecx - 0x20]
jmp 0x42e324
xor esi, esi
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp + 8]
je 0x42e35e
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
shr ecx, 1
push ecx
mov edi, eax
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp dword [ebp + 8], eax
jge 0x42e3a4
xor edi, edi
jmp 0x42e373
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
push eax
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, eax
test edi, edi
jne 0x42e399
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x20
je 0x42e385
lea eax, [esi - 0x20]
jmp 0x42e387
xor eax, eax
mov edx, dword [eax + 4]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x42e3dd
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call edi
cmp eax, dword [ebp + 0x1c]
jle 0x42e3dd
mov ecx, dword [ebp + 0xc]
push ecx
call edi
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
lea ecx, [esi + 0x20]
push ebx
call fcn.0042e070
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x42e660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5217c7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ecx, ecx
lea eax, [esi + 8]
mov dword [esi + 4], ecx
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], 1
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [ebp - 4], 4
mov dword [esi], vtable.CEnterKeyDlg.0
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x24]
mov ecx, 0x58c214
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x28]
mov ecx, 0x58c214
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 8
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x2c]
mov ecx, 0x58c214
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xa
xor eax, eax
mov dword [esi + 0x20], 3
mov word [esi + 0x30], ax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42eb40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
test ecx, ecx
je 0x42eb54
lea esi, [ecx - 0x20]
mov dword [ebp - 4], esi
jmp 0x42eb5e
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
cmp dword [ebp + 0x14], 0
mov ecx, dword [esi + 4]
mov dword [ebp - 8], 1
je 0x42ec23
mov eax, dword [ebp + 8]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebx]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
mov dword [ebp - 0xc], 0xffffffff
jge 0x42ebae
push esi
mov ecx, ebx
call fcn.004018b0
mov eax, dword [ebx]
test esi, esi
js 0x42ec19
cmp esi, dword [eax - 8]
jg 0x42ec19
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + esi*2], dx
test eax, eax
je 0x42ec07
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov dword [ebp - 0xc], eax
test edx, edx
jne 0x42ebe1
xor eax, eax
jmp 0x42ebf7
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ebe6
sub eax, edi
sar eax, 1
js 0x42ec19
cmp eax, dword [edx - 8]
jg 0x42ec19
mov dword [edx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
pop edi
cmp dword [ebp - 0xc], esi
jge 0x42ec6f
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0
jmp 0x42ec3b
push 0x80070057
call fcn.004013f0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x42ec9d
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x20
je 0x42ec4d
lea eax, [esi - 0x20]
jmp 0x42ec4f
xor eax, eax
mov edx, dword [ebp + 8]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ebp + 0x18], 0
je 0x42ec9d
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
cmp edx, dword [ebp + 0x1c]
jle 0x42ec9d
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push edx
add ecx, 0x20
push eax
call fcn.0042e070
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4300f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521b41
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 4], edi
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.004f0550
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx], 0x34
mov dword [esi + 0x28], 0x100
mov ecx, dword [0x594ad0]
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], 0x42ffe0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x437050
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, edx
push edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437088
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00436eb0
mov ecx, esi
call fcn.00436f60
pop edi
lea eax, [esi + 0x68]
pop esi
pop ebp
ret 4
Function at 0x461a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
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.004dbe65
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x461afa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x461ade
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
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 - 0x70]
call fcn.004594c0
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 0x461bc6
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 - 0x70]
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
call eax
cmp eax, 0xffffffff
je 0x461b8e
test eax, eax
je 0x461bb9
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x461bb5
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x461bb9
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x461b87
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x461bb9
test eax, eax
jg 0x461b50
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x461b16
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00459600
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x461be9
push eax
call fcn.004f1ca3
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 0x461c16
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 ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a033
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
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.004dbe65
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x461d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x461d11
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
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.004601b0
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 0x461e0c
xor esi, esi
mov dword [ebp - 0x14], esi
lea ebx, [ebx]
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]
call eax
cmp eax, 0xffffffff
je 0x461dd4
test eax, eax
je 0x461dff
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x461dfb
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x461dff
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x461dcd
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x461dff
test eax, eax
jg 0x461d90
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x461d50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.00460fd0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x461e32
push eax
call fcn.004f1ca3
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 0x461e5f
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 ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a083
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
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.004dbe65
add esp, 4
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x461f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x461f63
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x90]
call fcn.0045da80
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, 0x1fa0
sub eax, esi
push eax
lea ecx, [esi + ebx]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
add esi, eax
mov dword [ebp - 0x28], esi
add dword [ebp - 0x24], eax
test eax, eax
je 0x46204b
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x461fd6
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
sub edi, esi
add ebx, esi
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push ebx
lea ecx, [ebp - 0x90]
mov edx, dword [ebp - 0x90]
mov eax, dword [edx]
call eax
cmp eax, 0xffffffff
je 0x462015
test eax, eax
je 0x46203b
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, dword [ebp - 0x28]
jb 0x462037
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x46203b
cmp edi, 0x1fa0
ja 0x46200e
push edi
push ebx
push 0x1fa0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x46203b
test eax, eax
jg 0x461fd3
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x461fa1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.0045c6c0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x46206e
push ebx
call fcn.004f1ca3
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 edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46209b
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 ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
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.004dbe65
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
cmp edi, esi
jne 0x4621aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x46218e
and eax, 0xffff
or eax, 0x80070000
push str.hFile
push eax
lea ecx, [ebp - 0x3c]
call fcn.00412090
push 0x569810
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004f08d9
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.0045a970
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 0x462276
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 - 0x60]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
call eax
cmp eax, 0xffffffff
je 0x46223e
test eax, eax
je 0x462269
add esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
jb 0x462265
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x462269
lea eax, [edi + edi]
cmp eax, 0xfd0
ja 0x462237
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0xfd0
mov edx, dword [ebp - 0x18]
push edx
call fcn.004f0e71
add esp, 0x10
mov esi, edi
mov dword [ebp - 0x14], esi
jmp 0x462269
test eax, eax
jg 0x462200
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x2c], 0
jne 0x4621c6
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004597a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46229d
push eax
call fcn.004f1ca3
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 0x4622ca
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 ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret