joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc477
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebx], vtable.CAttrBase.0
mov dword [ebx + 4], esi
mov dword [ebx + 0x18], edx
mov eax, dword [edx + 8]
mov ax, word [eax + 8]
mov word [ebx + 8], ax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebx], vtable.CAttrResident.0
mov dword [ebx + 0x1c], esi
movzx eax, word [esi + 0x14]
add eax, esi
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x24], eax
mov dword [ebp - 4], 1
mov dword [ebx + 0x28], vtable.CSList_class_CIndexEntry_.0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x2c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x20]
mov dword [ebx], vtable.CAttr_IndexRoot.1.0
mov dword [ebx + 0x28], vtable.CAttr_IndexRoot.0
mov dword [ebx + 0x3c], ecx
cmp dword [ecx], 0x30
jne 0x47e310
mov esi, dword [ecx + 0x10]
add esi, 0x10
add esi, ecx
movzx eax, word [esi + 8]
mov dword [ebp + 8], eax
cmp eax, dword [ecx + 0x14]
ja 0x47e310
push 0x1c
call fcn.004a9ec5
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 3
mov dword [edi], vtable.CFileName.0
mov dword [edi + 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 4
mov dword [edi], vtable.CIndexEntry.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], esi
cmp word [esi + 0xa], 0
je 0x47e2c1
lea eax, [esi + 0x10]
mov ecx, edi
mov dword [edi + 4], eax
call fcn.0047de40
mov byte [ebp - 4], 2
push 8
call fcn.004a9ec5
add esp, 4
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [ebx + 0x34]
test ecx, ecx
jne 0x47e2e4
mov dword [ebx + 0x30], eax
jmp 0x47e2e6
mov dword [ecx], eax
inc dword [ebx + 0x2c]
mov dword [ebx + 0x34], eax
test byte [esi + 0xc], 2
jne 0x47e310
movzx eax, word [esi + 8]
mov ecx, dword [ebp + 8]
add esi, eax
movzx eax, word [esi + 8]
add ecx, eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp + 8], ecx
cmp ecx, dword [eax + 0x14]
jbe 0x47e264
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4809a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccb2d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], dl
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [0x5120f4], 0x81d0
lea ecx, [ebp - 0x2c]
call fcn.00484560
mov byte [ebp - 4], 1
push 0
call fcn.004b3e78
add esp, 4
mov edi, eax
cmp byte [ebp - 0x11], 0
je 0x480ac5
mov dword [ebp - 0x18], 0
sub esp, 8
lea ecx, [ebp - 0x38]
call fcn.0047a100
mov ecx, eax
mov byte [ebp - 4], 2
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [ebx]
push dword [eax]
mov eax, dword [ecx + 8]
call eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
xor eax, 0x33
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00485960
mov byte [ebp - 4], 3
push dword [eax]
call fcn.004b4891
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00460950
lea eax, [esi + 0x3f480]
cmp edi, eax
jge 0x480aa7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004848f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0x4eab90
push 0x64
lea eax, [ebp - 0x1c]
push eax
call fcn.00495730
add esp, 0x10
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x18]
jmp 0x480b14
push 0xa
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00485960
mov byte [ebp - 4], 5
push dword [eax]
call fcn.004b4891
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00460950
lea eax, [esi + 0x3f480]
cmp edi, eax
jl 0x480a89
push edi
push 0x4eab90
push 0x64
lea eax, [ebp - 0x1c]
push eax
call fcn.00495730
add esp, 0x10
mov byte [ebp - 4], 6
push eax
push 0xa
lea ecx, [ebp - 0x2c]
call fcn.00485890
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00460950
push 0xc
call fcn.004a9ec5
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 7
mov byte [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x20], esi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x480b82
lea eax, [ecx + esi*4]
push eax
mov ecx, edi
call fcn.0047ab80
inc esi
jmp 0x480b63
push 0
push 0
push edi
push 0x480220
push 0
push 0
call fcn.004b3c5d
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004848f0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484ee0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd6b5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x11], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004862e0
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0xd], 0
jne 0x484f3d
mov ebx, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jb 0x484f3d
cmp eax, dword [edi]
jne 0x48501d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00485cc0
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x485105
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 8]
push ebx
push str.CREATE_TABLE_scanned2__x_file_id_INTEGER__file_time_INTEGER__detection_name_TEXT__t_on_INTEGER__
lea eax, [ebp - 0x18]
push eax
call fcn.00485ca0
add esp, 0xc
mov byte [ebp - 4], 2
lea esi, [edi + 8]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x18]
mov ecx, dword [esi]
call fcn.00490280
mov dword [ebp - 4], 1
jmp 0x484fbb
push ebx
push str.CREATE_INDEX_fileIndex_ON_scanned2__x_file_id__file_time__
lea eax, [ebp - 0x18]
push eax
call fcn.00485ca0
add esp, 0xc
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x18]
push esi
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
call fcn.00490280
mov dword [ebp - 4], 1
jmp 0x484ffe
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48501d
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov dword [ebp - 4], 7
lea ecx, [ebp + 8]
call fcn.00460ac0
mov byte [ebp - 4], 8
push ebx
push str.SELECT_detection_name_FROM_scanned2__x_WHERE_file_id____AND_file_time____AND_t_on_____
lea eax, [ebp + 8]
push eax
call fcn.00485ca0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [edi + 8]
call fcn.00490210
mov byte [ebp - 4], 9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
lea ecx, [ebp - 0x38]
call fcn.004901a0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 2
lea ecx, [ebp - 0x38]
call fcn.004901a0
push 0
call fcn.004b3e78
add esp, 4
sub eax, 0x15180
push eax
push 3
lea ecx, [ebp - 0x38]
call fcn.00490160
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048ff40
mov byte [ebp - 4], 0xa
cmp byte [ebp - 0x24], 0
jne 0x4850bd
sub esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0048fa60
push eax
mov ecx, dword [ebp + 0x1c]
call fcn.0046a190
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.0048f940
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.0048fd00
mov byte [ebp - 4], 7
lea ecx, [ebp + 8]
call fcn.00460950
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x80004005
call fcn.00456c80
int3
Function at 0x4886a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce455
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4ff080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x512078]
test eax, eax
je 0x4886d8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 0x512020
push 0x489980
push 0
push 0
call fcn.004b3c5d
add esp, 0x18
mov dword [0x512078], eax
call fcn.00494bc0
mov edx, 0x4eb3f4
lea ecx, [ebp - 0x18]
call fcn.00475360
mov dword [ebp - 4], 0
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x48884d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0x4eb404
call fcn.0046a7a0
test al, al
jne 0x48874e
push 2
push 0x4eb404
lea ecx, [ebp - 0x10]
call fcn.0046aa10
mov byte [ebp - 4], 2
sub esp, 8
lea ecx, [ebp - 0x14]
call fcn.0048a770
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push 0x511fd0
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00495c60
add esp, 8
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x488799
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4887b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4887d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00487f40
call fcn.00488090
call fcn.004881e0
lea ecx, [ebp - 0x24]
call fcn.00484560
mov dword [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x24]
call fcn.00484cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004848f0
call fcn.004a88b0
mov esi, eax
test esi, esi
je 0x48883b
mov ecx, esi
call fcn.004a89d0
test al, al
jne 0x48883b
push 0
mov ecx, esi
call fcn.004a86c0
test al, al
je 0x48883b
push 0x487780
mov ecx, esi
call fcn.004a8740
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00456c80
int3
Function at 0x489950
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
test eax, eax
je 0x489963
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push esi
push 0x489980
push 0
push 0
call fcn.004b3c5d
add esp, 0x18
mov dword [esi + 0x58], eax
pop esi
ret
Function at 0x48bc00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cecbe
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], 0
call fcn.00456f30
mov ecx, eax
test ecx, ecx
je 0x48bdef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x30], 1
call fcn.0048b6f0
mov edi, dword [0x511ff0]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x511ff0
push eax
call fcn.0048c2e0
mov ecx, dword [ebp - 0x44]
cmp byte [ecx + 0xd], 0
jne 0x48bc98
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x10]
jge 0x48bc9a
mov ecx, edi
cmp ecx, edi
je 0x48bdcf
lea eax, [ebp + 0xc]
mov ecx, 0x511ff0
push eax
call fcn.0048be00
push eax
lea ecx, [ebp - 0x28]
call fcn.00460410
mov dword [ebp - 4], 2
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x48bd04
mov ecx, dword [ebp + 0xc]
shl ecx, 4
add ecx, dword [ebp + 0xc]
movzx eax, cx
mov dword [ebp - 0x34], eax
add eax, ebx
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
lea edx, [ebp - 0x28]
movzx edi, ax
cmova esi, dword [ebp - 0x28]
cmova edx, dword [ebp - 0x28]
mov ax, word [esi + ebx*2]
xor ax, di
mov word [edx + ebx*2], ax
inc ebx
mov eax, dword [ebp - 0x34]
cmp ebx, dword [ebp - 0x18]
jb 0x48bcd6
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 7
lea edx, [ebp - 0x28]
jbe 0x48bd18
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x48bd18
xor ecx, ecx
jmp 0x48bd2f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48bd20
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00461270
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
cmova edi, dword [ebp - 0x28]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
lea eax, [ecx + eax*2]
mov ecx, dword [edx]
cmp ecx, dword [esi]
je 0x48bd86
cmp cl, byte [esi]
jne 0x48bd8a
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x48bd8a
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x48bd8a
mov cl, byte [edx + 3]
cmp cl, byte [esi + 3]
jne 0x48bd8a
xor edx, edx
jmp 0x48bd8f
sbb edx, edx
or edx, 1
mov ecx, eax
sub ecx, edi
test edx, edx
jne 0x48bda7
and ecx, 0xfffffffe
push ecx
push edx
push edi
call fcn.004abe70
add esp, 0xc
jmp 0x48bdc0
inc ecx
xor edx, edx
shr ecx, 1
cmp edi, eax
cmova ecx, edx
test ecx, ecx
je 0x48bdc0
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00460bf0
mov esi, dword [ebp - 0x2c]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00456c80
int3
Function at 0x48c650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0xc], edi
test esi, esi
je 0x48c706
cmp esi, 0x40
jb 0x48c6ee
lea eax, [esi - 1]
lea edx, [esi - 1]
add eax, edi
add edx, ebx
cmp ebx, eax
ja 0x48c684
cmp edx, edi
jae 0x48c6ee
movaps xmm2, xmmword [str.gggggggggggggggg]
lea edx, [edi + 0x30]
mov eax, esi
mov esi, edi
and eax, 0xffffffc0
sub esi, ebx
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebx + 0x10]
movups xmm0, xmmword [edx - 0x30]
lea edx, [edx + 0x40]
add ecx, 0x40
movaps xmm1, xmm2
lea eax, [eax + 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [edi + eax - 0x40]
xorps xmm0, xmm2
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [edx - 0x50]
xorps xmm0, xmm2
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [edx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 8]
jb 0x48c6a6
mov edi, dword [ebp - 0xc]
mov dword [ebp + 8], ecx
cmp ecx, esi
jae 0x48c706
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, 0x67
mov byte [eax - 1], cl
sub esi, 1
jne 0x48c6f5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48c710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push 0
push eax
push esi
mov edi, edx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48c73a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], esi
je 0x48c74a
pop edi
mov eax, 0x1e
pop esi
mov esp, ebp
pop ebp
ret
push esi
mov edx, edi
mov ecx, edi
call fcn.0048c650
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48ce00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cef4e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x2c], 0
cmp dword [edi + 0x14], 7
jbe 0x48ce3e
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48ce62
mov esi, ecx
nop word [eax + eax]
cmp word [esi], 0x5c
je 0x48cf81
add esi, 2
sub eax, 1
jne 0x48ce50
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x48cf64
nop
mov dword [ebp - 4], 0
lea ecx, [esi + 1]
cmp dword [edi + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmovb ecx, dword [edi + 0x10]
mov eax, edi
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jbe 0x48cea0
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00463250
or dword [ebp - 0x2c], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48ced8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc esi
mov ecx, edi
cmp dword [edi + 0x14], 7
jbe 0x48cee3
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
cmp esi, eax
jae 0x48cf03
sub eax, esi
lea esi, [ecx + esi*2]
je 0x48cf03
cmp word [esi], 0x5c
je 0x48cf92
add esi, 2
sub eax, 1
jne 0x48cef1
or esi, 0xffffffff
and dword [ebp - 0x2c], 0xfffffffe
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x48cf47
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x48cf3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48cfa3
push ecx
push edx
call fcn.004aa25b
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x48ce70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x48ce62
sub esi, ecx
sar esi, 1
jmp 0x48ce65
test esi, esi
je 0x48cf03
sub esi, ecx
sar esi, 1
jmp 0x48cf06
call fcn.004b35c4
int3
Function at 0x48d870
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ebx, dword [esi + 0xc]
mov ecx, ebx
and ebx, 0x100
and ecx, 0xfffffcff
neg ebx
mov dword [ebp - 8], ecx
sbb ebx, ebx
and ebx, 0xffffff00
add ebx, 0xf023f
test byte [esi + 8], 1
jne 0x48d903
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [esi + 0x10]
push eax
push ecx
call edx
mov edi, eax
lea eax, [esi + 0x218]
test edi, edi
jne 0x48d8e5
push 2
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
mov edi, eax
test edi, edi
jne 0x48d8df
or dword [esi + 8], 1
jmp 0x48d8ec
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x48d8fa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 8]
test byte [esi + 8], 2
jne 0x48d96d
test edi, edi
jne 0x48d96d
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [esi + 0x10]
push eax
push ecx
call edx
test eax, eax
jne 0x48d95f
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x48d946
or dword [esi + 8], 2
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
mov esi, 0x15e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x15e
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48dae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, 0x108
push esi
push edi
mov esi, edx
lea edi, [ebx + 0x18]
lea eax, [ebx + 0x24]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x434], 0
test eax, eax
je 0x48dc24
mov ecx, 0x104
cmp word [eax], 0
je 0x48db1f
add eax, 2
sub ecx, 1
jne 0x48db11
test ecx, ecx
je 0x48dc24
lea esi, [ebx + 0x22c]
test esi, esi
je 0x48dc24
mov ecx, 0x104
mov eax, esi
nop dword [eax]
cmp word [eax], 0
je 0x48db4e
add eax, 2
sub ecx, 1
jne 0x48db40
test ecx, ecx
je 0x48dc24
test byte [edx + 4], 1
je 0x48db92
mov ecx, esi
call fcn.0048e630
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48db7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, ebx
call fcn.0048e040
test eax, eax
je 0x48dc12
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [edx + 0x41c]
test eax, eax
je 0x48dc24
mov esi, 0x100
cmp word [eax], 0
je 0x48dbb3
add eax, 2
sub esi, 1
jne 0x48dba5
xor eax, eax
mov edi, 0x80070057
test esi, esi
cmovne edi, eax
je 0x48dc24
mov eax, 0x100
sub eax, esi
add eax, eax
neg esi
sbb esi, esi
and esi, eax
add esi, 2
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebx + 4], ecx
test ecx, ecx
je 0x48dc1b
mov eax, dword [ebp + 8]
mov edx, esi
shr edx, 1
je 0x48dc24
push ecx
push dword [eax + 0x41c]
push ecx
call fcn.0048c600
test eax, eax
js 0x48dc24
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov dword [ebx + 0x434], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x57
pop ebx
pop ebp
ret 4
Function at 0x48df40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
and eax, 3
cmp al, 3
jne 0x48dfed
mov edx, dword [esi + 0x20]
lea eax, [ebp - 4]
push edi
push eax
mov eax, edx
mov dword [ebp - 4], 0
and eax, 0x100
neg eax
sbb eax, eax
and edx, 0xfffffcff
and eax, 0xffffff00
add eax, 0xf023f
push eax
push 0
lea eax, [esi + 0x24]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x48dfd5
cmp byte [ebp + 8], al
je 0x48dfbc
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48dfbc
lea edi, [eax + 0x50]
jmp 0x48dfd5
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x14]
push 0
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x48dfe3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc