joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x402658
Capabilities:
Terminate process

Disassembly:
xor edi, edi
xor esi, esi
mov edx, eax
mov eax, 5
add eax, 5
inc eax
test eax, 0xb
jne 0x40267a
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401036], eax
ret
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x731e066b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x3e3749a1
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4a7af0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x69000]
push edi
or ebp, 0xffffffff
jmp 0x4a7b12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a7b19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a7b08
mov eax, 1
add ebx, ebx
jne 0x4a7b2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a7b3c
jne 0x4a7b5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a7b5b
dec eax
add ebx, ebx
jne 0x4a7b48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a7b20
add ebx, ebx
jne 0x4a7b57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a7bad
xor ecx, ecx
sub eax, 3
jb 0x4a7b73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a7be2
sar eax, 1
mov ebp, eax
jmp 0x4a7b7e
add ebx, ebx
jne 0x4a7b7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a7b4c
inc ecx
add ebx, ebx
jne 0x4a7b8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a7b4c
add ebx, ebx
jne 0x4a7b99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a7b8e
jne 0x4a7baa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a7b8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a7bcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a7bbe
jmp 0x4a7b0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a7bcc
add edi, ecx
jmp 0x4a7b0e
pop esi
mov edi, esi
mov ecx, 0x532
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a7bea
cmp byte [edi], 0x1e
jne 0x4a7bea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4a7bef
lea edi, [esi + 0xa4000]
mov eax, dword [edi]
or eax, eax
je 0x4a7c5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa74e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa7584]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a7c1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa758c]
or eax, eax
je 0x4a7c58
mov dword [ebx], eax
add ebx, 4
jmp 0x4a7c39
call dword [esi + 0xa7588]
mov ebp, dword [esi + 0xa7590]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a7c92
sub esp, 0xffffff80
jmp 0x40cfe4
Function at 0x405b23
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405dee
test bl, 8
mov dword [ebp - 8], eax
je 0x405b62
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434fa8], eax
jmp 0x405cdf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b7c
test eax, eax
je 0x405c8d
test bl, 2
je 0x405c8d
mov esi, 0x42f270
push edi
push esi
call fcn.00406411
cmp dword [ebp + 8], 0
je 0x405b9b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ba1
push edi
call fcn.00405d32
cmp word [edi], 0
jne 0x405bb1
cmp word [0x42f270], 0x5c
jne 0x405bbc
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c82
cmp word [ebp - 0x22c], 0x2e
jne 0x405c06
cmp word [ebp - 0x22a], 0
je 0x405c65
cmp word [ebp - 0x22a], 0x2e
jne 0x405c06
cmp word [ebp - 0x228], 0
je 0x405c65
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406411
test byte [ebp - 0x258], 0x10
je 0x405c31
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c65
push dword [ebp + 0xc]
push edi
call fcn.00405b23
jmp 0x405c65
push dword [ebp - 4]
push edi
call 0x405adb
test eax, eax
jne 0x405c5d
cmp dword [ebp - 4], eax
je 0x405c55
push edi
push 0xfffffffffffffff1
call fcn.00405479
push 0
push edi
call fcn.004061d7
jmp 0x405c65
inc dword [0x434fa8]
jmp 0x405c65
push edi
push 0xfffffffffffffff2
call fcn.00405479
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405bde
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c8d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405cdf
cmp dword [ebp - 8], esi
jne 0x405ca1
inc dword [0x434fa8]
jmp 0x405cdf
push edi
call fcn.0040676f
test eax, eax
je 0x405cdf
push edi
call fcn.00405ce6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call 0x405adb
test eax, eax
jne 0x405cd7
cmp dword [ebp - 4], esi
je 0x405c99
push edi
push 0xfffffffffffffff1
call fcn.00405479
push esi
push edi
call fcn.004061d7
jmp 0x405cdf
push edi
push 0xffffffffffffffe5
call fcn.00405479
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4ad02f27
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, dword [ebp + 0x1c]
pop ecx
xor edx, edx
mov ecx, eax
cmp word [ebx], dx
mov dword [ebp - 4], ecx
mov eax, ebx
je 0x4ad02f5e
inc edx
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x4ad02f4f
cmp word [eax], si
jne 0x4ad02f4e
sub eax, ebx
sar eax, 1
lea eax, [eax + ecx + 1]
imul eax, edx
shl eax, 1
push eax
call fcn.4ad0d9ca
cmp word [ebx], 0
mov esi, eax
mov dword [ebp + 0x1c], esi
mov edi, ebx
je 0x4ad02fba
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov eax, dword [ebp - 4]
add esp, 0xc
lea esi, [esi + eax*2]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
mov cx, word [edi]
push 2
pop eax
add edi, eax
test cx, cx
je 0x4ad02fb2
mov cx, word [edi]
add esi, eax
jmp 0x4ad02fa4
add esi, eax
cmp word [edi], 0
jne 0x4ad02f7e
push 1
and word [esi], 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.4ad0390c
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x254]
xor edi, edi
push eax
mov word [esi], 0x2a
push dword [ebp + 8]
mov word [esi + 2], di
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0x1c], eax
mov word [esi], di
je 0x4ad03093
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
test byte [ebp - 0x254], 0x10
pop ecx
pop ecx
je 0x4ad03072
lea eax, [ebp - 0x228]
push 0x4ad01438
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x4ad03072
lea eax, [ebp - 0x228]
push 0x4ad01430
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x4ad03072
push esi
call fcn.4ad1948c
push ebx
inc eax
push dword [ebp + 0x18]
inc eax
push dword [ebp + 0x14]
mov word [eax], 0x5c
inc eax
push dword [ebp + 0x10]
inc eax
push eax
mov word [eax], di
push dword [ebp + 8]
call fcn.4ad02f27
mov dword [ebp - 4], eax
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4ad03001
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x4ad04999
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
mov edi, 0x4ad23b20
push dword [ebp + 8]
mov esi, edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov dword [ebp - 0xc], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad04a8f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x4ad04a8f
cmp eax, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jle 0x4ad04a29
cmp dword [ebp - 4], 3
jl 0x4ad04a07
mov al, byte [esi]
cmp al, 0xa
jne 0x4ad049fd
cmp byte [esi + 1], 0xd
je 0x4ad04a4d
cmp al, 0xd
jne 0x4ad04a07
cmp byte [esi + 1], 0xa
je 0x4ad04a4d
movzx eax, byte [esi]
cmp byte [eax + 0x4ad1d480], bl
je 0x4ad04a20
cmp dword [ebp - 4], 1
je 0x4ad04a6a
sub dword [ebp - 4], 2
inc esi
inc esi
jmp 0x4ad04a24
dec dword [ebp - 4]
inc esi
cmp dword [ebp - 4], ebx
jg 0x4ad049eb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
push edi
push 1
push dword [0x4ad22874]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebp - 0xc]
mov byte [esi + 2], bl
sub esi, edi
push ebx
inc esi
push ebx
inc esi
add eax, esi
mov dword [ebp - 8], esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4ad04a29
lea eax, [ebp - 4]
push ebx
push eax
inc esi
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad04a8a
cmp dword [ebp - 4], ebx
je 0x4ad04a8a
inc dword [ebp - 8]
jmp 0x4ad04a29
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
xor eax, eax
jmp 0x4ad04a46
Function at 0x4ad06100
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x4ad0613b
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x4ad01610
add eax, 0x40
push str._nCMD_Internal_Error__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x4ad061ef
push edi
push dword [ebp + 8]
call fcn.4ad142ce
mov esi, eax
push 0x20
push esi
mov dword [ebp + 8], esi
call fcn.4ad19436
cmp eax, edi
je 0x4ad06158
mov word [eax], di
cmp esi, edi
je 0x4ad06169
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov dword [ebp - 0xc], eax
jmp 0x4ad0616c
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
cmp ebx, edi
je 0x4ad06184
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov dword [ebp - 4], eax
jmp 0x4ad06187
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jbe 0x4ad061d5
cmp dword [0x4ad22878], edi
jne 0x4ad06133
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x4ad061cc
push dword [ebp + 8]
mov di, word [ebx + eax*2]
and word [ebx + eax*2], 0
lea esi, [ebx + eax*2]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov word [esi], di
jne 0x4ad061ca
push ebx
push str._s_r_n
call fcn.4ad157af
and dword [ebp - 8], 0
pop ecx
pop ecx
xor edi, edi
mov eax, dword [ebp - 4]
lea ebx, [ebx + eax*2 + 2]
jmp 0x4ad06173
cmp dword [ebp - 8], edi
je 0x4ad061ec
push dword [ebp + 8]
push 1
push 0x23a9
call fcn.4ad1393b
add esp, 0xc
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4ad061f6
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
cmp dword [esp + 0x10], ebp
push edi
je 0x4ad06272
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
cmp esi, ebp
je 0x4ad06272
push ebp
push dword [esp + 0x18]
call fcn.4ad142ce
mov edi, eax
push 0x20
push edi
call fcn.4ad19436
cmp eax, ebp
je 0x4ad06229
mov word [eax], bp
cmp edi, ebp
je 0x4ad06237
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov ebp, eax
test esi, esi
je 0x4ad06247
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov ebx, eax
jmp 0x4ad06249
xor ebx, ebx
test ebx, ebx
jbe 0x4ad06272
cmp dword [0x4ad22878], 0
jne 0x4ad06272
push ebp
push esi
push edi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4ad0626c
lea esi, [esi + ebx*2 + 2]
jmp 0x4ad06237
lea eax, [esi + ebp*2 + 2]
jmp 0x4ad06274
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4ad06377
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
and word [0x4ad22b00], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov ebx, 0x800
push edi
mov esi, 0x4ad22b00
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4ad0646d
cmp byte [0x4ad1cf7c], al
je 0x4ad06471
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push 0x4ad1c260
push ebp
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4ad063ce
push eax
push esi
call fcn.4ad14ffd
jmp 0x4ad0646d
push str.ERRORLEVEL
push ebp
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4ad063e4
push dword [0x4ad1fbc0]
jmp 0x4ad0645e
push str.CMDEXTVERSION
push ebp
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4ad063f6
push 2
jmp 0x4ad0645e
push 0x4ad01634
push ebp
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4ad0640c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x4ad06473
push str.DATE
push ebp
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4ad06426
push ebx
push esi
push 1
push eax
call fcn.4ad052e5
jmp 0x4ad0643e
push str.TIME
push ebp
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4ad06449
push ebx
push esi
push 1
push eax
call fcn.4ad05535
and word [eax*2 + 0x4ad22b00], 0
jmp 0x4ad0646d
push 0x4ad01624
push ebp
call edi
pop ecx
test eax, eax
pop ecx
jne 0x4ad06471
call dword [sym.imp.MSVCRT.dll_rand]
push eax
push 0x4ad01370
push esi
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
mov eax, esi
jmp 0x4ad06473
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4ad07efb
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
jne 0x4ad07fa5
mov dword [ebp + 0xc], ebx
mov edi, 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
cmp esi, ebx
jne 0x4ad07f94
cmp word [ebp - 0x20c], 0x2e
jne 0x4ad07f83
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov esi, eax
cmp esi, ebx
jne 0x4ad0800a
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s_r_n
call fcn.4ad157af
add esp, 0xc
mov esi, eax
cmp dword [0x4ad22878], ebx
jne 0x4ad07fa0
inc dword [ebp + 0xc]
cmp esi, ebx
je 0x4ad07f1a
jmp 0x4ad0800a
cmp esi, 0x103
jne 0x4ad0800a
xor esi, esi
jmp 0x4ad0800a
push 1
pop eax
jmp 0x4ad0800c
push ebx
push dword [ebp + 0xc]
call fcn.4ad142ce
mov edi, eax
push 0x20
push edi
call fcn.4ad19436
cmp eax, ebx
je 0x4ad07fbf
mov word [eax], bx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov esi, eax
cmp esi, ebx
jne 0x4ad07ffa
lea eax, [ebp - 0x414]
push eax
push edi
push str._s_s_r_n
call fcn.4ad157af
add esp, 0xc
mov esi, eax
jmp 0x4ad0800a
push edi
push 1
push 0x23a3
call fcn.4ad1393b
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad01730
push 0x4ad1a570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp esi, edi
je 0x4ad080c0
cmp word [esi], di
je 0x4ad080c0
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x4ad080b4
mov dword [ebp - 4], edi
push edi
push edi
push edi
push 0x8000000
call dword [0x4ad1cf34]
push esi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4ad157af
add esp, 0xc
jmp 0x4ad080ae
or dword [ebp - 4], 0xffffffff
jmp 0x4ad080e5
push dword [ebp + 0xc]
push 1
push 0x235d
jmp 0x4ad080dd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4ad080e5
push dword [ebp + 0xc]
push 1
push 0x23a3
call fcn.4ad1393b
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4ad08248
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x4ad0836c
mov esi, 0x208
lea eax, [ebp - 0x214]
push esi
push eax
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
cmp edi, ebx
jne 0x4ad08355
cmp word [ebp - 0x214], 0x2e
je 0x4ad08338
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov edi, eax
lea eax, [ebp - 0x214]
push 0x4ad017a8
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
lea eax, [ebp - 0x41c]
pop ecx
push 0x4ad01768
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
lea eax, [ebp + 0xc]
pop ecx
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test ebx, ebx
jne 0x4ad08338
and word [ebp + edi*2 - 0x214], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x4ad01608
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4ad08338
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
push str._s_s_r_n
call fcn.4ad157af
add esp, 0xc
xor ebx, ebx
cmp dword [0x4ad22878], ebx
jne 0x4ad08368
inc dword [ebp - 4]
lea eax, [ebp - 0x214]
push esi
push eax
push dword [ebp - 4]
jmp 0x4ad08272
cmp edi, 0x103
jne 0x4ad08426
xor edi, edi
jmp 0x4ad08426
push 1
jmp 0x4ad08384
cmp word [eax], 0x2e
jne 0x4ad0838a
push eax
push 1
push 0x23a5
call fcn.4ad1393b
add esp, 0xc
push 0x7b
pop eax
jmp 0x4ad08428
push ebx
push eax
call fcn.4ad142ce
mov esi, eax
push 0x20
push esi
call fcn.4ad19436
cmp eax, ebx
je 0x4ad083a2
mov word [eax], bx
push esi
push 0x4ad0173c
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, eax
cmp edi, ebx
jne 0x4ad08416
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x4ad01608
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x4ad08416
lea eax, [ebp - 0x41c]
push eax
push esi
push str._s_s_r_n
call fcn.4ad157af
jmp 0x4ad08423
push esi
push 1
push 0x23a5
call fcn.4ad1393b
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4ad0842f
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
lea eax, [ebp - 0x214]
push dword [ebp + 0xc]
push 0x4ad0173c
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4ad0850f
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4ad084f9
cmp word [eax], di
je 0x4ad084f9
lea esi, [ebp - 0x214]
mov ax, word [esi]
cmp ax, di
je 0x4ad0849c
cmp ax, 0x5c
je 0x4ad0849c
inc esi
inc esi
jmp 0x4ad0848a
lea eax, [ebp - 0xc]
mov bx, word [esi]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x2000000
push edi
push edi
lea eax, [ebp - 0x214]
push edi
push eax
push dword [ebp + 8]
mov word [esi], di
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x4ad084df
cmp bx, di
je 0x4ad0850f
push dword [ebp - 4]
mov word [esi], bx
inc esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ad0848a
push dword [ebp + 0xc]
push 1
push 0x23a5
call fcn.4ad1393b
mov eax, dword [ebp - 8]
add esp, 0xc
jmp 0x4ad08589
push dword [ebp + 0xc]
push 1
push 0x23a5
call fcn.4ad1393b
add esp, 0xc
mov eax, esi
jmp 0x4ad08589
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x4ad0855c
cmp word [esi], di
je 0x4ad0855c
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 2
push edi
push 0x4ad01608
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x4ad08550
push esi
push dword [ebp + 0xc]
push str._s_s_r_n
call fcn.4ad157af
jmp 0x4ad0857b
push dword [ebp + 0xc]
push 1
push 0x235d
jmp 0x4ad08576
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
cmp ebx, edi
je 0x4ad0857e
push dword [ebp + 0xc]
push 1
push 0x23a5
call fcn.4ad1393b
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc