joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c7f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x48c]
sub esp, 0x50c
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x488], eax
mov eax, dword [ebp + 0x494]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x6d], bl
mov dword [ebp - 0x74], ebx
mov esi, 0x2710
cmp byte [ebp - 0x6d], bl
jne 0x43c996
push 0xff
lea eax, [ebp + 0x389]
push ebx
push eax
mov byte [ebp + 0x388], bl
call fcn.0049d740
push 0x3e7
lea eax, [ebp - 0x5f]
push ebx
push eax
mov byte [ebp - 0x60], bl
call fcn.0049d740
push dword [ebp - 0x74]
lea eax, [ebp + 0x388]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp + 0x388]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x43c989
push esi
push 8
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x43c980
push 0xc
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
push ebx
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x2d1400
push dword [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43c90d
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x43c90d
lea ecx, [ebp - 0x60]
push ecx
add eax, edi
push eax
call fcn.0043d0dc
lea eax, [ebp - 0x60]
push eax
call fcn.0043d254
add esp, 0xc
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
test eax, eax
jne 0x43c958
push esi
push ebx
push edi
call fcn.0049d740
add esp, 0xc
push ebx
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43c971
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x60]
push eax
call fcn.0043d254
pop ecx
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
test eax, eax
je 0x43c971
push dword [ebp + 0x498]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x80]
call fcn.0049e8a0
mov byte [ebp - 0x6d], 1
add esp, 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x74]
cmp dword [ebp - 0x74], 0x10
jl 0x43c824
mov ecx, dword [ebp + 0x488]
mov al, byte [ebp - 0x6d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
add ebp, 0x48c
leave
ret
Function at 0x43ce3f
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x551bd0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x43ce69
xor al, al
jmp 0x43cf30
mov eax, dword [0x55855c]
push edi
xor edi, edi
cmp eax, edi
jne 0x43ce97
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x55855c], eax
cmp eax, 0x20
jae 0x43ce97
mov dword [0x55855c], edi
xor al, al
jmp 0x43cf2f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x558560], edi
jne 0x43ceb7
push str.SnmpExtensionInit
push eax
call esi
mov dword [0x558560], eax
cmp eax, edi
je 0x43cf28
push 0x558554
push 0x558550
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [0x558560]
cmp dword [0x558564], edi
jne 0x43ceec
push str.SnmpExtensionInitEx
push dword [0x55855c]
call esi
mov dword [0x558564], eax
cmp eax, edi
je 0x43cf28
cmp dword [0x558568], edi
jne 0x43cf0a
push str.SnmpExtensionQuery
push dword [0x55855c]
call esi
mov dword [0x558568], eax
cmp eax, edi
je 0x43cf28
cmp dword [0x55856c], edi
jne 0x43cf2c
push str.SnmpExtensionTrap
push dword [0x55855c]
call esi
mov dword [0x55856c], eax
cmp eax, edi
jne 0x43cf2c
xor al, al
jmp 0x43cf2e
mov al, 1
pop esi
pop edi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0049a49b
add esp, 0x194
ret
Function at 0x43ed6c
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x43ed82
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x43ed8e
or edi, 1
push 1
call esi
test ax, ax
jge 0x43ed9a
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x43eda6
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x43edb2
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x440c4e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd4]
mov ecx, edi
xor ebx, ebx
call fcn.0045a40c
test eax, eax
jle 0x440c9d
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.00442e6c
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x440cfe
mov ecx, edi
inc ebx
call fcn.0045a40c
cmp ebx, eax
jl 0x440c6c
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x440d57
sub eax, 4
je 0x440d02
dec eax
dec eax
jne 0x440d4e
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0049c21f
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x43fd85
call dword [eax + 0x114]
mov esi, eax
test esi, esi
je 0x440d4e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x104]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x440d50
cmp dword [esi + 0x54], 0
je 0x440d4e
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0043ed6c
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x120]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x440d4e
cmp dword [esi + 0x54], 0
je 0x440da6
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd8]
test al, al
je 0x440da6
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xe4]
test al, al
je 0x440da6
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0049c24b
pop ecx
pop ecx
test eax, eax
je 0x440da6
mov ecx, dword [esi + 0x54]
call fcn.0044f281
test al, al
jne 0x440d4e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.00440b02
jmp 0x440cfe
Function at 0x446c20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
cmp eax, 1
jne 0x446c64
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esi + 0x1c]
mov ebx, eax
call fcn.00448203
call edi
mov ecx, dword [esi + 0x28]
sub eax, ebx
cmp eax, ecx
jl 0x446c4e
xor ecx, ecx
jmp 0x446c50
sub ecx, eax
push ecx
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x24]
cmp eax, 1
je 0x446c33
pop edi
pop ebx
pop esi
ret

Function at 0x446f97
Capabilities:
Create thread
Resume thread

Disassembly:
mov ecx, dword [ecx + 0x4a8]
test ecx, ecx
jne 0x446fa4
xor al, al
ret
jmp fcn.00446dce
Function at 0x44f3fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4e4], ebx
je 0x44f464
cmp dword [ebp + 8], 0x100
jne 0x44f453
cmp word [ebp + 0xc], 0xd
jne 0x44f453
cmp byte [esi + 0x4ea], bl
je 0x44f43a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x44f453
cmp byte [esi + 0x4eb], bl
jne 0x44f453
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x44f44f
push ebx
push ebx
push ebx
push 0x5172b0
push esi
call fcn.0044039e
xor eax, eax
jmp 0x44f467
mov eax, dword [esi + 0x4e4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x45f133
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x508
jmp method.DuiLib::CAutoListUI.3.virtual_292

Function at 0x461b9d
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x4e0
jmp method.DuiLib::CAutoTableUI.2.virtual_292

Function at 0x463737
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0046b937
test al, al
je 0x4638a2
test ebx, ebx
je 0x463770
lea eax, [ebx + 0x560]
jmp 0x463772
xor eax, eax
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043fe44
lea eax, [ebx + 0x564]
push eax
sub esp, 0x10
mov edi, esp
mov esi, 0x5358ac
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.0046ae8b
lea eax, [ebp - 0x78]
push eax
push 1
xor esi, esi
push esi
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_6.1__Trident_5.0__SMT_
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x463819
cmp dword [ebp - 0x78], esi
je 0x463819
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
call fcn.0049d740
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push str.Version
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x463810
cmp word [ebp - 0x74], 0x36
jne 0x463810
mov dword [ebp - 0x80], str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SMT_
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x51bc7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x46385b
push str.UrlMkSetSessionOption
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x7c], esi
je 0x46385b
push esi
push dword [ebp - 0x80]
call fcn.0049db30
pop ecx
push eax
push dword [ebp - 0x80]
push 0x10000001
call dword [ebp - 0x7c]
push 1
mov ecx, ebx
call fcn.0046364d
cmp byte [ebx + 0x5f8], 0
je 0x46388f
lea edi, [ebx + 0x574]
mov ecx, edi
call fcn.00442fbc
test al, al
jne 0x46388f
mov ecx, edi
call fcn.00442fe7
push eax
mov ecx, ebx
call fcn.004634bc
jmp 0x4638a0
mov ecx, dword [ebx + 0x44]
push esi
push esi
push esi
push 0x51bc38
push ebx
call fcn.0044039e
mov al, 1
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
add ebp, 0x198
leave
ret
Function at 0x4648fb
Capabilities:
Get graphical window text

Disassembly:
push 0x44
mov eax, 0x50a617
call fcn.0049e056
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x464a2c
cmp dword [esi + 0x14], ebx
je 0x464a2c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.004a0570
mov dword [ebp - 0x30], esp
cmp esp, ebx
je 0x464a2c
push edi
push dword [ebp - 0x30]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x700]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.00401685
push 1
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 0xa
call fcn.00403874
mov edi, eax
cmp edi, 0xffffffff
je 0x4649ed
push edi
push ebx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004037a5
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 1
jb 0x46499d
mov eax, dword [eax + 4]
jmp 0x4649a0
add eax, 4
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x150]
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.0040184d
push edi
push ebx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004037a5
cmp dword [eax + 0x18], 8
jb 0x4649d3
mov eax, dword [eax + 4]
jmp 0x4649d6
add eax, 4
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0040184d
jmp 0x464a05
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4649f9
lea eax, [ebp - 0x28]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 0x150]
mov esi, dword [esi + 0x14]
mov eax, dword [esi]
push ebx
push ebx
push ebx
push str.textchanged
push dword [ebp - 0x34]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0044039e
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040184d
xor eax, eax
lea esp, [ebp - 0x60]
call fcn.0049e0d9
ret 0x10

Function at 0x465b49
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
lea eax, [esi + 0x48d4]
mov ecx, dword [eax]
cmp ecx, 1
jne 0x465b82
lea eax, [esp + 4]
push eax
push 4
push esi
push 0x465a54
push 0
push 0
call fcn.0049ab60
add esp, 0x18
mov dword [esi], eax
test eax, eax
jbe 0x465b8d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x465b8d
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
pop esi
pop ecx
ret
Function at 0x46d70a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, ecx
cmp eax, 0xd
jne 0x46d752
mov eax, dword [esi]
call dword [eax + 0x30]
push dword [edi + 0x10]
mov ebx, eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x46d7a6
mov eax, dword [edi + 0xc]
sub eax, dword [ebx]
mov dword [esi + 0x4ac], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 4]
mov byte [esi + 0x4b4], 1
mov dword [esi + 0x4b0], eax
jmp 0x46d7a6
cmp eax, 0xe
jne 0x46d76f
mov ecx, dword [esi + 0x4a8]
mov byte [esi + 0x4b4], 0
test ecx, ecx
je 0x46d7a6
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x46d7a6
cmp eax, 9
jne 0x46d79e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x46d79e
mov ecx, dword [esi + 0x4a8]
test ecx, ecx
je 0x46d7a6
cmp byte [esi + 0x4b4], 0
je 0x46d7a6
mov eax, dword [ecx]
add edi, 0xc
push edi
call dword [eax]
jmp 0x46d7a6
push edi
mov ecx, esi
call fcn.00448378
pop edi
pop esi
pop ebx
ret 4

Function at 0x46d7c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp]
push esi
mov ebx, ecx
cmp eax, 0x17
jne 0x46d7f5
movzx eax, word [ebx + 0x4ac]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x46d89b
cmp eax, 0xd
jne 0x46d844
mov eax, dword [ebx]
call dword [eax + 0x30]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x46d89b
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0x30]
mov esi, eax
lea edi, [ebx + 0x4b8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x4b0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x4b4], eax
mov byte [ebx + 0x4c8], 1
pop edi
jmp 0x46d89b
cmp eax, 0xe
jne 0x46d861
mov ecx, dword [ebx + 0x4a8]
mov byte [ebx + 0x4c8], 0
test ecx, ecx
je 0x46d89b
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x46d89b
cmp eax, 9
jne 0x46d895
lea esi, [ebx + 0x4a8]
cmp dword [esi], 0
je 0x46d89b
cmp byte [ebx + 0x4c8], 0
je 0x46d89b
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x46d89b
mov ecx, dword [esi]
mov eax, dword [ecx]
add ebp, 0xc
push ebp
push ebx
call dword [eax + 4]
jmp 0x46d89b
push ebp
call fcn.00448378
pop esi
pop ebp
pop ebx
ret 4
Function at 0x46eecd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x1c], bl
je 0x46ef3e
cmp dword [esi + 0x14], ebx
je 0x46ef3e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.004a0570
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x46ef3e
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x14]
push dword [ebp - 8]
add ecx, 0x1cc
call fcn.0044300d
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0044039e
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a49b
leave
ret 0x10
Function at 0x473bfe
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x34], edi
je 0x473cc1
call fcn.00473361
test eax, eax
je 0x473c70
push ebx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x50], eax
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x4739ff
push edi
push edi
call fcn.0049ab60
add esp, 0x18
mov dword [esi + 0x4c], eax
cmp eax, edi
jne 0x473c59
xor ebx, ebx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov dword [esi + 0x50], edi
pop ebx
jmp 0x473cc3
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
inc ebx
jmp 0x473c48
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x473cc1
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x58]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 8]
push dword [esi + 4]
push edi
push edi
push dword [esi + 0x38]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x473cc1
mov ecx, dword [esi + 0x40]
call fcn.00448203
xor eax, eax
inc eax
jmp 0x473cc3
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x474072
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 4
mov eax, 0x50af29
call fcn.0049dfed
mov dword [ebp - 0x10], ecx
call fcn.00495f9f
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
and dword [ebp - 4], 0
mov ebx, 0x104
push ebx
lea eax, [ebp]
push eax
push str._APPDATA_SogouMobileTool
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea eax, [ebp]
push eax
call edi
push ebx
lea eax, [ebp]
push eax
push str._APPDATA_SogouMobileToolLog
call esi
push 0
lea eax, [ebp]
push eax
call edi
mov ecx, dword [ebp - 0x10]
push 1
push 0x989680
push 0x51eb88
lea eax, [ebp]
push eax
push 0x64
call fcn.00474262
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x210
leave
ret

Function at 0x47434b
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ebx, ecx
cmp eax, 0xffffffff
jne 0x474361
xor al, al
jmp 0x474392
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x47438b
push eax
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [esi]
mov dword [ebp + 8], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [ebx + 4]
pop edi
setl al
pop esi
pop ebx
leave
ret 4
Function at 0x474398
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0x100000
push dword [esi + 0x34]
mov ebx, ecx
mov byte [esp + 0x1b], 0
call fcn.0049e39f
mov edi, eax
add edi, 0x100
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499a0f
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4743e3
xor al, al
jmp 0x474486
lea eax, [edi + edi]
push eax
push 0
push ebp
call fcn.0049d740
add esp, 0xc
cmp dword [esi + 0x30], 8
jb 0x4743fd
mov eax, dword [esi + 0x1c]
jmp 0x474400
lea eax, [esi + 0x1c]
push dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [esi + 0x10]
movzx eax, word [esi + 0xe]
push eax
movzx eax, word [esi + 0xc]
push eax
movzx eax, word [esi + 0xa]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 6]
push eax
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d_t_d:_d_t_s_t_s_r_n
push edi
push ebp
call fcn.0047432f
push 0x100000
push ebp
call fcn.0049e39f
mov esi, eax
mov eax, dword [ebx + 0x5c]
add esp, 0x40
add esi, esi
cmp eax, 0xffffffff
je 0x47447b
push 2
xor edi, edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x1c]
push eax
push esi
push ebp
push dword [ebx + 0x5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne byte [esp + 0x13]
push ebp
call fcn.0049ac10
mov al, byte [esp + 0x17]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x47448e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x5c]
cmp dword [esi], 0xffffffff
jne 0x4744a6
xor al, al
jmp 0x47452b
push ebx
xor ebx, ebx
cmp dword [edi + 0x60], 0x14
jl 0x474519
push esi
call fcn.0047434b
test al, al
jne 0x474516
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x58], 8
jb 0x4744cc
mov eax, dword [edi + 0x44]
jmp 0x4744cf
lea eax, [edi + 0x44]
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4744f1
xor al, al
jmp 0x47452a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [esi]
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi + 0x60], ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.00474398
cmp al, bl
je 0x47452a
inc dword [edi + 0x60]
pop ebx
pop edi
pop esi
leave
ret 4