joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
mov edi, dword [esp + 8]
test di, di
ja 0x4da9a8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4da9a4
movzx ecx, di
push ecx
push str.ERROR:CopyData___no_drive_failed_drive_d
push eax
call fcn.004d2ee0
add esp, 0xc
xor eax, eax
pop edi
ret
push esi
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4da9f5
test al, 0x10
je 0x4da9c1
push 1
jmp 0x4da9c3
push 0
push edi
push esi
call fcn.005107a0
add esp, 0xc
test eax, eax
je 0x4da9ed
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4daa0c
push eax
push str.ERROR:CopyData___CopyFolder_failed_ErrCode__d_
push ecx
call fcn.004d2ee0
add esp, 0xc
pop esi
xor eax, eax
pop edi
ret
pop esi
mov eax, 1
pop edi
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4daa0c
push esi
push str.ERROR:Copy_data_to_user_disk_failed_because_of___s__is_not_exist
push eax
call fcn.004d2ee0
add esp, 0xc
pop esi
xor eax, eax
pop edi
ret
Function at 0x4dfeb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x4dfedc
mov ecx, dword [esp + 4]
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shr esi, 0x18
xor esi, edi
shl eax, 8
xor eax, dword [esi*4 + 0x5d6000]
inc ecx
sub edx, 1
jne 0x4dfec0
pop edi
pop esi
ret

Function at 0x4dffb0
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x214
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
mov al, 0x17
push esi
mov byte [esp + 0x18], al
mov byte [esp + 0x1a], al
push edi
mov edi, dword [esp + 0x228]
xor eax, eax
xor ecx, ecx
mov byte [esp + 0x10], 0x7c
mov byte [esp + 0x11], 0x4e
mov byte [esp + 0x12], 3
mov byte [esp + 0x13], 4
mov byte [esp + 0x14], 0x55
mov byte [esp + 0x15], 5
mov byte [esp + 0x16], 9
mov byte [esp + 0x17], 7
mov byte [esp + 0x18], 0x2d
mov byte [esp + 0x19], 0x2c
mov byte [esp + 0x1a], 0x7b
mov byte [esp + 0x1b], 0x38
mov byte [esp + 0x1d], 0xd
mov byte [esp + 0x1f], 0x11
xor esi, esi
and eax, 0xf
movzx edx, ax
mov dl, byte [esp + edx + 0x10]
mov byte [esp + esi + 0x20], cl
mov byte [esp + esi + 0x120], dl
inc ecx
mov edx, 0x100
inc eax
inc esi
cmp cx, dx
jb 0x4e0025
xor eax, eax
xor ecx, ecx
mov esi, edx
lea ecx, [ecx]
mov dl, byte [esp + ecx + 0x20]
movzx ebx, byte [esp + ecx + 0x120]
movzx ebp, dl
add ebx, eax
add ebp, ebx
and ebp, 0x800000ff
jns 0x4e0073
dec ebp
or ebp, 0xffffff00
inc ebp
movzx eax, bp
mov bl, byte [esp + eax + 0x20]
mov byte [esp + ecx + 0x20], bl
inc ecx
sub esi, 1
mov byte [esp + eax + 0x20], dl
jne 0x4e0050
mov ax, word [esp + 0x22c]
xor ecx, ecx
cmp cx, ax
jae 0x4e0119
movzx ebp, ax
mov edi, edi
inc ecx
and ecx, 0x800000ff
jns 0x4e00b1
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, cx
movzx ecx, ax
mov al, byte [esp + ecx + 0x20]
movzx edx, al
add edx, esi
and edx, 0x800000ff
jns 0x4e00d0
dec edx
or edx, 0xffffff00
inc edx
movzx edx, dx
movzx esi, dx
movzx edx, byte [esp + esi + 0x20]
mov byte [esp + ecx + 0x20], dl
mov byte [esp + esi + 0x20], al
movzx eax, al
and eax, 0x800000ff
jns 0x4e00f4
dec eax
or eax, 0xffffff00
inc eax
movzx edx, byte [esp + ecx + 0x20]
add eax, edx
and eax, 0x800000ff
jns 0x4e0109
dec eax
or eax, 0xffffff00
inc eax
movzx eax, ax
movzx edx, byte [esp + eax + 0x20]
xor byte [edi], dl
inc edi
sub ebp, 1
jne 0x4e00a0
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00493eee
add esp, 0x214
ret
Function at 0x4e0140
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
push edi
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + eax]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov cl, bl
shr eax, cl
mov ecx, esi
and ecx, 1
shl ecx, 0x1f
xor eax, edx
shr edx, 1
or ecx, edx
mov edx, dword [0x5eb4ec]
and eax, 1
imul edx, eax
xor edx, ecx
mov ecx, edi
and ecx, 1
shl ecx, 0x1f
shr esi, 1
or ecx, esi
mov esi, dword [0x5eb4f0]
imul esi, eax
xor esi, ecx
mov ecx, ebp
and ecx, 1
shl ecx, 0x1f
shr edi, 1
or ecx, edi
mov edi, dword [0x5eb4f4]
imul edi, eax
xor edi, ecx
mov ecx, dword [0x5eb4f8]
imul ecx, eax
shr ebp, 1
xor ecx, ebp
shl eax, 7
or ecx, eax
inc ebx
mov ebp, ecx
cmp ebx, 8
jb 0x4e0165
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x203
jb 0x4e0153
mov eax, dword [esp + 0x24]
xor esi, 0x348393d2
not esi
mov ecx, esi
mov esi, dword [esp + 0x20]
xor edx, 0xad6273b1
xor edi, 0xe6ebed3c
xor ebp, 0xc8
sub esi, eax
not edi
not ebp
mov dword [esp + 0x14], esi
not edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], eax
mov esi, 0x203
jmp 0x4e0230
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov bl, byte [edi + ebx]
mov edi, dword [esp + 0x24]
mov byte [edi], bl
inc edi
sub esi, 1
mov dword [esp + 0x24], edi
jne 0x4e0230
mov ebx, edx
mov byte [eax + 0x203], dl
shr ebx, 8
mov byte [eax + 0x204], bl
mov ebx, edx
shr edx, 0x18
mov byte [eax + 0x206], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 0x208], dl
mov edx, ecx
mov byte [eax + 0x207], cl
shr edx, 0x10
shr ecx, 0x18
mov byte [eax + 0x20a], cl
mov ecx, dword [esp + 0x10]
mov byte [eax + 0x209], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 0x20c], dl
mov edx, ecx
shr ebx, 0x10
pop edi
mov byte [eax + 0x20b], cl
shr edx, 0x10
shr ecx, 0x18
pop esi
mov byte [eax + 0x20e], cl
mov cl, byte [esp + 0x10]
pop ebp
mov byte [eax + 0x205], bl
mov byte [eax + 0x20d], dl
mov byte [eax + 0x20f], cl
pop ebx
add esp, 0xc
ret

Function at 0x4e4ee0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 8]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.00493420
add esp, 0xc
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], 0x67452301
mov dword [esi + 0x54], 0xefcdab89
mov dword [esi + 0x58], 0x98badcfe
mov dword [esi + 0x5c], 0x10325476
mov dword [esi + 4], 0
mov eax, esi
pop esi
ret
Function at 0x510250
Capabilities:
Get disk information

Disassembly:
sub esp, 0x254
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [0x5eb500], 0
push ebx
mov ebx, dword [esp + 0x264]
push ebp
mov ebp, dword [esp + 0x26c]
push edi
mov edi, dword [esp + 0x268]
jne 0x5102a8
call fcn.00510160
test al, al
jne 0x5102a8
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00493eee
add esp, 0x254
ret
movzx eax, word [esp + 0x264]
push esi
push eax
lea ecx, [esp + 0x5c]
push str._c:_
push ecx
call fcn.00495368
add esp, 0xc
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
xor eax, eax
push 4
lea edx, [esp + 0x5c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0x18]
add ecx, 0xb
push eax
mov esi, ecx
call fcn.004933c9
push 0x14
lea ecx, [esp + 0x40]
push edi
push ecx
call fcn.004933c9
push 0xc
lea edx, [esp + 0x34]
push ebx
push edx
call fcn.004933c9
add esp, 0x24
push ebp
push 0
push 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
call dword [0x5eb500]
mov ecx, dword [esp + 0x260]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00493eee
add esp, 0x254
ret
Function at 0x51b410
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x579df8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00419190
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x51b470
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.005171c0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00419190
cmp dword [esp + 0x28], 8
jb 0x51b4bd
mov eax, dword [esp + 0x14]
push eax
call fcn.00450c56
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x51bf70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57a129
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
mov edi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov eax, 7
mov ecx, 1
xor edx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esp + 0x3c], ecx
mov word [esi + 4], dx
sub esp, 0x1c
mov dword [esp + 0x28], ecx
mov ecx, esp
mov dword [esp + 0x30], esp
mov dword [ecx + 0x18], eax
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], edx
push eax
lea edx, [esp + 0x6c]
push edx
mov word [ecx + 4], ax
call fcn.00419190
mov ecx, edi
call fcn.00519710
mov edi, 8
test eax, eax
je 0x51c02b
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00519880
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [esp + 0x48], 2
call fcn.00419190
cmp dword [esp + 0x30], edi
jb 0x51c02b
mov edx, dword [esp + 0x1c]
push edx
call fcn.00450c56
add esp, 4
cmp dword [esp + 0x60], edi
jb 0x51c03e
mov eax, dword [esp + 0x4c]
push eax
call fcn.00450c56
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret 0x20
Function at 0x527cd0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57b805
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x24], ebx
call fcn.0045e1b2
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x527d1d
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x24], 1
lea ebp, [esi + 4]
call fcn.0045e1b2
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x527d4d
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
push ecx
mov byte [esp + 0x28], 2
mov dword [edi], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x527d8e
push ebx
push 0x581258
mov ecx, esi
call fcn.00407240
mov dword [edi], ebx
jmp 0x527e3e
push 1
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
call fcn.00473d97
push 0x592da4
push eax
call fcn.00473bf2
mov bl, al
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x527dce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x527e30
push 1
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x34]
call fcn.00473d97
push 0x5aa098
push eax
call fcn.0047196b
mov bl, al
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x527e12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x592da4
lea ecx, [esp + 0x30]
test bl, bl
je 0x527e2b
push 0x5aa098
call fcn.004186f0
jmp 0x527e30
call fcn.0041f1f0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0041a0d0
xor ebx, ebx
push 3
push 0x5881f4
mov ecx, ebp
call fcn.00407240
push 0x20
mov dword [esi + 8], 1
mov dword [esi + 0x10], ebx
call fcn.00450c27
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 3
cmp eax, ebx
je 0x527e76
mov ecx, eax
call fcn.004054f0
jmp 0x527e78
xor eax, eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esi + 0xc], ebx
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x527ea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x530ce0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x80]
or ebp, 0xffffffff
cmp eax, ebp
je 0x530d30
push edi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x530d29
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x530d26
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call ebx
mov dword [esi + 0x80], ebp
pop edi
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x530d5a
mov ecx, dword [eax + 0x2c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x530d53
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0x7c], 0
mov eax, dword [esi + 0x58]
cmp eax, ebp
je 0x530d67
push eax
call ebx
mov dword [esi + 0x58], ebp
mov eax, dword [esi + 0x64]
cmp eax, ebp
je 0x530d74
push eax
call ebx
mov dword [esi + 0x64], ebp
mov eax, dword [esi + 0x5c]
cmp eax, ebp
je 0x530d81
push eax
call ebx
mov dword [esi + 0x5c], ebp
mov eax, dword [esi + 0x60]
cmp eax, ebp
je 0x530d8e
push eax
call ebx
mov dword [esi + 0x60], ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x530e20
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp byte [esi + 0x70], 0
push edi
je 0x530e7d
mov eax, dword [esi + 0x68]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push eax
push 0xfffffffffffffff6
call edi
test eax, eax
jne 0x530e56
push 0x5cab48
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], str.Re_redirecting_Stdin_failed_n
call fcn.004943fb
mov edx, dword [esi + 0x6c]
push edx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x530fe3
push 0x5cab48
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], str.Re_redirecting_Stdout_failed_n
call fcn.004943fb
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0
call ebp
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esi + 0x64]
push edi
lea edx, [esp + 0x18]
push edx
mov dword [esi + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x530ed4
push 0x5cab48
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.Stdout_pipe_creation_failed_n
call fcn.004943fb
mov ecx, dword [edi]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x530efa
push 0x5cab48
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], str.Redirecting_STDOUT_failed_n
call fcn.004943fb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea eax, [esi + 0x60]
push eax
call ebx
mov ecx, dword [esp + 0x20]
push eax
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x530f37
push 0x5cab48
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], str.DuplicateHandle_failed_n
call fcn.004943fb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffff6
call ebp
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
lea edi, [esi + 0x58]
push edi
mov dword [esi + 0x68], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x530f7a
push 0x5cab48
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], str.Stdin_pipe_creation_failed_n
call fcn.004943fb
mov ecx, dword [edi]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
jne 0x530fa0
push 0x5cab48
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], str.Redirecting_Stdin_failed_n
call fcn.004943fb
push 2
push 0
push 0
add esi, 0x5c
push esi
call ebx
push eax
mov eax, dword [esp + 0x28]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x530fd6
push 0x5cab48
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], str.DuplicateHandle_failed_n
call fcn.004943fb
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x18
ret
Function at 0x5312e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2004
call fcn.004946e0
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x2000], eax
push esi
mov esi, ecx
mov edx, dword [esi + 0x78]
mov ecx, dword [esi + 0x58]
xor eax, eax
push edi
mov word [esi + 0x44], ax
mov eax, dword [esi + 0x64]
push edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea eax, [esp + 0xc]
push 0x1000
push eax
mov dword [esi + 0x40], 0x101
mov dword [esi + 0x4c], ecx
call fcn.0049650a
add esp, 0xc
lea ecx, [esi + 4]
push ecx
lea edx, [esi + 0x14]
push edx
push 0
push 0
push 0x10
push 1
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x531360
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x80], ecx
jmp 0x531372
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [esp + 0x2008]
test edi, edi
pop edi
setne al
pop esi
xor ecx, esp
call fcn.00493eee
add esp, 0x2004
ret

Function at 0x533380
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edx, 0xffffffff
cmp eax, edx
jne 0x5333b2
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5333af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
ret
test al, 0x10
mov eax, dword [esp + 4]
je 0x5333d9
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5333d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5333f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
ret
Function at 0x10008ee0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.10080fd0
mov eax, dword [0x100b800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
lea eax, [ebp - 0x108]
xor esi, esi
push str..PhysicalDrive_d
push eax
call fcn.100097b0
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10009103
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37bc], esi
push esi
push eax
mov dword [ebp - 0x37c0], esi
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37c4], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100090f6
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008d50
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008d50
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008d50
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.10008d50
add esp, 0x20
cmp byte [0x100baef8], 0
jne 0x100090b9
movsx eax, byte [ebp - 0x4f0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x10009032
movsx eax, byte [ebp - 0x4dd]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x100090b9
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100baaf7], al
test al, al
jne 0x10009040
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100ba2f7], al
test al, al
jne 0x10009060
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100baef7], al
test al, al
jne 0x10009080
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100ba6f7], al
test al, al
jne 0x100090a0
mov esi, 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x100090fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1007fc39
mov esp, ebp
pop ebp
ret