joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6aa4a3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xa3c], ebx
mov dword [ebp - 0xa30], 0x636f6c2e
mov word [ebp - 0xa2c], 0x6b
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x6aa4dc
sub esi, edx
lea eax, [ebp - 0x410]
push esi
push ecx
push eax
call fcn.007390e0
mov eax, dword [ebp - 0xa30]
add esp, 0xc
mov dword [ebp + esi - 0x410], eax
mov ax, word [ebp - 0xa2c]
mov word [ebp + esi - 0x40c], ax
lea eax, [ebp - 0xa28]
push 0x30c
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x6aa58b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0xa30], esi
push eax
call fcn.0061b638
lea eax, [ebp - 0x104]
push eax
push esi
lea eax, [ebp - 0x410]
push eax
push str.Failed_to_convert_path__s_to_wide_string._Error___u_:__s
push 0x38
push str.d:package_cachecasc1.4.58_srcdynamic_shmem_control.win32.cpp
push 4
push str.casc
call fcn.007a784a
xor eax, eax
add esp, 0x28
inc eax
jmp 0x6aa69f
and dword [ebp - 0xa40], 0
lea eax, [ebp - 0xa28]
push edi
xor edi, edi
mov dword [ebp - 0xa44], 0x5f5e100
mov esi, 0x2a05f200
inc edi
push eax
mov dword [ebp - 0xa38], esi
mov dword [ebp - 0xa34], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push 0x4000100
push edi
push eax
push eax
push closesocket
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x6aa69c
xor ecx, ecx
mov ebx, esi
inc ecx
mov dword [ebp - 0xa30], ecx
test ecx, ecx
jl 0x6aa6ad
jg 0x6aa603
test ebx, ebx
je 0x6aa6ad
push 0
push 0x5f5e100
push edi
push esi
call fcn.0064b51f
mov edi, dword [ebp - 0xa30]
lea edx, [ebp - 0xa38]
add esp, 0x10
lea ecx, [ebp - 0xa44]
test al, al
mov esi, ebx
cmove ecx, edx
mov edx, dword [ecx]
sub esi, edx
mov eax, dword [ecx + 4]
sbb edi, eax
mov dword [ebp - 0xa38], esi
xor ebx, ebx
mov dword [ebp - 0xa34], edi
push ebx
push 0xf4240
push eax
push edx
call fcn.00720b60
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x4000100
push 1
push ebx
push ebx
push closesocket
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0xa3c]
mov ebx, esi
mov dword [ebp - 0xa30], edi
mov dword [ecx], eax
mov ecx, edi
cmp eax, 0xffffffff
je 0x6aa5f1
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.007207bc
leave
ret
lea eax, [ebp - 0x410]
push eax
push str.Failed_to_create_lock_file__s_due_to_timeout.
push 0x60
push str.d:package_cachecasc1.4.58_srcdynamic_shmem_control.win32.cpp
push 4
push str.casc
call fcn.007a784a
add esp, 0x18
push 0xb
pop eax
jmp 0x6aa69e
Function at 0x6aa6f0
Capabilities:
Clear file content

Disassembly:
push 0x140
mov eax, 0x7d0242
call fcn.00720838
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x11c]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x12c], eax
call fcn.006ab66b
xor ebx, ebx
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], ebx
call fcn.006ab66b
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 1
call fcn.006b50b7
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 2
push eax
push edi
mov byte [ebp - 0x111], bl
call fcn.006aa4a3
pop ecx
pop ecx
test eax, eax
jne 0x6aa919
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push edi
call fcn.006aa2e6
add esp, 0x10
test eax, eax
jne 0x6aa919
cmp dword [ebp + 0x14], 4
je 0x6aa84e
cmp dword [ebp + 0x14], 5
je 0x6aa84e
mov al, byte [ebp - 0x111]
mov byte [ebp - 0x111], al
test al, al
je 0x6aa7dd
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x6aa8eb
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x6aa8eb
push ebx
push ebx
push ebx
push ebx
push 1
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.006b523b
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x120], esi
test esi, esi
je 0x6aa88b
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0061b638
lea eax, [ebp - 0x110]
push eax
push esi
push edi
push str.Failed_to_map_shmem_control_file__s._Error___u_:__s
push 0xec
push str.d:package_cachecasc1.4.58_srcdynamic_shmem_control.win32.cpp
push 4
push str.casc
call fcn.007a784a
push esi
call fcn.006aa6d4
add esp, 0x2c
jmp 0x6aa919
mov al, byte [ebp - 0x111]
mov byte [ebp - 0x111], al
test al, al
jne 0x6aa7af
push dword [ebp + 0x14]
push str.Failed_to_get_exclusive_access_since_we_are_not_first_to_bind._Mode__u_
push 0xd8
push str.d:package_cachecasc1.4.58_srcdynamic_shmem_control.win32.cpp
push 4
push str.casc
call fcn.007a784a
add esp, 0x18
push 0xb
pop eax
jmp 0x6aa919
mov al, byte [ebp - 0x111]
test al, al
je 0x6aa8d1
mov esi, dword [ebp - 0x124]
push esi
push dword [ebp - 0x128]
push dword [ebp - 0x14c]
call fcn.007390e0
mov eax, dword [ebp - 0x144]
sub eax, esi
push eax
mov eax, dword [ebp - 0x14c]
add eax, esi
push ebx
push eax
call fcn.00739c90
mfence
mov al, byte [ebp - 0x111]
add esp, 0x18
mov ecx, dword [ebp - 0x12c]
mov byte [ecx + 0x14], al
lea eax, [ebp - 0x14c]
push eax
add ecx, 0x18
call fcn.006b50d9
jmp 0x6aa91b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push str.Failed_to_resize_shmem_control_file__s._Error___u_
push 0xe3
push str.d:package_cachecasc1.4.58_srcdynamic_shmem_control.win32.cpp
push 4
push str.casc
call fcn.007a784a
push esi
call fcn.006aa6d4
add esp, 0x20
mov ebx, eax
lea ecx, [ebp - 0x14c]
call fcn.006b50d1
lea ecx, [ebp - 0x118]
call fcn.006ab725
lea ecx, [ebp - 0x11c]
call fcn.006ab725
mov eax, ebx
call fcn.007207e2
ret
Function at 0x6abc19
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0x14]
push ebx
push esi
push edi
sub eax, 0
je 0x6abc7a
sub eax, 1
je 0x6abc71
sub eax, 1
je 0x6abc6a
sub eax, 1
je 0x6abc61
sub eax, 1
je 0x6abc5d
sub eax, 1
je 0x6abc54
mov al, 1
jmp 0x6abd17
mov esi, 0xc0000000
push 2
jmp 0x6abc81
push 2
jmp 0x6abc7c
mov esi, 0xc0000000
push 3
jmp 0x6abc81
mov esi, closesocket
jmp 0x6abc66
mov esi, 0xc0000000
push 4
jmp 0x6abc81
push 4
mov esi, 0x40000000
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
pop edi
mov al, byte [ebx + 4]
mov byte [ebp - 5], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6abc91
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00721a30
cmp byte [ebp - 5], 0
mov ecx, esp
push 0
mov edx, 0x40000080
mov eax, 0x60000080
cmovne eax, edx
push eax
push edi
push 0
push 7
push esi
push dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 5]
call fcn.0063a082
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x6abd07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x6abcfe
cmp esi, 3
je 0x6abcfe
push str.Failed_to_open_file.
push esi
call fcn.006ac205
pop ecx
pop ecx
push esi
call fcn.006ab989
pop ecx
jmp 0x6abd17
push 0
push 1
push dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret
Function at 0x6ac471
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push 0
push 4
push edi
push 0x6ac448
push dword [ebp + 0x14]
push 0
call fcn.00757748
add esp, 0x18
test eax, eax
jne 0x6ac49c
call fcn.00749863
mov eax, dword [eax]
jmp 0x6ac4cb
push esi
push 5
lea esi, [edi + 4]
mov dword [edi], eax
push 0x6ac33a
push esi
call fcn.006ac2c0
add esp, 0xc
mov eax, dword [ebp + 0xc]
push dword [edi]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x8760ec]
pop esi
pop edi
pop ebp
ret

Function at 0x6acebc
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + ecx*4]
neg ecx
je 0x6acef9
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi]
imul eax, dword [edi + ecx*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
imul edx, eax, 5
sub edx, 0x19ab949c
mov dword [esi], edx
add ecx, 1
jne 0x6aced3
pop esi
pop edi
pop ebp
ret

Function at 0x6acefc
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
and eax, 3
sub eax, 1
je 0x6acf29
sub eax, 1
je 0x6acf20
sub eax, 1
jne 0x6acf42
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul ecx, eax, 0x1b873593
mov eax, dword [ebp + 8]
xor dword [eax], ecx
pop ebp
ret
Function at 0x6acf86
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx + 8]
lea edi, [ebp - 0x44]
push 0x10
pop ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0xc]
xor esi, esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
movzx ecx, byte [esi + 0x875eb8]
mov edx, eax
xor edx, ebx
and edx, edi
xor edx, eax
movzx eax, byte [esi + 0x875e78]
add edx, dword [ebp + eax*4 - 0x44]
mov eax, ebx
add edx, dword [esi*4 + 0x875ef8]
mov ebx, edi
add edx, dword [ebp - 0x50]
rol edx, cl
mov ecx, dword [ebp - 0x48]
add edx, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], eax
mov edi, edx
cmp esi, 0x10
jb 0x6acfc3
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
cmp esi, 0x20
jae 0x6ad051
mov ebx, dword [ebp - 0x4c]
movzx ecx, byte [esi + 0x875eb8]
mov edx, ebx
xor edx, edi
and edx, eax
movzx eax, byte [esi + 0x875e78]
xor edx, ebx
add edx, dword [ebp + eax*4 - 0x44]
mov eax, ebx
add edx, dword [esi*4 + 0x875ef8]
mov ebx, edi
add edx, dword [ebp - 0x50]
rol edx, cl
mov ecx, dword [ebp - 0x48]
add edx, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], eax
mov edi, edx
cmp esi, 0x20
jb 0x6ad00e
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
cmp esi, 0x30
jae 0x6ad09d
mov ebx, dword [ebp - 0x4c]
movzx eax, byte [esi + 0x875e78]
xor edx, ebx
movzx ecx, byte [esi + 0x875eb8]
xor edx, edi
mov eax, dword [ebp + eax*4 - 0x44]
add eax, edx
mov edx, ebx
add eax, dword [esi*4 + 0x875ef8]
mov ebx, edi
add eax, dword [ebp - 0x50]
rol eax, cl
mov ecx, dword [ebp - 0x48]
add eax, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edx
mov edi, eax
cmp esi, 0x30
jb 0x6ad05c
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
cmp esi, 0x40
jae 0x6ad0e8
mov ebx, dword [ebp - 0x4c]
movzx eax, byte [esi + 0x875e78]
not edx
movzx ecx, byte [esi + 0x875eb8]
or edx, edi
xor edx, ebx
mov eax, dword [ebp + eax*4 - 0x44]
add eax, edx
mov edx, ebx
add eax, dword [esi*4 + 0x875ef8]
mov ebx, edi
add eax, dword [ebp - 0x50]
rol eax, cl
mov ecx, dword [ebp - 0x48]
add eax, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edx
mov edi, eax
cmp esi, 0x40
jb 0x6ad0a5
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
add dword [ebx + 8], ecx
add dword [ebx + 0xc], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
xor ecx, ebp
add dword [ebx + 0x10], eax
add dword [ebx + 0x14], edx
pop edi
pop esi
pop ebx
call fcn.007207bc
leave
ret 4

Function at 0x6ad216
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
ret
Function at 0x6ad2c1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6ad2dc
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00721a30
mov eax, esp
lea ecx, [ebp - 5]
push edi
push eax
call fcn.0063a082
mov ebx, eax
mov esi, 0xb7
xor eax, eax
mov dword [ebp - 0xc], ebx
cmp byte [ebp + 0xc], al
je 0x6ad3d3
push edi
call fcn.006b3d36
push 2
test al, al
lea ecx, [ebx + 6]
push 0x81f75c
push edi
cmovne ebx, ecx
call fcn.005086b7
xor edx, edx
add esp, 0x10
inc edx
test eax, eax
je 0x6ad356
push 2
push 0x7f9cd0
push edi
call fcn.005086b7
add esp, 0xc
xor edx, edx
test eax, eax
je 0x6ad355
xor eax, eax
inc edx
mov byte [ebp - 5], al
jmp 0x6ad359
inc edx
mov byte [ebp - 5], dl
movzx eax, word [ebx]
test ax, ax
je 0x6ad3ce
mov edi, dword [ebp - 0xc]
mov ecx, eax
push 0x2f
pop eax
cmp cx, ax
je 0x6ad376
push 0x5c
pop eax
cmp cx, ax
jne 0x6ad3c1
mov dword [ebp - 0x10], eax
xor eax, eax
cmp word [ebx + 2], ax
je 0x6ad3c1
test dl, dl
je 0x6ad38a
cmp byte [ebp - 5], al
jne 0x6ad3bf
xor eax, eax
push edi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6ad39f
test al, 0x10
jne 0x6ad3b7
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x6ad3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x6ad3fd
mov eax, dword [ebp - 0x10]
mov word [ebx], ax
xor eax, eax
mov dl, al
add ebx, 2
movzx eax, word [ebx]
mov ecx, eax
test ax, ax
jne 0x6ad366
mov ebx, dword [ebp - 0xc]
xor eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x6ad405
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x6ad40a
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6ad3f9
test al, 0x10
jne 0x6ad405
mov eax, esi
jmp 0x6ad40a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6ad40a
mov eax, dword [0x8760ec]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6ad431
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00721a30
mov eax, esp
lea ecx, [ebp - 5]
push dword [ebp + 8]
push eax
call fcn.0063a082
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6ad468
test al, 0x10
je 0x6ad468
mov al, 1
jmp 0x6ad46a
xor al, al
lea esp, [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret
Function at 0x6ad479
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [esi + esi]
call fcn.00721a30
mov edi, esp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x6ad4aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6ad4eb
cmp eax, esi
ja 0x6ad4e3
test esi, esi
je 0x6ad4e3
xor eax, eax
push eax
push eax
push esi
push dword [ebp + 8]
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x6ad4e3
push dword [ebp + 8]
push esi
push dword [ebp + 8]
call fcn.006b3d8a
mov eax, dword [0x8760ec]
add esp, 0xc
jmp 0x6ad4eb
push 1
call fcn.006b60c9
pop ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret

Function at 0x6ad584
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
or dword [ebx + 0x250], 0xffffffff
mov byte [ebx + 0x358], 0
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x6ad5b0
sub edi, edx
je 0x6ad5c4
mov al, byte [edi + ecx - 1]
mov byte [ebp - 5], al
jmp 0x6ad5c8
mov byte [ebp - 5], 0
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 0x7fff
jle 0x6ad5ef
push 2
call fcn.006b60c9
pop ecx
jmp 0x6ad67c
lea esi, [eax + 3]
lea eax, [esi + esi]
call fcn.00721a30
mov eax, esp
push esi
mov esi, dword [ebp + 0xc]
push eax
push edi
push esi
push 0
push 0xfde9
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov cl, byte [ebp - 5]
cmp cl, 0x5c
je 0x6ad62d
cmp cl, 0x2f
mov ecx, dword [ebp - 0xc]
je 0x6ad630
push 0x5c
pop edx
mov word [ecx + eax*2], dx
inc eax
jmp 0x6ad630
mov ecx, dword [ebp - 0xc]
push 0x2a
pop edx
mov word [ecx + eax*2], dx
xor edx, edx
push ebx
push ecx
mov word [ecx + eax*2 + 2], dx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx + 0x250], eax
mov byte [ebx + 0x254], 0
cmp eax, 0xffffffff
jne 0x6ad677
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
jne 0x6ad68e
push esi
call fcn.006ad41c
pop ecx
test al, al
je 0x6ad68e
mov byte [ebx + 0x358], 1
mov eax, dword [0x8760ec]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret
mov eax, edi
jmp 0x6ad67c
Function at 0x6ad889
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6ad89e
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00721a30
mov eax, esp
lea ecx, [ebp - 5]
push dword [ebp + 8]
push eax
call fcn.0063a082
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6ad8d5
test al, 0x10
jne 0x6ad8d5
mov al, 1
jmp 0x6ad8d7
xor al, al
lea esp, [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret

Function at 0x6adc3e
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x6adc54
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00721a30
mov eax, esp
lea ecx, [ebp - 5]
push dword [ebp + 8]
push eax
call fcn.0063a082
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x6adcae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x6adca6
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x6adcae
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6adcb3
mov eax, dword [0x8760ec]
lea esp, [ebp - 0xc]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.007207bc
leave
ret
Function at 0x6add7c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00721650
mov eax, dword [0x904fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x100c], esi
call fcn.006ad9ef
push esi
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], edx
call fcn.006abbf5
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, edx
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1008], ecx
cmp ebx, ecx
jb 0x6ade9b
ja 0x6adddf
cmp edi, eax
jbe 0x6ade9b
push ecx
push eax
push esi
call fcn.006add52
add esp, 0xc
test eax, eax
jne 0x6adeb6
sub edi, dword [ebp - 0x1010]
mov ecx, 0x1000
mov eax, ecx
sbb ebx, dword [ebp - 0x1008]
test ebx, ebx
ja 0x6ade11
jb 0x6ade0f
cmp edi, ecx
jae 0x6ade11
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00739c90
add esp, 0xc
jmp 0x6ade64
test ebx, ebx
jne 0x6ade33
mov eax, edi
cmp edi, 0x1000
jb 0x6ade38
mov eax, 0x1000
lea ecx, [ebp - 0x1008]
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.006adec0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x6ade70
sub edi, dword [ebp - 0x1008]
mov esi, dword [ebp - 0x100c]
sbb ebx, eax
mov eax, edi
or eax, ebx
jne 0x6ade25
mov esi, dword [0x8760ec]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
push dword [ebp - 0x100c]
call fcn.006add52
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.007207bc
leave
ret
push ebx
push edi
push esi
call fcn.006add52
add esp, 0xc
test eax, eax
jne 0x6adeb6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x6ade6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x6ade70
Function at 0x6ae619
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push str.kernel32.dll
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
test edi, edi
je 0x6ae6af
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x6ae6af
mov eax, dword [ebp + 8]
mov ecx, 0x14c
cmp ax, cx
jne 0x6ae678
mov dword [esi + 0x1c], 1
jmp 0x6ae6af
mov ecx, 0x8664
cmp ax, cx
jne 0x6ae68b
mov dword [esi + 0x1c], 2
jmp 0x6ae6af
mov ecx, 0x1c4
cmp ax, cx
jne 0x6ae69e
mov dword [esi + 0x1c], 3
jmp 0x6ae6af
mov ecx, 0xaa64
cmp ax, cx
jne 0x6ae6af
mov dword [esi + 0x1c], 4
cmp dword [esi + 0x1c], ebx
jne 0x6ae6fb
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x28]
test ax, ax
jne 0x6ae6d0
mov dword [esi + 0x1c], 1
jmp 0x6ae6fb
cmp ax, 9
jne 0x6ae6df
mov dword [esi + 0x1c], 2
jmp 0x6ae6fb
cmp ax, 5
jne 0x6ae6ee
mov dword [esi + 0x1c], 3
jmp 0x6ae6fb
cmp ax, 0xc
jne 0x6ae6fb
mov dword [esi + 0x1c], 4
push dword [esi + 0x1c]
call fcn.006ae8df
lea edi, [esi + 0x10]
mov dword [esi + 0x18], eax
mov edx, dword [edi + 4]
pop ecx
mov ecx, dword [edi]
mov eax, ecx
or eax, edx
jne 0x6ae729
push edi
lea eax, [esi + 0x6b]
push 0x40
push eax
call fcn.006adf65
mov ecx, dword [edi]
add esp, 0xc
mov edx, dword [edi + 4]
or ecx, edx
jne 0x6ae734
push edi
call fcn.006ae051
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x6aee49
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x6aee66
mov eax, dword [0x8760ec]
pop ebp
ret
test eax, eax
jne 0x6aee71
mov eax, 0x2726
pop ebp
ret
pop ebp
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]

Function at 0x6aee78
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x6aee95
mov eax, dword [0x8760ec]
pop ebp
ret
test eax, eax
jne 0x6aeea0
mov eax, 0x2726
pop ebp
ret
pop ebp
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]