joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fca4e
Capabilities:
Encode data using xor

Disassembly:
push 0x34
mov eax, 0x640da3
call fcn.005b83bf
mov edi, ecx
mov dword [ebp - 0x38], edi
xor eax, eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 7
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov byte [ebp - 4], 0x1d
mov word [eax], cx
push 0x24
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
call fcn.0041b227
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ebx
push 0
push 0xa
push ebx
push esi
call fcn.005e9ba0
mov dword [ebp - 0x38], ebx
pop ebx
mov esi, eax
mov ebx, edx
mov eax, ecx
lea ecx, [ebp - 0x2c]
cdq
xor eax, edx
sub eax, edx
movsx ax, byte [eax + 0x81a36c]
movzx eax, ax
push eax
push 1
call fcn.0041c0d8
mov eax, esi
or eax, ebx
jne 0x4fcab1
mov byte [ebp - 4], 0x1e
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041ea05
push dword [eax]
push esi
call fcn.004fc827
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.0041e7fc
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
push 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0x28
call fcn.00416b1a
mov byte [ebp - 4], 0
mov eax, edi
call fcn.005b8369
ret
Function at 0x501584
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xc
mov eax, 0x6428bc
call fcn.005b83f6
mov esi, ecx
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp + 0xc]
je 0x501744
mov dword [ebp - 4], 1
mov byte [ebp - 4], 4
mov byte [ebp - 4], 0
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
cmp eax, edi
jae 0x5016f6
mov dword [ebp - 4], 0xd
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov dword [ebp - 4], ecx
not eax
cmp eax, edi
jae 0x5015e0
push str.vector_T__too_long
call fcn.005a58d1
mov dword [ebp - 4], 0x14
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov dword [ebp - 4], ecx
add eax, edi
push eax
mov ecx, esi
call fcn.004fac53
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
push 1
push 1
push eax
call fcn.0041613c
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0x20
mov byte [ebp - 4], 0x1f
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1d
mov ecx, dword [esi]
mov byte [ebp - 4], 0x22
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x1d
push eax
push dword [ebp + 8]
push ecx
call fcn.004face6
add esp, 0xc
mov byte [ebp - 4], 0x24
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0x1d
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004face6
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0x27
mov byte [ebp - 4], 0x26
mov byte [ebp - 4], 0x25
mov byte [ebp - 4], 0x1d
mov eax, dword [esi + 4]
mov byte [ebp - 4], 0x29
mov byte [ebp - 4], 0x28
mov byte [ebp - 4], 0x1d
push ecx
push eax
push dword [ebp + 8]
call fcn.004face6
add esp, 0xc
mov dword [ebp - 4], 0x2f
mov eax, dword [esi + 4]
sub eax, dword [esi]
or dword [ebp - 4], 0xffffffff
add edi, eax
or dword [ebp - 4], 0xffffffff
cmp dword [esi], 0
je 0x5016b8
or dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 8]
sub eax, dword [esi]
push 1
push eax
push dword [esi]
call fcn.00416193
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, ecx
mov dword [esi + 8], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ecx + edi]
mov dword [esi + 4], eax
or dword [ebp - 4], 0xffffffff
mov dword [esi], ecx
jmp 0x501744
mov dword [ebp - 4], ecx
mov eax, dword [esi + 4]
mov dword [ebp - 4], ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004face6
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov edx, dword [esi + 4]
lea eax, [edx + edi]
mov ecx, dword [ebp + 8]
cmp ecx, edx
je 0x501732
cmp edx, eax
je 0x501732
mov byte [ebp + 0x10], 0
push dword [ebp + 0x10]
push eax
call fcn.0050176f
pop ecx
pop ecx
mov dword [ebp - 4], 0x62
or dword [ebp - 4], 0xffffffff
add dword [esi + 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.005b8354
ret 0x10
Function at 0x516748
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x14
mov eax, 0x645bcc
call fcn.005b83f6
mov esi, ecx
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], 0xc
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cdq
push 0x4c
pop ecx
idiv ecx
mov edi, eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
mov dword [esi], ebx
mov dword [ebp - 4], eax
mov dword [esi + 4], ebx
mov dword [ebp - 4], eax
mov dword [esi + 8], ebx
test edi, edi
je 0x516873
mov dword [ebp - 4], eax
cmp edi, 0x35e50d7
jbe 0x5167b3
push str.vector_T__too_long
call fcn.005a58d1
mov dword [ebp - 4], eax
push 1
push ecx
push edi
call fcn.0041613c
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 4], eax
or dword [ebp - 4], 0xffffffff
imul eax, edi, 0x4c
add eax, dword [esi]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0x35
mov byte [ebp - 4], 0x34
mov byte [ebp - 4], 0x33
mov byte [ebp - 4], 0x38
mov byte [ebp - 4], 0x37
mov byte [ebp - 4], 0x3b
mov byte [ebp - 4], 0x3a
mov byte [ebp - 4], 0x39
mov byte [ebp - 4], 0x36
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x3e
mov byte [ebp - 4], 0x3d
mov byte [ebp - 4], 0x41
mov byte [ebp - 4], 0x40
mov byte [ebp - 4], 0x3f
mov byte [ebp - 4], 0x3c
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x32
mov eax, dword [esi]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0x43
mov byte [ebp - 4], 0x42
mov byte [ebp - 4], 0x32
mov byte [ebp + 8], bl
push ecx
mov dword [ebp - 0x20], esp
mov byte [ebp - 4], 0x44
mov byte [ebp - 4], 0x32
push dword [ebp + 8]
push esi
push eax
call fcn.00516973
add esp, 0x10
mov byte [ebp - 4], 0x47
mov byte [ebp - 4], 0x46
mov byte [ebp - 4], 0x45
mov byte [ebp - 4], 0x32
mov dword [esi + 4], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.005b8354
ret 4
Function at 0x52a760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005d0419
add esp, 0x10
pop ebp
ret 8

Function at 0x52a840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005d0fda
add esp, 0x10
pop ebp
ret 8

Function at 0x52ba50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6464dc
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x8d600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x52bab8
lea ecx, [esi + 0x74]
mov dword [esi], 0x64fa98
mov dword [esi + 0x80], 0x64faa4
call fcn.005295a0
push 0
lea ecx, [esi + 0x7c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.00529490
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.CGetRowBMP.0
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esi + eax], vtable.CGetRowBMP.1.0
mov eax, dword [esi]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.CGetRowBMPv3NT.0
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esi + eax], vtable.CGetRowBMPv3NT.1.0
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [eax + esi - 4], 0
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov eax, esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], vtable.CBMPHeaderV3NT.0
mov dword [esi + 0x28], 0
mov dword [esi + 0x5c], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x52bb80
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64651c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x8d600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x52bbe5
lea ecx, [esi + 0x70]
mov dword [esi], 0x64fa68
mov dword [esi + 0x7c], 0x64fa74
call fcn.005295a0
push 0
lea ecx, [esi + 0x78]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.00529490
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.CGetRowBMP.0
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esi + eax], vtable.CGetRowBMP.1.0
mov eax, dword [esi]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.CGetRowBMPv3x.0
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esi + eax], vtable.CGetRowBMPv3x.1.0
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [eax + esi - 4], 0
xor eax, eax
mov word [esi + 0x24], ax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov eax, esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], vtable.CBMPHeaderV3x.0
mov byte [esi + 0x60], 1
mov dword [esi + 0x64], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x531190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6468c4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x8d600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x5311df
lea ecx, [edi + 0x3c]
mov dword [edi + 0x28], 0x653228
call fcn.005295a0
mov dword [ebp - 0x10], 1
mov dword [edi], vtable.CConcatenateRow.0
mov dword [edi + 0xc], 0
mov byte [edi + 0x14], 0xff
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x10], 0
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 4], 1
call fcn.00529490
mov eax, dword [edi + 0x28]
mov dword [edi], vtable.CGetRowConcatenate.0
mov dword [edi + 0x24], vtable.CGetRowConcatenate.1.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x28], vtable.CGetRowConcatenate.2.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x531830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6468fc
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x8d600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x53189b
lea ecx, [esi + 0x78]
mov dword [esi], 0x65355c
mov dword [esi + 0x84], 0x653568
call fcn.005295a0
push 0
lea ecx, [esi + 0x80]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.00529530
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.CPunchHolePipe.0
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [esi + eax], vtable.CPunchHolePipe.1.0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x80]
mov dword [ecx + esi - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
movsd xmm0, qword [eax]
movsd qword [esi + 0x20], xmm0
movsd xmm0, qword [eax + 8]
movsd qword [esi + 0x28], xmm0
movsd xmm0, qword [eax + 0x10]
movsd qword [esi + 0x30], xmm0
movsd xmm0, qword [eax + 0x18]
movsd qword [esi + 0x38], xmm0
movsd xmm0, qword [eax + 0x20]
movsd qword [esi + 0x50], xmm0
movsd xmm0, qword [eax + 0x28]
movsd qword [esi + 0x58], xmm0
movsd xmm0, qword [eax + 0x30]
movsd qword [esi + 0x60], xmm0
movsd xmm0, qword [eax + 0x38]
mov eax, esi
movsd qword [esi + 0x68], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x535ae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646adf
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x8d600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x535b38
lea ecx, [esi + 0x80]
mov dword [esi + 4], 0x6536d4
call fcn.005295a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
mov ecx, esi
call fcn.00529490
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.CGetRowDeskew.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.CGetRowDeskew.1.0
mov eax, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
movsd qword [esi + 0x50], xmm0
mov word [esi + 0x7d], 0xffff
mov byte [esi + 0x7c], 0xff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x535d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
movsd xmm1, qword [esi + 0x50]
comisd xmm1, xmmword [0x8727b0]
jbe 0x535d83
movsd xmm0, qword [0x872530]
comisd xmm0, xmm1
jbe 0x535d83
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00529890
pop esi
pop ebp
ret 8
cmp dword [esi + 0xc], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x535de7
cmp dword [esi + 0x68], 0
mov dword [esi + 0x70], 0
jle 0x535de7
nop word [eax + eax]
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 0x24]
jge 0x535de7
mov eax, dword [esi + 0x1c]
mov ecx, esi
imul eax, dword [esi + 0x74]
push edi
add eax, dword [esi + 0x3c]
push eax
call fcn.00529890
test eax, eax
je 0x535ec0
mov edx, dword [esi + 0x1c]
imul edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x14]
add ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x44]
add edx, dword [esi + 0x3c]
mov dword [eax + ecx*4], edx
inc dword [esi + 0x70]
inc dword [esi + 0x74]
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 0x68]
jl 0x535da0
mov ecx, dword [esi + 0xc]
mov eax, ecx
and eax, 0x8000001f
jns 0x535df8
dec eax
or eax, 0xffffffe0
inc eax
jne 0x535e4d
push dword [esi + 0x78]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x40]
sub eax, ecx
mov ecx, 0x20
mov dword [esi + 0x48], edx
cmp eax, ecx
cmovl ecx, eax
mov eax, dword [esi + 0x20]
push eax
push ecx
mov ecx, dword [esi + 0x14]
push eax
push dword [esi + 0x18]
mov eax, dword [esi + 0x44]
push edx
lea eax, [eax + ecx*4]
mov ecx, esi
push eax
push dword [esi + 0x64]
push dword [esi + 0x60]
push dword [esi + 0x5c]
push dword [esi + 0x58]
call fcn.005367c0
mov eax, dword [esi + 0x64]
neg eax
shl eax, 5
add dword [esi + 0x58], eax
mov eax, dword [esi + 0x60]
shl eax, 5
add dword [esi + 0x5c], eax
push ebx
push edi
push dword [esi + 0x48]
push dword [ebp + 8]
call fcn.005b98c0
mov eax, dword [esi + 0x18]
add esp, 0xc
add dword [esi + 0x48], eax
mov ebx, dword [esi + 0x68]
cmp dword [esi + 0x74], ebx
jne 0x535e72
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x64]
imul eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x5c]
add eax, ecx
cmp ecx, eax
cmovl eax, ecx
mov ecx, dword [esi + 0x70]
cdq
and edx, 0xffff
add eax, edx
mov edx, ecx
sar eax, 0x10
sub edx, eax
mov dword [esi + 0x6c], edx
cmp ecx, dword [esi + 0x24]
jge 0x535ee4
cmp edx, ebx
jge 0x535ee4
mov eax, dword [esi + 0x1c]
mov ecx, esi
imul eax, dword [esi + 0x74]
push edi
add eax, dword [esi + 0x3c]
push eax
call fcn.00529890
test eax, eax
jne 0x535ec8
pop ebx
pop edi
pop esi
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
mov edx, dword [esi + 0x1c]
imul edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x14]
add ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x44]
add edx, dword [esi + 0x3c]
mov dword [eax + ecx*4], edx
inc dword [esi + 0x74]
inc dword [esi + 0x70]
inc dword [esi + 0xc]
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x536a10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646b1c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x8d600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x536a65
lea ecx, [esi + 0x44]
mov dword [esi + 4], 0x65372c
call fcn.005295a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
mov ecx, esi
call fcn.00529490
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xffffffff
mov byte [esi + 0x28], 0xff
mov dword [esi + 0xc], vtable.CMarginEraseRow.0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 4]
mov dword [esi], vtable.CGetRowMarginErase.0
mov dword [esi + 0xc], vtable.CGetRowMarginErase.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.CGetRowMarginErase.2.0
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x538e90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646d2c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x8d600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x538ee5
lea ecx, [esi + 0x3c]
mov dword [esi + 4], 0x653870
call fcn.005295a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
mov ecx, esi
call fcn.00529490
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x10], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 4]
mov dword [esi], vtable.CGetRowPack1Bit.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.CGetRowPack1Bit.1.0
mov eax, esi
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x539020
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646d6c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x8d600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x539075
lea ecx, [esi + 0x38]
mov dword [esi + 4], 0x65384c
call fcn.005295a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
mov ecx, esi
call fcn.005294e0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x10], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 4]
mov dword [esi], vtable.CPutRowPack1Bit.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.CPutRowPack1Bit.1.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x539a20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646b1c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x8d600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x539a75
lea ecx, [esi + 0x44]
mov dword [esi + 4], 0x6547cc
call fcn.005295a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
mov ecx, esi
call fcn.00529490
mov dword [esi + 0xc], vtable.CHalftoneRow.0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [esi + 0x3c], 0x7f
mov eax, dword [esi + 4]
mov dword [esi], vtable.CGetRowHalftone.0
mov dword [esi + 0xc], vtable.CGetRowHalftone.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.CGetRowHalftone.2.0
mov eax, esi
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4