joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b6b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5514a4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
cmp eax, 0xffffffff
jne 0x47b70c
push 0x51f890
push str.kernel32
mov dword [ebp - 0xc], esi
call ebx
push eax
call edi
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x47b704
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov dword [0x5514a4], eax
cmp eax, 1
jne 0x47b72d
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call ebx
push eax
call edi
cmp eax, esi
je 0x47b72d
lea ecx, [ebp - 0x1c]
push ecx
call eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x20019
push eax
push esi
push dword [ebp + 0xc]
mov byte [ebp - 1], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47b7fd
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
push dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x47b7d6
cmp dword [ebp - 8], 1
je 0x47b790
cmp dword [ebp - 8], 7
je 0x47b790
cmp dword [ebp - 8], 2
jne 0x47b7d6
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499a0f
pop ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
call fcn.00401829
push dword [ebp - 0x18]
call fcn.0049ac10
pop ecx
mov byte [ebp - 1], 1
cmp dword [ebp - 0x10], 0
je 0x47b7f4
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call ebx
push eax
call edi
test eax, eax
je 0x47b7f4
push dword [ebp - 0x1c]
call eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47ba66
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 8
mov eax, 0x50bd1b
call fcn.0049dfed
mov edi, dword [ebp + 0x230]
xor esi, esi
push esi
lea ecx, [ebp]
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [ebp + 0x18], 7
call fcn.00401afa
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push str.SOFTWARESogouExplorer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47bb6d
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.0049d740
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
push esi
push esi
push 0x535d58
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47bb6d
lea eax, [ebp + 0x1c]
push str.SogouExplorer
push eax
call fcn.0049c24b
pop ecx
pop ecx
test eax, eax
je 0x47bb6d
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00401829
push str._sogouexplorer.exe
lea ecx, [ebp]
call fcn.00403850
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x47bb3e
lea eax, [ebp + 4]
push esi
push eax
call fcn.004a16c8
pop ecx
pop ecx
test eax, eax
jne 0x47bb6d
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x47bb57
lea eax, [ebp + 4]
push 3
push esi
push edi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
inc ebx
jmp 0x47bb82
push 3
push esi
push edi
push str.iexplore.exe
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x10], esi
je 0x47bb90
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp]
call fcn.0040184d
mov eax, ebx
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 0x47beaa
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x54], eax
xor eax, eax
push esi
push edi
xor ebx, ebx
cmp dword [ecx + 0x18], 8
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x40], ebx
jb 0x47bee4
mov ecx, dword [ecx + 4]
jmp 0x47bee7
add ecx, 4
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x47bfd9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x47bf8f
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x48], eax
cmp eax, ebx
je 0x47bf8a
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], ebx
call fcn.00482c1b
pop ecx
test eax, eax
je 0x47bf81
push dword [ebp - 0x50]
push dword [ebp - 0x48]
push dword [ebp - 0x44]
call fcn.00482cae
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x4c], 0x10
call fcn.00482cd2
add esp, 0x18
and dword [ebp - 0x40], eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x58]
call edi
push esi
call edi
cmp dword [ebp - 0x40], ebx
je 0x47bfd9
push 0x27
lea eax, [ebp - 0x3b]
push ebx
push eax
mov byte [ebp - 0x3c], bl
call fcn.0049d740
add esp, 0xc
xor edi, edi
movzx eax, byte [ebp + edi - 0x14]
push eax
push str._02x
lea eax, [ebp + ebx - 0x3c]
push 3
push eax
call fcn.0049b0a3
add esp, 0x10
add ebx, eax
inc edi
cmp edi, 0x10
jl 0x47bfab
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x3c]
push eax
call fcn.004017bb
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
leave
ret
Function at 0x47c143
Capabilities:
Check os version
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x348], eax
cmp eax, ebx
jne 0x47c1e2
push ebx
push 2
mov dword [ebp - 0x344], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x47c197
xor eax, eax
jmp 0x47c2b3
lea eax, [ebp - 0x344]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x47c1be
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x33c], eax
je 0x47c1c4
lea eax, [ebp - 0x344]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47c1a6
jmp 0x47c1dc
lea eax, [ebp - 0x320]
push eax
push 0x104
xor ebx, ebx
push esi
inc ebx
call fcn.0049b0d6
add esp, 0xc
push edi
jmp 0x47c2ab
mov eax, dword [0x558bd4]
cmp eax, ebx
jne 0x47c222
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push ebx
push eax
mov dword [ebp - 0x118], 0x114
call fcn.0049d740
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
mov dword [0x558bd4], eax
cmp eax, 6
jae 0x47c253
push dword [ebp + 0x10]
push esi
push ebx
push dword [ebp - 0x348]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x47c24e
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x348]
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x47c294
xor ebx, ebx
inc ebx
jmp 0x47c2a5
push str.QueryFullProcessImageNameW
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x47c294
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x34c]
push ecx
push esi
push ebx
push dword [ebp - 0x348]
mov dword [ebp - 0x34c], edi
call eax
test eax, eax
jne 0x47c24e
push 0x51fa24
push edi
jmp 0x47c29c
push 0x51fa24
push dword [ebp + 0x10]
push esi
call fcn.0049b0d6
add esp, 0xc
push dword [ebp - 0x348]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
leave
ret
Function at 0x47ff96
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x120
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
push esi
mov esi, dword [ebp + 0x70]
push edi
mov edi, dword [ebp + 0x78]
push 0x118
lea eax, [ebp - 0xb4]
push 0
push eax
call fcn.0049d740
add esp, 0xc
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, eax
test ebx, ebx
jne 0x47ffee
xor eax, eax
jmp 0x480104
cmp dword [ebp - 0xa8], 2
jne 0x480041
cmp dword [ebp - 0xb4], 4
jbe 0x480041
cmp dword [ebp - 0xb4], 6
jne 0x4800b0
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x480079
cmp eax, 1
je 0x480079
cmp eax, 2
jne 0x480041
mov eax, dword [ebp + 0x74]
dec eax
cmp byte [ebp + 0x62], 1
jne 0x480032
push str.Win8
jmp 0x480037
push str.Windows_Server_2012
push eax
push esi
call fcn.0049b0d6
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
and eax, 0x3ff
cmp ax, 4
jne 0x4800dd
mov eax, dword [ebp + 0x7c]
push str.CHSSimplified
dec eax
push eax
push edi
call fcn.0049b0d6
add esp, 0xc
test eax, eax
je 0x480102
jmp 0x47ffe7
cmp byte [ebp + 0x62], 1
jne 0x4800a6
test eax, eax
mov eax, dword [ebp + 0x74]
jne 0x48009f
push str.Vista
dec eax
push eax
push esi
call fcn.0049b0d6
add esp, 0xc
test eax, eax
je 0x480041
jmp 0x47ffe7
push str.Win7
jmp 0x48008b
push str.Windows_Server_2008
mov eax, dword [ebp + 0x74]
jmp 0x48008b
cmp dword [ebp - 0xb4], 5
jne 0x480041
cmp dword [ebp - 0xb0], 0
jne 0x4800c9
push str.Windows_2000
jmp 0x4800ab
cmp dword [ebp - 0xb0], 1
jne 0x480041
push 0x51fe10
jmp 0x4800ab
cmp ax, 9
mov eax, dword [ebp + 0x7c]
jne 0x4800f0
push str.English
jmp 0x480061
push str.Unsupport
dec eax
push eax
push edi
call fcn.0049b0d6
add esp, 0xc
xor ebx, ebx
mov eax, ebx
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
add ebp, 0x68
leave
ret
Function at 0x481841
Capabilities:
Terminate thread

Disassembly:
push 0x24
mov eax, 0x50c3e5
call fcn.0049dfed
mov esi, ecx
mov eax, dword [esi]
push 0
call dword [eax + 8]
lea edi, [esi + 0x64]
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call dword [eax + 4]
mov eax, dword [esi + 0x60]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x481889
xor esi, esi
inc esi
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 8]
mov eax, esi
jmp 0x481a1f
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499a0f
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4818a9
xor esi, esi
jmp 0x481877
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
add esi, 0x44
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00476f32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov eax, dword [esi + 0x18]
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00476f32
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00476e9e
test al, al
jne 0x48192a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
call fcn.00476293
push 2
push 0
push 0
push dword [ebp - 0x14]
push ebx
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea ecx, [ebp - 0x28]
call fcn.004815c7
mov eax, dword [esi + 0x18]
add dword [ebp - 0x14], 4
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00476f32
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00476e9e
test al, al
je 0x4818e6
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 8]
push dword [ebp + 8]
push 1
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
cmp eax, 0x102
jne 0x4819f5
cmp dword [ebp + 0xc], 0
je 0x4819f5
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp + 0xc], edi
call dword [eax + 4]
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 1
call fcn.00476f32
jmp 0x4819c6
lea ecx, [ebp - 0x20]
call fcn.00476293
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [ebp - 0x20]
call fcn.00476293
push dword [eax]
call ebx
lea ecx, [ebp - 0x20]
call fcn.00476293
mov eax, dword [eax + 4]
test eax, eax
je 0x4819be
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
lea ecx, [ebp - 0x20]
call fcn.004815c7
mov eax, dword [esi + 0x18]
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00476f32
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.00476e9e
test al, al
je 0x481989
mov ecx, esi
call fcn.00481742
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 8]
xor esi, esi
cmp dword [ebp - 0x18], esi
jle 0x481a0a
mov eax, dword [ebp - 0x10]
push dword [eax + esi*4]
call ebx
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x4819fc
push dword [ebp - 0x10]
call fcn.0049a490
xor eax, eax
cmp dword [ebp + 8], 0x102
pop ecx
setne al
call fcn.0049e0c5
ret 8
Function at 0x481ee8
Capabilities:
Terminate thread

Disassembly:
push 0x28
mov eax, 0x50c408
call fcn.0049dfed
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
push edi
call dword [eax + 8]
lea ebx, [esi + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
call dword [eax + 4]
mov dword [ebp - 4], edi
mov edi, dword [esi + 0x24]
test edi, edi
jne 0x481f2d
xor esi, esi
inc esi
mov eax, dword [ebx]
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call dword [eax + 8]
mov eax, esi
jmp 0x48204b
xor ecx, ecx
push 4
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499a0f
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x481f51
mov ebx, dword [ebp - 0x14]
xor esi, esi
jmp 0x481f1b
mov eax, edi
shl eax, 2
push eax
push 0
push ebx
call fcn.0049d740
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
add esi, 8
add esp, 0xc
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00425640
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
jmp 0x481fc5
lea ecx, [ebp - 0x1c]
call fcn.0042398a
mov eax, dword [eax + 4]
mov ecx, dword [eax]
test ecx, ecx
je 0x481f9c
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dword [ebx + edx*4], ecx
push 1
mov ecx, eax
call fcn.00422eba
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
call fcn.00423d26
push dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push edi
push eax
mov ecx, esi
call fcn.004233ed
mov eax, dword [esi + 0x18]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00425640
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004239b9
test al, al
je 0x481f82
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
or dword [ebp - 4], 0xffffffff
call dword [eax + 8]
push dword [ebp + 8]
push 1
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, 0x102
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x482026
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x482026
cmp dword [ebp - 0x10], esi
jle 0x482026
push 0
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x482015
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x48203c
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x48202d
push ebx
call fcn.0049ac10
xor eax, eax
cmp dword [ebp + 8], edi
pop ecx
setne al
call fcn.0049e0c5
ret 8
Function at 0x4825cb
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x50c501
call fcn.0049dfed
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x4825ec
xor eax, eax
call fcn.0049e0c5
ret 8
lea ecx, [esi + 0x64]
mov eax, dword [ecx]
mov dword [ebp + 8], ecx
call dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [ebp - 4], ebx
test eax, eax
jne 0x48260f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
or dword [ebp - 4], 0xffffffff
call dword [eax + 8]
jmp 0x4825e2
push 0xc
call fcn.0049ad2e
pop ecx
cmp eax, ebx
je 0x482601
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 0x482204
push ebx
mov dword [eax], esi
mov dword [eax + 4], edi
push ebx
mov dword [ebp - 0x10], ebx
call fcn.0049ab60
add esp, 0x18
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x482655
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
or dword [ebp - 4], 0xffffffff
call dword [eax + 8]
mov eax, ebx
jmp 0x4825e4
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x44]
call fcn.004824ec
xor ebx, ebx
mov dword [eax], edi
inc ebx
jmp 0x482645
Function at 0x482668
Capabilities:
Create thread

Disassembly:
push 0x34
mov eax, 0x50c52e
call fcn.0049dfed
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4827ed
lea ecx, [esi + 0x28]
mov eax, dword [ecx]
mov dword [ebp - 0x14], ecx
call dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [ebp - 4], ebx
test eax, eax
je 0x4827e1
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.0049ab60
add esp, 0x18
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x4827e1
cmp dword [ebp + 0x18], ebx
je 0x4826cf
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp - 0x10]
call fcn.00481532
mov eax, dword [esi + 0x20]
add esi, 8
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00425640
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
jmp 0x482765
lea ecx, [ebp - 0x20]
call fcn.0042398a
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x482714
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00423d26
lea eax, [ebp - 0x38]
jmp 0x48274f
lea eax, [ebp - 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, ebx
je 0x48275d
cmp dword [ebp - 0x18], 0x103
je 0x48275d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
mov ecx, edi
call fcn.00422eba
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00423d26
lea eax, [ebp - 0x40]
push ebx
push edi
push eax
mov ecx, esi
call fcn.004233ed
xor ebx, ebx
jmp 0x482765
lea ecx, [ebp - 0x20]
call fcn.00423d26
mov eax, dword [esi + 0x18]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00425640
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.004239b9
test al, al
je 0x4826f2
push 0x28
call fcn.0049ad2e
pop ecx
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4827ad
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00422d5c
mov edi, eax
jmp 0x4827af
xor edi, edi
mov byte [ebp - 4], 0
cmp edi, ebx
je 0x4827c4
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00423321
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4827d0
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
or dword [ebp - 4], 0xffffffff
call dword [eax + 8]
mov eax, dword [ebp + 8]
jmp 0x4827ef
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
or dword [ebp - 4], 0xffffffff
call dword [eax + 8]
xor eax, eax
call fcn.0049e0c5
ret 0x14

Function at 0x482aab
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, 0x104
push esi
push dword [esp + 0xc]
push str._APPDATA_SogouMobileToolPDAData_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.versionControl.ini
push esi
push dword [esp + 0x10]
call fcn.0049bcab
add esp, 0xc
pop esi
ret
Function at 0x482ad5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0049d740
add esp, 0xc
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x535d58
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0049a49b
leave
ret

Function at 0x482c1b
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xc
call fcn.0049ad2e
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x482c3b
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x482c3d
xor esi, esi
push 0xf0000020
push 1
push ebx
push ebx
lea edi, [esi + 4]
push edi
mov dword [esi], 2
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x482c7e
lea eax, [esi + 8]
push eax
push ebx
push ebx
push 0x8003
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x482c7e
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x482ca6
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x482c91
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edi, dword [edi]
cmp edi, ebx
je 0x482c9f
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call fcn.0049a490
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x482cae
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x482ccf
cmp dword [eax], 2
jne 0x482ccf
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret
xor eax, eax
ret