joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
xor eax, eax
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
xor ebx, ebx
push str.InstallDir
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebx
xor edi, edi
mov dword [esp + 0x1c], ebx
call esi
push str.REGISTRYMACHINESOFTWARETencentQQPCMgr
lea ecx, [esp + 0x24]
push ecx
call esi
lea eax, [esp + 0x28]
push eax
push 0x20019
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0x240
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
cmp esi, ebx
jl 0x40127f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push 2
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
cmp esi, 0xc0000023
jne 0x40127f
cmp dword [ebp + 8], ebx
mov eax, dword [esp + 0x14]
je 0x40127a
mov edx, dword [ebp + 0xc]
cmp dword [edx], eax
jb 0x40127a
push 0x214b4954
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, ebx
je 0x40127f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edi
push 2
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
cmp esi, ebx
jl 0x40127f
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
push ecx
lea edx, [edi + 0xc]
push edx
push eax
call sub.ntoskrnl.exe_memcpy
mov ecx, dword [edi + 8]
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov dword [edx], ecx
jmp 0x40127f
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401292
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [esp + 0x10], ebx
cmp edi, ebx
je 0x40129e
push ebx
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4012b0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, eax
movzx eax, word [edi]
xor ebx, ebx
cmp ax, 0x61
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebx
jb 0x4012d0
cmp ax, 0x7a
jbe 0x4012e4
cmp ax, 0x41
jb 0x40139b
cmp ax, 0x5a
ja 0x40139b
cmp word [edi + 2], 0x3a
jne 0x40139b
push esi
push 0x514d494e
push 0xc
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push 0x401450
push ebx
push ebx
push ebx
push 0x1fffff
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [esi + 8], 0xc0000001
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, eax
cmp edi, ebx
jge 0x401335
mov dword [esp + 0xc], ebx
jmp 0x401363
mov eax, dword [esp + 0xc]
push ebx
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push 0x1fffff
push eax
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401375
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x401375
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x401388
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [esp + 0xc], ebx
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop esi
mov eax, edi
pop edi
pop ebx
add esp, 8
ret 4
pop edi
mov eax, 0xc000000d
pop ebx
add esp, 8
ret 4
Function at 0x4037b5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x403857
cmp byte [esi + 0x20], 0
jne 0x403857
cmp dword [edi + 4], 0x100
jne 0x403819
cmp dword [edi + 8], 0x54
jne 0x4037f4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4037f4
mov ecx, esi
call fcn.00404b98
push dword [0x43e504]
mov ecx, esi
call fcn.0040372f
test eax, eax
je 0x403857
test byte [eax + 0x7d], 0x80
je 0x403857
mov ecx, dword [esi + 0x404]
push edi
mov eax, dword [ecx]
call dword [eax + 0x20]
jmp 0x403859
cmp dword [edi + 4], 0x104
jne 0x4037f4
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4037f4
mov eax, dword [edi + 8]
sub eax, 0x24
je 0x40384a
sub eax, 1
je 0x403846
dec eax
sub eax, 1
jne 0x4037f4
push 2
jmp 0x40384c
push 1
jmp 0x40384c
push 6
mov ecx, esi
call fcn.0040285a
mov al, 1
jmp 0x403859
xor al, al
pop edi
pop esi
pop ebp
ret 4

Function at 0x404abd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov ecx, dword [esi + 0xcc]
call fcn.0040f201
test eax, eax
je 0x404b93
push edi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x404b8f
cmp dword [ebp - 4], 4
jl 0x404b8f
mov eax, dword [edi + 4]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 8]
push 1
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
push str.TEMPLATEHELP
push eax
mov dword [ebp - 0x10], eax
call sub.Mso30Win32Client.dll_Ordinal_1493
cmp dword [ebp - 4], 5
mov ebx, eax
jl 0x404b2d
cmp dword [edi + 0x10], 0
jne 0x404b3c
test ebx, ebx
je 0x404b3c
push 0
mov ecx, esi
call fcn.004041ea
jmp 0x404b8e
cmp dword [ebp - 4], 5
jl 0x404b8e
push dword [ebp - 8]
mov edi, dword [edi + 0x10]
push dword [ebp - 0xc]
call sub.Mso99LWin32Client.dll_Ordinal_1861
test ebx, ebx
je 0x404b6f
call fcn.004036b7
cmp eax, 2
je 0x404b67
push 3
mov ecx, 0x4411b0
jmp 0x404b35
push edi
call sub.Mso99LWin32Client.dll_Ordinal_2450
jmp 0x404b88
push 1
push 0x42e768
push dword [ebp - 0x10]
call sub.Mso30Win32Client.dll_Ordinal_1493
test eax, eax
je 0x404b8e
push edi
call sub.Mso99LWin32Client.dll_Ordinal_2057
mov dword [esi + 0xac], eax
pop ebx
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4066fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x42c2bf
call fcn.0042a68c
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x406778
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x406778
call fcn.00405a4a
mov esi, eax
jmp 0x40684f
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40679b
call fcn.00405a4a
jmp 0x406842
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x406791
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4067cb
mov esi, 0x8007000e
jmp 0x406844
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004057fa
jmp 0x4067f1
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4067c4
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x406791
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.004064d0
mov esi, eax
test edi, edi
je 0x40684f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406868
lea ecx, [ebp - 0x418]
call fcn.00405cf2
lea ecx, [ebp - 0x428]
call fcn.004050f9
mov eax, esi
call fcn.0042a5dd
ret 0x10
Function at 0x407038
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x40704b
push 0xd
pop eax
jmp 0x40708f
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x40705e
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x407056
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407096
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4070a8
push 0xd
pop eax
jmp 0x4070da
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4070b1
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x407c26
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 4]
mov ebx, eax
cmp edx, 3
jge 0x407c57
mov dword [0x4411cc], 5
xor eax, eax
jmp 0x407cc0
push esi
xor esi, esi
mov ecx, esi
test edx, edx
jle 0x407c6d
mov eax, dword [ebx + ecx*4]
cmp word [eax], si
je 0x407cc6
inc ecx
cmp ecx, edx
jl 0x407c60
push 0x104
lea esi, [edi + 0x410]
push esi
push dword [ebx + 4]
call fcn.00401c8b
push esi
call sub.Mso30Win32Client.dll_Ordinal_507
mov esi, 0x104
push esi
push edi
push dword [ebx + 8]
call fcn.00401c8b
push esi
lea eax, [edi + 0x208]
mov ecx, edi
push eax
push edi
call fcn.00407baf
cmp dword [ebp - 4], 4
jl 0x407cbc
push esi
lea eax, [edi + 0x1660]
push eax
push dword [ebx + 0xc]
call fcn.00401c8b
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x407cbf
Function at 0x408183
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea esi, [ecx + 0x618]
xor eax, eax
push edi
cmp ax, word [esi]
jne 0x408216
lea eax, [ebp - 0x82c]
mov ebx, 0x824
push eax
lea eax, [ebp - 0x828]
mov dword [ebp - 0x82c], ebx
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
test eax, eax
js 0x40820a
lea ecx, [ebp - 0x828]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4081d3
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x40820a
lea eax, [edi + edi]
call fcn.0042ab39
mov eax, esp
lea ecx, [ebp - 0x828]
push 3
push edi
push ecx
push eax
call fcn.00407b46
test eax, eax
je 0x40820a
push ebx
push esi
push eax
jmp 0x408211
push ebx
push esi
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
call fcn.00401c8b
mov eax, esi
lea esp, [ebp - 0x838]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004297cb
mov esp, ebp
pop ebp
ret

Function at 0x409ae2
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 1
xor edi, edi
mov word [ebp - 4], 0xfeff
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call sub.Mso20Win32Client.dll_Ordinal_474
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x409b18
xor al, al
jmp 0x409b4a
push edi
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x409b42
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
or dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
cmp dword [esi], 0xffffffff
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40ab33
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24b0
call fcn.0042ab0c
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x24ac], eax
mov ebx, ecx
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x24b0], eax
lea eax, [ebp - 0x414]
push esi
push eax
mov dword [ebp - 0x24a8], edi
call sub.VCRUNTIME140.dll_memset
push 0x1048
lea eax, [ebp - 0x24a4]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
test edi, edi
jne 0x40ab9e
xor al, al
jmp 0x40acf8
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
cmp dword [ebx + 0x414], 1
mov edi, 0x104
push edi
push eax
jne 0x40abdd
mov ecx, dword [0x441258]
call fcn.00408042
test eax, eax
jne 0x40abe9
jmp 0x40acec
lea eax, [ebx + 0x20a]
push eax
call fcn.00401c8b
call fcn.00407b7e
push eax
lea eax, [ebx + 0x20a]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
call sub.Mso99LWin32Client.dll_Ordinal_1285
test eax, eax
je 0x40acec
push dword [ebp - 0x24a8]
lea eax, [ebp - 0x414]
push eax
push str._s_content__s
lea eax, [ebp - 0x24a4]
push 0xffffffffffffffff
push eax
call fcn.0040861e
add esp, 0x14
test eax, eax
jle 0x40acec
mov eax, dword [ebp - 0x24ac]
test eax, eax
je 0x40ac50
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x24a4]
push eax
call fcn.00401c8b
mov ecx, ebx
call fcn.0040c12e
mov edi, eax
test edi, edi
je 0x40ab97
push 0x1048
lea eax, [ebp - 0x145c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x145c]
mov ebx, 0x824
push ebx
push eax
push edi
call fcn.00401c8b
push ebx
lea eax, [ebp - 0x145c]
push eax
push 0x430204
call sub.Mso20Win32Client.dll_Ordinal_1065_1
push ebx
lea eax, [ebp - 0x145c]
push eax
push dword [ebp - 0x24a8]
call sub.Mso20Win32Client.dll_Ordinal_1065_1
mov eax, dword [ebp - 0x24b0]
test eax, eax
je 0x40acc8
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x145c]
push eax
call fcn.00401c8b
push esi
push esi
lea eax, [ebp - 0x145c]
push eax
lea eax, [ebp - 0x24a4]
push eax
push esi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
je 0x40acf1
mov dword [0x4411cc], 1
mov esi, 0x80004005
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297cb
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40bb89
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x40bb97
xor al, al
jmp 0x40bbbf
push dword [ebp + 0xc]
call fcn.004014ad
add eax, eax
jne 0x40bba7
mov al, 1
jmp 0x40bbbf
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 8
Function at 0x40bbc5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x40bbd9
mov al, 1
jmp 0x40bce2
xor ecx, ecx
xor eax, eax
mov edx, esi
push ebx
push edi
cmp cx, word [esi]
je 0x40bcde
mov dword [ebp - 8], 0x22
movzx ecx, word [esi]
xor edi, edi
mov dword [ebp - 4], 0x26
xor ebx, ebx
cmp word [ebp - 4], cx
je 0x40bc32
mov dword [ebp - 4], 0x3c
cmp word [ebp - 4], cx
je 0x40bc32
mov dword [ebp - 4], 0x3e
cmp word [ebp - 4], cx
je 0x40bc32
mov dword [ebp - 4], 0x27
cmp word [ebp - 4], cx
je 0x40bc32
cmp word [ebp - 8], cx
jne 0x40bcb1
test eax, eax
je 0x40bc4f
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bcda
movzx eax, word [esi]
push 0x22
pop ecx
sub eax, ecx
je 0x40bc8e
sub eax, 4
je 0x40bc85
sub eax, 1
je 0x40bc7e
sub eax, 0x15
je 0x40bc77
dec eax
sub eax, 1
jne 0x40bc96
mov edi, str.gt_
push 8
jmp 0x40bc95
mov edi, str.lt_
jmp 0x40bc73
mov edi, str.apos_
jmp 0x40bc93
mov edi, str.amp_
push 0xa
jmp 0x40bc95
mov edi, str.quot_
push 0xc
pop ebx
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bcda
push 0xfffffffffffffffe
pop eax
lea edx, [esi + 2]
add esi, 2
xor ecx, ecx
add eax, 2
cmp cx, word [esi]
jne 0x40bbf1
test eax, eax
je 0x40bcde
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40bcde
xor al, al
jmp 0x40bce0
mov al, 1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40c067
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106c
call fcn.0042ab0c
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1048
xor edi, edi
lea eax, [ebp - 0x104c]
push edi
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.004087db
push edi
push str.CLViewServer12
push edi
push edi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x40c11e
push 0x824
lea eax, [ebp - 0x104c]
mov ecx, esi
push eax
call fcn.0040a46a
test al, al
je 0x40c11e
lea eax, [ebp - 0x104c]
mov ecx, esi
push eax
call fcn.0040c039
xor eax, eax
cmp ax, word [ebp - 0x104c]
je 0x40c11e
push 7
pop ecx
lea edi, [ebp - 0x106c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x414
mov word [ebp - 0x105c], ax
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x1064], eax
lea eax, [ebp - 0x106c]
push eax
mov dword [ebp - 0x1068], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004297cb
mov esp, ebp
pop ebp
ret
Function at 0x40c12e
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104c
call fcn.0042ab0c
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1048
xor ebx, ebx
lea eax, [ebp - 0x104c]
push ebx
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
lea esi, [edi + 0x622]
add esp, 0xc
cmp word [esi], bx
je 0x40c173
mov eax, esi
jmp 0x40c205
push 0x824
push esi
mov ecx, edi
call fcn.0040a46a
test al, al
je 0x40c200
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push esi
call edi
test eax, eax
jne 0x40c19f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c200
push 0x824
lea eax, [ebp - 0x104c]
push eax
push ebx
push 0x42fec0
push esi
call sub.Mso20Win32Client.dll_Ordinal_686_1
test eax, eax
setne al
test al, al
je 0x40c200
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea eax, [ebp - 0x104c]
push eax
call edi
test eax, eax
setne al
test al, al
je 0x40c200
push 0x824
push esi
lea eax, [ebp - 0x104c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
setne al
test al, al
jne 0x40c16c
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297cb
mov esp, ebp
pop ebp
ret

Function at 0x40c5ff
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x40c572
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40c61c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x40dd10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3134
call fcn.0042ab0c
mov eax, dword [0x435a78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x30e0], 0x824
call fcn.0040d813
test al, al
jne 0x40dd46
xor al, al
jmp 0x40de89
lea eax, [ebp - 0x30e0]
push eax
lea eax, [ebp - 0x104c]
push eax
push str.open
push str..htm
push 1
push 0x20
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
js 0x40dd3f
push esi
push edi
mov edi, dword [sym.imp.VCRUNTIME140.dll_wcschr]
lea eax, [ebp - 0x104c]
push 0x25
push eax
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40dddd
push 0x31
lea eax, [esi + 2]
pop ecx
cmp cx, word [eax]
je 0x40dd9f
push 0x25
push eax
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40dd87
test esi, esi
je 0x40dddd
xor eax, eax
mov edi, 0x1048
mov word [esi], ax
lea eax, [ebp - 0x30dc]
push edi
push eax
lea eax, [ebp - 0x104c]
push eax
call fcn.00401c8b
push edi
lea eax, [ebp - 0x30dc]
push eax
push ebx
call sub.Mso20Win32Client.dll_Ordinal_1065_1
push edi
lea eax, [ebp - 0x30dc]
push eax
lea eax, [esi + 4]
push eax
jmp 0x40de23
mov edi, 0x1048
lea eax, [ebp - 0x30dc]
push edi
push eax
lea eax, [ebp - 0x104c]
push eax
call fcn.00401c8b
push edi
lea eax, [ebp - 0x30dc]
push eax
push 0x430e88
call sub.Mso20Win32Client.dll_Ordinal_1065_1
push edi
lea eax, [ebp - 0x30dc]
push eax
push ebx
call sub.Mso20Win32Client.dll_Ordinal_1065_1
push edi
lea eax, [ebp - 0x30dc]
push eax
push 0x430e90
call sub.Mso20Win32Client.dll_Ordinal_1065_1
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x3134]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3134], esi
lea eax, [ebp - 0x30f0]
push eax
lea eax, [ebp - 0x3134]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x30dc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
je 0x40de85
push dword [ebp - 0x30ec]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30f0]
call esi
pop edi
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004297cb
mov esp, ebp
pop ebp
ret 4

Function at 0x40df16
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x441270]
pop ebp
jmp fcn.0040b5df

Function at 0x40f1b5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
call fcn.0040f4ab
mov edi, eax
test edi, edi
jne 0x40f1ce
mov esi, 0x80004003
jmp 0x40f1f4
push 4
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push 4
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 0x80004005
cmovne esi, ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
setns al
pop esi
pop ebp
ret 8