joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001db31
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1588]
mov eax, 0x1608
call fcn.10072c80
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x1584], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1590]
mov esi, 0x206
xor ebx, ebx
push esi
lea eax, [ebp + 0x137e]
push ebx
push eax
mov word [ebp + 0x137c], bx
call fcn.10072750
push edi
lea eax, [ebp + 0x137c]
push 0x100d6110
push eax
call fcn.100048d5
lea eax, [ebp + 0x137c]
push eax
call fcn.100726e4
lea ecx, [eax - 1]
add esp, 0x1c
test ecx, ecx
jle 0x1001dbb0
lea eax, [ebp + eax*2 + 0x137c]
cmp word [eax - 2], 0x5c
je 0x1001dbb0
mov word [eax], 0x5c
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x1d4]
push 0x100d9664
push eax
call fcn.100048d5
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x1001dc8e
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1001dc8e
cmp word [ebp - 0x50], 0x2e
je 0x1001dbe8
cmp word [ebp - 0x4e], bx
je 0x1001dbe8
cmp word [ebp - 0x4e], 0x2e
jne 0x1001dc17
cmp word [ebp - 0x4c], bx
je 0x1001dbe8
test byte [ebp - 0x7c], 0x10
je 0x1001dc5d
push esi
lea eax, [ebp + 0x1176]
push ebx
push eax
mov word [ebp + 0x1174], bx
call fcn.10072750
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x1174]
push 0x100d8e38
push eax
call fcn.100048d5
lea eax, [ebp + 0x1174]
push eax
call fcn.1001db31
add esp, 0x20
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x137c]
push eax
lea eax, [ebp + 0x9a4]
push 0x100d6104
push eax
call fcn.100048d5
add esp, 0x10
lea eax, [ebp + 0x9a4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001dbe8
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x1584]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071fee
add ebp, 0x1588
leave
ret
Function at 0x1001dcbf
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1380]
mov eax, 0x1400
call fcn.10072c80
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x137c], eax
push ebx
mov ebx, dword [ebp + 0x138c]
push esi
mov esi, dword [ebp + 0x1388]
push esi
lea eax, [ebp + 0x1d4]
push 0x100d9664
push eax
call fcn.100048d5
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x1001ddba
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1001ddba
cmp word [ebp - 0x50], 0x2e
je 0x1001dd1e
cmp word [ebp - 0x4e], 0
je 0x1001dd1e
cmp word [ebp - 0x4e], 0x2e
jne 0x1001dd4f
cmp word [ebp - 0x4c], 0
je 0x1001dd1e
and word [ebp + 0x1174], 0
push 0x206
lea eax, [ebp + 0x1176]
push 0
push eax
call fcn.10072750
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp + 0x9a4]
push 0x100d6104
push eax
call fcn.100048d5
lea eax, [ebp + 0x1174]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1001d479
lea eax, [ebp + 0x1174]
push ebx
push eax
call fcn.10072e67
add esp, 0x2c
test eax, eax
jne 0x1001dd1e
lea eax, [ebp + 0x9a4]
push eax
call fcn.1001d785
pop ecx
jmp 0x1001dd1e
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x137c]
pop esi
xor ecx, ebp
pop ebx
call fcn.10071fee
add ebp, 0x1380
leave
ret

Function at 0x1001de87
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
push esi
mov esi, dword [ebp + 0x1d0]
push esi
call fcn.100726e4
test eax, eax
pop ecx
je 0x1001df26
push 0x104
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x38]
push str.Program_FilesInternet_Exploreriexplore.exe
push eax
call fcn.10072c5d
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.10072c33
push 0x3c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10072750
add esp, 0x1c
push 1
push 0
push 0
mov eax, str.open
push esi
push eax
push 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], 0x200
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x1001df23
lea eax, [ebp - 0x44]
push eax
call fcn.1001d112
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1c4]
xor ecx, ebp
pop esi
call fcn.10071fee
add ebp, 0x1c8
leave
ret

Function at 0x1001df3c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.100726e4
test eax, eax
pop ecx
je 0x1001df94
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.10072750
add esp, 0xc
xor ecx, ecx
inc ecx
push ecx
push 0
push 0
mov eax, str.open
push esi
push eax
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x1001df94
push esi
call fcn.1001d112
pop ecx
pop esi
leave
ret
Function at 0x1001ec38
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x4d4
lea ebp, [esp - 4]
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x4d4], eax
push 0xc
mov eax, 0x100ce1d5
call fcn.10071ffd
mov esi, dword [ebp + 0x4e0]
mov edi, dword [ebp + 0x4e4]
xor ebx, ebx
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x18], 7
call fcn.10001b70
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x1001ed4e
lea eax, [ebp + 0x1c]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1001ed4e
cmp word [ebp + 0x1c], bx
mov dword [ebp - 0x14], ebx
je 0x1001ed4e
lea esi, [ebp + 0x1c]
xor edi, edi
push 0x100d98f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001ed35
push 0x100d98f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001ed35
mov ax, word [esi]
mov word [ebp + 0x4cc], ax
mov ax, word [ebp + edi + 0x1e]
mov word [ebp + 0x4ce], ax
push 0x64
lea eax, [ebp + 0x404]
push eax
lea eax, [ebp + 0x4cc]
push eax
mov word [ebp + 0x4d0], bx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1001ed85
lea eax, [ebp + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0x18]
mov esi, eax
push esi
lea eax, [ebp + 0x404]
push eax
push edi
call fcn.10077b87
add esp, 0xc
test eax, eax
je 0x1001ed9d
add dword [ebp - 0x14], 4
mov edi, dword [ebp - 0x14]
add edi, edi
lea esi, [ebp + edi + 0x1c]
cmp word [esi], bx
jne 0x1001ecb7
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.100034f0
push ebx
push 1
lea ecx, [ebp]
call fcn.100017f0
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 + 0x4d4]
xor ecx, ebp
call fcn.10071fee
add ebp, 0x4d8
leave
ret
mov ecx, dword [ebp - 0x10]
call fcn.100034f0
push ebx
push 1
lea ecx, [ebp]
call fcn.100017f0
mov eax, dword [ebp - 0x10]
jmp 0x1001ed62
lea eax, [ebp + 0x4cc]
push eax
lea ecx, [ebp]
call fcn.10003620
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp]
call fcn.10003620
mov ecx, dword [ebp - 0x10]
lea eax, [ebp]
push eax
call fcn.10003510
jmp 0x1001ed8d
Function at 0x1001ef65
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x38
mov eax, 0x100ce21d
call fcn.10071ffd
mov eax, dword [ebp + 0x24c]
push 1
xor esi, esi
push esi
push esi
push eax
push str.open
push esi
mov dword [ebp - 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x1001f134
push 0x206
lea eax, [ebp + 0x3a]
push esi
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov word [ebp + 0x38], si
call fcn.10072750
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0x20019
push ebx
push esi
push str.http
push SysReAllocString
call edi
test eax, eax
je 0x1001eff8
xor eax, eax
jmp 0x1001f137
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push str.shell
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x1001eff1
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push str.opencommand
push dword [ebp - 0x14]
call edi
cmp eax, esi
jne 0x1001eff1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x10102f18
push dword [ebp - 0x18]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x10], esi
jbe 0x1001eff1
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.100015f0
push esi
push 0x100d9900
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], esi
call fcn.10003f70
mov edi, eax
cmp edi, 0xffffffff
push esi
lea ecx, [ebp + 0x1c]
jne 0x1001f090
push ebx
call fcn.100017f0
jmp 0x1001eff1
push 0x100d89dc
call fcn.10003f70
push 0x10102f18
lea ecx, [ebp]
mov dword [ebp - 0x20], eax
call fcn.100015f0
cmp dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
lea ecx, [ebp + 0x1c]
jne 0x1001f0ca
add edi, 5
push edi
push esi
push eax
call fcn.100035e0
mov byte [ebp - 4], 2
jmp 0x1001f0d9
add edi, 4
push edi
push esi
push eax
call fcn.100035e0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp]
call fcn.10001d60
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.100017f0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x1001f0fb
lea eax, [ebp + 4]
push ebx
push esi
push dword [ebp - 0x28]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
push esi
lea ecx, [ebp]
push ebx
ja 0x1001f125
call fcn.100017f0
push esi
lea ecx, [ebp + 0x1c]
jmp 0x1001f085
call fcn.100017f0
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.100017f0
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.10071fee
add ebp, 0x244
leave
ret
Function at 0x1001f5f5
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 0x2c
mov eax, 0x100ce292
call fcn.10071ffd
mov edi, dword [ebp + 0x128]
lea eax, [ebp - 0x38]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp]
push ebx
push eax
call fcn.10072750
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x10102f18
mov ecx, edi
call fcn.100015f0
mov eax, dword [ebp + 4]
xor ecx, ecx
inc ecx
sub eax, 4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
je 0x1001f77f
dec eax
je 0x1001f747
dec eax
je 0x1001f6af
sub eax, 4
je 0x1001f691
push str.Unknown_Operating_System
jmp 0x1001f7b5
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x1001f6a5
push str.Microsoft_Windows_10_Insider_Preview
jmp 0x1001f7b7
push str.Microsoft_Windows_Server_Technical_Preview
jmp 0x1001f7b7
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x1001f72f
dec eax
je 0x1001f711
dec eax
je 0x1001f6da
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x1001f6d0
push str.Microsoft_Windows_8.1
jmp 0x1001f7b7
push str.Microsoft_Windows_Server_2012_R2
jmp 0x1001f7b7
cmp byte [ebp + 0x11a], cl
jne 0x1001f707
push 4
push 6
call fcn.1001f1fb
test eax, eax
pop ecx
pop ecx
mov ecx, edi
je 0x1001f6fd
push str.Microsoft_Windows_10
jmp 0x1001f7b7
push str.Microsoft_Windows_8
jmp 0x1001f7b7
push str.Microsoft_Windows_Server_2012
jmp 0x1001f7b5
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x1001f725
push str.Microsoft_Windows_7
jmp 0x1001f7b7
push str.Microsoft_Windows_Server_2008_R2
jmp 0x1001f7b7
cmp byte [ebp + 0x11a], cl
mov ecx, edi
jne 0x1001f740
push str.Microsoft_Windows_Vista
jmp 0x1001f7b7
push str.Microsoft_Windows_Server_2008
jmp 0x1001f7b7
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x1001f778
dec eax
je 0x1001f771
dec eax
jne 0x1001f7bc
cmp byte [ebp + 0x11a], cl
jne 0x1001f76a
cmp word [ebp - 0x38], 9
jne 0x1001f76a
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x1001f7b5
push str.Microsoft_Windows_Server_2003
jmp 0x1001f7b5
push str.Microsoft_Windows_XP
jmp 0x1001f7b5
push str.Microsoft_Windows_2000
jmp 0x1001f7b5
cmp dword [ebp + 8], ebx
je 0x1001f79e
cmp dword [ebp + 8], 0xa
je 0x1001f797
cmp dword [ebp + 8], 0x5a
jne 0x1001f7bc
push str.Microsoft_Windows_Me
jmp 0x1001f7b5
push str.Microsoft_Windows_98
jmp 0x1001f7b5
cmp dword [ebp + 0x10], 2
jne 0x1001f7ab
push str.Microsoft_Windows_NT_4.0
jmp 0x1001f7b5
cmp dword [ebp + 0x10], ecx
jne 0x1001f7bc
push 0x100d9a54
mov ecx, edi
call fcn.100017c0
cmp dword [ebp + 0x12c], ebx
je 0x1001f7db
push 0x100d9a50
mov ecx, edi
call fcn.10003620
lea eax, [ebp + 0x14]
push eax
mov ecx, edi
call fcn.10003620
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.10071fee
add ebp, 0x120
leave
ret
Function at 0x10020abd
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea ebx, [ecx + 0x210]
push edi
push ebx
push dword [ebx + 4]
lea ecx, [ebp - 0x10]
call fcn.100204a1
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebx + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.100204a1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.1003fd71
test al, al
jne 0x10020bb5
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, 0x100d9f08
mov eax, dword [ebp + 8]
add eax, 0xa8
push eax
call esi
push edi
call esi
lea ecx, [ebp - 8]
call fcn.1000ce84
add eax, 0xa8
push eax
call esi
push edi
call esi
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
call esi
push edi
call esi
lea ecx, [ebp - 8]
call fcn.1000ce84
add eax, 0x28
push eax
call esi
push edi
call esi
lea ecx, [ebp - 8]
call fcn.1000ce84
add eax, 0xa8
push eax
mov eax, dword [ebp + 8]
add eax, 0xa8
push eax
call fcn.10077e90
test eax, eax
pop ecx
pop ecx
jne 0x10020b8d
lea ecx, [ebp - 8]
call fcn.1000ce84
add eax, 0x28
push eax
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
call fcn.10077e90
test eax, eax
pop ecx
pop ecx
je 0x10020bd5
lea ecx, [ebp - 8]
call fcn.10020383
push ebx
push dword [ebx + 8]
lea ecx, [ebp - 0x10]
call fcn.100204a1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.1003fd71
test al, al
je 0x10020b0f
mov esi, dword [ebp + 8]
lea eax, [esi + 0xa8]
push eax
call fcn.10071a00
test eax, eax
pop ecx
je 0x10020bd5
push esi
mov ecx, ebx
call fcn.10020a68
mov al, 1
jmp 0x10020bd7
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002115c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x98], eax
and dword [ebp - 0x80], 0
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x210]
mov ecx, ebx
call fcn.10020777
mov esi, 0x114
push esi
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.10072750
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x6c], 2
jne 0x100211bd
mov ecx, edi
call fcn.10020bde
jmp 0x100211d5
xor esi, esi
cmp dword [ebp - 0x80], 0
jne 0x100211d5
mov ecx, edi
call fcn.10021018
inc esi
cmp esi, 0xa
mov dword [ebp - 0x80], eax
jl 0x100211bf
mov ecx, ebx
call fcn.10020353
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071fee
add ebp, 0x9c
leave
ret

Function at 0x100225b1
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [esi + 4], ecx
pop esi
ret 4

Function at 0x100225df
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x100ce514
call fcn.10071ffd
lea ecx, [ebp - 0x48]
call fcn.10033215
xor esi, esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.100331ec
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
je 0x1002267d
lea eax, [ebp - 0x18]
push eax
push 0xf013f
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, esi
jne 0x100226e3
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push esi
push str.DongFangInput
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
call edi
cmp eax, esi
je 0x10022651
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100226e3
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 0x104
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x18]
jmp 0x100226e1
lea eax, [ebp - 0x10]
push eax
mov ebx, 0xf003f
push ebx
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
call edi
cmp eax, esi
jne 0x100226e3
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push str.DongFangInput
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
call edi
cmp eax, esi
je 0x100226b7
push dword [ebp - 0x10]
jmp 0x10022646
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x24], 0x104
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.1003310f
call fcn.100720d5
ret 8
Function at 0x100226f7
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x100cf1dc
call fcn.10071ffd
lea ecx, [ebp - 0x40]
call fcn.10033215
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.100331ec
test eax, eax
je 0x10022790
lea eax, [ebp - 0x10]
push eax
mov edi, 0xf013f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100227f7
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push esi
push esi
push esi
push str.DongFangInput
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x10022769
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100227f7
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
jmp 0x100227f5
lea eax, [ebp - 0x14]
push eax
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100227f7
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push esi
push esi
push esi
push str.DongFangInput
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x100227d0
push dword [ebp - 0x14]
jmp 0x1002275e
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x14]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.1003310f
call fcn.100720d5
ret 8
Function at 0x1002280b
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3b0]
sub esp, 0x430
mov eax, dword [0x1011ac70]
xor eax, ebp
mov dword [ebp + 0x3ac], eax
mov eax, dword [ebp + 0x3b8]
push ebx
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x68]
push eax
xor ebx, ebx
push 9
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002285d
xor eax, eax
jmp 0x10022934
push esi
push edi
mov edi, 0x206
push edi
lea eax, [ebp + 0x1a6]
push ebx
push eax
mov word [ebp + 0x1a4], bx
call fcn.10072750
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x1a4]
push eax
mov dword [ebp - 0x6c], ebx
push ebx
jmp 0x10022915
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10022907
push edi
lea eax, [ebp - 0x62]
push ebx
push eax
mov dword [ebp - 0x78], esi
mov word [ebp - 0x64], bx
call fcn.10072750
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.DisplayName
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100228fe
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push eax
call fcn.10074cd9
test eax, eax
pop ecx
pop ecx
je 0x100228fe
mov dword [ebp - 0x74], 1
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x6c]
push esi
lea eax, [ebp + 0x1a4]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x10022892
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
mov ecx, dword [ebp + 0x3ac]
xor ecx, ebp
pop ebx
call fcn.10071fee
add ebp, 0x3b0
leave
ret 4