joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b979
Capabilities:
Get common file path

Disassembly:
push pe_nt_image_headers32
mov eax, 0x434324
call fcn.0042df10
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x128], edi
mov ecx, 0x102
mov dword [ebp - 4], edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x124], 0x44c238
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
push edi
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00402d7a
push 0x104
mov byte [ebp - 4], 2
call fcn.0040187e
cmp eax, dword [ebp - 0x11c]
jle 0x42b9f7
mov ecx, dword [ebp - 0x124]
push edi
push eax
lea eax, [ebp - 0x124]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx]
push dword [ebp - 0x120]
push edi
push edi
push 0x20
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push edi
push 1
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x120]
call sub.Csi.dll_void___stdcall_Csi::GetFolderProxyFromPath_class_MsoCF::String_struct_MsoCF::WzTraits___struct_Csi::IFolderProxy____bool__bool___bool_
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x42ba4a
push edi
push edi
push esi
push edi
push edi
push 1
push ecx
mov ecx, esp
push ecx
mov dword [ecx], edi
mov ecx, esp
mov dword [ecx], str.Office.ODCPAW
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x114]
cmp dword [ebp - 0x120], ecx
je 0x42ba69
push dword [ebp - 0x120]
call fcn.00402027
mov eax, dword [ebp - 0x128]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x42ba77
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.0042dec2
ret 4

Function at 0x42d4c9
Capabilities:
Create process on windows

Disassembly:
push 0x118
mov eax, 0x432ec6
call fcn.0042df10
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
mov ecx, 0x102
mov dword [ebp - 0x124], 0x44c238
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
xor edi, edi
lea ecx, [ebp - 0x124]
push edi
mov dword [ebp - 4], edi
call fcn.00402d7a
mov eax, dword [esi]
lea ecx, [ebp - 0x124]
xor ebx, ebx
push ecx
inc ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x44]
mov eax, dword [ebp - 0x120]
cmp word [eax], di
je 0x42d554
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp eax, ebx
jne 0x42d54e
push ebx
push edi
push edi
push dword [ebp - 0x120]
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x42d564
push eax
call fcn.00402027
call fcn.0042dec2
ret 4
Function at 0x42d909
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x43b0c0], eax
je 0x42d92b
cmp dword [0x43b0c0], ebx
jne 0x42d9bf
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x43b0c0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x43b0c0
push 4
push edi
mov dword [0x43b0c0], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x43b0c0]
not eax
mov dword [0x44c5d8], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42dbfa
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x441058
call fcn.0042e286
push 1
call fcn.0042dc7d
pop ecx
test al, al
jne 0x42daa3
push 7
call fcn.0042eab1
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0042dc48
mov byte [ebp - 0x24], al
mov eax, dword [0x44e344]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42da9c
test eax, eax
jne 0x42db0d
mov dword [0x44e344], ecx
push 0x4352c4
push 0x4352ac
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x42daf0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42dbf4
push 0x4352a8
push 0x435284
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x44e344], 2
jmp 0x42db12
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0042ddda
pop ecx
call fcn.0042eaa5
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x42db42
push esi
call fcn.0042dd4d
pop ecx
test al, al
je 0x42db42
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0042ece0
call esi
call fcn.0042eaab
mov esi, eax
cmp dword [esi], edi
je 0x42db60
push esi
call fcn.0042dd4d
pop ecx
test al, al
je 0x42db60
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0042ebc6
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0042ebf9
test al, al
jne 0x42db99
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x42dba2
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0042ddf7
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x42dbf4
call fcn.0042e2cc
ret
call fcn.0042d909
jmp 0x42da84
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x40228c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004654c0
mov eax, dword [0x4cc8c0]
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.00466ad0
mov ecx, dword [ebp - 0x1008]
add esp, 0xc
mov dword [ebp - 0x100c], ebx
test ecx, ecx
jne 0x4022db
xor eax, eax
jmp 0x4023c2
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x400
shr esi, 2
push edi
cmp esi, 0x40000
jbe 0x402350
mov esi, 0x10000
push 4
push esi
call fcn.004701d4
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x1008]
test edi, edi
jne 0x402316
mov esi, 0x400
lea edi, [ebp - 0x1004]
mov dword [ebp - 0x1010], ebx
cmp dword [0x4b0b4c], ebx
je 0x4023a9
cmp dword [ebp + 0x10], 0
je 0x40235b
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 0x40236a
shr esi, 2
cmp esi, eax
ja 0x4022f5
mov esi, eax
jmp 0x402310
push ecx
push esi
push 4
push edi
call fcn.0046a8f7
add esp, 0x10
mov ecx, eax
mov dword [ebp - 0x100c], ecx
test ecx, ecx
je 0x402397
xor eax, eax
add ebx, dword [edi + eax*4]
inc eax
cmp eax, ecx
jb 0x402376
add ebx, ecx
mov dword [ebp - 0x1010], eax
cmp dword [0x4b0b4c], 0
mov ecx, dword [ebp - 0x1008]
jne 0x402328
jmp 0x40239d
mov eax, dword [ebp - 0x1010]
test ebx, ebx
jne 0x4023a9
xor ecx, ecx
inc ecx
test eax, eax
cmovne ebx, ecx
test edi, edi
je 0x4023be
lea eax, [ebp - 0x1004]
cmp edi, eax
je 0x4023be
push edi
call fcn.004701df
pop ecx
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret
Function at 0x405770
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 0x4057dd
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4057e3
jns 0x4057aa
push ebx
call fcn.0040644b
mov ebx, eax
sub ebx, dword [ebp + 8]
push esi
call fcn.004701fa
pop ecx
cmp ebx, eax
jge 0x4057a0
mov esi, ebx
jmp 0x4057a9
push esi
call fcn.004701fa
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.0040635e
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp + 0x14]
jne 0x4057e8
cmp eax, esi
jg 0x4057e3
mov byte [eax + edi], 0
xor eax, eax
pop edi
pop esi
leave
ret
mov byte [edi], 0
jmp 0x4057dd
cmp eax, esi
jg 0x4057f5
mov byte [eax + edi], 0
mov eax, dword [ebp + 0x14]
jmp 0x4057df
mov byte [edi], 0
jmp 0x4057df

Function at 0x4058a3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4cc8c0]
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.00466ad0
add esp, 0xc
test esi, esi
je 0x4059a0
cmp byte [esi], 0
je 0x4059a0
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40590c
push dword [ebp + 0xc]
push esi
push str.CountProcesses__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED_
call fcn.0040d511
add esp, 0xc
or eax, 0xffffffff
jmp 0x4059a2
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40594f
push dword [ebp + 0xc]
push esi
push str.CountProcesses__s___d__FAILED:_Process32First___FAILED_
call fcn.0040d511
add esp, 0xc
push 0x914
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.CountProcesses
push ebx
call fcn.0040eb13
jmp 0x405904
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x108]
push esi
push eax
je 0x40596a
call fcn.00470487
pop ecx
pop ecx
test eax, eax
jne 0x405976
jmp 0x405975
call fcn.004529d5
pop ecx
pop ecx
test eax, eax
je 0x405976
inc edi
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40594f
push 0x938
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.CountProcesses
push ebx
call fcn.0040eb13
mov eax, edi
jmp 0x4059a2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret
Function at 0x4064f4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d37cc], 0
push esi
mov esi, 0x4d36c8
jne 0x40654e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x103
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x406534
push esi
call fcn.00451684
pop ecx
test eax, eax
jne 0x406534
mov dword [0x4d37cc], 1
jmp 0x40654e
push 0x104
push str.UNKNOWN_USER
push esi
call fcn.00452b01
add esp, 0xc
and dword [0x4d37cc], 0
mov eax, esi
pop esi
leave
ret

Function at 0x40656f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4cc8c0]
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.00466ad0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00466ad0
push esi
call fcn.00450a50
push ebx
call fcn.00451684
add esp, 0x20
test eax, eax
je 0x4065d1
xor eax, eax
jmp 0x40663b
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 0x406619
push edi
push str._GetLastError_
push ebx
push str.:4:GetRegString___s___FAILED:_RegQueryValueEx___FAILED:__s_ld
call fcn.0040d9e1
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4065cd
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.00452b01
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret
Function at 0x406740
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 [0x4d0284], eax
call fcn.0040686e
xor ebx, ebx
mov dword [0x4d077c], 1
push ebx
mov edi, eax
call fcn.004082da
pop ecx
pop ecx
call fcn.00406bcc
test eax, eax
jne 0x40677f
push str.:5:InitConsole___encountered_a_problem:_EnableNumLock___FAILED_
call fcn.0040d9e1
pop ecx
push esi
call fcn.00406559
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4067e4
push str.PAULA_Initialization...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esi, str._GetLastError_
test eax, eax
jne 0x4067b1
push esi
push str.:4:InitConsole___encountered_a_problem:_SetConsoleTitle___FAILED:__s
call fcn.0040d9e1
pop ecx
pop ecx
push 0x243
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406559
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
jne 0x4067d8
push esi
push str.:2:InitConsole___encountered_a_problem:_SetWindowPos___FAILED:__s
call fcn.0040d9e1
pop ecx
pop ecx
call fcn.00406559
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, 0x80
push eax
push eax
push dword [0x4d0754]
call fcn.00409f25
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x406832
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0x19
mov esi, eax
call fcn.00409e3c
pop ecx
test esi, esi
je 0x40682a
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.00409e3c
pop ecx
call fcn.00409e9f
push 1
call fcn.0040acf0
pop ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push str.DoNotScrmbErLg.txt
push ebx
call fcn.0043e0cb
push eax
call fcn.00410961
add esp, 0xc
pop esi
test eax, eax
je 0x406868
push ebx
call fcn.0040e527
pop ecx
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x40686e
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4cc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00466ad0
add esp, 0xc
call fcn.00406c22
or dword [0x4bf00c], 0xffffffff
xor esi, esi
or dword [0x4bf010], 0xffffffff
inc esi
and dword [0x4d2bac], 0
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x4068d2
push str._GetLastError_
push str.:7:InitConsole___FAILED:_AllocConsole___FAILED:__s
xor esi, esi
call fcn.0040d511
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 0x406900
push str._GetLastError_
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_INPUT_HANDLE__FAILED:__s
xor esi, esi
call fcn.0040d511
pop ecx
pop ecx
push 3
push 0xfffffffffffffff5
call edi
push eax
call ebx
mov ebx, str._GetLastError_
test eax, eax
jne 0x406921
push ebx
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_OUTPUT_HANDLE__FAILED:__s
xor esi, esi
call fcn.0040d511
pop ecx
pop ecx
push 1
push 0x405d6c
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x406941
push ebx
push str.:7:InitConsole___FAILED:_SetConsoleCtrlHandler___FAILED:__s
xor esi, esi
call fcn.0040d511
pop ecx
pop ecx
mov edi, 0x35c
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x406960
push edi
push str.:9:InitConsole___FAILED:_SetConsoleOutputCP___FAILED:_could_not_set_code_page__d___
xor esi, esi
call fcn.0040d511
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [0x4d0758], eax
test eax, eax
jne 0x40697e
push ebx
push str.:7:InitConsole___FAILED:_GetConsoleWindow___FAILED:__s
xor esi, esi
call fcn.0040d511
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 0x4069cb
lea eax, [ebp - 0x108]
push eax
call fcn.0045201f
lea eax, [ebp - 0x108]
mov dword [esp], 0x48a244
push eax
call fcn.00452920
pop ecx
pop ecx
test eax, eax
jne 0x4069cb
push eax
push eax
call fcn.0043e0cb
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push 0
call fcn.0043e0cb
push eax
call fcn.0044e175
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x4069ec
mov dword [0x4d0754], eax
call fcn.004609ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0047022a
pop ecx
call fcn.00470209
call fcn.00470209
call fcn.00470209
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004654a8
leave
ret
Function at 0x4076cb
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.0040635e
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 0x407718
or eax, 0xffffffff
jmp 0x4077a8
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 0x407790
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 fcn.004095d3
add esp, 0x14
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 0x4077a5
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 0x407b76
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
call fcn.00406b44
test eax, eax
je 0x407b87
xor eax, eax
inc eax
pop ebp
ret
pop ebp
jmp fcn.00407b8d

Function at 0x407b8d
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
call fcn.0040635e
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 0x407bc3
cmp eax, 0xffffffff
je 0x407bc3
push dword [ebp + 8]
push eax
call edi
mov dword [ebp - 4], eax
jmp 0x407bd8
push str._GetLastError_
push eax
push edx
push ecx
push str.:7:SetConsoleCursorPosServer__d___d_:_FAILED___x:__s
call fcn.0040d511
add esp, 0x14
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x407bef
cmp eax, 0xffffffff
je 0x407bef
push dword [ebp + 8]
push eax
call edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x407c06
cmp eax, 0xffffffff
je 0x407c06
push dword [ebp + 8]
push eax
call edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push 0x48c3f0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x407c2e
push dword [ebp + 8]
push eax
call edi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x408874
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4d2e7c]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
inc ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x4088bb
mov dword [0x4d2e80], ebx
test eax, eax
je 0x4088a2
push 0x19
call edi
mov eax, dword [0x4d2e7c]
test esi, esi
je 0x4088ac
test eax, eax
jne 0x40888f
jmp 0x4088c3
test eax, eax
je 0x4089d1
mov eax, ebx
jmp 0x4089d3
test esi, esi
je 0x4089d1
push 0x104
push esi
push 0x4d2e88
call fcn.00452b01
push esi
call fcn.00450a50
xor ecx, ecx
add esp, 0x10
xor esi, esi
cmp byte [0x4d2e88], cl
je 0x40892d
mov dl, byte [ecx + 0x4d2e88]
test esi, esi
je 0x408900
xor eax, eax
mov bl, 0x20
cmp dl, 0x29
cmovne eax, esi
mov esi, eax
jmp 0x40890d
cmp dl, 0x28
jne 0x40890b
mov esi, ebx
mov bl, 0x20
jmp 0x40890d
mov bl, dl
mov byte [ecx + 0x4d2f90], bl
inc ecx
push 1
mov eax, ecx
pop ebx
cmp byte [ecx + 0x4d2e88], 0
jne 0x4088e8
cmp eax, 0x104
jae 0x4089da
push 0x4d2f90
mov esi, 0x4d2e88
mov byte [ecx + 0x4d2f90], 0
push esi
call fcn.00470340
pop ecx
pop ecx
test eax, eax
je 0x4089b6
call fcn.004066dc
test eax, eax
jne 0x4089b6
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor edi, edi
and dword [0x4d2e80], edi
cmp dword [0x4d075c], 0
jne 0x4089a6
mov dword [0x4d2e7c], ebx
test edi, edi
je 0x408982
push 0x4d2f90
call esi
mov eax, 0x2ee
jmp 0x40898e
push 0x4d2e88
call esi
mov eax, 0x5dc
push 0x4d2e80
push eax
call fcn.00461014
pop ecx
xor edi, ebx
cmp dword [0x4d2e80], 0
pop ecx
je 0x408961
push 0x4d2e88
call esi
and dword [0x4d2e7c], 0
jmp 0x4089d1
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
and dword [0x4d2e7c], 0
push 0x3e8
mov dword [0x4d2e80], ebx
call edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
call fcn.0046565b
int3

Function at 0x4089e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4089ed
xor eax, eax
pop ebp
ret
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x408a2e
push edi
push str._GetLastError_
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.:4:SetRegDword___s____ld__FAILED:_RegSetValueEx___FAILED:__s_ld
call fcn.0040d9e1
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x408a31
xor eax, eax
inc eax
pop edi
pop ebp
ret