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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4ad33b78]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.4ad01349
lea ecx, [ebp - 0x668]
push ecx
lea ecx, [ebp - 0x414]
push ecx
push 0x208
push eax
call dword [sym.imp.vKERNEL32.dll_GetFullPathNameW]
mov esi, eax
test esi, esi
je 0x4ad0ce0b
push 4
lea eax, [ebp - 0x414]
push 0x4ad0ce1c
push eax
call dword [sym.imp.vmsvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4ad175ce
mov eax, dword [ebp - 0x668]
test eax, eax
je 0x4ad1762c
cmp word [eax], 0
je 0x4ad1762c
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x664]
push eax
push 0x37
lea eax, [ebp - 0x414]
push eax
call fcn.4ad02a34
push dword [ebp - 0x66c]
movzx esi, al
call fcn.4ad01c24
test esi, esi
je 0x4ad0cf5c
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.4ad01305
leave
ret 4
cmp word [ebp - 0x412], 0x5c
je 0x4ad0cf8f
cmp word [ebp - 0x412], 0x3a
jne 0x4ad0ce0b
cmp word [ebp - 0x410], 0x5c
jne 0x4ad0ce0b
cmp word [ebp - 0x40e], si
jne 0x4ad0ce0b
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.vKERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ad0ce0b
jmp 0x4ad17624
lea eax, [ebp - 0x40c]
push eax
push edi
mov dword [ebp - 0x668], eax
call dword [sym.imp.vmsvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x668], eax
je 0x4ad1760d
cmp eax, edi
jbe 0x4ad1760d
mov si, word [eax]
and word [eax], 0
push edi
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp - 0x668]
mov word [eax], si
jmp 0x4ad17616
push edi
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, ecx
inc eax
neg eax
sbb eax, eax
and eax, ecx
jmp 0x4ad0ce0d
xor esi, esi
inc esi
jmp 0x4ad0ce0b
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
jmp 0x4ad0ce0b
Function at 0x4ad0d12d
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x4ad33b78]
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x27c], ebx
mov word [ebp - 0x278], bx
mov word [ebp - 0x276], bx
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x274]
stosd dword es:[edi], eax
mov word [ebp - 0x270], bx
mov word [ebp - 0x26e], bx
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
mov word [ebp - 0x268], bx
mov word [ebp - 0x266], bx
lea edi, [ebp - 0x264]
stosd dword es:[edi], eax
mov word [ebp - 0x260], bx
mov word [ebp - 0x25e], bx
lea edi, [ebp - 0x25c]
stosd dword es:[edi], eax
mov word [ebp - 0x258], bx
mov word [ebp - 0x256], bx
lea edi, [ebp - 0x254]
stosd dword es:[edi], eax
mov word [ebp - 0x250], bx
mov word [ebp - 0x24e], bx
lea edi, [ebp - 0x24c]
stosd dword es:[edi], eax
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x23c], bl
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
lea edi, [ebp - 0x22c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4ad2b9f0]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x288]
push eax
push ecx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x284], 6
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x234], ebx
call fcn.4ad0d3e8
cmp eax, 1
je 0x4ad0d5fb
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.4ad01550
mov edi, dword [ebp - 0x248]
cmp edi, ebx
je 0x4ad17baa
push esi
lea esi, [ebp - 0x244]
mov eax, dword [esi]
cmp eax, ebx
je 0x4ad0d603
push eax
call dword [sym.imp.vmsvcrt.dll_wcslen]
pop ecx
cmp eax, ebx
je 0x4ad17be3
dec edi
mov esi, dword [esi + 0xc]
jne 0x4ad0d25f
mov edi, dword [ebp - 0x288]
mov eax, dword [ebp - 0x248]
lea esi, [ebp - 0x244]
and edi, 0x10
mov dword [ebp - 0x218], eax
cmp edi, ebx
je 0x4ad17bf8
test byte [ebp - 0x287], 0x20
je 0x4ad17bbc
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
call fcn.4ad0cfaf
cmp eax, ebx
jne 0x4ad0d5e0
dec dword [ebp - 0x218]
mov esi, dword [esi + 0xc]
jne 0x4ad0d29a
lea eax, [ebp - 0x210]
push eax
push 0x4ad34400
call dword [sym.imp.vmsvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x220]
call fcn.4ad014f8
mov eax, dword [ebp - 0x214]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.4ad01305
leave
ret 4
cmp eax, 0x91
je 0x4ad0d60a
push ebx
push eax
mov dword [ebp - 0x214], eax
call fcn.4ad05fb5
pop ecx
pop ecx
jmp 0x4ad0d2c5
xor eax, eax
inc eax
jmp 0x4ad0d2f6
xor eax, eax
jmp 0x4ad0d271
cmp dword [ebp - 0x21c], ebx
jne 0x4ad0d5e7
jmp 0x4ad0d2c5
push ebx
push 0x232a
call fcn.4ad05fb5
pop ecx
pop ecx
jmp 0x4ad0d5fb
push 0x2328
push 0x234e
push dword [esi]
call fcn.4ad10ae0
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4ad0d2af
mov dword [ebp - 0x214], ecx
jmp 0x4ad0d2c5
push ebx
push 0x232a
call fcn.4ad05fb5
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad0d2f5
push dword [esi]
call dword [sym.imp.vKERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4ad0d2c5
call dword [sym.imp.vKERNEL32.dll_GetLastError]
jmp 0x4ad0d5e7
Function at 0x4ad0d33c
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ad33b78]
and dword [ebp - 0x10], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push esi
call dword [sym.imp.vKERNEL32.dll_GetFullPathNameW]
cmp eax, 3
je 0x4ad179a8
push ebx
mov ebx, dword [sym.imp.vKERNEL32.dll_RemoveDirectoryW]
push esi
call ebx
test eax, eax
je 0x4ad0d5b2
mov eax, dword [ebp - 0x10]
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01305
leave
ret 4
push edi
mov edi, dword [sym.imp.vKERNEL32.dll_GetLastError]
call edi
cmp eax, 5
mov dword [ebp - 0x10], eax
je 0x4ad179c5
pop edi
jmp 0x4ad0d380
cmp word [ebp - 0xa], 0x3a
jne 0x4ad0d36e
cmp word [ebp - 8], 0x5c
jne 0x4ad0d36e
xor eax, eax
jmp 0x4ad0d384
push esi
call dword [sym.imp.vKERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad0d5c7
test al, 1
je 0x4ad0d5c7
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.vKERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4ad0d5c7
push esi
call ebx
test eax, eax
je 0x4ad17a00
and dword [ebp - 0x10], 0
jmp 0x4ad0d5c7
call edi
mov dword [ebp - 0x10], eax
jmp 0x4ad0d5c7

Function at 0x4ad0d7c6
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ad33b78]
and word [ebp - 6], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
add eax, 0x40
push esi
mov word [ebp - 0xa], ax
push edi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], 0x3d
mov word [ebp - 8], 0x3a
call fcn.4ad01b70
mov esi, dword [sym.imp.vKERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [sym.imp.vKERNEL32.dll_SetErrorMode]
mov edi, eax
test edi, edi
je 0x4ad172fa
push edi
call esi
test al, al
je 0x4ad172f0
push 0
push 0x4ad34400
call fcn.4ad01550
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 4
push 1
call ebx
mov dword [ebp - 0x218], eax
mov ax, word [ebp - 0xa]
and word [ebp - 0x20e], 0
mov word [ebp - 0x214], ax
mov ax, word [ebp - 8]
mov word [ebp - 0x212], ax
mov ax, word [0x4ad33b8c]
mov word [ebp - 0x210], ax
push 0x4ad2b0d0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.4ad0158f
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
jne 0x4ad17356
push eax
call dword [sym.imp.vKERNEL32.dll_GetLastError]
push eax
call fcn.4ad05fb5
pop ecx
pop ecx
test edi, edi
je 0x4ad0d821
push dword [ebp - 0x218]
call ebx
jmp 0x4ad0d821
Function at 0x4ad0e3b8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x1c]
test eax, eax
mov dword [ebp - 4], 0x1a
je 0x4ad15e51
push esi
push edi
push eax
call fcn.4ad0e441
test eax, eax
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.vmsvcrt.dll__get_osfhandle]
jne 0x4ad15e58
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ad0e42a
test byte [eax + 0x18], 0x80
jne 0x4ad0e42a
push edi
call fcn.4ad02c65
test eax, eax
jne 0x4ad0e42a
mov eax, dword [0x4ad33b3c]
cmp eax, 3
je 0x4ad0e42a
cmp dword [ebp + 0x18], 0
je 0x4ad0e42a
cmp eax, 2
je 0x4ad0e42a
push dword [ebp + 0x18]
push 0
push 0
push edi
call esi
pop ecx
push eax
call dword [sym.imp.vKERNEL32.dll_SetFileTime]
push edi
call fcn.4ad02e00
inc dword [0x4ad33b60]
pop edi
pop esi
leave
ret 0x14
mov eax, ecx
jmp 0x4ad0e3d3
push edi
call fcn.4ad02c65
test eax, eax
jne 0x4ad0e3ec
push eax
lea eax, [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
pop ecx
push eax
call dword [sym.imp.vKERNEL32.dll_WriteFile]
jmp 0x4ad0e3ec

Function at 0x4ad0e551
Capabilities:
Delete file
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
push edi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
mov dword [0x4ad33b18], edi
push dword [ebp + 8]
call dword [sym.imp.vmsvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.vKERNEL32.dll_ReadFile]
test eax, eax
mov ebx, dword [sym.imp.vKERNEL32.dll_GetLastError]
je 0x4ad15f4a
mov edx, dword [esi]
cmp edx, edi
je 0x4ad15efd
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x18]
test ah, 0xc0
jne 0x4ad0e5bf
cmp edx, 2
jb 0x4ad0e5b7
mov edx, dword [ebp + 0xc]
cmp word [edx], 0xfeff
je 0x4ad15f1d
or eax, 0x8000
mov dword [ecx + 0x18], eax
mov ecx, dword [ecx + 0x18]
mov eax, 0x8002
xor ebx, ebx
and ecx, eax
inc ebx
cmp ecx, eax
je 0x4ad15f27
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x1c
call ebx
cmp eax, 0x3e3
je 0x4ad15f4a
mov edx, dword [esi]
cmp edx, edi
jne 0x4ad0e599
mov dword [0x4ad2ba04], edi
xor eax, eax
jmp 0x4ad0e5d6
or eax, 0x4000
jmp 0x4ad0e5bc
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push ebx
call fcn.4ad11313
cmp edi, dword [esi]
je 0x4ad0e5d4
mov dword [0x4ad33b18], ebx
jmp 0x4ad0e5d4
call ebx
push dword [ebp + 8]
mov dword [0x4ad2ba04], eax
call fcn.4ad02e00
push dword [ebp + 0x1c]
call fcn.4ad02c65
test eax, eax
push dword [ebp + 0x1c]
jne 0x4ad15f78
call fcn.4ad02e00
push dword [ebp + 0x20]
call dword [sym.imp.vKERNEL32.dll_DeleteFileW]
jmp 0x4ad15f7d
call fcn.4ad02e00
push 1
push dword [0x4ad2ba04]
call fcn.4ad0c2b1
Function at 0x4ad19615
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x4ad2fac4]
jmp 0x4ad1962c
push esi
call fcn.4ad06b8e
mov esi, dword [esi + 0xf4]
test esi, esi
jne 0x4ad19620
call fcn.4ad10e03
and dword [0x4ad2fac0], esi
push 1
push 0x4ad34700
call dword [sym.imp.vmsvcrt.dll_longjmp]
nop
nop
nop
nop
nop

Function at 0x4ad19f37
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
call dword [sym.imp.vKERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x4ad19f73
mov eax, dword [sym.imp.vmsvcrt.dll__iob]
push 0x4ad19280
add eax, 0x40
push str._nCMD_Internal_Error__s_n
push eax
call dword [sym.imp.vmsvcrt.dll_fprintf]
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad1a02c
push esi
push edi
push dword [ebp + 8]
call fcn.4ad02b6b
mov esi, eax
push 0x20
push esi
mov dword [ebp + 8], esi
call fcn.4ad01a53
cmp eax, edi
je 0x4ad19f91
mov word [eax], di
cmp esi, edi
je 0x4ad19fa2
push esi
call dword [sym.imp.vmsvcrt.dll_wcslen]
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x4ad19fa5
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
cmp ebx, edi
je 0x4ad19fbd
push ebx
call dword [sym.imp.vmsvcrt.dll_wcslen]
pop ecx
mov dword [ebp - 4], eax
jmp 0x4ad19fc0
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jbe 0x4ad1a011
cmp dword [0x4ad2b9e8], edi
jne 0x4ad1a00c
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x4ad1a003
push dword [ebp + 8]
lea esi, [ebx + eax*2]
mov di, word [esi]
and word [esi], 0
push ebx
call dword [sym.imp.vKERNEL32.dll_lstrcmpiW]
test eax, eax
mov word [esi], di
jne 0x4ad1a001
push ebx
push str._s_r_n
call fcn.4ad05e00
and dword [ebp - 8], 0
pop ecx
pop ecx
xor edi, edi
mov eax, dword [ebp - 4]
lea ebx, [ebx + eax*2 + 2]
jmp 0x4ad19fac
xor eax, eax
inc eax
jmp 0x4ad1a02b
cmp dword [ebp - 8], edi
je 0x4ad1a028
push dword [ebp + 8]
push 1
push 0x23a9
call fcn.4ad05fb5
add esp, 0xc
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x4ad1a037
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.vKERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ad1a067
mov eax, dword [sym.imp.vmsvcrt.dll__iob]
push 0x4ad19280
add eax, 0x40
push str._nCMD_Internal_Error__s_n
push eax
call dword [sym.imp.vmsvcrt.dll_fprintf]
add esp, 0xc
xor eax, eax
inc eax
pop esi
ret
push edi
test esi, esi
je 0x4ad1a078
push esi
call dword [sym.imp.vmsvcrt.dll_wcslen]
pop ecx
mov edi, eax
jmp 0x4ad1a07a
xor edi, edi
test edi, edi
jbe 0x4ad1a0a5
cmp dword [0x4ad2b9e8], 0
jne 0x4ad1a0a0
cmp word [esi], 0x3d
je 0x4ad1a09a
push esi
push str._s_r_n
call fcn.4ad05e00
pop ecx
pop ecx
lea esi, [esi + edi*2 + 2]
jmp 0x4ad1a068
xor eax, eax
inc eax
jmp 0x4ad1a0a7
xor eax, eax
pop edi
pop esi
ret
Function at 0x4ad1b143
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4ad33b78]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
push edi
jne 0x4ad1b1fe
xor edi, edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call dword [sym.imp.VADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x4ad1b1ed
cmp word [ebp - 0x20c], 0x2e
jne 0x4ad1b1da
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x418], 0x208
call dword [sym.imp.VADVAPI32.dll_RegQueryValueW]
mov esi, eax
test esi, esi
jne 0x4ad1b264
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4ad05e00
add esp, 0xc
mov esi, eax
cmp dword [0x4ad2b9e8], 0
jne 0x4ad1b1f9
inc edi
test esi, esi
jne 0x4ad1b264
jmp 0x4ad1b169
cmp esi, 0x103
jne 0x4ad1b264
xor esi, esi
jmp 0x4ad1b264
xor eax, eax
inc eax
jmp 0x4ad1b266
push 0
push eax
call fcn.4ad02b6b
mov edi, eax
push 0x20
push edi
call fcn.4ad01a53
test eax, eax
je 0x4ad1b218
and word [eax], 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push ebx
mov dword [ebp - 0x418], 0x208
call dword [sym.imp.VADVAPI32.dll_RegQueryValueW]
mov esi, eax
test esi, esi
jne 0x4ad1b254
lea eax, [ebp - 0x414]
push eax
push edi
push str._s_s_r_n
call fcn.4ad05e00
mov esi, eax
jmp 0x4ad1b261
push edi
push 1
push 0x23a3
call fcn.4ad05fb5
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 8

Function at 0x4ad1b27a
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xc
push 0x4ad1b338
call fcn.4ad0161a
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp esi, edi
je 0x4ad1b306
cmp word [esi], di
je 0x4ad1b306
push esi
call dword [sym.imp.vmsvcrt.dll_wcslen]
pop ecx
push eax
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.VADVAPI32.dll_RegSetValueW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x4ad1b2fa
mov dword [ebp - 4], edi
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.VSHELL32.dll_SHChangeNotify]
push esi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4ad05e00
add esp, 0xc
or dword [ebp - 4], 0xffffffff
jmp 0x4ad1b32b
push dword [ebp + 0xc]
push 1
push 0x235d
jmp 0x4ad1b323
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.VADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4ad1b32b
push dword [ebp + 0xc]
push 1
push 0x23a3
call fcn.4ad05fb5
add esp, 0xc
mov eax, dword [ebp - 0x1c]
call fcn.4ad01442
ret 0xc
Function at 0x4ad1b349
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4ad33b78]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov dword [ebp - 0x420], eax
jne 0x4ad1b4a0
mov edi, dword [sym.imp.VADVAPI32.dll_RegEnumKeyW]
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push esi
mov dword [ebp - 0x424], esi
push eax
jmp 0x4ad1b483
cmp word [ebp - 0x20c], 0x2e
je 0x4ad1b460
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.vmsvcrt.dll_wcslen]
mov esi, eax
lea eax, [ebp - 0x20c]
mov dword [esp], 0x4ad1b5b8
push eax
call dword [sym.imp.vmsvcrt.dll_wcscat]
lea eax, [ebp - 0x414]
push 0x4ad1b578
push eax
call dword [sym.imp.vmsvcrt.dll_wcscpy]
add esp, 0x10
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
call dword [sym.imp.VADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4ad1b460
and word [ebp + esi*2 - 0x20c], ax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push 0x4ad02a54
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.VADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x418]
mov esi, eax
call dword [sym.imp.VADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4ad1b460
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4ad05e00
add esp, 0xc
cmp dword [0x4ad2b9e8], 0
jne 0x4ad1b49b
inc dword [ebp - 0x424]
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call edi
mov esi, eax
test esi, esi
je 0x4ad1b395
cmp esi, 0x103
jne 0x4ad1b4b9
xor esi, esi
jmp 0x4ad1b4b9
xor eax, eax
inc eax
jmp 0x4ad1b4bb
cmp word [edi], 0x2e
jne 0x4ad1b4ca
push 0x7b
pop esi
push edi
push 1
push 0x23a5
call fcn.4ad05fb5
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 8
push esi
push edi
call fcn.4ad02b6b
mov edi, eax
push 0x20
push edi
call fcn.4ad01a53
cmp eax, esi
je 0x4ad1b4e2
mov word [eax], si
push edi
push 0x4ad19298
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.vmsvcrt.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x420]
call dword [sym.imp.VADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
je 0x4ad1b51f
mov esi, eax
jmp 0x4ad1b4a9
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
push 0x4ad02a54
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.VADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4ad1b4a9
lea eax, [ebp - 0x414]
push eax
push edi
push str._s_s_r_n
call fcn.4ad05e00
jmp 0x4ad1b4b6
Function at 0x4ad1b5e5
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ad33b78]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push ebx
push 0x4ad19298
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x220], esi
call dword [sym.imp.vmsvcrt.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.VADVAPI32.dll_RegOpenKeyW]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x210], eax
je 0x4ad1b6ef
cmp esi, edi
je 0x4ad1b6ce
cmp word [esi], di
je 0x4ad1b6ce
lea esi, [ebp - 0x20c]
jmp 0x4ad1b66f
cmp word [esi], 0x5c
je 0x4ad1b674
inc esi
inc esi
cmp word [esi], di
jne 0x4ad1b667
mov bx, word [esi]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x2000000
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
mov word [esi], di
call dword [sym.imp.VADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 0x210], eax
jne 0x4ad1b6c6
cmp bx, di
je 0x4ad1b6e3
push dword [ebp - 0x214]
mov word [esi], bx
inc esi
inc esi
call dword [sym.imp.VADVAPI32.dll_RegCloseKey]
jmp 0x4ad1b66f
push dword [ebp - 0x218]
jmp 0x4ad1b6cf
push ebx
push 1
push 0x23a5
call fcn.4ad05fb5
add esp, 0xc
jmp 0x4ad1b76f
mov esi, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x218]
cmp esi, edi
je 0x4ad1b73c
cmp word [esi], di
je 0x4ad1b73c
push esi
call dword [sym.imp.vmsvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push edi
push 0x4ad02a54
push dword [ebp - 0x214]
call dword [sym.imp.VADVAPI32.dll_RegSetValueExW]
cmp eax, edi
mov dword [ebp - 0x210], eax
jne 0x4ad1b732
push esi
push ebx
push str._s_s_r_n
call fcn.4ad05e00
jmp 0x4ad1b760
push ebx
push 1
push 0x235d
jmp 0x4ad1b75b
push edi
push dword [ebp - 0x214]
call dword [sym.imp.VADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
mov dword [ebp - 0x210], eax
je 0x4ad1b763
push ebx
push 1
push 0x23a5
call fcn.4ad05fb5
add esp, 0xc
push dword [ebp - 0x214]
call dword [sym.imp.VADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.4ad01305
leave
ret 0xc

Function at 0x4ad1ba27
Capabilities:
Check if file exists
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.4ad05fb5
pop ecx
pop ecx
call fcn.4ad062b7
push 1
push 0x4ad34640
call dword [sym.imp.vmsvcrt.dll_longjmp]
nop
nop
nop
nop
nop
Function at 0x4ad1d6bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.4ad1e100
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4ad1d6f0
push 0x6e
call fcn.4ad0c21a
push 1
push esi
jmp 0x4ad1d7be
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.vmsvcrt.dll__get_osfhandle]
mov ebx, 0x8002
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
pop ecx
push eax
call dword [sym.imp.vKERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad1d798
mov eax, dword [esi + 0x18]
test ah, 0xc0
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
jne 0x4ad1d747
cmp ecx, 2
jbe 0x4ad1d73f
mov edx, dword [ebp + 0x10]
cmp word [edx], 0xfeff
jne 0x4ad1d73f
or eax, 0x4000
jmp 0x4ad1d744
or eax, 0x8000
mov dword [esi + 0x18], eax
test ecx, ecx
je 0x4ad1d76e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x18]
push dword [ebp + 0x10]
and eax, ebx
sub eax, ebx
neg eax
sbb eax, eax
inc eax
push eax
call fcn.4ad11313
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp ecx, dword [ebp + 0x14]
je 0x4ad1d6fe
cmp dword [ebp - 8], 0
jne 0x4ad1d78e
sub ecx, dword [ebp + 0xc]
push 1
push 0
push ecx
push dword [ebp + 8]
call edi
pop ecx
push eax
call dword [sym.imp.vKERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
call dword [sym.imp.vKERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov dword [0x4ad2ba04], eax
call fcn.4ad02e00
push 0
push dword [0x4ad2ba04]
call fcn.4ad05fb5
pop ecx
pop ecx
push 1
push 0
call fcn.4ad0c2b1
nop
nop
nop
nop
nop