joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fd60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10050828
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x10065060]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10065060]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
lea ecx, [esp + 0x2c]
xor edi, edi
push ecx
mov dword [esp + 0x28], esi
mov word [esp + 0x30], ax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov word [esp + 0x3e], ax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ebx, [esi + 0x28]
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0xa8], edi
mov eax, dword [esi + 0x20]
mov ebp, dword [eax]
mov edi, dword [esi + 8]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
jmp 0x1000fe10
mov ecx, dword [esi + 0x20]
mov esi, dword [esi + 8]
mov dword [esp + 0x40], ecx
test edi, edi
je 0x1000fe22
cmp edi, esi
je 0x1000fe27
call fcn.1003a2ad
cmp ebp, dword [esp + 0x40]
je 0x1000ff69
test edi, edi
jne 0x1000ff62
call fcn.1003a2ad
cmp ebp, dword [edi + 0x18]
jne 0x1000fe48
call fcn.1003a2ad
mov edx, dword [esp + 0x1c]
lea edi, [ebp + 0x10]
lea ebp, [edi + 0xd4]
mov dword [ebp], edx
mov eax, dword [esp + 0x20]
mov dword [ebp + 4], eax
xor ecx, ecx
push 0x1f
mov eax, str.Softwareprojonepodlpprocmgr_
lea esi, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], cx
call fcn.100023a0
mov edx, esi
push edx
mov ebx, str.cache_
lea esi, [esp + 0x68]
mov byte [esp + 0xac], 1
call fcn.100123a0
push edi
push eax
lea edi, [esp + 0x8c]
mov byte [esp + 0xb4], 2
call fcn.10012460
mov esi, 8
add esp, 0xc
cmp dword [esp + 0x7c], esi
jb 0x1000fed0
mov eax, dword [esp + 0x68]
push eax
call fcn.1003a2e7
add esp, 4
xor eax, eax
xor ecx, ecx
mov byte [esp + 0xa8], al
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], eax
mov word [esp + 0x68], cx
cmp dword [esp + 0x5c], esi
jb 0x1000feff
mov edx, dword [esp + 0x48]
push edx
call fcn.1003a2e7
add esp, 4
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x98], esi
jae 0x1000ff16
lea eax, [esp + 0x84]
push esi
push ebp
push 3
push str.aliveTime
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [esp + 0x98], esi
jb 0x1000ff44
mov eax, dword [esp + 0x84]
push eax
call fcn.1003a2e7
add esp, 4
lea esi, [esp + 0x14]
call fcn.10011ad0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
jmp 0x1000fe10
mov edi, dword [edi]
jmp 0x1000fe3e
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.10039e38
add esp, 0x98
ret
Function at 0x100123a0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10050708
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x10065060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.10001e40
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100123f6
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.100125d0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.10001e40
cmp dword [esp + 0x24], 8
jb 0x1001243f
mov edx, dword [esp + 0x10]
push edx
call fcn.1003a2e7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x10012da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10053238
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x10065060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
and dword [esp + 0x14], 0xfffffe00
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], 1
call fcn.10012ac0
add esp, 8
test al, al
je 0x10012e63
cmp byte [esp + 0x14], 7
jne 0x10012e63
push str.value_number
lea edx, [esp + 0x10]
push edx
mov ecx, 0x100590c8
call fcn.1002e4e1
mov ecx, eax
call fcn.1002e8e4
test al, al
je 0x10012e63
push str.value_number
lea eax, [esp + 0x10]
push eax
mov ecx, 0x100590c8
call fcn.1002e4e1
mov esi, eax
call fcn.1002db00
mov ecx, dword [esp + 0x3c]
lea esi, [esp + 0xc]
mov dword [ecx], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.1002d89b
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
lea esi, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.1002d89b
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x10014820
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x10053cf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x10065060]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [edi + 0x20], 8
jb 0x1001484f
mov eax, dword [edi + 0xc]
jmp 0x10014852
lea eax, [edi + 0xc]
push eax
mov eax, dword [edi]
push eax
push 0x100596f8
call fcn.1002a1ff
mov ecx, dword [edi]
add esp, 0xc
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
test esi, esi
je 0x100148b7
cmp esi, 0xffffffff
je 0x100148b7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x100148b7
push edi
call fcn.100141d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TerminateProcess_Error:_d
call fcn.1002a35d
add esp, 8
cmp esi, 0xffffffff
je 0x100148db
test esi, esi
je 0x100148db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x10014cb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push 0xffffffffffffffff
push 0x10050688
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10065060]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10065060]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
xor ebp, ebp
mov ecx, 0x10
mov dword [esp + 0x18], ebp
cmp dword [eax + 0x74], ecx
jb 0x10014d03
mov edi, dword [eax + 0x60]
jmp 0x10014d06
lea edi, [eax + 0x60]
cmp dword [eax + 0x100], ecx
jb 0x10014d16
mov esi, dword [eax + 0xec]
jmp 0x10014d1c
lea esi, [eax + 0xec]
mov ebx, 8
cmp dword [eax + 0xac], ebx
jb 0x10014d31
mov edx, dword [eax + 0x98]
jmp 0x10014d37
lea edx, [eax + 0x98]
cmp dword [eax + 0x90], ebx
jb 0x10014d44
mov ecx, dword [eax + 0x7c]
jmp 0x10014d47
lea ecx, [eax + 0x7c]
cmp dword [eax + 0x20], ebx
jb 0x10014d51
mov eax, dword [eax + 0xc]
jmp 0x10014d54
add eax, 0xc
push edi
push esi
push edx
push ecx
push eax
push str._ls__ls__ls__ls__ls
lea esi, [esp + 0x34]
call fcn.10026d81
add esp, 0x18
mov dword [esp + 0x44], ebp
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x10014d7c
lea esi, [esp + 0x20]
mov edx, dword [esp + 0x30]
add edx, edx
xor ecx, ecx
cmp edx, ebp
mov eax, 0xff1122aa
jle 0x10014da8
lea ecx, [ecx]
movzx edi, byte [esi + ecx]
movzx ebp, al
xor edi, ebp
shr eax, 8
xor eax, dword [edi*4 + 0x10067798]
inc ecx
cmp ecx, edx
jl 0x10014d90
mov esi, dword [esp + 0x14]
not eax
push eax
push str._08x
call fcn.10026d81
add esp, 8
cmp dword [esp + 0x34], ebx
jb 0x10014dcf
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1003a2e7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10039e38
add esp, 0x34
ret 8
Function at 0x10016800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ed93
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10065060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
push 0x18
mov byte [ebp - 4], 1
call fcn.1003a3db
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x10016872
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
jne 0x10016857
mov dword [esi + 0x10], edi
jmp 0x10016874
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
mov eax, dword [edx]
jne 0x1001686a
push esi
call eax
mov dword [esi + 0x10], eax
jmp 0x10016874
push edi
call eax
mov dword [esi + 0x10], eax
jmp 0x10016874
xor esi, esi
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push ecx
push edx
push esi
push 0x100168f0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x18]
mov esi, eax
cmp ecx, edi
je 0x100168ad
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [ebp + 8]
cmp ecx, edx
setne dl
movzx edx, dl
push edx
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10016d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10052bb2
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x10065060]
xor eax, esp
mov dword [esp + 0x238], eax
push esi
push edi
mov eax, dword [0x10065060]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov ecx, 0x8b
lea esi, [esp + 0x25c]
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
call fcn.10006110
mov dword [esp + 0x254], esi
mov ecx, dword [esp + 0x1c]
push ebx
mov dword [esp + 0x10], 1
call fcn.10017740
mov eax, dword [esp + 0x30]
mov dword [ebx + 4], eax
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.10039e38
add esp, 0x24c
ret 0x22c
Function at 0x1001ca50
Capabilities:
Create thread

Disassembly:
mov eax, 0x1010
call fcn.10045a60
mov eax, dword [0x10065060]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
push 0x10068dbc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.1002a619
test eax, eax
jne 0x1001ca90
push eax
push eax
push eax
push 0x1001c8b0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
jmp 0x1001caf5
push str._SoftwareMonitor
push 0x134
push str..uninstmgr.cpp
push str._s._d:_s
lea eax, [esp + 0x18]
push 0x800
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x1001c8b0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1001caf4
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push str.thread__d_created:__s
call fcn.1002a0a1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x100c]
pop esi
xor ecx, esp
call fcn.10039e38
add esp, 0x1010
ret
Function at 0x100216c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100503f8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x10065060]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov cx, word [esp + 0x14]
mov word [esi], cx
lea ecx, [esi + 4]
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
xor edx, edx
push eax
mov dword [ecx + 0x18], 7
lea eax, [esp + 0x20]
mov word [ecx + 4], dx
call fcn.10001e40
cmp dword [esp + 0x30], 8
jb 0x10021721
mov eax, dword [esp + 0x1c]
push eax
call fcn.1003a2e7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x20

Function at 0x100236e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1004f776
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10065060]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.SqliteOperator.0
xor eax, eax
mov dword [esi + 0x24], eax
mov edx, 0xf
mov dword [esi + 0x28], edx
mov byte [esi + 0x14], al
mov ecx, vtable.std::mstring.0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x54], edx
mov dword [esi + 0x50], eax
mov byte [esi + 0x40], al
mov dword [esi + 0x38], ecx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x60]
push eax
mov byte [esp + 0x18], 1
call fcn.10024190
cmp dword [edi + 0x1c], 0x10
jb 0x1002375e
mov edi, dword [edi + 8]
jmp 0x10023761
add edi, 8
lea ecx, [esi + 8]
push ecx
push edi
call sub.sqlcipher32.dll_sqlite3_open
add esp, 8
test eax, eax
sete dl
mov byte [esi + 4], dl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10025119
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10065060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x10025213
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10025213
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.1003c500
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.10025b49
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10025190
shr eax, 4
not eax
and eax, 1
jmp 0x10025215
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.10025223
test eax, eax
je 0x10025213
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x100251f5
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x100251fb
mov dword [ebp - 0x41c], ebx
lea ecx, [ebp - 0x420]
call fcn.10002ce0
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x10025215
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10039e38
leave
ret
Function at 0x1002557d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.10045a60
mov eax, dword [0x10065060]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2020], ebx
cmp edi, ebx
je 0x1002575b
cmp eax, ebx
je 0x1002575b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100255d5
mov dword [ebp - 0x2020], 1
jmp 0x1002575b
push ebx
push ebx
push 3
push ebx
push ebx
mov esi, 0x80000000
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
push ebx
push ebx
push 3
push ebx
push ebx
push esi
push dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
call edi
mov esi, dword [ebp - 0x2010]
mov dword [ebp - 0x2014], eax
cmp esi, ebx
je 0x10025745
cmp esi, 0xffffffff
je 0x10025745
cmp eax, ebx
je 0x10025745
cmp eax, 0xffffffff
je 0x10025745
xor eax, eax
mov dword [ebp - 0x2034], ebx
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
mov dword [ebp - 0x202c], ebx
lea edi, [ebp - 0x2028]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x2034]
push eax
push esi
call edi
test eax, eax
je 0x10025745
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x10025745
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x10025745
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x10025745
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x1002572f
cmp dword [ebp - 0x2018], ebx
je 0x1002573b
push ebx
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x2018]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x2014]
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10025745
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x10025745
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10025711
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10025745
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100256b9
jmp 0x10025745
mov dword [ebp - 0x2020], 1
lea ecx, [ebp - 0x2014]
call fcn.10002ce0
lea ecx, [ebp - 0x2010]
call fcn.10002ce0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039e38
leave
ret 4
Function at 0x1002581b
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10025847
call fcn.10025119
test eax, eax
jne 0x10025847
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x10025867
cmp esi, 0xffffffff
jne 0x1002587f
cmp dword [ebp - 8], ebx
jne 0x10025873
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xc]
call fcn.10002ce0
mov eax, ebx
jmp 0x10025840
mov edi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100258a3
cmp dword [ebp - 4], edi
jne 0x100258a3
xor ebx, ebx
inc ebx
jmp 0x10025873
cmp dword [ebp - 8], ebx
jne 0x10025873
or dword [ebp - 0xc], 0xffffffff
cmp esi, 0xffffffff
je 0x100258bc
cmp esi, ebx
je 0x100258bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
jmp 0x1002586d

Function at 0x100258c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x100258e9
push esi
mov edx, dword [esp + 8]
movzx edx, byte [ecx + edx]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10067798]
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x100258ca
pop esi
not eax
ret 8
Function at 0x10025bac
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10065060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], ebx
test edi, edi
je 0x10025c9a
test ebx, ebx
je 0x10025c9a
cmp dword [ebp + 8], 0
je 0x10025c9a
mov esi, str.deviceMup_
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
jne 0x10025c16
push ebx
push 0x1005a04c
push esi
mov ecx, edi
mov eax, dword [ebp + 8]
call fcn.10026c0c
xor eax, eax
inc eax
jmp 0x10025c9c
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x220], eax
xor ebx, ebx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x220]
test ecx, eax
je 0x10025c94
push 0x3a
lea eax, [ebx + 0x61]
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x206
lea edi, [ebp - 8]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.1003c500
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x10025c94
push dword [ebp - 0x218]
lea esi, [ebp - 0x214]
call fcn.10026d0a
test eax, eax
jne 0x10025cad
inc ebx
cmp ebx, 0x1a
jl 0x10025c24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039e38
leave
ret 4
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
jmp 0x10025c06

Function at 0x10025dd5
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x10065060]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.100267cd
push esi
test eax, eax
je 0x10025e62
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.1003c500
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x10025e59
cmp esi, 0xffffffff
je 0x10025e59
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x10025e55
push edi
lea eax, [esp + 0xc]
push eax
call fcn.100267cd
test eax, eax
je 0x10025e59
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10025e3b
lea ecx, [esp + 4]
call fcn.10002ce0
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.10039e38
mov esp, ebp
pop ebp
ret 4
Function at 0x10025e77
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x10065060]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x1004ec8d
call fcn.1003b501
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x10025f0c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
je 0x10025f04
cmp esi, 0xffffffff
je 0x10025f04
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.1003c500
add esp, 0xc
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10025f00
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x10025f04
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10025ee9
lea ecx, [ebp - 0x10]
call fcn.10002ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.10039e38
add ebp, 0x230
leave
ret 4

Function at 0x10025f31
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x10025f44
xor eax, eax
jmp 0x10025f9d
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.1003c500
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
add esp, 0xc
call fcn.100250df
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10025f95
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1002510c
mov eax, esi
pop edi
pop esi
leave
ret 4