joyce8/EMBER2024-capa huggingface dataset:
Function at 0x883e91
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
push ebx
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x14], edx
push 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x50], 0x22c
call dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.kernel32.dll_Process32FirstW]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx]
mov byte [esi], 0
call fcn.008849c9
mov ebx, eax
jmp 0x883f84
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.kernel32.dll_Process32NextW]
cmp eax, 1
jne 0x883f8d
lea ecx, [esp + 0x18]
call fcn.008277c7
lea ecx, [esp + 0x28]
call fcn.008277c7
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00827f41
lea eax, [esp + 0x28]
xor edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.008246f9
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.00825a64
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00827c8e
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.00827a68
test eax, eax
jne 0x883f5d
mov eax, dword [esp + 0x50]
jmp 0x883f69
test ebx, ebx
je 0x883f72
mov eax, dword [esp + 0x50]
cmp ebx, eax
jne 0x883f72
mov ecx, dword [esp + 0x10]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.00825a64
lea ecx, [esp + 0x18]
call fcn.00825a64
cmp byte [esi], 0
je 0x883ede
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x883fa0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
mov eax, 0x80
push esi
push eax
push 3
push esi
push 3
mov ebx, edx
push eax
push ecx
mov dword [ebx], esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 8], edx
cmp edx, 0xffffffff
jne 0x883fd1
xor al, al
jmp 0x88401a
push 0xa
pop ecx
xor eax, eax
mov dword [ebp - 0x14], esi
push esi
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
push 0x28
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], esi
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push edx
call dword [sym.imp.kernel32.dll_DeviceIoControl]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x883fcd
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x884021
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x8e7428]
sub esp, 0x1c
cmp byte [eax + 0x25], 0
jne 0x884039
mov eax, 0x80004005
jmp 0x8840ad
push ebx
push esi
xor esi, esi
mov eax, 0x80
push esi
push eax
push 3
push esi
push 3
push eax
push ecx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x88409c
push edi
xor eax, eax
mov dword [ebp - 0x10], 7
lea edi, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.kernel32.dll_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
test esi, esi
jne 0x8840a3
mov eax, 0x80004005
jmp 0x8840ab
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x884696
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x8846d1
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x8846c6
or eax, eax
jmp 0x8846d1
push eax
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x8846d6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push eax
push edi
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x8846fb
xor al, al
jmp 0x8848a3
push esi
call fcn.00840ff6
pop ecx
push eax
mov dword [ebp - 4], eax
xor eax, eax
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.version.dll_GetFileVersionInfoW]
mov esi, dword [ebp + 8]
push esi
call fcn.00842e3c
xor ecx, ecx
add eax, 0x1a
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00840ff6
mov edi, eax
push 0x8afac0
push edi
call fcn.00842ffc
push 0x8afac0
push esi
call fcn.0084378c
add esp, 0x18
test eax, eax
je 0x8847e7
push str.StringFileInfo_
push edi
call fcn.00842fcd
push 0x8afac0
push esi
call fcn.00843bba
add esp, 0x10
test eax, eax
jne 0x8847de
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
je 0x8847ba
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
push 0
mov esi, dword [eax]
push esi
push 4
pop edx
call fcn.0083fd71
push 0
shr esi, 0x10
lea ecx, [edi + 0x28]
push esi
push 4
pop edx
call fcn.0083fd71
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x8847c7
push str.04090000
push edi
call fcn.00842fcd
pop ecx
pop ecx
push 0x8afac0
push edi
call fcn.00842fcd
push esi
push edi
call fcn.00842fcd
add esp, 0x10
jmp 0x8847e7
push esi
push edi
call fcn.00842fcd
pop ecx
pop ecx
push str.DefaultLangCodepage
push esi
call fcn.0084313d
pop ecx
pop ecx
test eax, eax
jne 0x884822
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.008442ee
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.0084106c
push edi
call fcn.0084106c
add esp, 0x14
mov al, 1
jmp 0x8848a3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
je 0x884890
push 0x8afac0
push esi
call fcn.0084378c
pop ecx
pop ecx
test eax, eax
jne 0x884872
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push ebx
call fcn.008438d8
add esp, 0x18
jmp 0x88488c
push 0x200
push dword [ebp - 8]
push ebx
call fcn.008442ee
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.0084106c
push edi
call fcn.0084106c
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8848f3
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
mov esi, ecx
call dword [sym.imp.wsock32.dll_WSAStartup]
test eax, eax
jne 0x8849b6
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.wsock32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.wsock32.dll_gethostbyname]
test eax, eax
je 0x8849b6
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x884953
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0x88494a
cmp esi, ecx
jle 0x884966
push str.0.0.0.0
push edi
call fcn.00842ffc
pop ecx
pop ecx
jmp 0x8849ae
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00841080
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.wsock32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00844570
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.0088573e
mov esi, eax
push esi
push edi
call fcn.00842ffc
push esi
call fcn.0084106c
add esp, 0x14
call dword [sym.imp.wsock32.dll_WSACleanup]
jmp 0x8849c3
push 0x8af910
push edi
call fcn.00842ffc
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x884c03
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.advapi32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x884c5c
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.advapi32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.advapi32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret

Function at 0x884cd3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x884ce6
test al, 0x10
je 0x884ce6
mov al, 1
ret
xor al, al
ret
Function at 0x884d35
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x8e62b7], 0
mov ebx, edx
test edi, edi
je 0x884d87
mov byte [0x8e62b8], 1
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x885217
push ecx
push ecx
call fcn.008440c1
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.user32.dll_MessageBoxW]
mov edi, eax
test esi, esi
je 0x884db2
push 0xffffffffffffffff
push esi
mov byte [0x8e62b8], 0
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp byte [0x8e62b7], 1
jne 0x884dc0
or eax, 0xffffffff
jmp 0x884dc2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x884f63
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20450
call fcn.00851b90
push ebx
push esi
lea eax, [esp + 0x10458]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.008848aa
pop ecx
lea eax, [esp + 0x458]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.008848aa
pop ecx
lea ecx, [esp + 0x10458]
call fcn.00884cd3
test al, al
jne 0x884fb6
xor al, al
jmp 0x8851c4
lea ecx, [esp + 0x458]
call fcn.00884cd3
xor esi, esi
test al, al
je 0x885092
cmp byte [ebp + 8], 0
je 0x884faf
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
jne 0x88502e
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.0084378c
pop ecx
pop ecx
test eax, eax
je 0x885027
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call dword [sym.imp.kernel32.dll_MoveFileW]
test eax, eax
setne al
jmp 0x8851c4
mov al, 1
jmp 0x8851c4
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x254]
push eax
push esi
lea eax, [esp + 0x10464]
push esi
push eax
call fcn.0084432e
add esp, 0x14
lea eax, [esp + 0x458]
push 0x8afac0
push eax
call fcn.00842fcd
lea eax, [esp + 0x258]
push eax
lea eax, [esp + 0x464]
push eax
call fcn.00842fcd
add esp, 0x10
cmp word [esp + 0x48], si
je 0x885092
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x45c]
push eax
call fcn.00842fcd
pop ecx
pop ecx
lea eax, [esp + 0x458]
push eax
lea ecx, [esp + 0xc]
call fcn.00827f41
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0x3c]
call fcn.00827f41
lea edx, [esp + 8]
lea ecx, [esp + 0x38]
call fcn.00884c69
lea ecx, [esp + 0x38]
mov bl, al
call fcn.00825a64
lea ecx, [esp + 8]
call fcn.00825a64
test bl, bl
je 0x88512c
push 1
lea edx, [esp + 0x45c]
lea ecx, [esp + 0x1045c]
call fcn.008838ad
pop ecx
test al, al
je 0x884faf
lea eax, [esp + 0x10458]
push eax
lea ecx, [esp + 0xc]
call fcn.00827f41
mov dl, 1
lea ecx, [esp + 8]
call fcn.008853c5
mov bl, al
lea ecx, [esp + 8]
neg bl
sbb bl, bl
call fcn.00825a64
inc bl
sete al
jmp 0x8851c4
lea eax, [esp + 0x458]
push eax
lea eax, [esp + 0x1045c]
push eax
call fcn.0084378c
pop ecx
pop ecx
test eax, eax
je 0x884faf
lea eax, [esp + 0x10458]
push eax
call fcn.00842e3c
pop ecx
xor ecx, ecx
mov word [esp + eax*2 + 0x1045a], cx
lea eax, [esp + 0x458]
push eax
call fcn.00842e3c
pop ecx
xor ecx, ecx
mov dword [esp + 0x2e], esi
mov dword [esp + 0x32], esi
mov word [esp + eax*2 + 0x45a], cx
lea eax, [esp + 0x10458]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x458]
mov dword [esp + 0x24], eax
mov eax, 0x614
mov word [esp + 0x28], ax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2e], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.shell32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8853c5
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00851b90
mov ecx, dword [ecx]
lea eax, [ebp - 0x10020]
push ebx
mov bl, dl
mov edx, 0x7fff
push eax
call fcn.008848aa
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.00884cd3
test al, al
je 0x88545a
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x885410
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x88545a
call fcn.00842e3c
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], 3
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.shell32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x88545f
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
mov esi, edx
push str.SeShutdownPrivilege
lea ecx, [ebp - 0x10]
call fcn.008837e9
push ecx
lea ecx, [ebp - 0x10]
call fcn.00878cc3
test al, al
jne 0x885489
xor esi, esi
jmp 0x8854d6
cmp ebx, 0x20
je 0x8854c8
cmp ebx, 0x40
je 0x8854c4
test bl, 0xb
jne 0x8854a3
push 0
push ebx
call dword [sym.imp.user32.dll_ExitWindowsEx]
jmp 0x8854d4
xor ecx, ecx
test bl, 0x14
je 0x8854ab
inc ecx
xor eax, eax
test bl, 2
je 0x8854b3
inc eax
push esi
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.advapi32.dll_InitiateSystemShutdownExW]
jmp 0x8854d4
xor eax, eax
jmp 0x8854cb
xor eax, eax
inc eax
push 0
push eax
call dword [sym.imp.kernel32.dll_SetSystemPowerState]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00878713
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x8854e6
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x885564
jne 0x8854f9
push 0
jmp 0x88555e
cmp esi, 0xf
jae 0x88555d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x88555d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.kernel32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x8c4be0]
call fcn.0085b606
cmp eax, esi
jb 0x885516
jmp 0x885564
push esi
call dword [sym.imp.kernel32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x88568b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 0x10
push esi
call dword [sym.imp.user32.dll_PostMessageW]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push edi
push edi
push 0x10
push esi
call dword [sym.imp.user32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x8856e6
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push edi
push 0x1f0fff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov esi, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_TerminateProcess]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x88703e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x88707a
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x8870b7
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test dword [ebp + 8], eax
je 0x8870a0
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x887072
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x8870ee
or eax, 0xffffffff
jmp 0x887072
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x8870c5
cmp eax, 0xffffffff
je 0x8870c5
push 1
mov edx, esi
mov ecx, eax
call fcn.00886f08
pop ecx
jmp 0x887070
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x8da478
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x88706e
test eax, eax
je 0x88706e
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00886f08
pop ecx
mov ecx, esi
call fcn.00886ed7
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x887070
Function at 0x88710c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x887147
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x887182
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test al, 1
je 0x88716c
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x88713f
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_CreatePipe]
test eax, eax
jne 0x8871b9
or eax, 0xffffffff
jmp 0x88713f
push 0xfffffffffffffff6
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x887190
cmp eax, 0xffffffff
je 0x887190
push 1
mov edx, esi
mov ecx, eax
call fcn.00886f08
pop ecx
jmp 0x88713d
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push 0x80000000
push 0x8da478
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x88713b
test eax, eax
je 0x88713b
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00886f08
pop ecx
mov ecx, esi
call fcn.00886ed7
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x88713d
Function at 0x887368
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
push 0x1f5
lea esi, [ebx + 0x34]
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
push 0xffff
call fcn.00840ff6
mov edi, eax
mov eax, 0xffff
push eax
mov dword [ebp - 8], edi
mov dword [ebx + 0x10], eax
call fcn.00840ff6
pop ecx
pop ecx
push 0
mov dword [ebx + 8], eax
lea eax, [ebp - 4]
push eax
push 0xffff
push edi
push dword [ebx + 0x2c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x887472
cmp dword [ebp - 4], 0
jbe 0x88746f
lea esi, [ebx + 0x14]
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [ebx + 0x10], eax
jae 0x887434
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 4]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jns 0x8873fc
fadd qword [0x8dbac8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x8d6f10]
call fcn.0085b606
push eax
mov dword [ebx + 0x10], eax
call fcn.00840ff6
push dword [ebx + 0xc]
mov dword [ebx + 8], eax
push edi
push dword [ebx + 8]
call fcn.00841080
push edi
call fcn.0084106c
mov ecx, dword [ebp - 4]
add esp, 0x14
mov edi, dword [ebp - 8]
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 8]
push ecx
push edi
push eax
call fcn.00841080
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx + 0xc], eax
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push 0xffff
push edi
push dword [ebx + 0x2c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x8873c4
mov esi, dword [ebp - 0xc]
push edi
call fcn.0084106c
pop ecx
mov edi, 0x1f6
push edi
push esi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x8874d2
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
cmp dword [edi], 0
je 0x887531
push ebx
lea ebx, [esi + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp eax, 0x1f6
je 0x887530
add esi, 0x14
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push 0x1f6
push dword [edi]
call dword [sym.imp.kernel32.dll_TerminateThread]
push 0x3e8
push dword [edi]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.00886ed7
push 0x1f6
push ebx
call dword [sym.imp.kernel32.dll_InterlockedExchange]
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
ret

Function at 0x887534
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0
jne 0x887558
test byte [esi], 2
je 0x887558
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x887558
call fcn.00886dda
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.008874a9
cmp dword [esi + 0x24], 0
jne 0x88757f
test byte [esi], 4
je 0x88757f
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x88757f
test byte [esi], 8
jne 0x88757f
call fcn.00886dda
mov dword [esi + 0x24], eax
mov ecx, eax
pop esi
jmp fcn.008874a9
pop esi
ret