joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a453
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.004a7110
add esp, 0xc
call fcn.0040a3f4
xor edi, edi
inc edi
call fcn.0040c448
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x40a4a1
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 7
push 0xfffffffffffffff6
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push eax
call ebx
test eax, eax
jne 0x40a4bc
xor edi, edi
push 3
push 0xfffffffffffffff5
call esi
push eax
call ebx
test eax, eax
jne 0x40a4cb
xor edi, edi
push 1
push 0x40a5bc
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x40a4de
xor edi, edi
push 0x35c
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x40a4ef
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ebx, ebx
cmp eax, ebx
mov dword [0x513860], eax
jne 0x40a502
xor edi, edi
lea eax, [ebp - 0x80]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x40a53f
lea edx, [ebp - 0x80]
call fcn.00476270
mov eax, edx
push eax
mov esi, 0x4c53cc
call fcn.004759be
test eax, eax
pop ecx
jne 0x40a53f
push ebx
push ebx
call fcn.00459cf0
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.00459cf0
pop ecx
pop ecx
mov ebx, eax
call fcn.004729ce
call fcn.00498efc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004a75bf
pop ecx
call fcn.004a75cc
call fcn.004a75cc
call fcn.004a75cc
mov ecx, dword [ebp + 0x84]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
add ebp, 0x88
leave
ret
Function at 0x40a620
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
push ebx
mov esi, eax
call fcn.0040a7c7
cmp esi, ebx
pop ecx
mov dword [0x513790], ebx
jne 0x40a65f
xor eax, eax
jmp 0x40a7b0
push edi
push 0x400
mov eax, 0x513390
push ebx
push eax
mov dword [0x513798], eax
xor edi, edi
mov dword [ebp - 0x7c], ebx
call fcn.004a7110
mov eax, dword [0x513790]
mov edx, dword [0x51338c]
add esp, 0xc
cmp byte [esi], bl
je 0x40a728
mov dword [ebp - 0x80], esi
cmp eax, 0x32
jge 0x40a714
lea esi, [edx + edi]
cmp esi, 0x3f6
jge 0x40a714
mov ecx, dword [ebp - 0x80]
mov cl, byte [ecx]
cmp cl, 0x20
ja 0x40a6e7
xor ebx, ebx
cmp dword [ebp - 0x7c], ebx
jne 0x40a6e7
cmp edi, ebx
jle 0x40a6e3
inc eax
cmp eax, 1
lea edx, [esi + 6]
mov dword [0x513790], eax
mov dword [0x51338c], edx
jne 0x40a6d6
add edx, 4
mov dword [0x51338c], edx
lea ecx, [edx + 0x513390]
mov dword [eax*4 + 0x513798], ecx
xor edi, edi
jmp 0x40a70a
cmp cl, 0x22
jne 0x40a6ff
cmp dword [ebp - 0x7c], ebx
jne 0x40a6fa
mov dword [ebp - 0x7c], 1
jmp 0x40a70a
mov dword [ebp - 0x7c], ebx
jmp 0x40a70a
mov esi, dword [eax*4 + 0x513798]
mov byte [edi + esi], cl
inc edi
inc dword [ebp - 0x80]
mov ecx, dword [ebp - 0x80]
cmp byte [ecx], bl
jne 0x40a694
cmp edi, ebx
jle 0x40a728
inc eax
lea edx, [edx + edi + 1]
mov dword [0x513790], eax
mov dword [0x51338c], edx
push 0x32
pop ecx
cmp eax, ecx
jge 0x40a740
lea edi, [eax*4 + 0x513798]
sub ecx, eax
lea eax, [edx + 0x513390]
rep stosd dword es:[edi], eax
mov esi, dword [0x513798]
call fcn.004760b0
mov edx, eax
call fcn.00475851
test eax, eax
je 0x40a7aa
push 0x103
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.004a7110
push dword [0x513798]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x78]
call fcn.00475883
mov eax, esi
push str..exe
lea esi, [ebp - 0x78]
call fcn.00475953
add esp, 0x14
mov edi, esi
call fcn.00418e6b
test eax, eax
je 0x40a7aa
mov eax, esi
push eax
push dword [0x513798]
call fcn.004a64e0
pop ecx
pop ecx
mov eax, dword [0x513790]
pop edi
mov ecx, dword [ebp + 0x8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
add ebp, 0x90
leave
ret
Function at 0x40a8a0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp + 0x798], eax
mov eax, dword [ebp + 0x7a4]
push ebx
push esi
push edi
xor ebx, ebx
push 0x7fe
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x66]
push ebx
push eax
mov word [ebp - 0x68], bx
call fcn.004a7110
xor eax, eax
xor ecx, ecx
add esp, 0xc
cmp byte [ebp + 0x7b0], bl
lea edi, [ebp - 0x72]
setne cl
stosw word es:[edi], ax
mov edi, dword [ebp + 0x7a8]
mov eax, 0x400
mov dword [ebp - 0x6c], ebx
sub eax, ecx
cmp edi, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], ebx
jl 0x40a914
mov eax, 0x3ff
sub eax, ecx
mov edi, eax
call fcn.0040c404
lea ebx, [ebp - 0x70]
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x80], eax
call fcn.0040c05c
cmp byte [ebp + 0x7b0], 0
mov ax, word [ebp - 0x6c]
mov word [ebp - 0x74], ax
mov ax, word [ebp - 0x70]
mov word [ebp - 0x72], ax
je 0x40a941
inc edi
test edi, edi
jle 0x40aa54
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push edi
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
test eax, eax
je 0x40aa85
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40aa85
cmp eax, edi
je 0x40a977
mov edi, eax
xor eax, eax
cmp dword [ebp + 0x7ac], eax
je 0x40a992
test edi, edi
jle 0x40a9a2
or word [ebp + eax*2 - 0x68], 8
inc eax
cmp eax, edi
jl 0x40a985
jmp 0x40a9a2
test edi, edi
jle 0x40a9a2
and word [ebp + eax*2 - 0x68], 0xfff7
inc eax
cmp eax, edi
jl 0x40a996
cmp byte [ebp + 0x7b0], 0
je 0x40a9b4
lea eax, [ebp + eax*2 - 0x6a]
and word [eax], 0xfff7
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push edi
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
xor eax, eax
cmp byte [ebp + 0x7b0], al
mov ecx, edi
setne al
sub ecx, eax
push ecx
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call esi
call fcn.0040c382
and dword [ebp - 0x78], 0
test edi, edi
mov ebx, eax
jle 0x40aa54
cmp byte [ebp + 0x7b0], 0
je 0x40aa33
lea eax, [edi - 1]
cmp dword [ebp - 0x78], eax
jne 0x40aa33
mov ax, word [ebp - 0x6c]
mov word [ebp - 0x74], ax
mov ax, word [ebp - 0x70]
mov word [ebp - 0x72], ax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x7b0]
push 1
push eax
push dword [ebp - 0x80]
call esi
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], ebx
jl 0x40aa4c
call fcn.0040c291
and dword [ebp - 0x6c], 0
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], eax
jge 0x40aa7b
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], edi
jl 0x40a9fd
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call fcn.0040bfb4
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp + 0x798]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
add ebp, 0x79c
leave
ret
dec eax
dec ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ebx
jmp 0x40aa54
or eax, 0xffffffff
jmp 0x40aa63
Function at 0x40ac8a
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test esi, esi
push ebx
mov ebx, eax
jne 0x40ac9a
xor eax, eax
jmp 0x40ad0f
test ebx, ebx
jne 0x40aca3
mov byte [esi], 0
jmp 0x40ac96
jge 0x40acc9
push edi
call fcn.0040c382
mov edi, eax
sub edi, dword [ebp + 8]
push ebx
call fcn.004a863d
cmp edi, eax
pop ecx
jge 0x40acbf
mov ebx, edi
jmp 0x40acc8
push ebx
call fcn.004a863d
pop ecx
mov ebx, eax
pop edi
mov ax, word [ebp + 8]
mov word [ebp - 8], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 6], ax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push esi
call fcn.0040c404
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x40acff
cmp eax, ebx
jg 0x40ac9e
mov byte [eax + esi], 0
jmp 0x40ac96
cmp eax, ebx
jg 0x40ad09
mov byte [eax + esi], 0
jmp 0x40ad0c
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x40ae4d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x22c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x230], ebx
call fcn.004a7110
add esp, 0xc
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.004a7110
add esp, 0xc
push 9
xor eax, eax
pop ecx
mov dword [ebp - 0x258], ebx
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
mov eax, esi
call fcn.00478659
test eax, eax
jne 0x40aecd
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40aebe
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40af07
or ebx, 0xffffffff
mov esi, edi
call fcn.0041b138
mov eax, ebx
jmp 0x40aebe
lea eax, [ebp - 0x20c]
push eax
mov ecx, pe_nt_image_headers32
lea eax, [ebp - 0x108]
call fcn.00475883
pop ecx
push eax
push esi
call fcn.00478677
push dword [ebp - 0x228]
call fcn.00478ed8
add esp, 0xc
push dword [ebp - 0x21c]
call fcn.00478f65
pop ecx
lea eax, [ebp - 0x230]
push eax
push edi
inc ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40af07
jmp 0x40aefc
Function at 0x40afb5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x12c]
push ebx
push eax
mov dword [ebp - 0x130], ebx
call fcn.004a7110
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x13c], ebx
call fcn.00475851
test eax, eax
je 0x40b00b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x13c], eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
or edi, 0xffffffff
cmp eax, edi
mov dword [ebp - 0x138], eax
jne 0x40b031
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret
lea ecx, [ebp - 0x130]
push ecx
push eax
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40b059
mov esi, dword [ebp - 0x138]
call fcn.0041b138
jmp 0x40b020
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 0x13c]
cmp dword [ebp - 0x128], eax
jne 0x40b075
mov dword [ebp - 0x134], 1
cmp dword [ebp - 0x134], ebx
je 0x40b083
add edi, dword [ebp - 0x11c]
inc esi
cmp esi, 0x300
jle 0x40b094
cmp esi, 0x309
jge 0x40b04c
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x138]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b05d
jmp 0x40b04c

Function at 0x40b0ac
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x130]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x134], ebx
call fcn.004a7110
add esp, 0xc
cmp esi, ebx
je 0x40b17a
cmp byte [esi], bl
je 0x40b17a
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40b17c
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40b129
mov esi, edi
call fcn.0041b138
or eax, 0xffffffff
jmp 0x40b17c
mov dword [ebp - 0x138], ebx
cmp dword [ebp + 8], ebx
push esi
lea eax, [ebp - 0x110]
push eax
je 0x40b149
call fcn.004a6eff
test eax, eax
pop ecx
pop ecx
je 0x40b154
jmp 0x40b15a
call fcn.00476422
test eax, eax
pop ecx
pop ecx
je 0x40b15a
inc dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b12f
mov esi, edi
call fcn.0041b138
mov eax, dword [ebp - 0x138]
jmp 0x40b17c
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret
Function at 0x40b18b
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp + 0x89]
push ebx
push eax
mov byte [ebp + 0x88], bl
call fcn.004a7110
push esi
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.004a7110
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esi + 1]
lea eax, [ebp + 0x88]
mov dword [ebp - 0x80], ebx
call fcn.00475883
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0x1c
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
mov edi, 0xf003f
push edi
push ebx
push ebx
push ebx
lea eax, [ebp + 0x88]
push eax
push SysStringLen
call esi
test eax, eax
je 0x40b232
push ebx
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
lea eax, [ebp + 0x88]
push eax
push 0x80000001
call esi
test eax, eax
je 0x40b232
xor eax, eax
jmp 0x40b289
push str.PAULA.exe
push ebx
push ebx
call fcn.00459cf0
pop ecx
pop ecx
push eax
push str._s_s__InitServer
lea eax, [ebp - 0x7c]
push 0x104
push eax
call fcn.00476e0a
lea eax, [ebp - 0x7c]
push eax
call fcn.004a63c0
add esp, 0x18
inc eax
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push str.PAULA_Server
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x80]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
add ebp, 0x190
leave
ret
Function at 0x40b86f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1a4]
xor ebx, ebx
push 0x207
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x73]
push ebx
push eax
mov byte [ebp - 0x74], bl
call fcn.004a7110
push 0x208
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.004a7110
mov eax, dword [ebp - 0x78]
add esp, 0x18
call fcn.004757d4
mov edx, edi
call fcn.00475851
test eax, eax
je 0x40b8dd
xor eax, eax
jmp 0x40b917
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], 0x207
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40b905
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40b8d9
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
mov ecx, 0x102
call fcn.00475883
pop ecx
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop ebx
call fcn.004a69f5
add ebp, 0x198
leave
ret
Function at 0x40bfb4
Capabilities:
Manipulate console buffer

Disassembly:
call fcn.0040ef2e
test eax, eax
je 0x40bfc1
xor eax, eax
inc eax
ret
jmp fcn.0040bfc6

Function at 0x40d8d5
Capabilities:
Set console window title

Disassembly:
mov eax, dword [0x515f74]
test eax, eax
push ebx
push edi
mov edi, dword [esp + 0xc]
je 0x40d916
xor ebx, ebx
inc ebx
test eax, eax
mov dword [0x515f78], ebx
je 0x40d8fe
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x515f74]
test edi, edi
je 0x40d908
test eax, eax
jne 0x40d8e4
jmp 0x40d919
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x40da22
xor ebx, ebx
inc ebx
test edi, edi
je 0x40da20
push esi
mov esi, 0x515f80
push edi
mov ecx, 0x104
mov eax, esi
call fcn.00475883
pop ecx
mov eax, edi
call fcn.004757d4
mov cl, byte [0x515f80]
xor edx, edx
xor eax, eax
jmp 0x40d972
test edx, edx
je 0x40d95c
cmp cl, 0x29
jne 0x40d953
xor edx, edx
mov byte [eax + 0x516088], 0x20
jmp 0x40d96b
cmp cl, 0x28
jne 0x40d965
mov edx, ebx
jmp 0x40d953
mov byte [eax + 0x516088], cl
mov cl, byte [eax + 0x515f81]
inc eax
test cl, cl
jne 0x40d948
push ebp
mov ebp, 0x516088
push ebp
push esi
mov byte [eax + 0x516088], cl
call fcn.004a75f0
test eax, eax
pop ecx
pop ecx
je 0x40d9ff
call fcn.0040d790
test eax, eax
jne 0x40d9ff
and dword [esp + 0x14], eax
and dword [0x515f78], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ebx, 0x515f78
call fcn.0040a5f9
test eax, eax
jne 0x40d9f3
cmp dword [esp + 0x14], eax
mov dword [0x515f74], 1
je 0x40d9d0
push ebp
call edi
mov eax, 0x2ee
jmp 0x40d9d8
push esi
call edi
mov eax, 0x5dc
call fcn.00498e3c
xor eax, eax
cmp dword [esp + 0x14], eax
sete al
cmp dword [0x515f78], 0
mov dword [esp + 0x14], eax
je 0x40d9ad
push esi
call edi
and dword [0x515f74], 0
jmp 0x40da1e
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
and dword [0x515f74], 0
push 0x3e8
mov dword [0x515f78], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebp
pop esi
xor eax, eax
pop edi
pop ebx
ret 4
Function at 0x40daeb
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xa8]
mov ebx, pe_nt_image_headers32
lea esi, [ebx - 1]
push esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.004a7110
and word [ebp - 0x74], 0
xor eax, eax
and dword [ebp - 0x80], eax
lea edi, [ebp - 0x72]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x78]
add esp, 0xc
call fcn.00475873
test eax, eax
je 0x40db58
xor eax, eax
jmp 0x40dbf1
push dword [ebp - 0x7c]
lea edi, [ebp - 0x70]
push dword [ebp - 0x78]
mov eax, edi
push esi
push eax
jmp 0x40db95
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40db75
push edi
call fcn.004a5de4
pop ecx
add ebx, ebx
lea eax, [ebx + 0xa]
push eax
push 1
call fcn.004a5f90
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40db51
push dword [ebp - 0x7c]
lea eax, [ebx - 1]
push dword [ebp - 0x78]
push eax
push edi
call fcn.004a81d8
add esp, 0x10
cmp eax, 0xffffffff
je 0x40db67
mov cx, word [ebp + 0x9c]
mov word [ebp - 0x74], cx
mov cx, word [ebp + 0xa0]
mov word [ebp - 0x72], cx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp - 0x74]
push eax
push edi
call fcn.0040c404
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
test eax, eax
jne 0x40dbe0
cmp byte [0x5159ab], al
jne 0x40dbe0
mov byte [0x5159ab], 1
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40dbee
push edi
call fcn.004a5de4
pop ecx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
add ebp, 0x94
leave
ret
Function at 0x40ec76
Capabilities:
Get disk size
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0xf0]
push 0x90
mov dword [ebp - 0xf4], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x9c]
push esi
push eax
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], esi
call fcn.004a7110
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0xd4], esi
lea edi, [ebp - 0xd0]
rep stosd dword es:[edi], eax
mov edi, 0x94
push edi
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.004a7110
push 0x24
lea eax, [ebp - 0xd4]
push esi
push eax
call fcn.004a7110
push 0x20
lea eax, [ebp - 0xf4]
push esi
push eax
call fcn.004a7110
add esp, 0x30
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40ed32
xor eax, eax
jmp 0x40eda7
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push esi
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xb0]
push eax
push esi
push esi
call fcn.00459cf0
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40ed2e
movzx eax, word [ebp - 0xb2]
add eax, dword [ebp - 0xa8]
movzx ecx, word [ebp - 0xd4]
add ecx, eax
add ecx, dword [ebp - 0xec]
mov eax, dword [ebp - 0x9c]
add ecx, dword [ebp - 0x98]
lea eax, [ecx + eax + 0x2222]
cmp eax, esi
jne 0x40eda7
mov eax, 0x111
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a69f5
leave
ret
Function at 0x40f5e6
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [esp + 0x14], esi
push edi
jle 0x40f63e
push 1
mov ebx, 0x410
push ebx
call fcn.004a5f90
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
je 0x40f63e
push ebx
push esi
push edi
call fcn.004a7110
mov ebx, dword [0x5168dc]
add esp, 0xc
cmp ebx, esi
jne 0x40f628
call fcn.00468599
mov ebx, eax
mov dword [0x5168dc], ebx
push edi
call fcn.0046864b
cmp dword [0x5168dc], esi
pop ecx
jne 0x40f644
push edi
call fcn.004a5de4
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret
lea eax, [edi + 0x1b8]
push 0x4c7d78
push eax
call fcn.004a64e0
lea ebx, [edi + 0x250]
push str..ConsoleField.c
push ebx
mov dword [edi + 0x15c], 1
mov dword [edi + 0x174], esi
mov dword [edi + 0x190], esi
mov dword [edi + 0x18c], 2
call fcn.0041b39e
mov esi, str.A_Console_Field_handle_had_to_be_forced_to_unlock___
mov eax, ebx
call fcn.0041b599
mov eax, 0xbb8
mov ecx, ebx
call fcn.0041b5c2
mov eax, edi
call fcn.0041433b
push 0x4c724c
push 0xffffffffffffffff
push dword [esp + 0x30]
mov eax, edi
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.0040f856
add esp, 0x24
test eax, eax
jne 0x40f6d2
mov eax, edi
call fcn.0040f6e8
jmp 0x40f63e
mov esi, edi
call fcn.0040fce5
push 0x5f
call fcn.0040fd10
pop ecx
mov eax, edi
jmp 0x40f640