joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060d2
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4060fb
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x4060ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x4061a6
cmp dword [0x4614a0], ebx
je 0x4061a6
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a4c0], bx
je 0x406172
cmp dword [0x40b058], 0xffffffff
jne 0x40617b
mov esi, 0x46a4c0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405e3b
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x4061a4
cmp dword [ebp + 8], 0xffffffff
jne 0x406167
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x4061a4
push 0x409678
mov esi, 0x4614c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406769
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x457250
push esi
call fcn.00405ff4
push esi
call fcn.00405d44
mov edi, eax
test edi, edi
jne 0x40678a
xor eax, eax
jmp 0x4067e7
push edi
call fcn.00406023
test byte [0x472d88], 0x80
je 0x4067a6
movzx eax, word [edi]
test ax, ax
je 0x406786
cmp eax, 0x5c
je 0x406786
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4067c8
push esi
call fcn.004062c0
test eax, eax
je 0x4067c2
test byte [eax], 0x10
je 0x4067ec
push esi
call fcn.0040673c
push esi
call ebx
cmp eax, edi
jg 0x4067b3
push esi
call fcn.0040670d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4067e6
Function at 0x406a81
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x409888
mov ebx, 0x45b250
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406acf
push 1
push ebp
push edi
call fcn.00405e3b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c4a
cmp eax, esi
jg 0x406c4a
push esi
mov edi, 0x4608a0
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406c4a
cmp eax, esi
jg 0x406c4a
push ebp
push ebp
push esi
push 0x45ba50
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406c4a
push ebp
push ebp
push esi
mov esi, 0x45c0a0
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406c4a
push esi
push 0x45ba50
push str._s_s_r_n
push 0x45c4a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x472d2c]
push dword [eax + 0x128]
push edi
call fcn.004067f0
push 4
push 0xc0000000
push edi
call fcn.00405e3b
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406c4a
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406c40
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406c40
cmp edi, dword [esp + 0x10]
jne 0x406c40
push str._Rename__r_n
push esi
call fcn.00405da1
cmp eax, ebp
jne 0x406bd3
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406c08
push 0x40987c
add eax, 0xa
push eax
call fcn.00405da1
mov ebp, eax
test ebp, ebp
je 0x406c06
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x406bfd
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406bf3
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x406c0a
xor ebp, ebp
mov eax, edi
push ebx
push 0x45c4a0
add eax, esi
push eax
call fcn.00405df7
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407269
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4610a4], 0
jne 0x4072a7
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40727d
mov dword [ecx*4 + 0x4610a0], eax
inc ecx
cmp ecx, 0x100
jl 0x407278
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072d4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4610a0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072b5
not eax
pop ebp
ret 0xc
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x401bd7
pop dword [ebp - 0x48]
mov eax, 0x651435bd
add eax, 0x9b2be61a
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x4c93234a
sub dword [ebp - 0x58], 0xfe40ddff
mov dword [ebp - 0x54], 0x7133b837
sub dword [ebp - 0x54], 0x3f006bf2
mov dword [ebp - 0x50], 0x9321b0c5
sub dword [ebp - 0x50], 0x46d56c97
mov dword [ebp - 0x4c], 0xe9199469
sub dword [ebp - 0x4c], 0xe9199469
lea eax, [ebp - 0x58]
push eax
mov eax, 0x5778bb76
sub eax, 0x57384b16
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xfa8f6337
add dword [ebp - 0x58], 0x79e3061f
mov dword [ebp - 0x54], 0x14a8c856
add dword [ebp - 0x54], 0x2cc3991f
mov dword [ebp - 0x50], 0x75d793ae
add dword [ebp - 0x50], 0xed97d8be
mov dword [ebp - 0x4c], 0xa2305912
sub dword [ebp - 0x4c], 0xa2305912
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x39dd3
push 0
call eax
mov ecx, 0x5528
xor edi, edi
add edi, eax
mov esi, 0x410000
add esi, dword [ebp - 0x48]
mov ebx, 0xb13f025a
xor dword [ebp - 0x24], ecx
mov edx, dword [esi]
mov dword [ebp - 0x30], 0xe491632a
xor edx, ebx
sub dword [ebp - 0x40], esi
mov dword [edi], edx
add dword [ebp - 0x34], 0x2cdc9920
add edi, 0x2353f597
add edi, 0xdcac0a6d
add esi, 0xfd0de3c6
sub esi, 0xfd0de3c2
loop 0x401ce4
add eax, 0x5dccb4a8
add eax, 0xa23492cb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8d9643a7
sub ecx, 0x8d5643a7
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4133bf
Capabilities:
Encode data using xor

Disassembly:
push esi
lea esi, [ecx + 0x10]
mov edx, dword [esi]
mov eax, edx
and eax, 0xffffc000
add eax, 0x4000
xor eax, edx
and eax, 0xfffc000
mov ecx, edx
xor edx, eax
mov eax, ecx
lock cmpxchg dword [esi], edx
mov edx, eax
cmp edx, ecx
jne 0x4133c5
pop esi
ret
Function at 0x40221f
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, 0x58ce99d
jg 0x402243
inc edi
cmp edi, 0x1f6502b0
jl 0x40222b
cmp dword [0x431e1c], 0x400
jne 0x40229c
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push 0x41fb08
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogW]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push str.digehogacisicaxafoxanet
push esi
call fcn.004025de
push esi
push esi
call fcn.00402734
push esi
call fcn.004027e1
push esi
call fcn.004027f0
add esp, 0x18
xor edi, edi
cmp edi, 0xd0fe
jge 0x4022ad
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x58bc6e
jg 0x4022cc
inc edi
cmp edi, 0xe52f
jl 0x40229e
mov eax, dword [0x421eb4]
mov dword [0x431e1c], eax
call fcn.00402004
mov edi, 0x3078f
cmp dword [0x431e1c], 0x51f
jne 0x4022f8
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x4022e0
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x40614e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421b90]
jne 0x406158
repz ret
jmp fcn.00407ac3
Function at 0x40768e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403a46
and dword [ebp - 0x14], 0
cmp dword [0x42c9dc], 0
mov dword [ebp - 0x18], eax
jne 0x407741
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4077e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4077e9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42c9dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42c9e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42c9e4], eax
call edi
push eax
call esi
mov dword [0x42c9ec], eax
test eax, eax
je 0x407741
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42c9e8], eax
mov eax, dword [0x42c9e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40779a
cmp dword [0x42c9ec], ecx
je 0x40779a
push eax
call esi
push dword [0x42c9ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40779a
test ebx, ebx
je 0x40779a
call edi
test eax, eax
je 0x407791
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407791
test byte [ebp - 8], 1
jne 0x40779a
or dword [ebp + 0x10], 0x200000
jmp 0x4077cd
mov eax, dword [0x42c9e0]
cmp eax, dword [ebp - 0x18]
je 0x4077cd
push eax
call esi
test eax, eax
je 0x4077cd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4077cd
mov eax, dword [0x42c9e4]
cmp eax, dword [ebp - 0x18]
je 0x4077cd
push eax
call esi
test eax, eax
je 0x4077cd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42c9dc]
call esi
test eax, eax
je 0x4077e9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4077eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040614e
leave
ret
Function at 0x401750
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00401230
add esp, 4
test eax, eax
js 0x40193c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x4017c4
lea esi, [eax + 8]
add eax, 8
lea esi, [esi + edi*4]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x401784
mov ebx, dword [ebp + 8]
mov edi, 1
cmp dword [ebx + 0xf0], edi
jle 0x401937
lea esi, [ebx + 2]
jmp 0x4017e0
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x411e00]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x413230]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x413630]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x412e30]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x412a30]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x411e00]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x413230]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x413630]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x412a30]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x412e30]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x411e00]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x413230]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x413630]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x412a30]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x412e30]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x411e00]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x413230]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x413630]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x412a30]
movzx eax, dl
movzx eax, byte [eax*4 + 0x411e00]
xor ecx, dword [eax*4 + 0x412e30]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x4017e0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4024b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4024e0
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x402529
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.00408a20
add esp, 0xc
push 0
push 0
push 2
push 0
push 3
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x402533
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ebx
mov edx, edi
call fcn.00402440
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov ebx, dword [ebp - 8]
add esp, 8
push 0
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00402ba8
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402580
Capabilities:
Create directory
Get common file path
Get program files directory

Disassembly:
push ebx
push esi
push 1
push 0x26
mov ebx, ecx
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [ebx - 1]
mov al, byte [edx + 1]
lea edx, [edx + 1]
test al, al
jne 0x402594
mov eax, dword [str.Common_Files]
mov dword [edx], eax
mov eax, dword [0x413f34]
mov dword [edx + 4], eax
mov eax, dword [0x413f38]
push edi
mov dword [edx + 8], eax
mov ax, word [0x413f3c]
push 0
push ebx
mov word [edx + 0xc], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4025d0
mov ecx, 5
mov esi, str.SHLogic_Module_Helper
rep movsd dword es:[edi], dword [esi]
push 0
push ebx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
lea ecx, [ebx - 1]
pop edi
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4025f6
mov eax, dword [str.SHLGHelper]
mov dword [ecx], eax
mov eax, dword [0x413f5c]
mov dword [ecx + 4], eax
mov eax, dword [0x413f60]
push 0
push ebx
mov dword [ecx + 8], eax
call esi
lea ecx, [ebx - 1]
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402620
mov eax, dword [str.2.0.0.1]
mov dword [ecx], eax
mov eax, dword [0x413f68]
mov dword [ecx + 4], eax
mov al, byte [0x413f6c]
push 0
push ebx
mov byte [ecx + 8], al
call esi
pop esi
pop ebx
ret
Function at 0x402650
Capabilities:
Create directory
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2210
call fcn.00409c10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x103
lea eax, [ebp - 0x20b]
mov byte [ebp - 0x20c], 0
push 0
push eax
mov ebx, ecx
call fcn.00406dc0
lea ecx, [ebp - 0x20c]
call fcn.00402580
push str.ShLGHelper.dll
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push str._s_s
push eax
call fcn.00402b24
add esp, 0x1c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x413fa4
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4026d7
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.004024b0
push esi
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40271d
push str.SetChannelID
push esi
call edi
test eax, eax
je 0x402708
test ebx, ebx
je 0x402708
push ebx
call eax
add esp, 4
push str.DllRegisterServer
push esi
call edi
test eax, eax
je 0x402716
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x220c]
push str.regsvr32.exe__s___s_
push eax
call fcn.00402b24
mov ebx, dword [sym.imp.KERNEL32.dll_WinExec]
lea eax, [ebp - 0x220c]
add esp, 0xc
push 0
push eax
call ebx
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x2210], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
mov esi, eax
test esi, esi
je 0x402782
lea eax, [ebp - 0x2210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x2210], 0
pop edi
pop esi
je 0x402826
lea ecx, [ebp - 0x20c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402798
mov eax, dword [str.x64]
mov dword [ecx], eax
mov al, byte [0x413fec]
mov byte [ecx + 4], al
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.ShLGHelper.dll
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push str._s_s
push eax
call fcn.00402b24
add esp, 0x10
push 0x413fa4
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402800
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.004024b0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x120c]
push str.regsvr32.exe__s___s_
push eax
call fcn.00402b24
add esp, 0xc
lea eax, [ebp - 0x120c]
push 0
push eax
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00402b15
mov esp, ebp
pop ebp
ret
Function at 0x402840
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1334
call fcn.00409c10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.00406dc0
lea ecx, [ebp - 0x108]
call fcn.00402580
push str.ShLGHelper.dll
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push str._s_s
push eax
call fcn.00402b24
add esp, 0x1c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4028d4
push str.DllUnregisterServer
push esi
call edi
test eax, eax
je 0x4028cd
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x1314], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
mov esi, eax
test esi, esi
je 0x40290d
lea eax, [ebp - 0x1314]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x1314], 0
je 0x402945
push str.ShLGHelper.dll
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x1310]
push str.regsvr32.exe__s__u___sx64_s_
push eax
call fcn.00402b24
add esp, 0x10
lea eax, [ebp - 0x1310]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x132c], eax
mov edi, 0x10
lea eax, [ebp - 0x1334]
mov word [ebp - 0x1324], di
push eax
mov dword [ebp - 0x131e], 0
mov dword [ebp - 0x1334], 0
mov dword [ebp - 0x131a], 0
mov dword [ebp - 0x1328], 0
mov dword [ebp - 0x1330], 3
call esi
xor ecx, ecx
mov al, byte [ebp + ecx - 0x108]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x20d], al
test al, al
jne 0x4029a0
push 1
push 0x23
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [ebp - 0x20c]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4029d0
mov eax, dword [str.SkyPlugData]
mov dword [ecx], eax
mov eax, dword [0x414028]
mov dword [ecx + 4], eax
mov eax, dword [0x41402c]
mov dword [ecx + 8], eax
mov al, byte [0x414030]
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x132c], eax
lea eax, [ebp - 0x1334]
push eax
mov word [ebp - 0x1324], di
mov dword [ebp - 0x131e], 0
mov dword [ebp - 0x1334], 0
mov dword [ebp - 0x131a], 0
mov dword [ebp - 0x1328], 0
mov dword [ebp - 0x1330], 3
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00402b15
mov esp, ebp
pop ebp
ret