joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000748e
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100074c9
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100074b0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100074c1
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100074cb
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100074a6
xor eax, eax
pop edi
pop esi
ret

Function at 0x100076e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
leave
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.1000744e
push ecx
sub al, 0xa8
push ebp
lea eax, [ebp - 0x58]
push eax
call fcn.1000745e
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10007413
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x1000773c
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
invalid

Function at 0x10007890
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x100078e9
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000745e
push eax
push esi
push dword [ebp + 8]
call fcn.10007413
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1000744e
inc edi
cdq
mov esi, dword [ebx - 0x78]
popfd
jl 0x100078d3
invalid
invalid
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.1000744e
sal dword [ecx - 0x7a72f206], cl
jl 0x10007939
invalid
invalid
Function at 0x10007b50
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10007b25
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10007b43
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
ror byte [ecx - 0x3e7443bb], cl
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10007ba1
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10007b88
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10007b91
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10007b9b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10007b7d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10007b07
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10007bee
dec eax
je 0x10007be5
sub eax, 3
je 0x10007bdc
mov dword [ebp - 4], 0x40
jmp 0x10007c0b
mov dword [ebp - 4], 4
jmp 0x10007bf1
mov dword [ebp - 4], 0x20
jmp 0x10007bf1
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10007c3d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10007bbd
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000744e
sbb al, 0x68
push 0xffffffffffffffff
jne 0x10007c48
push 1
push esi
call edi
mov eax, esi
jmp 0x10007c49
rcr byte [edi + 0x5e], 0x5b
Function at 0x10009c10
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov esp, ebp
pop ebp
ret 8
Function at 0x4036c5
Capabilities:
Terminate process

Disassembly:
jmp 0x455419
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45542a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a97
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4037f6
Capabilities:
Query environment variable

Disassembly:
jmp 0x49ef72
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49ef83
pop esi
ret
push ebx
push edi
push esi
call fcn.0049ee59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040d4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49efab
push ebx
push esi
push edi
call fcn.00405876
add esp, 0xc
push 0
call fcn.0040641a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405943
Capabilities:
Parse pe header

Disassembly:
jmp 0x4441cf
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44420e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44420e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44420e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44420e
cmp dword [ecx + 0x74], 0xe
jbe 0x44420e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x496a4f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4d3034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040600f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496a91
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x496bed
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040616d
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d6f80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403319
mov ecx, dword [esi*4 + 0x4d6f80]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x496be6
cmp eax, dword [edi + ecx + 0x24]
jne 0x496be6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496be6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403319
add esp, 0x14
test edx, edx
jl 0x496be6
jg 0x496b5c
test eax, eax
jb 0x496be6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x496be6
jl 0x496b76
cmp dword [ebp - 0x1008], eax
ja 0x496be6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496b94
test ebx, ebx
je 0x496bcd
cmp ecx, edi
jae 0x496bcd
mov al, byte [ecx]
cmp al, 0xd
jne 0x496bae
lea eax, [edi - 1]
cmp ecx, eax
jae 0x496bba
cmp byte [ecx + 1], 0xa
jne 0x496bba
inc ecx
jmp 0x496bba
movzx eax, al
movsx eax, byte [eax + 0x4d3370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496b94
cmp edx, ebx
jne 0x496b94
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x496beb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030f8
leave
ret
Function at 0x49732c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d6f80]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49736c
cmp byte [ebx], 0xa
jne 0x49736c
or byte [eax + edi + 0x28], 4
jmp 0x497371
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49746f
mov al, byte [edx]
cmp al, 0x1a
je 0x497451
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4973a0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4973c5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4973cf
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x497382
jmp 0x49746f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49744c
cmp dword [ebp - 0xc], 0
je 0x49744c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d6f80]
test byte [eax + edi + 0x28], 0x48
je 0x497426
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x497411
mov byte [esi], dl
jmp 0x497422
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d6f80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49746f
cmp byte [ebp - 1], 0xa
jne 0x497435
cmp esi, ebx
jne 0x497435
mov byte [esi], 0xa
jmp 0x49746e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49746f
mov byte [esi], 0xd
jmp 0x49746e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49746b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49746f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4974cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d6f80]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49750e
cmp word [esi], dx
jne 0x49750e
or byte [edi + eax + 0x28], 4
jmp 0x497513
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x497666
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x497646
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x497555
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49758b
cmp eax, edx
jae 0x497597
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49752d
jmp 0x497666
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497642
cmp dword [ebp - 0x14], 0
je 0x497642
mov eax, dword [ebx*4 + 0x4d6f80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49761a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4975e3
mov word [esi], cx
jmp 0x497616
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d6f80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d6f80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d6f80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x497666
pop ebx
cmp word [ebp - 4], bx
jne 0x49762b
cmp esi, dword [ebp + 0xc]
jne 0x49762b
mov word [esi], bx
jmp 0x497663
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x497666
push 0xd
jmp 0x49765f
mov ecx, dword [ebx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49765d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497666
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49d511
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d3034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49d55c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049d9d3
test al, al
jne 0x49d556
sub edx, 2
cmp edx, edi
jne 0x49d53c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49d57e
lea eax, [edi + 2]
cmp edx, eax
je 0x49d57e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049d10a
add esp, 0x10
jmp 0x49d678
push esi
lea ecx, [ebp - 0x255]
call fcn.0049d9d3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49d5c1
push dword [ebp - 0x25c]
jmp 0x49d56e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49d5fe
cmp word [ebp - 0x226], 0
je 0x49d61f
cmp word [ebp - 0x226], ax
jne 0x49d5fe
cmp word [ebp - 0x224], 0
je 0x49d61f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049d10a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49d66b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49d5d8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49d653
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49d678
push 0x49caf2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056aa
add esp, 0x10
jmp 0x49d648
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030f8
leave
ret
Function at 0x4012c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040d060
lea eax, [ebp - 8]
push eax
push 0x1000
lea ecx, [ebp - 0x100c]
push ecx
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x4012f2
push str.Failed_to_enumerate_processes.
call fcn.004015c0
jmp 0x401334
mov edx, dword [ebp - 8]
shr edx, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
jmp 0x40130d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
jae 0x401334
mov edx, dword [ebp - 4]
cmp dword [ebp + edx*4 - 0x100c], 0
je 0x401332
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x100c]
push ecx
call fcn.00401340
jmp 0x401304
mov esp, ebp
pop ebp
ret
Function at 0x401340
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4292f0]
mov dword [ebp - 0x238], eax
mov ecx, dword [0x4292f4]
mov dword [ebp - 0x234], ecx
mov edx, dword [0x4292f8]
mov dword [ebp - 0x230], edx
mov eax, dword [0x4292fc]
mov dword [ebp - 0x22c], eax
mov ecx, dword [0x429300]
mov dword [ebp - 0x228], ecx
push 0x1f4
push 0
lea edx, [ebp - 0x224]
push edx
call fcn.0040fd70
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401507
lea ecx, [ebp - 0x2c]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x4013e7
push 0x104
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_K32GetModuleBaseNameW
mov dword [ebp - 0x14], 0x436648
mov ecx, dword [ebp - 0x14]
call fcn.00408b70
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
call fcn.00408ba0
mov dword [ebp - 0x24], eax
jmp 0x40140f
mov ecx, dword [ebp - 0xc]
add ecx, 0x18
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x24]
je 0x4014fd
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push 0x429304
lea ecx, [ebp - 0x238]
push ecx
call fcn.004119cb
add esp, 8
test eax, eax
jne 0x4014f8
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], 0x43665c
mov ecx, dword [ebp - 0x18]
call fcn.00408b70
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
call fcn.00408ba0
mov dword [ebp - 0x28], eax
jmp 0x401469
mov edx, dword [ebp - 0x10]
add edx, 0x18
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
je 0x401497
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
push 0x429308
lea edx, [ebp - 0x238]
push edx
call fcn.004119cb
add esp, 8
test eax, eax
jne 0x401495
mov byte [ebp - 1], 1
jmp 0x401497
jmp 0x401460
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x4014f8
push 0x403a20
mov ecx, dword [ebp + 8]
push ecx
push str._with_process_ID:
mov edx, dword [ebp - 0x1c]
push edx
push str.Terminating
push 0x4367d0
call fcn.00401ec0
push eax
call fcn.00401e90
push eax
call fcn.00401ec0
mov ecx, eax
call fcn.00405a40
mov ecx, eax
call fcn.00405b90
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00408ec0
push eax
call fcn.00401510
push 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x401406
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4018c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 0x10], 0x436654
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00408b40
lea ecx, [ebp - 1]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00408b80
jmp 0x4018f2
lea ecx, [ebp - 0xc]
call fcn.00405e60
movzx edx, byte [ebp - 1]
push edx
lea ecx, [ebp - 0xc]
call fcn.00405c60
movzx eax, al
test eax, eax
je 0x4019eb
lea ecx, [ebp - 0xc]
call fcn.00405dd0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call fcn.00408ec0
push eax
call 0x400000
test eax, eax
jne 0x4019e6
mov ecx, dword [ebp - 8]
push ecx
push str.Starting_process:
lea edx, [ebp - 0x38]
push edx
call fcn.00402190
mov ecx, eax
call fcn.00408ec0
push eax
call fcn.00401650
lea ecx, [ebp - 0x38]
call fcn.00405550
push 0x44
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.0040fd70
add esp, 0xc
mov dword [ebp - 0x94], 0x44
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x94]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
call fcn.00408ec0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4019d2
mov ecx, dword [ebp - 8]
push ecx
push str.Failed_to_start_process:
lea edx, [ebp - 0x50]
push edx
call fcn.00402190
mov ecx, eax
call fcn.00408ec0
push eax
call fcn.004015c0
lea ecx, [ebp - 0x50]
call fcn.00405550
jmp 0x4019e6
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4018ea
mov esp, ebp
pop ebp
ret
Function at 0x4069e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x4069fd
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x406a04
mov al, 1
jmp 0x406adc
call fcn.00409d70
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x14], eax
call fcn.00409d70
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00409da0
movzx eax, al
test eax, eax
je 0x406a3d
xor al, al
jmp 0x406adc
mov dword [ebp - 0x20], 0x20
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x38]
call fcn.0040b7b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406a79
cmp dword [ebp - 8], 1
je 0x406a80
cmp dword [ebp - 8], 3
je 0x406acf
jmp 0x406ada
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x44]
sub ecx, edx
mov dword [ebp - 0xc], ecx
je 0x406aaf
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x44]
push eax
call fcn.004136fd
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x406aaf
xor al, al
jmp 0x406adc
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x406ac3
mov dword [ebp - 0x10], 1
jmp 0x406aca
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
jmp 0x406adc
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x406adc
xor al, al
mov esp, ebp
pop ebp
ret