joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444a40]
jne 0x408f1a
repz ret
jmp fcn.0040ae7c

Function at 0x40a397
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405b4a
and dword [ebp - 4], 0
cmp dword [0x447d2c], 0
mov ebx, eax
jne 0x40a448
push 0x402bdc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402bd0
push edi
call esi
test eax, eax
je 0x40a4f9
push eax
call fcn.00405ad8
mov dword [esp], 0x402bc0
push edi
mov dword [0x447d2c], eax
call esi
push eax
call fcn.00405ad8
mov dword [esp], 0x402bac
push edi
mov dword [0x447d30], eax
call esi
push eax
call fcn.00405ad8
mov dword [esp], 0x402b90
push edi
mov dword [0x447d34], eax
call esi
push eax
call fcn.00405ad8
pop ecx
mov dword [0x447d3c], eax
test eax, eax
je 0x40a448
push 0x402b78
push edi
call esi
push eax
call fcn.00405ad8
pop ecx
mov dword [0x447d38], eax
mov eax, dword [0x447d38]
cmp eax, ebx
je 0x40a4a0
cmp dword [0x447d3c], ebx
je 0x40a4a0
push eax
call fcn.00405b53
push dword [0x447d3c]
mov esi, eax
call fcn.00405b53
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a4a0
test edi, edi
je 0x40a4a0
call esi
test eax, eax
je 0x40a497
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a497
test byte [ebp - 0xc], 1
jne 0x40a4a0
or dword [ebp + 0x10], 0x200000
jmp 0x40a4d9
mov eax, dword [0x447d30]
cmp eax, ebx
je 0x40a4d9
push eax
call fcn.00405b53
pop ecx
test eax, eax
je 0x40a4d9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a4d9
mov eax, dword [0x447d34]
cmp eax, ebx
je 0x40a4d9
push eax
call fcn.00405b53
pop ecx
test eax, eax
je 0x40a4d9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447d2c]
call fcn.00405b53
pop ecx
test eax, eax
je 0x40a4f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404990
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d60
call fcn.00410510
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x462138]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x46213c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.00404980
mov ecx, dword [0x462140]
mov edx, dword [0x462144]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404a00
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x47a254]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x404a2c
mov dword [0x47a250], 0xedeb2e40
jmp 0x404a47
cmp eax, 0x3eb
jne 0x404a47
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x479ce0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x47a254], 0x9e6
mov dword [0x47a24c], 0xf4ea3dee
jne 0x404a82
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x47a254], 0x213
jne 0x404b20
push 0
lea eax, [ebp - 0x960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x1560]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1d60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x47a254], 0xc
jne 0x404b3e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404a00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b90
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.00410510
mov eax, dword [0x47a254]
mov ecx, dword [0x479ce4]
shr eax, 3
test eax, eax
jbe 0x404ca8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x47a254], 0x959
jne 0x404c8e
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404990
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b8c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x461540]
jne 0x408b96
repz ret
jmp fcn.0040c8db

Function at 0x40b883
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409ac6
and dword [ebp - 4], 0
cmp dword [0x4672f4], 0
mov ebx, eax
jne 0x40b934
push 0x4024bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024b0
push edi
call esi
test eax, eax
je 0x40b9e5
push eax
call fcn.00409a54
mov dword [esp], 0x4024a0
push edi
mov dword [0x4672f4], eax
call esi
push eax
call fcn.00409a54
mov dword [esp], 0x40248c
push edi
mov dword [0x4672f8], eax
call esi
push eax
call fcn.00409a54
mov dword [esp], 0x402470
push edi
mov dword [0x4672fc], eax
call esi
push eax
call fcn.00409a54
pop ecx
mov dword [0x467304], eax
test eax, eax
je 0x40b934
push 0x402458
push edi
call esi
push eax
call fcn.00409a54
pop ecx
mov dword [0x467300], eax
mov eax, dword [0x467300]
cmp eax, ebx
je 0x40b98c
cmp dword [0x467304], ebx
je 0x40b98c
push eax
call fcn.00409acf
push dword [0x467304]
mov esi, eax
call fcn.00409acf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b98c
test edi, edi
je 0x40b98c
call esi
test eax, eax
je 0x40b983
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b983
test byte [ebp - 0xc], 1
jne 0x40b98c
or dword [ebp + 0x10], 0x200000
jmp 0x40b9c5
mov eax, dword [0x4672f8]
cmp eax, ebx
je 0x40b9c5
push eax
call fcn.00409acf
pop ecx
test eax, eax
je 0x40b9c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9c5
mov eax, dword [0x4672fc]
cmp eax, ebx
je 0x40b9c5
push eax
call fcn.00409acf
pop ecx
test eax, eax
je 0x40b9c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4672f4]
call fcn.00409acf
pop ecx
test eax, eax
je 0x40b9e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x48c3c0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402366
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b4a
lea eax, [esp + 0x14]
push 0x235
push eax
call fcn.00403a65
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x40237e
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402e72
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x40232e
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406114
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402e72
jmp 0x402368

Function at 0x403ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48d2f0], eax
push 0x27
push 0x48be28
push 0x547
mov esi, 0x48be50
push esi
call fcn.0040239c
push 0x8aafdc01
push dword [0x48d2f0]
call fcn.004022fd
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x40
push 0x4e4
push esi
call eax
pop edi
pop esi
test eax, eax
je 0x403f40
call fcn.00403de5
xor eax, eax
pop ecx
ret 0x10
Function at 0x402dac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x4d
lea eax, [ebp - 0x53]
push ebx
push eax
mov byte [ebp - 0x54], bl
call fcn.004a8c80
add esp, 0xc
cmp esi, ebx
jne 0x402ddd
or eax, 0xffffffff
jmp 0x402e88
lea eax, [ebp - 0x54]
push eax
mov edx, str.____This_is_the_beginning_of_a_PAULA_Arkive_self_extracting_compilation.____
call fcn.00479d82
push esi
call fcn.004a83d2
push esi
mov dword [ebp - 0x58], ebx
call fcn.004a842e
add esp, 0xc
cmp eax, 0xffffffff
je 0x402e24
push 1
push eax
lea eax, [ebp - 0x58]
lea ebx, [ebp - 0x54]
call fcn.0041ea23
test eax, eax
pop ecx
pop ecx
jne 0x402e81
push esi
call fcn.004a842e
cmp eax, 0xffffffff
pop ecx
jne 0x402e02
xor ebx, ebx
push edi
push 2
push ebx
push esi
call fcn.004a81cf
add esp, 0xc
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004a7f30
pop ecx
push eax
lea eax, [ebp - 0x54]
push 1
push eax
call fcn.004a7ca6
mov edi, eax
lea eax, [ebp - 0x54]
push eax
call fcn.004a7f30
add esp, 0x14
cmp edi, eax
pop edi
jne 0x402dd5
push esi
call fcn.004a83d2
push 2
push 0xffffffffffffffff
push esi
call fcn.004a81cf
push esi
call fcn.004a842e
push 2
push ebx
push esi
call fcn.004a81cf
add esp, 0x20
push esi
call fcn.004a7ec0
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
Function at 0x403ce6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004b9e10
push ebx
push esi
xor ebx, ebx
push 0xffc
lea eax, [ebp - 0x1004]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x1008], ebx
call fcn.004a8c80
add esp, 0xc
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
jne 0x403d23
xor eax, eax
jmp 0x403dac
shr esi, 2
mov eax, 0x40000
cmp esi, eax
mov dword [ebp - 4], esi
jbe 0x403d35
mov dword [ebp - 4], eax
shr dword [ebp - 4], 2
push edi
mov edi, 0x400
cmp dword [ebp - 4], edi
jbe 0x403d56
push 4
push dword [ebp - 4]
call fcn.004a7b08
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x403d5f
mov dword [ebp - 4], edi
lea esi, [ebp - 0x1008]
xor edi, edi
push dword [ebp + 8]
push dword [ebp - 4]
push 4
push esi
call fcn.004a8fc5
add esp, 0x10
test eax, eax
mov dword [ebp - 8], eax
jbe 0x403d8b
xor ebx, ebx
test eax, eax
jbe 0x403d87
add edi, dword [esi + ebx*4]
inc ebx
cmp ebx, eax
jb 0x403d7f
add edi, eax
jmp 0x403d61
test edi, edi
jne 0x403d94
test ebx, ebx
je 0x403d94
inc edi
test esi, esi
je 0x403da9
lea eax, [ebp - 0x1008]
cmp esi, eax
je 0x403da9
push esi
call fcn.004a795c
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ae17
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x5025d0]
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.004a8c80
add esp, 0xc
call fcn.0040adb8
xor edi, edi
inc edi
call fcn.0040d125
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x40ae65
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 0x40ae80
xor edi, edi
push 3
push 0xfffffffffffffff5
call esi
push eax
call ebx
test eax, eax
jne 0x40ae8f
xor edi, edi
push 1
push 0x40af80
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x40aea2
xor edi, edi
push 0x35c
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x40aeb3
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ebx, ebx
cmp eax, ebx
mov dword [0x515860], eax
jne 0x40aec6
xor edi, edi
lea eax, [ebp - 0x80]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x40af03
lea edx, [ebp - 0x80]
call fcn.00478435
mov eax, edx
push eax
mov esi, 0x4c73ec
call fcn.00477b83
test eax, eax
pop ecx
jne 0x40af03
push ebx
push ebx
call fcn.0045ba18
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.0045ba18
pop ecx
pop ecx
mov ebx, eax
call fcn.00474b93
call fcn.0049a965
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004a912f
pop ecx
call fcn.004a913c
call fcn.004a913c
call fcn.004a913c
mov ecx, dword [ebp + 0x84]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
add ebp, 0x88
leave
ret
Function at 0x40afe4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor ebx, ebx
push ebx
mov esi, eax
call fcn.0040b1b0
cmp esi, ebx
pop ecx
mov dword [0x515790], ebx
jne 0x40b01c
xor eax, eax
jmp 0x40b1a1
push 0x400
mov eax, 0x515390
push ebx
push eax
mov dword [0x515798], eax
xor edi, edi
mov dword [ebp - 0x114], ebx
call fcn.004a8c80
mov eax, dword [0x515790]
mov edx, dword [0x51538c]
add esp, 0xc
cmp byte [esi], bl
je 0x40b10b
mov dword [ebp - 0x118], esi
cmp eax, 0x32
jge 0x40b0f7
lea esi, [edx + edi]
cmp esi, 0x3f6
jge 0x40b0f7
mov ecx, dword [ebp - 0x118]
mov cl, byte [ecx]
cmp cl, 0x20
ja 0x40b0b7
xor ebx, ebx
cmp dword [ebp - 0x114], ebx
jne 0x40b0b7
cmp edi, ebx
jle 0x40b0b3
inc eax
cmp eax, 1
lea edx, [esi + 6]
mov dword [0x515790], eax
mov dword [0x51538c], edx
jne 0x40b0a6
add edx, 4
mov dword [0x51538c], edx
lea ecx, [edx + 0x515390]
mov dword [eax*4 + 0x515798], ecx
xor edi, edi
jmp 0x40b0e3
cmp cl, 0x22
jne 0x40b0d8
cmp dword [ebp - 0x114], ebx
jne 0x40b0d0
mov dword [ebp - 0x114], 1
jmp 0x40b0e3
mov dword [ebp - 0x114], ebx
jmp 0x40b0e3
mov esi, dword [eax*4 + 0x515798]
mov byte [edi + esi], cl
inc edi
inc dword [ebp - 0x118]
mov ecx, dword [ebp - 0x118]
cmp byte [ecx], bl
jne 0x40b056
cmp edi, ebx
jle 0x40b10b
inc eax
lea edx, [edx + edi + 1]
mov dword [0x515790], eax
mov dword [0x51538c], edx
push 0x32
pop ecx
cmp eax, ecx
jge 0x40b123
lea edi, [eax*4 + 0x515798]
sub ecx, eax
lea eax, [edx + 0x515390]
rep stosd dword es:[edi], eax
mov esi, dword [0x515798]
call fcn.00478275
mov edx, eax
call fcn.00477a16
test eax, eax
je 0x40b19c
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.004a8c80
add esp, 0xc
push dword [0x515798]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.00477a48
mov eax, esi
lea esi, [ebp - 0x110]
mov dword [esp], str..exe
call fcn.00477b18
pop ecx
mov edi, esi
call fcn.00419e19
test eax, eax
je 0x40b19c
mov eax, esi
push eax
push dword [0x515798]
call fcn.004a8050
pop ecx
pop ecx
mov eax, dword [0x515790]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
Function at 0x40b289
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x5025d0]
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.004a8c80
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 0x40b2fd
mov eax, 0x3ff
sub eax, ecx
mov edi, eax
call fcn.0040d0e1
lea ebx, [ebp - 0x70]
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x80], eax
call fcn.0040cd5f
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 0x40b32a
inc edi
test edi, edi
jle 0x40b43d
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 0x40b46e
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40b46e
cmp eax, edi
je 0x40b360
mov edi, eax
xor eax, eax
cmp dword [ebp + 0x7ac], eax
je 0x40b37b
test edi, edi
jle 0x40b38b
or word [ebp + eax*2 - 0x68], 8
inc eax
cmp eax, edi
jl 0x40b36e
jmp 0x40b38b
test edi, edi
jle 0x40b38b
and word [ebp + eax*2 - 0x68], 0xfff7
inc eax
cmp eax, edi
jl 0x40b37f
cmp byte [ebp + 0x7b0], 0
je 0x40b39d
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.0040d05f
and dword [ebp - 0x78], 0
test edi, edi
mov ebx, eax
jle 0x40b43d
cmp byte [ebp + 0x7b0], 0
je 0x40b41c
lea eax, [edi - 1]
cmp dword [ebp - 0x78], eax
jne 0x40b41c
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 0x40b435
call fcn.0040cf6e
and dword [ebp - 0x6c], 0
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], eax
jge 0x40b464
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], edi
jl 0x40b3e6
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call fcn.0040ccb7
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp + 0x798]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
add ebp, 0x79c
leave
ret
dec eax
dec ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ebx
jmp 0x40b43d
or eax, 0xffffffff
jmp 0x40b44c
Function at 0x40b673
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test esi, esi
push ebx
mov ebx, eax
jne 0x40b683
xor eax, eax
jmp 0x40b6f8
test ebx, ebx
jne 0x40b68c
mov byte [esi], 0
jmp 0x40b67f
jge 0x40b6b2
push edi
call fcn.0040d05f
mov edi, eax
sub edi, dword [ebp + 8]
push ebx
call fcn.004aa7c7
cmp edi, eax
pop ecx
jge 0x40b6a8
mov ebx, edi
jmp 0x40b6b1
push ebx
call fcn.004aa7c7
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.0040d0e1
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x40b6e8
cmp eax, ebx
jg 0x40b687
mov byte [eax + esi], 0
jmp 0x40b67f
cmp eax, ebx
jg 0x40b6f2
mov byte [eax + esi], 0
jmp 0x40b6f5
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x40bab6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x5025d0]
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.004a8c80
add esp, 0xc
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.004a8c80
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.0047a81e
test eax, eax
jne 0x40bb36
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40bb27
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40bb70
or ebx, 0xffffffff
mov esi, edi
call fcn.0041c426
mov eax, ebx
jmp 0x40bb27
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x100
lea eax, [ebp - 0x108]
call fcn.00477a48
pop ecx
push eax
push esi
call fcn.0047a83c
push dword [ebp - 0x228]
call fcn.0047b09d
add esp, 0xc
push dword [ebp - 0x21c]
call fcn.0047b12a
pop ecx
lea eax, [ebp - 0x230]
push eax
push edi
inc ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bb70
jmp 0x40bb65

Function at 0x40bc1e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5025d0]
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.004a8c80
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x13c], ebx
call fcn.00477a16
test eax, eax
je 0x40bc74
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 0x40bc9a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
lea ecx, [ebp - 0x130]
push ecx
push eax
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40bcc2
mov esi, dword [ebp - 0x138]
call fcn.0041c426
jmp 0x40bc89
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 0x13c]
cmp dword [ebp - 0x128], eax
jne 0x40bcde
mov dword [ebp - 0x134], 1
cmp dword [ebp - 0x134], ebx
je 0x40bcec
add edi, dword [ebp - 0x11c]
inc esi
cmp esi, 0x300
jle 0x40bcfd
cmp esi, 0x309
jge 0x40bcb5
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x138]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bcc6
jmp 0x40bcb5