joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4415d0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x70b42c]
push esi
xor esi, esi
test eax, eax
push edi
mov dword [esp + 0xc], 0
je 0x441601
mov byte [0x6809a8], 0
xor ax, ax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [0x6809a8]
test al, al
jne 0x4416da
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x63
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.ws2_32.dll_WSAStartup]
mov esi, eax
test si, si
jne 0x4416ae
cmp dword [0x6809a4], 0xffffffff
jne 0x4416ae
lea ecx, [esp + 0xc]
push ecx
call fcn.00441550
add esp, 4
test eax, eax
jne 0x44165c
mov ax, 0xfff0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov dl, byte [eax + 1]
mov cl, byte [eax]
mov byte [0x680999], dl
mov dl, byte [eax + 2]
mov al, byte [eax + 3]
mov byte [0x680998], cl
mov byte [0x68099a], dl
mov byte [0x68099b], al
mov ecx, dword [0x680998]
mov edi, ecx
shl edi, 0x10
and ecx, 0xff00
or edi, ecx
xor ecx, ecx
mov ch, dl
shl edi, 8
movzx edx, al
or edi, ecx
or edi, edx
mov dword [0x6809a4], edi
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x572a80
push 0x10400
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
call fcn.00449300
mov dword [0x6eab5c], eax
mov byte [0x6809a8], 1
pop edi
mov ax, si
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x442ca0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
push ebx
push edi
push eax
push str.maps_
push 0x6ead78
lea ecx, [esp + 0x18]
push str._s_s_s.map
push ecx
xor bl, bl
call fcn.0061ed33
add esp, 0x14
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x442d96
push 0
lea eax, [esp + 0xc]
push eax
push 0x800
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x442d8f
cmp dword [esp + 8], 0x800
jne 0x442d8f
cmp dword [esi], 0x68656164
jne 0x442d81
cmp dword [esi + 0x7fc], 0x666f6f74
jne 0x442d81
mov eax, dword [esi + 8]
test eax, eax
jl 0x442d81
cmp eax, 0x18000000
jg 0x442d81
lea eax, [esi + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442d40
sub eax, edx
cmp eax, 0x1f
ja 0x442d81
cmp dword [esi + 4], 7
je 0x442d8d
lea ecx, [esp + 0xc]
mov dword [0x7147dc], ecx
push 1
push 0x7e
push 0x89
call fcn.0057a2d0
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
add esp, 0x104
ret
lea edx, [esp + 0xc]
mov dword [0x7147dc], edx
jmp 0x442d5e
mov bl, 1
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
add esp, 0x104
ret
Function at 0x443680
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [0x6809b0]
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 0x4436c3
mov edx, dword [0x6809b0]
mov eax, dword [edx + 0x954]
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov ecx, dword [0x6809b0]
mov edx, dword [ecx + 0x958]
push 0xffffffffffffffff
push edx
call esi
movsx esi, word [0x6a5c1a]
imul esi, esi, 0x80c
lea eax, [esp + 8]
push eax
add esi, 0x6a2bd0
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 [0x6a5c1a]
call fcn.00443720
pop edi
mov byte [0x6a5c18], 0
mov word [0x6a5c1a], 0xffff
pop esi
add esp, 0x10
ret

Function at 0x443720
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 0x6a60a8
lea edx, [esp + 0x54]
push str._scache_03d.map
push edx
lea ebp, [ecx + 0x6a2bd0]
call fcn.0061ed33
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 [0x713b20], 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 0x44378a
call fcn.0053e250
cmp dword [0x713b20], 3
jl 0x443837
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, 0x443c40
xor edx, edx
mov ebx, 0x800
lea esi, [esp + 0x28]
call fcn.00442db0
add esp, 0xc
lea esi, [esp + 0x13]
call fcn.00442e20
mov al, byte [esp + 0x13]
test al, al
je 0x443874
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp dword [edi], 0x68656164
jne 0x44381c
cmp dword [edi + 0x7fc], 0x666f6f74
jne 0x44381c
mov eax, dword [edi + 8]
cmp eax, ebx
jl 0x44381c
cmp eax, 0x18000000
jg 0x44381c
lea eax, [edi + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x443808
sub eax, edx
cmp eax, 0x1f
ja 0x44381c
cmp dword [edi + 4], 7
je 0x443896
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 0x443874
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 0x443874
cmp dword [esp + 0x14], 0x800
je 0x4437e0
push 1
lea edx, [esp + 0x50]
push 0x7e
push 0x89
mov dword [0x7147dc], edx
call fcn.0057a2d0
add esp, 0xc
mov dword [ebp], 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
Function at 0x443a10
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [0x6a5c40], eax
mov eax, dword [0x713b20]
test eax, eax
jne 0x443a32
call fcn.0053e250
cmp dword [0x713b20], 3
jge 0x443a5c
lea eax, [esp]
push eax
push 0
push 0
push 0x443b50
push 0x4000
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x6a5c44], eax
pop ecx
ret
push 0
push 0
push 0
push 0x443a80
push 0x4000
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x6a5c44], eax
pop ecx
ret

Function at 0x443c70
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 0x443c8f
cmp dword [esp], 0x10
je 0x443ca4
mov edx, dword [esi + 0x38]
push edx
push str.Failed_to_read_data_file_header__s_n
call fcn.0061f91c
add esp, 8
xor al, al
pop ecx
ret
mov eax, dword [esi]
cmp eax, dword [esp + 8]
je 0x443cd0
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.0061f91c
add esp, 8
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x443ce0
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 0x443d3c
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 0x443d3a
cmp dword [esp + 8], edi
jne 0x443d3a
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.0061f91c
add esp, 8
pop edi
mov al, bl
pop ebx
pop ecx
ret

Function at 0x443d60
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 0x443dbf
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 0x443dbd
cmp dword [esp + 8], esi
jne 0x443dbd
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.0061f91c
add esp, 8
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x449340
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 0x449382
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 0x449390
mov cl, byte [esp + 0x14]
mov al, 0x5c
cmp cl, al
jne 0x4493ca
cmp byte [esp + 0x15], al
jne 0x4493ca
lea eax, [esp + 0x16]
push 0x65af3c
push eax
call fcn.00620950
inc eax
push 0x65af3c
push eax
call fcn.00620950
add esp, 0x10
mov esi, eax
push ebp
mov ebp, dword [sym.imp.kernel32.dll_CreateDirectoryA]
jmp 0x4493e0
mov ebx, dword [esp + 0x11c]
lea ebx, [ebx]
push 0x65af3c
inc esi
push esi
call fcn.00620950
mov esi, eax
add esp, 8
test esi, esi
je 0x449422
mov bl, byte [esi]
lea ecx, [esp + 0x18]
push ecx
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
jne 0x449417
push 0
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jne 0x449417
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 1
mov byte [esi], bl
je 0x4493d3
jmp 0x449432
cmp byte [esp + 0x13], 1
jne 0x449432
push 0
push ebx
call ebp
test eax, eax
jne 0x449437
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 0x471c20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x3c
mov eax, dword [0x6eb42c]
push ebx
push ebp
push esi
mov esi, eax
inc eax
cmp esi, eax
push edi
mov dword [esp + 0x18], esi
mov dword [0x6eb42c], eax
jge 0x471c5a
add eax, 0xffffffe0
cmp esi, eax
jl 0x471c5a
mov ebp, esi
and ebp, 0x1f
imul ebp, ebp, 0x248
add ebp, 0x6eb434
mov dword [esp + 0x10], ebp
jmp 0x471c66
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
mov dword [ebp], esi
add ebp, 4
mov word [ebp], 0
mov eax, dword [0x6eb430]
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.004ce910
mov ebx, eax
test ebx, ebx
je 0x471d97
mov eax, dword [ebx + 0x38]
cmp eax, dword [ebx + 0x34]
je 0x471cb8
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + eax*4]
mov cl, 1
jmp 0x471cbc
xor eax, eax
xor cl, cl
cmp cl, 1
mov dl, cl
jne 0x471d54
lea esi, [eax + 0xc]
mov ecx, 8
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
dec ecx
mov dword [esp + 0x14], 0xffffffff
mov dword [eax + 4], ecx
jne 0x471d00
mov edx, dword [eax]
mov eax, dword [ebx + 0x38]
cmp eax, dword [ebx + 0x34]
mov dword [esp + 0x14], edx
je 0x471d50
inc eax
cdq
idiv dword [ebx + 0x28]
mov cl, 1
mov dword [ebx + 0x38], edx
mov dl, cl
cmp dl, 1
lea edi, [ebx + 0x44]
mov ecx, 8
lea esi, [esp + 0x2c]
mov byte [ebx + 0x40], 1
rep movsd dword es:[edi], dword [esi]
jne 0x471d54
mov eax, dword [esp + 0x10]
lea edi, [ebx + 8]
mov ecx, 8
lea esi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebp]
shl ecx, 5
lea edi, [ecx + eax + 8]
mov ecx, 8
lea esi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movzx edx, word [ebp]
mov ecx, dword [esp + 0x14]
mov dword [eax + edx*4 + 0x208], ecx
jmp 0x471d7c
xor cl, cl
jmp 0x471cfe
movzx edx, word [ebp]
mov eax, dword [esp + 0x10]
shl edx, 5
lea esi, [ebx + 8]
lea edi, [edx + eax + 8]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebp]
mov dword [eax + ecx*4 + 0x208], 0xffffffff
inc word [ebp]
lea edi, [esp + 0x1c]
call fcn.004ce910
mov ebx, eax
test ebx, ebx
jne 0x471ca6
mov esi, dword [esp + 0x18]
mov ebx, esi
mov edx, ebp
call fcn.00472330
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x48f3a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov dl, byte [0x6aada0]
test dl, dl
je 0x48f482
cmp ecx, 0x100
mov edx, 0xffffffff
mov byte [esp], 0
mov byte [esp + 1], 0xff
mov word [esp + 2], dx
je 0x48f402
cmp ecx, 0x104
je 0x48f402
cmp ecx, 0x102
je 0x48f3e6
cmp ecx, 0x106
jne 0x48f482
cmp eax, 0x80
mov cl, al
mov byte [esp + 1], cl
mov word [esp + 2], dx
jae 0x48f420
mov ax, word [eax*2 + 0x656b28]
jmp 0x48f416
mov ax, word [eax*2 + 0x656928]
cmp ax, dx
je 0x48f482
or cl, 0xff
mov byte [esp + 1], cl
cmp ax, dx
mov word [esp + 2], ax
jne 0x48f425
cmp cl, 0xff
je 0x48f482
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 0x48f449
or bl, 2
jmp 0x48f44c
and bl, 0xfd
push 0x12
call esi
test ah, ah
jns 0x48f459
or bl, 4
jmp 0x48f45c
and bl, 0xfb
mov ax, word [0x6aaea4]
cmp ax, 0x40
pop esi
mov byte [esp + 4], bl
pop ebx
jge 0x48f482
mov ecx, dword [esp]
movsx eax, ax
mov dword [eax*4 + 0x6aaea6], ecx
inc word [0x6aaea4]
pop ecx
ret
Function at 0x495060
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
cmp byte [0x86bfe6], 4
mov dword [esp + 4], 0x3f800000
mov dword [esp + 8], 0x3f333333
mov dword [esp + 0xc], 0x3f333333
mov dword [esp + 0x10], 0x3f333333
jb 0x495128
mov al, byte [0x6ac6a4]
test al, al
je 0x495128
call fcn.00494a00
cmp eax, 0xffffffff
je 0x495128
mov ecx, dword [0x6ac6a8]
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 0x4950d7
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.006211a2
push 0x663810
push edi
call fcn.00620ad0
test eax, eax
setne al
push edi
mov byte [esi + 0xc], al
call fcn.00495460
add esp, 0x1c
pop esi
pop edi
add esp, 0x10
ret

Function at 0x495130
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
mov al, byte [0x6ac6a4]
test al, al
mov dword [esp + 4], 0x3f800000
mov dword [esp + 8], 0x3f333333
mov dword [esp + 0xc], 0x3f333333
mov dword [esp + 0x10], 0x3f333333
je 0x4951eb
call fcn.00494a00
cmp eax, 0xffffffff
je 0x4951eb
mov ecx, dword [0x6ac6a8]
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 0x49519a
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.006211a2
push 0x663810
push edi
call fcn.00620ad0
test eax, eax
setne al
push edi
mov byte [esi + 0xc], al
call fcn.00495460
add esp, 0x1c
pop esi
pop edi
add esp, 0x10
ret

Function at 0x495310
Capabilities:
Manipulate console buffer

Disassembly:
mov al, byte [0x6ac6c0]
test al, al
je 0x4953b6
push edi
mov edi, dword [0x6ac6b4]
test edi, edi
je 0x4953b5
push ebx
push esi
lea esi, [edi + 0xb4]
mov eax, 0x6ac5a0
lea esp, [esp]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x495368
test cl, cl
je 0x495364
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x495368
add eax, 2
add esi, 2
test cl, cl
jne 0x495340
xor eax, eax
jmp 0x49536d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop esi
pop ebx
je 0x49539b
call fcn.00495640
mov eax, dword [0x6ac6b4]
push 0xff
add eax, 0xb4
push eax
push 0x6ac5a0
call fcn.0061f130
mov edi, dword [0x6ac6b4]
add esp, 0xc
movsx eax, word [edi + 0x1ba]
cmp dword [0x6ac6a0], eax
je 0x4953b5
mov dword [0x6ac6a0], eax
pop edi
jmp fcn.00495740
pop edi
ret
Function at 0x4955b0
Capabilities:
Manipulate console buffer

Disassembly:
mov al, byte [0x6ac6c0]
sub esp, 0x1c
test al, al
je 0x495638
mov ecx, dword [0x6ac578]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x495638
mov edx, dword [esp + 6]
mov eax, dword [0x6ac578]
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 0x495637
mov edx, dword [0x6ac578]
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 0x495636
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6ac578]
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 0x495640
Capabilities:
Manipulate console buffer

Disassembly:
mov al, byte [0x6ac6c0]
sub esp, 0x13c
test al, al
je 0x495737
mov eax, dword [0x6ac6b4]
test eax, eax
je 0x495737
push esi
add eax, 0xb4
push eax
push 0x6ac580
push 0x664340
lea eax, [esp + 0x2c]
push 0x11e
push eax
call fcn.0061f0cd
mov ecx, dword [0x6ac6b4]
mov eax, 0x6ac580
add esp, 0x14
add ecx, 0xb4
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x495697
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 0x4956b0
mov edx, dword [0x6ac578]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x495736
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 [0x6ac578]
push 0x20
push eax
call dword [sym.imp.kernel32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x495731
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495710
lea ecx, [esp + 4]
push ecx
sub eax, edx
push esi
push eax
mov eax, dword [0x6ac578]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.kernel32.dll_WriteConsoleOutputCharacterA]
call fcn.00495740
pop esi
add esp, 0x13c
ret
Function at 0x495740
Capabilities:
Manipulate console buffer

Disassembly:
mov al, byte [0x6ac6c0]
sub esp, 0x1c
test al, al
je 0x4957e3
mov eax, dword [0x6ac6b4]
test eax, eax
je 0x4957e3
mov ecx, dword [0x6ac578]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4957e3
mov eax, 0x6ac580
lea edx, [eax + 1]
jmp 0x495780
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495780
sub eax, edx
mov edx, dword [0x6ac6b4]
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 0x4957c1
dec esi
mov word [esp + 8], si
movsx edx, dx
movsx ecx, ax
dec edx
cmp ecx, edx
pop edi
pop esi
jle 0x4957d3
mov word [esp + 2], ax
mov edx, dword [esp]
mov eax, dword [0x6ac578]
push edx
push eax
call dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
add esp, 0x1c
ret
Function at 0x4a7860
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
mov eax, dword [0x70b258]
mov edx, dword [0x86cff4]
mov ecx, eax
push ebx
and ecx, 0xffff
push ebp
shl ecx, 5
push esi
mov esi, dword [ecx + edx + 0x14]
mov dword [0x6dddcc], eax
mov dword [esp + 0x1c], 0x3f800000
mov eax, dword [esp + 0x1c]
mov dword [0x6dddd8], eax
mov dword [esp + 0x28], 0x3f666666
mov eax, dword [esp + 0x28]
mov dword [0x6ddde4], eax
mov al, byte [0x70b1ff]
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 [0x6ddddc], ecx
mov dword [0x6ddde0], edx
mov word [0x6dddd4], 0xffff
mov word [0x6dddd6], 2
mov dword [0x6dddd0], ebx
jne 0x4a794d
mov eax, dword [0x70b20c]
push ebx
xor edi, edi
call fcn.0043f2a0
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4a794d
mov ecx, dword [0x70b200]
mov ebx, dword [esp + 0x34]
push ecx
lea esi, [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.00551cb0
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.00497070
mov esi, dword [esp + 0x24]
add esp, 0x10
xor ebx, ebx
jmp 0x4a7951
mov edi, dword [esp + 0x34]
mov edx, dword [0x70b200]
push edx
push ebx
push ebx
mov eax, edi
mov ecx, edi
call fcn.005106b0
mov al, byte [0x70b1ff]
add esp, 0xc
test al, al
jne 0x4a7a61
cmp dword [0x70b20c], 0xffffffff
je 0x4a7a61
call fcn.00449300
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
test dl, 1
je 0x4a7a61
mov bp, word [esi + 6]
mov eax, dword [0x70b20c]
add bp, word [esi + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [0x70b200]
push 0
xor edi, edi
call fcn.0043f2a0
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x4a7a61
mov si, word [esp + 0x18]
xor edx, edx
mov dx, word [ebx]
test dx, dx
je 0x4a7a12
mov edi, edi
mov edi, dword [esp + 0x14]
call fcn.00553030
test eax, eax
je 0x4a7a0e
cmp ebx, dword [0x70b204]
jae 0x4a79fe
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 0x4a79e0
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.00497070
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret