joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443660
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [0x6869c4]
mov ecx, dword [eax + 0x958]
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push 0
push ecx
call esi
test eax, eax
je 0x4436a3
mov edx, dword [0x6869c4]
mov eax, dword [edx + 0x954]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x6869c4]
mov edx, dword [ecx + 0x958]
push 0xffffffffffffffff
push edx
call esi
movsx esi, word [0x6ac39a]
imul esi, esi, 0x80c
lea eax, [esp + 8]
push eax
add esi, 0x6a9350
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edi, [esi + 4]
push edi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [esi]
push 0
push 0
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ax, word [0x6ac39a]
call fcn.00443700
pop edi
mov byte [0x6ac398], 0
mov word [0x6ac39a], 0xffff
pop esi
add esp, 0x10
ret

Function at 0x443700
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x13c
push ebx
push ebp
movsx eax, ax
push esi
mov ecx, eax
push edi
imul ecx, ecx, 0x80c
push eax
push 0x6ac828
lea edx, [esp + 0x54]
push str._scache_03d.map
push edx
lea ebp, [ecx + 0x6a9350]
call fcn.006238e3
mov eax, dword [ebp]
add esp, 0x10
xor ebx, ebx
push ebx
push ebx
lea esi, [ebp + 4]
push esi
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [0x721e18], ebx
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], bl
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
jne 0x44376a
call fcn.00542b60
cmp dword [0x721e18], 3
jl 0x443817
mov edx, dword [ebp]
lea eax, [ebp + 0xc]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFileEx]
push edx
push eax
mov edi, 0x443c20
xor edx, edx
mov ebx, 0x800
lea esi, [esp + 0x28]
call fcn.00442d90
add esp, 0xc
lea esi, [esp + 0x13]
call fcn.00442e00
mov al, byte [esp + 0x13]
test al, al
je 0x443854
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp dword [edi], 0x68656164
jne 0x4437fc
cmp dword [edi + 0x7fc], 0x666f6f74
jne 0x4437fc
mov eax, dword [edi + 8]
cmp eax, ebx
jl 0x4437fc
cmp eax, 0x18000000
jg 0x4437fc
lea eax, [edi + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4437e8
sub eax, edx
cmp eax, 0x1f
ja 0x4437fc
cmp dword [edi + 4], 7
je 0x443876
xor eax, eax
mov ecx, 0x200
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esi], ecx
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
mov ecx, dword [ebp]
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x443854
mov eax, dword [ebp]
push ebx
lea edx, [esp + 0x18]
push edx
push 0x800
lea edi, [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443854
cmp dword [esp + 0x14], 0x800
je 0x4437c0
push 1
lea edx, [esp + 0x50]
push 0x7e
push 0x89
mov dword [0x722ae4], edx
call fcn.0057eea0
add esp, 0xc
mov dword [ebp], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
Function at 0x4439f0
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x6ac3c0], eax
mov eax, dword [0x721e18]
test eax, eax
jne 0x443a12
call fcn.00542b60
cmp dword [0x721e18], 3
jge 0x443a3c
lea eax, [esp]
push eax
push 0
push 0
push 0x443b30
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6ac3c4], eax
pop ecx
ret
push 0
push 0
push 0
push 0x443a60
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x6ac3c4], eax
pop ecx
ret

Function at 0x443c50
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x3c]
push 0
lea eax, [esp + 4]
push eax
push 0x10
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443c6f
cmp dword [esp], 0x10
je 0x443c84
mov edx, dword [esi + 0x38]
push edx
push str.Failed_to_read_data_file_header__s_n
call fcn.006244cc
add esp, 8
xor al, al
pop ecx
ret
mov eax, dword [esi]
cmp eax, dword [esp + 8]
je 0x443cb0
xor ecx, ecx
mov edx, esi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 0x38]
push eax
push str.Invalid_data_file_id_in_data_file__s_n
call fcn.006244cc
add esp, 8
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x443cc0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x3c]
push ebx
push edi
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne bl
test bl, bl
je 0x443d1c
mov edi, dword [esi + 8]
sub edi, dword [esi + 4]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443d1a
cmp dword [esp + 8], edi
jne 0x443d1a
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
pop edi
mov al, 1
pop ebx
pop ecx
ret
xor bl, bl
mov ecx, dword [esi + 0x38]
push ecx
push str.Invalid_format_in_data_file__s_n
call fcn.006244cc
add esp, 8
pop edi
mov al, bl
pop ebx
pop ecx
ret

Function at 0x443d40
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x3c]
push ebx
push esi
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne bl
test bl, bl
je 0x443d9f
mov eax, dword [edi + 0xc]
lea esi, [eax + eax*2]
shl esi, 2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push eax
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443d9d
cmp dword [esp + 8], esi
jne 0x443d9d
mov ecx, dword [edi + 0xc]
pop esi
mov al, 1
mov dword [edi + 0x14], ecx
pop ebx
pop ecx
ret
xor bl, bl
mov edx, dword [edi + 0x38]
push edx
push str.Invalid_format_in_data_file__s_n
call fcn.006244cc
add esp, 8
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4449f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
xor eax, eax
push 4
mov dword [0x6ac470], eax
push 0x3000
mov dword [0x6ac474], eax
push 0x1b40000
mov dword [0x6ac478], eax
push 0x40000000
mov dword [0x6ac47c], eax
call esi
push 4
push 0x3000
push 0x4000
push 0
mov dword [0x6ac470], eax
mov dword [0x6ac474], 0x40440000
call esi
movsx ecx, word [0x6869c8]
push 4
push 0x3000
shl ecx, 0x14
push ecx
push 0
mov dword [0x6ac478], eax
call esi
mov dword [0x6ac47c], eax
mov eax, dword [0x6ac470]
test eax, eax
jne 0x444afc
mov byte [esp + 8], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.Psapi.dll
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x444ad3
push str.GetMappedFileNameA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x444acc
push 0x104
lea edx, [esp + 0xc]
push edx
push 0x40000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 8]
test al, al
lea eax, [esp + 8]
jne 0x444ae4
mov eax, str.Error
push 0
push eax
push str.Cannot_allocate_required_memory._Some_other_application_has_loaded_where_Halo_needs_to_be_located.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4493c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
push 0x8000
mov byte [esp + 0x13], 1
lea esi, [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, dword [esp + 0x118]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
mov dword [esp + 0x14], eax
call edi
cmp eax, 0xffffffff
je 0x449402
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x108
ret
lea edx, [esp + 0x14]
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x449410
mov cl, byte [esp + 0x14]
mov al, 0x5c
cmp cl, al
push ebp
jne 0x449456
cmp byte [esp + 0x19], al
jne 0x449456
lea eax, [esp + 0x1a]
push 0x660190
push eax
call fcn.00625500
add esp, 8
test eax, eax
je 0x4494b7
inc eax
push 0x660190
push eax
call fcn.00625500
mov esi, eax
add esp, 8
test esi, esi
je 0x4494b7
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x449465
mov ebx, dword [esp + 0x11c]
push 0x660190
inc esi
push esi
call fcn.00625500
mov esi, eax
add esp, 8
test esi, esi
je 0x4494a7
mov bl, byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
jne 0x44949c
push 0
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jne 0x44949c
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 1
mov byte [esi], bl
je 0x44945e
jmp 0x4494b7
cmp byte [esp + 0x13], 1
jne 0x4494b7
push 0
push ebx
call ebp
test eax, eax
jne 0x4494bc
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x472e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x68
mov eax, dword [0x6f1cb4]
push ebx
push ebp
push esi
mov esi, eax
inc eax
cmp esi, eax
push edi
mov dword [esp + 0x18], esi
mov dword [0x6f1cb4], eax
jge 0x472e9a
add eax, 0xffffffe0
cmp esi, eax
jl 0x472e9a
mov ebp, esi
and ebp, 0x1f
imul ebp, ebp, 0x308
add ebp, 0x6f1cbc
mov dword [esp + 0x10], ebp
jmp 0x472ea6
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov dword [ebp], esi
add ebp, 4
mov word [ebp], 0
mov eax, dword [0x6f1cb8]
mov dword [esp + 0x1c], eax
xor eax, 0x69746572
lea edi, [esp + 0x1c]
mov word [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], eax
call fcn.004d0610
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x47302f
jmp 0x472ef0
xor edi, edi
lea esp, [esp]
mov eax, dword [ebx + 0x38]
cmp eax, dword [ebx + 0x34]
je 0x472f02
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + eax*4]
mov al, 1
jmp 0x472f0a
mov dword [esp + 0x14], edi
xor al, al
mov edx, edi
cmp al, 1
jne 0x472fce
dec dword [edx + 4]
jne 0x472f3d
mov eax, dword [ebx + 0x38]
cmp eax, dword [ebx + 0x34]
je 0x472fc3
mov edx, dword [ebx + 0x30]
mov ecx, dword [edx + eax*4]
inc eax
cdq
idiv dword [ebx + 0x28]
mov dword [esp + 0x14], ecx
mov cl, 1
mov dword [ebx + 0x38], edx
mov edx, dword [esp + 0x14]
mov al, cl
cmp al, 1
mov ecx, 0xb
mov esi, edx
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0xc]
lea edi, [ebx + 0x44]
mov ecx, 8
mov byte [ebx + 0x40], 1
rep movsd dword es:[edi], dword [esi]
jne 0x472fce
lea edi, [ebx + 8]
mov ebx, dword [esp + 0x54]
mov ecx, 8
lea esi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebp]
mov esi, dword [esp + 0x10]
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x50]
test eax, eax
sete dl
shl ecx, 5
lea edi, [ecx + esi + 8]
mov ecx, 8
lea esi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebp]
mov esi, dword [esp + 0x10]
shl ecx, 4
lea ecx, [ecx + esi + 0x208]
mov byte [esp + 0x3d], dl
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov dword [ecx], esi
mov dword [ecx + 4], edx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
jmp 0x473014
mov dword [esp + 0x14], edi
xor cl, cl
jmp 0x472f37
movzx ecx, word [ebp]
mov edx, dword [esp + 0x10]
shl ecx, 5
lea edi, [ecx + edx + 8]
lea esi, [ebx + 8]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebp]
or eax, 0xffffffff
shl ecx, 4
lea edx, [ecx + edx + 0x208]
mov byte [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
mov dword [edx], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
inc word [ebp]
lea edi, [esp + 0x1c]
call fcn.004d0610
mov ebx, eax
test ebx, ebx
jne 0x472eea
mov esi, dword [esp + 0x18]
mov ebx, esi
mov edx, ebp
call fcn.00473650
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x490e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov dl, byte [0x6b1520]
test dl, dl
je 0x490ef2
cmp ecx, 0x100
mov edx, 0xffffffff
mov byte [esp], 0
mov byte [esp + 1], 0xff
mov word [esp + 2], dx
je 0x490e72
cmp ecx, 0x104
je 0x490e72
cmp ecx, 0x102
je 0x490e56
cmp ecx, 0x106
jne 0x490ef2
cmp eax, 0x80
mov cl, al
mov byte [esp + 1], cl
mov word [esp + 2], dx
jae 0x490e90
mov ax, word [eax*2 + 0x65bca8]
jmp 0x490e86
mov ax, word [eax*2 + 0x65baa8]
cmp ax, dx
je 0x490ef2
or cl, 0xff
mov byte [esp + 1], cl
cmp ax, dx
mov word [esp + 2], ax
jne 0x490e95
cmp cl, 0xff
je 0x490ef2
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
xor ebx, ebx
mov bx, ax
push 0x11
shr ebx, 0xf
and bl, 1
call esi
test ah, ah
jns 0x490eb9
or bl, 2
jmp 0x490ebc
and bl, 0xfd
push 0x12
call esi
test ah, ah
jns 0x490ec9
or bl, 4
jmp 0x490ecc
and bl, 0xfb
mov ax, word [0x6b1624]
cmp ax, 0x40
pop esi
mov byte [esp + 4], bl
pop ebx
jge 0x490ef2
mov ecx, dword [esp]
movsx eax, ax
mov dword [eax*4 + 0x6b1626], ecx
inc word [0x6b1624]
pop ecx
ret
Function at 0x496b60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
cmp byte [0x87a7a6], 4
mov dword [esp + 4], 0x3f800000
mov dword [esp + 8], 0x3f333333
mov dword [esp + 0xc], 0x3f333333
mov dword [esp + 0x10], 0x3f333333
jb 0x496c29
mov al, byte [0x6b2e24]
test al, al
je 0x496c29
call fcn.00496500
cmp eax, 0xffffffff
je 0x496c29
mov ecx, dword [0x6b2e28]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
imul eax, eax, 0x124
add eax, edx
test edi, edi
push esi
mov esi, eax
mov dword [esi + 0x120], 0
mov eax, edi
jne 0x496bd7
lea eax, [esp + 8]
mov ecx, dword [eax]
lea edx, [esi + 0x110]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x20]
push ecx
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x20]
push edx
lea edi, [esi + 0xd]
push 0xfe
push edi
call fcn.00625d52
push 0x6691e8
push edi
call fcn.00625680
add esp, 0x18
test eax, eax
setne al
mov byte [esi + 0xc], al
mov eax, edi
call fcn.00496f70
pop esi
pop edi
add esp, 0x10
ret

Function at 0x496c30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
mov al, byte [0x6b2e24]
test al, al
mov dword [esp + 4], 0x3f800000
mov dword [esp + 8], 0x3f333333
mov dword [esp + 0xc], 0x3f333333
mov dword [esp + 0x10], 0x3f333333
je 0x496cec
call fcn.00496500
cmp eax, 0xffffffff
je 0x496cec
mov ecx, dword [0x6b2e28]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
imul eax, eax, 0x124
add eax, edx
test edi, edi
push esi
mov esi, eax
mov dword [esi + 0x120], 0
mov eax, edi
jne 0x496c9a
lea eax, [esp + 8]
mov ecx, dword [eax]
lea edx, [esi + 0x110]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x20]
push ecx
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x20]
push edx
lea edi, [esi + 0xd]
push 0xfe
push edi
call fcn.00625d52
push 0x6691e8
push edi
call fcn.00625680
add esp, 0x18
test eax, eax
setne al
mov byte [esi + 0xc], al
mov eax, edi
call fcn.00496f70
pop esi
pop edi
add esp, 0x10
ret

Function at 0x496e20
Capabilities:
Manipulate console buffer

Disassembly:
mov al, byte [0x6b2e40]
test al, al
je 0x496ec6
push edi
mov edi, dword [0x6b2e34]
test edi, edi
je 0x496ec5
push ebx
push esi
lea esi, [edi + 0xb4]
mov eax, 0x6b2d20
lea esp, [esp]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x496e78
test cl, cl
je 0x496e74
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x496e78
add eax, 2
add esi, 2
test cl, cl
jne 0x496e50
xor eax, eax
jmp 0x496e7d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop esi
pop ebx
je 0x496eab
call fcn.00497180
mov eax, dword [0x6b2e34]
push 0xff
add eax, 0xb4
push eax
push 0x6b2d20
call fcn.00623ce0
mov edi, dword [0x6b2e34]
add esp, 0xc
movsx eax, word [edi + 0x1ba]
cmp dword [0x6b2e20], eax
je 0x496ec5
mov dword [0x6b2e20], eax
pop edi
jmp fcn.00497280
pop edi
ret
Function at 0x4970f0
Capabilities:
Manipulate console buffer

Disassembly:
mov al, byte [0x6b2e40]
sub esp, 0x1c
test al, al
je 0x497178
mov ecx, dword [0x6b2cf8]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x497178
mov edx, dword [esp + 6]
mov eax, dword [0x6b2cf8]
push esi
dec edx
mov word [esp + 6], dx
mov word [esp + 4], 0
mov esi, dword [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov al, byte [esp + 0x24]
test al, al
je 0x497177
mov edx, dword [0x6b2cf8]
push edi
movsx edi, word [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push esi
push edi
push 0x20
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x497176
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6b2cf8]
lea eax, [esp + 8]
push eax
push esi
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x497180
Capabilities:
Manipulate console buffer

Disassembly:
mov al, byte [0x6b2e40]
sub esp, 0x13c
test al, al
je 0x497277
mov eax, dword [0x6b2e34]
test eax, eax
je 0x497277
push esi
add eax, 0xb4
push eax
push 0x6b2d00
push 0x669b80
lea eax, [esp + 0x2c]
push 0x11e
push eax
call fcn.00623c7d
mov ecx, dword [0x6b2e34]
mov eax, 0x6b2d00
add esp, 0x14
add ecx, 0xb4
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4971d7
sub eax, esi
movsx eax, ax
sub eax, ecx
lea edx, [esp + eax + 0x20]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4971f0
mov edx, dword [0x6b2cf8]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x497276
mov ecx, dword [esp + 0xa]
movsx eax, word [esp + 8]
dec ecx
lea edx, [esp + 4]
push edx
mov word [esp + 8], 0
mov word [esp + 0xa], cx
mov esi, dword [esp + 8]
push esi
push eax
mov eax, dword [0x6b2cf8]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x497271
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497250
lea ecx, [esp + 4]
push ecx
sub eax, edx
push esi
push eax
mov eax, dword [0x6b2cf8]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
call fcn.00497280
pop esi
add esp, 0x13c
ret
Function at 0x497280
Capabilities:
Manipulate console buffer

Disassembly:
mov al, byte [0x6b2e40]
sub esp, 0x1c
test al, al
je 0x497323
mov eax, dword [0x6b2e34]
test eax, eax
je 0x497323
mov ecx, dword [0x6b2cf8]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x497323
mov eax, 0x6b2d00
lea edx, [eax + 1]
jmp 0x4972c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4972c0
sub eax, edx
mov edx, dword [0x6b2e34]
mov cx, word [edx + 0x1ba]
mov edx, dword [esp + 6]
add cx, ax
push esi
mov esi, dword [esp + 8]
push edi
movsx edi, si
mov word [esp + 8], cx
movsx ecx, cx
dec edi
cmp ecx, edi
lea eax, [edx - 1]
mov word [esp + 0xa], ax
jle 0x497301
dec esi
mov word [esp + 8], si
movsx edx, dx
movsx ecx, ax
dec edx
cmp ecx, edx
pop edi
pop esi
jle 0x497313
mov word [esp + 2], ax
mov edx, dword [esp]
mov eax, dword [0x6b2cf8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add esp, 0x1c
ret
Function at 0x4a93a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
mov eax, dword [0x719340]
mov edx, dword [0x87b7b4]
mov ecx, eax
push ebx
and ecx, 0xffff
push ebp
shl ecx, 5
push esi
mov esi, dword [ecx + edx + 0x14]
mov dword [0x6e4654], eax
mov dword [esp + 0x1c], 0x3f800000
mov eax, dword [esp + 0x1c]
mov dword [0x6e4660], eax
mov dword [esp + 0x28], 0x3f666666
mov eax, dword [esp + 0x28]
mov dword [0x6e466c], eax
mov al, byte [0x7192e7]
mov dword [esp + 0x20], 0x3f666666
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], 0x3f666666
mov edx, dword [esp + 0x24]
xor ebx, ebx
cmp al, 1
push edi
mov dword [esp + 0x14], esi
mov dword [0x6e4664], ecx
mov dword [0x6e4668], edx
mov word [0x6e465c], 0xffff
mov word [0x6e465e], 2
mov dword [0x6e4658], ebx
jne 0x4a948d
mov eax, dword [0x7192f4]
push ebx
xor edi, edi
call fcn.0043f290
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4a948d
mov ecx, dword [0x7192e8]
mov ebx, dword [esp + 0x34]
push ecx
lea esi, [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.00556700
add word [esp + 0x26], 0xfffe
add word [esp + 0x2a], 2
push 0x7f7f7f7f
push 0
mov edi, ebx
push ebp
mov eax, edi
lea ecx, [esp + 0x30]
call fcn.00498bd0
mov esi, dword [esp + 0x24]
add esp, 0x10
xor ebx, ebx
jmp 0x4a9491
mov edi, dword [esp + 0x34]
mov edx, dword [0x7192e8]
push edx
push ebx
push ebx
mov eax, edi
mov ecx, edi
call fcn.00514c50
mov al, byte [0x7192e7]
add esp, 0xc
test al, al
jne 0x4a95a1
cmp dword [0x7192f4], 0xffffffff
je 0x4a95a1
call fcn.00449380
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
test dl, 1
je 0x4a95a1
mov bp, word [esi + 6]
mov eax, dword [0x7192f4]
add bp, word [esi + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [0x7192e8]
push 0
xor edi, edi
call fcn.0043f290
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x4a95a1
mov si, word [esp + 0x18]
xor edx, edx
mov dx, word [ebx]
test dx, dx
je 0x4a9552
mov edi, edi
mov edi, dword [esp + 0x14]
call fcn.00557a80
test eax, eax
je 0x4a954e
cmp ebx, dword [0x7192ec]
jae 0x4a953e
mov dx, word [eax + 2]
add word [esp + 0x10], dx
mov dx, word [ebx + 2]
add si, word [eax + 2]
add ebx, 2
test dx, dx
jne 0x4a9520
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
movsx eax, word [edx + 6]
movsx edx, word [edx + 2]
mov ebx, dword [esp + 0x10]
add eax, edx
cdq
sub eax, edx
sar si, 1
sar eax, 1
push 0xffffffffffffffff
push 0
push ecx
add ebp, 0x78
lea ecx, [esp + 0x2c]
sub eax, esi
add eax, ebx
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x2e]
inc eax
mov word [esp + 0x32], ax
xor eax, eax
mov word [esp + 0x2c], 0x78
mov word [esp + 0x30], bp
call fcn.00498bd0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret