joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5474c6
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5b2920]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x428], eax
call dword [0x5b4800]
xor eax, eax
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x424], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x434], edi
jne 0x47138a
call fcn.00472b80
mov esi, eax
jmp 0x4714a5
mov edx, dword [ebp - 0x428]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4713a9
call fcn.00472b80
jmp 0x47149c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x42c], eax
jne 0x4713c5
call fcn.00472b80
jmp 0x47149c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x428], ebx
jae 0x47140a
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4713f5
lea eax, [ebp - 0x424]
call fcn.004714f0
lea ecx, [ebp - 0x430]
call fcn.00424eb0
mov eax, 0x8007000e
jmp 0x4714c2
lea esi, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00471500
mov dword [ebp - 4], 1
jmp 0x471446
mov esi, dword [ebp - 0x424]
test esi, esi
jne 0x471457
mov esi, 0x8007000e
jmp 0x47149e
call dword [0x5b4800]
mov ecx, dword [ebp - 0x42c]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x47147b
call fcn.00472b80
jmp 0x47149c
mov edx, dword [ebp - 0x424]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x424]
push eax
lea edx, [ebp - 0x43c]
call fcn.00471540
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x420]
cmp dword [ebp - 0x424], ecx
je 0x4714c0
lea eax, [ebp - 0x424]
call fcn.004714f0
mov edi, edi
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 - 0x18]
xor ecx, ebp
call fcn.0050fe87
mov esp, ebp
pop ebp
ret 0xc
Function at 0x472770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x472783
push 0x80004005
call fcn.00405130
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x472790
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4728f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x47295e
test ecx, ecx
je 0x472950
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x47296c
test ecx, ecx
je 0x472a11
push ecx
jmp 0x472a0b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x4729de
jmp 0x4729a0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004728f0
mov edi, eax
test edi, edi
jne 0x472a2d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x4729a0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4729f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x472a11
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0050fe87
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x472a3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x472a13
Function at 0x4799a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x557880
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov ecx, 7
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
mov word [esp + 0x30], ax
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov word [esp + 0x14], ax
lea esi, [esp + 0x2c]
mov byte [esp + 0x58], 1
call fcn.00427610
push 0xa
push str.skinmenu_
call fcn.004028b0
push 0xbd1
lea edi, [ebx + 0x26c]
call fcn.0047b290
push 0xfb
lea edi, [ebx + 0x304]
call fcn.0047b290
mov ecx, dword [0x5c29c0]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x479aff
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 0x46f
mov ecx, esi
call edx
test eax, eax
setne al
mov ecx, ebx
push eax
call fcn.0047a270
mov edx, dword [esi]
mov eax, dword [edx + 8]
push 0x470
mov ecx, esi
call eax
test eax, eax
setne cl
push ecx
mov ecx, ebx
call fcn.0047a340
mov edx, dword [esi]
mov eax, dword [edx + 8]
push 0x2b68
mov ecx, esi
call eax
test eax, eax
setne cl
push ecx
mov ecx, ebx
call fcn.0047a410
mov edx, dword [esi]
mov eax, dword [edx + 8]
push 0x454
mov ecx, esi
call eax
mov ecx, dword [0x5c2b44]
neg eax
sbb eax, eax
neg eax
mov dword [ecx + 0x2d0], eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
push 0x454
mov ecx, esi
call eax
test eax, eax
setne cl
push ecx
push 0x9ca2
mov ecx, ebx
call fcn.0047af40
mov edx, dword [esi]
mov eax, dword [edx + 8]
push 0x455
mov ecx, esi
call eax
test eax, eax
setne cl
push ecx
push 0x9ca1
mov ecx, ebx
call fcn.0047af40
mov esi, 8
cmp dword [esp + 0x28], esi
jb 0x479b17
mov edx, dword [esp + 0x14]
push edx
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], di
jb 0x479b3b
mov eax, dword [esp + 0x30]
push eax
call fcn.004e946d
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0050fe87
mov esp, ebp
pop ebp
ret
Function at 0x4824e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp eax, 0x1a15
push esi
jne 0x48252e
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x481580
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.00514183
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 4]
push 0x1a15
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x104e7
jne 0x482553
lea ecx, [edi + 0x24]
call fcn.00481ef0
mov edx, dword [edi + 4]
push 0x104e7
push edx
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x1a17
jne 0x482578
lea ecx, [edi + 0x24]
call fcn.00482020
mov eax, dword [edi + 4]
push 0x1a17
push eax
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x1a16
jne 0x4825c0
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [edi + 0x30]
push edx
push 0x480370
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.00514183
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
push 0x1a16
push eax
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x1a19
jne 0x4825eb
lea eax, [edi + 0xc8]
mov ecx, 0x480fc0
push eax
push ecx
lea esi, [eax + 8]
call fcn.0048a050
mov ecx, dword [edi + 4]
push 0x1a19
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x487bf0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
add ecx, 0x7e4
push ecx
push 0x4808d0
push 0
push 0
mov dword [esp + 0x18], 0
call fcn.00514183
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x4880b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
call fcn.004038c0
cmp dword [esp + 0x18], 8
mov eax, dword [esp + 4]
jae 0x4880d5
lea eax, [esp + 4]
push 5
push 0
push 0x5660e8
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x18], 8
jb 0x488100
mov eax, dword [esp + 4]
push eax
call fcn.004e946d
add esp, 4
mov ecx, dword [esp + 0x1c]
xor ecx, esp
mov al, 1
call fcn.0050fe87
add esp, 0x20
ret
Function at 0x488120
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x54a23e
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
call fcn.004f4f7c
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x488177
push 0x80004005
call fcn.00405130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xb0], esi
mov edi, 7
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], esi
mov word [esp + 0x70], si
mov byte [esp + 0xb0], 1
push edi
push str.config_
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], esi
mov word [esp + 0x40], si
call fcn.004029f0
mov ebp, 8
mov byte [esp + 0xb0], 2
push ebp
push str.NewWord_
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov word [esp + 0x24], si
call fcn.004029f0
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x54]
push edx
lea ebx, [esp + 0x20]
mov byte [esp + 0xb8], 3
call fcn.004036b0
add esp, 8
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xbc], 4
call fcn.004025b0
cmp dword [esp + 0x68], ebp
jb 0x488239
mov eax, dword [esp + 0x54]
push eax
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x30], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], esi
mov word [esp + 0x54], si
jb 0x488259
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004e946d
add esp, 4
mov byte [esp + 0xb0], 1
cmp dword [esp + 0x4c], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
jb 0x488281
mov edx, dword [esp + 0x38]
push edx
call fcn.004e946d
add esp, 4
push 0x22
push 1
push esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], esi
mov word [esp + 0x44], si
call fcn.00407860
lea eax, [esp + 0x88]
call fcn.00403920
cmp dword [esp + 0x84], ebp
mov ecx, dword [esp + 0x70]
jae 0x4882b9
lea ecx, [esp + 0x70]
cmp dword [esp + 0xa0], ebp
mov eax, dword [esp + 0x8c]
jae 0x4882d0
lea eax, [esp + 0x8c]
push 5
push esi
push ecx
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0xa0], ebp
jb 0x4882fa
mov eax, dword [esp + 0x8c]
push eax
call fcn.004e946d
add esp, 4
cmp dword [esp + 0x84], ebp
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], esi
mov word [esp + 0x8c], si
jb 0x488326
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004e946d
add esp, 4
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], esi
mov word [esp + 0x70], si
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x488364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0050fe87
add esp, 0xa0
ret
Function at 0x4885b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareKingsoftPowerWordDict
push SysReAllocStringLen
xor bl, bl
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4885f6
mov ecx, dword [esp + 4]
push eax
push eax
push eax
push eax
push str.UpdateTag
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4885f6
mov bl, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x488605
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret
Function at 0x48a050
Capabilities:
Create thread

Disassembly:
push 0xc
call fcn.004e943d
add esp, 4
test eax, eax
je 0x48a074
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], vtable.CYN::Thread::ThreadFunc_struct_CYN::Binder_void__class_IntervalRequestThread__.0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x48a076
xor eax, eax
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x480f00
push 0
push 0
call fcn.00514183
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 8], eax
mov al, cl
ret 8
Function at 0x48c200
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x5c29fc]
sub esp, 8
test eax, eax
je 0x48c220
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp], 0x103
je 0x48c243
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push 0
push eax
push 0x48c180
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
add esp, 8
ret
Function at 0x494130
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x556ec3
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov edi, dword [esp + 0x24]
je 0x49421d
test edi, edi
je 0x49417d
mov eax, dword [edi]
jmp 0x49417f
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49421d
mov ecx, dword [ebp + 0x84]
test ecx, ecx
je 0x4941aa
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebp + 0x84], 0
push 0xd4
call fcn.004e943d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
mov byte [esp + 0x18], 1
je 0x4941cf
mov eax, ebp
call fcn.0046ffe0
jmp 0x4941d1
xor eax, eax
test edi, edi
mov byte [esp + 0x18], 0
push ecx
mov dword [ebp + 0x84], eax
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax], edi
je 0x4941f3
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp + 0x84]
push ecx
call fcn.00464700
lea edi, [esp + 0x24]
call fcn.00417380
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
test edi, edi
je 0x494255
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x494255
mov eax, dword [edi]
test eax, eax
je 0x49423c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x49424c
push eax
call fcn.004e946d
add esp, 4
push edi
call fcn.004e946d
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8
Function at 0x497220
Capabilities:
Create process on windows

Disassembly:
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 5
push 0
push 0
push esi
push str.open
push 0
call edi
cmp eax, 0x20
jg 0x49724c
push 5
push 0
push esi
push str.iexplore.exe
push 0
push 0
call edi
pop edi
ret

Function at 0x49a5a0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
test eax, eax
je 0x49a5a7
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x49a5b5
xor al, al
ret
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi + 0x14]
lea eax, [eax + eax + 2]
push eax
push 0x42
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x49a5e2
xor bl, bl
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov al, bl
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x49a5f1
xor bl, bl
jmp 0x49a612
cmp dword [esi + 0x18], 8
jb 0x49a5fc
mov ecx, dword [esi + 4]
jmp 0x49a5ff
lea ecx, [esi + 4]
mov edx, eax
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x49a601
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov al, bl
pop ebx
ret

Function at 0x49b9c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x7c]
add edi, 0x78
xor ebx, ebx
cmp eax, ebx
je 0x49b9f9
push eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x20], 0xffffffff
mov byte [edi + 0x1d], bl
mov byte [edi + 0x1c], bl
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.004f3785
mov eax, dword [eax + 0xc]
push 0x56c890
push 0xc758
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x49ba20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.004f3785
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x49ba18
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov dword [esp + 0x10], ebx
call fcn.004f3785
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebp
push eax
call fcn.00516ca0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x49ba94
mov ecx, dword [esp + 0x10]
push ecx
push edi
call fcn.00424450
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4a3170
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x214], eax
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov word [esp + 0x18], 0
call fcn.00516c20
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push SysReAllocStringLen
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea edx, [esp]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.XDict
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
xor eax, eax
cmp dword [esp], eax
setne al
xor ecx, esp
call fcn.0050fe87
add esp, 0x218
ret

Function at 0x4a3210
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x54c7bb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5b2920]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.00516c20
add esp, 0xc
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5662c0
lea ecx, [esp + 0xc]
call fcn.00417990
lea eax, [esp + 0x10]
mov dword [esp + 0x224], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a3295
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
call fcn.00417710
push 0xa
push str.__auto_run
lea ecx, [esp + 0x10]
call fcn.00417710
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [esp + 8]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x4a32f5
mov ecx, esi
push ecx
lea ecx, [esp + 0xc]
call fcn.004164f0
mov eax, dword [esp + 8]
lea edx, [esi + esi]
push edx
push eax
mov eax, dword [esp + 0x14]
push 1
push 0
push str.XDict
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a3344
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0050fe87
add esp, 0x220
ret