joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6edaa2dd
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x6edaa2f7
mov ecx, dword [eax]
jmp 0x6edaa2f9
xor ecx, ecx
cmp ebx, ecx
jge 0x6edaa350
push ebx
push eax
call dword [0x6ed833c0]
push dword [ebp + 8]
mov esi, eax
push dword [esi + 8]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
je 0x6edaa34b
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.6edaa18d
mov edi, eax
test edi, edi
jl 0x6edaa34b
mov ecx, dword [ebp + 0x10]
push 0
push dword [ebp - 4]
call fcn.6ed83451
mov edi, eax
test edi, edi
jge 0x6edaa34b
cmp dword [ebp - 4], 0
je 0x6edaa34b
mov ecx, dword [ebp - 4]
push 1
call fcn.6ed82fc7
inc ebx
test edi, edi
jge 0x6edaa2ea
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x6edabc49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
shr eax, 4
inc eax
movzx eax, ax
push eax
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x6edabccb
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x6edabccb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x6edabcc4
and dword [ebp + 0xc], 0xf
jbe 0x6edabc97
mov ecx, dword [ebp + 0xc]
dec ecx
movzx edx, word [eax]
lea eax, [eax + edx*2 + 2]
jne 0x6edabc8d
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x6edabcb3
push esi
movzx esi, word [eax]
neg esi
sbb esi, esi
lea edx, [eax + 2]
and esi, edx
mov dword [ecx], esi
mov ecx, dword [ebp + 0x18]
pop esi
jmp 0x6edabcba
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x6edabcc0
mov ax, word [eax]
mov word [ecx], ax
xor eax, eax
jmp 0x6edabcd0
mov eax, 0x80004005
jmp 0x6edabcd0
call fcn.6edabeea
pop ebp
ret 0x14

Function at 0x6edac8bd
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x6edac92f
cmp dword [ebp + 0x14], esi
je 0x6edac92f
push 2
push 0xc
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetAclInformation]
test eax, eax
je 0x6edac92f
push edi
mov edi, dword [ebp - 0xc]
cmp edi, esi
jbe 0x6edac92e
lea eax, [ebp + 8]
push eax
push esi
push ebx
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_GetAce]
mov eax, dword [ebp + 8]
mov cl, byte [ebp + 0xc]
cmp cl, byte [eax]
jne 0x6edac929
mov cl, byte [ebp + 0x10]
cmp cl, byte [eax + 1]
jne 0x6edac929
add eax, 8
push eax
push dword [ebp + 0x14]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
je 0x6edac929
push esi
push ebx
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_DeleteAce]
dec edi
dec esi
inc esi
cmp esi, edi
jb 0x6edac8f0
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
push eax
mov esp, 0x9d206b5d
sbb al, 0xc9
ret
std
pop esp
and dword [edx], ebp
mov byte [0xe9eb36a2], al
mov byte [0x1ca450fc], al
leave
call 0xff78e573
js 0x414a52
mov ebp, 0x96a91505
inc dword [edx]
xchg esp, eax
or ecx, dword [edi*8 + 0x3be54008]
or byte [eax - 0x1b], al
cmp ebx, dword [eax + 0x19]
push ecx
mov esp, 0x2d68c85d
lahf
or byte [eax - 0x1b], al
cmp ebx, dword [eax + 0x19]
push ecx
mov esp, 0x2d68c85d
lahf
mov eax, dword [eax]
xchg edi, eax
stosd dword es:[edi], eax
and dword [edx + 0x38], edi
mov dword [0xf9155036], eax
paddd mm0, qword [edx]
in al, 0xc9
loopne 0x414a9f
pop ebp
jae 0x414ae7
sbb eax, 0xcdb8c91f
cmp eax, 0xd150088
inc dword ss:[edx]
int 0x3d
mov byte [eax], al
adc eax, 0x2ff360d
mov ch, 0x92
inc dword [edx]
mov byte [0x1c9d1071], al
leave
call 0xff78262b
xor al, 0x9e
leave
add ch, bh
pop ebp
leave
add ch, bh
pop ebp
leave
add ch, bh
pop ebp
leave
add ch, bh
mov byte [0x5d02ff36], al
leave
add ch, bh
mov byte [0x5d02ff36], al
leave
add bl, byte [ebp - 0x37]
add ch, bh
pop ebp
leave
add ch, bh
pop ebp
leave
add ch, bh
pop ebp
leave
adc dword [ecx], 0x59
push cs
add al, 0xd9
mov cl, 0x61
inc edx
std
push esp
xor cl, byte [edi - 0x6b]
dec edi
xchg ebp, eax
pop ebp
mov ecx, 0x8e13fd41
mov eax, 0x86f3df25
inc esi
xchg edx, eax
cwde
pushal
mov eax, 0x44463674
pop ebp
fld dword [eax - 3]
fmul qword [esi]
add ebp, edi
pop ebp
leave
adc dword [ebx], 0x1f08bfb4
fsub qword [edi]
add ebp, edi
pop ebp
leave
mov edx, 0x8816dd
jl 0x414b1b
imul ecx, esp, 0xffffffc9
jns 0x414b36
call dword [0xfd00c976]
out 0xe3, al
insd dword es:[edi], dx
cwde
nop
sub dword [ebx], ecx
salc
frstor dword [esi + edi*2]
cdq
int 0x81
cmp bl, ch
stc
aaa
mov ebp, 0xfd00dbb5
pop ebp
enter 0xfffffffffffff4fe, 0xffffffffffffffaa
enter 0x34ff, 0x16
loopne 0x414b76
aas
push ecx
leave
sub dword [ebx], ecx
push esp
dec ebx
int3
Function at 0x402d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
mov dword [0x5fe8b8], 0x5cf5f4
push 0
push eax
mov dword [0x5fe8bc], 0
mov dword [0x5fe8c0], 0
call fcn.00568420
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.CanonMFSG_LOG.DLL
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0056edac
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5fe8bc], eax
test eax, eax
je 0x402da9
push str.GetScanGearLogInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5fe8c0], eax
mov ecx, dword [ebp - 4]
mov eax, 0x5fe8b8
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret

Function at 0x404760
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587320
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5f50fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp dword [esi + 0x640], 0
je 0x404846
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5fe8b4]
cmp eax, dword [ecx + 4]
jg 0x4048cf
push str.asyncGetSupportLangList_is_working__wait...
push str.CLangList::asyncGetSupportLangList
push str.c:users_richarddocuments_scancomposite_newlanglistlanglist.cpp
push 1
push 0x5fe8b8
call fcn.00402f20
add esp, 0x14
push 0
push dword [esi + 0x640]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404811
push str.Timeout
push str.CLangList::asyncGetSupportLangList
push str.c:users_richarddocuments_scancomposite_newlanglistlanglist.cpp
push 1
call fcn.00402e10
push eax
call fcn.00402f20
add esp, 0x14
jmp 0x404879
push str.Ok__asyncGetSupportLangList_is_ready
push str.CLangList::asyncGetSupportLangList
push str.c:users_richarddocuments_scancomposite_newlanglistlanglist.cpp
push 1
call fcn.00402e10
push eax
call fcn.00402f20
add esp, 0x14
push dword [esi + 0x640]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x640], 0
push 0x5cfa60
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
mov dword [esi + 0x640], eax
mov eax, dword [esi + 0x648]
push 0
push 0x4040c0
mov dword [esi + 0x64c], eax
call fcn.0056ef75
add esp, 0xc
mov eax, dword [esi + 0x640]
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 0x5fe8b4
call fcn.00566005
add esp, 4
cmp dword [0x5fe8b4], 0xffffffff
jne 0x4047bd
call fcn.00402d10
push 0x5961f0
call fcn.00566392
push 0x5fe8b4
call fcn.00565fbb
add esp, 8
jmp 0x4047bd
Function at 0x405b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5873b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5f50fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x405c6a
cmp dword [ebp + 0xc], edi
je 0x405c6a
push 0x5cfa60
push edi
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
push 0x2a0
mov dword [ebp - 0x14], edi
call fcn.00422664
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405c6a
push 0x90
push 0
push ebx
call fcn.00568420
push 0x208
lea eax, [ebx + 0x94]
push 0
push eax
call fcn.00568420
push dword [ebp + 8]
mov dword [ebx + 0x29c], esi
lea esi, [ebx + 0x94]
push 0x104
push esi
mov dword [ebx + 0x90], edi
call fcn.0056cddc
push 0x5cf7cc
push 0x104
push esi
call fcn.0056cddc
push dword [ebp + 0xc]
push 0x104
push esi
call fcn.0056cddc
push str..DLL
push 0x104
push esi
call fcn.0056cddc
add esp, 0x48
push dword [ebp + 0x10]
push 8
push ebx
call fcn.0056cddc
push ebx
push 0
push 0x405880
call fcn.0056ef75
add esp, 0x18
jmp 0x405c6a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042f53b

Function at 0x407610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407669
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407669
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40765a
cmp esi, edx
jae 0x407669
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407648
cmp esi, edx
jae 0x407669
cmp word [esi], 0
je 0x407669
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40bd20
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je case.default.0x40bd4b
mov eax, dword [ebp + 8]
cmp eax, 5
ja case.default.0x40bd4b
jmp dword [eax*4 + 0x40be70]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0xc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0xc
push dword [ecx + 0x644]
jmp 0x40be38
push 1
push 0x26
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40be44
push str.Canon
push 0x104
push esi
call fcn.0056cddc
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0xc
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00568420
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 2
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push esi
call fcn.0056cf1c
add esp, 0x10
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0xc
push dword [ecx + 0x640]
push dword [ebp + 0x10]
push esi
call fcn.0056b3b9
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410260
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x410268
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x410263
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x41024d
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x410255
cmp edx, ebx
jne 0x4103a3
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
or byte [edx - 0x3f], dh
or byte [edx - 0x3f], dh
add eax, dword [eax + 4]
jmp 0x410211
mov dword [ebp + 0xc], ebx
jmp 0x410273
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41028b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4102a9
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x410307
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4102ee
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4102f7
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x410301
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4102e3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x41026d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x410354
dec eax
je 0x41034b
sub eax, 3
je 0x410342
mov dword [ebp - 4], 0x40
jmp 0x410371
mov dword [ebp - 4], 4
jmp 0x410357
mov dword [ebp - 4], 0x20
jmp 0x410357
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4103a3
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x410323
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040fbb4
shl byte [ecx + 0x75ff505a], 1
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x4103af
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58809d
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5f50fc]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x224], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 0
call fcn.00423a43
mov ecx, eax
test ecx, ecx
je 0x4127d7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x21c], 1
call fcn.00568420
add esp, 0xc
lea ecx, [ebp - 0x240]
call fcn.0043183e
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
push dword [0x5f412c]
mov dword [ebp - 4], 1
push edi
push esi
call ebx
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00431abd
test eax, eax
je 0x41276f
nop word [eax + eax]
mov eax, dword [0x5f412c]
lea ecx, [ebp - 0x218]
push ecx
inc eax
push eax
push edi
push esi
mov dword [0x5f412c], eax
call ebx
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00431abd
test eax, eax
jne 0x412740
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412780
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x220]
push eax
call fcn.00407520
inc dword [0x5f412c]
lea ecx, [ebp - 0x240]
call fcn.004319ea
mov eax, dword [ebp - 0x220]
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.005663a7
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00406af0
int3
Function at 0x415950
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5883c6
mov eax, dword fs:[0]
push eax
mov eax, 0xd6dc
call fcn.005663c0
mov eax, dword [0x5f50fc]
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 edi, ecx
mov dword [ebp - 0xd6c8], edi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xd6e8]
mov dword [ebp - 0xd6cc], ebx
call fcn.0043183e
push 0
push ebx
lea ecx, [ebp - 0xd6e8]
mov dword [ebp - 4], 0
call fcn.00431abd
test eax, eax
je 0x415b62
lea ecx, [ebp - 0xd6bc]
call fcn.0041e390
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00568420
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056b3b9
add esp, 0x18
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0xd6bc]
push eax
call fcn.0041e490
test eax, eax
jne 0x415a1a
lea ecx, [ebp - 0xd6bc]
xor esi, esi
call fcn.0041e400
jmp 0x415b67
lea eax, [ebp - 0xd6c4]
mov dword [ebp - 0xd6c0], 0
push eax
lea eax, [ebp - 0xd6c0]
mov dword [ebp - 0xd6c4], 0
push eax
push str.FILE
push str._UDHLDFile_
lea ecx, [ebp - 0xd6bc]
call fcn.0041f630
test eax, eax
je 0x415acf
mov eax, dword [ebp - 0xd6c0]
cmp dword [eax], 0
jle 0x415acf
xor esi, esi
lea ebx, [edi + 0xe4a0]
xor edi, edi
nop word [eax + eax]
push 2
push dword [edi + eax + 0x290]
mov ecx, ebx
call fcn.0041c690
mov eax, dword [ebp - 0xd6c0]
lea edi, [edi + 0x514]
inc esi
cmp esi, dword [eax]
jl 0x415a70
push eax
lea ecx, [ebp - 0xd6bc]
call fcn.0041e990
lea eax, [ebp - 0xd6c4]
push eax
lea eax, [ebp - 0xd6c0]
push eax
push str.FOLDER
push str._UDHLDFile_
lea ecx, [ebp - 0xd6bc]
call fcn.0041f630
test eax, eax
je 0x415acf
mov eax, dword [ebp - 0xd6c0]
cmp dword [eax], 0
jg 0x415aec
lea ecx, [ebp - 0xd6bc]
call fcn.0041e4f0
lea ecx, [ebp - 0xd6bc]
mov esi, 1
call fcn.0041e400
jmp 0x415b67
mov ebx, dword [ebp - 0xd6c8]
xor esi, esi
xor edi, edi
nop word [eax + eax]
push dword [edi + eax + 0x294]
lea ecx, [ebx + 0xe4a0]
push dword [edi + eax + 0x290]
call fcn.0041c790
mov eax, dword [ebp - 0xd6c0]
lea edi, [edi + 0x514]
inc esi
cmp esi, dword [eax]
jl 0x415b00
push eax
lea ecx, [ebp - 0xd6bc]
call fcn.0041e990
lea ecx, [ebp - 0xd6bc]
call fcn.0041e4f0
mov esi, dword [ebp - 0xd6cc]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xd6bc]
call fcn.0041e400
mov esi, 1
lea ecx, [ebp - 0xd6e8]
call fcn.004319ea
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.005663a7
mov esp, ebp
pop ebp
ret 4
Function at 0x415d70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x415e48
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00568420
add esp, 0xc
lea eax, [ebp - 0x210]
lea ecx, [esi + 0x998]
push eax
call fcn.0040c640
push dword [eax]
lea eax, [ebp - 0x20c]
push str._siupdate.ini
push 0x104
push eax
call fcn.00402f80
mov edx, dword [ebp - 0x210]
add esp, 0x10
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415e00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x5f4128], 0
je 0x415e21
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00417d20
mov dword [0x5f4128], 0
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
push ebx
push edi
call fcn.00419190
test eax, eax
jne 0x415e48
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005663a7
mov esp, ebp
pop ebp
ret 8
Function at 0x417d20
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58867b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5f50fc]
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 ebx, ecx
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00568420
add esp, 0xc
lea eax, [ebp - 0x42c]
add ebx, 0x998
mov ecx, ebx
push eax
call fcn.0040d250
mov esi, eax
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040c640
push dword [esi]
push dword [eax]
lea eax, [ebp - 0x420]
push str._s_s
push 0x104
push eax
call fcn.00402f80
mov edx, dword [ebp - 0x428]
or edi, 0xffffffff
add esp, 0x14
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417dd7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x42c]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417dfb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417ec8
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00568420
push dword [ebp - 0x430]
lea eax, [ebp - 0x420]
push str._RebootAfterProc
push eax
push str.__s___s__s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00402f80
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0056d04f
add esp, 0x2c
mov ecx, ebx
lea esi, [eax + 1]
lea eax, [ebp - 0x434]
push eax
call fcn.0040cff0
push esi
lea ecx, [ebp - 0x218]
push ecx
push 1
push 0
push dword [eax]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x434]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x417ebc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
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.005663a7
mov esp, ebp
pop ebp
ret 4