joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4201de
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x180
mov eax, 0x44145c
call fcn.0043c542
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.0041f81e
call fcn.00411339
push eax
lea ecx, [ebp - 0x54]
call fcn.00410735
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0041133f
mov ecx, eax
call fcn.004101d4
test al, al
je 0x42031a
push edi
lea ecx, [ebp - 0x54]
call fcn.00410226
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x54]
call fcn.004114d9
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18c], eax
push esi
cmp eax, 0xffffffff
jne 0x420276
push str.Error_opening_file
mov ecx, ebx
call fcn.0041f9dd
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00410139
mov al, bl
call fcn.0043c58c
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x42028b
push esi
push str.File_is_empty
jmp 0x420257
cmp edi, 0x400000
jbe 0x42029b
push esi
push str.File_too_large
jmp 0x420257
push edi
mov dword [ebp - 0x188], esi
call fcn.0040722d
pop ecx
push esi
lea ecx, [ebp - 0x188]
push ecx
push edi
push eax
push dword [ebp - 0x18c]
mov dword [ebp - 0x184], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x188], edi
je 0x4202f6
push dword [ebp - 0x184]
call fcn.0043c0ea
pop ecx
mov ecx, ebx
call fcn.0041f81e
push esi
push str.Could_not_read_file
jmp 0x420257
push dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x184]
call fcn.0042002c
push dword [ebp - 0x184]
mov bl, al
call fcn.0043c0ea
pop ecx
jmp 0x420260
call fcn.0041133f
push eax
lea ecx, [ebp - 0x54]
call fcn.00410209
call fcn.00411345
test al, al
je 0x420338
call fcn.0041134b
jmp 0x42034c
push 2
push esi
lea ecx, [ebp - 0x54]
call fcn.004114d9
push eax
call fcn.0040674c
add esp, 0xc
mov dword [ebp - 0x184], eax
cmp eax, esi
jne 0x420361
push esi
push str.Error_opening_zip_file
jmp 0x420257
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x18c]
push eax
push 1
push edi
push dword [ebp - 0x184]
call fcn.004067d4
add esp, 0x14
test eax, eax
je 0x42038f
push esi
push str.Could_not_find_ziped_file
jmp 0x420257
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x188], eax
cmp eax, esi
je 0x420283
cmp eax, 0x400000
ja 0x420293
push eax
call fcn.0040722d
push 3
push dword [ebp - 0x188]
mov edi, eax
push edi
push dword [ebp - 0x18c]
push dword [ebp - 0x184]
call fcn.0040680e
add esp, 0x18
cmp eax, esi
je 0x420402
cmp eax, 0x600
je 0x420402
push edi
call fcn.0043c0ea
pop ecx
call fcn.00411345
test al, al
jne 0x4203f7
push dword [ebp - 0x184]
call fcn.00406846
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x420257
call fcn.00411345
test al, al
jne 0x420417
push dword [ebp - 0x184]
call fcn.00406846
pop ecx
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp - 0x188]
push edi
call fcn.0042002c
push edi
jmp 0x42030d
Function at 0x42710e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x427133
cmp eax, edi
jge 0x42712b
mov eax, esi
call fcn.00426acc
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x427160
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x427140
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x42717f
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x42716d
xor eax, eax
jmp 0x427175
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x427163
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4271b1
mov eax, str.zlib_corrupt
call fcn.004243a4
jmp 0x4271ec
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4271c1
mov eax, str.read_past_buffer
jmp 0x4271aa
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4271d6
mov ecx, edi
call fcn.00426b02
test eax, eax
je 0x4271ec
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0040cbf0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x434674
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x452024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x4346e4
cmp dword [esi + 0x10], ebx
je 0x4346e4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea edi, [eax + 1]
mov eax, edi
call fcn.0040d5a0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x4346e4
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x138
call fcn.0041040e
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00412874
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004068c3
leave
ret 0x10
Function at 0x48f607
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0xa8
lea ebp, [esp - 4]
mov eax, dword [0x56a078]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push 8
mov eax, 0x50cc5f
call fcn.004d0cf3
mov esi, edx
mov edi, ecx
mov dword [ebp + 0x9c], str.http:__www.google.com
mov dword [ebp + 0xa0], 0x534480
mov dword [ebp + 0xa4], str.http:__www.example.com
call fcn.00406cde
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push str.tin9999.tmp
call fcn.004093f6
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00470b60
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push esi
push edi
lea ecx, [ebp]
call fcn.004976c1
xor ebx, ebx
mov dword [ebp + 0x78], ebx
mov edi, ebx
push dword [ebp + edi*4 + 0x9c]
lea ecx, [ebp - 0x10]
call fcn.004093f6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00497c34
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406dd3
test esi, esi
je 0x48f6d3
inc edi
cmp edi, 3
jl 0x48f697
jmp 0x48f6d5
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp]
call fcn.0047cc2a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00406dd3
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.004d014c
lea esp, [ebp + 0xac]
pop ebp
ret
Function at 0x494301
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x50d1b5
call fcn.004d0cf3
mov edi, ecx
cmp dword [edi], 0
jne 0x49431b
xor al, al
jmp 0x4943b6
call fcn.00406cde
push eax
lea ecx, [ebp - 0x18]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x18]
push 0x534878
push eax
call fcn.004575ca
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push eax
push esi
push dword [edi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
jne 0x49439d
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x49439d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x494392
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.004944ca
mov bl, al
cmp dword [ebp - 0x14], 0
je 0x49439d
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], 0
je 0x4943a8
push dword [ebp - 0x10]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
mov al, bl
call fcn.004d0cbc
ret 8

Function at 0x4947c6
Capabilities:
Get disk size

Disassembly:
sub esp, 0x424
mov eax, dword [0x56a078]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
test ecx, ecx
jne 0x4947e9
xor al, al
jmp 0x4948ec
movzx edx, word [ecx]
lea esi, [esp + 0x28]
push 2
pop ebp
test dx, dx
je 0x49480c
mov eax, esi
sub ecx, eax
mov word [esi], dx
add esi, ebp
movzx eax, word [ecx + esi]
mov edx, eax
test ax, ax
jne 0x4947fc
xor eax, eax
xor cl, cl
mov word [esi], ax
sub esi, ebp
push 0x5c
xor al, al
pop edx
mov byte [esp + 0x17], al
cmp word [esp + 0x28], dx
jne 0x49483c
cmp word [esp + 0x2a], dx
jne 0x49483c
xor ebx, ebx
inc ebx
mov byte [esp + 0x17], bl
cmp word [esi], dx
je 0x494848
mov cl, bl
jmp 0x494848
xor ebx, ebx
movzx eax, al
inc ebx
cmp word [esi], dx
cmove eax, ebx
lea edi, [esp + 0x2c]
cmp word [esp + 0x2c], dx
je 0x49485a
add edi, ebp
cmp word [edi], dx
jne 0x494853
test cl, cl
jne 0x494864
test al, al
je 0x494872
jmp 0x49486b
add esi, ebp
mov word [esi], dx
add esi, ebp
xor eax, eax
mov word [esi], ax
sub esi, ebp
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
lea eax, [esp + 0x20]
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4948cc
push 0x5c
pop ecx
cmp word [esi], cx
jne 0x4948a6
jmp 0x4948a4
cmp word [esi], cx
je 0x4948ae
sub esi, ebp
lea eax, [esp + 0x28]
cmp esi, eax
ja 0x49489f
cmp esi, edi
jb 0x4947e2
cmp byte [esp + 0x17], 0
jne 0x4948c1
cmp esi, edi
jne 0x4948c3
add esi, ebp
xor eax, eax
mov word [esi], ax
sub esi, ebp
jmp 0x49487b
mov eax, dword [esp + 0x43c]
cmp eax, dword [esp + 0x1c]
ja 0x4948e8
jb 0x4948ea
mov eax, dword [esp + 0x438]
cmp eax, dword [esp + 0x18]
jb 0x4948ea
xor ebx, ebx
mov al, bl
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d014c
add esp, 0x424
ret
Function at 0x49492f
Capabilities:
Create pipe

Disassembly:
push 0
mov eax, 0x50a759
call fcn.004d0cf3
mov edi, ecx
cmp byte [edi], 0
je 0x494949
mov al, 1
jmp 0x4949d8
mov al, byte [ebp + 8]
lea ecx, [edi + 4]
push dword [ebp + 0xc]
mov byte [edi], 1
mov byte [edi + 1], al
call fcn.0044369a
push 0x5348f8
lea ecx, [ebp + 8]
call fcn.004093f6
mov eax, dword [edi + 4]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
push eax
call fcn.004072c9
xor esi, esi
cmp byte [edi + 1], 0
je 0x4949a9
push esi
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp byte [edi + 1], 0
mov dword [edi + 8], eax
jne 0x4949c0
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00406dd3
mov al, bl
call fcn.004d0cbc
ret 8

Function at 0x494c5c
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push 8
mov eax, 0x50a9b7
call fcn.004d0cf3
mov esi, ecx
cmp byte [ebp + 0x10], 0
jne 0x494c98
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x494c98
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
add eax, 1
jne 0x494c98
cmp byte [esi + 0x11], al
je 0x494cee
push 0
lea eax, [ebp + 0x10]
push eax
push 0x7f90
push dword [esi + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [esi + 0xc]
shr ecx, 1
mov word [edx + ecx*2], di
test eax, eax
je 0x494cee
cmp dword [ebp + 0x10], edi
je 0x494cee
push dword [esi + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004093f6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004073ac
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406dd3
jmp 0x494cf6
mov ecx, dword [ebp + 8]
call fcn.00406df5
mov eax, dword [ebp + 8]
call fcn.004d0cbc
ret 0xc

Function at 0x494d01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x494d17
mov ecx, dword [ebp + 8]
call fcn.00406df5
jmp 0x494d45
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x494d0d
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00494c5c
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret 0xc
Function at 0x4a32cf
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4a32e3
xor al, al
jmp 0x4a3354
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea ebp, [eax + eax]
lea eax, [ebp + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [esi], edi
test edi, edi
jne 0x4a330f
xor al, al
jmp 0x4a3352
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x4a3321
xor al, al
jmp 0x4a3351
mov eax, dword [esp + 0x14]
push ebp
push dword [eax]
push ebx
call fcn.004d1470
add esp, 0xc
xor eax, eax
mov word [ebx + ebp], ax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop ebx
pop edi
pop ebp
pop esi
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50eba2
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 5
call fcn.004a5a3e
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
xor ebx, ebx
cmp dword [edi + 0x48], ebx
je 0x4a59c4
cmp dword [edi + 0x4c], ebx
je 0x4a59c4
push dword [edi + 0x48]
call esi
mov dword [edi + 0x48], ebx
mov byte [ebp - 4], 4
lea ecx, [edi + 0x58]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.0040b927
mov byte [ebp - 4], 3
cmp dword [edi + 0x50], 0
je 0x4a59e6
push dword [edi + 0x50]
call esi
mov byte [ebp - 4], 2
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc]
call fcn.004a7053
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.004a7162
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
call fcn.00465440
mov byte [ebp - 4], bl
lea ecx, [edi + 0x18]
call fcn.00408e33
or dword [ebp - 4], 0xffffffff
mov ecx, edi
push ebx
push 1
call fcn.00404a7e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5dcc
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x50ecb4
call fcn.004d0cf3
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4a5df5
mov eax, dword [eax]
push ecx
push 0x80
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x20]
call fcn.00422d68
push ebx
push esi
call dword [sym.imp.msi.dll_MsiRecordGetStringW]
push 0xc800
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], eax
xor edi, edi
call fcn.0046eeb0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc800
push eax
push dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiRecordSetStringA]
test eax, eax
jne 0x4a5e6d
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jne 0x4a5e36
cmp dword [ebp + 8], edi
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0046ef50
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a5e92
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004d0cbc
ret

Function at 0x4acb38
Capabilities:
Create pipe

Disassembly:
push 0x1c
mov eax, 0x4fa508
call fcn.004d0d27
mov esi, ecx
cmp byte [esi + 0x1c], 0
mov ecx, dword [ebp + 0xc]
je 0x4acb56
mov al, 1
jmp 0x4acbe7
mov al, byte [ebp + 8]
push ecx
lea ecx, [esi + 0x20]
mov byte [esi + 0x1d], al
call fcn.0040424c
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004ad07a
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x4acbaa
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
mov ecx, 0x400
push 0x1388
push ecx
push ecx
push 0xff
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x38], eax
cmp byte [esi + 0x1d], bl
jne 0x4acbcf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
je 0x4acbd5
mov byte [esi + 0x1c], 1
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00404a7e
mov al, bl
call fcn.004d0cd1
ret 8
Function at 0x4ca79f
Capabilities:
Delete directory

Disassembly:
push 0xc
mov eax, 0x516b4c
call fcn.004d0cf3
mov edi, edx
mov esi, ecx
call fcn.00406cde
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b09
mov dword [ebp - 4], 1
mov eax, dword [edi]
push 0x5c
pop ebx
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4ca80e
dec eax
mov ecx, edi
push eax
call fcn.0046e610
cmp ax, bx
jne 0x4ca80e
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004450c5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push eax
call fcn.0044369a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
jmp 0x4ca817
push edi
lea ecx, [ebp - 0x10]
call fcn.0044369a
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, dword [ecx - 0xc]
jge 0x4ca875
push ebx
push ecx
call fcn.004d3931
pop ecx
pop ecx
test eax, eax
jne 0x4ca836
or eax, 0xffffffff
jmp 0x4ca83a
sub eax, dword [esi]
sar eax, 1
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004450c5
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4ca866
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.004ca79f
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
call fcn.004d0cbc
ret

Function at 0x4ca88a
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x516b8f
call fcn.004d0cf3
mov edi, edx
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4ca91d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00406cde
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b09
mov dword [ebp - 4], 1
push 0x5c
push dword [esi]
call fcn.004d3931
pop ecx
pop ecx
test eax, eax
je 0x4ca8fe
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4ca8fe
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004450c5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push eax
call fcn.0044369a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x4ca911
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.004ca79f
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
call fcn.004d0cbc
ret

Function at 0x4cbaf0
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4cec48
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x516f7e
call fcn.004d0d27
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4ced65
cmp byte [ebx + 0x3e], 0
je 0x4ced65
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.004d0c85
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x4cec94
xor al, al
jmp 0x4ced67
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0044f120
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4cecc4
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.004d0c85
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x4cecf9
sub eax, 1
je 0x4cecfd
dec eax
sub eax, 1
je 0x4ced53
xor bl, bl
jmp 0x4ced55
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x4ced0d
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x4ced35
cmp eax, 0x10
jae 0x4ced1c
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004e1969
add esp, 0x10
cmp esi, eax
jne 0x4cecf5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x4ced53
test esi, esi
jne 0x4cecb8
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004042d5
jmp 0x4cecb2
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004046bb
mov al, bl
jmp 0x4ced67
mov al, 1
call fcn.004d0cd1
ret

Function at 0x4eb36b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004eb02e

Function at 0x4eb376
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004eb1af