joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4168d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45615d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x474298]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004266bc
mov edi, eax
add esp, 4
test edi, edi
je 0x41696d
push 1
mov dword [ebp - 4], 0
call fcn.00424e5a
add esp, 4
mov dword [edi + 4], eax
jmp 0x41696f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.004015f0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx ebx, ax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4169cb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x4169cb
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
jne 0x4169e8
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x416a0b
cmp byte [ebp + 0xc], 0
je 0x4169f7
push esi
call fcn.004259ce
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x416a17
mov esi, str.ios_base::badbit_set
jmp 0x416a27
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00417300
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.0040eaa0
push 0x4708e0
lea eax, [ebp - 0x28]
push eax
call fcn.00427bc1
int3
Function at 0x7ccf00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28f000]
push edi
or ebp, 0xffffffff
jmp 0x7ccf22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7ccf29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ccf18
mov eax, 1
add ebx, ebx
jne 0x7ccf3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7ccf4c
jne 0x7ccf6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ccf6b
dec eax
add ebx, ebx
jne 0x7ccf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7ccf30
add ebx, ebx
jne 0x7ccf67
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7ccfbd
xor ecx, ecx
sub eax, 3
jb 0x7ccf83
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7ccff2
sar eax, 1
mov ebp, eax
jmp 0x7ccf8e
add ebx, ebx
jne 0x7ccf8e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ccf5c
inc ecx
add ebx, ebx
jne 0x7ccf9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ccf5c
add ebx, ebx
jne 0x7ccfa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7ccf9e
jne 0x7ccfba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7ccf9e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7ccfdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7ccfce
jmp 0x7ccf1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7ccfdc
add edi, ecx
jmp 0x7ccf1e
pop esi
mov edi, esi
mov ecx, 0x389d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7ccffa
cmp byte [edi], 0x12
jne 0x7ccffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7ccfff
lea edi, [esi + 0x3c9000]
mov eax, dword [edi]
or eax, eax
je 0x7cd077
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d9710]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d97d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7cd02c
mov ecx, edi
jns 0x7cd05b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3d97dc]
or eax, eax
je 0x7cd071
mov dword [ebx], eax
add ebx, 4
jmp 0x7cd049
call dword [esi + 0x3d97d8]
mov ebp, dword [esi + 0x3d97e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7cd0ab
sub esp, 0xffffff80
jmp 0x4715ce
Function at 0x43b63b
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop ecx
sub edx, edx
call fcn.0043b67b
sub esp, 4
mov dword [esp], 0x470b79b9
mov edx, dword [esp]
add esp, 4
xor dword [esi], ecx
mov edx, 0xbecaa99
dec edi
add esi, 1
add edi, edx
cmp esi, eax
jne fcn.0043b63b
or edx, edi
add edx, 0x3f6f59f6
ret
Function at 0x402084
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004c2130
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x1000
mov dword [ebp - 0x1008], eax
xor ebx, ebx
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.004c37f0
mov ecx, dword [ebp - 0x1008]
add esp, 0xc
mov dword [ebp - 0x100c], ebx
test ecx, ecx
jne 0x4020d3
xor eax, eax
jmp 0x4021ba
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x400
shr esi, 2
push edi
cmp esi, 0x40000
jbe 0x402148
mov esi, 0x10000
push 4
push esi
call fcn.004ccef4
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x1008]
test edi, edi
jne 0x40210e
mov esi, 0x400
lea edi, [ebp - 0x1004]
mov dword [ebp - 0x1010], ebx
cmp dword [0x53e324], ebx
je 0x4021a1
cmp dword [ebp + 0x10], 0
je 0x402153
push 0
lea eax, [ebp - 0x100c]
push eax
mov eax, esi
shl eax, 2
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x100c]
shr ecx, 2
jmp 0x402162
shr esi, 2
cmp esi, eax
ja 0x4020ed
mov esi, eax
jmp 0x402108
push ecx
push esi
push 4
push edi
call fcn.004c7617
add esp, 0x10
mov ecx, eax
mov dword [ebp - 0x100c], ecx
test ecx, ecx
je 0x40218f
xor eax, eax
add ebx, dword [edi + eax*4]
inc eax
cmp eax, ecx
jb 0x40216e
add ebx, ecx
mov dword [ebp - 0x1010], eax
cmp dword [0x53e324], 0
mov ecx, dword [ebp - 0x1008]
jne 0x402120
jmp 0x402195
mov eax, dword [ebp - 0x1010]
test ebx, ebx
jne 0x4021a1
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
test edi, edi
je 0x4021b6
lea eax, [ebp - 0x1004]
cmp edi, eax
je 0x4021b6
push edi
call fcn.004cceff
pop ecx
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x40bdec
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40be59
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40be5f
jns 0x40be26
push ebx
call fcn.0040cc4a
mov ebx, eax
sub ebx, dword [ebp + 8]
push esi
call fcn.004ccf1a
pop ecx
cmp ebx, eax
jge 0x40be1c
mov esi, ebx
jmp 0x40be25
push esi
call fcn.004ccf1a
pop ecx
mov esi, eax
pop ebx
mov eax, dword [ebp + 8]
mov cx, word [ebp + 0xc]
mov word [ebp - 4], ax
lea eax, [ebp + 0x14]
push eax
mov word [ebp - 2], cx
push dword [ebp - 4]
push esi
push edi
call fcn.0040cabf
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp + 0x14]
jne 0x40be64
cmp eax, esi
jg 0x40be5f
mov byte [eax + edi], 0
xor eax, eax
pop edi
pop esi
leave
ret
mov byte [edi], 0
jmp 0x40be59
cmp eax, esi
jg 0x40be71
mov byte [eax + edi], 0
mov eax, dword [ebp + 0x14]
jmp 0x40be5b
mov byte [edi], 0
jmp 0x40be5b

Function at 0x40bf99
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x128]
push edi
push 0x124
xor edi, edi
push edi
push eax
call fcn.004c37f0
add esp, 0xc
test esi, esi
je 0x40c096
cmp byte [esi], 0
je 0x40c096
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40c002
push dword [ebp + 0xc]
push esi
push str.CountProcesses__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED_
call fcn.0041c80a
add esp, 0xc
or eax, 0xffffffff
jmp 0x40c098
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40c045
push dword [ebp + 0xc]
push esi
push str.CountProcesses__s___d__FAILED:_Process32First___FAILED_
call fcn.0041c80a
add esp, 0xc
push 0x8e8
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.CountProcesses
push ebx
call fcn.0041dd98
jmp 0x40bffa
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x108]
push esi
push eax
je 0x40c060
call fcn.004cd1a7
pop ecx
pop ecx
test eax, eax
jne 0x40c06c
jmp 0x40c06b
call fcn.0048dada
pop ecx
pop ecx
test eax, eax
je 0x40c06c
inc edi
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40c045
push 0x90c
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.CountProcesses
push ebx
call fcn.0041dd98
mov eax, edi
jmp 0x40c098
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x40cbac
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x40cbd3
cmp esi, 0x100
mov eax, 0xff
mov edi, 0x5660d8
cmovae esi, eax
push edi
call fcn.0048b21b
pop ecx
test esi, esi
jg 0x40cbf5
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:3:GetConsoleText__d___d___d__FAILED:_iCount_is_invalid:__d
call fcn.0041cce9
add esp, 0x14
jmp 0x40cc44
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov word [ebp + 0x12], ax
lea eax, [ebp - 4]
push eax
mov word [ebp + 0x10], bx
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040cabf
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
jne 0x40cc43
cmp byte [0x5647dc], al
jne 0x40cc43
push str._GetLastError_
push esi
push dword [ebp + 0xc]
push ebx
push str.:3:GetConsoleText__d___d___d__FAILED:_ReadConsoleOutputCharacter___FAILED:__s
call fcn.0041cce9
add esp, 0x14
mov byte [0x5647dc], 1
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40ccf3
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x56680c], 0
push esi
mov esi, 0x566708
jne 0x40cd4d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x103
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x40cd33
push esi
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x40cd33
mov dword [0x56680c], 1
jmp 0x40cd4d
push 0x104
push str.UNKNOWN_USER
push esi
call fcn.0048dd2a
add esp, 0xc
and dword [0x56680c], 0
mov eax, esi
pop esi
leave
ret

Function at 0x40cd6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x214], esi
call fcn.004c37f0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c37f0
push esi
call fcn.0048b21b
push ebx
call fcn.0048c30a
add esp, 0x20
test eax, eax
je 0x40cdd0
xor eax, eax
jmp 0x40ce3a
lea eax, [ebp - 0x210]
mov esi, 0x207
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push eax
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x40ce18
push edi
push str._GetLastError_
push ebx
push str.:4:GetRegString___s___FAILED:_RegQueryValueEx___FAILED:__s_ld
call fcn.0041cce9
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40cdcc
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 0x20c]
cmovge esi, dword [ebp + 0x14]
dec esi
push esi
mov esi, dword [ebp - 0x214]
push eax
push esi
call fcn.0048dd2a
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
Function at 0x40cf40
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push edi
push dword [ebp + 8]
mov dword [0x5632c4], eax
call fcn.0040d06e
xor ebx, ebx
mov dword [0x5637bc], 1
push ebx
mov edi, eax
call fcn.0040f0d0
pop ecx
pop ecx
call fcn.0040d59a
test eax, eax
jne 0x40cf7f
push str.:5:InitConsole___encountered_a_problem:_EnableNumLock___FAILED_
call fcn.0041cce9
pop ecx
push esi
call fcn.0040cd58
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40cfe4
push str.PAULA_Initialization...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esi, str._GetLastError_
test eax, eax
jne 0x40cfb1
push esi
push str.:4:InitConsole___encountered_a_problem:_SetConsoleTitle___FAILED:__s
call fcn.0041cce9
pop ecx
pop ecx
push 0x243
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cd58
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
jne 0x40cfd8
push esi
push str.:2:InitConsole___encountered_a_problem:_SetWindowPos___FAILED:__s
call fcn.0041cce9
pop ecx
pop ecx
call fcn.0040cd58
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, 0x80
push eax
push eax
push dword [0x563794]
call fcn.00416603
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x40d032
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0x19
mov esi, eax
call fcn.004164aa
pop ecx
test esi, esi
je 0x40d02a
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfffaffff
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x19
call fcn.004164aa
pop ecx
call fcn.0041657d
push 1
call fcn.00417469
pop ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push str.DoNotScrmbErLg.txt
push ebx
call fcn.0046a855
push eax
call fcn.0041fc00
add esp, 0xc
pop esi
test eax, eax
je 0x40d068
push ebx
call fcn.0041d83f
pop ecx
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x40d06e
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004c37f0
add esp, 0xc
call fcn.0040d6e1
or dword [0x55200c], 0xffffffff
xor esi, esi
or dword [0x552010], 0xffffffff
inc esi
and dword [0x565bec], 0
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x40d0d2
push str._GetLastError_
push str.:7:InitConsole___FAILED:_AllocConsole___FAILED:__s
xor esi, esi
call fcn.0041c80a
pop ecx
pop ecx
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push 0xfffffffffffffff6
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push eax
call ebx
test eax, eax
jne 0x40d100
push str._GetLastError_
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_INPUT_HANDLE__FAILED:__s
xor esi, esi
call fcn.0041c80a
pop ecx
pop ecx
push 3
push 0xfffffffffffffff5
call edi
push eax
call ebx
mov ebx, str._GetLastError_
test eax, eax
jne 0x40d121
push ebx
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_OUTPUT_HANDLE__FAILED:__s
xor esi, esi
call fcn.0041c80a
pop ecx
pop ecx
push 1
push 0x40c462
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x40d141
push ebx
push str.:7:InitConsole___FAILED:_SetConsoleCtrlHandler___FAILED:__s
xor esi, esi
call fcn.0041c80a
pop ecx
pop ecx
mov edi, 0x35c
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x40d160
push edi
push str.:9:InitConsole___FAILED:_SetConsoleOutputCP___FAILED:_could_not_set_code_page__d___
xor esi, esi
call fcn.0041c80a
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [0x563798], eax
test eax, eax
jne 0x40d17e
push ebx
push str.:7:InitConsole___FAILED:_GetConsoleWindow___FAILED:__s
xor esi, esi
call fcn.0041c80a
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
pop edi
pop ebx
test eax, eax
je 0x40d1cb
lea eax, [ebp - 0x108]
push eax
call fcn.0048cfd3
lea eax, [ebp - 0x108]
mov dword [esp], 0x4e82b4
push eax
call fcn.0048da25
pop ecx
pop ecx
test eax, eax
jne 0x40d1cb
push eax
push eax
call fcn.0046a855
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push 0
call fcn.0046a855
push eax
call fcn.00488177
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x40d1ec
mov dword [0x563794], eax
call fcn.004b729a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004ccf4a
pop ecx
call fcn.004ccf29
call fcn.004ccf29
call fcn.004ccf29
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004c2120
leave
ret
Function at 0x40e185
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
call fcn.0040cabf
movzx edi, word [ebp + 8]
mov esi, eax
movzx ebx, word [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
xor eax, eax
mov word [ebp + 8], di
mov word [ebp + 0xa], bx
inc eax
push dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
test eax, eax
jne 0x40e1d2
or eax, 0xffffffff
jmp 0x40e260
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp + 8], eax
mov dl, cl
inc eax
mov word [ebp - 0x12], bx
mov word [ebp + 0xc], ax
mov word [ebp + 0xe], ax
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], al
mov eax, ecx
xor eax, 8
movzx ecx, cx
test dl, 8
movzx eax, ax
mov word [ebp - 0x14], di
cmovne ecx, eax
mov word [ebp - 0xe], bx
cmp dword [ebp + 0x10], 0x20
mov word [ebp - 0x10], di
mov word [ebp - 2], cx
jge 0x40e248
lea eax, [ebp + 0xc]
mov word [ebp + 8], di
push eax
mov word [ebp + 0xa], bx
lea eax, [ebp - 4]
push dword [ebp + 8]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 2]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
jmp 0x40e25d
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e265
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0x81c], eax
xor ebx, ebx
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004c37f0
mov esi, dword [ebp + 0xc]
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x810], ebx
cmp byte [ebp + 0x14], cl
mov eax, 0x400
mov dword [ebp - 0x814], ebx
setne cl
mov dword [ebp - 0x80c], ebx
sub eax, ecx
cmp esi, eax
jl 0x40e2ca
mov esi, 0x3ff
sub esi, ecx
call fcn.0040cabf
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0040ca28
cmp byte [ebp + 0x14], 0
mov edi, dword [ebp - 0x810]
mov ebx, dword [ebp - 0x814]
pop ecx
pop ecx
mov word [ebp - 0x808], di
mov word [ebp - 0x806], bx
je 0x40e30b
inc esi
test esi, esi
jle 0x40e46c
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push esi
push eax
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
test eax, eax
je 0x40e492
mov eax, dword [ebp - 0x80c]
test eax, eax
je 0x40e492
cmp eax, esi
je 0x40e363
push esi
push eax
push str.:8:ReadConsoleOutputAttribute___FAILED:_Read__ld__not__ld.
call fcn.0041c80a
mov esi, dword [ebp - 0x80c]
add esp, 0xc
xor eax, eax
mov ecx, 0xfff7
cmp dword [ebp + 0x10], eax
je 0x40e383
test esi, esi
jle 0x40e394
or word [ebp + eax*2 - 0x804], 8
inc eax
cmp eax, esi
jl 0x40e373
jmp 0x40e394
test esi, esi
jle 0x40e394
and word [ebp + eax*2 - 0x804], cx
inc eax
cmp eax, esi
jl 0x40e387
cmp byte [ebp + 0x14], 0
je 0x40e3a2
and word [ebp + eax*2 - 0x806], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push esi
push eax
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
xor ecx, ecx
lea eax, [ebp - 0x80c]
cmp byte [ebp + 0x14], cl
push eax
push dword [ebp - 0x808]
setne cl
mov eax, esi
sub eax, ecx
push eax
push dword [ebp - 0x81c]
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
call fcn.0040cc4a
xor ecx, ecx
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], ecx
test esi, esi
jle 0x40e46c
cmp byte [ebp + 0x14], 0
je 0x40e446
lea eax, [esi - 1]
cmp ecx, eax
jne 0x40e446
lea eax, [ebp - 0x80c]
mov word [ebp - 0x808], di
push eax
mov word [ebp - 0x806], bx
lea eax, [ebp + 0x14]
push dword [ebp - 0x808]
push 1
push eax
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ecx, dword [ebp - 0x810]
inc edi
cmp edi, dword [ebp - 0x814]
jl 0x40e461
call fcn.0040ce49
xor edi, edi
inc ebx
cmp ebx, eax
jge 0x40e486
mov ecx, dword [ebp - 0x810]
inc ecx
mov dword [ebp - 0x810], ecx
cmp ecx, esi
jl 0x40e406
push ebx
push edi
call fcn.0040e96c
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
mov edi, dword [ebp - 0x814]
lea ebx, [eax - 1]
dec edi
jmp 0x40e46c
or eax, 0xffffffff
jmp 0x40e477
Function at 0x40e96c
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
call fcn.0040d344
test eax, eax
je 0x40e97d
xor eax, eax
inc eax
pop ebp
ret
pop ebp
jmp fcn.0040e983

Function at 0x40e983
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
call fcn.0040cabf
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov word [ebp + 8], cx
mov word [ebp + 0xa], dx
test eax, eax
je 0x40e9b9
cmp eax, 0xffffffff
je 0x40e9b9
push dword [ebp + 8]
push eax
call edi
mov dword [ebp - 4], eax
jmp 0x40e9ce
push str._GetLastError_
push eax
push edx
push ecx
push str.:7:SetConsoleCursorPosServer__d___d_:_FAILED___x:__s
call fcn.0041c80a
add esp, 0x14
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x40e9e5
cmp eax, 0xffffffff
je 0x40e9e5
push dword [ebp + 8]
push eax
call edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x40e9fc
cmp eax, 0xffffffff
je 0x40e9fc
push dword [ebp + 8]
push eax
call edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push 0x4ed880
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40ea24
push dword [ebp + 8]
push eax
call edi
mov eax, dword [ebp - 4]
pop edi
leave
ret