joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a480
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push esi
push eax
push eax
push 0x8023
push eax
mov word [esi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x40a59a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a4a1
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
mov ecx, 0x104
mov eax, esi
je 0x40a4f0
nop
cmp word [eax], 0
je 0x40a4d0
add eax, 2
sub ecx, 1
jne 0x40a4c0
jmp 0x40a51f
test ecx, ecx
je 0x40a51f
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax*2]
mov eax, 0x458950
jmp 0x40a51a
cmp word [eax], 0
je 0x40a500
add eax, 2
sub ecx, 1
jne 0x40a4f0
jmp 0x40a51f
test ecx, ecx
je 0x40a51f
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax*2]
mov eax, str.DuoduoIME3_
call fcn.00407450
test edi, edi
je 0x40a594
cmp word [edi], 0
je 0x40a594
mov ecx, 0x104
mov eax, esi
cmp word [eax], 0
je 0x40a540
add eax, 2
sub ecx, 1
jne 0x40a530
jmp 0x40a55c
test ecx, ecx
je 0x40a55c
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax*2]
mov eax, edi
call fcn.00407450
mov ecx, 0x104
mov eax, esi
cmp word [eax], 0
je 0x40a575
add eax, 2
sub ecx, 1
jne 0x40a563
lea eax, [ecx + 1]
ret
test ecx, ecx
je 0x40a594
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax*2]
mov eax, 0x457ff4
call fcn.00407450
mov eax, 1
ret
xor eax, eax
ret

Function at 0x40a5a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
test esi, esi
je 0x40a601
test edi, edi
je 0x40a601
lea eax, [esp + 4]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a5fa
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push esi
push ebx
lea edx, [edi + edi]
push ebx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a5ef
lea ebx, [eax + 1]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
add esp, 8
ret
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x40a610
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea ecx, [esp + 0xc]
push ecx
push eax
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x40a667
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00435010
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x40a6d8
lea ecx, [ecx]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push ecx
xor eax, eax
push edx
mov word [esp + 0x226], ax
call fcn.0040a610
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a6d8
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
push eax
mov dword [esp + 0x30], 0x100
call edi
test eax, eax
je 0x40a690
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40a708
mov edx, dword [esp + 0x14]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00435010
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00435010
mov esp, ebp
pop ebp
ret

Function at 0x40a720
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov byte [esi], 0
cmp eax, 0x6f
jne 0x40a7f8
mov edx, dword [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x40a7f8
lea eax, [esp + 0xc]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40a7e8
mov eax, ebx
cmp dword [eax + 0x190], 0
jne 0x40a7a2
mov eax, dword [eax]
test eax, eax
jne 0x40a791
jmp 0x40a7e8
xor esi, esi
cmp dword [ebx + 0x190], esi
jbe 0x40a7e8
lea esp, [esp]
movzx ecx, byte [ebx + esi + 0x194]
push ecx
push 0x458984
mov ecx, 3
lea edi, [esp + 0x18]
call fcn.00411290
mov eax, dword [esp + 0x1c]
add esp, 8
mov edx, edi
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.00409300
inc esi
cmp esi, dword [ebx + 0x190]
jb 0x40a7b0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00435010
mov esp, ebp
pop ebp
ret
Function at 0x40a810
Capabilities:
Check if file exists
Create http request
Delete file
Download and write a file
Get file attributes
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x270
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push ebp
push edi
mov ebx, edx
xor ebp, ebp
push ebx
mov edi, ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a868
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a868
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00435010
add esp, 0x270
ret
push 0
push 0
push 0
push 0
push 0x458988
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x20], eax
test eax, eax
je 0x40aa09
push 0
push 0x4000000
push 0
push 0
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x40a9fe
xor eax, eax
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x13
push edi
mov word [esp + 0x38], ax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov word [esp + 0x4a], ax
mov dword [esp + 0x30], 0xa
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, 0x4589a0
lea eax, [esp + 0x24]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a916
test dx, dx
je 0x40a912
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a916
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a8f0
xor eax, eax
jmp 0x40a91b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a9c5
test ebx, ebx
je 0x40a9f7
push 0x458800
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00436560
add esp, 0xc
cmp dword [esp + 0x10], ebp
je 0x40a9f7
cmp dword [esp + 0xc], ebp
jbe 0x40a9ae
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push 0x1ff
lea edx, [esp + 0x80]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x80]
push 1
push eax
call fcn.00436e69
add esp, 0x10
test esi, esi
je 0x40a9a3
mov eax, dword [esi]
test eax, eax
je 0x40a9a3
mov ecx, dword [esi + 8]
add ebp, dword [esp + 0xc]
push ecx
push ebp
push 0
call eax
add esp, 0xc
cmp dword [esp + 0xc], 0
ja 0x40a954
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edx
call fcn.00435c9c
add esp, 4
mov dword [esp + 0x18], 1
jmp 0x40a9f7
test esi, esi
je 0x40a9f7
cmp dword [esi + 4], ebp
je 0x40a9f7
lea eax, [esp + 0x24]
push eax
push 0x4589a8
mov ecx, 0x20
lea ebx, [esp + 0x40]
call fcn.00402d10
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
push ecx
mov edx, ebx
push 0
push edx
call eax
add esp, 0x14
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x278]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00435010
add esp, 0x270
ret
Function at 0x40aa30
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x214
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push 0
push 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
call esi
mov ebx, eax
lea ecx, [ebx*4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40aac5
push edi
push ebx
call esi
xor esi, esi
test ebx, ebx
jbe 0x40aac5
push ebp
lea esp, [esp]
mov ebp, dword [edi + esi*4]
push 0x104
lea edx, [esp + 0x1c]
push edx
push ebp
call sub.IMM32.dll_ImmGetIMEFileNameW
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0044cbe1
add esp, 8
test eax, eax
je 0x40aac0
inc esi
cmp esi, ebx
jb 0x40aa90
jmp 0x40aac4
mov dword [esp + 0x10], ebp
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x21c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00435010
add esp, 0x214
ret

Function at 0x40aaf0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x20
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40abcb
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x40ab40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ab40
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x40ab90
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp word [eax], 0
je 0x40ab70
add eax, 2
sub ecx, 1
jne 0x40ab60
jmp 0x40ab90
test ecx, ecx
je 0x40ab90
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x10]
mov eax, 0x457ff4
call fcn.00407450
mov esi, 0x63
mov dword [esp + 0xc], 0x17
push esi
lea edx, [esp + 0x14]
push edx
push str._sVirtualized_cProgramDataDuoduoIME3_
mov ecx, 0x104
lea ebx, [esp + 0x224]
call fcn.00402d10
add esp, 0xc
mov edi, ebx
call fcn.00409800
inc esi
sub dword [esp + 0xc], 1
jne 0x40ab9d
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00435010
mov esp, ebp
pop ebp
ret
Function at 0x40aca0
Capabilities:
Delete file

Disassembly:
sub esp, 0x274
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
lea eax, [esp + 0x68]
mov esi, ecx
call fcn.004073f0
test eax, eax
je 0x40acce
lea edi, [esp + 0x68]
call fcn.00409800
xor eax, eax
push 0x104
push esi
lea edx, [esp + 0x70]
mov ecx, str.DataLocation
mov word [esp + 0x70], ax
call fcn.00407360
add esp, 8
test eax, eax
je 0x40acf9
lea edi, [esp + 0x68]
call fcn.00409800
call fcn.0040aaf0
push 0x28
push esi
lea esi, [esp + 0x10]
call fcn.004047a0
add esp, 8
mov ecx, 0x2d
mov eax, esi
cmp word [eax], 0
je 0x40ad24
add eax, 2
sub ecx, 1
jne 0x40ad14
jmp 0x40ad44
test ecx, ecx
je 0x40ad44
mov eax, 0x2d
sub eax, ecx
mov ecx, 0x2d
sub ecx, eax
lea edx, [esp + eax*2 + 8]
mov eax, str..ime
call fcn.00407450
lea esi, [esp + 0x68]
call fcn.0040fe80
mov ecx, 0x104
mov eax, esi
cmp word [eax], 0
je 0x40ad64
add eax, 2
sub ecx, 1
jne 0x40ad54
jmp 0x40ad83
test ecx, ecx
je 0x40ad83
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x68]
lea eax, [esp + 8]
call fcn.00407450
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x274]
pop edi
pop esi
xor ecx, esp
call fcn.00435010
add esp, 0x274
ret
Function at 0x40adb0
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
sub esp, 0x628
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x620], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40afae
cmp word [esi], 0
je 0x40afae
lea eax, [esp + 0x420]
push eax
push 0
push 0
push 0x8017
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x420]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ae00
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x41e], 0x5c
je 0x40ae59
mov ecx, 0x104
lea eax, [esp + 0x420]
cmp word [eax], 0
je 0x40ae36
add eax, 2
sub ecx, 1
jne 0x40ae26
jmp 0x40ae59
test ecx, ecx
je 0x40ae59
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x420]
mov eax, 0x457ff4
call fcn.00407450
push esi
lea ecx, [esp + 0x424]
push ecx
push str._s_s_
mov ecx, 0x104
lea ebx, [esp + 0x1c]
call fcn.00402d10
mov edx, ebx
push esi
push edx
push 0x45c030
mov ecx, 0x104
lea ebx, [esp + 0x230]
call fcn.00402d10
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x18
mov eax, ebx
push eax
call edi
push esi
lea ecx, [esp + 0x14]
push ecx
push 0x45c048
mov ecx, 0x104
call fcn.00402d10
add esp, 0xc
mov edx, ebx
push edx
call edi
push esi
lea eax, [esp + 0x14]
push eax
push 0x45c060
mov ecx, 0x104
call fcn.00402d10
add esp, 0xc
mov ecx, ebx
push ecx
call edi
push esi
lea edx, [esp + 0x14]
push edx
push 0x45c078
mov ecx, 0x104
call fcn.00402d10
add esp, 0xc
mov eax, ebx
push eax
call edi
push esi
lea ecx, [esp + 0x14]
push ecx
push 0x45c090
mov ecx, 0x104
call fcn.00402d10
add esp, 0xc
mov edx, ebx
push edx
call edi
push esi
lea eax, [esp + 0x14]
push eax
push 0x45c0b0
mov ecx, 0x104
call fcn.00402d10
add esp, 0xc
mov ecx, ebx
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edi, [esp + 0x10]
call fcn.00409800
push esi
lea eax, [esp + 0x424]
push eax
push str._s_s_
mov ecx, 0x104
mov ebx, edi
call fcn.00402d10
mov esi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
add esp, 0xc
push 0
mov ecx, edi
push ecx
push 0x1005
push 4
call esi
lea edx, [esp + 0x420]
push edx
push 0x45c0cc
mov ecx, 0x104
call fcn.00402d10
add esp, 8
push 0
mov eax, edi
push eax
push 0x1005
push 4
call esi
push 0
lea ecx, [esp + 0x424]
push ecx
push 0x1005
push 4
call esi
mov ecx, dword [esp + 0x62c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00435010
add esp, 0x628
ret
Function at 0x40b570
Capabilities:
Set registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push ebx
push ebp
mov ebp, dword [esp + 0x120]
push esi
push eax
push str.CLSID_s
mov ecx, 0x80
lea ebx, [esp + 0x20]
call fcn.00402d10
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edx
push SysReAllocString
call ebx
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
je 0x40b6c4
mov eax, str.duoduoTSF
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b5f0
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push str.duoduoTSF
push 1
push 0
push 0
push ecx
call edi
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
inc eax
lea edx, [esp + 0x18]
push edx
and esi, eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.InProcServer32
push ecx
call ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
and esi, eax
je 0x40b6bc
mov eax, ebp
lea edx, [eax + 2]
jmp 0x40b660
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b660
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push edx
push ebp
push 1
push 0
push 0
push eax
call edi
neg eax
sbb eax, eax
inc eax
push 0x45c318
and esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax + 2]
push ecx
push 0x45c318
push 1
push 0
push str.ThreadingModel
push edx
call edi
neg eax
sbb eax, eax
inc eax
and esi, eax
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebx
pop edi
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00435010
add esp, 0x110
ret

Function at 0x40b850
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x46c
mov eax, dword [0x4677a0]
xor eax, esp
mov dword [esp + 0x464], eax
push esi
push edi
xor edi, edi
lea esi, [esp + 0x260]
mov dword [esp + 0xc], 1
call fcn.0040a480
mov ecx, 0x104
mov eax, esi
cmp word [eax], di
je 0x40b892
add eax, 2
sub ecx, 1
jne 0x40b883
jmp 0x40b8b5
test ecx, ecx
je 0x40b8b5
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0x260]
mov eax, 0x45c34c
call fcn.00407450
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call edi
test eax, eax
je 0x40b905
lea esp, [esp]
test byte [esp + 0x10], 0x10
je 0x40b8fd
cmp word [esp + 0x3c], 0x2e
jne 0x40b8fd
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x40b8e0
jmp 0x40b905
mov dword [esp + 0xc], 0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x46c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.00435010
add esp, 0x46c
ret
Function at 0x40b930
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x45c350
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b99b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b955
sub eax, edx
mov edx, dword [esp + 8]
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp]
push ecx
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40b991
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret

Function at 0x40b9a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x454dec
push 1
push 0
push 0x4557cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40ba6b
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push ebx
test esi, esi
je 0x40b9ff
push esi
jmp 0x40ba00
push edi
push eax
call edx
mov eax, dword [esp]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 5
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x4557fc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40ba57
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x40bed0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c120
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push 0xf003f
push eax
push eax
push eax
mov eax, dword [esp + 0x30]
push str.DuoduoIME3
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40c117
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x46f0f8
push eax
call esi
test eax, eax
jne 0x40c110
mov eax, 0x46fb74
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bf67
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [esp + 8]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push 0x46fb74
push 1
push 0
push str.DataLocation
push edx
call esi
mov eax, 0x46f96c
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bfa0
mov ecx, dword [esp + 8]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0x46f96c
push 1
push 0
push str.InstallLocation
push ecx
call esi
mov eax, 0x46bee4
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bfd0
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 8]
push edx
push 0x46bee4
push 1
push 0
push str.IMEName
push eax
call esi
mov eax, 0x46be44
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c000
sub eax, edx
mov edx, dword [esp + 8]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push 0x46be44
push 1
push 0
push str.DisplayName
push edx
call esi
mov eax, 0x46c076
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c030
mov ecx, dword [esp + 8]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0x46c076
push 1
push 0
push str.DisplayVersion
push ecx
call esi
mov eax, 0x46c4c6
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c060
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 8]
push edx
push 0x46c4c6
push 1
push 0
push 0x457ff8
push eax
call esi
mov eax, 0x46be94
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c090
sub eax, edx
mov edx, dword [esp + 8]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push 0x46be94
push 1
push 0
push str.LanguageName
push edx
call esi
mov eax, 0x46c96e
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c0c0
mov ecx, dword [esp + 8]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push 0x46c96e
push 1
push 0
push str.UnstallCommand
push ecx
call esi
movzx edx, word [0x46bfe4]
mov eax, dword [esp + 8]
push 4
push 0x46bfe4
push 4
push 0
push 0x458254
push eax
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 8]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
pop edi
pop esi
add esp, 0x10
ret