joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13f1c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x2c
call fcn.00015364
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
add ebx, 0x14
push ebx
push 0x88
call fcn.00015364
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x19516
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
call fcn.0001417b
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
call sub.ntoskrnl.exe_RtlGetVersion
cmp dword [ebp - 0xc], esp
je 0x13f93
push 6
call fcn.00015358
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 5
jne 0x13fc4
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 1
jne 0x13fc4
mov eax, 1
jmp 0x13fc6
xor eax, eax
test eax, eax
je 0x13fdd
mov eax, 1
jmp 0x14159
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 5
jne 0x1400e
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x1400e
mov eax, 1
jmp 0x14010
xor eax, eax
test eax, eax
je 0x14027
mov eax, 2
jmp 0x14159
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x14058
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x14058
mov eax, 1
jmp 0x1405a
xor eax, eax
test eax, eax
je 0x14071
mov eax, 3
jmp 0x14159
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x140a2
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 1
jne 0x140a2
mov eax, 1
jmp 0x140a4
xor eax, eax
test eax, eax
je 0x140bb
mov eax, 4
jmp 0x14159
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x140ec
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x140ec
mov eax, 1
jmp 0x140ee
xor eax, eax
test eax, eax
je 0x14105
mov eax, 5
jmp 0x14159
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 7
jne 0x14136
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x14136
mov eax, 1
jmp 0x14138
xor eax, eax
test eax, eax
je 0x1414f
mov eax, 6
jmp 0x14159
mov eax, 0
jmp 0x14159
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0x14
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0001535e
add esp, 4
pop ebx
call fcn.0001535e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x16390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
push edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x163a0
sub eax, edx
xor edi, edi
lea esi, [eax - 1]
test esi, esi
jle 0x163d4
movsx eax, byte [edi + ebx]
movsx edx, byte [esi + ebx]
xor edx, eax
mov byte [edi + ebx], dl
movsx ecx, byte [esi + ebx]
movsx eax, dl
xor ecx, eax
mov byte [esi + ebx], cl
xor byte [edi + ebx], cl
inc edi
dec esi
cmp edi, esi
jl 0x163b2
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x69fc1c40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x69fc7040
call sym._EnterCriticalSection_4
mov ebx, dword [0x69fc7038]
sub esp, 4
test ebx, ebx
je 0x69fc1c8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x69fc1c84
test esi, esi
je 0x69fc1c84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x69fc1c60
mov dword [esp], 0x69fc7040
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x69fc1e70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x69fc4430
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x69fc1ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x69fc1f98
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x69fc1efe
cmp eax, 4
jne 0x69fc1f20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x69fc1f0e
cmp edx, 4
je 0x69fc1f0e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.69fc1e70

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403530
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [esp + 0x18], ebx
call edi
mov ecx, dword [esp + 0xc]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
push ebx
call edi
mov edi, eax
cmp edi, ebx
je 0x4035d7
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x403585
test dword [esi + 0xc], 0x100000
jne 0x40359d
mov eax, dword [esi + 4]
push eax
jmp 0x403597
cmp ebp, 1
jne 0x40359d
test dword [esi + 0xc], 0x100000
je 0x40359d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push edi
call ebx
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_operatornew
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
push edi
call ebx
test eax, eax
jne 0x403572
mov ebx, 1
pop ebp
test esi, esi
je 0x4035e4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret
Function at 0x404fc0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40502b
mov ax, word [esp]
cmp al, 2
jne 0x405025
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x405025
push 0
push 0
push 0
push 0
push 0x326e
push 0x405540
call sub.MFC42.DLL_AfxBeginThread
push 0
push 0
push 0
push 0
push 0x326f
push 0x405540
call sub.MFC42.DLL_AfxBeginThread
mov eax, 1
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
add esp, 0x190
ret
Function at 0x4074e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 2
jne 0x407561
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x40753a
mov eax, dword [esp + 8]
test eax, eax
jne 0x40752e
mov eax, 6
add esp, 0x94
ret
mov eax, 7
add esp, 0x94
ret
cmp eax, 6
jne 0x407553
mov eax, dword [esp + 8]
test eax, eax
jne 0x407555
mov eax, 8
add esp, 0x94
ret
jb 0x40752e
mov eax, 9
add esp, 0x94
ret
cmp eax, 1
jne 0x40757e
cmp dword [esp + 4], 4
jne 0x40752e
cmp dword [esp + 8], 0x5a
sbb eax, eax
add eax, 4
add esp, 0x94
ret
mov eax, 2
add esp, 0x94
ret

Function at 0x4078f0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x407902
ret 4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret 4

Function at 0x407910
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
pop edi
ret 8
Function at 0x408f90
Capabilities:
Enumerate process modules

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40eceb
push eax
mov eax, 0x121c
mov dword fs:[0], esp
call fcn.0040db90
mov al, byte [0x413db8]
push esi
mov dword [esp + 0x14], ecx
push edi
mov byte [esp + 0x20], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x224]
push ecx
push 0x1000
push edx
mov dword [esp + 0x1238], 1
call sub.PSAPI.DLL_EnumProcesses
mov eax, dword [esp + 0x1c]
shr eax, 2
je 0x4090db
mov edi, dword [sym.imp.MSVCRT.dll__itoa]
push ebx
push ebp
lea esi, [esp + 0x22c]
mov ebp, eax
mov bl, 2
mov ecx, dword [esi]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00409140
test eax, eax
je 0x4090cf
mov eax, dword [esi]
lea edx, [esp + 0x12c]
push 0xa
push edx
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push 0x413890
push edx
mov byte [esp + 0x1240], bl
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x5c
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1238], 3
call fcn.0040da1e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1234], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1234], 1
call sub.MFC42.DLL_CString::CString
add esi, 4
dec ebp
jne 0x409021
pop ebp
pop ebx
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, dword [esp + 0x1234]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x122c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1224]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1228
ret 4
Function at 0x409140
Capabilities:
Get process image filename

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [esp + 0x118]
test edi, edi
mov ebx, ecx
jne 0x409164
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 8
mov eax, dword [esp + 0x114]
mov byte [edi], 0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40918e
pop edi
pop esi
pop ebx
add esp, 0x104
ret 8
lea ecx, [esp + 0xc]
push 0x104
push ecx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x4091b7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 8
lea edx, [esp + 0xc]
push edi
push edx
mov ecx, ebx
call fcn.00409200
test eax, eax
push esi
jne 0x4091dd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret 8

Function at 0x409200
Capabilities:
Get disk information

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x264]
push ebp
push esi
test ebx, ebx
push edi
je 0x4092c8
mov eax, dword [esp + 0x274]
test eax, eax
je 0x4092c8
lea eax, [esp + 0x78]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x4092b9
mov al, byte [esp + 0x78]
test al, al
je 0x4092b9
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea esi, [esp + 0x78]
push 0x413898
push esi
call ebp
test eax, eax
je 0x4092af
push 0x413894
push esi
call ebp
test eax, eax
je 0x4092af
mov cl, byte [esi]
mov dl, byte [esi + 1]
mov byte [esp + 0x10], cl
lea eax, [esp + 0x14]
push 0x64
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4092c8
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [esp + 0x14]
push edi
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
je 0x4092d7
mov al, byte [esi + 4]
add esi, 4
test al, al
jne 0x40924e
mov edx, dword [esp + 0x274]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x25c
ret 8
mov esi, dword [esp + 0x274]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret 8

Function at 0x4093a0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret
Function at 0x4012a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x4bf960]
xor eax, esp
mov dword [esp + 0x804], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xe]
mov dword [esp + 8], 0
push ecx
mov dword [esp + 0xc], 0
mov word [esp + 0x10], ax
call fcn.00477980
add esp, 0xc
lea edx, [esp]
push edx
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [esp + 4]
push eax
jne 0x40130f
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [esp]
push edx
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x40131c
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
lea eax, [esp + 4]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401337
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00401890
mov ecx, dword [esp + 0x804]
xor ecx, esp
mov eax, esi
call fcn.00476987
add esp, 0x808
ret
Function at 0x407190
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x494740
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4bf960]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
mov eax, dword [0x4bf960]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
push 0x4af3d4
call fcn.00460743
add esp, 4
test eax, eax
jne 0x407336
push 0x44
xor esi, esi
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00477980
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], esi
mov word [esp + 0x98], cx
lea edx, [esp + 0x1f]
push edx
lea eax, [esp + 0x98]
mov dword [esp + 0xc0], esi
mov bl, 1
push eax
mov byte [esp + 0x27], bl
call fcn.004615c6
add esp, 0x14
test al, al
je 0x40731c
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x90]
xor edx, edx
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], esi
mov word [esp + 0x7c], dx
call fcn.00401490
push 0x1a
push str.SogouMobileToolHelper.exe
lea ecx, [esp + 0x74]
mov byte [esp + 0xb8], bl
call fcn.00401770
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x4072a3
lea eax, [esp + 0x70]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push str.SogouMobileToolHelper.exe__installstart
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4072dd
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call ebx
jmp 0x4072ec
push esi
push esi
push str.in_shf.gif
call fcn.0041f18b
add esp, 0xc
cmp dword [esp + 0x84], 8
jb 0x407303
mov edx, dword [esp + 0x70]
push edx
call fcn.0047697c
add esp, 4
xor eax, eax
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], esi
mov word [esp + 0x70], ax
cmp dword [esp + 0xa0], 8
jb 0x407336
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0047697c
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00476987
add esp, 0xa8
ret
Function at 0x409770
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4945c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4bf960]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.00401490
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4097d0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00401770
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.00401490
cmp dword [esp + 0x28], 8
jb 0x40981d
mov eax, dword [esp + 0x14]
push eax
call fcn.0047697c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x40df50
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x634
mov eax, dword [0x4bf960]
xor eax, esp
mov dword [esp + 0x62c], eax
push ebx
push esi
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x226]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x22c], ax
call fcn.00477980
push 0x43
push 0x4b07cc
lea edx, [esp + 0x234]
push 4
push edx
mov byte [esp + 0x2b], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00476996
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x240]
push ecx
call fcn.00460b31
add esp, 0x24
test al, al
je 0x40dfec
cmp dword [esp + 0x14], ebx
jg 0x40dfec
jl 0x40dfd3
cmp dword [esp + 0x10], 0x3200000
jae 0x40dfec
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.00476987
add esp, 0x634
ret
lea edx, [esp + 0xf]
push edx
push edi
call fcn.004615c6
add esp, 8
test al, al
je 0x40e0af
push 0x206
lea ecx, [esp + 0x1e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x24], ax
call fcn.00477980
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40e027
mov eax, dword [edi + 4]
jmp 0x40e02a
lea eax, [edi + 4]
push eax
lea edx, [esp + 0x1c]
push 0x4aeecc
push edx
mov edx, 0x104
call fcn.00409d90
mov ax, word [esp + 0x24]
mov cx, word [esp + 0x26]
push 0x204
lea edx, [esp + 0x43c]
push ebx
push edx
mov word [esp + 0x440], ax
mov word [esp + 0x442], cx
call fcn.00477980
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x444]
push ecx
call fcn.00460b31
add esp, 0x20
cmp dword [esp + 0x14], ebx
jl 0x40e0af
jg 0x40e093
cmp dword [esp + 0x10], 0x6400000
jbe 0x40e0af
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.00476987
add esp, 0x634
ret
xor esi, esi
lea edx, [esi + 0x43]
push edx
push 0x4b07cc
lea eax, [esp + 0x228]
push 4
push eax
call fcn.00476996
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x234]
push edx
call fcn.00460b31
add esp, 0x18
test al, al
je 0x40e110
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jg 0x40e118
mov eax, dword [esp + 0x10]
jl 0x40e0f7
cmp eax, 0x6400000
ja 0x40e118
cmp esi, ebx
jne 0x40e110
cmp ecx, ebx
jl 0x40dfd3
jg 0x40e110
cmp eax, 0x3200000
jb 0x40dfd3
inc esi
cmp esi, 0x17
jl 0x40e0b1
jmp 0x40e191
push ebx
push 0x2a
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40e144
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x1c]
push str._sProgram_FilesSogouMobileTool
push edx
call fcn.00409730
jmp 0x40e165
mov ax, word [esp + 0x220]
push str.SogouMobileTool
lea ecx, [esp + 0x1c]
push 0x104
push ecx
mov word [esp + 0x24], ax
call fcn.0047735f
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e170
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00401890
mov ebx, 1
mov ecx, dword [esp + 0x634]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00476987
add esp, 0x634
ret
Function at 0x4134c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x224
mov eax, dword [0x4bf960]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
push 0x206
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x26]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x2c], ax
call fcn.00477980
lea esi, [edi + 0x364]
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x413507
mov eax, dword [esi + 4]
jmp 0x41350a
lea eax, [esi + 4]
push eax
push 0x4aeecc
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.00476996
mov ax, word [esp + 0x30]
mov cx, word [esp + 0x32]
mov word [esp + 0x28], ax
lea eax, [esp + 0x20]
mov word [esp + 0x2a], cx
push eax
lea ecx, [esp + 0x2c]
xor edx, edx
push ecx
mov word [esp + 0x34], dx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00460b31
add esp, 0x18
push 1
push ebp
push 0x4b1714
mov ecx, esi
call fcn.004086a0
cmp eax, 0xffffffff
jne 0x41357c
push 1
push ebp
push 0x4b1718
mov ecx, esi
call fcn.004086a0
cmp eax, 0xffffffff
je 0x413581
mov ebp, 1
lea esi, [edi + 0x18]
push str.layout_no_space
mov ecx, esi
call fcn.00427b22
mov ebx, eax
test ebx, ebx
je 0x413639
push str.install_nofit_lbl
mov ecx, esi
call fcn.00427b22
mov esi, eax
test esi, esi
je 0x413639
cmp dword [esp + 0x14], 0
jl 0x4135e5
jg 0x4135c3
cmp dword [esp + 0x10], 0x6400000
jb 0x4135e5
test ebp, ebp
jne 0x4135e5
cmp dword [edi + 0x2b4], ebp
je 0x4135e1
mov ecx, dword [edi + 0x2b4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xec]
push 1
call eax
push 0
jmp 0x41362d
cmp dword [edi + 0x2b4], 0
je 0x413600
mov ecx, dword [edi + 0x2b4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xec]
push 0
call eax
add edi, 0x3d0
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x41361d
test ebp, ebp
jne 0x41361d
push 0x4b1770
jmp 0x413622
push 0x4b1760
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
push 1
mov edx, dword [ebx]
mov eax, dword [edx + 0xe0]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00476987
add esp, 0x224
ret