joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x1001609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001a90
call fcn.010017b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10013c4
cmp eax, esi
jne 0x10013b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10013c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100139e
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10013da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001409
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001403
mov dword [0x100236c], esi
push 0x10010b8
push 0x10010ac
call fcn.01001300
pop ecx
pop ecx
test eax, eax
je 0x1001409
jmp 0x100152d
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100142d
push 0x10010a8
push 0x10010a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x100143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x100145b
push 0x1002374
call fcn.01001729
pop ecx
test eax, eax
je 0x100145b
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10014c5
cmp cx, bx
je 0x1001480
cmp dword [ebp - 0x1c], ebx
jne 0x10014c5
movzx ecx, word [eax]
cmp cx, bx
je 0x1001495
cmp cx, 0x20
ja 0x1001495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001480
test byte [ebp - 0x40], 1
je 0x10014a1
movzx ecx, word [ebp - 0x3c]
jmp 0x10014a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x100150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10014d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100146a
cmp dword [0x1002034], ebx
jne 0x1001518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x1001539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010017f9
ret
call fcn.01001901
jmp 0x1001361
Function at 0x406261
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405dc2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x406296
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x43e988], eax
jmp 0x406427
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4062b1
test eax, eax
je 0x4063d2
test cl, 2
je 0x4063d2
push edi
push ebx
mov esi, 0x437ec8
push esi
call fcn.00405804
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4062d4
push str..
push esi
call edi
jmp 0x4062da
push ebx
call fcn.00405d9b
cmp byte [ebx], 0
jne 0x4062e8
cmp byte [0x437ec8], 0x5c
jne 0x4062f0
push 0x4082a8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebx + eax]
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4063c7
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405541
cmp byte [eax], 0
je 0x406332
cmp byte [ebp - 0x18], 0
je 0x406332
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x406348
mov al, byte [esi + 1]
test al, al
je 0x4063a6
cmp al, 0x2e
jne 0x406348
cmp byte [esi + 2], 0
je 0x4063a6
push esi
push edi
call fcn.00405804
test byte [ebp - 0x148], 0x10
je 0x40636d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4063a6
push dword [ebp + 0xc]
push ebx
call fcn.00406261
jmp 0x4063a6
push ebx
call fcn.00405656
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40639e
test byte [ebp + 0xc], 4
je 0x406396
push ebx
push 0xfffffffffffffff1
call fcn.0040483b
push 0
push ebx
call fcn.0040622e
jmp 0x4063a6
inc dword [0x43e988]
jmp 0x4063a6
push ebx
push 0xfffffffffffffff2
call fcn.0040483b
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406314
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4063d1
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406426
cmp dword [ebp - 8], esi
je 0x406416
push ebx
call fcn.004058ce
test eax, eax
je 0x406426
push ebx
call fcn.00405d6e
push ebx
call fcn.00405656
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40641e
test byte [ebp + 0xc], 4
je 0x406416
push ebx
push 0xfffffffffffffff1
call fcn.0040483b
push esi
push ebx
call fcn.0040622e
jmp 0x406426
inc dword [0x43e988]
jmp 0x406426
push ebx
push 0xffffffffffffffe5
call fcn.0040483b
pop esi
pop ebx
leave
ret 8
Function at 0x6034cd
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.00603092
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x60308d
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x6031ae
pushfd
push word [esp]
lea esp, [esp + 2]
mov dword [esp + 0x18], edi
lea esp, [esp + 0x18]
jmp 0x6031ee
mov word [esp + 3], sp
lea esp, [esp + 2]
mov dword [esp + 0x14], esi
pushfd
jmp 0x603220
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423004]
jne 0x401010
repz ret
jmp fcn.00401788

Function at 0x405655
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.004030b9
and dword [ebp - 4], 0
cmp dword [0x424db0], 0
mov ebx, eax
jne 0x405706
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4057b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4057b7
push eax
call fcn.00403047
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424db0], eax
call esi
push eax
call fcn.00403047
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424db4], eax
call esi
push eax
call fcn.00403047
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x424db8], eax
call esi
push eax
call fcn.00403047
pop ecx
mov dword [0x424dc0], eax
test eax, eax
je 0x405706
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403047
pop ecx
mov dword [0x424dbc], eax
mov eax, dword [0x424dbc]
cmp eax, ebx
je 0x40575e
cmp dword [0x424dc0], ebx
je 0x40575e
push eax
call fcn.004030c2
push dword [0x424dc0]
mov esi, eax
call fcn.004030c2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40575e
test edi, edi
je 0x40575e
call esi
test eax, eax
je 0x405755
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405755
test byte [ebp - 0xc], 1
jne 0x40575e
or dword [ebp + 0x10], 0x200000
jmp 0x405797
mov eax, dword [0x424db4]
cmp eax, ebx
je 0x405797
push eax
call fcn.004030c2
pop ecx
test eax, eax
je 0x405797
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405797
mov eax, dword [0x424db8]
cmp eax, ebx
je 0x405797
push eax
call fcn.004030c2
pop ecx
test eax, eax
je 0x405797
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424db0]
call fcn.004030c2
pop ecx
test eax, eax
je 0x4057b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4057b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420946
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x432d24]
push dword [0x432a40]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x4209d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x4209ff
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.004209ca
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x4209e2
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
jne 0x420a17
or dword [0x432d34], 0xffffffff
mov dword [0x432d30], 0xa62e7790
leave
ret
Function at 0x402590
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a93d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x4025c9
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4026fa
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x4025e2
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 2
push 0x5d0f10
push ecx
call fcn.00403a10
add esp, 0xc
cmp eax, 0xffffffff
je 0x4026a6
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmovb eax, dword [esi + 0x10]
mov ecx, esi
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jbe 0x402624
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403b60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40265b
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.00402590
test eax, eax
je 0x402670
cmp dword [esi + 0x14], 7
jbe 0x402663
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4026c4
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4026a6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40269c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402701
push ecx
push edx
call fcn.004234d3
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423495
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4026fa
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4026f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402701
push ecx
push edx
call fcn.004234d3
add esp, 8
mov eax, 1
jmp 0x4026a8
call fcn.0054d06c
int3
Function at 0x404e30
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57aa8d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov esi, dword [ebx + 8]
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x404e7d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x404fbe
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x404e96
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 2
push 0x5d0f10
push ecx
call fcn.00403a10
add esp, 0xc
cmp eax, 0xffffffff
je 0x404f67
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
cmovb eax, dword [esi + 0x10]
mov ecx, esi
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
jbe 0x404ed8
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403b60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x404f0f
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00404e30
test eax, eax
je 0x404f31
cmp dword [esi + 0x14], 7
jbe 0x404f17
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404f88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404f88
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x404f67
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404f5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fc5
push ecx
push edx
call fcn.004234d3
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423495
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x404fbe
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404fb4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404fc5
push ecx
push edx
call fcn.004234d3
add esp, 8
mov eax, 1
jmp 0x404f69
call fcn.0054d06c
int3
Function at 0x405a00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x5df040]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
movaps xmmword [esp + 0x6c], xmm0
push edi
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x90], xmm0
mov byte [esp + 0xa0], 0
mov byte [esp + 0xd8], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
jbe 0x405a8f
mov eax, dword [eax]
push ecx
push eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00405140
lea eax, [esp + 0x18]
mov ecx, esi
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00405210
xor esi, esi
lea edi, [esp + 0x80]
nop word [eax + eax]
movzx eax, byte [esp + esi + 0x70]
push eax
push str._02x
push edi
call fcn.004050e0
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x405ac0
movups xmm0, xmmword [esp + 0x80]
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0xb8]
lea edx, [ecx + 1]
movups xmmword [esp + 0xb8], xmm0
movups xmm0, xmmword [esp + 0x90]
movups xmmword [esp + 0xc8], xmm0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405b20
sub ecx, edx
lea eax, [esp + 0xb8]
push ecx
push eax
mov ecx, esi
call fcn.00404110
mov ecx, dword [esp + 0xdc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00423495
mov esp, ebp
pop ebp
ret 8
Function at 0x406b90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ac0d
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
xor eax, eax
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x64], eax
mov eax, 5
mov word [ebp - 0x3c], ax
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x68], 0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x3a], xmm0
movlpd qword [ebp - 0x32], xmm0
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 1
push 0x5d10b8
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.004036e0
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x406c42
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.004036e0
push 1
push 0x5d10b8
lea ecx, [ebp - 0x28]
call fcn.004036e0
cmp dword [esi + 0x10], 0
lea edi, [esi + 0x10]
je 0x406c88
push 1
push 0x5d10b4
lea ecx, [ebp - 0x28]
call fcn.004036e0
cmp dword [esi + 0x14], 7
jbe 0x406c7d
mov esi, dword [esi]
push dword [edi]
lea ecx, [ebp - 0x28]
push esi
call fcn.004036e0
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x406cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
or esi, 0xffffffff
jmp 0x406cd5
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x78]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x406d0b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406d01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d2a
push ecx
push edx
call fcn.004234d3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423495
mov esp, ebp
pop ebp
ret 0x10
call fcn.0054d06c
int3
Function at 0x406d30
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406d6d
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423495
mov esp, ebp
pop ebp
ret 0xc
push esi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x406def
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x406d9a
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.005594a4
add esp, 8
test eax, eax
jne 0x406ddd
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406dd7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x406ddd
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406d90
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00423495
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406e10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ac4d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x2c], esi
push str.cmd.exe__c__
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00404110
mov edi, esi
mov dword [ebp - 4], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x406e70
mov edx, dword [ebp - 0x14]
sub edi, ecx
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x406eac
push dword [ebp - 0x2c]
cmp edx, 0xf
lea esi, [ebp - 0x28]
lea eax, [ecx + edi]
cmova esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.00548d90
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x406ebd
push esi
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push edi
call fcn.00403fb0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 1
jb 0x406ee4
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov word [eax + ecx], 0x22
jmp 0x406efc
push 1
push 0x5d10e8
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.00403fb0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, 0x1f
cmp ecx, eax
mov ecx, dword [ebp - 0x14]
sbb esi, esi
neg esi
cmp ecx, 0xf
jbe 0x406f4b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406f41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f6a
push ecx
push edx
call fcn.004234d3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423495
mov esp, ebp
pop ebp
ret 8
call fcn.0054d06c
int3
Function at 0x407100
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ac8d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x407135
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40726d
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40714e
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
push 2
push 0x5d0f10
push ecx
call fcn.00403a10
add esp, 0xc
cmp eax, 0xffffffff
je 0x40721b
cmp dword [esi + 0x10], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmovb eax, dword [esi + 0x10]
mov ecx, esi
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jbe 0x407190
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403b60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4071c3
lea ecx, [ebp - 0x28]
call fcn.00407100
test eax, eax
je 0x4071e5
cmp dword [esi + 0x14], 7
jbe 0x4071cb
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407237
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407237
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40721b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407211
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407274
push ecx
push edx
call fcn.004234d3
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423495
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40726d
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407263
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407274
push ecx
push edx
call fcn.004234d3
add esp, 8
mov eax, 1
jmp 0x40721d
call fcn.0054d06c
int3