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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x479590]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b851
cmp byte [ebx], 0xa
jne 0x41b851
or byte [eax + edi + 0x28], 4
jmp 0x41b856
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b954
mov al, byte [edx]
cmp al, 0x1a
je 0x41b936
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b885
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b8aa
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b8b4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41b867
jmp 0x41b954
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b931
cmp dword [ebp - 0xc], 0
je 0x41b931
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x479590]
test byte [eax + edi + 0x28], 0x48
je 0x41b90b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b8f6
mov byte [esi], dl
jmp 0x41b907
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x479590]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b954
cmp byte [ebp - 1], 0xa
jne 0x41b91a
cmp esi, ebx
jne 0x41b91a
mov byte [esi], 0xa
jmp 0x41b953
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c391
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b954
mov byte [esi], 0xd
jmp 0x41b953
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x479590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b950
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b954
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b95d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x479590]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b9a0
cmp word [esi], dx
jne 0x41b9a0
or byte [edi + eax + 0x28], 4
jmp 0x41b9a5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41baf8
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41bad8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b9e7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ba1d
cmp eax, edx
jae 0x41ba29
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41b9bf
jmp 0x41baf8
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bad4
cmp dword [ebp - 0x14], 0
je 0x41bad4
mov eax, dword [ebx*4 + 0x479590]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41baac
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ba75
mov word [esi], cx
jmp 0x41baa8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x479590]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x479590]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x479590]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41baf8
pop ebx
cmp word [ebp - 4], bx
jne 0x41babd
cmp esi, dword [ebp + 0xc]
jne 0x41babd
mov word [esi], bx
jmp 0x41baf5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c391
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41baf8
push 0xd
jmp 0x41baf1
mov ecx, dword [ebx*4 + 0x479590]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41baef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41baf8
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a4286
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edx
mov eax, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0xc]
or edx, edx
je 0x4a4283
inc eax
mul dword [ebp + 0xc]
pop edx
leave
ret 8

Function at 0x4a4959
Capabilities:
Parse pe header

Disassembly:
pop ebx
sub ebx, 0x4037aa
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0xc]
push 0
push 0
push dword [edx + 4]
call dword [ebx + fcn.004012f9]
or eax, eax
je 0x4a494d
mov dword [ebp - 0xc], eax
push 0xfa0
push eax
call dword [ebx + fcn.004013f5]
or eax, eax
jne 0x4a494d
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
call dword [ebx + fcn.004012ad]
popal
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x4a49d3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop ebx
sub ebx, 0x403860
mov dword [ebp - 0x10], 0
call fcn.004a33f3
or eax, eax
je 0x4a4a30
lea ecx, [ebx + 0x40369e]
push 0x1f0fff
push ecx
lea eax, [ebp - 0x11c]
push eax
call fcn.004a489b
or eax, eax
je 0x4a4a30
call fcn.004a495e
or eax, eax
je 0x4a4a30
mov dword [ebp - 4], eax
mov eax, 0
mov ax, 2
push eax
push dword [ebp - 4]
call dword [ebx + fcn.00401261]
or eax, eax
je 0x4a4a30
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x11c]
push eax
call fcn.004a48fb
or eax, eax
je 0x4a4a30
mov dword [ebp - 0x10], 1
popal
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x4a4a86
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax + 0xc]
pop dword [edi + 0xb4]
push dword [eax + 8]
pop dword [edi + 0xb8]
push eax
pop dword [edi + 0xc4]
popal
mov eax, 0
leave
ret 0x10
Function at 0x40eac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40eae2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40eae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ead8
mov eax, 1
add ebx, ebx
jne 0x40eafb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40eaf0
jne 0x40eb0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40eaf0
xor ecx, ecx
sub eax, 3
jb 0x40eb20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40eb92
mov ebp, eax
add ebx, ebx
jne 0x40eb2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40eb38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40eb5c
inc ecx
add ebx, ebx
jne 0x40eb48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40eb3d
jne 0x40eb59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40eb3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40eb7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40eb6d
jmp 0x40eade
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40eb7c
add edi, ecx
jmp 0x40eade
pop esi
mov edi, esi
mov ecx, 0x169
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40eb9a
cmp byte [edi], 2
jne 0x40eb9a
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 0x40eb9f
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40ec0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ebcc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe030]
or eax, eax
je 0x40ec08
mov dword [ebx], eax
add ebx, 4
jmp 0x40ebe9
call dword [esi + 0xe02c]
mov ebp, dword [esi + 0xe034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40ec42
sub esp, 0xffffff80
jmp 0x4059e5

Function at 0x1017b960
Capabilities:
Encode data using xor

Disassembly:
aad 0x5e
insb byte es:[edi], dx
das
pop edx
push ecx
xchg esp, eax
jl 0x1017b8ed
add esi, esp
test ebp, edi
salc
cmpsd dword [esi], dword es:[edi]
lahf
cmp dword [eax], esi
mov ah, 0x12
ficom word [ebx - 0x57]
sub dl, byte [ebx - 0x3db54b98]
sub ebp, edi
or dword [ecx - 0xc], ebp
test ebp, edi
salc
or eax, 0x6ec6db3a
imul ecx, dword [0x52aa7c6], 0xffffff8d
test al, 0x2a
add eax, 0x45f1a7c6
retf 0x2aa7
Function at 0x92fdf4
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x92fdfa
pop ebp
sub ebp, 6
sub ebp, 0x52fdf4
jmp 0x92fe58
jmp 0x92fe61
mov eax, 0x52fdf4
add eax, ebp
add eax, 0x93
mov ecx, 0x62d
mov edx, 0x87a85726
xor byte [eax], dl
inc eax
dec ecx
jne 0x92fe78
jmp 0x92fe8b
dec esp
dec si
dec esi
ljmp 0xfe2d
Function at 0x10004550
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x10004577
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100045b6
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100045f0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100045cd
push esi
call fcn.10015a84
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x100045cf
xor eax, eax
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x1c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x10004600
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x10004627
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10004666
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000468c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x10

Function at 0x100046a0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
test eax, eax
push edi
mov dword [esp + 8], 0
mov esi, 0x2001f
mov dword [esp + 0xc], 0
je 0x100046c7
mov esi, 0x2011f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push esi
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10004706
lea edx, [esp + 8]
push edx
push esi
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000472c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret 0x14
Function at 0x10004740
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1000477d
lea ecx, [esp + 8]
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100047fd
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x100047e7
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.1007de1a
mov esi, eax
add esp, 4
test esi, esi
je 0x100047e7
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8

Function at 0x10004810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10004852
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1000488e
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret 8

Function at 0x100048a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 4]
mov dword [esp + 0xc], 0
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x100048ea
lea ecx, [esp + 4]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10004926
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [esp + 0xc]
pop esi
add esp, 0x10
ret 8
Function at 0x100049ed
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008c7eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, ecx
push 1
call fcn.10004db0
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebx
je 0x10004b32
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x26a]
mov word [esp + 0x268], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x680]
stosw word es:[edi], ax
lea eax, [esp + 0x268]
push eax
push ecx
mov ecx, esi
call fcn.10005010
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x268]
stosw word es:[edi], ax
push edx
push ebx
lea eax, [esp + 0x470]
push str._s_s
push eax
call fcn.10015b9e
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x468]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10004b28
mov esi, dword [esp + 0x684]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x44]
push 0x1009f6f0
push eax
call ebx
test eax, eax
je 0x10004b0d
lea ecx, [esp + 0x44]
push 0x1009f6ec
push ecx
call ebx
test eax, eax
je 0x10004b0d
test byte [esp + 0x18], 0x10
jne 0x10004b0d
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.1007d809
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x680], ebp
call fcn.1007c1e8
lea ecx, [esp + 0x10]
mov dword [esp + 0x678], 0xffffffff
call fcn.1007d749
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10004aad
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x14]
push ebx
call fcn.1007de43
add esp, 4
pop edi
mov ecx, dword [esp + 0x66c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x66c
ret 8
Function at 0x1000a130
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x1000a171
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x218]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
test al, 1
je 0x1000a187
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x1000a206
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.100157ea
add esp, 0x10
lea eax, [esp + 0x14]
xor esi, esi
push eax
call ebx
cmp eax, 0xffffffff
je 0x1000a1fa
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.100157ea
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x1000a228
cmp eax, 0xffffffff
jne 0x1000a1ca
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x218]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x204
ret

Function at 0x1000a240
Capabilities:
Get graphical window text

Disassembly:
call fcn.10026c30
test eax, eax
je 0x1000a25f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x1000a2e0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1000a2e0
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.1007de1a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000a2e0
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x1000a2e0
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.10007210
add esp, 0x10
test eax, eax
je 0x1000a2e0
push esi
call fcn.10015a84
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x1000a890
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1008ccc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea ecx, [esp]
call fcn.10056730
push 0x20019
push str.SOFTWARETECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.100568a0
test eax, eax
jne 0x1000a902
push str.open_reg_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.10056820
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0
push str.IsServerExpired
lea ecx, [esp + 8]
call fcn.10056a40
cmp eax, 1
jne 0x1000a8e0
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.10056820
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1000a940
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1008cceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esp + 4], esi
mov dword [esi + 0x48], 0x1009192c
mov dword [esi + 0x4c], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
mov dword [esp + 0x10], eax
mov dword [esi], 0x10091928
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], eax
call fcn.1000aa60
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret