joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ef90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CClientDC::CClientDC
mov eax, dword [esi + 0xd4]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0045e8c0
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::LPtoDP
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call sub.MFC42.DLL_CWnd::SetScrollRange
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call sub.MFC42.DLL_CWnd::SetScrollRange
push 1
push 0
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetScrollPos
push 1
push 0
push 1
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetScrollPos
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046ecf0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x45f110
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CClientDC::CClientDC
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0045e8c0
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x50]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_CDC::LPtoDP
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x45f1d4
cmp dword [esp + 0x40], 1
jne 0x45f1d2
cmp ecx, eax
jge 0x45f1d4
mov eax, ecx
cmp eax, 0xc8
jge 0x45f1e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd4], eax
call fcn.0045ef90
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046ecf0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x45fa10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473073
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046f002
lea edi, [esi + 0x68]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x543410
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x40], eax
mov eax, ebp
mov dword [esi], 0x543350
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], 0
mov ecx, dword [eax]
lea edx, [esi + 0x4c]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call sub.MFC42.DLL_CEdit::Create
test eax, eax
je 0x45fb2c
mov ecx, dword [esp + 0x3c]
call sub.MFC42.DLL_CGdiObject::Detach
mov ecx, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x5c], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x45faf0
push edi
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, esi
call fcn.0045fd00
cmp dword [esp + 0x38], 1
jne 0x45fb25
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x461dc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x461df3
push esi
call fcn.00464f00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x461dec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x461e79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x461e62
mov eax, dword [esi + 8]
test eax, eax
je 0x461e17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x461e5e
cmp eax, 2
je 0x461e62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x461e0a
cmp eax, 3
je 0x461e3d
cmp eax, 1
jne 0x461e0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x461e0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x461e0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00461ea0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x461e88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00461ea0
add esp, 4
pop esi
ret

Function at 0x464050
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00465430
push 0x50
push edi
mov dword [esp + 0x18], eax
call fcn.004653f0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x464086
push edi
call fcn.0046dfd0
mov eax, dword [edi]
push edi
call dword [eax]
add esp, 8
mov dword [esi], fcn.00464180
mov dword [esi + 4], fcn.004642b0
mov dword [esi + 8], fcn.00464340
mov dword [esi + 0xc], fcn.004643e0
mov dword [esi + 0x10], 0x464490
mov dword [esi + 0x14], 0x4644f0
mov dword [esi + 0x18], 0x464550
mov dword [esi + 0x1c], 0x4646e0
mov dword [esi + 0x20], 0x4648b0
mov dword [esi + 0x24], fcn.00464a90
mov dword [esi + 0x28], 0x464b80
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x4640e1
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x464173
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
push ecx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x464173
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x46413c
cmp al, 0x4d
jne 0x464160
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esi + 0x2c], edx
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esi + 0x2c], edx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x46db50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47354b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x46dc30
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x555f7c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x46dc30
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.0046f3f8
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push str.lt_
push 0x555f70
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
push str.gt_
push 0x555f64
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFile::Close
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
jmp 0x46dc43
mov esi, dword [esp + 0x130]
push 0x562c70
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x405240
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x405391
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
nop dword [eax]
call esi
add byte [edi + ebp], 7
call esi
add byte [edi + ebp], 0xd7
call esi
xor byte [edi + ebp], 0x35
call esi
add byte [edi + ebp], 0xa0
call esi
add byte [edi + ebp], 0xc0
call esi
add byte [edi + ebp], 0xad
call esi
add byte [edi + ebp], 0x7c
call esi
xor byte [edi + ebp], 0x91
call esi
add byte [edi + ebp], 0x1a
call esi
add byte [edi + ebp], 0xc9
call esi
xor byte [edi + ebp], 0xee
call esi
add byte [edi + ebp], 0x3e
call esi
add byte [edi + ebp], 0xfc
call esi
add byte [edi + ebp], 0xb1
call esi
add byte [edi + ebp], 0xcd
call esi
add byte [edi + ebp], 0xb
call esi
xor byte [edi + ebp], 0xd4
call esi
add byte [edi + ebp], 0xfd
call esi
add byte [edi + ebp], 0x6e
call esi
add byte [edi + ebp], 0x60
call esi
add byte [edi + ebp], 0xe7
call esi
add byte [edi + ebp], 0x76
call esi
add byte [edi + ebp], 0x5e
call esi
add byte [edi + ebp], 0xb3
call esi
add byte [edi + ebp], 0xcc
call esi
xor byte [edi + ebp], 0xb
call esi
add byte [edi + ebp], 0xa7
call esi
add byte [edi + ebp], 0xeb
call esi
add byte [edi + ebp], 0xf1
call esi
add byte [edi + ebp], 0x28
call esi
add byte [edi + ebp], 0xfd
call esi
xor byte [edi + ebp], 0x76
call esi
xor byte [edi + ebp], 0xc
call esi
xor byte [edi + ebp], 0xa3
call esi
add byte [edi + ebp], 0xc9
call esi
add byte [edi + ebp], 0xf
call esi
xor byte [edi + ebp], 0x1e
call esi
add byte [edi + ebp], 0x37
call esi
add byte [edi + ebp], 0x4b
call esi
xor byte [edi + ebp], 0x85
call esi
add byte [edi + ebp], 0x66
call esi
xor byte [edi + ebp], 0xaa
call esi
add byte [edi + ebp], 0x5d
call esi
xor byte [edi + ebp], 0xf1
call esi
add byte [edi + ebp], 0xe8
call esi
xor byte [edi + ebp], 0xf4
call esi
add byte [edi + ebp], 0xc2
call esi
add byte [edi + ebp], 0x7a
call esi
add byte [edi + ebp], 5
inc edi
cmp edi, ebx
jb 0x405260
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x4061e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x4061f2
call 0x10566139
jo 0x406239
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x440800], eax
sub eax, eax
je 0x406217
jmp 0x7840ca2f
push 0x7800
push section..come
call fcn.00405240
push 0xb0
mov dword [ebp - 4], 0x403330
call fcn.0040978c
add esp, 0xc
test eax, eax
je 0x40624d
or al, 0x85
sal byte [edi + ecx - 0x73], 0x4d
cld
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
call fcn.004014c0
mov esi, eax
jmp 0x40624f
xor esi, esi
test esi, esi
je 0x4062c1
lea ecx, [esi + 4]
lock inc dword [ecx]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx], eax
jne 0x406278
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x406270
mov eax, dword [ecx]
push esi
jmp 0x406276
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
test esi, esi
je 0x406286
cmp byte [esi + 0x6c], 0
jne 0x406286
mov al, 1
jmp 0x406288
xor al, al
test al, al
je 0x4062c1
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 8]
lock xadd dword [esi + 4], edi
dec edi
jne 0x4062b9
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4062b1
mov eax, dword [ecx]
push esi
call dword [eax]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
call fcn.00404db0
int3

Function at 0x40a3e3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a422
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a422
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a422
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a422
cmp dword [ecx + 0x74], 0xe
jbe 0x40a422
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416f7c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b428
push 0x42b420
push str.FlsAlloc
push 0x1e
call fcn.00416de9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416fb0
push dword [ebp + 8]
mov ecx, esi
call dword [0x427190]
call esi
jmp 0x416fb6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416ffa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b438
push 0x42b430
push str.FlsGetValue
push 0x20
call fcn.00416de9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417031
push dword [ebp + 8]
mov ecx, esi
call dword [0x427190]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x419b18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004197ba

Function at 0x419b23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419949
Function at 0x41ad5d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a840
mov eax, dword [0x436100]
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.00418511
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ad9f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41aefb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425fb0
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 + 0x4387b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b183
mov ecx, dword [esi*4 + 0x4387b0]
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 0x41aef4
cmp eax, dword [edi + ecx + 0x24]
jne 0x41aef4
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 0x41aef4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b183
add esp, 0x14
test edx, edx
jl 0x41aef4
jg 0x41ae6a
test eax, eax
jb 0x41aef4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41aef4
jl 0x41ae84
cmp dword [ebp - 0x1008], eax
ja 0x41aef4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41aea2
test ebx, ebx
je 0x41aedb
cmp ecx, edi
jae 0x41aedb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41aebc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41aec8
cmp byte [ecx + 1], 0xa
jne 0x41aec8
inc ecx
jmp 0x41aec8
movzx eax, al
movsx eax, byte [eax + 0x436a40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41aea2
cmp edx, ebx
jne 0x41aea2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41aef9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409c00
leave
ret
Function at 0x4230a6
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 + 0x4387b0]
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 0x4230e6
cmp byte [ebx], 0xa
jne 0x4230e6
or byte [eax + edi + 0x28], 4
jmp 0x4230eb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4231e9
mov al, byte [edx]
cmp al, 0x1a
je 0x4231cb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42311a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42313f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423149
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 0x4230fc
jmp 0x4231e9
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 0x4231c6
cmp dword [ebp - 0xc], 0
je 0x4231c6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4387b0]
test byte [eax + edi + 0x28], 0x48
je 0x4231a0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42318b
mov byte [esi], dl
jmp 0x42319c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4387b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4231e9
cmp byte [ebp - 1], 0xa
jne 0x4231af
cmp esi, ebx
jne 0x4231af
mov byte [esi], 0xa
jmp 0x4231e8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b1a1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4231e9
mov byte [esi], 0xd
jmp 0x4231e8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4387b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4231e5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4231e9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4231f2
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 + 0x4387b0]
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 0x423235
cmp word [esi], dx
jne 0x423235
or byte [edi + eax + 0x28], 4
jmp 0x42323a
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 0x42338d
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 0x42336d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42327c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4232b2
cmp eax, edx
jae 0x4232be
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 0x423254
jmp 0x42338d
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 0x423369
cmp dword [ebp - 0x14], 0
je 0x423369
mov eax, dword [ebx*4 + 0x4387b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423341
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42330a
mov word [esi], cx
jmp 0x42333d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4387b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4387b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4387b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42338d
pop ebx
cmp word [ebp - 4], bx
jne 0x423352
cmp esi, dword [ebp + 0xc]
jne 0x423352
mov word [esi], bx
jmp 0x42338a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b1a1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42338d
push 0xd
jmp 0x423386
mov ecx, dword [ebx*4 + 0x4387b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423384
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42338d
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