joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b490
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.1001a8f3
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001a8a8
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.1001a8e3
dec esi
or edi, dword [eax]
push cs
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
invalid
test ecx, esi

Function at 0x1001b570
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.1001a8f3
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001a8a8
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.1001a8e3
lea ecx, [esp + ebp*8 + 0x10468ee]
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1001b5d7
cmp dword [ebp - 0x398], 0
je 0x1001b7a1
cmp dword [ebp + 0xc], 1
je 0x1001b7a1
cmp dword [ebp + 0xc], 8
jne 0x1001b769
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
test dword [edx - 7], ecx
invalid
call [ebx - 0x6b45a80]
invalid
inc dword [eax]
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
invalid
test dword [ebp - 7], edx

Function at 0x1001c5e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
jle 0x1001c5d8
test dword [eax + edi*8 - 1], ebx
jmp dword [ecx]
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
clc
invalid
invalid
jle 0x1001c5fb
test dword [ecx - 8], esp
invalid
invalid
jle 0x1001c602
test dword [edx - 8], esp
invalid
call dword [edx]
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.1001a8f3
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
Function at 0x1001cf90
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x1003bf55
call fcn.1003b723
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
sete al
test al, al
je 0x1001cfc7
cmp di, bx
je 0x1001cfc0
movzx eax, di
jmp 0x1001d138
xor eax, eax
jmp 0x1001d138
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1001cff3
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x1001cff3
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x1001d138
cmp dword [esi + 0x4c], 0
je 0x1001d135
mov ecx, esi
call fcn.1001d562
cmp dword [esi + 0x38], 0
jne 0x1001d027
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x1001d135
movzx ebx, di
jmp 0x1001d135
push 0
push 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0x2c], di
call fcn.10014bd4
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x1001d053
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call fcn.1003a7f2
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x1001d129
cmp eax, 1
jg 0x1001d102
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x1001d09c
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x38]
sub edi, edx
je 0x1001d0ca
cmp eax, 0x10
jae 0x1001d0ab
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d0fd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x1001d0cd
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x3c], edx
jne 0x1001d0f7
test edi, edi
jne 0x1001d047
cmp dword [ebp - 0x18], 0x20
jae 0x1001d123
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.1001598c
jmp 0x1001d041
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
jmp 0x1001d123
cmp eax, 3
jne 0x1001d129
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x1001d123
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx eax, bx
movzx ebx, ax
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10015813
mov ax, bx
call fcn.1003b6cd
ret 4
Function at 0x1001d587
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x1003be87
call fcn.1003b723
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1001d68c
cmp byte [ebx + 0x3e], 0
je 0x1001d68c
mov esi, 0xffff
push esi
call fcn.1001cf90
movzx eax, ax
cmp si, ax
sete al
test al, al
je 0x1001d5c8
xor al, al
jmp 0x1001d68e
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.10014bd4
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, ecx
cmp eax, 0x10
jae 0x1001d5ea
lea edx, [ebp - 0x2c]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.1003a7f2
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x1001d61f
sub eax, 1
je 0x1001d623
dec eax
sub eax, 1
je 0x1001d67a
xor bl, bl
jmp 0x1001d67c
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
cmp eax, 0x10
jae 0x1001d633
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1001d65c
cmp eax, 0x10
jae 0x1001d642
lea ecx, [ebp - 0x2c]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x1001d61b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3e], 0
je 0x1001d67a
test esi, esi
jne 0x1001d5de
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.1001598c
jmp 0x1001d5d8
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10015813
mov al, bl
jmp 0x1001d68e
mov al, 1
call fcn.1003b6cd
ret

Function at 0x1001e31f
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
xor edi, edi
mov esi, 0x811c9dc5
test edx, edx
je 0x1001e33d
movzx eax, byte [edi + ecx]
xor eax, esi
imul esi, eax, 0x1000193
inc edi
cmp edi, edx
jb 0x1001e32c
pop edi
mov eax, esi
pop esi
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x2a9a755b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x374d48e9
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402084
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0043c600
mov eax, dword [0x492840]
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.0043dc10
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.00447314
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 [0x4778ac], 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.00441a37
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 [0x4778ac], 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.0044731f
pop ecx
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret
Function at 0x40421f
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 0x40428c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x404292
jns 0x404259
push ebx
call fcn.00404ee7
mov ebx, eax
sub ebx, dword [ebp + 8]
push esi
call fcn.0044733a
pop ecx
cmp ebx, eax
jge 0x40424f
mov esi, ebx
jmp 0x404258
push esi
call fcn.0044733a
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.00404dfa
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp + 0x14]
jne 0x404297
cmp eax, esi
jg 0x404292
mov byte [eax + edi], 0
xor eax, eax
pop edi
pop esi
leave
ret
mov byte [edi], 0
jmp 0x40428c
cmp eax, esi
jg 0x4042a4
mov byte [eax + edi], 0
mov eax, dword [ebp + 0x14]
jmp 0x40428e
mov byte [edi], 0
jmp 0x40428e

Function at 0x404352
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x492840]
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.0043dc10
add esp, 0xc
test esi, esi
je 0x40444f
cmp byte [esi], 0
je 0x40444f
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4043bb
push dword [ebp + 0xc]
push esi
push str.CountProcesses__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED_
call fcn.0040906e
add esp, 0xc
or eax, 0xffffffff
jmp 0x404451
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4043fe
push dword [ebp + 0xc]
push esi
push str.CountProcesses__s___d__FAILED:_Process32First___FAILED_
call fcn.0040906e
add esp, 0xc
push 0x921
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateConsole.c
push str.CountProcesses
push ebx
call fcn.0040a58b
jmp 0x4043b3
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x108]
push esi
push eax
je 0x404419
call fcn.004475c7
pop ecx
pop ecx
test eax, eax
jne 0x404425
jmp 0x404424
call fcn.0042ecfe
pop ecx
pop ecx
test eax, eax
je 0x404425
inc edi
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4043fe
push 0x945
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateConsole.c
push str.CountProcesses
push ebx
call fcn.0040a58b
mov eax, edi
jmp 0x404451
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret
Function at 0x404f90
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x499134], 0
push esi
mov esi, 0x499338
jne 0x404fea
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x103
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x404fd0
push esi
call fcn.0042da83
pop ecx
test eax, eax
jne 0x404fd0
mov dword [0x499134], 1
jmp 0x404fea
push 0x104
push str.UNKNOWN_USER
push esi
call fcn.0042ee2a
add esp, 0xc
and dword [0x499134], 0
mov eax, esi
pop esi
leave
ret

Function at 0x405005
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x492840]
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.0043dc10
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0043dc10
push esi
call fcn.0042d010
push ebx
call fcn.0042da83
add esp, 0x20
test eax, eax
je 0x405067
xor eax, eax
jmp 0x4050d1
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 0x4050af
push edi
push str._GetLastError_
push ebx
push str.:4:GetRegString___s___FAILED:_RegQueryValueEx___FAILED:__s_ld
call fcn.0040953d
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x405063
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.0042ee2a
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret
Function at 0x4051d6
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 [0x496204], eax
call fcn.00405304
xor ebx, ebx
mov dword [0x4966fc], 1
push ebx
mov edi, eax
call fcn.004067a6
pop ecx
pop ecx
call fcn.00410746
test eax, eax
jne 0x405215
push str.:5:InitConsole___encountered_a_problem:_EnableNumLock___FAILED_
call fcn.0040953d
pop ecx
push esi
call fcn.00404ff5
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40527a
push str.PAULA_Initialization...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esi, str._GetLastError_
test eax, eax
jne 0x405247
push esi
push str.:4:InitConsole___encountered_a_problem:_SetConsoleTitle___FAILED:__s
call fcn.0040953d
pop ecx
pop ecx
push 0x243
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404ff5
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
jne 0x40526e
push esi
push str.:2:InitConsole___encountered_a_problem:_SetWindowPos___FAILED:__s
call fcn.0040953d
pop ecx
pop ecx
call fcn.00404ff5
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, 0x80
push eax
push eax
push dword [0x4966d4]
call fcn.004080c9
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x4052c8
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0x19
mov esi, eax
call fcn.0040804f
pop ecx
test esi, esi
je 0x4052c0
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.0040804f
pop ecx
call fcn.004080b2
push 1
call fcn.00408e94
pop ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push str.DoNotScrmbErLg.txt
push ebx
call fcn.00425158
push eax
call fcn.0040bca2
add esp, 0xc
pop esi
test eax, eax
je 0x4052fe
push ebx
call fcn.0040a042
pop ecx
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x405304
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x492840]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0043dc10
add esp, 0xc
call fcn.004055f9
or dword [0x48500c], 0xffffffff
xor esi, esi
or dword [0x485010], 0xffffffff
inc esi
and dword [0x498b2c], 0
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x405368
push str._GetLastError_
push str.:7:InitConsole___FAILED:_AllocConsole___FAILED:__s
xor esi, esi
call fcn.0040906e
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 0x405396
push str._GetLastError_
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_INPUT_HANDLE__FAILED:__s
xor esi, esi
call fcn.0040906e
pop ecx
pop ecx
push 3
push 0xfffffffffffffff5
call edi
push eax
call ebx
mov ebx, str._GetLastError_
test eax, eax
jne 0x4053b7
push ebx
push str.:7:InitConsole___FAILED:_SetConsoleMode_STD_OUTPUT_HANDLE__FAILED:__s
xor esi, esi
call fcn.0040906e
pop ecx
pop ecx
push 1
push 0x40481b
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x4053d7
push ebx
push str.:7:InitConsole___FAILED:_SetConsoleCtrlHandler___FAILED:__s
xor esi, esi
call fcn.0040906e
pop ecx
pop ecx
mov edi, 0x35c
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x4053f6
push edi
push str.:9:InitConsole___FAILED:_SetConsoleOutputCP___FAILED:_could_not_set_code_page__d___
xor esi, esi
call fcn.0040906e
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [0x4966d8], eax
test eax, eax
jne 0x405414
push ebx
push str.:7:InitConsole___FAILED:_GetConsoleWindow___FAILED:__s
xor esi, esi
call fcn.0040906e
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 0x405461
lea eax, [ebp - 0x108]
push eax
call fcn.0042e37d
lea eax, [ebp - 0x108]
mov dword [esp], 0x4611ec
push eax
call fcn.0042ec49
pop ecx
pop ecx
test eax, eax
jne 0x405461
push eax
push eax
call fcn.00425158
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push 0
call fcn.00425158
push eax
call fcn.0042bf13
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x405482
mov dword [0x4966d4], eax
call fcn.00438ea7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0044736a
pop ecx
call fcn.00447349
call fcn.00447349
call fcn.00447349
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043c5ec
leave
ret
Function at 0x405bd6
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.00404dfa
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 0x405c23
or eax, 0xffffffff
jmp 0x405cb3
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 0x405c9b
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.00407939
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 0x405cb0
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 0x406042
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
call fcn.00405583
test eax, eax
je 0x406053
xor eax, eax
inc eax
pop ebp
ret
pop ebp
jmp fcn.00406059

Function at 0x406059
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
call fcn.00404dfa
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 0x40608f
cmp eax, 0xffffffff
je 0x40608f
push dword [ebp + 8]
push eax
call edi
mov dword [ebp - 4], eax
jmp 0x4060a4
push str._GetLastError_
push eax
push edx
push ecx
push str.:7:SetConsoleCursorPosServer__d___d_:_FAILED___x:__s
call fcn.0040906e
add esp, 0x14
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4060bb
cmp eax, 0xffffffff
je 0x4060bb
push dword [ebp + 8]
push eax
call edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4060d2
cmp eax, 0xffffffff
je 0x4060d2
push dword [ebp + 8]
push eax
call edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push 0x462a90
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4060fa
push dword [ebp + 8]
push eax
call edi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x406d0c
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x498dfc]
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 0x406d53
mov dword [0x498e00], ebx
test eax, eax
je 0x406d3a
push 0x19
call edi
mov eax, dword [0x498dfc]
test esi, esi
je 0x406d44
test eax, eax
jne 0x406d27
jmp 0x406d5b
test eax, eax
je 0x406e69
mov eax, ebx
jmp 0x406e6b
test esi, esi
je 0x406e69
push 0x104
push esi
push 0x498e08
call fcn.0042ee2a
push esi
call fcn.0042d010
xor ecx, ecx
add esp, 0x10
xor esi, esi
cmp byte [0x498e08], cl
je 0x406dc5
mov dl, byte [ecx + 0x498e08]
test esi, esi
je 0x406d98
xor eax, eax
mov bl, 0x20
cmp dl, 0x29
cmovne eax, esi
mov esi, eax
jmp 0x406da5
cmp dl, 0x28
jne 0x406da3
mov esi, ebx
mov bl, 0x20
jmp 0x406da5
mov bl, dl
mov byte [ecx + 0x498f10], bl
inc ecx
push 1
mov eax, ecx
pop ebx
cmp byte [ecx + 0x498e08], 0
jne 0x406d80
cmp eax, 0x104
jae 0x406e72
push 0x498f10
mov esi, 0x498e08
mov byte [ecx + 0x498f10], 0
push esi
call fcn.00447480
pop ecx
pop ecx
test eax, eax
je 0x406e4e
call fcn.00405172
test eax, eax
jne 0x406e4e
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor edi, edi
and dword [0x498e00], edi
cmp dword [0x4966dc], 0
jne 0x406e3e
mov dword [0x498dfc], ebx
test edi, edi
je 0x406e1a
push 0x498f10
call esi
mov eax, 0x2ee
jmp 0x406e26
push 0x498e08
call esi
mov eax, 0x5dc
push 0x498e00
push eax
call fcn.00439501
pop ecx
xor edi, ebx
cmp dword [0x498e00], 0
pop ecx
je 0x406df9
push 0x498e08
call esi
and dword [0x498dfc], 0
jmp 0x406e69
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
and dword [0x498dfc], 0
push 0x3e8
mov dword [0x498e00], ebx
call edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
call fcn.0043c79b
int3

Function at 0x406e78
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x406e85
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 0x406ec6
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.0040953d
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x406ec9
xor eax, eax
inc eax
pop edi
pop ebp
ret