joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x49f3b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffd
mov edx, dword [ebp + 8]
mov dword [edx + 0x320], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [str.WKNC]
mov dword [eax + 0x210], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x214], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [eax + 0x21c], 0xa0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x220], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x224], 0
call fcn.00446bc0
push eax
mov eax, dword [ebp + 8]
add eax, 0x228
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2a8], 1
mov edx, dword [ebp + 8]
mov byte [edx + 0x2a9], 1
mov eax, dword [ebp + 8]
mov byte [eax + 0x2aa], 0
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x2ac], 0
call fcn.00446b10
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp + 8]
mov al, byte [ebp - 0x8c]
mov byte [edx + 0x2ab], al
movsx ecx, byte [ebp - 0x8c]
test ecx, ecx
je 0x486d05
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x316]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x21c]
lea eax, [eax + edx + 1]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x21c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x21c]
add eax, 0x80
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x218], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
push 0xa0
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x210
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0xa0
je 0x486d4b
mov eax, 0xffffffe6
jmp 0x486dc9
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x2ab]
test eax, eax
je 0x486d9b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0x316]
add ecx, 1
push ecx
push 1
mov edx, dword [ebp + 8]
add edx, 0x2d0
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x316]
add edx, 1
cmp eax, edx
je 0x486d9b
mov eax, 0xffffffe6
jmp 0x486dc9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
push 0x80
push 1
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 0x80
je 0x486dc7
mov eax, 0xffffffe6
jmp 0x486dc9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f7be
mov esp, ebp
pop ebp
ret
Function at 0x403550
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40357a
add eax, dword [0x472e18]
push edi
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033d2
cmp eax, edi
jl 0x403673
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp dword [ebp - 4], esi
jne 0x40366f
push dword [ebp + 8]
add dword [0x42f1e4], esi
call fcn.004033d2
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403672
cmp dword [ebp + 0x10], edi
jne 0x40363e
cmp dword [ebp + 8], edi
jle 0x40366a
mov esi, 0x42f1e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4035ee
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp edi, dword [ebp - 4]
jne 0x40366f
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40363a
cmp dword [ebp + 0x14], edi
jne 0x40363a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1e4], eax
cmp dword [ebp + 8], 0
jg 0x4035e1
jmp 0x40366a
push 0xfffffffffffffffe
jmp 0x403671
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403649
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
mov eax, dword [ebp - 4]
add dword [0x42f1e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403672
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x4064c6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
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
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
invalid

Function at 0x406966
Capabilities:
Access peb ldr_data
Get common file path
Resolve function by parsing pe exports

Disassembly:
and al, 0x54
call fcn.004047c2
mov bh, 0x1b
inc ecx
clc
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x406986
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.004047c2
rcr byte [esi], 0x9b
or al, 0x8b
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004047c2
dec eax
push edx
sub dword [ebx], 0x8b348b49
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x4069af
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x4069af
call fcn.004047c2
invalid
Function at 0x401200
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42992c]
sub esp, 0x24
push esi
xor esi, esi
cmp eax, esi
jne 0x401239
push str.NtOpenProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42992c], eax
cmp eax, esi
jne 0x401239
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x24]
push ecx
push 1
lea edx, [ebp - 4]
push edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call eax
test eax, eax
js 0x401232
mov eax, dword [ebp - 4]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, esi
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], ebx
call fcn.0040698f
add esp, 8
cmp dword [ebp - 4], ebx
je 0x401886
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [ebp - 4]
cmp eax, ecx
je 0x401886
push ecx
call fcn.00406a73
add esp, 4
test eax, eax
jne 0x401886
mov eax, dword [0x42992c]
mov esi, dword [ebp - 4]
cmp eax, ebx
jne 0x4017f9
push str.NtOpenProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42992c], eax
cmp eax, ebx
je 0x401849
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x28]
push ecx
push 1
lea edx, [ebp - 8]
push edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call eax
test eax, eax
js 0x401849
mov eax, dword [ebp - 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 8]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
setne al
cmp al, bl
jne 0x401886
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push eax
push edx
push str._stop_old_version_failed__error_processs_name:_s__LastError:_d
push str.KillProcess
push 0x429d3c
call fcn.00408b57
add esp, 0x14
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jl 0x401790
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fd28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x428530]
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
push 0xffffffffffffffff
xor esi, esi
mov edi, ecx
push esi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
call fcn.004028a0
push 4
push str..bak
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.00402990
mov ebx, 0x10
cmp dword [edi + 0x14], ebx
jb 0x402c89
mov eax, dword [edi]
jmp 0x402c8b
mov eax, edi
push eax
call fcn.00407201
add esp, 4
test eax, eax
jne 0x402caa
cmp dword [ebp - 0x18], ebx
jb 0x402d5d
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x402d55
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x402cb5
lea eax, [ebp - 0x2c]
push esi
push esi
push eax
call fcn.004075a9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
cmp esi, 0xc8
je 0x402cfe
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402cda
lea eax, [ebp - 0x2c]
push 1
push eax
mov ecx, edi
call fcn.004024d0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x402d4b
push 0xa
call ebx
inc esi
cmp esi, 0xc8
jle 0x402ccc
jmp 0x402d4b
cmp dword [ebp - 0x18], 0x10
mov ebx, dword [ebp - 0x2c]
jae 0x402d0a
lea ebx, [ebp - 0x2c]
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x402d16
mov esi, dword [edi]
jmp 0x402d18
mov esi, edi
cmp eax, 0x10
jb 0x402d1f
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push esi
push 0
push edi
call fcn.00407424
add esp, 8
push eax
push str._move__s_failed__error_MoveFileEx::_m_strPath:_s__m_strBackupPath:_s___d
push str.KillProcess
push 0x429d3c
call fcn.00408b57
add esp, 0x1c
cmp dword [ebp - 0x18], 0x10
jb 0x402d5d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040a595
add esp, 4
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.00409bc8
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41feeb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x428530]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00409507
push 4
mov dword [ebp - 4], 0
call fcn.0040adca
mov edi, eax
add esp, 4
test edi, edi
je 0x4046b0
call fcn.004091c5
mov dword [edi], eax
call fcn.00408f84
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00408eb9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4046a6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00408ee1
jmp 0x4046b2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4054d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420098
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x428530]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4055f1
cmp byte [edi + 0x49], bl
je 0x4055f1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4055e5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x405545
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40555d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x405586
dec eax
je 0x40558a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4055e0
jmp 0x4055ec
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40559a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4055c3
cmp ebx, 0x10
jae 0x4055a9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00409e92
add esp, 0x10
cmp esi, eax
jne 0x4055dd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4055e9
test esi, esi
jne 0x405551
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00404e20
jmp 0x40554b
lea ecx, [ebp - 0x2c]
call fcn.00402580
xor al, al
jmp 0x4055f3
lea ecx, [ebp - 0x2c]
call fcn.00402580
mov al, 1
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.00409bc8
mov esp, ebp
pop ebp
ret
Function at 0x40684e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
mov eax, dword [0x428530]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x406874
xor eax, eax
jmp 0x4068f1
push 0xc00
lea eax, [ebp - 0xc04]
push 0
push eax
mov dword [ebp - 0xc10], 1
call fcn.00409be0
and dword [ebp - 0xc08], 0
add esp, 0xc
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xc10]
push eax
push 0
push ebx
push dword [edi]
mov dword [ebp - 0xc0c], 0xbff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4068e8
push dword [ebp + 0x10]
lea eax, [ebp - 0xc04]
push eax
push esi
mov dword [ebp - 0xc08], 1
call fcn.004096c0
add esp, 0xc
jmp 0x4068eb
mov byte [esi], 0
mov eax, dword [ebp - 0xc08]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409bc8
leave
ret 0xc

Function at 0x40698f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x428530]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 0x134], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4069c9
xor eax, eax
jmp 0x406a64
push 0x124
lea eax, [ebp - 0x128]
push esi
push eax
mov dword [ebp - 0x130], esi
call fcn.00409be0
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov esi, 0x128
push edi
mov dword [ebp - 0x12c], esi
call sub.KERNEL32.dll_Process32First
jmp 0x406a3b
push dword [ebp - 0x134]
lea eax, [ebp - 0x108]
push eax
call fcn.0041cd1e
pop ecx
pop ecx
test eax, eax
je 0x406a41
push esi
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00409be0
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4069fe
jmp 0x406a53
mov eax, dword [ebp - 0x124]
mov dword [ebx], eax
mov dword [ebp - 0x130], 1
test edi, edi
je 0x406a5e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409bc8
leave
ret

Function at 0x406a73
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push 0x10
push 0x426268
call fcn.0040c300
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
push str.SeDebugPrivilege
call fcn.00407f3b
pop ecx
mov dword [ebp - 4], edi
push dword [ebp + 8]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x406abd
xor esi, esi
inc esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x406abd
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00406ad4
mov eax, dword [ebp - 0x20]
call fcn.0040c345
ret
Function at 0x406ae3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x428530]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x406bcd
cmp byte [esi], bl
je 0x406bcd
push 0x1ff
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.00409be0
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.0040c200
lea eax, [ebp - 0x204]
push eax
call fcn.0041fbd2
add esp, 0x18
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406bcd
cmp esi, ebx
je 0x406bcd
push edi
push 0x124
lea eax, [ebp - 0x328]
push ebx
push eax
xor edi, edi
call fcn.00409be0
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
push esi
mov dword [ebp - 0x32c], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x406bb8
lea eax, [ebp - 0x308]
push eax
call fcn.0041fbd2
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0040c170
add esp, 0xc
test eax, eax
jne 0x406bbe
lea eax, [ebp - 0x32c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406b85
jmp 0x406bc1
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x406bcf
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00409bc8
leave
ret
Function at 0x406bdd
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x420239
call fcn.0040c558
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00409be0
mov dword [ebp - 0x3c], ebx
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00407fd3
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040801f
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov byte [ebp - 4], 1
mov edi, 0x80
cmp dword [ebp + 0x18], ebx
je 0x406c61
lea ecx, [ebp - 0x2c]
call fcn.0040803c
push ebx
push edi
push 3
push eax
push 3
push 0x80000000
push dword [ebp + 0x18]
call esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0x1c], ebx
je 0x406c8a
lea ecx, [ebp - 0x2c]
call fcn.0040803c
push ebx
push edi
push 4
push eax
push 3
push 0x40000000
push dword [ebp + 0x1c]
call esi
mov edi, eax
mov dword [ebp - 0x14], 1
jmp 0x406c8d
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x80], 0x44
cmp dword [ebp - 0x14], ebx
je 0x406ca9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], 0x100
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp + 0x14]
push ebx
push ebx
or eax, 0x8000000
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406cee
xor esi, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00407e55
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040805e
mov eax, esi
call fcn.0040c5f7
ret
cmp dword [ebp + 0x10], ebx
je 0x406d0a
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x10], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x406d20
cmp dword [ebp - 0x10], ebx
je 0x406d20
push dword [ebp - 0x10]
call esi
cmp edi, 0xffffffff
je 0x406d2c
cmp edi, ebx
je 0x406d2c
push edi
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
xor esi, esi
inc esi
jmp 0x406ccf
Function at 0x406d3b
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x42026f
call fcn.0040c558
lea ecx, [ebp - 0x14]
call fcn.00407fd3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00407ffc
lea ecx, [ebp - 0x1c]
call fcn.00407fd3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00408063
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040801f
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040803c
push dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 0xb7]
neg esi
lea ecx, [ebp - 0x28]
sbb esi, esi
mov byte [ebp - 4], 1
call fcn.00407e55
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0040807c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040805e
lea eax, [esi + 1]
call fcn.0040c5f7
ret

Function at 0x4070a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x548
mov eax, 0x4202be
call fcn.0040c5c1
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x410]
push str._s
push eax
call fcn.0040afc4
add esp, 0xc
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407170
mov dword [ebp - 0x554], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x524]
push 0x42136c
push eax
call fcn.0040c6f0
pop ecx
pop ecx
test eax, eax
je 0x407153
lea eax, [ebp - 0x524]
push 0x421368
push eax
call fcn.0040c6f0
pop ecx
pop ecx
test eax, eax
je 0x407153
test byte [ebp - 0x550], 0x10
je 0x407178
lea eax, [ebp - 0x524]
push eax
push edi
lea eax, [ebp - 0x410]
push 0x421fd4
push eax
call fcn.0040afc4
lea eax, [ebp - 0x410]
push eax
call fcn.004070a0
add esp, 0x14
test al, al
je 0x407178
lea eax, [ebp - 0x550]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4070f0
test esi, esi
je 0x407170
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
call fcn.0040c60b
ret
test esi, esi
je 0x407183
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x407172

Function at 0x407201
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40721b
test al, 0x10
jne 0x40721b
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40721f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407239
test al, 0x10
je 0x407239
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret