joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cacba
Capabilities:
Query service status

Disassembly:
sub esp, 0x3c
push ebx
push 0x20019
push dword [0x7ed39c]
xor ebx, ebx
lea ecx, [esp + 0x18]
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004c8ab0
test eax, eax
jne 0x4cacfc
push 0x7ed388
push 0x72b774
lea ecx, [esp + 0x18]
call fcn.004c9cb6
push ebp
push esi
cmp dword [0x7ed388], ebx
je 0x4cad2c
cmp byte [0x7ed364], bl
je 0x4caea8
lea ecx, [esp + 0xf]
call fcn.004c13b8
mov esi, eax
mov ecx, esi
call fcn.004cc09c
push esi
call fcn.004cbae5
jmp 0x4cad6b
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x4cad71
cmp byte [0x7ed364], bl
je 0x4caea8
lea ecx, [esp + 0xf]
call fcn.004c1af4
mov esi, eax
mov ecx, esi
call fcn.004ba51b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.004cbae5
pop ecx
pop ecx
jmp 0x4caea8
push 5
push str.Schedule
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
jne 0x4cadbb
cmp byte [0x7ed364], bl
je 0x4caea1
lea ecx, [esp + 0xf]
call fcn.004c3085
mov esi, eax
mov ecx, esi
call fcn.004cc15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.004cbae5
pop ecx
pop ecx
jmp 0x4caea1
push edi
push 9
pop ecx
xor eax, eax
mov dword [esp + 0x14], ebx
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0x24
lea eax, [esp + 0x30]
push eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
pop edi
test eax, eax
je 0x4cae6e
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4cae6e
cmp byte [0x7ed364], bl
je 0x4cae1a
lea ecx, [esp + 0xf]
call fcn.004c5119
mov esi, eax
mov ecx, esi
call fcn.00451924
push dword [esp + 0x40]
push esi
call fcn.004cbae5
mov eax, dword [esp + 0x48]
pop ecx
pop ecx
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x4cae47
cmp byte [0x7ed364], bl
je 0x4cae97
lea ecx, [esp + 0xf]
call fcn.004bf168
mov esi, eax
mov ecx, esi
call fcn.004ba4cf
jmp 0x4cae88
cmp byte [0x7ed364], bl
je 0x4cae68
lea ecx, [esp + 0xf]
call fcn.004c2dd4
mov esi, eax
mov ecx, esi
call fcn.004ba5ff
push esi
call fcn.004cbae5
pop ecx
mov ebx, dword [esp + 0x40]
jmp 0x4cae97
cmp byte [0x7ed364], bl
je 0x4cae97
lea ecx, [esp + 0xf]
call fcn.004bed33
mov esi, eax
mov ecx, esi
call fcn.004ba567
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.004cbae5
pop ecx
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x18], 0
pop esi
pop ebp
je 0x4caebb
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
add esp, 0x3c
ret
Function at 0x4caec2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x20]
push esi
push edi
xor edi, edi
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor esi, esi
test eax, eax
je 0x4caf13
push esi
push esi
push edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalOSSProxyUpdateAllProcesses
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x7ed7d4], eax
jmp 0x4caf18
mov eax, dword [0x7ed7d4]
test eax, eax
je 0x4caf33
push esi
push esi
push esi
push 0x4c7dde
push esi
push esi
call fcn.006e6d4e
add esp, 0x18
mov dword [0x7ed7d0], eax
pop edi
pop esi
leave
ret
Function at 0x4cb26b
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x7ed7d0]
test eax, eax
je 0x4cb29e
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4cb292
push 1
push dword [0x7ed7d0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x7ed7d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x4cb2bb
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x4c0
cmp byte [0x7ed364], 0
push ebx
push ebp
push esi
push edi
je 0x4cb2e7
lea ecx, [esp + 0x13]
call fcn.004bf936
mov esi, eax
mov ecx, esi
call fcn.00451894
push esi
call fcn.004cbae5
pop ecx
and dword [esp + 0x18], 0
mov ebp, str.kernel32
and dword [esp + 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
push ebp
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push ebp
mov ebx, eax
call edi
push eax
call esi
mov ebp, eax
call fcn.004d79aa
test eax, eax
je 0x4cb334
test ebx, ebx
je 0x4cb334
lea eax, [esp + 0x18]
push eax
call ebx
mov ebx, eax
jmp 0x4cb338
mov ebx, dword [esp + 0x14]
push 0x438
lea eax, [esp + 0x9c]
push 0
push eax
call fcn.006dca70
add esp, 0xc
lea eax, [esp + 0x98]
mov esi, 0x21c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4cb506
push str._rundll32.exe
lea eax, [esp + 0x9c]
push esi
push eax
call fcn.006e747a
add esp, 0xc
call fcn.004d79aa
test eax, eax
je 0x4cb3ac
cmp dword [0x7e1054], 0
je 0x4cb506
cmp dword [0x7e1058], 8
mov eax, 0x7e1044
cmovae eax, dword [0x7e1044]
jmp 0x4cb3cc
cmp dword [0x7e103c], 0
je 0x4cb506
cmp dword [0x7e1040], 8
mov eax, 0x7e102c
cmovae eax, dword [0x7e102c]
push eax
lea eax, [esp + 0x9c]
push esi
push eax
call fcn.006e747a
push str._UpdateProcess
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.006e747a
push 0xa
pop ecx
push dword [esp + 0x4ec]
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push 0x72b7d0
push eax
call fcn.004be256
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xc0]
push esi
push eax
call fcn.006e747a
push 0x44
pop esi
push esi
lea eax, [esp + 0x88]
push 0
push eax
call fcn.006dca70
xor eax, eax
mov dword [esp + 0x90], esi
lea edi, [esp + 0x58]
add esp, 0x3c
cmp byte [0x7ed364], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x4cb474
lea ecx, [esp + 0x13]
call fcn.004c1d36
mov esi, eax
mov ecx, esi
call fcn.004cc180
lea eax, [esp + 0x98]
push eax
push esi
call fcn.004cbae5
pop ecx
pop ecx
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
lea eax, [esp + 0x58]
push eax
push ecx
push ecx
push 8
push ecx
push ecx
push ecx
lea eax, [esp + 0xb8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4cb4c4
cmp byte [0x7ed364], al
je 0x4cb4f8
lea ecx, [esp + 0x13]
call fcn.004c1890
mov esi, eax
mov ecx, esi
call fcn.004cc180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.004cbae5
pop ecx
jmp 0x4cb4f7
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
cmp byte [0x7ed364], 0
je 0x4cb4f8
lea ecx, [esp + 0x13]
call fcn.004bfd62
mov esi, eax
mov ecx, esi
call fcn.004ba4cf
push esi
call fcn.004cbae5
pop ecx
test ebx, ebx
je 0x4cb506
test ebp, ebp
je 0x4cb506
push dword [esp + 0x18]
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c0
ret
Function at 0x4cb935
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x725f54
call fcn.006db31c
sub esp, 0x288
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
push 7
pop ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ecx
mov word [ebp - 0x44], ax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x2c], ax
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004cbfb9
push 0x72aa80
lea ecx, [ebp - 0x44]
call fcn.004cbfb9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.004cbfb9
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x294]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4cb9c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4cba4b
push 0x2e
pop esi
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004b6b96
push 0x72aa80
lea ecx, [ebp - 0x2c]
call fcn.004cbfb9
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004cbfb9
cmp word [ebp - 0x268], si
jne 0x4cba10
cmp word [ebp - 0x266], 0
je 0x4cba26
cmp word [ebp - 0x266], si
jne 0x4cba10
cmp word [ebp - 0x264], 0
je 0x4cba26
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4cba3c
lea eax, [ebp - 0x294]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4cb9c3
mov esi, ebx
jmp 0x4cba44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x18]
mov edi, 0x1000
cmp eax, 8
jb 0x4cba8a
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, edi
jb 0x4cba81
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00450606
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 7
cmp eax, 8
jb 0x4cbad4
mov ecx, dword [ebp - 0x44]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, edi
jb 0x4cbacb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00450606
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4cbae5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
cmp byte [0x7ed364], 0
je 0x4cbc0a
push esi
mov esi, 0x7ed5c8
mov ecx, esi
push edi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4cbb09
sub ecx, edx
sar ecx, 1
je 0x4cbc08
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x1ff
push eax
call fcn.004be028
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x414]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
push str._02d__02d__04d__02d:_02d:_02d._03d__s_r_n
lea eax, [ebp - 0xc14]
push 0x3ff
push eax
call fcn.004bdfe9
add esp, 0x2c
push edi
push edi
cmp dword [0x7ed954], edi
jne 0x4cbbaf
push 2
push edi
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [0x7ed954], 1
jmp 0x4cbbcd
push 3
push edi
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push edi
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 0xffffffff
je 0x4cbc08
lea ecx, [ebp - 0xc14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4cbbdb
sub ecx, edx
lea eax, [ebp - 4]
push edi
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xc14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x4cd747
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x726050
call fcn.006db31c
sub esp, 0x220
push ebx
push esi
xor eax, eax
push edi
mov edi, eax
mov dword [ebp - 0x14], edi
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov ebx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 0x104
cmp dword [ebp + 8], eax
jne 0x4cd790
mov dword [ebp - 0x10], 0x80004003
jmp 0x4cd87c
lea eax, [ebp - 0x14]
push eax
call fcn.004ccf31
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jns 0x4cd7a9
mov edi, dword [ebp - 0x14]
jmp 0x4cd87c
push str.ConfigOSSProxySettings
lea ecx, [ebp - 0x14]
call fcn.004c5e08
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0x2001f
push edi
push reloc.WS2_32.dll_bind
call fcn.004c8ab0
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x4cd7db
mov ebx, dword [ebp - 0x20]
jmp 0x4cd87c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x22c]
push eax
push str.UpgradeRunLine
lea ecx, [ebp - 0x20]
call fcn.004c9d20
mov dword [ebp - 0x10], eax
test eax, eax
jns 0x4cd7ff
mov ebx, dword [ebp - 0x20]
jmp 0x4cd86f
xor ebx, ebx
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x10], ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.004c5e08
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x4cd828
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4cd840
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x4cd85d
test esi, esi
je 0x4cd85d
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4cd854
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x10], 0x8007000e
jmp 0x4cd87c
mov ebx, dword [ebp - 0x20]
push str.UpgradeRunLine
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4cd887
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test ebx, ebx
je 0x4cd887
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call ebx
push edi
call ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4d3898
Capabilities:
Copy file
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.004d35e8
mov dword [ebx + 0xc4], eax
test eax, eax
jne 0x4d3a5c
cmp byte [0x7ed364], al
je 0x4d38d3
lea ecx, [esp + 0x13]
call fcn.004ce86c
mov esi, eax
mov ecx, esi
call fcn.004ba483
push esi
call fcn.004cbae5
pop ecx
mov ecx, ebx
call fcn.004d4392
test al, al
jne 0x4d3901
cmp byte [0x7ed364], al
je 0x4d3aae
lea ecx, [esp + 0x13]
call fcn.004cf474
mov esi, eax
mov ecx, esi
call fcn.004ba567
jmp 0x4d3aa7
mov ecx, ebx
call fcn.004d3ca3
test al, al
jne 0x4d392f
cmp byte [0x7ed364], al
je 0x4d3aae
lea ecx, [esp + 0x13]
call fcn.004d12b0
mov esi, eax
mov ecx, esi
call fcn.004cc15a
jmp 0x4d3aa7
mov ecx, ebx
call fcn.004d3ab6
test al, al
jne 0x4d395d
cmp byte [0x7ed364], al
je 0x4d3aae
lea ecx, [esp + 0x13]
call fcn.004d0b6e
mov esi, eax
mov ecx, esi
call fcn.004cc1a6
jmp 0x4d3aa7
mov ecx, ebx
call fcn.004d437b
test al, al
jne 0x4d398b
cmp byte [0x7ed364], al
je 0x4d3aae
lea ecx, [esp + 0x13]
call fcn.004cf538
mov esi, eax
mov ecx, esi
call fcn.004cc1cc
jmp 0x4d3aa7
push 8
lea edi, [ebx + 0x58]
pop ebp
mov eax, edi
cmp dword [edi + 0x14], ebp
jb 0x4d399a
mov eax, dword [edi]
push dword [ebx + 0xe8]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4d39e2
cmp byte [0x7ed364], al
je 0x4d3aae
add ebx, 0x40
cmp dword [ebx + 0x14], ebp
jb 0x4d39c3
mov ebx, dword [ebx]
lea ecx, [esp + 0x13]
call fcn.004d244d
mov esi, eax
mov ecx, esi
call fcn.004cc1f2
push ebx
push esi
call fcn.004cbae5
pop ecx
jmp 0x4d3aad
lea eax, [ebx + 0x40]
cmp dword [eax + 0x14], ebp
jb 0x4d39ec
mov eax, dword [eax]
mov ecx, edi
cmp dword [edi + 0x14], ebp
jb 0x4d39f5
mov ecx, dword [edi]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4d3a2b
cmp byte [0x7ed364], al
je 0x4d3aae
cmp dword [edi + 0x14], ebp
jb 0x4d3a16
mov edi, dword [edi]
lea ecx, [esp + 0x13]
call fcn.004cec5e
mov esi, eax
mov ecx, esi
call fcn.004ba7a1
push edi
jmp 0x4d39d6
lea eax, [ebx + 0x70]
cmp dword [eax + 0x14], ebp
jb 0x4d3a35
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
add ebx, 0x88
cmp dword [ebx + 0x14], ebp
jb 0x4d3a4b
mov ebx, dword [ebx]
push ebx
call esi
cmp dword [edi + 0x14], ebp
jb 0x4d3a55
mov edi, dword [edi]
push edi
call esi
mov al, 1
jmp 0x4d3ab0
test al, 1
je 0x4d3a88
cmp byte [0x7ed364], 0
je 0x4d3a88
lea ecx, [esp + 0x13]
call fcn.004cf124
mov esi, eax
mov ecx, esi
call fcn.004cc54b
push esi
call fcn.004cbae5
mov eax, dword [ebx + 0xc4]
pop ecx
test al, 2
je 0x4d3aae
cmp byte [0x7ed364], 0
je 0x4d3aae
lea ecx, [esp + 0x13]
call fcn.004d2005
mov esi, eax
mov ecx, esi
call fcn.004cc460
push esi
call fcn.004cbae5
pop ecx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4d4734
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, 0x72627b
call fcn.006db31c
sub esp, 0x64
push esi
push edi
mov edi, str.tms.bin
mov esi, ecx
push edi
call fcn.004d52b2
test al, al
jne 0x4d477d
cmp byte [0x7ed364], al
je 0x4d4774
lea ecx, [ebp - 0xd]
call fcn.004d1d2d
mov esi, eax
mov ecx, esi
call fcn.004cc180
push esi
call fcn.004cbae5
pop ecx
xor eax, eax
xor edx, edx
jmp 0x4d48ed
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x40], ebx
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
call fcn.004b6b96
push 0x5c
lea eax, [esi + 0xd0]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004cdb45
add esp, 0xc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
push ecx
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x58]
call fcn.004cdc7b
lea ecx, [ebp - 0x70]
call fcn.004b6a96
mov eax, dword [ebp - 0x2c]
push 8
pop edi
mov byte [ebp - 4], 4
cmp eax, edi
jb 0x4d4816
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
cmp eax, 0x1000
jb 0x4d480d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00450606
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call fcn.006db2db
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x44], edi
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push 0x72dd98
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], 7
push eax
call fcn.006e629d
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x4d486b
cmp byte [0x7ed364], 0
je 0x4d48ca
lea ecx, [ebp - 0xd]
call fcn.004cfc21
mov esi, eax
mov ecx, esi
call fcn.004ba5ff
push esi
call fcn.004cbae5
pop ecx
jmp 0x4d48ca
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push edi
push 1
push eax
movlpd qword [ebp - 0x28], xmm0
call fcn.006e66a4
add esp, 0x10
cmp eax, edi
je 0x4d48ac
cmp byte [0x7ed364], 0
je 0x4d48aa
lea ecx, [ebp - 0xd]
call fcn.004d2514
mov esi, eax
mov ecx, esi
call fcn.004ba64b
push esi
call fcn.004cbae5
pop ecx
mov bl, 1
push dword [ebp - 0x14]
call fcn.006e6467
cmp dword [ebp - 0x44], edi
lea eax, [ebp - 0x58]
pop ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x4d48da
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
jmp 0x4d48e0
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x58]
call fcn.004b6a96
mov eax, edi
mov edx, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4d4f81
Capabilities:
Copy file

Disassembly:
mov eax, 0x725d43
call fcn.006db31c
sub esp, 0x34
push ebx
push esi
mov ebx, ecx
push edi
push 0x72aa80
lea eax, [ebx + 0xd0]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004bdad8
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, 0x7e0fcc
cmp dword [0x7e0fe0], 8
push dword [0x7e0fdc]
cmovae ecx, dword [0x7e0fcc]
push ecx
mov ecx, eax
call fcn.004b6afb
push eax
lea ecx, [ebp - 0x28]
call fcn.004be458
cmp dword [0x7e0ff8], 8
lea eax, [ebp - 0x28]
mov edi, 0x7e0fe4
mov ecx, edi
cmovae ecx, dword [0x7e0fe4]
cmp dword [ebp - 0x14], 8
push 0
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.004b6a96
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004b6a96
test esi, esi
jne 0x4d503f
cmp byte [0x7ed364], 0
je 0x4d5092
lea ecx, [ebp - 0xd]
call fcn.004d0aaf
mov esi, eax
mov ecx, esi
call fcn.004ba4f5
push esi
call fcn.004cbae5
jmp 0x4d5091
push dword [ebx + 0xe8]
cmp dword [0x7e0ff8], 8
mov eax, edi
push 4
cmovae eax, dword [0x7e0fe4]
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4d5096
cmp byte [0x7ed364], al
je 0x4d5092
cmp dword [0x7e0ff8], 8
lea ecx, [ebp - 0xd]
cmovae edi, dword [0x7e0fe4]
call fcn.004ce447
mov esi, eax
mov ecx, esi
call fcn.004cc1f2
push edi
push esi
call fcn.004cbae5
pop ecx
pop ecx
xor al, al
jmp 0x4d5098
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4d5200
Capabilities:
Create thread

Disassembly:
mov eax, 0x726365
call fcn.006db31c
push ecx
cmp byte [0x7ed364], 0
push ebx
push esi
je 0x4d5235
lea ecx, [ebp - 0xd]
call fcn.004cfb5b
mov esi, eax
mov ecx, esi
call fcn.004ba541
push dword [0x7ed374]
push esi
call fcn.004cbae5
pop ecx
pop ecx
call fcn.004c8800
push dword [0x7ed36c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x7ed36c]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
mov eax, dword [0x7ed378]
test eax, eax
je 0x4d526f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x7ed370]
call esi
xor esi, esi
push esi
push esi
push esi
push 0x4c88f7
push esi
push esi
call fcn.006e6d4e
add esp, 0x18
mov dword [0x7ed378], eax
test eax, eax
setne bl
mov dword [ebp - 4], esi
call fcn.004cb2aa
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4d5553
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
xor ecx, ecx
push ebx
push esi
mov esi, dword [esp + 0x60]
push edi
push 0x7af994
push 2
lea edi, [esi + 0x10]
mov eax, dword [edi]
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006db311
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4d55ac
cmp byte [0x7ed364], al
je 0x4d55a5
lea ecx, [esp + 0x64]
call fcn.004ce9f2
mov esi, eax
mov ecx, esi
call fcn.004cc09c
push esi
call fcn.004cbae5
pop ecx
xor al, al
jmp 0x4d5651
cmp dword [esi + 0x14], 8
jb 0x4d55b4
mov esi, dword [esi]
mov eax, dword [edi]
push ebp
push esi
inc eax
push eax
push ebx
call fcn.006e7485
push 0x44
pop esi
push esi
xor ebp, ebp
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.006dca70
xor eax, eax
mov dword [esp + 0x38], esi
lea edi, [esp + 0x28]
add esp, 0x18
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
push 0x8000000
push ebp
push ebp
push ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
pop ebp
test edi, edi
jne 0x4d5631
cmp byte [0x7ed364], 0
je 0x4d5645
lea ecx, [esp + 0x64]
call fcn.004d04a8
mov esi, eax
mov ecx, esi
call fcn.004cc218
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.004cbae5
pop ecx
pop ecx
jmp 0x4d5645
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
push ebx
call fcn.006db30c
test edi, edi
pop ecx
setne al
pop edi
pop esi
pop ebx
add esp, 0x54
ret