joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100179a5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
push dword [esp + 0x4c]
mov ebp, edx
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push ebp
push ecx
call fcn.1000dd01
mov dword [esp + 0x48], 0xfe193a
xor esi, esi
mov dword [esp + 0x4c], esi
add esp, 0x14
mov dword [esp + 0x3c], esi
mov dword [esp + 0x10], 0x1140cc
imul eax, dword [esp + 0x10], 0x72
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xffff6997
xor dword [esp + 0x10], 0x7ae446f
mov dword [esp + 0x20], 0xd03142
or dword [esp + 0x20], 0xafb0c2b4
xor dword [esp + 0x20], 0xafff9575
mov dword [esp + 0x1c], 0xf53550
xor dword [esp + 0x1c], 0x219722ec
xor dword [esp + 0x1c], 0x21625b88
mov dword [esp + 0x14], 0xb46fdd
shr dword [esp + 0x14], 0xc
xor dword [esp + 0x14], 0x7c5dbaaa
xor dword [esp + 0x14], 0x7c5caf9d
mov dword [esp + 0x18], 0x99b01c
add dword [esp + 0x18], 0x7ea6
xor dword [esp + 0x18], 0x9c27e3
mov eax, dword [ebp + 0x3c]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ebx, dword [eax + ebp + 0x78]
add ebx, ebp
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, ebp
mov dword [esp + 0x2c], eax
add ecx, ebp
mov eax, dword [ebx + 0x24]
add eax, ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jmp 0x10017ab8
push dword [esp + 0x18]
mov eax, dword [ecx + edi*4]
add eax, ebp
push eax
push dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
call fcn.1001d214
xor eax, 0x1e5c48de
add esp, 0xc
cmp eax, dword [esp + 0x4c]
je 0x10017abf
mov ecx, dword [esp + 0x24]
inc edi
cmp edi, dword [ebx + 0x18]
jb 0x10017a8a
jmp 0x10017aeb
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
movzx eax, word [eax + edi*2]
mov esi, dword [esi + eax*4]
add esi, ebp
cmp esi, ebx
jb 0x10017aeb
mov eax, dword [esp + 0x30]
mov eax, dword [eax + ebp + 0x7c]
add eax, ebx
cmp esi, eax
jae 0x10017aeb
mov ecx, esi
call fcn.10022081
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x10017af5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
push esi
push dword [esp + 0x20]
push edx
push ecx
call fcn.1000dd01
mov dword [esp + 0x30], 0x20ebaa
lea edi, [esi + 4]
shl dword [esp + 0x30], 6
add dword [esp + 0x30], 0xffff0835
xor dword [esp + 0x30], 0x96eb5d38
xor dword [esp + 0x30], 0x9ed2806b
mov dword [esp + 0x1c], 0x8f0d70
xor dword [esp + 0x1c], 0x96ec1eea
imul eax, dword [esp + 0x1c], 0x5b
mov dword [esp + 0x1c], eax
xor dword [esp + 0x1c], 0x7537b07a
mov ecx, dword [esi]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
add esp, 0xc
lea edx, [esi + esi]
call fcn.10015a10
mov ebx, eax
mov dword [esp + 0x24], ebx
pop ecx
test ebx, ebx
je 0x10017bfe
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x10017bf3
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [edx], ax
mov eax, ecx
shr eax, 8
lea edx, [edx + 8]
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [edx - 4], ax
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, esi
jb 0x10017bba
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
xor ecx, ecx
pop ebp
mov word [ebx + eax*2], cx
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x1001d214
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push edx
push ecx
call fcn.1000dd01
and dword [ebp - 0xc], 0
add esp, 0x14
and dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x12094e
mov dword [ebp + 0xc], 0xf9458c
shl dword [ebp + 0xc], 5
xor dword [ebp + 0xc], 0x678a7073
xor dword [ebp + 0xc], 0x78a2c1f3
mov dword [ebp - 4], 0xb4d975
imul eax, dword [ebp - 4], 0x59
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x3edf99ab
mov dword [ebp - 4], 0x657f42
shr dword [ebp - 4], 3
shl dword [ebp - 4], 8
xor dword [ebp - 4], 0xcafe810
cmp byte [ebx], 0
je 0x1001d2de
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0xb4d975
imul eax, dword [ebp - 4], 0x59
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x3edf99ab
mov cl, byte [ebp - 4]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0x657f42
shr dword [ebp - 4], 3
shl dword [ebp - 4], 8
xor dword [ebp - 4], 0xcafe810
shl esi, cl
mov cl, byte [ebp - 4]
mov edx, dword [ebp + 0xc]
movsx eax, byte [ebx]
mov dword [ebp + 0xc], eax
add dword [ebp + 0xc], esi
shl edx, cl
add dword [ebp + 0xc], edx
sub dword [ebp + 0xc], edi
inc ebx
cmp byte [ebx], 0
jne 0x1001d289
pop edi
pop esi
mov eax, dword [ebp + 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ab0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401afb
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 0x401af4
test esi, esi
je 0x401af4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ad0
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d00
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
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
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 0x401d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e24
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401d8e
cmp eax, 4
jne 0x401db0
test esi, esi
je 0x401da2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401d94
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401def
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401de1
cmp ecx, 0x40
je 0x401da2
cmp ecx, 4
je 0x401da2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
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.00401d00
lea esi, [esi]
Function at 0x4014fd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x401510
xor eax, eax
jmp 0x4015b7
cmp dword [ebp + 0xc], ebx
je 0x401509
push esi
push dword [ebp + 8]
lea esi, [edi + 8]
mov ecx, esi
call fcn.00401829
push dword [ebp + 0xc]
lea ecx, [edi + 0x24]
call fcn.00401829
cmp dword [ebp + 0x14], ebx
je 0x401584
push 0x1046
call fcn.00499a0f
push ebx
mov ebx, 0x823
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.0040103b
add esp, 0x10
cmp dword [esi + 0x18], 8
jb 0x40155b
mov eax, dword [esi + 4]
jmp 0x40155e
lea eax, [esi + 4]
push ebx
push dword [ebp + 8]
push eax
call fcn.00416370
add esp, 0xc
test eax, eax
je 0x401579
push dword [ebp + 8]
mov ecx, esi
call fcn.00401829
push dword [ebp + 8]
call fcn.0049a490
pop ecx
xor ebx, ebx
pop esi
cmp dword [ebp + 0x10], ebx
je 0x401595
push dword [ebp + 0x10]
lea ecx, [edi + 0x64]
call fcn.004017bb
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x4015bc
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.0049ab60
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebx
leave
ret 0x10
Function at 0x403539
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
sub esp, 0x448
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x448], eax
push 0x30
mov eax, 0x50eb19
call fcn.0049dfed
mov eax, dword [ebp + 0x454]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x458]
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x14], eax
mov ecx, 0x535d58
xor ebx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4035a9
cmp dx, bx
je 0x4035a5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4035a9
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x403583
xor eax, eax
jmp 0x4035ae
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4035b9
mov dword [ebp - 0x14], str..icon
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x3a]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x38]
push eax
push str._APPDATA_SogouApkTool_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401685
xor eax, eax
mov dword [ebp - 4], ebx
push edi
mov word [ebp + 0x240], ax
lea eax, [ebp + 0x242]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
push esi
lea eax, [ebp + 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x240]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401685
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 1
call fcn.0047b4b4
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040184d
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004039ea
push str.TempApkIcons_
lea ecx, [ebp + 0x1c]
call fcn.00403850
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x403678
lea eax, [ebp + 0x20]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
inc ecx
inc ecx
cmp si, bx
jne 0x40368f
sub ecx, edx
sar ecx, 1
mov edx, 0xa0
cmp ecx, edx
jb 0x4036a8
add eax, edx
push eax
lea ecx, [ebp + 0x1c]
call fcn.00403850
push dword [ebp - 0x14]
lea ecx, [ebp + 0x1c]
call fcn.00403850
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x4036c8
lea eax, [ebp + 0x20]
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call fcn.0047a87c
add esp, 0xc
test eax, eax
jge 0x40371c
mov byte [ebp - 0xd], bl
push ebx
push 1
lea ecx, [ebp]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040184d
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x448]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x44c
leave
ret 8
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x1c]
push eax
call fcn.004019f3
mov byte [ebp - 0xd], 1
jmp 0x4036de
Function at 0x40401d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor eax, eax
push 4
mov esi, ecx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x537234
push str.SoftwareSogouMobileTool
push reloc.WS2_32.dll_accept
mov dword [esi], vtable.MyTrace.0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, esi
pop esi
leave
ret

Function at 0x40406c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 1
jne 0x4040ff
push esi
push edi
call fcn.00404101
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0049b00a
mov esi, eax
add esi, 8
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499a0f
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4040c0
push 0x537284
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4040fd
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0049d740
push 0x537274
push esi
push edi
call fcn.0049b0d6
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
add esi, 0xfffffff9
lea eax, [edi + 0xe]
push esi
push eax
call fcn.0049a904
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call fcn.0049ac10
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x404101
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x4041e5
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404119
sub eax, edx
je 0x4041e5
mov ecx, dword [esi + 4]
push edi
test ecx, ecx
je 0x404154
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404135
sub eax, edi
je 0x404154
push ecx
push dword [esi + 0xc]
push ebx
push str._s__d_:_s:
call fcn.0049b0c1
add esp, 0x10
jmp 0x404165
push dword [esi + 0xc]
push ebx
push str._s__d_:
call fcn.0049b0c1
add esp, 0xc
mov edi, eax
inc edi
push edi
call fcn.00499a0f
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x404182
push str.Out_of_memory__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4041e4
push edi
push 0
push ebx
call fcn.0049d740
mov ecx, dword [esi + 4]
add esp, 0xc
test ecx, ecx
je 0x4041c1
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 4], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40419d
sub eax, dword [ebp - 4]
je 0x4041c1
push ecx
push dword [esi + 0xc]
push dword [esi + 8]
push str._s__d_:_s:
push edi
push ebx
call fcn.0049b0a3
add esp, 0x18
jmp 0x4041d6
push dword [esi + 0xc]
push dword [esi + 8]
push str._s__d_:
push edi
push ebx
call fcn.0049b0a3
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.0049ac10
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40706f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
push 0
push edi
call fcn.0049d740
add esp, 0xc
push edi
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4070ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40710f
push 0
call fcn.0049bd5f
push eax
call fcn.0049bc77
call fcn.0049bc89
mov dword [ebp - 0x48], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.0049d740
push 0x10
push 0x1f
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call fcn.0049b665
add esp, 0x24
test eax, eax
jne 0x4070a7
lea eax, [ebp - 0x44]
push eax
push esi
push edi
call fcn.0049bcab
add esp, 0xc
test eax, eax
jne 0x4070a7
push str..apk
push esi
push edi
call fcn.0049bcab
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049a49b
leave
ret
Function at 0x40907a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push ebx
push eax
mov byte [ebp - 0x71], bl
mov byte [edi], bl
call fcn.0049d740
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 1
push ebx
push str..apk
mov esi, 0x208
push connect
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push str.SogouMiniTool::CheckFileRelation_RegOpenKeyEx_1_result_:__d
push 3
mov dword [ebp - 0x7c], eax
call fcn.00409c47
push eax
call fcn.00474128
add esp, 0x10
cmp dword [ebp - 0x7c], ebx
jne 0x409155
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push esi
push str.SogouMiniTool::CheckFileRelation_RegQueryValueEx_1_result_:__d
push 3
call fcn.00409c47
push eax
call fcn.00474128
add esp, 0x10
cmp esi, ebx
jne 0x40914c
lea eax, [ebp - 0x70]
push str.SogouMiniTool.file
push eax
mov byte [ebp - 0x71], 1
call fcn.0049bf35
pop ecx
pop ecx
test eax, eax
jne 0x40914c
mov byte [edi], 1
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x198]
mov al, byte [ebp - 0x71]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
add ebp, 0x19c
leave
ret
Function at 0x4099a2
Capabilities:
Download url
Receive data

Disassembly:
push ebp
sub esp, 0xa0
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push 8
mov eax, 0x50f60d
call fcn.0049dfed
xor esi, esi
xor ebx, ebx
inc esi
push ebx
mov dword [ebp - 4], esi
call fcn.0049bd5f
mov edi, eax
xor eax, eax
push 0x80
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
mov dword [ebp - 0x10], edx
call fcn.0049d740
push 0xa
push 0x41
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x10]
push edi
call fcn.0049b785
add esp, 0x24
lea eax, [ebp + 0xac]
push eax
lea ecx, [ebp]
call fcn.00403757
mov byte [ebp - 4], 2
mov eax, 0x5384f8
cmp byte [ebp + 0xe4], bl
jne 0x409a27
mov eax, str.rdp
push eax
lea ecx, [ebp]
call fcn.00403850
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00403850
cmp dword [ebp + 0xe0], 8
mov ecx, dword [ebp + 0xcc]
jae 0x409a51
lea ecx, [ebp + 0xcc]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x409a5d
lea eax, [ebp + 4]
push ebx
push ebx
push ecx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileW
push ebx
push esi
lea ecx, [ebp]
mov edi, eax
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0xac]
call fcn.0040184d
push ebx
push esi
lea ecx, [ebp + 0xc8]
call fcn.0040184d
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 + 0xa0]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0xa4
leave
ret

Function at 0x409b27
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x1c
mov eax, 0x50f5c7
call fcn.0049dfed
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
xor ebx, ebx
lea eax, [ebp + 0x1e]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1c]
push eax
push str._Appdata_SogouApkToolAndroid_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401685
mov esi, str.SogouAndroid.exe
push esi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], ebx
call fcn.00409dbb
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004019f3
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040184d
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x409bc8
lea eax, [ebp + 4]
push eax
push esi
call fcn.0047b093
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp]
call fcn.0040184d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x228
leave
ret
Function at 0x40ca79
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
push eax
push ecx
push 0x410332
push eax
push eax
mov byte [ecx + 0x20], al
mov dword [ebp - 4], eax
call fcn.0049ab60
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x40caa3
Capabilities:
Check if file exists

Disassembly:
push 0x60
mov eax, 0x5105bf
call fcn.0049e056
push 0x538040
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00409dbb
push 0x5387d4
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.00409dbb
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.0040184d
push str._adbdll.dll
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00409dbb
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
jae 0x40cb0c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cb67
cmp dword [ebp - 0x30], 8
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x50], ebx
jae 0x40cb26
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x50]
call fcn.0040994c
test al, al
je 0x40cb67
cmp dword [ebp - 0x50], ebx
jbe 0x40cb67
mov byte [ebp - 0x49], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.0040184d
mov al, byte [ebp - 0x49]
call fcn.0049e0d9
ret 0x1c
mov byte [ebp - 0x49], bl
jmp 0x40cb3b
Function at 0x40e2a3
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x448
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x448], eax
push 0x40
mov eax, 0x510473
call fcn.0049dfed
mov eax, dword [ebp + 0x454]
mov dword [ebp - 0x10], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x38], ax
xor ebx, ebx
lea eax, [ebp + 0x3a]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x38]
push eax
push str._Appdata_SogouApkTool
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x38]
push eax
add ecx, 0x5c
call fcn.00401829
xor eax, eax
push edi
mov word [ebp + 0x240], ax
lea eax, [ebp + 0x242]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
push esi
lea eax, [ebp + 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x240]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401685
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
call fcn.0047b4b4
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040184d
lea eax, [ebp + 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x38]
lea esi, [edi + 0x40]
push eax
mov ecx, esi
call fcn.00401829
lea eax, [ebp]
push eax
lea eax, [ebp - 0x4c]
push 0x538040
push eax
call fcn.004120ff
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004039ea
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040184d
cmp dword [esi + 0x18], 8
jb 0x40e3c4
mov esi, dword [esi + 4]
jmp 0x40e3c7
add esi, 4
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040e457
mov byte [ebp - 4], 4
cmp dword [ebp + 0x30], ebx
je 0x40e41c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.NW2DsThdE98SNvWPoxE3
call fcn.00401644
sub esp, 0x1c
mov byte [ebp - 4], 5
lea eax, [ebp + 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00403757
mov byte [ebp - 4], 6
call fcn.0040bfb7
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004750e6
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp]
call fcn.0040184d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x448]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x44c
leave
ret 4