joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4402bd
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x440338
push ebx
push edi
push 2
push str.seclogon
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, esi
je 0x440331
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x440317
cmp dword [ebp - 0x2c], 3
je 0x44032e
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 4], eax
push edi
call ebx
push dword [ebp - 0xc]
call ebx
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x440352
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [esi], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4403db
push ebx
call fcn.00485550
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4403cc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4e66bc
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4403cc
cmp dword [ebp - 0xc], ebx
je 0x4403cc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edi], ecx
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x4403db
push dword [ebp - 4]
call fcn.004883a2
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x440417
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, eax
mov ecx, 0x50e594
call fcn.0040f75c
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.00486d70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.004152cd
push esi
call fcn.00473567
pop ecx
mov eax, esi
pop esi
leave
ret
Function at 0x440525
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x44057e
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x440634
mov eax, dword [ebp - 0x94]
dec eax
je 0x440620
dec eax
jne 0x440634
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x4405cd
cmp dword [ebp - 0x9c], edx
jne 0x4405b7
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x44061c
cmp dword [ebp - 0x9c], edi
jne 0x440605
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x44061c
cmp eax, 5
jne 0x4405f7
cmp dword [ebp - 0x9c], 2
jne 0x4405de
push eax
jmp 0x4405fe
cmp dword [ebp - 0x9c], 1
jne 0x4405eb
mov edi, ecx
jmp 0x440634
cmp dword [ebp - 0x9c], edi
jne 0x440634
push 3
jmp 0x4405fe
cmp eax, 4
ja 0x440601
push 4
pop edi
jmp 0x440634
cmp eax, ecx
jb 0x440634
cmp dword [ebp - 0x9c], 2
jae 0x440612
cmp eax, ecx
jbe 0x440634
cmp byte [ebp + 0x76], dl
jne 0x440634
call fcn.00440476
mov edi, eax
jmp 0x440634
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x440702
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x440790
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x440739
cmp dword [ebp - 8], 2
jne 0x44078f
push esi
mov esi, dword [ebp + 0xc]
call fcn.00414b73
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004010cd
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x440777
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x440787
push eax
call fcn.0048650a
pop ecx
mov edx, esi
call fcn.004010ac
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x4413b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.0040eb78
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x44145d
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x44145c
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call fcn.0040ebb7
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44145c
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x44145c
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x44140d
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x441447
xor eax, eax
jmp 0x44144e
push eax
call fcn.00487430
pop ecx
mov edx, esi
call fcn.0040decf
mov dword [ebp - 0x10], 1
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x44146d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x441ae6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x441aff
mov eax, dword [ebp - 4]
jmp 0x441bd9
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x441bb4
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ed020]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4ed020]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ed020]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4ed020]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ed020]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4ed020]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4ed020]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4ed020]
dec ebp
jne 0x441b1e
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x441bd0
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4ed020]
dec ecx
jne 0x441bbe
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4449ef
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor eax, eax
mov esi, str.Administrators
cmp eax, esi
je 0x444ab2
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x444ab2
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
push ebx
jmp 0x444a8c
cmp dword [ebp - 4], ebx
je 0x444a45
push dword [ebp - 4]
call fcn.00486f20
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x444a56
push dword [ebp - 8]
call fcn.00486f20
pop ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x444a97
push dword [ebp - 0x10]
call fcn.00486ffd
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.00486ffd
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push esi
push ebx
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x444a34
push dword [ebp - 8]
call fcn.00486f20
mov eax, dword [ebp - 0x14]
cmp eax, ebx
pop ecx
pop edi
je 0x444ab4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
jmp 0x444ab4
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x444b54
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push edi
xor edi, edi
push 0x228
lea eax, [ebp - 0x244]
push edi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x248], edi
call fcn.00486d70
add esp, 0xc
push edi
push 2
mov dword [ebp - 0x14], edi
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x444b9e
xor eax, eax
jmp 0x444cc4
push esi
lea ecx, [ebp - 0x248]
push ecx
push eax
mov dword [ebp - 0x248], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x444cae
push ebx
cmp dword [ebp - 8], edi
je 0x444bd2
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 4], edi
je 0x444bdf
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x224]
push str.explorer.exe
push eax
call fcn.004879bc
test eax, eax
pop ecx
pop ecx
jne 0x444c72
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
test eax, eax
je 0x444c72
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x444c72
push dword [ebp - 0x240]
push edi
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x444c72
lea eax, [ebp - 4]
push eax
push 0xf01ff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x444c72
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
lea ebx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
call fcn.00444972
test eax, eax
pop ecx
pop ecx
je 0x444c72
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call fcn.0044484a
test eax, eax
pop ecx
push ebx
je 0x444c8b
call fcn.00486f20
pop ecx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x444bc5
jmp 0x444ca3
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x10], 1
call fcn.00486f20
pop ecx
cmp dword [ebp - 8], edi
pop ebx
je 0x444cae
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], edi
je 0x444cbb
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
pop esi
pop edi
leave
ret
Function at 0x444e23
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
push ebx
push esi
push edi
xor ebx, ebx
push 0xd2
lea eax, [ebp - 0xde]
push ebx
push eax
mov word [ebp - 0xe0], bx
call fcn.00486d70
add esp, 0xc
lea eax, [ebp - 0xe0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x444e67
xor eax, eax
jmp 0x444f16
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2ee]
push ebx
push eax
sar edi, 2
mov word [ebp - 0x2f0], bx
call fcn.00486d70
mov word [ebp - 0xe8], bx
mov ebx, dword [ebp + 8]
add esp, 0xc
add ebx, 4
lea esi, [ebp - 0xe0]
call fcn.00444cc7
test edi, edi
jle 0x444f13
mov dword [ebp - 4], edi
and word [esi + 4], 0
push 0x104
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
test eax, eax
je 0x444f0b
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp + 8]
call fcn.00423978
lea eax, [ebp + 8]
push eax
mov edi, ebx
call fcn.004070d4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401023
push esi
lea eax, [ebp - 8]
call fcn.00423978
lea eax, [ebp - 8]
push eax
call fcn.004070d4
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00401023
add esi, 8
dec dword [ebp - 4]
jne 0x444ead
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x444f43
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x444fc4
push 0x4f45b0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x444fc4
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push 0x4f12bc
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push 0x4f12d4
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x444fbf
cmp dword [esi + 4], ebx
je 0x444fbf
cmp dword [esi + 8], ebx
je 0x444fbf
cmp dword [esi + 0xc], ebx
je 0x444fbf
cmp eax, ebx
je 0x444fbf
xor eax, eax
inc eax
jmp 0x444fc1
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret

Function at 0x4450ce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
mov esi, eax
mov ecx, 0x50e594
call fcn.0040f75c
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.00486d70
add esp, 0xc
push edi
push 0x23
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x44512e
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004152cd
push esi
call fcn.00473567
pop ecx
jmp 0x445159
push 0x400000
lea eax, [ebp - 4]
call fcn.00472ff2
pop ecx
mov edi, esi
call fcn.00424a4a
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00401023
push str.appdata_
push esi
call fcn.00401000
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4451e8
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xe8
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov byte [ebp + 0x54], bl
lea edi, [ebp + 0x55]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp + 0x68], ebx
lea edi, [ebp + 0x6c]
stosd dword es:[edi], eax
push 0xc6
stosd dword es:[edi], eax
lea eax, [ebp - 0x72]
push ebx
push eax
mov word [ebp - 0x74], bx
call fcn.00486d70
add esp, 0xc
push dword [ebp + 0x7c]
push 0x5104b0
call fcn.004152cd
call fcn.0044555e
xor edi, edi
inc edi
push edi
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push edi
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp + 0x54]
push 0x5104b4
mov dword [ebp + 0x68], 0xc
mov dword [ebp + 0x6c], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x74]
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
push eax
call fcn.00445827
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push edi
push edi
lea eax, [ebp + 0x68]
push eax
call esi
push ebx
push ebx
push edi
push ebx
mov dword [0x5104a4], eax
call esi
cmp dword [0x5104a4], ebx
mov dword [0x5104a8], eax
je 0x4452d6
cmp eax, ebx
je 0x4452d6
push ebx
push ebx
push 0x51049c
push 0x4453f2
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [0x5104ac], eax
mov eax, ecx
jmp 0x4452d8
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x4453fe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov esi, eax
call fcn.004456db
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
jmp 0x44552f
lea ebx, [esi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x38], eax
push dword [esi + 0xc]
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [esp + 0x20], edi
je 0x44552b
cmp dword [esi + 4], edi
jne 0x445480
mov eax, dword [esi + 0x14]
push 0x4f46b0
push eax
call fcn.0048c6ad
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 4], eax
je 0x44552b
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
call fcn.0040f280
jmp 0x445503
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax]
cmp ebx, eax
jne 0x4454a3
call fcn.00487f2c
push 0xffffffffffffffff
push edi
add ebx, 8
push ebx
lea ecx, [esp + 0x30]
call fcn.00414d5f
mov eax, dword [esp + 0x1c]
push dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea ebx, [esp + 0x24]
call fcn.00445685
cmp dword [esp + 0x3c], 0x10
mov ecx, dword [esp + 0x28]
jae 0x4454db
lea ecx, [esp + 0x28]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x445503
push eax
push dword [esp + 0x3c]
push 1
push ecx
call fcn.0048d997
push dword [esi + 4]
push 2
push 1
push 0x4f46b8
call fcn.0048d997
add esp, 0x20
cmp dword [esp + 0x20], edi
jne 0x445494
mov eax, dword [esi + 4]
cmp eax, edi
je 0x44551a
push eax
call fcn.0048c9e9
pop ecx
mov dword [esi + 4], edi
push edi
push 1
lea ecx, [esp + 0x2c]
call fcn.0040f444
jmp 0x445420
cmp dword [esi], edi
jne 0x445542
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x445420
lea esi, [esp + 0x18]
call fcn.00445731
push dword [esp + 0x1c]
call fcn.00486f20
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44555e
Capabilities:
Delete file
Get file size
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [0x5104b0]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4455f6
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44559b
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp edi, 0x80000
jb 0x4455f5
mov eax, dword [0x5104b0]
add eax, 0xfffffff0
call fcn.004249f2
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004455fd
mov edi, dword [ebp - 4]
mov ebx, dword [0x5104b0]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
lea eax, [edi - 0x10]
call fcn.00401023
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x447b7a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x2cc]
cmp dword [edi], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
je 0x447bab
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
jne 0x447bef
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0xfc]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ebx, eax
test ebx, ebx
jne 0x447bef
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x1d0]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ebx, eax
mov eax, dword [esi + 0x2bc]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x447d46
push eax
call fcn.004246dd
mov edi, eax
test edi, edi
pop ecx
je 0x447cc5
mov eax, dword [edi + 0x10]
push 2
mov dword [ebp - 4], eax
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x447c33
push edi
call fcn.0044683b
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.0042491e
cmp dword [esi + 0x2bc], ebx
jne 0x447c87
mov ecx, dword [edi + 0x40]
xor eax, eax
cmp ecx, eax
je 0x447c79
cmp word [ecx], ax
je 0x447c79
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x447cc5
cmp dword [edi + 0x10], eax
je 0x447cc5
mov dword [ebp - 8], 1
jmp 0x447cc5
mov eax, dword [edi]
xor ebx, ebx
inc ebx
push ebx
push 0
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x447ca5
push edi
call fcn.0044683b
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x2a3
call fcn.0042491e
mov dword [ebp - 0xc], ebx
xor eax, eax
cmp dword [ebp - 8], eax
mov dword [esi + 0x2bc], eax
je 0x447d07
mov eax, dword [esi + 4]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x1c], 1
call dword [eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 0x4e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x447d46
cmp dword [ebp - 0xc], eax
je 0x447d46
mov ecx, dword [ebp - 4]
cmp ecx, eax
je 0x447d46
mov eax, dword [esi + 4]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x24]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 0x2b8]
cmp ecx, dword [eax]
jne 0x447d46
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret 0xc