joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8070a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x862014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x54085f
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x807289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x807289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.008340f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x540920
nop
test eax, eax
je 0x807289
push 4
push 0x1000
push 4
push 0
call 0x5400fb
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x3600f0
nop
test eax, eax
je 0x807289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x858df8
push dword [esp + 0x30]
call 0x36057d
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x8071ac
push 0x858dfc
push 0x858e14
call 0x4b0ca9
nop
push eax
call 0x360360
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x360421
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0x807289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x540798
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x807243
mov dword [esp + 0xc], eax
call fcn.00806ef0
push eax
call 0x4a0600
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x540798
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x8071f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x540798
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x3607cc
nop
push dword [esp + 0x24]
call 0x4b0d53
nop
push 0x8000
push 0
push esi
call 0x540626
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0081cff1
mov esp, ebp
pop ebp
ret
Function at 0x80af20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x849726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x862014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00838b63
push eax
call fcn.00836660
add esp, 8
call fcn.0083663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.0083663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.0083663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.008045b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x80afd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x80afe6
push 0x40
push 0
push 0x868560
sub esi, ecx
call fcn.008340f0
add esp, 0xc
mov dword [0x868554], 0
mov edx, esi
mov dword [0x868550], 0
lea ecx, [ebp - 0x410]
mov dword [0x868540], 0x67452301
mov dword [0x868544], 0xefcdab89
mov dword [0x868548], 0x98badcfe
mov dword [0x86854c], 0x10325476
call fcn.00805530
call fcn.008055f0
mov ecx, 0x8665a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x80b071
sub ecx, edx
push ecx
push 0x8665a0
lea ecx, [ebp - 0x42c]
call fcn.008180c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0x80b0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x80b0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x80b18c
push edx
push ecx
call fcn.0081d663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0x80b187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.008180c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0x80b169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x80b15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x80b18c
push edx
push ecx
call fcn.0081d663
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0081cff1
mov esp, ebp
pop ebp
ret
call fcn.00818200
call fcn.00836c6a
int3
Function at 0x81dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x21116b8
nop
test eax, eax
je 0x81dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x81dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x81dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x81dd07
cmp dword [ecx + 0x74], 0xe
jbe 0x81dd07
cmp dword [ecx + 0xe8], 0
je 0x81dd07
mov al, 1
ret
xor al, al
ret

Function at 0xa086a6
Capabilities:
Check for vm using instruction vpcext
Contain obfuscated stackstrings
Reference the vmware io port

Disassembly:
push dword [esp]
push dword [esp]
pop eax
add esp, 4
push edx
push eax
mov dword [esp], esp
jmp 0xa0866a
add edx, 4
add edx, 4
xchg dword [esp], edx
jmp 0xa08636
xor edx, dword [esp]
xor dword [esp], edx
xor edx, dword [esp]
pop esp
push ebx
push eax
jmp 0xa085fe
mov dword [esp], edx
jmp 0xa0863c
mov dword [esp], edx
mov dword [esp], 0x77fae1a9
jmp 0xa086ea
add esp, 4
push ebp
mov dword [esp], ecx
mov dword [esp], ebx
mov ebx, 0x37558f4e
neg ebx
jmp 0xa0862e
shl ebx, 7
jmp 0xa0864f
pop esp
jmp 0xa0876e
push 0x59675bb3
mov dword [esp], ebp
sub esp, 4
jmp 0xa08606
or ebx, 0x7fff35fa
xor ebx, 0x7fff7dfe
jmp 0xa0868d
sub eax, 0x7fdd7142
jmp 0xa086de
add dword [esp], 4
mov edx, dword [esp]
jmp 0xa08615
add edx, 0x689d179a
push edi
mov dword [esp], eax
mov eax, 0x37ffc291
jmp 0xa08660
sub edx, 0x3ff7aee6
sub edx, 0x689d179a
add edx, ebx
jmp 0xa08679
xor edx, 0x7ffddd31
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 4
xchg dword [esp], ebp
pop esp
mov dword [esp], edx
sub dword [esp], 0x7f6f1a22
pop ebx
add ebx, 0x7f6f1a22
pop edx
sub eax, 0x6cf70b4f
add eax, 0x6efde34a
sub eax, ebx
sub eax, 0x6efde34a
jmp 0xa08746
xor eax, 0x5ef769f7
not eax
jmp 0xa08707
mov ebp, dword [esp]
add esp, 4
add ebp, 0xd3b26ad6
push 0x54fa119a
mov dword [esp], ebp
pop edx
jmp 0xa0873a
not eax
sub eax, 0xa6dd89d2
sub edx, 0x377ea900
add edx, eax
add edx, 0x377ea900
pop eax
pop ebx
push ecx
mov ecx, 0x5fffc541
shl ecx, 1
xor ecx, 0xbfff8a86
jmp 0xa08732
add edx, ecx
pop ecx
jmp 0xa085ed
pop ebp
or edx, 0x7fd9dbd3
jmp 0xa086a0
push ebx
mov ebx, 0x78e6c334
not ebx
and ebx, 0x79748e01
sub ebx, 0x941900b2
add eax, ebx
pop ebx
push dword [esp]
mov ebx, dword [esp]
add esp, 4
push edx
mov edx, esp
jmp 0xa085d9
Function at 0x402e9a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x51f5d0]
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.004c05d0
add esp, 0xc
cmp esi, ebx
jne 0x402ecb
or eax, 0xffffffff
jmp 0x402f76
lea eax, [ebp - 0x54]
push eax
mov edx, str.____This_is_the_beginning_of_a_PAULA_Arkive_self_extracting_compilation.____
call fcn.00487c2c
push esi
call fcn.004bfd22
push esi
mov dword [ebp - 0x58], ebx
call fcn.004bfd7e
add esp, 0xc
cmp eax, 0xffffffff
je 0x402f12
push 1
push eax
lea eax, [ebp - 0x58]
lea ebx, [ebp - 0x54]
call fcn.0041f285
test eax, eax
pop ecx
pop ecx
jne 0x402f6f
push esi
call fcn.004bfd7e
cmp eax, 0xffffffff
pop ecx
jne 0x402ef0
xor ebx, ebx
push edi
push 2
push ebx
push esi
call fcn.004bfb1f
add esp, 0xc
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004bf880
pop ecx
push eax
lea eax, [ebp - 0x54]
push 1
push eax
call fcn.004bf5f0
mov edi, eax
lea eax, [ebp - 0x54]
push eax
call fcn.004bf880
add esp, 0x14
cmp edi, eax
pop edi
jne 0x402ec3
push esi
call fcn.004bfd22
push 2
push 0xffffffffffffffff
push esi
call fcn.004bfb1f
push esi
call fcn.004bfd7e
push 2
push ebx
push esi
call fcn.004bfb1f
add esp, 0x20
push esi
call fcn.004bf80a
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
Function at 0x403ddd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004d1740
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.004c05d0
add esp, 0xc
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
jne 0x403e1a
xor eax, eax
jmp 0x403ea3
shr esi, 2
mov eax, 0x40000
cmp esi, eax
mov dword [ebp - 4], esi
jbe 0x403e2c
mov dword [ebp - 4], eax
shr dword [ebp - 4], 2
push edi
mov edi, 0x400
cmp dword [ebp - 4], edi
jbe 0x403e4d
push 4
push dword [ebp - 4]
call fcn.004bf452
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x403e56
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.004c0915
add esp, 0x10
test eax, eax
mov dword [ebp - 8], eax
jbe 0x403e82
xor ebx, ebx
test eax, eax
jbe 0x403e7e
add edi, dword [esi + ebx*4]
inc ebx
cmp ebx, eax
jb 0x403e76
add edi, eax
jmp 0x403e58
test edi, edi
jne 0x403e8b
test ebx, ebx
je 0x403e8b
inc edi
test esi, esi
je 0x403ea0
lea eax, [ebp - 0x1008]
cmp esi, eax
je 0x403ea0
push esi
call fcn.004bf2a6
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a357
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x108], 0
call fcn.004c05d0
add esp, 0xc
test edi, edi
jne 0x40a395
lea edi, [ebp - 0x108]
mov esi, 0x104
push esi
push edi
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40a3ba
cmp eax, esi
jae 0x40a3ba
mov edx, edi
call fcn.00485754
test eax, eax
je 0x40a3d3
push 0
xor eax, eax
call fcn.0045f4b3
push eax
push str._sWindows
push esi
push edi
call fcn.00486e10
add esp, 0x14
mov eax, edi
call fcn.00485e7f
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004bfeb5
leave
ret

Function at 0x40a3ea
Capabilities:
Query environment variable

Disassembly:
mov edx, str.Desktop
jmp fcn.0040a3f4
Function at 0x40ac92
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.004c05d0
add esp, 0xc
call fcn.0040ac05
xor edi, edi
inc edi
call fcn.0040d3bd
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x40acde
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 0x40acf9
xor edi, edi
push 3
push 0xfffffffffffffff5
call esi
push eax
call ebx
test eax, eax
jne 0x40ad08
xor edi, edi
push 1
push 0x40adf6
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x40ad1b
xor edi, edi
push 0x35c
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
test eax, eax
jne 0x40ad2c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ebx, ebx
cmp eax, ebx
mov dword [0x525d80], eax
jne 0x40ad3f
xor edi, edi
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jbe 0x40ad82
lea edx, [ebp - 0x110]
call fcn.00486276
mov eax, edx
push eax
mov esi, 0x4de458
call fcn.004858c1
test eax, eax
pop ecx
jne 0x40ad82
push ebx
push ebx
call fcn.0045f646
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.Sounds_
push ebx
call fcn.0045f646
pop ecx
pop ecx
mov ebx, eax
call fcn.00482894
call fcn.004af84c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004c0a7f
pop ecx
call fcn.004c0a8c
call fcn.004c0a8c
call fcn.004c0a8c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
Function at 0x40ae5a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x51f5d0]
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.0040b026
cmp esi, ebx
pop ecx
mov dword [0x525cb0], ebx
jne 0x40ae92
xor eax, eax
jmp 0x40b017
push 0x400
mov eax, 0x5258b0
push ebx
push eax
mov dword [0x525cb8], eax
xor edi, edi
mov dword [ebp - 0x114], ebx
call fcn.004c05d0
mov eax, dword [0x525cb0]
mov edx, dword [0x5258ac]
add esp, 0xc
cmp byte [esi], bl
je 0x40af81
mov dword [ebp - 0x118], esi
cmp eax, 0x32
jge 0x40af6d
lea esi, [edx + edi]
cmp esi, 0x3f6
jge 0x40af6d
mov ecx, dword [ebp - 0x118]
mov cl, byte [ecx]
cmp cl, 0x20
ja 0x40af2d
xor ebx, ebx
cmp dword [ebp - 0x114], ebx
jne 0x40af2d
cmp edi, ebx
jle 0x40af29
inc eax
cmp eax, 1
lea edx, [esi + 6]
mov dword [0x525cb0], eax
mov dword [0x5258ac], edx
jne 0x40af1c
add edx, 4
mov dword [0x5258ac], edx
lea ecx, [edx + 0x5258b0]
mov dword [eax*4 + 0x525cb8], ecx
xor edi, edi
jmp 0x40af59
cmp cl, 0x22
jne 0x40af4e
cmp dword [ebp - 0x114], ebx
jne 0x40af46
mov dword [ebp - 0x114], 1
jmp 0x40af59
mov dword [ebp - 0x114], ebx
jmp 0x40af59
mov esi, dword [eax*4 + 0x525cb8]
mov byte [edi + esi], cl
inc edi
inc dword [ebp - 0x118]
mov ecx, dword [ebp - 0x118]
cmp byte [ecx], bl
jne 0x40aecc
cmp edi, ebx
jle 0x40af81
inc eax
lea edx, [edx + edi + 1]
mov dword [0x525cb0], eax
mov dword [0x5258ac], edx
push 0x32
pop ecx
cmp eax, ecx
jge 0x40af99
lea edi, [eax*4 + 0x525cb8]
sub ecx, eax
lea eax, [edx + 0x5258b0]
rep stosd dword es:[edi], eax
mov esi, dword [0x525cb8]
call fcn.00486054
mov edx, eax
call fcn.00485754
test eax, eax
je 0x40b012
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.004c05d0
add esp, 0xc
push dword [0x525cb8]
mov esi, 0x104
mov ecx, esi
lea eax, [ebp - 0x110]
call fcn.00485786
mov eax, esi
lea esi, [ebp - 0x110]
mov dword [esp], str..exe
call fcn.00485856
pop ecx
mov edi, esi
call fcn.0041a56b
test eax, eax
je 0x40b012
mov eax, esi
push eax
push dword [0x525cb8]
call fcn.004bf9a0
pop ecx
pop ecx
mov eax, dword [0x525cb0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
Function at 0x40b0ff
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
lea ebp, [esp - 0x79c]
sub esp, 0x81c
mov eax, dword [0x51f5d0]
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.004c05d0
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 0x40b173
mov eax, 0x3ff
sub eax, ecx
mov edi, eax
call fcn.0040d379
lea ebx, [ebp - 0x70]
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x80], eax
call fcn.0040cfd7
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 0x40b1a0
inc edi
test edi, edi
jle 0x40b2b3
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 0x40b2e4
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40b2e4
cmp eax, edi
je 0x40b1d6
mov edi, eax
xor eax, eax
cmp dword [ebp + 0x7ac], eax
je 0x40b1f1
test edi, edi
jle 0x40b201
or word [ebp + eax*2 - 0x68], 8
inc eax
cmp eax, edi
jl 0x40b1e4
jmp 0x40b201
test edi, edi
jle 0x40b201
and word [ebp + eax*2 - 0x68], 0xfff7
inc eax
cmp eax, edi
jl 0x40b1f5
cmp byte [ebp + 0x7b0], 0
je 0x40b213
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.0040d2f7
and dword [ebp - 0x78], 0
test edi, edi
mov ebx, eax
jle 0x40b2b3
cmp byte [ebp + 0x7b0], 0
je 0x40b292
lea eax, [edi - 1]
cmp dword [ebp - 0x78], eax
jne 0x40b292
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 0x40b2ab
call fcn.0040d206
and dword [ebp - 0x6c], 0
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], eax
jge 0x40b2da
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], edi
jl 0x40b25c
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call fcn.0040cf2f
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp + 0x798]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
add ebp, 0x79c
leave
ret
dec eax
dec ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ebx
jmp 0x40b2b3
or eax, 0xffffffff
jmp 0x40b2c2
Function at 0x40b4e9
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
test esi, esi
push ebx
mov ebx, eax
jne 0x40b4f9
xor eax, eax
jmp 0x40b56e
test ebx, ebx
jne 0x40b502
mov byte [esi], 0
jmp 0x40b4f5
jge 0x40b528
push edi
call fcn.0040d2f7
mov edi, eax
sub edi, dword [ebp + 8]
push ebx
call fcn.004c21f7
cmp edi, eax
pop ecx
jge 0x40b51e
mov ebx, edi
jmp 0x40b527
push ebx
call fcn.004c21f7
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.0040d379
push eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x40b55e
cmp eax, ebx
jg 0x40b4fd
mov byte [eax + esi], 0
jmp 0x40b4f5
cmp eax, ebx
jg 0x40b568
mov byte [eax + esi], 0
jmp 0x40b56b
mov byte [esi], 0
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x40b92c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x51f5d0]
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.004c05d0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.004c05d0
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.004888a0
test eax, eax
jne 0x40b9ac
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40b99d
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40b9e6
or ebx, 0xffffffff
mov esi, edi
call fcn.0041cc21
mov eax, ebx
jmp 0x40b99d
lea eax, [ebp - 0x20c]
push eax
mov ecx, 0x100
lea eax, [ebp - 0x108]
call fcn.00485786
pop ecx
push eax
push esi
call fcn.004888be
push dword [ebp - 0x228]
call fcn.00489125
add esp, 0xc
push dword [ebp - 0x21c]
call fcn.004891b2
pop ecx
lea eax, [ebp - 0x230]
push eax
push edi
inc ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b9e6
jmp 0x40b9db

Function at 0x40ba94
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x51f5d0]
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.004c05d0
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x13c], ebx
call fcn.00485754
test eax, eax
je 0x40baea
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 0x40bb10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
lea ecx, [ebp - 0x130]
push ecx
push eax
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40bb38
mov esi, dword [ebp - 0x138]
call fcn.0041cc21
jmp 0x40baff
xor edi, edi
xor esi, esi
mov eax, dword [ebp - 0x13c]
cmp dword [ebp - 0x128], eax
jne 0x40bb54
mov dword [ebp - 0x134], 1
cmp dword [ebp - 0x134], ebx
je 0x40bb62
add edi, dword [ebp - 0x11c]
inc esi
cmp esi, 0x300
jle 0x40bb73
cmp esi, 0x309
jge 0x40bb2b
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x138]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bb3c
jmp 0x40bb2b
Function at 0x40bb8b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x51f5d0]
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.004c05d0
add esp, 0xc
cmp esi, ebx
je 0x40bc59
cmp byte [esi], bl
je 0x40bc59
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40bc5b
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40bc08
mov esi, edi
call fcn.0041cc21
or eax, 0xffffffff
jmp 0x40bc5b
mov dword [ebp - 0x138], ebx
cmp dword [ebp + 8], ebx
push esi
lea eax, [ebp - 0x110]
push eax
je 0x40bc28
call fcn.004c03bf
test eax, eax
pop ecx
pop ecx
je 0x40bc33
jmp 0x40bc39
call fcn.00486428
test eax, eax
pop ecx
pop ecx
je 0x40bc39
inc dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40bc0e
mov esi, edi
call fcn.0041cc21
mov eax, dword [ebp - 0x138]
jmp 0x40bc5b
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret