joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ba3f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.10041750
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x4008], eax
xor edi, edi
xor eax, eax
mov ebx, edx
push 0x3ffe
mov word [ebp - 0x4004], ax
mov esi, ecx
lea eax, [ebp - 0x4002]
push edi
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x4004]
push esi
push 0x4000
push eax
push str.SetupLog
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [ebp - 0x4004], di
jne 0x1000baae
xor eax, eax
jmp 0x1000bb69
lea esi, [ebp - 0x4004]
mov eax, dword [ebp - 0x4008]
cmp word [eax], di
je 0x1000bacb
push 0x1012de54
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebx], di
je 0x1000badc
push 0x1012de54
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov dword [ebp - 0x400c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x4010], eax
mov ecx, edi
test eax, eax
jle 0x1000bb25
movzx edx, word [esi + ecx*2]
cmp edx, 0x2f
jne 0x1000bb07
push 0x2d
pop edx
mov word [esi + ecx*2], dx
jmp 0x1000bb0c
cmp edx, 0x3d
je 0x1000bb13
inc ecx
cmp ecx, eax
jl 0x1000baf5
jmp 0x1000bb25
lea eax, [ecx + 1]
lea eax, [esi + eax*2]
mov dword [ebp - 0x400c], eax
xor eax, eax
mov word [esi + ecx*2], ax
push esi
push dword [ebp - 0x4008]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x400c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x4010]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], di
jne 0x1000bab4
mov eax, dword [ebp - 0x4008]
cmp word [eax], di
je 0x1000bb67
cmp word [ebx], di
je 0x1000bb67
xor edi, edi
inc edi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000bca8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.10041750
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
xor eax, eax
cmp word [edi], si
je 0x1000bde5
push ebx
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push esi
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x804]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x804]
push 0x5c
push eax
call fcn.1003a57d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1000bde2
lea eax, [ebp - 0x804]
push 0x5c
push eax
call fcn.10039def
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1000bde2
cmp ebx, edi
je 0x1000bde2
xor eax, eax
lea ecx, [ebp - 0x804]
mov word [ebx], ax
mov word [edi], ax
lea eax, [ebp - 0x1008]
push eax
push 0x20019
lea eax, [ebx + 2]
mov dword [ebp - 0x1008], esi
push esi
push eax
call fcn.1000bbe8
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000bdc9
push 0x7fe
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push esi
push eax
mov dword [ebp - 0x100c], 1
call fcn.1003e9c0
add esp, 0xc
mov dword [ebp - 0x1010], 0x800
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x100c]
push eax
push esi
lea eax, [edi + 2]
push eax
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x1008], 0
je 0x1000bdde
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1000bde4
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000c037
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c1cd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x418]
push ebx
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x66c], eax
cmp eax, 0xffffffff
je 0x1000c1cd
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x63c]
push eax
push ebx
lea eax, [ebp - 0x210]
push 0x1012df4c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [ebp - 0x668], 0x10
je 0x1000c13a
push 0x1012df58
lea eax, [ebp - 0x63c]
push eax
call esi
test eax, eax
je 0x1000c1b0
push 0x1012df5c
lea eax, [ebp - 0x63c]
push eax
call esi
test eax, eax
je 0x1000c1b0
lea ecx, [ebp - 0x210]
call fcn.1000c037
jmp 0x1000c1b0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
push str..kg_
push edi
call esi
test eax, eax
je 0x1000c19d
push str..cfg
push edi
call esi
test eax, eax
je 0x1000c19d
push str..kgtemp
push edi
call esi
test eax, eax
je 0x1000c19d
push str..tmp
push edi
call esi
test eax, eax
je 0x1000c19d
push str..krc
push edi
call esi
test eax, eax
je 0x1000c19d
push str..lrc
push edi
call esi
test eax, eax
je 0x1000c19d
push str..txt
push edi
call esi
test eax, eax
jne 0x1000c1aa
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x66c]
lea eax, [ebp - 0x668]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000c0bd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000c1de
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x694
mov eax, 0x100eb7df
call fcn.1003e1f4
mov esi, edx
mov edi, ecx
test esi, esi
je 0x1000c391
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
xor ebx, ebx
test eax, eax
je 0x1000c235
push edi
lea ecx, [ebp - 0x450]
call fcn.10002c47
lea eax, [ebp - 0x450]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.1000fd99
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
push ebx
push 1
call fcn.10002f54
xor eax, eax
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x420]
push edi
push str._s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000c391
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
push edi
lea eax, [ebp - 0x218]
push 0x1012df4c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [ebp - 0x6a0], 0x10
je 0x1000c374
push 0x1012df58
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000c374
push 0x1012df5c
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000c374
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x1000c367
and dword [ebp - 0x428], 0
lea ecx, [ebp - 0x438]
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x218]
push eax
call fcn.10002ed6
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.1000fd99
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
push 0
push 1
call fcn.10002f54
jmp 0x1000c374
mov edx, esi
lea ecx, [ebp - 0x218]
call fcn.1000c1de
lea eax, [ebp - 0x6a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000c288
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.1003e1b2
ret
Function at 0x1000c397
Capabilities:
Delete directory
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100eb812
mov eax, dword fs:[0]
push eax
sub esp, 0xa28
mov eax, dword [0x1013a420]
xor eax, esp
mov dword [esp + 0xa20], eax
push ebx
push esi
push edi
mov eax, dword [0x1013a420]
xor eax, esp
push eax
lea eax, [esp + 0xa38]
mov dword fs:[0], eax
xor eax, eax
xor esi, esi
push 0x7fe
mov word [esp + 0x230], ax
lea eax, [esp + 0x232]
push esi
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [esp + 0x22c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ebx, [esp + 0x22c]
cmp word [esp + 0x22c], si
je 0x1000c505
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1000c4e2
xor eax, eax
push 0x206
mov word [esp + 0x28], ax
lea eax, [esp + 0x2a]
push esi
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [esp + 0x24]
push ebx
push str._sKuGou
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.1000c037
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push ebx
lea eax, [esp + 0x28]
mov dword [esp + 0xa44], esi
push str._sKuGou
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x18]
lea ecx, [esp + 0x24]
call fcn.1000c1de
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x1000c4c4
cmp dword [esi + 0x14], 8
jb 0x1000c4b8
mov eax, dword [esi]
jmp 0x1000c4ba
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esi, 0x18
cmp esi, edi
jne 0x1000c4ae
or dword [esp + 0xa40], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.1000fe24
dec dword [esp + 0x14]
push 0
pop esi
jne 0x1000c470
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1000c4e7
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
cmp word [ebx], si
jne 0x1000c421
xor eax, eax
inc eax
mov ecx, dword [esp + 0xa38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa20]
xor ecx, esp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000c52c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.10041750
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1008]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.WS2_32.dll_accept
mov ebx, edx
mov dword [ebp - 0x1008], esi
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000c61a
push 0xffe
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push esi
push eax
mov dword [ebp - 0x100c], 1
call fcn.1003e9c0
add esp, 0xc
mov dword [ebp - 0x1010], 0x1000
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x100c]
push eax
push esi
push str.Start_Page
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000c61a
push edi
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000c5e7
inc esi
jmp 0x1000c61a
test ebx, ebx
je 0x1000c61a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push dword [ebp - 0x100c]
push esi
push str.Start_Page
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x1008], 0
je 0x1000c62f
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000c642
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.10041750
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, 0x7fe
push edi
xor esi, esi
mov word [ebp - 0x120c], ax
lea eax, [ebp - 0x120a]
push esi
push eax
call fcn.1003e9c0
xor eax, eax
mov dword [ebp - 0x1210], esi
push edi
mov word [ebp - 0xa0c], ax
lea eax, [ebp - 0xa0a]
push esi
push eax
call fcn.1003e9c0
cmp word [ebp - 0x120c], si
lea eax, [ebp - 0x120c]
mov ecx, str.https
cmove eax, ecx
push eax
lea eax, [ebp - 0xa0c]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea eax, [ebp - 0x1210]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xa0c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000c770
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x1214], 2
call fcn.1003e9c0
add esp, 0xc
mov dword [ebp - 0x1218], 0x208
lea eax, [ebp - 0x1218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1214]
push eax
push esi
push esi
push dword [ebp - 0x1210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000c756
lea eax, [ebp - 0x20c]
push str.IExplore.exe
push eax
call fcn.10038cb5
pop ecx
pop ecx
test eax, eax
jne 0x1000c76d
lea eax, [ebp - 0x20c]
push str.iexplore.exe
push eax
call fcn.10038cb5
pop ecx
pop ecx
test eax, eax
je 0x1000c770
xor esi, esi
inc esi
cmp dword [ebp - 0x1210], 0
je 0x1000c785
push dword [ebp - 0x1210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000c797
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
xor edi, edi
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x414]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x414]
push str.KuGou8KuGou.ini
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
push 0x3fe
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push edi
push eax
call fcn.1003e9c0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
add esp, 0xc
mov ebx, 0x400
push eax
push ebx
lea eax, [ebp - 0x814]
push eax
push edi
push str.lastPlayLists
push str.DBCheck
call esi
cmp word [ebp - 0x814], di
jne 0x1000c889
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x814]
push eax
push edi
push str.lastPlayLists
push str.GeneralConfigSection
call esi
cmp word [ebp - 0x814], di
jne 0x1000c889
xor eax, eax
jmp 0x1000c8d3
push 0xa
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], edi
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.1003a334
add esp, 0xc
mov esi, eax
jmp 0x1000c8c7
cmp word [ecx], di
je 0x1000c8d1
push 0xa
lea eax, [ebp - 0x818]
push eax
lea eax, [ecx + 2]
push eax
call fcn.1003a334
add esp, 0xc
add esi, eax
mov ecx, dword [ebp - 0x818]
test ecx, ecx
jne 0x1000c8ab
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret

Function at 0x1000c8e4
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.KuGou8KuGou.ini
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push str.LastUserId
push str.Collect
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000c987
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push esi
xor esi, esi
mov ecx, str.KuGou.exe
inc esi
mov edx, esi
call fcn.1000a9d9
mov edx, esi
mov ecx, str.KuGou7.exe
call fcn.1000a9d9
mov edx, esi
mov ecx, str.KuGoo.exe
call fcn.1000a9d9
mov edx, esi
mov ecx, str.IEBox.exe
call fcn.1000a9d9
mov edx, esi
mov ecx, str.KGFlashBox.exe
call fcn.1000a9d9
mov edx, esi
mov ecx, str.KGService.exe
call fcn.1000a9d9
mov edx, esi
mov ecx, str.KGDaemon.exe
pop esi
jmp fcn.1000a9d9
Function at 0x1000cc81
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0xc]
mov ebx, ecx
push eax
push ebx
xor esi, esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000cd09
push edi
push eax
call fcn.1003865f
push dword [ebp - 4]
mov edi, eax
push esi
push edi
call fcn.1003e9c0
add esp, 0x10
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1000ccff
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
push eax
push 0x1012b3f4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000ccff
mov edx, dword [ebp - 8]
test edx, edx
je 0x1000ccff
movzx eax, word [edx + 0xa]
imul ecx, eax, 0xa
movzx eax, word [edx + 8]
add ecx, eax
imul esi, ecx, 0x64
movzx ecx, word [edx + 0xe]
add esi, ecx
push edi
call fcn.100389bf
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ce0e
Capabilities:
Check if file exists
Delete file
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000cf9e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xa00000
jbe 0x1000cf9e
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.1003e9c0
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.1003e9c0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.1003e9c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
add esp, 0x24
push ebx
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1000cefb
push str.loginstall2.log
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1000cf34
push str.loginstall1.log
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
push ebx
lea eax, [ebp - 0x20c]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x1000cf5e
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x61c]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1000cf81
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1000cf9e
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000cfaf
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov ebx, ecx
xor edi, edi
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x1000d0ce
push esi
push eax
call fcn.1003865f
push dword [ebp - 0x88]
mov esi, eax
push edi
push esi
call fcn.1003e9c0
add esp, 0x10
push esi
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1000d0c4
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x98]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000d0c4
mov ebx, dword [ebp - 0x98]
test ebx, ebx
je 0x1000d0c4
xor eax, eax
push 0x7e
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push edi
push eax
call fcn.1003e9c0
movzx eax, word [ebx + 2]
push eax
movzx eax, word [ebx]
push eax
lea eax, [ebp - 0x84]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov dword [ebp - 0x8c], edi
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1000d0c4
cmp dword [ebp - 0x8c], edi
je 0x1000d0c4
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edi, edi
inc edi
push esi
call fcn.100389bf
pop ecx
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret

Function at 0x1000d16a
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1000d198
xor eax, eax
jmp 0x1000d1f8
mov eax, dword [ebp - 0x20]
neg edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
sbb edi, edi
mov dword [ebp - 0xc], eax
and edi, 2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 1
push eax
push 0x28
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000d194
cmp dword [ebp - 0x18], esi
je 0x1000d194
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000d1ed
xor esi, esi
inc esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003890f
mov esp, ebp
pop ebp
ret