joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e2f
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov word [ebp - 0x20], 0
mov word [ebp - 0x1e], 0
mov word [ebp - 0x14], 0xd4
mov word [ebp - 0x12], 0xb0
mov dword [ebp - 0x10], 0
jmp 0x403ef5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
shl edx, 3
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
shl edx, 3
add eax, edx
mov ax, word [eax + 2]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
shl edx, 3
add eax, edx
mov ax, word [eax + 4]
movsx edx, ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
shl ecx, 3
add eax, ecx
mov ax, word [eax]
cwde
mov ecx, edx
sub ecx, eax
mov eax, ecx
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
lea eax, [edx + eax]
mov al, byte [eax]
test al, al
jne 0x403ef2
mov ecx, dword [ebp - 0xc]
movzx edx, word [ebp - 0x12]
mov eax, dword [0x40f070]
mov dword [esp + 0x10], 0x40f060
mov ebx, dword [ebp - 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x10]
jg 0x403e5a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
dec edx
shl edx, 3
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
dec edx
shl edx, 3
add eax, edx
mov ax, word [eax + 2]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
dec edx
shl edx, 3
add eax, edx
mov ax, word [eax + 4]
movsx edx, ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
dec ecx
shl ecx, 3
add eax, ecx
mov ax, word [eax]
cwde
mov ecx, edx
sub ecx, eax
mov eax, ecx
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0xc]
dec edx
add eax, edx
mov al, byte [eax]
test al, al
jne 0x403fa2
mov ecx, dword [ebp - 0xc]
movzx edx, word [ebp - 0x14]
mov eax, dword [0x40f070]
mov dword [esp + 0x10], 0x40f060
mov ebx, dword [ebp - 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
jmp 0x404000
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0xc]
dec edx
add eax, edx
mov al, byte [eax]
cmp al, 1
jne 0x404000
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [0x40f070]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleCursorInfo_8
sub esp, 8
mov dword [ebp - 0x18], 1
mov eax, dword [0x40f070]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorInfo_8
sub esp, 8
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x404005
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 1
mov word [ebp - 0x20], 0x14
mov word [ebp - 0x1e], 7
mov word [ebp - 0x28], 0x12
mov word [ebp - 0x26], 5
mov word [ebp - 0x24], 0x3b
mov word [ebp - 0x22], 0xf
mov word [ebp - 0x2c], 0
mov word [ebp - 0x2a], 1
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
cmp dword [ebp + 8], 5
ja 0x40444e
mov eax, dword [ebp + 8]
shl eax, 2
mov eax, dword [eax + 0x40d484]
jmp eax
jmp 0x404450
leave
ret
Function at 0x4081db
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov word [ebp - 0x14], 0x14
mov word [ebp - 0x12], 7
mov word [ebp - 0x1c], 0x12
mov word [ebp - 0x1a], 5
mov word [ebp - 0x18], 0x3e
mov word [ebp - 0x16], 0xf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0x40823f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x408233
mov dword [ebp - 0xc], 1
jmp 0x408245
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x408214
cmp dword [ebp - 0xc], 0
je 0x408336
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call dbg.DrawBox
mov eax, dword [ebp - 0x10]
add eax, 0x4f
mov dword [esp + 4], eax
mov dword [esp], 0x40dc8c
call sym._printf
mov ax, word [ebp - 0x12]
add eax, 2
mov word [ebp - 0x12], ax
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [ebp - 0x10]
fld dword [eax + 0x60]
fstp qword [esp + 4]
mov dword [esp], 0x40dcac
call sym._printf
mov ax, word [ebp - 0x12]
add eax, 2
mov word [ebp - 0x12], ax
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [ebp - 0x10]
fld dword [eax + 0x64]
fstp qword [esp + 4]
mov dword [esp], 0x40dcd0
call sym._printf
mov ax, word [ebp - 0x12]
add eax, 2
mov word [ebp - 0x12], ax
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [ebp - 0x10]
fld dword [eax + 0x68]
fstp qword [esp + 4]
mov dword [esp], 0x40dcf4
call sym._printf
mov eax, 1
jmp 0x40835e
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40dd14
call sym._printf
mov eax, 0
leave
ret
Function at 0x40948e
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov word [ebp - 0x1e], 0x1e
mov word [ebp - 0x1c], 2
mov word [ebp - 0x1a], 0xca
movzx edx, word [ebp - 0x1a]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x1e]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
lea edx, [ebp - 0x2f]
mov ebx, 0x40e0d8
mov eax, 0xb
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40f070]
lea edx, [ebp - 0x24]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x1e]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x2f]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputCharacterA_20
sub esp, 0x14
mov word [ebp - 0x1e], 0x29
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [ebp + 8]
add eax, 3
mov dword [esp], eax
call sym._puts
mov word [ebp - 0x1e], 8
mov word [ebp - 0x1c], 4
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x40e03b
call sym._printf
mov eax, dword [ebp + 8]
add eax, 0x17
mov dword [esp + 4], eax
mov dword [esp], 0x40e04d
call sym._printf
mov eax, dword [ebp + 8]
fld dword [eax + 0x20]
fstp qword [esp + 4]
mov dword [esp], 0x40e064
call sym._printf
mov eax, dword [ebp + 8]
fld dword [eax + 0x24]
fstp qword [esp + 4]
mov dword [esp], 0x40e07a
call sym._printf
mov eax, dword [ebp + 8]
fld dword [eax + 0x28]
fstp qword [esp + 4]
mov dword [esp], 0x40e093
call sym._printf
mov eax, dword [ebp + 8]
fld dword [eax + 0x30]
fstp qword [esp + 4]
mov dword [esp], 0x40e0a9
call sym._printf
mov eax, dword [ebp + 8]
fld dword [eax + 0x34]
fstp qword [esp + 4]
mov dword [esp], 0x40e0c2
call sym._printf
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
leave
ret
Function at 0x409620
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov word [ebp - 0x1e], 0x17
mov word [ebp - 0x1c], 2
mov word [ebp - 0x1a], 0xca
movzx edx, word [ebp - 0x1a]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x24]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x1e]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xe
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
lea edx, [ebp - 0x33]
mov ebx, 0x40e1d0
mov eax, 0xf
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40f070]
lea edx, [ebp - 0x24]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x1e]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0xe
lea edx, [ebp - 0x33]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputCharacterA_20
sub esp, 0x14
mov word [ebp - 0x1e], 0x26
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [ebp + 8]
add eax, 5
mov dword [esp], eax
call sym._puts
mov word [ebp - 0x1e], 8
mov word [ebp - 0x1c], 4
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0x40e0e3
call sym._printf
mov eax, dword [ebp + 8]
add eax, 5
mov dword [esp + 4], eax
mov dword [esp], 0x40e0f6
call sym._printf
mov eax, dword [ebp + 8]
add eax, 0x23
mov dword [esp + 4], eax
mov dword [esp], 0x40e10b
call sym._printf
mov eax, dword [ebp + 8]
add eax, 0x26
mov dword [esp + 4], eax
mov dword [esp], 0x40e120
call sym._printf
mov eax, dword [ebp + 8]
fld dword [eax + 0x30]
fstp qword [esp + 4]
mov dword [esp], 0x40e135
call sym._printf
mov eax, dword [ebp + 8]
fld dword [eax + 0x34]
fstp qword [esp + 4]
mov dword [esp], 0x40e14c
call sym._printf
mov eax, dword [ebp + 8]
fld dword [eax + 0x38]
fstp qword [esp + 4]
mov dword [esp], 0x40e163
call sym._printf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov dword [esp + 4], eax
mov dword [esp], 0x40e17a
call sym._printf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
mov dword [esp + 4], eax
mov dword [esp], 0x40e18f
call sym._printf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov dword [esp + 4], eax
mov dword [esp], 0x40e1a4
call sym._printf
mov eax, dword [ebp + 8]
fld dword [eax + 0x48]
fstp qword [esp + 4]
mov dword [esp], str._n_t
call sym._printf
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40980a
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov word [ebp - 0x1c], 0x18
mov word [ebp - 0x1a], 7
mov word [ebp - 0x24], 0x14
mov word [ebp - 0x22], 5
mov word [ebp - 0x20], 0x39
mov word [ebp - 0x1e], 0xf
mov eax, 0
mov dword [ebp - 0x14], eax
mov eax, 0
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
jmp 0x4098a3
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x43]
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._strcmp
test eax, eax
jne 0x409897
mov eax, dword [ebp - 0x18]
fld dword [eax + 0x60]
fld dword [ebp - 0x14]
faddp st(1)
fstp dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
fld dword [eax + 0x64]
fld dword [ebp - 0x10]
faddp st(1)
fstp dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
fld dword [eax + 0x68]
fld dword [ebp - 0xc]
faddp st(1)
fstp dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x409854
lea eax, [ebp - 0x24]
mov dword [esp], eax
call dbg.DrawBox
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
fld dword [ebp - 0x14]
fstp qword [esp + 4]
mov dword [esp], 0x40e1df
call sym._printf
mov ax, word [ebp - 0x1a]
add eax, 3
mov word [ebp - 0x1a], ax
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
fld dword [ebp - 0x10]
fstp qword [esp + 4]
mov dword [esp], 0x40e1f9
call sym._printf
mov ax, word [ebp - 0x1a]
add eax, 3
mov word [ebp - 0x1a], ax
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
fld dword [ebp - 0xc]
fstp qword [esp + 4]
mov dword [esp], 0x40e213
call sym._printf
mov eax, 1
leave
ret
Function at 0x40994f
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov word [ebp - 0x20], 0x18
mov word [ebp - 0x1e], 7
mov word [ebp - 0x28], 0x14
mov word [ebp - 0x26], 5
mov word [ebp - 0x24], 0x39
mov word [ebp - 0x22], 0xf
mov eax, 0
mov dword [ebp - 0x14], eax
mov eax, 0
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jmp 0x4099f4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x18], eax
jmp 0x4099e2
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4099d9
mov eax, dword [ebp - 0x18]
fld dword [eax + 0x20]
fld dword [ebp - 0x14]
faddp st(1)
fstp dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
fld dword [eax + 0x24]
fld dword [ebp - 0x10]
faddp st(1)
fstp dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4099a7
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x409999
lea eax, [ebp - 0x28]
mov dword [esp], eax
call dbg.DrawBox
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
fld dword [ebp - 0x14]
fstp qword [esp + 4]
mov dword [esp], 0x40e22d
call sym._printf
mov ax, word [ebp - 0x1e]
add eax, 3
mov word [ebp - 0x1e], ax
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
fld dword [ebp - 0x10]
fstp qword [esp + 4]
mov dword [esp], 0x40e249
call sym._printf
mov ax, word [ebp - 0x1e]
add eax, 3
mov word [ebp - 0x1e], ax
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
fld dword [ebp - 0xc]
fstp qword [esp + 4]
mov dword [esp], 0x40e265
call sym._printf
mov eax, 1
leave
ret
Function at 0x409b6d
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov word [ebp - 0x1c], 0x14
mov word [ebp - 0x1a], 0xd
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
jmp 0x409c0c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x14], eax
jmp 0x409ba5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409bc1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x409b9c
cmp dword [ebp - 0x14], 0
je 0x409c00
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
jmp 0x409bfa
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x409bf1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x409bd2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x409b8e
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x40e2a8
call sym._printf
mov eax, 1
leave
ret
Function at 0x409f59
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 1
mov word [ebp - 0x10], 4
mov word [ebp - 0xe], 2
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40e304
call sym._printf
mov word [ebp - 0x10], 4
mov word [ebp - 0xe], 5
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40e370
call sym._printf
mov word [ebp - 0xe], 8
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40e3fc
call sym._printf
mov word [ebp - 0xe], 0xb
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40e47c
call sym._printf
mov word [ebp - 0xe], 0xd
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40e4a8
call sym._printf
mov word [ebp - 0xe], 0xf
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40e4e8
call sym._printf
mov word [ebp - 0xe], 0x11
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40e534
call sym._printf
call dbg.ClearData
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x40a574
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov word [ebp - 0x2e], 0
mov word [ebp - 0x2c], 1
mov word [ebp - 0x38], 0x45
mov word [ebp - 0x36], 0
mov word [ebp - 0xe], 0x70
mov word [ebp - 0xc], 0x24
mov word [ebp - 0xa], 0xac
jmp 0x40a5a7
nop
mov eax, dword [0x40f080]
lea edx, [ebp - 0x54]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
lea edx, [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadConsoleInputA_16
sub esp, 0x10
mov eax, dword [ebp - 0x50]
cmp ax, 2
jne 0x40a5a6
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp ax, 0x44
jle 0x40a712
mov eax, dword [ebp - 0x38]
cmp ax, 0x4c
jg 0x40a712
mov ax, word [ebp - 0x3a]
test ax, ax
jne 0x40a712
movzx edx, word [ebp - 0xa]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 8
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov eax, dword [ebp - 0x48]
cmp eax, 1
jne 0x40a70c
movzx edx, word [ebp - 0xe]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 8
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov eax, dword [0x40f070]
lea edx, [ebp - 0x2a]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleScreenBufferInfo_8
sub esp, 8
mov ax, word [ebp - 0x2a]
movsx edx, ax
mov eax, dword [ebp - 0x28]
cwde
sub eax, 2
imul eax, edx
mov dword [ebp - 0x14], eax
mov ax, word [ebp - 0x22]
movzx edx, ax
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2e]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov eax, dword [0x40f070]
lea edx, [ebp - 0x34]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x2e]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x20
mov dword [esp], eax
call sym._FillConsoleOutputCharacterA_20
sub esp, 0x14
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x2e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
leave
ret
nop
jmp 0x40a5a7
movzx edx, word [ebp - 0xc]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 8
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
jmp 0x40a5a7
Function at 0x40ac4b
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov word [ebp - 0x18], 0
mov word [ebp - 0x16], 0
mov word [ebp - 0x1c], 0x12
mov word [ebp - 0x1a], 5
mov word [ebp - 0xe], 0xb4
mov word [ebp - 0x24], 0x1f
mov word [ebp - 0x22], 9
mov word [ebp - 0x20], 0x30
mov word [ebp - 0x1e], 0xd
mov dword [esp], 0x168
call sym._malloc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
jmp 0x40acc1
mov eax, dword [ebp - 0x14]
shl eax, 2
mov edx, eax
add edx, dword [ebp - 0xc]
mov ax, word [ebp - 0xe]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x14]
shl eax, 2
add eax, dword [ebp - 0xc]
mov byte [eax], 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x59
jle 0x40ac9f
mov eax, dword [0x40f070]
lea edx, [ebp - 0x24]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
mov eax, dword [ebp - 0x24]
dec eax
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x1e]
inc eax
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x20]
inc eax
mov word [ebp - 0x20], ax
mov ax, word [ebp - 0x22]
dec eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call dbg.DrawBox
leave
ret

Function at 0x40af80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x40afa6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b03a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x40aff5
cmp eax, 0x40
je 0x40aff5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x40af99
cmp eax, 0x40
je 0x40af99
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x40af99
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]