joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005ec9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.1003e9c0
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov edx, 0x104
call fcn.10008410
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10005f5f
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.10039def
pop ecx
pop ecx
test eax, eax
je 0x10005f5f
xor ecx, ecx
lea esi, [eax + 2]
mov word [eax], cx
call fcn.1000ee88
lea ecx, [ebp - 0x20c]
mov edx, esi
push 0x150b
test eax, eax
je 0x10005f57
call fcn.1000b0a2
jmp 0x10005f5c
call fcn.1000b012
mov esi, eax
pop ecx
mov ecx, esi
call fcn.100085b5
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003890f
mov esp, ebp
pop ebp
ret

Function at 0x10005f75
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
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 - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.1003e9c0
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.1003e9c0
add esp, 0x18
lea ecx, [ebp - 0x20c]
mov esi, 0x104
mov edx, esi
call fcn.10008410
mov edx, esi
lea ecx, [ebp - 0x414]
call fcn.10008410
push 0x410
call fcn.1003896e
mov edi, eax
pop ecx
test edi, edi
je 0x10006013
mov esi, 0x208
push esi
push ebx
push edi
call fcn.1003e9c0
push esi
lea eax, [edi + 0x208]
push ebx
push eax
call fcn.1003e9c0
add esp, 0x18
jmp 0x10006015
mov edi, ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
lea eax, [ebp - 0x414]
push eax
lea eax, [edi + 0x208]
push eax
call esi
push ebx
push ebx
push edi
push 0x1000b564
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10006053
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
inc ecx
call fcn.100085b5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x10006069
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.1003e9c0
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov edx, 0x104
call fcn.10008410
mov ebx, 0x208
push ebx
call fcn.1003896e
mov esi, eax
pop ecx
test esi, esi
je 0x100060ce
push ebx
push edi
push esi
call fcn.1003e9c0
add esp, 0xc
jmp 0x100060d0
mov esi, edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push edi
push esi
push 0x1000b757
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
test eax, eax
je 0x100060fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
inc ecx
call fcn.100085b5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret

Function at 0x10006a05
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x420c
call fcn.10041750
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.1003e9c0
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov edx, 0x104
call fcn.10008410
xor eax, eax
push 0x3ffe
mov word [ebp - 0x420c], ax
lea eax, [ebp - 0x420a]
push ebx
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x4000
lea eax, [ebp - 0x420c]
push eax
push str.SetupLog
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [ebp - 0x420c], bx
je 0x10006af0
push esi
lea esi, [ebp - 0x420c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, ebx
test eax, eax
jle 0x10006abb
cmp word [esi + ecx*2], 0x20
je 0x10006ab4
inc ecx
cmp ecx, eax
jl 0x10006aa6
jmp 0x10006abb
push 0x5f
pop edx
mov word [esi + ecx*2], dx
lea eax, [esi + eax*2]
push 0x7c
pop ecx
lea esi, [eax + 2]
mov word [eax], cx
cmp word [esi], bx
jne 0x10006a99
lea eax, [ebp - 0x420c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
xor ebx, ebx
pop esi
mov word [ebp + eax*2 - 0x420e], cx
cmp word [ebp - 0x420c], cx
setne bl
mov ecx, ebx
call fcn.100085b5
lea ecx, [ebp - 0x420c]
call fcn.10008457
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x100071d3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1003e9c0
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov edx, 0x104
call fcn.10008410
mov esi, dword [0x10148410]
test esi, esi
je 0x100072b1
push edi
xor edi, edi
cmp dword [esi + 4], edi
jle 0x100072b0
push ebx
push 0x208
call fcn.1003865f
mov dword [esp], 0x208
mov ebx, eax
push 0
push ebx
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0xc
call fcn.1003896e
pop ecx
xor ecx, ecx
test eax, eax
je 0x10007274
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x10007276
mov eax, ecx
push ecx
push ecx
push eax
push 0x100028de
push ecx
push ecx
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x100072a9
lea eax, [ebp - 0x210]
mov ecx, 0x10148440
push eax
call fcn.10002cdd
inc edi
cmp edi, dword [esi + 4]
jl 0x10007230
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003890f
mov esp, ebp
pop ebp
ret

Function at 0x10008616
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.1003e9c0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x10008683
cmp dword [ebp - 0x110], 1
jb 0x10008683
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10008691
push 0xc
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x10148428], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x10008781
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, edx
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov edi, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.1003e9c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push str.._
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push 1
push 3
push edi
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000883b
push edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], edi
push eax
push 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1000883b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
push str..PhysicalDrive_d
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
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 0x1000884c
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x1013a420]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x1000898c
xor ebx, ebx
cmp word [ecx], bx
je 0x1000898c
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000898c
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], ebx
push eax
push 0xc
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
push 0xc
lea eax, [esp + 0x38]
mov dword [esp + 0x30], ebx
push eax
push 0x2d1400
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov dword [esp + 0x44], 8
call ebx
xor esi, esi
inc esi
test eax, eax
je 0x100088f3
cmp dword [esp + 0x10], 0xc
jne 0x100088f3
cmp byte [esp + 0x20], 0
je 0x100088f3
mov dword [esp + 0x14], esi
jmp 0x100088f8
and dword [esp + 0x14], 0
push 0x226
lea eax, [esp + 0x36]
push 0
push eax
call fcn.1003e9c0
add esp, 0xc
and dword [esp + 0x10], 0
mov dword [esp + 0x38], 0x200
mov dword [esp + 0x3c], 5
mov byte [esp + 0x56], 0xec
push 0x28
pop ecx
push 2
pop eax
push 0
mov word [esp + 0x36], ax
lea eax, [esp + 0x14]
push eax
mov word [esp + 0x38], cx
lea eax, [esp + 0x38]
mov dword [esp + 0x4c], ecx
mov ecx, 0x228
push ecx
push eax
push ecx
push eax
push 0x4d02c
push edi
call ebx
test eax, eax
je 0x10008972
cmp dword [esp + 0x10], 0x228
jne 0x10008972
cmp word [esp + 0x20a], si
jne 0x10008972
mov ebx, esi
jmp 0x10008974
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0
je 0x10008986
test ebx, ebx
jne 0x10008988
xor esi, esi
mov eax, esi
jmp 0x1000898e
xor eax, eax
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000a05c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 4], ebx
cmp ebx, 0xffffffff
jne 0x1000a08a
xor eax, eax
jmp 0x1000a0eb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1000a0a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000a086
push esi
lea esi, [eax + 1]
push esi
call fcn.1003865f
push esi
mov esi, eax
mov dword [ebp - 0xc], eax
push edi
push esi
call fcn.1003e9c0
add esp, 0x10
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp - 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000a0f1
push esi
call fcn.100389bf
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000a0da
mov ecx, esi
mov dword [ebp - 0x18], 0xfeff
call fcn.10011a1a
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call esi
mov edi, eax
lea eax, [ebp - 8]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push ebx
push dword [ebp - 4]
call esi
push ebx
mov esi, eax
call fcn.100389bf
mov eax, dword [ebp - 0xc]
push eax
call fcn.100389bf
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1000a0e8
test esi, esi
je 0x1000a0e8
xor eax, eax
inc eax
jmp 0x1000a0ea
Function at 0x1000a16a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
jne 0x1000a19b
xor eax, eax
jmp 0x1000a25f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1000a1ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000a194
push esi
lea esi, [eax + 1]
push esi
call fcn.1003865f
push esi
mov esi, eax
mov dword [ebp - 8], eax
push ebx
push esi
call fcn.1003e9c0
add esp, 0x10
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000a1fd
push esi
call fcn.100389bf
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000a25e
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000a24e
mov ecx, esi
call fcn.10011a1a
mov esi, eax
mov ecx, esi
call fcn.10011b2e
push esi
mov edi, eax
call fcn.10038969
pop ecx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call fcn.100389bf
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
pop ecx
push esi
call fcn.100389bf
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a744
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100eb65f
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x1013a420]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x1013a420]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov dword [esp + 0x18], edx
push 0
push 0x8000000
push 3
push 0
push 7
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x1000a7bc
movzx eax, ax
shl eax, 0x10
or eax, 1
jmp 0x1000a8d3
mov edi, 0x100000
push edi
call fcn.1003865f
pop ecx
mov ebx, eax
mov dword [esp + 0x5c], 0x67452301
xor eax, eax
mov dword [esp + 0x60], 0xefcdab89
push eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x70], 0x98badcfe
mov dword [esp + 0x74], 0x10325476
jmp 0x1000a859
cmp dword [esp + 0x14], 0
jbe 0x1000a861
push dword [esp + 0x14]
and dword [esp + 0x30], 0
lea ecx, [esp + 0x20]
push ebx
mov dword [esp + 0x38], 0xf
mov byte [esp + 0x24], 0
call fcn.10002ff0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x5c]
call fcn.10008094
push 0
push 1
lea ecx, [esp + 0x24]
call fcn.10002e46
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
push 0x100000
push ebx
push esi
call edi
test eax, eax
jne 0x1000a807
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x4c]
call fcn.10008174
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x34]
call fcn.10008216
and dword [esp + 0xc8], 0
lea ecx, [esp + 0x34]
cmp dword [esp + 0x48], 0x10
cmovae ecx, dword [esp + 0x34]
call fcn.10011a7f
mov esi, eax
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push esi
sbb edi, edi
and edi, 5
call fcn.100389bf
push ebx
call fcn.100389bf
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.10002e46
mov eax, edi
or eax, 0x10000
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
Function at 0x1000a8f7
Capabilities:
Enumerate processes

Disassembly:
push 0x24c
mov eax, 0x100eb695
call fcn.1003e1f4
mov edi, ecx
test edi, edi
jne 0x1000a913
xor eax, eax
jmp 0x1000a9d3
xor edx, edx
inc edx
call fcn.1000d16a
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000a935
xor edx, edx
call fcn.1000d16a
jmp 0x1000a90c
push 0x228
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.1003e9c0
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1000a970
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000a92c
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x234]
push eax
call fcn.10002ed6
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.10002d30
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.10002f54
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000a970
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
inc edx
call fcn.1000d16a
xor eax, eax
inc eax
call fcn.1003e1b2
ret
Function at 0x1000a9d9
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x1013a420]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
test edi, edi
je 0x1000aa26
xor ebx, ebx
cmp word [edi], bx
je 0x1000aa26
xor edx, edx
inc edx
call fcn.1000d16a
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000aa3d
xor edx, edx
call fcn.1000d16a
xor eax, eax
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003890f
mov esp, ebp
pop ebp
ret
push 0x228
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.1003e9c0
add esp, 0xc
mov dword [esp + 0x18], 0x22c
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1000aa71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000aa1f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000aa95
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
jne 0x1000aaa7
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000aa7b
jmp 0x1000aaf4
xor eax, eax
inc eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], ebx
je 0x1000ab0a
push dword [esp + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x1000aaf0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.kugou.exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000aaf0
call fcn.100038f2
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
inc edx
call fcn.1000d16a
mov eax, ebx
jmp 0x1000aa28
mov ebx, eax
jmp 0x1000aaf4

Function at 0x1000b0a2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x414
mov dword [ebp - 4], edx
mov esi, ecx
call fcn.1003896e
mov ebx, eax
xor edi, edi
pop ecx
test ebx, ebx
je 0x1000b0e4
push 0x208
push edi
push ebx
call fcn.1003e9c0
push 0x20c
lea eax, [ebx + 0x208]
push edi
push eax
call fcn.1003e9c0
add esp, 0x18
jmp 0x1000b0e6
mov ebx, edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call esi
push dword [ebp - 4]
lea eax, [ebx + 0x208]
push eax
call esi
mov eax, dword [ebp + 8]
push edi
push edi
push ebx
push 0x1000b05a
push edi
push edi
mov dword [ebx + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
test eax, eax
je 0x1000b123
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b783
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.10041750
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x4008], edx
push 0x3ffe
mov word [ebp - 0x4004], ax
xor ebx, ebx
lea eax, [ebp - 0x4002]
mov esi, ecx
push ebx
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], bx
jne 0x1000b7f7
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp - 0x4004]
push esi
call edi
mov ecx, ebx
test eax, eax
jle 0x1000b822
cmp word [esi + ecx*2], 0x20
je 0x1000b81b
inc ecx
cmp ecx, eax
jl 0x1000b80d
jmp 0x1000b822
push 0x5f
pop edx
mov word [esi + ecx*2], dx
lea eax, [esi + eax*2]
push 0x7c
pop ecx
lea esi, [eax + 2]
mov word [eax], cx
cmp word [esi], bx
jne 0x1000b804
lea eax, [ebp - 0x4004]
push eax
call edi
lea eax, [eax*2 - 2]
cmp eax, 0x4000
jae 0x1000b8ab
xor ecx, ecx
mov word [ebp + eax - 0x4004], cx
lea ecx, [ebp - 0x4004]
call fcn.10011add
mov edi, eax
mov ecx, edi
call fcn.1001199a
mov ebx, eax
mov ecx, ebx
call fcn.10011a7f
mov esi, eax
push esi
push dword [ebp - 0x4008]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call fcn.100389bf
push esi
call fcn.100389bf
push ebx
call fcn.100389bf
mov ecx, dword [ebp - 0x4008]
add esp, 0xc
xor eax, eax
xor edx, edx
cmp word [ecx], dx
pop edi
setne al
jmp 0x1000b7e7
call fcn.1003a484
int3
Function at 0x1000b8b1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e04c
call fcn.10041750
mov eax, dword [0x1013a420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x1e048], ebx
mov dword [ebp - 0x1e04c], esi
push edi
test esi, esi
je 0x1000b98c
test ebx, ebx
je 0x1000b98c
xor eax, eax
push 0xeffe
push eax
mov word [ebp - 0x1e044], ax
lea eax, [ebp - 0x1e042]
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0x1e044]
mov edi, 0xf000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push edi
push eax
call esi
xor eax, eax
push 0xeffe
push eax
mov word [ebp - 0xf044], ax
lea eax, [ebp - 0xf042]
push eax
call fcn.1003e9c0
add esp, 0xc
lea eax, [ebp - 0xf044]
push ebx
push edi
push eax
call esi
cmp word [ebp - 0x1e044], 0
lea ebx, [ebp - 0x1e044]
je 0x1000ba38
xor edi, edi
cmp word [ebp - 0xf044], 0
lea esi, [ebp - 0xf044]
je 0x1000b98c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000b9a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], di
jne 0x1000b96e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003890f
mov esp, ebp
pop ebp
ret
push 7
pop ecx
push dword [ebp - 0x1e04c]
xor eax, eax
lea edi, [ebp - 0x22]
mov word [ebp - 0x24], ax
rep stosd dword es:[edi], eax
push 0x20
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push 0x1012de44
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 7
pop ecx
push dword [ebp - 0x1e048]
xor eax, eax
lea edi, [ebp - 0x42]
mov word [ebp - 0x44], ax
rep stosd dword es:[edi], eax
push 0x20
stosw word es:[edi], ax
lea eax, [ebp - 0x44]
push eax
xor edi, edi
push edi
push 0x1012de44
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x24], di
je 0x1000b98c
cmp word [ebp - 0x44], di
je 0x1000b98c
lea eax, [ebp - 0x24]
push eax
call fcn.1003a560
mov esi, eax
lea eax, [ebp - 0x44]
push eax
call fcn.1003a560
pop ecx
pop ecx
cmp esi, eax
jg 0x1000b98c
jl 0x1000ba38
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2]
add ebx, 2
cmp word [ebx], di
jne 0x1000b95e
xor eax, eax
jmp 0x1000b98f