joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54c25a
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x6b7a1a
call fcn.00664608
sub esp, 0x3c
push esi
push dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.004583c1
test al, al
je 0x54c3e4
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
push eax
mov ecx, esi
call fcn.0054e960
mov ebx, dword [ebp - 0x10]
lea edx, [esi + 0x84]
cmp ebx, dword [edx + 4]
je 0x54c2b0
xor ecx, ecx
mov eax, dword [ebx + ecx*4]
cmp eax, dword [edi + ecx*4]
jne 0x54c2b0
inc ecx
cmp ecx, 5
jne 0x54c29e
test ebx, ebx
jne 0x54c326
cmp dword [esi + 0xdc], 0x3d0900
jg 0x54c3e2
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
push ebx
lea eax, [ebp - 0x10]
mov ecx, edx
push eax
call fcn.0054a4eb
or dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x10]
test edx, edx
je 0x54c30b
mov eax, dword [ebp - 0x2c]
sub eax, edx
and eax, 0xfffffff0
push eax
push edx
call fcn.004276a2
mov esi, dword [ebp + 8]
mov edi, ebx
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x80
call fcn.00676855
mov esi, dword [ebp - 0x14]
pop ecx
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x54c332
mov eax, 0x753458
push 0x80
push eax
push dword [ebx + 0x20]
call fcn.00673c70
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov ecx, dword [ebx + 0x14]
sub eax, ecx
and dword [ebp + 8], 0
cmp eax, 0x10
jb 0x54c39d
xor edi, edi
mov dword [ebp + 0xc], edi
add edi, ecx
lea ecx, [ebp - 0x38]
call fcn.004bff34
push 6
push edi
lea ecx, [ebp - 0x38]
call fcn.004c00a4
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push eax
call fcn.004bff68
test al, al
jne 0x54c3f3
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0x14]
inc edx
mov edi, dword [ebp + 0xc]
sub eax, ecx
add edi, 0x10
sar eax, 4
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
cmp edx, eax
jne 0x54c359
cmp dword [esi + 0xdc], 0x3d0900
jg 0x54c3e2
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.004bfff2
push 0
call fcn.006777a7
mov dword [ebp - 0x1c], eax
mov al, byte [ebp - 0x1e]
and al, 0xfe
mov dword [ebp - 0x18], edx
or al, byte [ebp + 0x14]
pop ecx
mov byte [ebp - 0x1e], al
lea ecx, [ebx + 0x14]
lea eax, [ebp - 0x24]
push eax
call fcn.0054a61a
inc dword [esi + 0xdc]
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x10
push 0
call fcn.006777a7
mov dword [edi + 8], eax
mov al, byte [edi + 6]
and al, 0xfe
mov dword [edi + 0xc], edx
or al, byte [ebp + 0x14]
pop ecx
mov byte [edi + 6], al
jmp 0x54c3e2

Function at 0x54ccc7
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor ecx, ecx
push esi
mov esi, dword [esp + 8]
mov eax, ecx
xor eax, 3
mov al, byte [eax + edx]
mov byte [ecx + esi], al
inc ecx
cmp ecx, 0x14
jne 0x54ccd2
pop esi
ret 8
Function at 0x553df7
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
add eax, 2
push esi
mov esi, dword [esp + 0x18]
mov ebx, eax
push edi
mov edi, ebp
push 0x1f
sub edi, esi
pop edx
mov cl, byte [edi + esi]
mov al, byte [esi]
and cl, 3
shl cl, 2
and al, 3
xor cl, al
mov byte [ebx - 2], cl
mov ecx, dword [edi + esi]
mov eax, dword [esi]
shr ecx, 2
and cl, 3
shr eax, 2
shl cl, 2
and al, 3
xor cl, al
mov byte [ebx - 1], cl
mov ecx, dword [edi + esi]
mov eax, dword [esi]
shr ecx, 4
and cl, 3
shr eax, 4
shl cl, 2
and al, 3
xor cl, al
mov byte [ebx], cl
lea ebx, [ebx + 4]
mov ecx, dword [edi + esi]
mov eax, dword [esi]
lea esi, [esi + 4]
shr ecx, 6
and cl, 3
shr eax, 6
shl cl, 2
and al, 3
xor cl, al
mov byte [ebx - 3], cl
sub edx, 1
jne 0x553e14
mov cl, byte [ebp + 0x7c]
mov edx, dword [esp + 0x1c]
and cl, 3
mov ebx, dword [esp + 0x18]
shl cl, 2
pop edi
mov al, byte [edx + 0x7c]
and al, 3
xor cl, al
mov byte [ebx + 0x7c], cl
mov ecx, dword [ebp + 0x7c]
mov eax, dword [edx + 0x7c]
shr ecx, 2
and cl, 3
shr eax, 2
shl cl, 2
and al, 3
xor cl, al
mov byte [ebx + 0x7d], cl
mov ecx, dword [ebp + 0x7c]
mov eax, dword [edx + 0x7c]
shr ecx, 4
and cl, 3
shr eax, 4
shl cl, 2
and al, 3
pop esi
xor cl, al
pop ebp
mov byte [ebx + 0x7e], cl
pop ebx
pop ecx
ret 0xc

Function at 0x55402d
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
lea ebx, [edx + 2]
push edi
push 0xa
pop ebp
lea edi, [esi + 4]
mov al, byte [edi - 4]
and al, 7
mov byte [ebx - 2], al
mov eax, dword [edi - 4]
shr eax, 3
and al, 7
mov byte [ebx - 1], al
mov ecx, dword [edi - 4]
shr ecx, 6
and cl, 7
mov byte [ebx], cl
mov al, byte [edi]
and al, 1
shl al, 2
xor al, cl
mov byte [ebx], al
lea ebx, [ebx + 8]
mov eax, dword [edi]
shr eax, 1
and al, 7
mov byte [ebx - 7], al
mov eax, dword [edi]
shr eax, 4
and al, 7
mov byte [ebx - 6], al
mov ecx, dword [edi]
lea edi, [edi + 0xc]
shr ecx, 7
and cl, 7
mov byte [ebx - 5], cl
mov al, byte [edi - 8]
and al, 3
add al, al
xor al, cl
mov byte [ebx - 5], al
mov eax, dword [edi - 8]
shr eax, 2
and al, 7
mov byte [ebx - 4], al
mov eax, dword [edi - 8]
shr eax, 5
and al, 7
mov byte [ebx - 3], al
sub ebp, 1
jne 0x554042
mov al, byte [esi + 0x78]
and al, 7
mov byte [edx + 0x50], al
mov eax, dword [esi + 0x78]
shr eax, 3
and al, 7
mov byte [edx + 0x51], al
mov ecx, dword [esi + 0x78]
shr ecx, 6
and cl, 7
mov byte [edx + 0x52], cl
mov al, byte [esi + 0x7c]
and al, 1
shl al, 2
xor al, cl
mov byte [edx + 0x52], al
mov eax, dword [esi + 0x7c]
shr eax, 1
and al, 7
mov byte [edx + 0x53], al
mov eax, dword [esi + 0x7c]
shr eax, 4
and al, 7
xor ebx, ebx
mov byte [edx + 0x54], al
mov esi, ebx
mov cl, byte [esi + edx]
add cl, bl
mov al, cl
and cl, 7
sar al, 3
mov bl, cl
add byte [esi + edx + 1], al
shr bl, 2
mov al, bl
shl al, 3
sub cl, al
mov byte [esi + edx], cl
inc esi
cmp esi, 0x54
jl 0x5540fb
add byte [edx + 0x54], bl
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x55412b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
xor ecx, ecx
mov edx, ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebx, 0x6f6630
mov ebp, ecx
sub ebx, edi
add edx, dword [ebx + edi]
mov esi, dword [edi]
mov al, byte [edi]
sub esi, edx
sub al, dl
shr esi, 0x1f
mov byte [esp + ebp + 0x10], al
lea edi, [edi + 4]
inc ebp
mov edx, esi
cmp ebp, 0x20
jl 0x554143
mov edx, dword [esp + 0x34]
dec esi
movzx eax, byte [esp + ecx + 0x10]
xor eax, dword [edx + ecx*4]
and eax, esi
xor dword [edx + ecx*4], eax
inc ecx
cmp ecx, 0x20
jl 0x554165
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x55fd20
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [esp + 0xc]
mov ecx, dword [esp + 4]
neg edx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x20
sub esi, ecx
pop edi
mov eax, dword [esi + ecx]
xor eax, dword [ecx]
and eax, edx
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edi, 1
jne 0x55fd36
pop edi
pop esi
ret 0xc

Function at 0x55fd4c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x1e
pop edi
mov ebx, dword [esi + 0x7c]
mov ecx, edi
mov edx, ebx
xor edx, 0x7f
dec edx
shr edx, 0x1f
mov eax, dword [esi + ecx*4]
xor eax, 0xff
dec eax
shr eax, 0x1f
and edx, eax
dec ecx
test ecx, ecx
jg 0x55fd64
mov ecx, 0xec
sub ecx, dword [esi]
shr ecx, 0x1f
and ecx, edx
neg ecx
mov eax, ecx
and eax, 0x7f
sub ebx, eax
movzx eax, cl
mov dword [esi + 0x7c], ebx
sub dword [esi + edi*4], eax
dec edi
test edi, edi
jg 0x55fd92
and ecx, 0xed
sub dword [esi], ecx
pop edi
pop esi
pop ebx
ret 4

Function at 0x560663
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, esi
mov dword [esp + 0x10], eax
test esi, esi
je 0x5606fa
push ebx
push edi
dec esi
cmp dword [esp + 0x28], 0
mov dword [esp + 0x24], esi
je 0x56068e
call dword [esp + 0x28]
mov esi, dword [esp + 0x10]
xor ebx, ebx
push 8
pop eax
dec eax
mov dword [esp + 0x14], eax
call fcn.0067fd26
mov edi, eax
jmp 0x5606a8
xor ebp, 1
call fcn.0067fd26
cmp edi, eax
je 0x5606a5
call fcn.0067fd26
mov edi, eax
call fcn.0067fd26
cmp edi, eax
jne 0x5606d1
xor esi, 1
call fcn.0067fd26
cmp edi, eax
je 0x5606c1
mov dword [esp + 0x10], esi
cmp ebp, esi
je 0x56069c
mov eax, dword [esp + 0x14]
add ebx, ebx
or ebx, ebp
test eax, eax
jne 0x560697
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov byte [eax], bl
inc eax
mov dword [esp + 0x20], eax
test esi, esi
jne 0x56067e
mov eax, dword [esp + 0x18]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 0xc

Function at 0x5607d4
Capabilities:
Create thread

Disassembly:
call 0x5607d4
call 0x5607d4
call 0x5607d4
call 0x5607d4
call 0x5607d4
call 0x5607d4
call 0x5607d4
call 0x5607d4
call 0x5607d4
call 0x5607d4
jmp 0x5607d4
push 0
push 0x400
mov dword [0x7f3f50], 0
push 0x560787
mov dword [0x7f3f44], 1
call fcn.0067fede
add esp, 0xc
push 0x10
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
mov dword [0x7f3f44], 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [0x7f3f50]
mov ecx, dword [0x7f3f50]
shr eax, 3
xor ecx, eax
mov eax, dword [0x7f3f4c]
shr ecx, 3
xor eax, ecx
xor dword [0x7f3f50], eax
and dword [0x7f3f50], 7
mov eax, dword [0x7f3f50]
mov dword [0x7f3f4c], eax
mov eax, dword [0x7f3f48]
mov ecx, dword [0x7f3f50]
shl eax, 3
xor ecx, eax
mov dword [0x7f3f48], ecx
mov eax, dword [0x7f3f48]
ret

Function at 0x562580
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
pop ecx
ret
Function at 0x5712c4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5712d8
test al, 0x10
jne 0x5712e9
xor ebx, ebx
push ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x5712eb
mov bl, 1
mov al, bl
pop ebx
ret 4

Function at 0x571363
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x10], esi
jne 0x57138b
lea eax, [edi + 0x14]
push eax
push esi
push edi
push 0x57149f
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x57138b
inc esi
jmp 0x5713a6
push dword [esp + 0xc]
mov ecx, edi
call fcn.0056ed7e
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
test eax, eax
jne 0x5713a6
push 2
pop esi
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x5713ad
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x10], esi
jne 0x5713d5
lea eax, [edi + 0x14]
push eax
push esi
push edi
push 0x5714b3
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x5713d5
inc esi
jmp 0x5713f0
push dword [esp + 0xc]
mov ecx, edi
call fcn.0056ed7e
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
test eax, eax
jne 0x5713f0
push 2
pop esi
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x5775a4
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x6ba4d7
call fcn.00664608
movzx eax, word [ebp + 8]
sub esp, 0xd8
push ebx
push esi
push 0xa
push eax
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5775e1
push 0x2d
push 0x713b4c
mov ecx, dword [ebp + 0x10]
call fcn.00410407
jmp 0x577720
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x5775fa
push 0x2d
push 0x713b7c
jmp 0x5775d4
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
jne 0x57761e
mov ecx, dword [ebp + 0x10]
push 0x24
push 0x713bac
call fcn.00410407
jmp 0x57771f
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x577638
push 0x25
push 0x713bd4
jmp 0x577710
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x577645
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x577693
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x57765a
mov eax, dword [esi]
test eax, eax
je 0x577693
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
je 0x577693
mov ecx, dword [ebp - 0x18]
xor eax, eax
add eax, dword [ebp - 0x14]
adc ecx, 0
cmp eax, dword [ebp + 8]
jne 0x577693
test ecx, ecx
jne 0x577693
mov ecx, dword [ebp + 0x14]
mov bl, 1
push esi
call fcn.00427946
jmp 0x577718
push 0x799c90
call fcn.00579b75
mov bl, al
test bl, bl
je 0x577709
push 1
push 0x40
push 0x22
push esi
lea ecx, [ebp - 0xe4]
call fcn.004478d4
and dword [ebp - 4], 0
cmp dword [ebp - 0x94], 0
je 0x5776ed
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xe4]
push dword [ebp - 0x10]
call fcn.0044d825
lea ecx, [ebp - 0xe4]
call fcn.0044b700
mov ecx, dword [ebp + 0x14]
mov bl, 1
push esi
call fcn.00427946
jmp 0x5776fc
mov ecx, dword [ebp + 0x10]
push 0x3c
push str.Creation_of_destination_file_to_write_unpacked_binary_failed
call fcn.00410407
lea ecx, [ebp - 0xe4]
call fcn.004480e2
jmp 0x577718
push 0x37
push str.Creation_of_destination_path_for_unpacked_binary_failed
mov ecx, dword [ebp + 0x10]
call fcn.00410407
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x57b343
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6ad590
call fcn.00664608
push ecx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.00410794
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00410794
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x30], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x31], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x57b34e
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6ad590
call fcn.00664608
push ecx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.00410794
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00410794
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x30], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x31], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x57c9ef
Capabilities:
Access peb ldr_data
Get ntdll base address
Get system information on windows

Disassembly:
mov eax, 0x6babe0
call fcn.00664608
sub esp, 0x40
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi + 0x28], 0
lea ecx, [esi + 0x30]
mov dword [esi], 0x715474
mov byte [esi + 0x2c], 1
call fcn.0057c9d2
and dword [ebp - 4], 0
lea ecx, [esi + 0x38]
call fcn.0057c9b5
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
mov dword [esi + 0xc], ecx
push eax
lea eax, [ebp - 0x18]
push eax
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.DLL_GetProcessTimes]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x18], eax
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x57cf49
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, eax
and dword [edi + 0x70], 0
and dword [edi + 0x74], 0
cmp dword [eax + 0x14], 0x10
jb 0x57cf65
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
lea edx, [edi + 0x68]
push edx
lea edx, [esp + 0x18]
inc eax
push edx
push eax
push ecx
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
neg eax
sbb esi, esi
inc esi
call ebx
mov ebp, dword [esp + 0x18]
cmp eax, 0x3e5
jne 0x57cfcc
push 0xffffffffffffffff
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x57cfc4
push 1
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0x68]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
neg eax
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
jmp 0x57cfc7
push 3
pop esi
call ebx
mov dword [ebp], eax
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test eax, eax
jne 0x57cfe5
test esi, esi
jne 0x57cfe5
call ebx
push 4
mov dword [ebp], eax
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x57cfee
Capabilities:
Create pipe
Create thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateEventW]
xor eax, eax
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push eax
xor esi, esi
mov dword [ebp], eax
push eax
inc esi
mov edi, ecx
push esi
push eax
call ebx
mov dword [edi + 0x50], eax
test eax, eax
je 0x57d0e5
xor eax, eax
push eax
push eax
push eax
push eax
call ebx
mov dword [edi + 0x64], eax
test eax, eax
je 0x57d0e5
xor eax, eax
push eax
push eax
push eax
push eax
call ebx
mov dword [edi + 0x78], eax
test eax, eax
je 0x57d0e5
cmp byte [edi + 0x1c], 0
lea ebx, [edi + 0x2c]
push 2
pop esi
je 0x57d075
cmp dword [ebx + 0x14], 8
jb 0x57d051
mov ebx, dword [ebx]
push dword [edi + 0x28]
mov eax, 0x2000
push 0
push eax
push eax
push 0xff
push 6
push 0x40080003
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov dword [edi + 0x4c], eax
jmp 0x57d0b9
mov eax, dword [ebp]
cmp eax, esi
jne 0x57d087
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x57d091
mov eax, dword [ebx]
xor ecx, ecx
push ecx
push 0x40000080
push 3
push ecx
push ecx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [edi + 0x4c], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp], eax
cmp eax, esi
je 0x57d07c
cmp dword [edi + 0x4c], 0xffffffff
je 0x57d0e5
lea eax, [edi + 0x44]
push eax
xor eax, eax
push eax
push edi
push 0x57d0f7
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
mov dword [edi + 0x48], esi
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 3
je 0x57d0ee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x57d105
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov eax, 0x6a88cf
call fcn.00664608
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov al, 1
lea ecx, [edi + 0x7c]
mov dword [ebp - 0x20], ecx
xchg byte [ecx], al
xor ebx, ebx
cmp byte [edi + 0x1c], bl
je 0x57d16c
lea eax, [edi + 0x54]
mov dword [edi + 0x5c], ebx
push eax
push dword [edi + 0x4c]
mov dword [edi + 0x60], ebx
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
jne 0x57d16c
cmp eax, 0x217
je 0x57d16c
cmp eax, 0x3e5
jne 0x57d28d
push 0xffffffffffffffff
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x57d28d
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ebx
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], bl
push 0x1001
mov dword [ebp - 4], ebx
call fcn.0066490b
pop ecx
mov ebx, eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x1000
push ebx
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
je 0x57d1c9
cmp eax, 6
je 0x57d1c9
mov eax, dword [ebp - 0x14]
jmp 0x57d1ce
xor eax, eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x57d1fe
mov al, byte [ebx + eax - 1]
mov ecx, ebx
mov byte [ebp - 0xd], al
mov byte [ebx + 0x1000], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57d1e5
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x38]
call fcn.004105af
cmp byte [ebp - 0xd], 0
jne 0x57d19e
push ebx
call fcn.0066464a
cmp dword [ebp - 0x14], 0
pop ecx
je 0x57d258
push dword [edi + 0x24]
lea eax, [ebp - 0x38]
push eax
call dword [edi + 0x20]
mov eax, dword [ebp - 0x24]
push 0
pop ebx
cmp eax, 0x10
jb 0x57d175
mov ecx, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
cmp eax, 0x1000
jb 0x57d248
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004279ae
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
xor ebx, ebx
jmp 0x57d175
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x57d28d
mov ecx, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x1000
jb 0x57d284
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004279ae
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor al, al
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x57f52b
Capabilities:
Create pipe

Disassembly:
mov eax, 0x6aa5f0
call fcn.00664608
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp dword [eax + 0x14], 8
mov esi, ecx
mov dword [ebp - 0x10], ebx
jb 0x57f54c
mov eax, dword [eax]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0xff
push 6
push 0x40080002
push eax
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov dword [esi + 0x88], eax
cmp eax, 0xffffffff
jne 0x57f5e9
push str.creating_send_pipe
mov byte [ebp + 0xc], bl
lea ecx, [ebp - 0x28]
push dword [ebp + 0xc]
mov dword [ebp - 0x28], ebx
push 0x12
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.0041039b
lea eax, [esi + 0xa0]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
push 4
call fcn.0057e389
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x57f5e9
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
cmp eax, 0x1000
jb 0x57f5e0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc