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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x406990
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589300
mov eax, dword fs:[0]
push eax
mov eax, 0x1464
call fcn.0055dc40
push ebx
push esi
push edi
mov eax, dword [0x5f3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1470], ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x146c], eax
mov esi, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x1410], ax
mov byte [ebp - 0x410], al
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
mov dword [ebp - 0x1460], ecx
mov dword [ebp - 0x145c], eax
call fcn.004038c0
xor ecx, ecx
mov dword [ebp - 0x1468], 3
add esp, 4
mov edi, eax
cmp byte [esi + 8], cl
mov eax, 8
cmovne ecx, eax
mov dword [ebp - 0x1464], ecx
mov ecx, 1
lock xadd dword [0x5fe4b8], ecx
inc ecx
mov dword [ebp - 0x1458], ecx
mov dword [ebp - 0x1454], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1450], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x146c]
mov dword [ebp - 0x1418], eax
mov eax, dword [ebp - 0x1470]
mov dword [ebp - 0x1414], eax
mov eax, dword [0x5fe458]
mov dword [ebp - 0x1444], str.C:UsersMorenaDesktopPdfShield_srcPdfShield_srcpackagesMicrosoft.Windows.ImplementationLibrary.1.0.200902.2includewil_resource.h
mov dword [ebp - 0x1440], ebx
mov dword [ebp - 0x143c], edi
mov dword [ebp - 0x144c], 0
mov dword [ebp - 0x1448], 0
mov dword [ebp - 0x1438], 0
movq qword [ebp - 0x1428], xmm0
mov dword [ebp - 0x1420], 0
movq qword [ebp - 0x1434], xmm0
mov dword [ebp - 0x142c], 0
test eax, eax
je 0x406ad2
call eax
mov dword [ebp - 0x141c], eax
jmp 0x406adc
mov dword [ebp - 0x141c], 0
mov eax, dword [0x5fe434]
test eax, eax
je 0x406afa
push 0x400
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x1468]
push ecx
call eax
mov eax, dword [0x5fe42c]
test eax, eax
je 0x406b0c
lea ecx, [ebp - 0x1468]
push ecx
call eax
mov eax, dword [0x5fe444]
test eax, eax
je 0x406b1e
lea ecx, [ebp - 0x1468]
push ecx
call eax
cmp dword [ebp - 0x1460], 0
jl 0x406b41
mov ecx, 0x8000ffff
mov dword [ebp - 0x1460], 0x8000ffff
call fcn.00403aa0
mov dword [ebp - 0x145c], eax
cmp byte [0x5fe410], 0
jne 0x406b8b
mov eax, dword [0x5fe408]
test eax, eax
je 0x406b5a
call eax
movzx eax, al
jmp 0x406b66
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
test eax, eax
jne 0x406b8b
mov eax, dword [0x5fe414]
test eax, eax
je 0x406be3
cmp byte [0x5fe420], 0
jne 0x406be3
push 0
push 0
lea ecx, [ebp - 0x1468]
push ecx
call eax
jmp 0x406be3
mov eax, dword [0x5fe414]
test eax, eax
je 0x406bb2
cmp byte [0x5fe420], 0
jne 0x406bb2
push 0x800
lea ecx, [ebp - 0x1410]
push ecx
lea ecx, [ebp - 0x1468]
push ecx
call eax
cmp word [ebp - 0x1410], 0
jne 0x406bd6
lea eax, [ebp - 0x1468]
mov edx, 0x800
push eax
lea ecx, [ebp - 0x1410]
call fcn.004034f0
add esp, 4
lea eax, [ebp - 0x1410]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x5fe418], 0
je 0x406bf7
mov eax, dword [0x5fe43c]
test eax, eax
je 0x406bf7
call eax
lea ecx, [ebp - 0x1468]
mov dword [ebp - 4], 0xffffffff
call fcn.00404ba0
int3
Function at 0x4360da
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x5fbc00]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x436133
push 0x59ba38
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x436158
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5fbc00], eax
jmp 0x43613c
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x436158
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x59aa04]
call esi
jmp 0x43629a
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.00436553
lea eax, [ebp - 0x14]
push eax
call fcn.0056aade
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0056b2e1
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00436553
lea eax, [ebp - 0x14]
push eax
call fcn.0056aade
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.0056b2e1
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.00436553
lea eax, [ebp - 0x14]
push eax
call fcn.0056aade
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0056b2e1
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00436553
lea eax, [ebp - 0x14]
push eax
call fcn.0056aade
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0056b2e1
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.00436553
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0056aade
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0056b2e1
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055d3df
leave
ret
Function at 0x4a3f0d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4a3fac
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4a3fa8
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4a3fa8
cmp dword [ebx], eax
jne 0x4a3fa8
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4a3f82
sub eax, 1
je 0x4a3f52
sub eax, 1
jne 0x4a3fa8
mov edi, 0x428e
jmp 0x4a3f87
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4a3f87
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x59aa04]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4a3f87
add edi, 3
jmp 0x4a3f87
mov edi, 0x3ea0
push edi
mov ecx, 0x5fd1c8
call fcn.00405bf0
test eax, eax
je 0x4a3fac
mov eax, dword [0x5fd1c8]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4a3fa1
call fcn.0041e5bf
int3

Function at 0x4af2d2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4af2fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4af302
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00405e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00522844
int3

Function at 0x4af5dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4af5ee
xor eax, eax
jmp 0x4af60a
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4af60f
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00405e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00522844
int3

Function at 0x4af6ad
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x59aa04]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4af6e0
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00405e10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00522844
int3
Function at 0x4b9d04
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5f3040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x4b9d30
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4b9d5b
cmp dword [0x5fbec4], 0
jne 0x4b9d5b
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x4b9d57
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4b9d57
push edi
call fcn.0056c917
pop ecx
jmp 0x4b9dd2
mov eax, edi
jmp 0x4b9dd2
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0055fae0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4b9de1
push esi
call fcn.0042135b
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push esi
push 1
push 2
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0055d3df
leave
ret 4
call fcn.0041e5bf
int3

Function at 0x4d1b58
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041bfbf
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4d1b94
call fcn.004d1d75
mov dword [esi + 0xc], 1
jmp 0x4d1b99
call fcn.004d1d75
cmp dword [esi], 0
je 0x4d1be4
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x4d1bbf
push edi
call fcn.004169ef
lea ecx, [edi + 1]
push ecx
jmp 0x4d1bce
push 0xff
call fcn.00406210
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00419144
pop edi
jmp 0x4d1c08
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4d1c08
push dword [esi]
push dword [ebp - 4]
call fcn.004369ec
pop esi
leave
ret 0xc
Function at 0x4d72cd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d72fa
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4d730f
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d730f
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004169a1
jmp 0x4d73e0
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004169a1
cmp eax, edi
jne 0x4d73ea
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4d737c
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4d73c0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4d73ea
cmp eax, 0x205
je 0x4d73ea
cmp eax, 0x201
je 0x4d73ea
cmp eax, 0x204
je 0x4d73ea
cmp eax, 0x100
jne 0x4d73a8
cmp dword [ebp - 0x18], 0x1b
je 0x4d73ea
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4d73e0
ja 0x4d73d9
cmp eax, dword [0x5fd324]
jbe 0x4d73e0
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4d7331
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4e075f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5f2584], 0
push esi
push edi
je 0x4e07e7
cmp dword [0x5f2928], 0xfffffffe
jne 0x4e07d3
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4e07e7
mov edi, 0x5fd370
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5fd388], 0
jne 0x4e07eb
push 0
push 0
push 0x4e07f1
call fcn.0056b4b2
add esp, 0xc
mov dword [0x5fd388], eax
test eax, eax
je 0x4e07c3
cmp eax, 0xffffffff
je 0x4e07c3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5f2928], esi
jmp 0x4e07ca
and dword [0x5fd388], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4e07e7
mov eax, dword [ebp + 8]
mov dword [0x5f2928], eax
cmp eax, 0xffffffff
jne 0x4e07e7
and dword [0x5fd388], 0
pop edi
pop esi
pop ebp
ret
call fcn.0041e5bf
int3
Function at 0x57302a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0055dc40
mov eax, dword [0x5f3040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00572c08
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x57306c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5731c8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0055ddb0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5fdff0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0057e0bb
mov ecx, dword [esi*4 + 0x5fdff0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x5731c1
cmp eax, dword [ecx + edi + 0x24]
jne 0x5731c1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5731c1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0057e0bb
add esp, 0x14
test edx, edx
jl 0x5731c1
jg 0x573137
test eax, eax
jb 0x5731c1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5731c1
jl 0x573151
cmp dword [ebp - 0x1008], eax
ja 0x5731c1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x57316f
test ebx, ebx
je 0x5731a8
cmp ecx, edi
jae 0x5731a8
mov al, byte [ecx]
cmp al, 0xd
jne 0x573189
lea eax, [edi - 1]
cmp ecx, eax
jae 0x573195
cmp byte [ecx + 1], 0xa
jne 0x573195
inc ecx
jmp 0x573195
movzx eax, al
movsx eax, byte [eax + 0x5f3518]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x57316f
cmp edx, ebx
jne 0x57316f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5731c6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0055d3df
leave
ret
Function at 0x57d553
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5fdff0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57d593
cmp byte [ebx], 0xa
jne 0x57d593
or byte [edi + eax + 0x28], 4
jmp 0x57d598
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x57d697
mov dl, byte [eax]
cmp dl, 0x1a
je 0x57d67a
inc eax
cmp dl, 0xd
je 0x57d5c4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x57d5ea
cmp eax, ecx
jae 0x57d5f8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x57d5ac
jmp 0x57d697
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57d675
cmp dword [ebp - 0x10], 0
je 0x57d675
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5fdff0]
test byte [eax + edi + 0x28], 0x48
je 0x57d64f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57d63a
mov byte [esi], dl
jmp 0x57d64b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5fdff0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x57d697
cmp byte [ebp - 1], 0xa
jne 0x57d65e
cmp esi, ebx
jne 0x57d65e
mov byte [esi], 0xa
jmp 0x57d696
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0057e0d9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x57d697
mov byte [esi], 0xd
jmp 0x57d696
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5fdff0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57d694
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x57d697
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57d6a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x5fdff0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57d6e6
cmp word [ebx], dx
jne 0x57d6e6
or byte [eax + edi + 0x28], 4
jmp 0x57d6eb
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x57d84e
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x57d82e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x57d72c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x57d762
cmp eax, edx
jae 0x57d770
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x57d707
jmp 0x57d84e
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57d829
cmp dword [ebp - 0x18], 0
je 0x57d829
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5fdff0]
test byte [eax + edi + 0x28], 0x48
je 0x57d7ff
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x57d7c3
mov word [esi], cx
jmp 0x57d7fa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5fdff0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x5fdff0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5fdff0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x57d84e
pop eax
cmp word [ebp - 4], ax
jne 0x57d80f
cmp esi, ebx
jne 0x57d80f
mov word [esi], ax
jmp 0x57d84b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0057e0d9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x57d84e
push 0xd
pop eax
jmp 0x57d80a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5fdff0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x57d848
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x57d84e
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret