joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b5e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x45b634
mov eax, esi
call fcn.00443960
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45b634
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x45b634
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x45b773
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x45b674
cmp eax, 0x108
ja 0x45b674
mov eax, esi
call fcn.00443960
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45b76a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x45b773
jmp 0x45b76a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x45b753
cmp eax, 0x20a
ja 0x45b753
test byte [esi + 0x50], 0x80
jne 0x45b6a6
sub eax, 0x203
je 0x45b6a3
sub eax, 3
je 0x45b6a3
sub eax, 3
jne 0x45b6a6
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x45b6ba
dec eax
je 0x45b6cf
dec eax
je 0x45b6ec
dec eax
je 0x45b6cf
jmp 0x45b6f3
mov ecx, ebx
mov eax, dword [0x4779b0]
mov eax, dword [eax]
mov edx, esi
call fcn.0044ce28
jmp 0x45b76a
cmp byte [esi + 0x5d], 1
jne 0x45b6e5
mov eax, esi
mov si, 0xffed
call fcn.00403a4c
jmp 0x45b773
or word [esi + 0x54], 1
jmp 0x45b76a
and word [esi + 0x54], 0xfffe
jmp 0x45b76a
mov eax, dword [0x478c2c]
cmp byte [eax + 0x20], 0
je 0x45b76a
mov eax, dword [0x478c2c]
cmp dword [eax + 0x1c], 0
je 0x45b76a
mov eax, dword [ebx]
mov edx, dword [0x478c2c]
cmp eax, dword [edx + 0x1c]
jne 0x45b76a
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004438a4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403a4c
jmp 0x45b773
cmp eax, 0xb00b
jne 0x45b76a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00459f24
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ec28
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x45ec44
cmp dword [esi + 4], 0
je 0x45ec71
test byte [ebx + 0x55], 1
jne 0x45ec63
mov eax, ebx
call fcn.0045d880
test eax, eax
jne 0x45ec63
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x45ed81
mov edx, esi
mov eax, ebx
call fcn.0045e748
jmp 0x45ed81
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45ed7a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004609f8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0045b51c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0045ec28
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004609f8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ed81
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46521c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x477b78]
cmp byte [eax + 0xc], 0
je 0x465389
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x465382
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x478c80], 0
jne 0x465270
push 0x465390
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x465398
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c80], eax
cmp dword [0x476e7c], 0
jne 0x46536b
push 0x4653a8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x476e7c], eax
cmp dword [0x476e7c], 0
je 0x46536b
push 0x4653b4
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c84], eax
push 0x4653c4
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c88], eax
push 0x4653d8
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c8c], eax
push 0x4653f0
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c90], eax
push 0x465408
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c94], eax
push 0x46541c
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c98], eax
push 0x465434
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478c9c], eax
push 0x46544c
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478ca0], eax
push 0x465468
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478ca4], eax
push 0x465474
mov eax, dword [0x476e7c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478ca8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465389
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x465f90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404aa0
xor eax, eax
push ebp
push 0x4660be
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x466091
xor eax, eax
push ebp
push 0x46608a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004048b8
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46605f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x46604e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004048b8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404ab0
mov edx, ebx
pop ecx
call fcn.004029e4
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466055
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x477720]
mov dl, 1
mov eax, dword [0x407a38]
call fcn.0040c348
call fcn.0040401c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4660c5
lea eax, [ebp - 4]
call fcn.00404600
ret
Function at 0x4660cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46627d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00404ca0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x466294
call fcn.00404904
mov eax, ebx
call fcn.0042641c
mov edi, eax
dec edi
test edi, edi
jl 0x466184
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.004263f0
mov edx, dword [0x43cce8]
call fcn.004039dc
test al, al
je 0x466180
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.004263f0
lea edx, [ebp - 0x14]
call fcn.0045a374
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00404ca0
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404978
inc esi
dec edi
jne 0x466132
mov al, byte [0x466298]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x4662a4
mov eax, dword [ebp - 0xc]
call fcn.0040d600
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404698
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0045a374
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x466294
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f0]
call fcn.0045a374
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x466294
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x466294
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x4662b0
call fcn.00409760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466284
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404624
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404624
lea eax, [ebp - 0x14]
call fcn.00404600
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404624
ret

Function at 0x46ff68
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
add esp, 0xfffffe70
mov bl, 1
call fcn.004074b0
mov esi, eax
push esp
push esi
call sub.wsock32.dll_WSAStartup
mov dword [0x478f90], eax
cmp dword [0x478f90], 0
je 0x46ff90
xor ebx, ebx
mov eax, ebx
add esp, 0x190
pop esi
pop ebx
ret
Function at 0x470004
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x47016a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.004047f0
mov eax, dword [ebp - 0x1c]
call fcn.0047025c
test al, al
je 0x470063
push esi
call sub.wsock32.dll_inet_addr
mov dword [ebp - 8], eax
push 2
push 4
lea eax, [ebp - 8]
push eax
call sub.wsock32.dll_gethostbyaddr
mov ebx, eax
jmp 0x470085
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.004047f0
mov eax, dword [ebp - 0x20]
call fcn.004702d0
test al, al
je 0x470083
push esi
call sub.wsock32.dll_gethostbyname
mov ebx, eax
jmp 0x470085
xor ebx, ebx
test ebx, ebx
jne 0x4700f7
cmp byte [ebp + 0xc], 0
jne 0x4700e5
push 0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x38]
mov eax, esi
call fcn.004091e4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [0x47771c]
call fcn.0040685c
mov eax, dword [ebp - 0x3c]
mov ecx, 1
pop edx
call fcn.00409760
mov eax, dword [ebp - 0x24]
mov cx, word [0x47017c]
mov dl, 1
call fcn.00466910
cmp byte [ebp + 8], 0
je 0x4700f0
call sub.wsock32.dll_WSACleanup
mov ebx, 1
jmp 0x470142
lea eax, [ebp - 0x18]
mov edx, 0x10
call fcn.004074e0
movsx ecx, word [ebx + 0xa]
mov eax, dword [ebx + 0xc]
mov edx, dword [eax]
lea eax, [ebp - 0x14]
call fcn.004074d8
mov ax, word [ebx + 8]
mov word [ebp - 0x18], ax
mov ax, word [ebp - 4]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
call sub.wsock32.dll_connect
mov dword [0x478f9c], eax
mov ebx, dword [0x478f9c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470171
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404624
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404624
ret
Function at 0x9ac058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9ac1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9ac07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ac06a
add dl, dl
jne 0x9ac089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ac0dc
xor eax, eax
add dl, dl
jne 0x9ac096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ac17d
add dl, dl
jne 0x9ac0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ac0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ac0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ac0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ac0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ac075
mov eax, 1
add dl, dl
jne 0x9ac0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ac0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ac0e1
sub eax, ebx
mov ebx, 1
jne 0x9ac128
mov ecx, 1
add dl, dl
jne 0x9ac10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ac119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ac105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ac075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ac13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ac14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ac136
cmp eax, 0x7d00
jae 0x9ac16d
cmp eax, 0x500
jb 0x9ac168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ac075
cmp eax, 0x7f
ja 0x9ac170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ac075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ac19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9ac075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x418dfc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418c6d

Function at 0x4191f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407f50
mov eax, dword [0x659900]
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.00415f6b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419238
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419394
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423500
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 + 0x65b4e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a1ed
mov ecx, dword [esi*4 + 0x65b4e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41938d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41938d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41938d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a1ed
add esp, 0x14
test edx, edx
jl 0x41938d
jg 0x419303
test eax, eax
jb 0x41938d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41938d
jl 0x41931d
cmp dword [ebp - 0x1008], eax
ja 0x41938d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41933b
test ebx, ebx
je 0x419374
cmp ecx, edi
jae 0x419374
mov al, byte [ecx]
cmp al, 0xd
jne 0x419355
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419361
cmp byte [ecx + 1], 0xa
jne 0x419361
inc ecx
jmp 0x419361
movzx eax, al
movsx eax, byte [eax + 0x659bd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41933b
cmp edx, ebx
jne 0x41933b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419392
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004071da
leave
ret
Function at 0x41968b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x65b4e8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4196cb
cmp byte [ebx], 0xa
jne 0x4196cb
or byte [eax + edi + 0x28], 4
jmp 0x4196d0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4197ce
mov al, byte [edx]
cmp al, 0x1a
je 0x4197b0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4196ff
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419724
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41972e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4196e1
jmp 0x4197ce
push 0
lea eax, [ebp - 0xc]
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 0x4197ab
cmp dword [ebp - 0xc], 0
je 0x4197ab
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x65b4e8]
test byte [eax + edi + 0x28], 0x48
je 0x419785
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419770
mov byte [esi], dl
jmp 0x419781
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x65b4e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4197ce
cmp byte [ebp - 1], 0xa
jne 0x419794
cmp esi, ebx
jne 0x419794
mov byte [esi], 0xa
jmp 0x4197cd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a20b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4197ce
mov byte [esi], 0xd
jmp 0x4197cd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x65b4e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4197ca
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4197ce
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4197d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x65b4e8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41981a
cmp word [esi], dx
jne 0x41981a
or byte [edi + eax + 0x28], 4
jmp 0x41981f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419972
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419952
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419861
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419897
cmp eax, edx
jae 0x4198a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419839
jmp 0x419972
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41994e
cmp dword [ebp - 0x14], 0
je 0x41994e
mov eax, dword [ebx*4 + 0x65b4e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419926
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4198ef
mov word [esi], cx
jmp 0x419922
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x65b4e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x65b4e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x65b4e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419972
pop ebx
cmp word [ebp - 4], bx
jne 0x419937
cmp esi, dword [ebp + 0xc]
jne 0x419937
mov word [esi], bx
jmp 0x41996f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a20b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419972
push 0xd
jmp 0x41996b
mov ecx, dword [ebx*4 + 0x65b4e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419969
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419972
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret