joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033d3
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jg 0x4033f0
mov eax, 0x80004005
jmp 0x40346b
lea eax, [esi + 4]
push edi
push eax
call fcn.00475acf
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40342c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4b3018
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x403433
mov eax, 0x80004005
jmp 0x40346a
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [esi], edx
movzx edx, word [eax + 0xe]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ecx], eax
call fcn.004769e6
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4037dc
Capabilities:
Copy file

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4037f4
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi]
sub esp, 0x14
push ebx
test ecx, ecx
je 0x403872
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x403872
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
mov eax, dword [esi]
push eax
push dword [eax + 0xc]
lea ecx, [ebp - 8]
call fcn.00415f49
jmp 0x403854
lea ecx, [ebp - 8]
call fcn.00403a66
cmp dword [eax + 0x18], 8
jb 0x40383d
mov eax, dword [eax + 4]
jmp 0x403840
add eax, 4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x403893
lea ecx, [ebp - 8]
call fcn.004039f9
mov eax, dword [esi]
push eax
push dword [eax + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00415f49
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00403a28
test al, al
je 0x40382a
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x403888
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
push edi
call fcn.004038da
pop ecx
pop ecx
pop ebx
leave
ret

Function at 0x403896
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.00403b0b
add esp, 0xc
test esi, esi
pop esi
je 0x4038d6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4038d6
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4038da
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 8], 0
je 0x403907
push dword [esp + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403907
push 4
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
ret
Function at 0x403b0b
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x4c3a60]
xor eax, esp
mov dword [esp + 0x480], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.004018f6
mov eax, dword [esp + 0x28]
dec eax
push eax
lea ecx, [esp + 0x18]
call fcn.0040317f
cmp word [eax], 0x5c
je 0x403b62
push 0x4b3018
lea ecx, [esp + 0x18]
call fcn.004019f8
push 0x4b315c
lea ecx, [esp + 0x18]
call fcn.004019f8
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x403b7f
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x403bba
xor esi, esi
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00401ad3
mov ecx, dword [esp + 0x48c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00476d3a
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x284]
push 0
push eax
call fcn.00476cc0
add esp, 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4b3160
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403c48
push 0x4b3010
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403c48
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [esp + 0x30], 0x10
je 0x403c3c
push esi
lea eax, [esp + 0x284]
push ebx
push eax
call fcn.00403b0b
add esp, 0xc
cmp dword [ebx], 0
je 0x403c48
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x403c48
lea edi, [esp + 0x280]
call fcn.004037f4
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403bd1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x403b96
Function at 0x4079ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp + 0x78c], eax
mov eax, dword [ebp + 0x798]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push edi
mov edi, ecx
push str.HKCT
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x400
call esi
test eax, eax
je 0x407a38
push str.HKEY_CLASSES_ROOT
push edi
call esi
test eax, eax
je 0x407a38
push str.HKCU
push edi
call esi
test eax, eax
je 0x407a31
push str.HKEY_CURRENT_USER
push edi
call esi
test eax, eax
je 0x407a31
push str.HKLM
push edi
call esi
test eax, eax
je 0x407a2a
push 0x4b3744
push edi
call esi
test eax, eax
jne 0x407a31
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x407a3d
mov eax, connect
jmp 0x407a3d
mov eax, connect
lea ecx, [ebp - 0x7c]
push ecx
push 1
xor esi, esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407a81
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x407a81
cmp dword [ebp - 0x78], esi
jbe 0x407a81
xor eax, eax
inc eax
jmp 0x407a83
xor eax, eax
mov ecx, dword [ebp + 0x78c]
pop edi
xor ecx, ebp
pop esi
call fcn.00476d3a
add ebp, 0x790
leave
ret

Function at 0x40b475
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp + 0x38c], eax
mov eax, dword [ebp + 0x3a4]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
mov esi, dword [ebp + 0x398]
push edi
mov edi, dword [ebp + 0x39c]
push 0x400
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00476cc0
or dword [ebp - 0x80], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40b4f7
call fcn.0040390a
mov eax, 0x80004005
jmp 0x40b502
lea eax, [ebp - 0x74]
push eax
call fcn.00401aaf
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.00476d3a
add ebp, 0x390
leave
ret

Function at 0x40b517
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x40b529
mov eax, dword [eax + 4]
jmp 0x40b52c
add eax, 4
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
ret
Function at 0x40b550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
push 0x400
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00476cc0
or dword [ebp - 0x408], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], 0x200
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40b5d2
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, 0x80004005
jmp 0x40b5dc
mov eax, dword [ebp - 0x404]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d3a
leave
ret
Function at 0x40c65d
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x41c]
sub esp, 0x49c
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp + 0x418], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x428]
push esi
push edi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x42c]
push 0x400
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x18]
push 0
push eax
mov edi, ecx
call fcn.00476cc0
add esp, 0xc
mov esi, 0x4b3732
push esi
lea ecx, [ebp - 0x58]
call fcn.00402477
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c6bd
sub eax, ecx
lea ecx, [ebp - 0x58]
push ecx
sar eax, 1
push eax
push edi
call fcn.0040b780
add esp, 0xc
push esi
lea ecx, [ebp - 0x20]
call fcn.00402477
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c6e7
sub eax, ecx
lea ecx, [ebp - 0x20]
push ecx
sar eax, 1
push eax
push ebx
call fcn.0040b780
add esp, 0xc
push esi
lea ecx, [ebp - 4]
call fcn.00402477
mov eax, dword [ebp - 0x7c]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c712
sub eax, ecx
lea ecx, [ebp - 4]
push ecx
sar eax, 1
push eax
push dword [ebp - 0x7c]
call fcn.0040b780
add esp, 0xc
push esi
lea ecx, [ebp - 0x3c]
call fcn.00402477
mov eax, dword [ebp - 0x78]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40c73f
sub eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
sar eax, 1
push eax
push dword [ebp - 0x78]
call fcn.0040b780
mov esi, dword [ebp - 0x38]
add esp, 0xc
push 0x10
pop eax
cmp dword [ebp - 0x24], eax
jae 0x40c76b
lea esi, [ebp - 0x38]
mov edx, dword [ebp]
cmp dword [ebp + 0x14], eax
jae 0x40c776
lea edx, [ebp]
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 8], eax
jae 0x40c781
lea ecx, [ebp - 0x1c]
cmp dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
jae 0x40c78c
lea eax, [ebp - 0x54]
push esi
push 0x3ff
lea esi, [ebp + 0x18]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4b3140
lea ecx, [ebp - 0x74]
call fcn.004018f6
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c7b1
sub eax, ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0040b6f8
mov ecx, dword [ebp - 0x80]
add esp, 0xc
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [ebp - 0x74]
push eax
call fcn.00401a1c
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x74]
call fcn.00401ad3
push edi
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040284b
push edi
push esi
lea ecx, [ebp - 4]
call fcn.0040284b
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.0040284b
push edi
push esi
lea ecx, [ebp - 0x58]
call fcn.0040284b
mov ecx, dword [ebp + 0x418]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00476d3a
add ebp, 0x41c
leave
ret
Function at 0x40c9ce
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push eax
push 0x400
lea eax, [ebp - 0x804]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
neg eax
mov dword [esi], eax
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00476d3a
leave
ret
Function at 0x40d7bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0x74]
call fcn.00401aaf
push dword [ebp + 0xc]
lea ecx, [esi + 0x90]
call fcn.00401aaf
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x70], eax
xor eax, eax
cmp dword [esi + 0x270], eax
jne 0x40d80a
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x40dbe0
push eax
push eax
mov dword [ebp + 8], eax
call fcn.00477f45
add esp, 0x18
mov dword [esi + 0x270], eax
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x40d812
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc8]
call fcn.00401aaf
xor eax, eax
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x40dca8
push eax
push eax
mov dword [ebp + 8], eax
call fcn.00477f45
add esp, 0x18
pop esi
pop ebp
ret 4

Function at 0x40de0b
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x1000
push esi
mov dword [ebp - 0x3c], eax
mov edi, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.00475acf
push esi
push ebx
push eax
mov dword [ebp - 0x30], eax
call fcn.00476cc0
add esp, 0x10
push ebx
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 0xf
call fcn.0040282f
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push edi
mov byte [ebp - 0x21], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x40df05
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x40dee2
push ebx
push 0x84000002
push ebx
push ebx
push dword [ebp - 0x3c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x40dee2
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40dec8
cmp dword [ebp - 0x28], ebx
je 0x40dede
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x28]
push eax
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x40deaf
mov byte [ebp - 0x21], bl
jmp 0x40dee2
mov byte [ebp - 0x21], 1
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x40defb
push dword [ebp - 0x2c]
call esi
cmp dword [ebp - 0x38], ebx
je 0x40df05
push dword [ebp - 0x38]
call esi
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.0040284b
mov ecx, dword [ebp - 4]
movzx eax, byte [ebp - 0x21]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d3a
leave
ret
Function at 0x40f1c1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00476cc0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jb 0x40f211
cmp dword [ebp - 0x70], 2
jne 0x40f211
xor eax, eax
inc eax
jmp 0x40f213
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00476d3a
add ebp, 0x98
leave
ret

Function at 0x40f228
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x40f240
mov eax, 0x80004005
jmp 0x40f2d6
push ebx
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
jne 0x40f24e
mov esi, 0x4b3140
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00476cc0
add esp, 0xc
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
cmp dword [ebp + 0x14], edi
je 0x40f27d
call fcn.0040f1c1
mov dword [ebp - 0x30], str.runas
test eax, eax
jne 0x40f284
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x38], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40f2c2
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x40f2be
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
jmp 0x40f2d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, 0x80004005
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40f5f2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x4c3a60]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [esp + 0x14]
call fcn.0040f83a
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 7
call fcn.00401d5a
and dword [esp + 0x48], 0
push edi
lea ecx, [esp + 0x30]
call fcn.00401aaf
lea eax, [esp + 0x2c]
push eax
call fcn.0040f88f
mov ecx, esi
call fcn.0040f6af
mov eax, dword [esp + 0x20]
mov esi, eax
cmp eax, dword [esp + 0x24]
jbe 0x40f658
call fcn.00476979
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], esi
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.004124a7
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x40f6a2
mov edi, 0x8618000a
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.00401ad3
lea esi, [esp + 0x14]
call fcn.0040f862
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00476d3a
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor edi, edi
jmp 0x40f679
Function at 0x40f6af
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xffffffe0
jne 0x40f6dc
xor eax, eax
inc eax
jmp 0x40f82b
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x40f6fa
mov eax, 0x8618000b
jmp 0x40f82b
lea esi, [ebp - 0x250]
call fcn.0041238f
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x248], eax
cmp dword [edi + 0xc], eax
jbe 0x40f718
call fcn.00476979
mov eax, dword [edi]
mov esi, 0x22c
push esi
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00476cc0
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40f815
mov edi, dword [ebp - 0x250]
mov ebx, dword [ebp - 0x24c]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x240], ebx
test edi, edi
je 0x40f778
cmp edi, dword [ebp - 0x258]
je 0x40f77d
call fcn.00476979
cmp ebx, dword [ebp - 0x248]
je 0x40f803
lea esi, [ebp - 0x244]
call fcn.004124a7
cmp dword [eax + 0x1c], 0
jne 0x40f7e2
call fcn.004124a7
cmp dword [eax + 0x18], 8
jb 0x40f7a6
mov eax, dword [eax + 4]
jmp 0x40f7a9
add eax, 4
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40f7e2
lea esi, [ebp - 0x244]
call fcn.004124a7
push dword [ebp - 0x230]
mov esi, eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 0x1c], eax
test edi, edi
jne 0x40f7ff
call fcn.00476979
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40f7f7
call fcn.00476979
add ebx, 0x20
jmp 0x40f766
mov eax, dword [edi]
jmp 0x40f7ed
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f754
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00476d3a
leave
ret
Function at 0x411ebf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x4c3a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea esi, [ebx + 0x10c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push edi
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4120c5
mov ecx, esi
call fcn.00412229
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401918
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0x4c]
call fcn.00415f49
mov edi, dword [ebp - 0x48]
push edi
push dword [esi + 0x10]
lea eax, [edi + 0x1c]
push eax
call fcn.00413624
mov eax, dword [esi + 0x10]
add esp, 0xc
push eax
add eax, 0xffffffe4
push eax
mov ecx, esi
call fcn.00412652
add dword [esi + 0x10], 0xffffffe4
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.00415f49
mov eax, dword [ebx + 0x78]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x60]
lea edi, [ebp - 0x54]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x54], eax
call fcn.00419643
test al, al
jne 0x4120b9
call fcn.0041b118
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.0040c54c
test eax, eax
je 0x411f7f
call fcn.00413199
jmp 0x411f45
call fcn.0041b118
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x4120b9
lea edi, [ebx + 0xdc]
mov ecx, edi
call fcn.0041229f
lea ecx, [ebx + 0xf4]
call fcn.0041229f
push str..exe
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004135ef
add esp, 0xc
push eax
mov ecx, edi
call fcn.00412244
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x78]
call fcn.00401ad3
push esi
lea ecx, [ebx + 0xf4]
call fcn.00412244
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 7
call fcn.00401d5a
lea eax, [ebp - 0x20]
add esi, 0x16c
push eax
mov dword [ebp - 0x50], esi
call fcn.00410f9a
test eax, eax
je 0x412093
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebx + 0x60]
push esi
call fcn.0041ac47
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [esi]
lea edi, [ebp - 0x5c]
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
call fcn.00419643
test al, al
jne 0x412091
call fcn.0041b118
mov esi, dword [eax + 0x1c]
push str..exe
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [esi + 0x1a8], 5
call fcn.004135ef
add esp, 0xc
push eax
lea ecx, [ebx + 0xdc]
call fcn.00412244
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.00401ad3
push esi
lea ecx, [ebx + 0xf4]
call fcn.00412244
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x20]
push eax
call fcn.00410f9a
test eax, eax
jne 0x412007
xor edi, edi
lea eax, [ebp - 0x40]
push eax
push edi
push ebx
push 0x411b0c
push edi
push edi
call fcn.00477f45
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x20]
mov dword [ebx + 0xd8], eax
call fcn.00401ad3
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401ad3
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00476d3a
leave
ret