joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4337c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
call fcn.0042f0d0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
movzx eax, word [edx]
test ax, ax
je 0x4337f9
mov ecx, eax
cmp cx, 0x20
ja 0x4337f9
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x4337e5
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
mov dword [ebp - 8], esi
cmp eax, 0x22
jne 0x43380c
movzx ecx, word [edx + 2]
xor eax, eax
cmp esi, 0x22
lea esi, [edx + 2]
sete al
lea eax, [eax*2 + 0x20]
movzx edi, ax
mov eax, dword [ebp - 8]
cmp ax, 0x22
cmovne esi, edx
movzx edx, cx
cmp cx, di
je 0x43384e
movzx ecx, cx
test cx, cx
je 0x433858
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
mov edx, eax
cmp ax, di
jne 0x433836
mov eax, dword [ebp - 8]
test dx, dx
je 0x43385b
add esi, 2
jmp 0x43385b
mov eax, dword [ebp - 8]
cmp ax, 0x22
jne 0x43386a
cmp word [esi], 0x20
jne 0x43386a
add esi, 2
movzx eax, word [esi]
test ax, ax
je 0x4339c9
mov ecx, eax
nop dword [eax + eax]
cmp cx, 0x22
jne 0x433927
movzx eax, word [esi + 2]
add esi, 2
mov ebx, esi
test ax, ax
je 0x4338b4
mov ecx, eax
nop word [eax + eax]
cmp cx, 0x22
je 0x4338b4
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x4338a0
mov edi, ebx
sub edi, esi
sar edi, 1
test edi, edi
jle 0x4338e6
mov ecx, dword [ebp - 4]
add edi, edi
mov edx, dword [ecx]
lea eax, [edi + 2]
push eax
call dword [edx]
push edi
push esi
push eax
mov dword [ebp - 8], eax
call fcn.0043fd00
mov eax, dword [ebp - 8]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
mov edi, eax
jmp 0x4338e8
xor edi, edi
mov ecx, dword [ebp - 4]
add ecx, 4
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
sub eax, esi
cmp eax, 4
jl 0x433907
mov eax, dword [ecx + 0xc]
mov dword [esi + eax], edi
add dword [ecx + 0x14], 4
jmp 0x433913
lea eax, [esi + 4]
push eax
call fcn.00436000
mov dword [eax + esi], edi
cmp word [ebx], 0
mov esi, ebx
je 0x4339b8
lea esi, [ebx + 2]
jmp 0x4339b8
cmp cx, 0x20
jbe 0x4339b5
mov ebx, esi
movzx ecx, cx
cmp cx, 0x22
je 0x433950
cmp cx, 0x20
jbe 0x433950
movzx eax, word [ebx + 2]
add ebx, 2
mov ecx, eax
test ax, ax
jne 0x433936
mov edi, ebx
sub edi, esi
sar edi, 1
test edi, edi
jle 0x433982
mov ecx, dword [ebp - 4]
add edi, edi
mov edx, dword [ecx]
lea eax, [edi + 2]
push eax
call dword [edx]
push edi
push esi
push eax
mov dword [ebp - 8], eax
call fcn.0043fd00
mov eax, dword [ebp - 8]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax], cx
mov edi, eax
jmp 0x433984
xor edi, edi
mov ecx, dword [ebp - 4]
add ecx, 4
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
sub eax, esi
cmp eax, 4
jl 0x4339a5
mov eax, dword [ecx + 0xc]
mov dword [esi + eax], edi
mov esi, ebx
add dword [ecx + 0x14], 4
jmp 0x4339b8
lea eax, [esi + 4]
push eax
call fcn.00436000
mov dword [eax + esi], edi
mov esi, ebx
jmp 0x4339b8
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x433880
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
pop edi
pop esi
shr eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4496bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00449531
Function at 0x223d30
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.00234980
mov eax, dword [0x242044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x240720
push eax
lea eax, [ebp - 0x1064]
xor ebx, ebx
push eax
mov dword [ebp - 0x1064], ebx
call fcn.0022b68f
mov eax, dword [ebp - 0x1064]
add esp, 0xc
cmp eax, ebx
jne 0x223d91
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0022b42f
mov esp, ebp
pop ebp
ret
push esi
push 2
push ebx
push eax
call fcn.0022c3b7
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.0022c5c7
mov edx, dword [ebp - 0x1064]
push ebx
push ebx
push edx
mov dword [ebp - 0x1068], eax
call fcn.0022c3b7
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
mov dword [ebp - 0x105c], ebx
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x1058], 0x67452301
mov dword [ebp - 0x1054], 0xefcdab89
mov dword [ebp - 0x1050], 0x98badcfe
mov dword [ebp - 0x104c], 0x10325476
mov dword [ebp - 0x1048], 0xc3d2e1f0
call fcn.0022c876
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x223e58
lea esp, [esp]
lea edx, [ebp - 0x1060]
push edx
push esi
lea ecx, [ebp - 0x1004]
call fcn.00223ba0
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
add ebx, esi
call fcn.0022c876
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x223e20
push edi
lea esi, [ebp - 0x1060]
call fcn.00223c40
mov edx, dword [ebp - 0x1064]
push edx
call fcn.0022b914
add esp, 8
pop esi
cmp ebx, dword [ebp - 0x1068]
jb 0x223d72
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0022b42f
mov esp, ebp
pop ebp
ret

Function at 0x2246f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00234980
mov eax, dword [0x242044]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebx]
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push edi
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [fcn.0023a1ec]
cmp eax, 4
je 0x22473c
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0022b42f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x22478e
push esi
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [fcn.0023a1ec]
mov esi, eax
test esi, esi
je 0x22478d
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.0022b82d
add edi, esi
add esp, 0x10
mov dword [0x244640], edi
cmp edi, dword [ebp - 0x1008]
jb 0x224745
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.0022b914
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0022b42f
mov esp, ebp
pop ebp
ret
Function at 0x224cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x242044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00232b50
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x224da6
cmp dword [0x242f30], 3
jne 0x224d28
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [fcn.0023a024]
push 0x240150
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0022bec5
add esp, 0xc
jmp 0x224d3a
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [fcn.0023a028]
push 0x240180
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0022bec5
push 0x240154
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0022b68f
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x224da6
push eax
push 1
push 0x200
push esi
call fcn.0022c876
mov edx, dword [ebp - 0x210]
push edx
call fcn.0022b914
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0022b42f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0022b42f
mov esp, ebp
pop ebp
ret

Function at 0x224dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x242044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x206
xor edi, edi
lea ecx, [ebp - 0x20a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x20c], ax
call fcn.00232b50
add esp, 0xc
mov dword [ebp - 0x210], edi
cmp esi, edi
je 0x224e7a
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [fcn.0023a028]
push 0x240164
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0022bec5
push 0x24015c
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0022b68f
mov eax, dword [ebp - 0x210]
add esp, 0x18
cmp eax, edi
je 0x224e7a
push eax
push 1
push 0x200
push esi
call fcn.0022c876
mov eax, dword [ebp - 0x210]
push eax
call fcn.0022b914
add esp, 0x14
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0022b42f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0022b42f
mov esp, ebp
pop ebp
ret
Function at 0x224f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x242044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x224f6a
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0022b42f
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0x504d534d
jne 0x224f5a
push 0x200
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0022c910
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x414]
not cl
mov byte [ebp + eax - 0x414], cl
inc eax
cmp eax, 0x200
jb 0x224f90
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00232b50
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
push 0x104
mov dword [ebp - 0x418], 0
call dword [fcn.0023a028]
push 0x24012c
lea edx, [ebp - 0x214]
push 0x104
push edx
call fcn.0022bec5
push 0x240148
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0022b68f
mov eax, dword [ebp - 0x418]
add esp, 0x18
test eax, eax
je 0x225040
push eax
push 1
lea edx, [ebp - 0x414]
push 0x200
push edx
call fcn.0022b82d
mov eax, dword [ebp - 0x418]
push eax
call fcn.0022b914
add esp, 0x14
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
call fcn.0022b42f
mov esp, ebp
pop ebp
ret
Function at 0x227150
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x227157
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x22722d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x23eb50]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x23eb50]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x23eb50]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x23eb50]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x23eb50]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x23eb50]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x23eb50]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x23eb50]
add ecx, 8
sub edx, 8
dec esi
jne 0x227170
pop edi
test edx, edx
je 0x22724a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x23eb50]
inc ecx
dec edx
jne 0x227231
not eax
pop esi
ret

Function at 0x227250
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x23eb50]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x23eb50]
mov dword [edx + 8], ecx
ret

Function at 0x2272a0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x23eb50]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x23eb50]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x229fa0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x23c3d0
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.0022b68f
add esp, 0xc
test eax, eax
je 0x229fc9
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push edi
push 2
push 0
push edx
call fcn.0022c3b7
mov eax, dword [ebp - 4]
push eax
call fcn.0022c5c7
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.0022c3b7
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.0022b988
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.0022c876
mov eax, dword [ebp - 4]
push eax
call fcn.0022b914
push 0x32
lea edi, [ebx + esi]
push 0
push edi
call fcn.00232b50
add esp, 0x40
call dword [fcn.0023a030]
push eax
call fcn.0022b4cf
add esp, 4
xor esi, esi
call fcn.0022b4e1
mov dword [edi + esi*4], eax
inc esi
cmp esi, 0xc
jl 0x22a036
mov ecx, dword [ebp + 8]
push 0x23c3d8
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0022b68f
add esp, 0xc
test eax, eax
je 0x22a066
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push 1
push ecx
push ebx
call fcn.0022b82d
mov edx, dword [ebp - 4]
push edx
call fcn.0022b914
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2c261fbd
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, str.C_A_
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
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
pop eax
nop
nop
nop
nop
mov esi, 0x210355d3
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x404010
Capabilities:
Manipulate console buffer

Disassembly:
mov edx, ecx
test edx, edx
push esi
push edi
je 0x40401d
lea esi, [edx + 0x1c]
jmp 0x40401f
xor esi, esi
movsx eax, word [edx + 4]
mov ecx, dword [edx + 8]
mov edi, dword [edx]
lea ecx, [ecx + eax*2 - 1]
test ecx, ecx
mov eax, dword [edx + 0xc]
je 0x404035
rep stosd dword es:[edi], eax
mov eax, dword [0x452e84]
mov ecx, dword [edx + 4]
mov edx, dword [edx]
push esi
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
pop edi
pop esi
ret 4

Function at 0x404060
Capabilities:
Manipulate console buffer

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00403b80
mov ebx, eax
test ebx, ebx
je 0x40411c
mov eax, dword [esp + 0x18]
test eax, eax
push edi
mov edi, dword [esp + 0x30]
je 0x4040e6
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0xc], ecx
add word [esp + 0xe], ax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0xe]
lea edx, [eax + ecx - 1]
mov ax, word [esi + 0x1c]
mov cx, word [esi + 0x1e]
mov word [esp + 0x12], dx
mov word [esp + 0x3e], cx
lea edx, [esi + 0xc]
push edx
mov word [esp + 0x40], ax
mov eax, dword [esp + 0x40]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferW]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
add word [esp + 0x1a], ax
mov dword [esp + 0x14], edx
mov edx, dword [0x452e84]
add word [esp + 0x16], ax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0x10
Function at 0x404068
Capabilities:
Manipulate console buffer

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00403b80
mov ebx, eax
test ebx, ebx
je 0x40411c
mov eax, dword [esp + 0x18]
test eax, eax
push edi
mov edi, dword [esp + 0x30]
je 0x4040e6
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0xc], ecx
add word [esp + 0xe], ax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0xe]
lea edx, [eax + ecx - 1]
mov ax, word [esi + 0x1c]
mov cx, word [esi + 0x1e]
mov word [esp + 0x12], dx
mov word [esp + 0x3e], cx
lea edx, [esi + 0xc]
push edx
mov word [esp + 0x40], ax
mov eax, dword [esp + 0x40]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferW]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
add word [esp + 0x1a], ax
mov dword [esp + 0x14], edx
mov edx, dword [0x452e84]
add word [esp + 0x16], ax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
pop edi
pop esi
pop ebx
add esp, 0x20
ret 0x10
Function at 0x404360
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x14]
add edi, eax
sub ebx, eax
lea eax, [edi - 1]
add ebx, ecx
cmp ecx, eax
jae 0x4043e2
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
lea ecx, [esp + 0x14]
push ecx
xor ecx, ecx
mov cx, word [esi + 0xa]
xor ebp, ebp
mov word [esp + 0x14], bp
mov word [esp + 0x16], bx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call edi
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x14]
push eax
xor eax, eax
mov ax, word [esi + 0x30]
inc ebx
mov word [esp + 0x14], bp
mov word [esp + 0x16], bx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call edi
mov eax, dword [esi + 0x2c]
pop edi
inc eax
mov dword [esi + 0x2c], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp edi, dword [esi + 0x10]
jae 0x4044ed
mov ecx, dword [esi + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
lea edx, [esp + 0x14]
push edx
xor edx, edx
mov dx, word [esi + 0xa]
mov word [esp + 0x14], 0
mov word [esp + 0x16], bx
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call ebp
mov dx, word [esi + 0x22]
mov cx, word [esi + 0x20]
mov eax, dword [esi + 0x20]
mov word [esp + 0x12], dx
mov word [esp + 0x10], cx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
inc word [esp + 0x1e]
lea edx, [esi + 8]
push edx
mov edx, dword [esi]
push eax
mov dword [esp + 0x28], ecx
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferA]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx - 1]
mov ecx, dword [esi + 0xc]
shl edi, 4
mov eax, dword [edi + ecx + 0xc]
add edi, ecx
cmp eax, 0xffffffff
mov dword [esp + 0x14], edx
jne 0x40448e
mov eax, dword [esi + 0x18]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push eax
push ecx
push edx
call fcn.004143d0
sub eax, dword [edi]
add esp, 0xc
sar eax, 1
mov dword [edi + 0xc], eax
mov ax, word [esp + 0x14]
mov word [esp + 0x12], ax
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi]
mov word [esp + 0x14], 0
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x18]
push eax
xor eax, eax
mov ax, word [esi + 0x30]
mov word [esp + 0x14], 0
mov word [esp + 0x16], bx
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call ebp
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
inc ecx
inc eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x404500
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x1c]
sub edi, eax
add edi, ecx
xor ebp, ebp
cmp ecx, eax
jbe 0x40457a
mov edx, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
lea eax, [esp + 0x14]
push eax
xor eax, eax
mov ax, word [esi + 0xa]
mov word [esp + 0x14], bp
mov word [esp + 0x16], di
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call ebx
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x14]
push edx
xor edx, edx
mov dx, word [esi + 0x30]
dec edi
mov word [esp + 0x14], bp
mov word [esp + 0x16], di
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call ebx
mov eax, dword [esi + 0x2c]
pop edi
dec eax
mov dword [esi + 0x2c], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp eax, ebp
je 0x404671
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x14]
push ecx
xor ecx, ecx
mov cx, word [esi + 0xa]
mov word [esp + 0x14], bp
mov word [esp + 0x16], di
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dx, ax
mov dword [esp + 0x1c], eax
mov ax, word [esi + 0x22]
mov dword [esp + 0x20], ecx
inc ax
mov word [esp + 0x12], ax
lea ecx, [esi + 8]
push ecx
mov ecx, dword [esi]
mov word [esp + 0x14], dx
mov edx, dword [esp + 0x14]
push edx
push ebp
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ScrollConsoleScreenBufferA]
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x1c]
dec ebx
mov eax, ebx
shl eax, 4
add eax, ecx
mov dword [esi + 0x28], ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
jne 0x40461d
mov eax, dword [esi + 0x18]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push eax
push ecx
push edx
call fcn.004143d0
sub eax, dword [ebx]
add esp, 0xc
sar eax, 1
mov dword [ebx + 0xc], eax
mov ax, word [esp + 0x14]
mov word [esp + 0x12], ax
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx]
mov word [esp + 0x14], bp
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x18]
push eax
xor eax, eax
mov ax, word [esi + 0x30]
mov word [esp + 0x14], bp
mov word [esp + 0x16], di
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
dec dword [esi + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret