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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040b720
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 0x25
xor esi, esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0xf
mov ecx, esi
push 1
and ecx, 7
pop eax
mov dword [ebp - 0x10], ecx
push 1
shl eax, cl
mov ecx, dword [ebp + 8]
add ecx, 0x15
add ecx, esi
mov dword [ebp - 0xc], ecx
mov dl, byte [ecx]
mov ecx, dword [ebp - 4]
mov bl, dl
and bl, al
neg bl
sbb ebx, ebx
neg ebx
shl ebx, cl
mov ecx, esi
not al
or dword [ebp - 8], ebx
pop ebx
shl ebx, cl
mov ecx, dword [ebp - 0x10]
test edi, ebx
setne bl
shl bl, cl
and al, dl
or bl, al
mov eax, dword [ebp - 0xc]
inc esi
dec dword [ebp - 4]
mov byte [eax], bl
jns 0x402804
mov esi, dword [ebp + 8]
mov dl, 0xfe
lea ecx, [esi + 3]
mov al, byte [ecx]
xor al, byte [ebp - 8]
xor al, dl
mov byte [ecx], al
mov dl, al
mov eax, dword [ebp - 8]
imul eax, eax, 0x184d
add eax, 0x347d
inc ecx
mov dword [ebp - 8], eax
lea eax, [esi + 0x25]
cmp ecx, eax
jb 0x40285a
xor edx, edx
push 4
mov dword [ebp + 8], edx
xor edi, edi
pop ecx
movzx eax, byte [esi + edx + 0x15]
mov ebx, eax
shr ebx, cl
mov ecx, edx
and ebx, 1
xor ebx, dword [ebp + 8]
shl ebx, cl
mov ecx, eax
and eax, 7
shr ecx, 5
and ecx, 1
add edi, ebx
inc edx
mov dword [ebp + 8], ecx
cmp edx, 0x10
mov ecx, eax
jl 0x402888
mov bl, byte [esi + 2]
not bl
and bl, 0x10
je 0x4028c0
add edi, 0xd
push 0x17
mov eax, edi
xor edx, edx
pop ecx
div ecx
mov edx, dword [edx*4 + 0x40c1b8]
mov eax, edx
and eax, 0xffff
shr edx, 0x10
mov dword [ebp - 0xc], edx
lea ecx, [edx + eax]
test ecx, ecx
jle 0x40290b
test bl, bl
je 0x40290b
xor edx, edx
test ecx, ecx
jle 0x40290b
imul edi, edi, 0x184d
add edi, 0x347d
mov ebx, edi
sar ebx, 8
mov byte [ebp + edx - 0x1014], bl
inc edx
cmp edx, ecx
jl 0x4028ee
xor ebx, ebx
mov edi, eax
mov dword [ebp - 4], 2
push 0x29
lea ecx, [edi + ebx]
pop eax
cdq
idiv edi
push 0x29
pop edi
mov dword [ebp + 8], edi
add edx, ebx
cmp dword [ebp + 0xc], edi
lea eax, [ebp + edx - 0x1014]
jle 0x402957
mov dl, byte [eax]
xor byte [edi + esi], dl
inc eax
lea edx, [ebp + ecx - 0x1014]
cmp eax, edx
jb 0x40294b
lea eax, [ebp + ebx - 0x1014]
mov edi, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0xc]
mov dword [ebp + 8], edi
jl 0x402933
dec dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov ebx, ecx
jne 0x402916
or byte [esi + 2], 0xff
xor eax, eax
lea edi, [esi + 0x15]
mov ecx, dword [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
call fcn.0040195a
movzx eax, ax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 2
add esi, 0x27
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402a92
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0x110], eax
lea eax, [esi + 0x130]
push eax
push 4
push esi
mov dword [esi + 0x10c], edi
push dword [esp + 0x18]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x12c], eax
jne 0x402ada
push edi
push edi
push str.create_thread_err
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402b03
cmp dword [esp + 0x14], edi
je 0x402af1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x12c]
pop edi
pop esi
ret 0xc

Function at 0x40377c
Capabilities:
Enumerate processes
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
cmp dword [ebp - 0x124], esi
je 0x4037e5
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4037f3
jmp 0x4037ca
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 4]
jne 0x4037f3
push 1
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x403801
Capabilities:
Hide thread from debugger

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp word [ebp + 8], 0x65
push ebx
push esi
push edi
jb 0x403818
xor ebx, ebx
cmp word [ebp + 8], bx
jne 0x403820
push 1
pop eax
jmp 0x4038aa
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
je 0x4038a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ZwQuerySystemInformation
push edi
call esi
cmp eax, ebx
je 0x4038a8
push ebx
lea ecx, [ebp + 0xa]
push 2
push ecx
push 0x23
call eax
test eax, eax
jne 0x4038a8
cmp byte [ebp + 0xa], bl
je 0x40385f
cmp byte [ebp + 0xb], bl
je 0x4038a8
push str.ZwSetInformationThread
push edi
call esi
mov edi, eax
cmp edi, ebx
je 0x4038a8
push ebx
push ebx
push 0x11
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push str.ZwQueryInformationProcess
push dword [ebp - 4]
call esi
mov esi, eax
cmp esi, ebx
je 0x4038a8
push ebx
lea eax, [ebp - 8]
push 4
push eax
push 7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x4038a8
cmp dword [ebp - 8], ebx
sete al
jmp 0x4038aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40436b
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x410790]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [eax - 2]
dec esi
cmp byte [esi + edi], 0xcc
je 0x40437d
sub esi, 4
mov ebx, 0xcccccccc
lea eax, [esi + edi]
mov dword [ebp - 4], eax
push 4
lea eax, [ebp + 8]
push dword [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
dec esi
dec dword [ebp - 4]
cmp dword [ebp + 8], ebx
jne 0x404392
lea eax, [ebp + 8]
push 4
push eax
lea eax, [esi + edi + 1]
push eax
mov dword [ebp + 8], 0xc201eb90
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [0x41080c], esi
sub esi, 4
lea eax, [esi + edi]
mov dword [ebp - 4], eax
dec esi
dec dword [ebp - 4]
push 4
lea eax, [ebp + 8]
push dword [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp + 8], ebx
jne 0x4043d5
lea eax, [ebp + 8]
push 4
push eax
lea eax, [esi + edi]
push eax
mov dword [ebp + 8], 0xe901eb90
call sub.MSVCRT.dll_memcpy
mov ecx, dword [0x41080c]
add esp, 0xc
lea eax, [esi + 4]
sub ecx, eax
pop edi
pop esi
mov dword [0x410844], eax
mov dword [0x410860], ecx
pop ebx
leave
ret

Function at 0x404423
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 1], 0
mov al, byte [0x410860]
push esi
mov esi, dword [0x410844]
cmp esi, dword [0x41080c]
mov byte [ebp - 2], al
ja 0x404480
mov eax, dword [ebp + 8]
push edi
lea edi, [esi + eax]
push 1
lea eax, [ebp - 1]
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov al, byte [ebp - 1]
ror al, 2
add al, byte [ebp - 2]
xor al, 0x79
mov byte [ebp - 1], al
dec byte [ebp - 2]
lea eax, [ebp - 1]
push 1
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0x18
inc esi
inc edi
cmp esi, dword [0x41080c]
jbe 0x404449
pop edi
pop esi
leave
ret
Function at 0x407740
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
cmp edx, 8
push edi
jae 0x40779c
mov eax, dword [ecx]
or edx, 8
shr eax, 2
xor esi, esi
cmp edx, 1
mov ebx, dword [eax*4 + 0x4112b0]
je 0x407792
mov edi, dword [esp + 0x18]
mov eax, edx
shr edx, 1
and eax, 1
lea ebp, [edx + edi*8]
mov ebp, dword [ecx + ebp*4 + 8]
sub ebp, eax
neg eax
xor ebp, eax
shr ebp, 2
and ebp, 0x1ff
mov eax, dword [ebp*4 + 0x4112b0]
add esi, eax
cmp edx, 1
jne 0x407767
lea eax, [esi + ebx]
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebx, dword [ecx]
mov eax, 0x800
sub eax, ebx
shr eax, 2
cmp edx, 0x10
mov eax, dword [eax*4 + 0x4112b0]
jae 0x40780f
mov esi, dword [ecx + 4]
xor edi, edi
shr esi, 2
mov ebx, dword [esi*4 + 0x4112b0]
lea esi, [edx - 8]
or esi, 8
add eax, ebx
cmp esi, 1
je 0x407860
mov ebx, dword [esp + 0x18]
mov edx, esi
shr esi, 1
and edx, 1
lea ebp, [esi + ebx*8]
mov ebp, dword [ecx + ebp*4 + 0x208]
sub ebp, edx
neg edx
xor ebp, edx
shr ebp, 2
and ebp, 0x1ff
mov edx, dword [ebp*4 + 0x4112b0]
add edi, edx
cmp esi, 1
jne 0x4077d8
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov edi, dword [ecx + 4]
mov esi, 0x800
sub esi, edi
xor edi, edi
shr esi, 2
mov ebx, dword [esi*4 + 0x4112b0]
lea esi, [edx - 0x10]
or esi, 0x100
add eax, ebx
cmp esi, 1
je 0x407860
mov edx, esi
shr esi, 1
and edx, 1
mov ebx, dword [ecx + esi*4 + 0x408]
sub ebx, edx
neg edx
xor ebx, edx
shr ebx, 2
and ebx, 0x1ff
mov ebp, dword [ebx*4 + 0x4112b0]
add edi, ebp
cmp esi, 1
jne 0x407835
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x40a7f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp edi, dword [ecx + 0x33678]
jae 0x40a8b8
mov edx, edi
xor esi, esi
or edx, 0x40
cmp edx, 1
je 0x40a83e
mov eax, edx
shr edx, 1
and eax, 1
lea ebp, [ebx + edx]
mov ebp, dword [ecx + ebp*4 + 0x28720]
sub ebp, eax
neg eax
xor ebp, eax
shr ebp, 2
and ebp, 0x1ff
mov eax, dword [ebp*4 + 0x4112b0]
add esi, eax
cmp edx, 1
jne 0x40a810
lea eax, [ebx + edi]
inc edi
cmp edi, 0xe
mov dword [ecx + eax*4 + 0x32a34], esi
jb 0x40a7f8
cmp edi, dword [ecx + 0x33678]
jae 0x40a8b8
mov edx, edi
xor esi, esi
or edx, 0x40
cmp edx, 1
je 0x40a890
mov eax, edx
shr edx, 1
and eax, 1
lea ebp, [ebx + edx]
mov ebp, dword [ecx + ebp*4 + 0x28720]
sub ebp, eax
neg eax
xor ebp, eax
shr ebp, 2
and ebp, 0x1ff
mov eax, dword [ebp*4 + 0x4112b0]
add esi, eax
cmp edx, 1
jne 0x40a862
mov edx, edi
lea eax, [ebx + edi]
and edx, 0x7fffffe
add edx, 0x7fffff6
shl edx, 5
add edx, esi
inc edi
mov dword [ecx + eax*4 + 0x32a34], edx
mov eax, dword [ecx + 0x33678]
cmp edi, eax
jb 0x40a856
add ebx, 0x40
cmp ebx, 0x100
jl 0x40a7f6
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40a8d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
lea eax, [ecx + 0x32a34]
lea edx, [ecx + 0x32e34]
push esi
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xca8d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jmp 0x40a905
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, 4
mov eax, edi
mov dword [esp + 0x2c], eax
mov ebx, dword [edx]
add edx, 4
mov dword [esi], ebx
add esi, 4
dec edi
jne 0x40a918
mov edx, dword [esp + 0x20]
lea ecx, [ecx + edx*4 + 0x32e44]
mov dword [esp + 0x30], ecx
cmp eax, 0x400
jge 0x40a945
xor ebx, ebx
mov bl, byte [eax + 0x410aa8]
jmp 0x40a96e
cmp eax, 0x80000
jge 0x40a95e
mov edx, eax
xor ebx, ebx
shr edx, 9
mov bl, byte [edx + 0x410aa8]
add ebx, 0x12
jmp 0x40a96e
mov ecx, eax
xor ebx, ebx
shr ecx, 0x12
mov bl, byte [ecx + 0x410aa8]
add ebx, 0x24
mov ecx, ebx
mov edx, ebx
shr ecx, 1
and edx, 1
dec ecx
or edx, 2
mov esi, eax
shl edx, cl
xor ebp, ebp
mov edi, 1
mov dword [esp + 0x24], ebp
sub esi, edx
test ecx, ecx
je 0x40a9df
mov dword [esp + 0x28], ecx
mov ebp, dword [esp + 0x10]
mov ecx, edi
sub ecx, ebx
mov eax, esi
add ecx, edx
and eax, 1
add edi, edi
mov ecx, dword [ebp + ecx*4 + 0x28b1c]
mov ebp, eax
sub ecx, eax
or edi, eax
neg ebp
mov eax, dword [esp + 0x28]
xor ecx, ebp
mov ebp, dword [esp + 0x24]
shr ecx, 2
and ecx, 0x1ff
shr esi, 1
add ebp, dword [ecx*4 + 0x4112b0]
dec eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
jne 0x40a994
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add edx, ebx
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x30]
add edx, ebp
inc eax
mov dword [ecx], edx
add ecx, 4
cmp eax, 0x80
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jl 0x40a934
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add eax, 0x40
add ebx, 0x200
add edi, 0x100
add edx, 0x80
cmp eax, 0xcb8d
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jl 0x40a901
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x40aa60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
xor edi, edi
add ecx, 0x33634
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
xor esi, esi
mov edx, 1
mov ebx, 4
mov ecx, dword [esp + 0x18]
mov eax, edi
and eax, 1
mov ecx, dword [ecx + edx*4 + 0x28ce8]
mov ebp, eax
sub ecx, eax
add edx, edx
neg ebp
xor ecx, ebp
or edx, eax
shr ecx, 2
and ecx, 0x1ff
shr edi, 1
mov ebp, dword [ecx*4 + 0x4112b0]
add esi, ebp
dec ebx
jne 0x40aa87
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc edi
mov dword [eax], esi
add eax, 4
cmp edi, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jb 0x40aa7b
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword [edx + 0x33674], 0x10
pop ebx
add esp, 0xc
ret
Function at 0x40b050
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
and dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x40b09c
cmp dword [esi + 8], 0
je 0x40b09c
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x40b09c
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x5136065b
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2bcf7196
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x408944
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
add eax, 0xf2240517
add edi, 0xcdfffb42
call fcn.0040896f
xor dword [ebx], ecx
add ebx, 1
dec edi
mov eax, 0xb34e652c
cmp ebx, edx
jne fcn.00408944
ret
Function at 0x402106
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov word [ebp - 0x36], 0
mov word [ebp - 0x34], 0
mov dword [ebp - 0x18], 2
cmp dword [ebp + 8], 0
jne 0x402135
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x402182
mov dword [ebp - 0xc], 1
jmp 0x40215f
mov eax, dword [ebp - 0xc]
dec eax
mov eax, dword [eax*4 + 0x40c014]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x18]
add eax, edx
add eax, 4
mov dword [ebp - 0x18], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jl 0x40213e
mov eax, dword [ebp + 8]
dec eax
mov eax, dword [eax*4 + 0x40c014]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [0x40f070]
lea edx, [ebp - 0x2e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleScreenBufferInfo_8
sub esp, 8
mov ax, word [ebp - 0x2e]
mov word [ebp - 0x32], ax
mov word [ebp - 0x30], 1
mov dword [ebp - 0xc], 0
jmp 0x402216
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov al, byte [eax]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0x40
jle 0x4021e1
cmp byte [ebp - 0xd], 0x5a
jle 0x4021ed
cmp byte [ebp - 0xd], 0x60
jle 0x402213
cmp byte [ebp - 0xd], 0x7a
jg 0x402213
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0xc]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [0x40f014]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
add eax, ecx
mov ax, word [eax + 2]
or eax, 0xc
mov word [edx + 2], ax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jl 0x4021b0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40223c
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 7
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x402226
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4022b2
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov al, byte [eax]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0x40
jle 0x40227d
cmp byte [ebp - 0xd], 0x5a
jle 0x402289
cmp byte [ebp - 0xd], 0x60
jle 0x4022af
cmp byte [ebp - 0xd], 0x7a
jg 0x4022af
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0xc]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [0x40f014]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
add eax, ecx
mov ax, word [eax + 2]
or eax, 0xc
mov word [edx + 2], ax
inc dword [ebp - 0xc]
mov ax, word [ebp - 0x2e]
cwde
cmp eax, dword [ebp - 0xc]
jg 0x40224c
mov ax, word [ebp - 0x32]
dec eax
mov word [ebp - 0x3e], 0
mov word [ebp - 0x3c], 0
mov word [ebp - 0x3a], ax
mov word [ebp - 0x38], 0
mov edx, dword [0x40f014]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x3e]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x36]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x32]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
leave
ret
Function at 0x402308
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov word [ebp - 0x2a], 0
mov word [ebp - 0x28], 0
mov eax, dword [0x40f070]
lea edx, [ebp - 0x22]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleScreenBufferInfo_8
sub esp, 8
mov ax, word [ebp - 0x22]
mov word [ebp - 0x26], ax
mov word [ebp - 0x24], 1
mov eax, dword [ebp - 0x20]
dec eax
mov ecx, eax
mov ax, word [ebp - 0x26]
dec eax
mov edx, eax
mov eax, dword [ebp - 0x20]
dec eax
mov word [ebp - 0x32], 0
mov word [ebp - 0x30], cx
mov word [ebp - 0x2e], dx
mov word [ebp - 0x2c], ax
mov eax, dword [0x40f018]
test eax, eax
jne 0x4023b8
mov ax, word [ebp - 0x26]
movsx edx, ax
mov eax, dword [ebp - 0x24]
cwde
imul eax, edx
shl eax, 2
mov dword [esp], eax
call sym._malloc
mov dword [0x40f018], eax
mov edx, dword [0x40f018]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x32]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x26]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadConsoleOutputA_20
sub esp, 0x14
mov dword [ebp - 0xc], 0
jmp 0x4023d7
mov eax, dword [0x40f018]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 0xca
inc dword [ebp - 0xc]
mov ax, word [ebp - 0x26]
cwde
cmp eax, dword [ebp - 0xc]
jg 0x4023c1
mov edx, dword [0x40f018]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x32]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x26]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
leave
ret
Function at 0x4034e4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov word [ebp - 0x20], 0
mov word [ebp - 0x1e], 0
mov eax, dword [0x40f008]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x403645
mov eax, dword [0x40f008]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x403648
mov eax, dword [0x40f008]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [0x40f008]
mov ax, word [eax + 6]
mov edx, eax
mov eax, dword [0x40f008]
mov ax, word [eax + 2]
mov ecx, edx
sub cx, ax
mov eax, ecx
inc eax
mov word [ebp - 0x1c], ax
mov eax, dword [0x40f008]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [0x40f008]
mov eax, dword [eax + 4]
mov ecx, edx
sub cx, ax
mov eax, ecx
inc eax
mov word [ebp - 0x1a], ax
mov eax, dword [0x40f008]
lea ecx, [eax + 2]
mov eax, dword [0x40f008]
mov edx, dword [eax + 0xc]
mov eax, dword [0x40f070]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
mov eax, dword [0x40f008]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x40f008]
mov eax, dword [eax + 4]
cwde
mov dword [ebp - 0x10], eax
jmp 0x4035f5
mov eax, dword [0x40f008]
mov ax, word [eax + 2]
cwde
mov dword [ebp - 0xc], eax
jmp 0x4035e3
mov ecx, dword [0x40f01c]
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 4
add eax, dword [ebp - 0xc]
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 0xc]
mov eax, dword [0x40f008]
mov ax, word [eax + 6]
cwde
cmp eax, dword [ebp - 0xc]
jge 0x4035bd
inc dword [ebp - 0x10]
mov eax, dword [0x40f008]
mov eax, dword [eax + 8]
cwde
cmp eax, dword [ebp - 0x10]
jge 0x4035ae
mov eax, dword [0x40f008]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._free
mov eax, dword [0x40f008]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sym._free
mov eax, dword [0x40f008]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x18]
mov dword [0x40f008], eax
mov dword [0x40f010], 0
nop
jmp 0x403649
nop
jmp 0x403649
nop
leave
ret